Web App Recon: A Repeatable Methodology
A repeatable web application reconnaissance methodology for authorized pentests, from scope to app map, with a defensive takeaway for every step.

Most bad pentests fail before the first payload is sent. The tester skims the main domain, runs a scanner, and misses the forgotten staging server, the old API version and the admin panel on a subdomain nobody remembers.
Web application reconnaissance is the process of mapping a target’s hosts, endpoints and functionality before testing it for vulnerabilities. It’s the part of a web app assessment that decides what you’ll find later. This is the methodology I follow at the start of every authorized engagement. It’s built to be repeatable: same steps, same output files, every time. That makes it easy to compare results and hard to forget something.
Every step ends with a defensive takeaway, because anything you can find during recon, an attacker can find too.
All examples use
example.comas the target. Run these techniques only against systems you have written permission to test.
The web application reconnaissance workflow at a glance
| Phase | Goal | Output |
|---|---|---|
| 0. Scope | Know exactly what you may touch | scope.txt |
| 1. Passive discovery | Find assets without touching the target | subs-passive.txt |
| 2. Resolve and probe | Learn which assets are alive | live.txt |
| 3. Historical URLs | Recover old and forgotten endpoints | urls-archive.txt |
| 4. Content discovery | Find what isn’t linked anywhere | ffuf-*.json |
| 5. JavaScript analysis | Extract API routes and secrets from the front end | js-endpoints.txt |
| 6. Map the application | Understand roles, flows and trust boundaries | app-map.md |
Keep everything for an engagement in one folder:
mkdir -p ~/engagements/example-2026/{recon,notes,evidence}
cd ~/engagements/example-2026/recon
Phase 0: Confirm scope before anything else
Scope isn’t paperwork; it’s the line between a pentest and a crime. Before running a single command, write down:
- In-scope assets: exact domains, wildcards (
*.example.com), IP ranges and environments. - Out-of-scope assets: third-party SaaS, payment providers, anything shared with other customers.
- Rules of engagement: testing windows, rate limits, whether automated scanning is allowed, and who to call if something breaks.
# scope.txt
IN *.example.com
IN 203.0.113.0/24
OUT status.example.com # hosted by a third-party status page vendor
OUT pay.example.com # payment processor, not covered by contract
A wildcard like *.example.com doesn’t automatically cover every IP those names resolve to. If a subdomain points to a shared CDN or a SaaS platform, the infrastructure belongs to someone else. Flag it and ask.
Defensive takeaway: if you can’t write down your organization’s scope in five minutes, you don’t have an asset inventory. That’s the first gap to close.
Phase 1: Passive subdomain discovery
Passive discovery collects assets from public sources without sending a single packet to the target. It’s quiet, it’s safe, and it usually finds more than people expect.
Certificate transparency logs
Every publicly trusted TLS certificate is recorded in public Certificate Transparency logs, which you can search with crt.sh. Those logs reveal hostnames, including internal-sounding ones that were issued a public certificate by mistake.
curl -s "https://crt.sh/?q=%25.example.com&output=json" \
| jq -r '.[].name_value' \
| sed 's/^\*\.//' \
| sort -u > subs-crtsh.txt
Aggregated passive sources
Tools like subfinder query dozens of public data sources at once (some need free API keys for the best results):
subfinder -d example.com -all -silent -o subs-subfinder.txt
Merge everything into one list and strip anything out of scope:
cat subs-*.txt | sort -u | grep -vFf out-of-scope.txt > subs-passive.txt
wc -l subs-passive.txt
Don’t skip the human sources
- Code hosting: search public repositories for the company’s domain. Leaked config files, hard-coded endpoints and old API docs turn up more often than they should.
- Job postings: these reveal the tech stack (“experience with Kubernetes, Kafka and Keycloak”).
- Public docs and changelogs: API documentation often lists hosts and versions that are still live.
Defensive takeaway: run the same queries against your own domains every month. Every hostname in a certificate transparency log is public forever, so don’t put internal hostnames on publicly trusted certificates.
Phase 2: Resolve and probe live hosts
A subdomain list is only a list of names. Now find out which ones resolve and serve something.
Check your rules of engagement first. From this phase on you’re sending traffic to the target.
httpx -l subs-passive.txt \
-status-code -title -tech-detect -web-server \
-follow-redirects -rate-limit 20 \
-o live.txt
(This is ProjectDiscovery’s httpx, which is a different tool from the Python library with the same name.)
The output tells you a lot at a glance:
https://app.example.com [200] [Dashboard - Sign in] [nginx,React]
https://staging.example.com [200] [Dashboard - Sign in] [nginx,React]
https://old-api.example.com [200] [Swagger UI] [Express]
https://jenkins.example.com [403] [Forbidden] [Jetty]
Sort hosts into buckets and prioritize:
- Non-production environments:
staging,dev,uat,test. They often have weaker auth, debug modes and real data. - Old versions:
old-api,v1,legacy. They’re frequently unpatched and unmonitored. - Admin and tooling: CI servers, dashboards, monitoring panels.
- Interesting responses: a
403still means something is there. Don’t discard it.
If port scanning is in scope, check for web services on non-standard ports with naabu, gently:
naabu -list subs-passive.txt -top-ports 100 -rate 100 -silent -o ports.txt
Defensive takeaway: that staging box running last year’s build with a copy of production data is the classic breach entry point. Put non-production environments behind SSO or a VPN, and never seed them with real customer data.
Phase 3: Historical URLs
Web archives remember endpoints the application has long since stopped linking to. Many of them still work. gau pulls known URLs from several archives at once.
cat live.txt | awk '{print $1}' | sed 's#https\?://##' > hosts.txt
cat hosts.txt | gau --threads 5 > urls-archive.txt
Then filter for the interesting parts:
# URLs with parameters: candidates for injection and IDOR testing
grep '?' urls-archive.txt | sort -u > urls-params.txt
# Juicy file types
grep -Ei '\.(json|xml|env|bak|sql|zip|log|conf|ya?ml)(\?|$)' urls-archive.txt > urls-files.txt
# API routes and versions
grep -Ei '/api/|/v[0-9]+/|graphql' urls-archive.txt | sort -u > urls-api.txt
Look for patterns, not just individual URLs. If you see /api/v2/users/1042/invoices, ask whether /api/v1/ still exists and whether it checks authorization the same way.
Defensive takeaway: retiring an endpoint means removing it from the server, not just from the UI. Keep an inventory of API versions and turn old ones off on a schedule.
Phase 4: Content discovery
Some of the best findings are paths that were never linked anywhere: backup files, admin routes, exposed .git folders. ffuf is fast and flexible, and SecLists has wordlists for most stacks.
ffuf -u https://app.example.com/FUZZ \
-w ~/wordlists/raft-medium-directories.txt \
-mc 200,204,301,302,307,401,403 \
-ac -rate 30 \
-o ffuf-app.json -of json
A few habits that make this phase useful instead of noisy:
- Respect the rate limit in your rules of engagement.
-ratekeeps you from accidentally load-testing production. - Use auto-calibration (
-ac) to filter out soft-404 pages that return200for everything. - Match the wordlist to the stack. A Spring Boot app deserves a list with
/actuator/*paths; a PHP app deserves one with.phpbackups. - Check the quick wins by hand:
/.git/HEAD,/.env,/robots.txt,/sitemap.xml,/swagger.json,/openapi.json.
Defensive takeaway: add a CI check that fails the deploy if build artifacts like .git/, .env or *.map files end up in the public web root.
Phase 5: JavaScript analysis
Modern front ends ship a map of the API to every visitor. The JavaScript bundle often lists every route the app calls, including admin-only ones the UI hides from normal users.
Crawl the app with katana and collect its scripts:
katana -u https://app.example.com -d 3 -jc -silent -o crawl.txt
grep -E '\.js(\?|$)' crawl.txt | sort -u > js-files.txt
Pull out endpoints and anything that looks like a key:
while read -r url; do curl -s "$url"; done < js-files.txt > all.js
# API paths
grep -oE '"/(api|v[0-9]+)/[A-Za-z0-9_/{}:.-]+"' all.js | sort -u > js-endpoints.txt
# Possible secrets: verify by hand, most hits are false positives
grep -oEi '(api[_-]?key|secret|token)["'"'"']?\s*[:=]\s*["'"'"'][A-Za-z0-9_\-]{16,}' all.js
If the site serves source maps (app.js.map), you may be able to read the original, unminified source code, with comments.
What to look for:
- Routes containing
admin,internal,debugorexport. - Feature flags that hint at unreleased functionality.
- Third-party keys. Note that some are meant to be public (like a maps API key restricted by domain). Check what a key can actually do before reporting it.
Defensive takeaway: treat everything shipped to the browser as public. Enforce authorization on the server for every route, don’t publish source maps to production, and keep secrets out of front-end bundles entirely.
Phase 6: Map the application by hand
Tools find hosts and paths. Only a human can understand how the application works, and that’s where logic bugs live.
Proxy your browser through Burp Suite or OWASP ZAP and use the app the way a real user would. Do it with at least two accounts at different privilege levels. Then write an app-map.md covering:
- Roles: anonymous, user, admin, plus any team or organization roles.
- Key flows: sign-up, login, password reset, payments, invitations, file upload, export.
- Object identifiers: wherever the app references an object by ID (
/invoices/1042), note it. These are prime candidates for IDOR testing. - Trust boundaries: where does user input cross into something powerful, like a database query, a file path, a URL the server fetches, or a template?
- Integrations: webhooks, OAuth providers, third-party APIs.
## Flow: Invite teammate
- POST /api/v2/orgs/{orgId}/invites { email, role }
- Can a "member" set role=admin? → test
- Is orgId checked against the session? → test (IDOR)
- Invite link token: length? expiry? reuse? → test
This map becomes your test plan. Every “→ test” line is a hypothesis to check in the next phase of the engagement.
Defensive takeaway: threat-model the same flows during design reviews. The questions above (“can a member set role=admin?”) are cheaper to answer in a pull request than in a pentest report.
The recon checklist
Copy this into your notes for each engagement:
- Scope written down, with in, out and rules of engagement confirmed
- Certificate transparency and passive sources collected
- Code hosting, job postings and public docs searched
- Out-of-scope assets filtered out
- Live hosts probed and sorted into priority buckets
- Ports checked (if in scope)
- Historical URLs collected and filtered
- Content discovery run on priority hosts at an agreed rate
- JavaScript bundles and source maps analyzed
- App mapped by hand with two or more accounts
-
app-map.mdwritten with test hypotheses
Common recon mistakes
- Starting with a vulnerability scanner. Scanners test what you point them at. Recon decides what that is.
- Discarding
403and401responses. Something is there. Note it, and come back later. - Ignoring non-production. Staging is often the softest target in scope.
- Running tools at full speed. Taking down a client’s production site is a terrible first impression, and it may break your contract.
- Not saving output. If you can’t reproduce how you found an asset, you can’t put it in a report.
FAQ
What’s the difference between passive and active recon?
Passive recon collects information from third-party sources, such as certificate logs, web archives and public code, without sending traffic to the target. Active recon interacts with the target directly: probing hosts, scanning ports and requesting paths. Active recon must be covered by your rules of engagement.
Is web application reconnaissance legal?
Passive research on public sources is generally low risk, but active recon against systems you don’t own or have written permission to test can break computer misuse laws. Always get a signed scope and rules of engagement first. If you want to practice, use intentionally vulnerable labs or a bug bounty program’s published scope.
How long should recon take in a pentest?
It depends on the size of the scope: a single app might need a few hours, while a large wildcard scope can take days. Budget recon time explicitly when you plan the engagement. Rushing it usually means missing the assets where the serious findings are.
Which recon tools should a beginner learn first?
Start with an intercepting proxy (Burp Suite or OWASP ZAP), then add one tool per phase: subfinder for subdomains, httpx for probing, gau for historical URLs and ffuf for content discovery. For the full testing process, the OWASP Web Security Testing Guide is the standard reference.
Wrapping up
Good recon turns a pentest from “poke at the login page” into a targeted plan: a ranked list of hosts, a pile of forgotten endpoints, and a map of where the application trusts user input.
Run the same process on your own organization and you get something just as valuable: an honest picture of your attack surface, before someone else draws it for you.
Next in this series: testing the object IDs you just mapped for IDOR vulnerabilities.