Reconnaissance

Recon turns a company name into a ranked, testable inventory of root domains, IP ranges, hosts, services, paths, parameters and client-side code, and answers two questions: what does the target expose, and which of those assets are likely to be weak?

What it is

Recon is the funnel that runs before (and alongside) hands-on testing in a bug bounty or external assessment. Each layer feeds the next and returns less new surface than the one before it (as93, Wiz masterclass):

LayerQuestionCore toolsRough yield (as93)Page
Org / root domainsWhat does the company own?Crunchbase, whoxy reverse WHOIS, RADb ASN lookup, Shodan/Censys, amass inteln/aAsset Discovery
Passive hostnamesWhich names have ever existed?subfinder -all, crt.sh, passive DNS, Wayback/gau60–80% of total surface in 1–2 hSubdomain Enumeration
Active hostnamesWhich names are unpublished?puredns/shuffledns brute force, alterx \| dnsx, BBOT mutations, vhost fuzzing+15–25%Subdomain Enumeration, OWASP Amass
Exposure probingWhat is live, on which ports?httpx -tech-detect, naabu, masscan, RustScan, nmapn/aPort Scanning
ContentWhat is unlinked?ffuf/feroxbuster, katana -jc, archives, Arjun+5–10%Content Discovery
Client-side codeWhat do the bundles reveal?katana/gau → LinkFinder, source maps, SecretFinder+1–5%JavaScript Analysis

Why it matters to appsec: the thesis running through every source is that the best bugs sit on forgotten assets: staging/dev/uat hosts, non-standard ports, removed-but-still-routed endpoints, and stacks that differ from the main site. Developers remove links more often than they remove routes (as93, dev.to forgotten-server checklist). The defender-side version of the same work is EASM (Asset Discovery).

Core concepts

  • Seed list vs. fan-out. Org-level discovery (acquisitions, reverse WHOIS, ASN → CIDR, cloud tenants) produces the seeds; everything else fans out per root. Skipping it means testing only the main domain (Wiz). See Asset Discovery.
  • Passive vs. active. Passive (CT, passive DNS, archives, search engines, Google Dorking) sends nothing to the target but accepts stale and bogus names; active (brute force, permutations, AXFR, NSEC walking, vhost fuzzing, crawling) finds names that were never published (ProjectDiscovery Recon 102). Rule: passive first, active second (Wiz).
  • Names are not assets. Wildcard DNS, CDNs and dead records inflate counts; ~100,787 names collapsing to 2 real assets after correlation is the canonical example (100K → 2). Conversely, an IP-only view misses hosts that answer only to the right Host/SNI behind CDNs and TLS-SNI routing, so correlate names and IPs (Assetnote).
  • Stale pointers. DNS records (CNAME, NS, SPF include, _acme-challenge, _dmarc, DKIM) that outlive the resource they point to are the bug class recon feeds most directly: Subdomain Takeover.
  • The bundle knows more than the UI. SPAs ship routing, API calls and client-side checks; source maps can turn a black box white (JavaScript Analysis).
  • Validation over visibility. Single-command recon is commodity: assets get hit within seconds of coming online. The edge is multi-stage pipelines producing structured output for triage (dev.to async pipelines); defender ASM has moved the same way, “proof, not probability” (1,198 “critical” alerts → 31 real issues) (ProjectDiscovery 2026 ASM).
  • Scope intersection is manual. A scanner doesn’t know scope. subfinder | httpx produced 151 live hosts; diffing against the written scope (comm -12) left 45, roughly 70% out of scope (named storage hosts, hosting panels, a second admin console). Re-run anything (e.g. a takeover sweep) that ran on the unfiltered list (six-day engagement).
  • Stop rule. If the last hour of recon produced no new testable surface, start testing. Top earners split roughly 30% recon / 70% testing; keep content discovery running in the background while testing by hand (as93).

How to approach it

  1. Read scope. Confirm which roots, wildcards and ranges are in. An ASN-wide range is in scope only if the program says so; port scanning is usually fine on company-owned ranges and rarely on cloud/SaaS or web-only scopes (Intigriti Shodan/Censys, YesWeHack port scanning).
  2. Expand the org → root domains, ASNs/CIDRs, cloud tenants (Asset Discovery, amass intel). Verify ownership by hand: Shodan/Censys org attribution is often wrong, and ProjectDiscovery calls this the phase that most needs a human (PD one-shot).
  3. Passive hostnames per root: subfinder/Chaos/crt.sh/Wayback/gau, dorks. Configure API keys first; keyless runs return a fraction (Subdomain Enumeration).
  4. Resolve and filter with validated resolvers and wildcard detection (puredns resolve). Keep unresolved passive names aside as takeover/historical candidates (dreamsoftragedy).
  5. Active generation: brute force with a target-specific wordlist, permutations, ML prediction (Subwiz), vhosts, PTR sweeps, TLS SANs, AXFR. Resolve and filter again.
  6. Takeover pass on CNAMEs and delegations (Subdomain Takeover).
  7. Ports and HTTP probe: naabu/masscan → nmap -sV; httpx for status, title, tech, server (Port Scanning).
  8. Triage the live list (signals below) and rank hosts.
  9. Per-host content + JS: harvest archived/crawled URLs, then ffuf with stack-matched wordlists; mine bundles and source maps; feed new paths/params/hosts back into steps 5 and 9 (Content Discovery, JavaScript Analysis).
  10. Secrets found in JS, repos and archives → validate (Secret Scanning).
  11. Monitor: diff runs (CT streams, amass track, jsmon) and alert on new surface (Bug Bounty Automation).

Triage signals from httpx output: 401/403 (something is there), default install pages, a stack different from the main site, and staging|dev|test|uat|internal in the name. Fingerprints pick the next test: Rails → mass assignment and IDOR; Node/Express → prototype pollution and SSRF. Cookie names (JSESSIONID, PHPSESSID, connect.sid) and error-page templates identify the stack (Codefam, as93). Browser and CLI fingerprinting (Wappalyzer, whatweb target.com, Server/X-Powered-By) decides the next test: WordPress, an old Apache and Laravel each call for a different approach (Day 04 recon).

Key techniques

Org and IP space (Asset Discovery)

whois -h whois.radb.net -- '-i origin AS12345' | grep -Eo '([0-9.]+){4}/[0-9]+'   # ASN -> prefixes
amass intel -org 'Example Ltd'               # org -> ASNs
amass intel -active -asn 222222 -ip          # ASN -> domains + IPs
amass intel -d example.com -whois            # reverse WHOIS -> sibling roots
  • Shodan/Censys pivots: org:"Target", ssl.cert.subject.CN:"target.com", http.favicon.hash:<mmh3>, ssl.cert.expired:true for forgotten hosts; Censys services.tls.certificate.names:"target.com" with explicit AND/OR (Intigriti).
  • Favicon hash = signed 32-bit MurmurHash3 over the base64 icon; durable but collision-prone, and honeypots skew counts (Bishop Fox).
  • Live TLS handshakes leak internal names in SANs (DNS:admin.internal) and O/OU conventions (TLS handshake is recon).
  • Origin behind CDN/WAF: prips 93.184.216.0/24 | hakoriginfinder -h https://example.com:443/foo -p 80,443,8080,8443 (Levenshtein body match, -l default 5) (hakoriginfinder); CloudFail for Cloudflare via DNS history (CloudFail).
  • M365/Entra tenant mapping: ./msftrecon.py -d example.com -j (federation → SAML targets, enterprise apps, B2C) (msftrecon).
  • SSO-fronted hosts: DNS history (SecurityTrails) can return the origin IP; one such IP served the application without the SSO wall and led to a time-based SQLi (blind SQLi write-up).

Hostnames (Subdomain Enumeration, OWASP Amass)

  • CT: crt.sh for history; gungnir streams new certs; ctfr-reloaded -d target.com --source all --resolve --alive --takeover --watch --interval 1800 (ctfr-reloaded). CT leaks internal app names whenever a public cert is issued for an internal host (CT internal apps).
  • Resolution: puredns resolve cut 28,711 shuffledns names to 12,039 after catching the *.signon.aws.amazon.com wildcard (PD one-shot). Validate resolvers (dnsvalidator) (reconFTW).
  • Permutations: alterx | dnsx, amass enum -alts -awm 'dev?d'; Subwiz v1.0 recursively predicts names (~1,200 from only www of a large social network) (Subwiz).
  • BBOT: bbot -t evilcorp.com -p subdomain-enum [-rf passive]; 3.1 swapped massdns for blastdns 2.0 (half the wall time), fixed nested wildcard detection, and filters CDN/WAF ports by default (--allow-cdn-ports) (BBOT 3.1.0).
  • Findomain 11.0.0 (rewrite): passive sources 14 → 55 (--list-keys shows which need keys), crt.sh via its PostgreSQL mirror with JSON fallback, paginated sources walked to the end, time budgets (--source-timeout 30 s, --source-budget 300 s, --archive-budget 20 s). It no longer runs amass/subfinder (--import-subdomains subfinder.txt amass.txt), delegates ports/templates/content to nmap, nuclei and ffuf on HTTP-confirmed hosts only, adds --permutations, --cname tracking, SQLite as the default monitoring DB, and Retry-After-aware Discord/Slack alerts (earlier versions silently dropped rate-limited alerts that were never re-sent) (Findomain 11.0.0).
  • Vhosts: ffuf -u https://www.target.com/ -H 'Host: FUZZ.target.com' -w dns-wordlist.txt (Intigriti 7 overlooked).
  • Amass is slow; use subfinder for fast passive passes and reserve Amass for brute force, alterations, intel and the graph/track diffing (PD Recon 102, hakluke).

Passive search (Google Dorking)

site:example.com -www -shop -share -mfa                          # subtract known subs
site:example.com ext:env | ext:bak | ext:log | ext:conf | ext:sql
inurl:swagger | inurl:api-docs | intitle:"Swagger UI" site:example.com
org:"example" (filename:.env OR extension:pem OR "sk_live_")     # GitHub code search

TakSec dork set and GitHub operators (TakSec, Intigriti GitHub dorking). Engines don’t share an index; rerun on Bing/Yandex (Cibergy). Treat a hit as a question, not a finding: z7-codes’ scope-safe library runs scope → dork → surface → context → benign check → dedupe → impact → report, and classifies leads by parameter and error family rather than exploit string (z7-codes).

Manual HTTP recon with curl

A curl/bash/jq-only pass reads the stack before any tool runs: curl -sI for Server versions (Werkzeug dev server in production is itself a finding); curl -vk … | grep -A15 "Server certificate" for self-signed subject = issuer; a status-code loop where 404 = absent, 405 = exists with wrong verb, 401 = exists behind auth; an OPTIONS sweep reading Allow; a Host: loop for vhost routing (uniform 200s are a negative result worth recording). Auto-doc paths are library-specific (Flasgger serves /apispec_1.json, not /swagger), published docstrings can leak notes like “only checks token presence, not role claim”, and the spec lists only annotated routes, so manual enumeration still finds the rest. curl -w with %{http_code} %{size_download} %{time_total} %{remote_ip} seeds report evidence; build report JSON with jq -n --arg, not heredocs (curl full chain).

Takeover (Subdomain Takeover)

dnsx -l subs.txt -a -cname -resp → subzy/subjack/nuclei takeover templates → manual fingerprint (<Code>NoSuchBucket</Code>, There isn't a GitHub Pages site here.) against can-i-take-over-xyz. Exploitable only when the provider skips ownership verification and you can choose the resource name (0xpatrik, Intigriti takeover). Escalate via wildcard OAuth redirect_uri, Domain=.example.com cookies, CORS/CSP subdomain trust.

Ports (Port Scanning)

naabu -list hosts.txt -top-ports 1000 -ec -cdn -oA out   # skip non-80/443 on CDN IPs
echo t.com | naabu -silent | httpx -silent
naabu -host t.com -passive                               # Shodan InternetDB, no packets
nmap -p- -sV --script http-title -iL live-ips.txt

Flag 3389, 22 (password auth), 3306/5432, 6379, 9200, 8080/8443, and self-hosted AI tooling (8888 Jupyter, 5000 MLflow, 4000 LiteLLM, 11434 Ollama, 8188 ComfyUI, 7860 Langflow, 8265 Ray), which honeypot data shows is already swept (naabu, AI infra scanning).

Content (Content Discovery)

gau example.com | uro > archived.txt
katana -u https://t -d 3 -jc -f qurl          # only parameterised URLs
cat wayback.txt | unfurl --unique keys        # historical param names
ffuf -u https://t/FUZZ -w raft-medium-directories.txt -e .bak,.old,.zip -ac -rate 50 -o ffuf.json -of json
ffuf -u https://t/endpoint -X POST -d "FUZZ=5" -w params.txt -fs 4242

ffuf defaults to 40 threads and no rate cap; -ac/-fs/-fw kill soft-404 noise (ffuf, Invadel). Wordlists matter more than the tool: SecLists, Assetnote, trickest per-tech lists, api_wordlist verb×noun Cluster Bomb (trickest, api_wordlist). 405 = path exists, switch verbs. OPTIONS on a 405 can return a WADL listing the whole API (NASA SQLi).

Client-side code (JavaScript Analysis)

echo https://t | katana -jc -d 3 | grep -iE '\.js(\?|$)' | sort -u > js.txt
while read u; do python3 linkfinder.py -i "$u" -o cli; done < js.txt | sort -u > endpoints.txt
curl -s https://t/_next/static/chunks/.../page-<hash>.js.map | jq -r '.sourcesContent[]'
nuclei -l js.txt -t exposures/

(Suvendu Dash JS recon, source maps, Nuclei key exposure). js-recon’s taintwire graphs webpack/Turbopack chunks and finds Next.js intercepting routes reachable past middleware via a Next-Url header (js-recon). APIs found this way continue in API Discovery.

Hidden GraphQL schemas (GraphQL Introspection)

Introspection disabled does not mean schema hidden when “Did you mean” suggestions stay on, which is the default in many servers. Confirm with a near-miss query ({ usr { id } } → Did you mean "user" or "users"?), fingerprint the engine with graphw00f (tells you whether suggestions are on by default), then let clairvoyance recurse from a seed wordlist through Query and Mutation types. The payoff is hidden administrative mutations, which often have weaker authorization than anything the UI calls (arok.win).

Tools

JobToolNotes
Org → roots/ASNsamass intel, whoxy, RADb, Shodan/Censys, uncoververify ownership manually
Passive subssubfinder, Chaos, assetfinder, findomain (11.0: 55 sources, --list-keys), crt.sh, gau/waybackurlsAPI keys in provider-config.yaml / FINDOMAIN_* env
Resolve / brutepuredns, shuffledns (massdns), dnsx, gobuster dnsvalidated resolvers, wildcard filter
Permutationsalterx, Amass -alts, Subwiz, mksubtarget-specific wordlists
Recursive all-in-oneBBOT, reconFTW, Amass enum -activesee Frameworks below
Takeoversubzy, subjack, nuclei, baddns, ShadowSaaScan-i-take-over-xyz for status
Portsnaabu, masscan, RustScan, nmapconfirm masscan hits with nmap
HTTP probehttpx -sc -title -tech-detect -server; VanguardHTTP (Go/Wails desktop GUI: 1–1,000 workers with token-bucket RPS, HTTPS→HTTP fallback, CIDR expansion, offline tech/WAF rules, TLS cert and DNS inspection, Shodan-compatible MMH3 favicon hashes, “Hide Similar Sizes”, Burp/ZAP proxying, TXT export for nuclei/ffuf)[[raw/synthex.medium.com/vanguardhttp-http-probing-and-deep-fingerprinting-suite-16089
Contentffuf, feroxbuster, dirsearch, katana, gau/uro, unfurl, meg, Arjun—
JSLinkFinder, SecretFinder, GAP/JSLinkFinder (Burp), JSReconduit, js-recon, jsmon—
DorksGoogle/Bing operators, GitHub code search, GitGot—
Identity pivotsOsintHunter (local; username/email/phone/domain → correlated graph)see OSINT Tools ([[raw/offsecblog.com/osinthunter-building-investigation-graphs-from-a-single-identifier-15845

Pipeline skeleton (Wiz, Codefam, ProjectDiscovery). Run each scan into its own directory so runs diff (PD one-shot, Codefam):

subfinder -d target.com -all -silent > subs_subfinder.txt
curl -s "https://crt.sh/?q=%25.target.com&output=json" | jq -r '.[].name_value' | sed 's/\*\.//g' > subs_crt.txt
cat subs_*.txt | tr '[:upper:]' '[:lower:]' | sort -u > passive.txt
dig +short randomstring998877.target.com          # wildcard check before brute/permutation
cat passive.txt | alterx -silent | dnsx -silent -a -resp -o perms.txt
cat passive.txt | httpx -silent -ports 80,443,8080,8443,8000,8888,3000,5000,9000 \
  -status-code -title -tech-detect -server -content-length -o live.txt
awk '{print $1}' live.txt | katana -silent -jc -d 3 -kf all | grep -E '\.js(\?|$)' | sort -u > js.txt

Beyond the skeleton, chain headless crawl → parameter mining (Arjun) → reflection analysis (dalfox) into structured JSON (dev.to async pipelines).

Frameworks

  • reconFTW: passive/active subs, CT, NOERROR discovery, hakip2host, cdncheck, wafw00f, nmap, httpx, VhostFinder, gRPC reflection, LLM-endpoint fingerprinting (julius), ffuf, nuclei -dast, dalfox, testssl; --incremental, --adaptive-rate, checkpoints, hotlist.txt risk scoring, assets.jsonl, SUBTAKEOVER=true, AX-distributed runs (reconFTW).
  • BBOT: recursive Spiderfoot-like scanner with target-specific mutation brute force; add more unfiltered resolvers for speed (BBOT).

Broader walkthroughs: YesWeHack Recon Roundup, YesWeHack subdomain enum on ATG.

Pitfalls

  • Stopping at the main domain. Acquisitions and reverse WHOIS surface the forgotten assets (Wiz).
  • Keyless passive tools. subfinder/Amass without API keys return a fraction of results (Subdomain Enumeration, OWASP Amass).
  • Unvalidated resolvers / no wildcard check. Public resolvers return poisoned answers; wildcards are often scoped to a sub-zone (*.api.target.com) (BBOT 3.1.0).
  • Discarding names that don’t resolve once. A single DNS failure isn’t proof a name is gone, and dangling names are takeover candidates (Quasar, dreamsoftragedy).
  • Volume as a metric. 100K names → 2 real assets (100K → 2).
  • IP-only scanning. Wrong Host/SNI returns a default page behind CDNs (Assetnote); full-port sweeps of CDN edges waste time (naabu -exclude-cdn).
  • Bare nmap host. Top 1000 TCP only, no versions or scripts; use -p- with -sV/NSE (hakluke nmap).
  • Uncapped fuzzing and shared WAFs. ffuf has no default rate cap; aggressive enumeration across hosts behind one bot-protection vendor can ban you from all of them. Repeated Amass runs can get your IP blocked by scraped sources (Invadel, hakluke Amass).
  • Takeover false positives and theoretical reports. Fingerprint tools misfire on providers with verification (HubSpot, Statuspage); programs want a claimed resource serving a hidden PoC page (Intigriti takeover, 0xpatrik). A scan that silently failed transport is not “zero findings” (ShadowSaaS v1.1).
  • Reporting pattern matches as secrets. SecretFinder hits and domain-restricted front-end keys (e.g. Mapbox) need minimal proof of access before reporting (Suvendu Dash).
  • Trusting third-party attribution. Shodan/Censys org fields are often wrong; confirm scope before testing (Intigriti).
  • Recon without end. Apply the as93 stop rule.

Real-world cases

  • 100,787 wildcard names → 2 assets, one an outdated SmarterMail exposed to CVE-2025-52691 and CVE-2026-23760 (100K subdomains).
  • waybackurls → CamelCase file-name param list → ffuf -X POST -d "FUZZ=5" → four injectable params via sqlmap (0xmahmoudJo0).
  • Next.js chunk + .map → 81 KB of source exposing a WPGraphQL backend, form schema and env-var names (InfoSec Write-ups).
  • Leaked source map → hidden room-status API → valid logins → Jinja2 SSTI → root (lab) (HackSmarter Casino).
  • Hard-coded CryptoJS key in a login bundle used to encrypt a DOM XSS payload past the WAF (0xGh4zy).
  • robots.txt Disallow /backup → ProductTemplate.java.bak with a Postgres password (lab) (backup-file lab).
  • SPF include:amzonses.com typo on a .gov domain authorized 32,066 snowshoe-spam IPs; the same group took over dangling CNAMEs on universities and a state site (sh.consulting).
  • Honeypot: 48,688 addresses hit Jupyter 8888 in 31 days, 3,173 dumped env vars for API keys (AI infra scanning).
  • Agentic frameworks (likely ARTEX) recon’d hundreds of Auth0/Okta tenants in Oct–Nov 2026: scraped client_id/redirect_uri from sign-in pages, probed redirect/scope/PKCE/DPoP/JWT-signature weaknesses, registered i04probe<unix-ts>@… probe accounts and security@/billing@ prefixes (Okta). See Agentic AI Risks, Account Takeover.
  • curl-only lab chain on a Flask app: /apispec_1.json found by status-code mapping exposed every annotated route and a docstring admitting /api/admin checked only token presence; a role:user JWT then read all users, /api/v1/users/{id} was a sequential IDOR, the JWT had no exp, the CSRF token was static across sessions, and uploads trusted the multipart Content-Type (levelup).
  • Six-day engagement on a 45-host cloud platform: both real findings (a webhook allow-list bypass SSRF and a link-preview fetch) were spotted in production JS bundles before any API testing (Medium).

Checklist

  • Scope read: roots, wildcards, ranges, port-scan and rate rules noted; live-host list diffed against the written scope by hand
  • Acquisitions, reverse WHOIS, ASN → CIDR, Shodan/Censys org/cert/favicon pivots done; ownership verified
  • Cloud tenants (M365/Entra) and provider-hosted names (S3, PaaS) checked
  • Passive subs collected with API keys configured; CT history pulled
  • Resolvers validated; wildcard test (dig +short randomstring.target.com) per zone and sub-zone
  • Brute force with target-specific list; permutations; vhosts; PTR over ranges; TLS SANs; AXFR
  • Unresolved names kept; CNAME/NS/SPF/_acme-challenge/_dmarc/DKIM checked for takeover
  • Ports: top-1000 or full on owned ranges, CDN IPs excluded; risky ports and AI-tool ports flagged
  • httpx fingerprints triaged (401/403, defaults, odd stacks, dev|staging|uat|internal)
  • Archived and crawled URLs harvested; per-target wordlist built; ffuf with -ac and -rate
  • 405s re-tried with other verbs; backup/variant names guessed
  • JS collected live + archived; endpoints extracted; .map tried on every chunk; secrets validated
  • New hosts/paths/params fed back into earlier steps
  • Runs stored per directory; diffing and alerts (CT stream, amass track, jsmon) scheduled
  • Stop rule checked: no new surface in the last hour → test

Sub-pages

  • Asset Discovery: org-level seeds: acquisitions, reverse WHOIS, ASNs, Shodan/Censys, favicons, origin IPs, cloud tenants, EASM.
  • Google Dorking: Google, GitHub code-search and Shodan/Censys operators for passive exposure.
  • Subdomain Enumeration: passive sources, CT, resolvers, brute force, permutations, wildcards, probing.
  • OWASP Amass: intel/enum/track subcommands, flags, config and graph output.
  • Subdomain Takeover: dangling CNAME/NS/SPF records, provider fingerprints, PoC etiquette, escalation.
  • Port Scanning: passive vs. active, naabu/masscan/RustScan/nmap flags, ports to flag.
  • Content Discovery: archive harvesting, wordlists, ffuf flags, backups, vhosts, parameters, triage.
  • JavaScript Analysis: bundle collection, endpoint extraction, source maps, lazy chunks, secrets, JS monitoring.

See also: OSINT · Burp Suite · Web Fuzzing

Sources