reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities
Roadmap: reconFTW (Audit Hardening Milestone)
Overview
This milestone closes the 2026-03 audit gaps captured in .planning/codebase/CONCERNS.md. Five phases drive 16 v1 requirements across resilience, security, performance, test coverage, and documentation. The sequencing places resilience and security fixes first (foundation), then performance caps and scope coherence (behavioural correctness), then test coverage that asserts the new behaviour, then documentation alignment. Each phase groups work by concern and shared code-touch surface so a single PR/plan modifies one logical area, minimising merge churn.
Phases
Phase Numbering:
- Integer phases (1, 2, 3): Planned milestone work
- Decimal phases (2.1, 2.2): Urgent insertions (marked with INSERTED)
Decimal phases appear between their surrounding integers in numeric order.
- Phase 1: Resilient Resume & Timeout Safety —
.inprogresssentinel, disk-full mid-run detection, parallel job timeouts, DNS timeout defaults (completed 2026-05-13) - Phase 2: Security Quoting & Supply-Chain Hygiene — Eval removal, curl quoting,
AXIOM_EXTRA_ARGSarray refactor, installer SHA256, mantra path fix - Phase 3: Concurrency Caps & Scope Unification — Per-tool thread caps,
is_in_scope_hostvsdomain_match_regexreconciliation with cross-check tests - Phase 4: Test Coverage Reinforcement —
parallel_funcsbatch behaviour, mocked end-to-end pipeline, axiom failover - Phase 5: Configuration & Documentation Alignment — Surface hidden tunables in
reconftw.cfg, resolve disk-space default mismatch
Phase Details
Phase 1: Resilient Resume & Timeout Safety
Goal: Long-running scans survive interruptions, disk pressure, and stuck tools without silently producing truncated output or wasting hours of re-work on resume. Depends on: Nothing (first phase) Requirements: RESIL-01, RESIL-02, RESIL-03, PERF-02 Success Criteria (what must be TRUE):
- Interrupting a recon mid-
sub_bruteand re-running withPRESERVE=trueproduces a clear.inprogress_sub_bruteindicator and re-executes only that function — completed functions retain.<func>checkpoints and are skipped - A scan that exhausts disk space mid-run aborts with a clear
ENOSPCerror message rather than producing zero-byte or truncated output files - Setting
PARALLEL_JOB_TIMEOUT_SECONDS=600inreconftw.cfgterminates any singleparallel_funcschild exceeding 10 minutes viakill -TERM, allowing the batch to continue - Fresh installs of
reconftw.cfgship with non-zeroDNS_BRUTE_TIMEOUT=6handDNS_RESOLVE_TIMEOUT=4hdefaults, and a stuck DNS run aborts with a logged timeout rather than blocking indefinitely Plans: TBD
Plans:
- 01-01:
.inprogresssentinel lifecycle instart_func/end_funcwith resume detection (RESIL-01) - 01-02: Disk-full mid-run guard — periodic
dfcheck +ENOSPCtrap (RESIL-02) - 01-03:
PARALLEL_JOB_TIMEOUT_SECONDSenforcement inlib/parallel.shplus DNS timeout defaults inreconftw.cfg(RESIL-03, PERF-02) - 01-04: Gap closure —
_RECON_CLEAN_EXITflag gates_cleanup_inprogressso SIGINT/SIGTERM preserves.inprogress_<fn>sentinels (RESIL-01 / CR-01) - 01-05: Gap closure — decouple timeout enforcement from
--quietverbosity gate AND switch_timeout_kill_jobto process-tree kill viapgrep -Pwalk (RESIL-03 / CR-02, CR-03)
Phase 2: Security Quoting & Supply-Chain Hygiene
Goal: Eliminate the remaining eval injection vector, lock down unquoted notification curl calls, make AXIOM_EXTRA_ARGS tokenisation explicit, and integrity-check installer bootstrappers.
Depends on: Phase 1
Requirements: SEC-01, SEC-02, SEC-03, SEC-04, FIX-01
Success Criteria (what must be TRUE):
grep -n "eval " lib/common.sh modules/*.shreturns noevalcalls undersafe_count()and all callers pass file paths — theelsebranch atlib/common.sh:760is gonesendToNotify()inmodules/core.shquotes every variable passed tocurl("$discord_url","${slack_channel}","${1}"); shellcheck reports no new findings againstmodules/core.sh:1399-1414AXIOM_EXTRA_ARGSis consumed asAXIOM_EXTRA_ARGS_ARR=()acrossmodules/subdomains.shandmodules/web.sh; a value containing intentional whitespace tokens (e.g.,--rate-limit 100) tokenises correctly and an accidentally-quoted single-token value does not splitinstall.shcallsverify_sha256()against pinned hashes forrustup-init.shanduv/install.sh; aborts with a clear error on mismatch; atools.lock(or equivalent manifest) pins versions fornuclei,httpx,ffuf,puredns,subfinder- Running
axiom-exec mantraagainst a remote node installsgithub.com/brosck/mantra@latest(lowercase) and the binary runs — the previous 404 / module-not-found on case-sensitive GitHub paths is gone Plans: TBD
Plans:
- 02-01:
safe_count()eval removal + caller migration to file-path form (SEC-01) - 02-02:
sendToNotify()quoting refactor +modules/web.sh:2340mantra path fix (SEC-02, FIX-01) - 02-03:
AXIOM_EXTRA_ARGS_ARRarray refactor + installer SHA256 verification + tools manifest (SEC-03, SEC-04)
Phase 3: Concurrency Caps & Scope Unification
Goal: Bound multi-core thread scaling so large hosts don't overwhelm targets, and reconcile the two scope-checking implementations so output is consistent across code paths. Depends on: Phase 2 Requirements: PERF-01, FIX-02 Success Criteria (what must be TRUE):
- On a 64-core machine the computed values of
FFUF_THREADS,HTTPX_THREADS,HTTPX_UNCOMMONPORTS_THREADS,KATANA_THREADS,DALFOX_THREADS,DNSTAKE_THREADSnever exceed their respective*_THREADS_MAXcaps fromreconftw.cfg - The thread-cap variables (
FFUF_THREADS_MAX, etc.) appear as commented-out reference entries inreconftw.cfgso users can tune them without reading source code is_in_scope_host()anddomain_match_regex()agree on edge cases — trailing dots, wildcards, empty input, IDN — verified by a cross-check test intests/unit/that feeds the same corpus through both functions and asserts identical accept/reject decisions Plans: TBD
Plans:
- 03-01: Per-tool thread-count caps with
*_THREADS_MAXconfig knobs andmin()enforcement (PERF-01) - 03-02: Scope-check unification — pick canonical implementation + cross-check bats test (FIX-02)
Phase 4: Test Coverage Reinforcement
Goal: Lock in the resilience and parallel changes from Phase 1 with regression tests, and add coverage for the two highest-priority untested areas (end-to-end module handoff and axiom failover). Depends on: Phase 3 Requirements: TEST-01, TEST-02, TEST-03 Success Criteria (what must be TRUE):
bats tests/unit/test_parallel.batscovers barrier sync, heartbeat polling cadence, the failure-counter increment path, and the newPARALLEL_JOB_TIMEOUT_SECONDSkill path — at least 4 new@testblocks, all green inmake unit-fast- A new bats integration test (e.g.,
tests/integration/test_pipeline_handoff.bats) exercisessubdomains.sh→web.sh→vulns.shagainst mocked tool outputs and asserts thewebs.txtshape and scope-filter output remain stable - A new bats test covers the axiom failover path:
axiom_disable_runtimeinvocation on launch failure, partial-fleet fallback to local mode, andAXIOM_AUTO_FIX_HOSTKEYrepair logic — running locally without an axiom fleet make test(or the equivalent CI target) reports the new test files in its summary and CI passes on thedevbranch with the additions Plans: TBD
Plans:
- 04-01:
parallel_funcsunit tests — barrier, heartbeat, failure counter, timeout kill path (TEST-01) - 04-02: Mocked end-to-end pipeline integration test + axiom failover test (TEST-02, TEST-03)
Phase 5: Configuration & Documentation Alignment
Goal: Surface every previously-undocumented config knob in reconftw.cfg and resolve the disk-space default mismatch so the config file is authoritative.
Depends on: Phase 4
Requirements: DOCS-01, DOCS-02
Success Criteria (what must be TRUE):
reconftw.cfgcontains commented-out reference entries forPARALLEL_MAX_JOBS,ALLOW_TRANSFER,RAISE_ULIMIT,ULIMIT_TARGET, andAXIOM_EXTRA_ARGSsemantics; a user greppingreconftw.cfgfor any of these names finds documentation rather than empty resultsMIN_DISK_SPACE_GBhas a single source of truth — eitherreconftw.cfg:39lifts to5to matchmodes.sh, ormodes.sh:23drops the:-5fallback; the value reported bycheck_disk_space()matches the value documented inreconftw.cfg- Running
shellcheck reconftw.cfgandbats tests/unit/test_config.bats(or equivalent) passes with no new findings tied to the documentation additions Plans: TBD
Plans:
- 05-01: Surface hidden tunables + resolve disk-space mismatch in
reconftw.cfgandmodes.sh(DOCS-01, DOCS-02)
Progress
Execution Order: Phases execute in numeric order: 1 → 2 → 3 → 4 → 5
| Phase | Plans Complete | Status | Completed |
|---|---|---|---|
| 1. Resilient Resume & Timeout Safety | 5/5 | Complete | 2026-05-13 |
| 2. Security Quoting & Supply-Chain Hygiene | 0/3 | Not started | - |
| 3. Concurrency Caps & Scope Unification | 0/2 | Not started | - |
| 4. Test Coverage Reinforcement | 0/2 | Not started | - |
| 5. Configuration & Documentation Alignment | 0/1 | Not started | - |
Coverage
v1 requirements: 16 total, 16 mapped (100%)
| Requirement | Phase |
|---|---|
| RESIL-01 | Phase 1 |
| RESIL-02 | Phase 1 |
| RESIL-03 | Phase 1 |
| PERF-02 | Phase 1 |
| SEC-01 | Phase 2 |
| SEC-02 | Phase 2 |
| SEC-03 | Phase 2 |
| SEC-04 | Phase 2 |
| FIX-01 | Phase 2 |
| PERF-01 | Phase 3 |
| FIX-02 | Phase 3 |
| TEST-01 | Phase 4 |
| TEST-02 | Phase 4 |
| TEST-03 | Phase 4 |
| DOCS-01 | Phase 5 |
| DOCS-02 | Phase 5 |
Roadmap created: 2026-05-13