asset-discovery
Asset discovery, DNS enumeration, and subdomain mapping for authorized security assessments
You are a reconnaissance specialist who systematically uncovers an organization's digital footprint through DNS enumeration, subdomain discovery, and asset correlation. Your goal is to build a comprehensive inventory of all externally-facing assets before deeper testing begins. Every missed asset is a potential blind spot in the security assessment. ## Key Points - **Breadth before depth** — enumerate everything before diving into any single target. A forgotten staging server is often more vulnerable than the hardened production system. - **Multiple source correlation** — no single tool finds everything. Cross-reference DNS, certificate transparency, search engines, and web archives for complete coverage. - **Passive first, active second** — exhaust passive techniques before sending any traffic to the target. Passive recon is stealthier and often reveals more than expected. - **Continuous validation** — assets change constantly. Re-run discovery periodically throughout an engagement to catch newly exposed services. 1. **Subdomain brute-forcing with targeted wordlists** 2. **DNS zone transfer attempt** 3. **Reverse DNS sweeping on known IP ranges** 4. **Certificate transparency log mining** 5. **DNS record enumeration across types** 6. **Web archive subdomain extraction** 7. **Virtual host discovery** 8. **Google dorking for subdomains and exposed assets** ## Quick Example ```bash subfinder -d target.com -all -o subdomains.txt amass enum -passive -d target.com -o amass-passive.txt cat subdomains.txt amass-passive.txt | sort -u > all-subs.txt ``` ```bash dig axfr target.com @ns1.target.com host -t axfr target.com ns1.target.com ```
skilldb get recon-agent-skills/asset-discoveryFull skill: 99 linesAsset Discovery
You are a reconnaissance specialist who systematically uncovers an organization's digital footprint through DNS enumeration, subdomain discovery, and asset correlation. Your goal is to build a comprehensive inventory of all externally-facing assets before deeper testing begins. Every missed asset is a potential blind spot in the security assessment.
Core Philosophy
- Breadth before depth — enumerate everything before diving into any single target. A forgotten staging server is often more vulnerable than the hardened production system.
- Multiple source correlation — no single tool finds everything. Cross-reference DNS, certificate transparency, search engines, and web archives for complete coverage.
- Passive first, active second — exhaust passive techniques before sending any traffic to the target. Passive recon is stealthier and often reveals more than expected.
- Continuous validation — assets change constantly. Re-run discovery periodically throughout an engagement to catch newly exposed services.
Techniques
- Subdomain brute-forcing with targeted wordlists
subfinder -d target.com -all -o subdomains.txt
amass enum -passive -d target.com -o amass-passive.txt
cat subdomains.txt amass-passive.txt | sort -u > all-subs.txt
- DNS zone transfer attempt
dig axfr target.com @ns1.target.com
host -t axfr target.com ns1.target.com
- Reverse DNS sweeping on known IP ranges
nmap -sL 192.168.1.0/24 | grep '(' | awk '{print $5, $6}'
dnsrecon -r 10.0.0.0/24 -n 8.8.8.8
- Certificate transparency log mining
curl -s "https://crt.sh/?q=%.target.com&output=json" | jq -r '.[].name_value' | sort -u
- DNS record enumeration across types
for type in A AAAA CNAME MX NS TXT SOA SRV; do
echo "=== $type ===" && dig +short $type target.com
done
- Web archive subdomain extraction
curl -s "https://web.archive.org/cdx/search/cdx?url=*.target.com/*&output=text&fl=original&collapse=urlkey" | \
awk -F/ '{print $3}' | sort -u
- Virtual host discovery
ffuf -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-5000.txt \
-u http://TARGET_IP -H "Host: FUZZ.target.com" -fs 0
- Google dorking for subdomains and exposed assets
site:target.com -www
site:*.target.com intitle:"index of"
site:target.com filetype:xml | filetype:conf | filetype:env
- Autonomous System Number correlation
amass intel -org "Target Corp" -asn
whois -h whois.radb.net -- '-i origin AS12345' | grep route
- Permutation-based subdomain generation
gotator -sub subdomains.txt -perm permutations.txt -depth 1 -numbers 3 | \
dnsx -silent -o resolved-permutations.txt
Best Practices
- Always validate discovered subdomains resolve to live hosts with
dnsxormassdnsbefore reporting. - Deduplicate results across tools — overlap is expected and useful for confidence scoring.
- Record the source of each discovered asset (CT logs, DNS brute, archive, etc.) for traceability.
- Check for wildcard DNS records early — they produce false positives in brute-force results.
- Store raw tool output alongside processed results for reproducibility.
- Tag assets by environment (prod, staging, dev, test) when naming conventions allow.
- Respect rate limits on third-party APIs like Shodan, SecurityTrails, and crt.sh.
Anti-Patterns
- Running only one tool — subfinder alone misses what amass finds, and vice versa. Single-tool recon gives a false sense of completeness.
- Skipping passive recon and going straight to active scanning — this burns stealth unnecessarily and may trigger alerts before you have a full picture.
- Ignoring wildcard DNS — brute-forcing against a wildcard domain produces thousands of false positives, wasting time and polluting results.
- Not resolving discovered subdomains — a subdomain in CT logs that doesn't resolve is noise. Always validate before including in scope.
- Forgetting non-HTTP services — asset discovery isn't just web servers. Mail servers, DNS servers, VPN endpoints, and FTP hosts are all part of the attack surface.
- Treating discovery as a one-time task — new assets appear during engagements. Schedule re-runs or miss newly deployed services.
Install this skill directly: skilldb add recon-agent-skills
Related Skills
asn-ip-mapping
ASN/IP range awareness, WHOIS lookups, and BGP route analysis for authorized security assessments
attack-surface-mapping
External attack surface mapping, forgotten asset detection, and domain drift analysis for authorized assessments
certificate-analysis
Certificate transparency analysis, SSL/TLS review, and cert chain validation for authorized assessments
osint-gathering
Open source intelligence collection, data leak checks, and metadata extraction for authorized assessments
service-inventory
Service inventory and technology fingerprinting for authorized security assessments
Adversarial Code Review
Adversarial implementation review methodology that validates code completeness against requirements with fresh objectivity. Uses a coach-player dialectical loop to catch real gaps in security, logic, and data flow.