Recon automation turns a one-off scan into a pipeline you can rerun every time the program changes scope, a new subdomain appears, or a new template lands. The pipeline has stages, each stage writes a dated file, and no stage starts until the previous stage output is filtered to in-scope assets only. Automation finds candidates, it does not prove vulnerabilities. Every automated hit still needs manual confirmation in Burp Suite or a browser before it is reported, and every finding still needs an OWASP category and a CVSS score before triage sees it. Only test targets the program explicitly lists in scope.
Quick Workflow
- Freeze the scope first by reading SCOPE.txt from bugbounty-scope-recon and copying it into the run folder.
- Run passive subdomain discovery, resolve the results, and drop everything outside the scoped domain.
- Probe the surviving hosts for live web services and record status, title, tech stack, and TLS details.
- Collect URLs and JavaScript files, extract endpoints and parameters, and feed them to the testing queue.
- Run port scans and template scans at a polite rate, with the out-of-scope blocklist enforced.
- Deduplicate all findings against prior runs and against known duplicate reports.
- Manually confirm each surviving candidate, score it with CVSS, map it to OWASP, and hand it to reporting.
- Archive the run folder with date, scope version, and tool outputs so the next run diffs cleanly.
1. Pipeline layout and run folder
One run, one folder, every stage output kept. Never overwrite a previous run, because the diff between runs is where new assets and regressions hide.
mkdir -p recon-2026-10-27/{raw,filtered,live,urls,scans,confirmed}
cp SCOPE.txt recon-2026-10-27/SCOPE.txt
cat > recon-2026-10-27/RUN.md <<'EOF'
PROGRAM: Example Corp
SCOPE FILE: SCOPE.txt (copied at run start)
DATE: 2026-10-27
STAGES: subdomains, resolve, probe, urls, js, ports, templates, confirm
RATE LIMIT: 10 requests per second max, no aggressive intrusive scans
EOF
ls recon-2026-10-27/
The RUN.md file is the audit trail. If the program later asks what you scanned and when, this folder answers it without reconstruction.
2. Subdomain discovery and in-scope filtering
Combine at least two passive sources, then filter hard. A subdomain that is not under the scoped domain is dropped even if it looks interesting, and a wildcard or CDN name is kept only if the program scope covers it.
cd recon-2026-10-27
subfinder -d example.com -silent -o raw/subfinder.txt
amass enum -passive -d example.com -o raw/amass.txt
curl -s "https://crt.sh/?q=%25.example.com&output=json" \
| jq -r '.[].name_value' | sed 's/^\*\.//' | sort -u > raw/crtsh.txt
cat raw/subfinder.txt raw/amass.txt raw/crtsh.txt | sort -u > raw/candidates.txt
grep -E '(^|\.)example\.com$' raw/candidates.txt | sort -u > filtered/scoped-names.txt
dnsx -l filtered/scoped-names.txt -silent -a -resp -o filtered/resolved.txt
wc -l raw/candidates.txt filtered/scoped-names.txt filtered/resolved.txt
Example output shape:
812 raw/candidates.txt
764 filtered/scoped-names.txt
301 filtered/resolved.txt
The drop from candidates to scoped names is the filter doing its job. Record why names were dropped in a short note, not just the count, so a later reviewer can see the boundary was enforced.
3. Live-host probing
Probing turns resolved names into a testable web inventory. Capture status, title, and technology hints in one pass, and keep the raw output for re-checking.
httpx -l filtered/resolved.txt -silent -status-code -title -tech-detect \
-tls-probe -o live/httpx.txt
# Keep only live web hosts, then split by status for the testing queue
awk '$2 ~ /200|301|302|403/' live/httpx.txt > live/web-live.txt
grep -i "403" live/httpx.txt > live/forbidden-to-review.txt
wc -l live/httpx.txt live/web-live.txt
head -n 20 live/web-live.txt
A 403 is not a dead end, it is a note. Forbidden endpoints often hide admin panels, debug routes, or API versions worth testing with proper authorization, but never bypass an access control just because automation flagged the path.
4. URL and JavaScript collection
Historical URLs and JavaScript files are where hidden parameters, old API versions, and forgotten endpoints live. Collect them passively first, then fetch only in-scope JavaScript for endpoint extraction.
# Historical URLs from public archives, in-scope only
cat filtered/resolved.txt | gau --threads 5 2>/dev/null \
| grep -E 'example\.com' | sort -u > urls/historical.txt
# Crawl live hosts politely for fresh URLs
cat live/web-live.txt | awk '{print $1}' | katana -silent -jc -o urls/crawled.txt
cat urls/historical.txt urls/crawled.txt | sort -u > urls/all.txt
# Fetch JavaScript files and extract endpoints, paths, and API keys patterns
grep -E '\.js($|\?)' urls/all.txt | sort -u > urls/js-files.txt
while read -r js; do curl -s "$js"; echo; done < urls/js-files.txt \
| grep -Eo '"/[a-zA-Z0-9/_.-]+"|/api/[a-zA-Z0-9/_.-]+' | sort -u > urls/js-endpoints.txt
wc -l urls/all.txt urls/js-files.txt urls/js-endpoints.txt
Feed js-endpoints.txt into the dedicated sub-skill bugbounty-js-api-recon for deep API analysis. This top-level skill owns the pipeline, the sub-skill owns the JavaScript and API detail.
5. Port scanning and template scanning at a polite rate
Port scans and template scans run only against live, in-scope hosts, and only with rates the program policy allows. Intrusive or denial-of-service style checks are out, always.
# Port scan of live hosts, top ports only, polite timing
nmap -iL live/web-live.txt -Pn -T2 --top-ports 100 -oA scans/nmap-top100 2>/dev/null || \
nmap -iL <(awk '{print $1}' live/web-live.txt | sed 's|https\?://||; s|/.*||') \
-Pn -T2 --top-ports 100 -oA scans/nmap-top100
# Template scan for known misconfigurations, severity filtered
nuclei -l <(awk '{print $1}' live/web-live.txt) -severity medium,high,critical \
-rate-limit 10 -o scans/nuclei.txt
# Summarize nuclei output by severity before any manual review
awk -F'[][]' '{print $2}' scans/nuclei.txt | sort | uniq -c | sort -nr
If the program forbids automated scanners, skip this section entirely and do manual testing only. A policy violation costs more than any finding it could produce.
6. Deduplication and the nightly diff
Automation without deduplication floods triage with repeats. Diff every run against the previous run and against the duplicate-avoidance checklist before confirming anything.
# Diff against the previous run to find only new hosts and new endpoints
diff filtered/resolved.txt ../recon-2026-10-20/filtered/resolved.txt \
| grep '^>' | sed 's/^> //' > filtered/new-hosts.txt
diff urls/js-endpoints.txt ../recon-2026-10-20/urls/js-endpoints.txt \
| grep '^>' | sed 's/^> //' > urls/new-endpoints.txt
# Deduplicate nuclei findings by template and host
sort -u scans/nuclei.txt > scans/nuclei-deduped.txt
echo "New hosts:"; cat filtered/new-hosts.txt
echo "New endpoints:"; cat urls/new-endpoints.txt
New hosts and new endpoints go to the top of the testing queue. Old findings that reappear unchanged are not new reports, they are reminders to check whether the original report is still open.
7. Manual confirmation and scoring before reporting
No automated hit ships as a report. Confirm it by hand, reproduce it in Burp Suite, then score it.
# Confirmation checklist, one file per candidate, filled by hand
cat > confirmed/TEMPLATE.md <<'EOF'
CANDIDATE:
HOST:
AUTOMATED SOURCE: (tool, template, URL)
MANUAL REPRODUCTION STEPS:
1.
2.
3.
BURP SUITE REPEATER RESULT:
OWASP CATEGORY:
CVSS VECTOR AND SCORE:
IMPACT IN ONE SENTENCE:
DUPLICATE CHECK DONE: yes / no, method used
EOF
cp confirmed/TEMPLATE.md confirmed/candidate-001.md
A finding with no reproduction steps, no CVSS score, and no duplicate check is not ready for triage. Send it back to the testing queue, not to the program.
Edge cases
- Scope changes mid-run. Stop the pipeline, re-read the policy, rebuild the in-scope filter, and rerun from stage 2. Never let a stale filter carry into a new stage.
- Wildcard DNS returns the same IP for every name. Resolve with dnsx and filter wildcard responses before probing, or the live list will be full of phantom hosts.
- Rate limits and blocks. If a host starts returning 429 or blocks your IP, back off, lower the rate, and note it. Hammering through a block is both rude and a policy risk.
- Third-party subdomains. A name in scope that points at a SaaS provider or CDN is tested at the application layer only. Do not scan the provider infrastructure itself.
- JavaScript behind authentication. Do not fetch authenticated JavaScript with another user's session or a stolen token. Use only your own test account, inside scope.
- Scanner false positives. Nuclei and port scans flag banners and versions that are not vulnerabilities. Confirm version, confirm exploitability, and confirm impact before scoring.
- Secrets in JavaScript or URLs. If automation surfaces an API key, token, or credential, stop, do not use it beyond proving it exists, and report it through the program channel with minimal exposure.
- Large programs with thousands of hosts. Sample by technology and by newness first, then expand. Covering every host badly is worse than covering the highest-risk hosts well.
Key references
- OWASP Top 10, for mapping each confirmed finding to a standard category before reporting.
- OWASP Testing Guide, for manual confirmation steps that back up every automated hit.
- CVSS specification, for scoring every finding consistently so triage can compare severity.
- HackerOne and Bugcrowd program policy pages, for the scope, safe harbor, and scanner rules that gate this whole pipeline.
- ProjectDiscovery subfinder, httpx, dnsx, and nuclei documentation, for flags, rate limits, and output formats used in the pipeline above.
- bugbounty-scope-recon, for turning a program policy into the enforced in-scope list this pipeline depends on.
- bugbounty-duplicate-avoidance, for checking every candidate against known duplicates before it reaches triage.
- bugbounty-js-api-recon, for deep JavaScript and API endpoint analysis fed by stage 4 of this pipeline.
