[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M770NP8JC0WDSV19937AR9X2":3,"skill-same:01M770NP8JC0WDSV19937AR9X2":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M770NP8JC0WDSV19937AR9X2","passive-recon",null,"Passive intelligence gathering without touching the target — DNS, WHOIS, subdomain enumeration, Certificate Transparency, technology fingerprinting, ASN mapping.","Iwakishirokoshu\u002FHermesUltimate","Iwakishirokoshu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F194847626?v=4","01M75P4CVGA89TTCE8JGMNAQQ9","Around","01M75P4CWF85V6GVSEFKGGFZ03",0,"MIT","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Frecon\u002Fpassive-recon\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: passive-recon\ndescription: \"Passive intelligence gathering without touching the target — DNS, WHOIS, subdomain enumeration, Certificate Transparency, technology fingerprinting, ASN mapping.\"\nallowed-tools: Bash Read Write\nmetadata:\n  subdomain: reconnaissance\n  when_to_use: \"passive recon, WHOIS, DNS lookup, subdomain, subfinder, amass, crt.sh, certificate transparency, ASN, httpx, tech fingerprint\"\n  tags: passive, dns, subdomain-enum, whois, ct-logs, httpx, asn\n  mitre_attack: T1590, T1591, T1592, T1593, T1596\n---\n\n# Passive Reconnaissance Knowledge Base\n\nPassive reconnaissance gathers intelligence **without directly interacting with the target's systems**. This leaves no logs, no alerts, and no fingerprints on the target. Always exhaust passive methods before transitioning to active techniques.\n\n## Quick Reference — Copy-Paste Commands\n```bash\n# Full passive workflow for \u003CTARGET>\nwhois \u003CTARGET>\ndig \u003CTARGET> ANY +noall +answer\nsubfinder -d \u003CTARGET> -o subdomains.txt\namass enum -passive -d \u003CTARGET> -o amass_subs.txt\ncurl -s \"https:\u002F\u002Fcrt.sh\u002F?q=%25.\u003CTARGET>&output=json\" | python3 -c \"import sys,json; [print(x['name_value']) for x in json.load(sys.stdin)]\" | sort -u\nhttpx -l subdomains.txt -sc -cl -ct -title -tech-detect -o httpx_\u003CTARGET>.txt\ncurl -sI https:\u002F\u002F\u003CTARGET>\n```\n\n## 1. WHOIS Intelligence\n\n### Domain WHOIS\n```bash\nwhois example.com\n```\n**Extract:** Registrar, creation\u002Fexpiration dates, nameservers, registrant organization, abuse contacts.\n\n### IP WHOIS (ASN Mapping)\n```bash\nwhois -h whois.radb.net -- '-i origin AS12345'\nwhois \u003CIP_ADDRESS>\n```\n**Extract:** ASN ownership, IP ranges allocated, network name, organization.\n\n### BGP\u002FASN Enumeration\n```bash\n# ASN lookup via Team Cymru\nwhois -h whois.cymru.com \" -v \u003CIP_ADDRESS>\"\n\n# All prefixes for an ASN\nwhois -h whois.radb.net -- '-i origin AS12345' | grep route\n\n# Using amass for ASN intelligence\namass intel -asn \u003CASN_NUMBER>\n```\n\n### Key Analysis Points\n- **Registrar patterns**: Same registrar across multiple domains may indicate shared ownership\n- **Nameserver clustering**: Shared NS records reveal infrastructure relationships\n- **Registration dates**: Recently registered domains may indicate campaign infrastructure\n- **Privacy protection**: WHOIS privacy services indicate security awareness\n- **ASN ownership**: Map all IP ranges belonging to the target organization\n\n## 2. DNS Reconnaissance\n\n### Comprehensive Record Queries\n```bash\n# All record types\ndig example.com ANY +noall +answer\n\n# Specific records\ndig example.com A +short\ndig example.com AAAA +short\ndig example.com MX +short\ndig example.com NS +short\ndig example.com TXT +short\ndig example.com CNAME +short\ndig example.com SOA +short\n\n# Reverse DNS\ndig -x \u003CIP_ADDRESS> +short\n```\n\n### DNS Zone Transfer Attempt\n```bash\n# Enumerate nameservers first\ndig example.com NS +short\n\n# Attempt zone transfer (AXFR)\ndig @ns1.example.com example.com AXFR\n```\n**Note:** Zone transfers are a grey area — they are a DNS protocol feature but unauthorized transfers may violate ROE. Confirm scope before attempting.\n\n### DNS Analysis Patterns\n- **MX records**: Reveal email infrastructure (Google Workspace, Microsoft 365, self-hosted)\n- **TXT records**: SPF, DKIM, DMARC reveal email security posture; may contain verification tokens leaking service usage\n- **NS delegation**: Identifies DNS hosting provider (Cloudflare, AWS Route53, etc.)\n- **CNAME chains**: Expose CDN usage, third-party service integrations, potential subdomain takeover candidates\n- **SOA records**: Reveal primary DNS admin, serial numbers (change frequency indicator)\n- **CAA records**: Certificate Authority Authorization — reveals which CAs can issue certs\n\n## 3. Subdomain Enumeration\n\n### subfinder (Primary Tool)\n```bash\n# Basic enumeration\nsubfinder -d example.com -silent\n\n# Save to file for large results\nsubfinder -d example.com -o subdomains.txt\n\n# Multiple sources with verbose\nsubfinder -d example.com -all -v\n\n# Recursive enumeration\nsubfinder -d example.com -recursive\n```\n\n### amass (Comprehensive)\n```bash\n# Passive-only enumeration (no DNS brute force)\namass enum -passive -d example.com -o amass_subs.txt\n\n# With additional intelligence sources\namass enum -passive -d example.com -src -ip\n\n# Intel mode — discover root domains from ASN\u002Forg\namass intel -org \"Target Corp\"\namass intel -asn 12345 -whois -d example.com\n```\n\n### DNS Brute Force (Secondary)\n```bash\n# Using a wordlist if available\nfor sub in $(cat \u002Fusr\u002Fshare\u002Fwordlists\u002Fsubdomains.txt); do\n    dig +short \"$sub.example.com\" | grep -v \"^$\" && echo \"$sub.example.com\"\ndone\n```\n\n### Subdomain Analysis\n- **Naming patterns**: `dev.`, `staging.`, `test.`, `admin.`, `vpn.`, `mail.` reveal internal structure\n- **IP clustering**: Group subdomains by IP to identify shared hosting \u002F infrastructure segments\n- **Cloud indicators**: `*.amazonaws.com`, `*.azurewebsites.net` CNAME targets reveal cloud usage\n- **Dangling CNAMEs**: Subdomains pointing to deprovisioned services = potential subdomain takeover\n\n## 4. Certificate Transparency (CT) Logs\n\n### Using crt.sh\n```bash\ncurl -s \"https:\u002F\u002Fcrt.sh\u002F?q=%25.example.com&output=json\" | \\\n    python3 -c \"import sys,json; [print(x['name_value']) for x in json.load(sys.stdin)]\" | \\\n    sort -u\n```\n\n### Analysis Value\n- CT logs are a **public, immutable** record of all TLS certificates issued\n- Reveals subdomains not found by DNS enumeration\n- Shows historical certificates — even revoked ones expose past infrastructure\n- Wildcard certificates (`*.example.com`) indicate broad subdomain usage\n\n## 5. Web Fingerprinting (Passive)\n\n### HTTP Headers Analysis\n```bash\ncurl -sI https:\u002F\u002Fexample.com\n```\n**Look for:**\n- `Server`: Web server software and version\n- `X-Powered-By`: Backend framework\n- `X-CDN`, `CF-RAY`: CDN identification\n- `Strict-Transport-Security`: HSTS configuration\n- `Content-Security-Policy`: CSP reveals allowed domains \u002F integrations\n\n### httpx — Bulk Probing & Tech Detection\n```bash\n# Probe all subdomains with tech detection\nhttpx -l subdomains.txt -sc -cl -ct -title -tech-detect -o httpx_results.txt\n\n# Filter live hosts with specific status codes\nhttpx -l subdomains.txt -mc 200,301,302,403 -title -tech-detect\n\n# JSON output for parsing\nhttpx -l subdomains.txt -sc -title -tech-detect -json -o httpx.json\n```\n**httpx is critical for:**\n- Validating which subdomains are actually alive (HTTP response)\n- Bulk technology fingerprinting (frameworks, CDN, WAF)\n- Status code and content-length triage\n\n### Technology Stack Detection\n```bash\ncurl -s https:\u002F\u002Fexample.com | grep -Ei '(wp-content|drupal|joomla|next|react|angular|vue)'\n```\n\n## 6. Tool Chaining & Output Normalization\n\n### Piping Between Tools\n```bash\n# subfinder → httpx → nuclei pipeline\nsubfinder -d \u003CTARGET> -silent | httpx -silent -sc -title -tech-detect | tee live_\u003CTARGET>.txt\ncat live_\u003CTARGET>.txt | awk '{print $1}' | nuclei -severity critical,high -silent\n\n# CT logs → dedup → resolve\ncurl -s \"https:\u002F\u002Fcrt.sh\u002F?q=%25.\u003CTARGET>&output=json\" | \\\n  python3 -c \"import sys,json; [print(x['name_value']) for x in json.load(sys.stdin)]\" | \\\n  sort -u | httpx -silent -o ct_live_\u003CTARGET>.txt\n\n# amass + subfinder → merge → dedup\ncat amass_subs.txt subdomains.txt | sort -u > all_subs_\u003CTARGET>.txt\n```\n\n### Output Normalization\nNormalize all subdomain sources into a single format for downstream tools:\n```bash\n# Standard format: one subdomain per line, no protocol, no trailing dot\ncat all_subs_\u003CTARGET>.txt | \\\n  sed 's|https\\?:\u002F\u002F||; s|\u002F.*||; s|\\.$||' | \\\n  tr '[:upper:]' '[:lower:]' | sort -u > normalized_subs_\u003CTARGET>.txt\n```\n\n## 7. Passive DNS & Historical Analysis\n\n### Passive DNS Sources\n```bash\n# SecurityTrails API (if available)\ncurl -s \"https:\u002F\u002Fapi.securitytrails.com\u002Fv1\u002Fdomain\u002F\u003CTARGET>\u002Fsubdomains\" \\\n  -H \"APIKEY: $ST_KEY\" | python3 -m json.tool\n\n# VirusTotal passive DNS\ncurl -s \"https:\u002F\u002Fwww.virustotal.com\u002Fapi\u002Fv3\u002Fdomains\u002F\u003CTARGET>\u002Fresolutions?limit=40\" \\\n  -H \"x-apikey: $VT_KEY\" | python3 -c \"\nimport sys, json\ndata = json.load(sys.stdin)\nfor r in data.get('data', []):\n  attrs = r['attributes']\n  print(f\\\"{attrs.get('date','?')}  {attrs.get('host_name','?')} -> {attrs.get('ip_address','?')}\\\")\n\"\n```\n\n### Historical DNS Value\n- **IP changes** reveal infrastructure migrations (on-prem → cloud)\n- **Old A records** may still resolve to accessible legacy servers\n- **Expired CNAME targets** are subdomain takeover candidates\n- **MX history** shows email provider changes\n\n## 8. OSINT Handoff\n\n> **Boundary**: Passive recon covers **technical infrastructure** (DNS, subdomains, WHOIS, ASN, CT logs, web fingerprinting). For **human and organizational intelligence** (email harvesting, employee enumeration, GitHub secret scanning, breach data, social media, Google dorking, Wayback Machine), use the dedicated `osint` skill.\n\nAfter completing passive recon, hand off discovered domains and infrastructure data to the `osint` skill for:\n- Email pattern discovery from discovered domains\n- Employee and org structure enumeration\n- GitHub\u002FGitLab secret scanning for discovered organizations\n- Breach exposure assessment for discovered email domains\n- Google dorking using discovered subdomains and paths\n- Wayback Machine analysis of discovered URLs\n\n## 9. Error Handling & Edge Cases\n\n### When Tools Fail\n| Problem | Cause | Solution |\n|---------|-------|----------|\n| subfinder returns 0 results | API keys not configured | Run with `-all` flag; add API keys to `~\u002F.config\u002Fsubfinder\u002Fprovider-config.yaml` |\n| crt.sh timeout | Rate limiting | Wait 30s and retry; use local CT log mirror if available |\n| httpx hangs on large list | Too many concurrent requests | Add `-threads 25 -timeout 5` |\n| amass very slow | Default config too aggressive | Use `-passive` flag only; set timeout with `-timeout 10` |\n| WHOIS blocked | Rate limited by registrar | Try alternative WHOIS server: `whois -h whois.verisign-grs.com \u003CTARGET>` |\n\n### False Positive Reduction\n- **Wildcard DNS**: Check if `*.TARGET` resolves → if yes, filter out wildcard IPs from subdomain results\n- **Parking pages**: httpx title containing \"parked\", \"coming soon\", \"default\" → deprioritize\n- **CDN IPs**: Multiple subdomains resolving to same CDN IP ≠ same server\n\n```bash\n# Detect wildcard DNS\nWILDCARD_IP=$(dig +short nonexistent-random-string.\u003CTARGET>)\nif [ -n \"$WILDCARD_IP\" ]; then\n  echo \"WILDCARD detected: $WILDCARD_IP — filtering results\"\n  grep -v \"$WILDCARD_IP\" resolved_subs.txt > filtered_subs.txt\nfi\n```\n\n## 10. Workflow: Passive Recon Sequence\n\n1. **WHOIS + ASN** → Establish ownership, registrar, nameservers, IP ranges\n2. **DNS Records** → Map A, MX, NS, TXT, SOA, CAA records\n3. **Subdomain Enumeration** → subfinder + amass + CT logs\n4. **Deduplicate & Normalize** → Merge all sources, remove wildcards\n5. **Live Host Probing** → httpx on all discovered subdomains\n6. **Passive DNS History** → Check for old IPs, infrastructure changes\n7. **Web Fingerprinting** → Technology stack on key assets\n8. **→ Hand off to `osint` skill** → Email, employee, GitHub, breach, social media, dorking\n9. **Synthesis** → Build infrastructure map, identify high-value targets for active phase\n\n## 11. Decision Gate: Passive → Active Transition\n\nBefore moving to active reconnaissance, you must have:\n- [ ] Complete domain\u002Fsubdomain inventory (deduplicated, wildcard-filtered)\n- [ ] DNS infrastructure map (nameservers, mail servers, CDN)\n- [ ] IP address grouping and ASN mapping\n- [ ] Live host validation (httpx results)\n- [ ] Technology stack indicators\n- [ ] Passive DNS history reviewed\n- [ ] OSINT findings documented\n- [ ] Identified high-value targets that justify active probing\n\n## Bundled Resources\n\n### References\n- `references\u002Fdns-techniques.md` — DNS record types, subdomain tool comparison, CT deep dive, ASN\u002FBGP intel, passive DNS databases. Read when you need detailed technique reference beyond this skill's quick-reference commands.\n\n### Scripts\n- `scripts\u002Fparse_subdomains.py` — Parse and deduplicate subdomain results from multiple tools. Usage: `python scripts\u002Fparse_subdomains.py recon\u002F*.txt -d \u003CTARGET> -o recon\u002Fall_subs.txt`\n","# Passive Reconnaissance Knowledge Base\n\nPassive reconnaissance gathers intelligence **without directly interacting with the target's systems**. This leaves no logs, no alerts, and no fingerprints on the target. Always exhaust passive methods before transitioning to active techniques.\n\n## Quick Reference — Copy-Paste Commands\n```bash\n# Full passive workflow for \u003CTARGET>\nwhois \u003CTARGET>\ndig \u003CTARGET> ANY +noall +answer\nsubfinder -d \u003CTARGET> -o subdomains.txt\namass enum -passive -d \u003CTARGET> -o amass_subs.txt\ncurl -s \"https:\u002F\u002Fcrt.sh\u002F?q=%25.\u003CTARGET>&output=json\" | python3 -c \"import sys,json; [print(x['name_value']) for x in json.load(sys.stdin)]\" | sort -u\nhttpx -l subdomains.txt -sc -cl -ct -title -tech-detect -o httpx_\u003CTARGET>.txt\ncurl -sI https:\u002F\u002F\u003CTARGET>\n```\n\n## 1. WHOIS Intelligence\n\n### Domain WHOIS\n```bash\nwhois example.com\n```\n**Extract:** Registrar, creation\u002Fexpiration dates, nameservers, registrant organization, abuse contacts.\n\n### IP WHOIS (ASN Mapping)\n```bash\nwhois -h whois.radb.net -- '-i origin AS12345'\nwhois \u003CIP_ADDRESS>\n```\n**Extract:** ASN ownership, IP ranges allocated, network name, organization.\n\n### BGP\u002FASN Enumeration\n```bash\n# ASN lookup via Team Cymru\nwhois -h whois.cymru.com \" -v \u003CIP_ADDRESS>\"\n\n# All prefixes for an ASN\nwhois -h whois.radb.net -- '-i origin AS12345' | grep route\n\n# Using amass for ASN intelligence\namass intel -asn \u003CASN_NUMBER>\n```\n\n### Key Analysis Points\n- **Registrar patterns**: Same registrar across multiple domains may indicate shared ownership\n- **Nameserver clustering**: Shared NS records reveal infrastructure relationships\n- **Registration dates**: Recently registered domains may indicate campaign infrastructure\n- **Privacy protection**: WHOIS privacy services indicate security awareness\n- **ASN ownership**: Map all IP ranges belonging to the target organization\n\n## 2. DNS Reconnaissance\n\n### Comprehensive Record Queries\n```bash\n# All record types\ndig example.com ANY +noall +answer\n\n# Specific records\ndig example.com A +short\ndig example.com AAAA +short\ndig example.com MX +short\ndig example.com NS +short\ndig example.com TXT +short\ndig example.com CNAME +short\ndig example.com SOA +short\n\n# Reverse DNS\ndig -x \u003CIP_ADDRESS> +short\n```\n\n### DNS Zone Transfer Attempt\n```bash\n# Enumerate nameservers first\ndig example.com NS +short\n\n# Attempt zone transfer (AXFR)\ndig @ns1.example.com example.com AXFR\n```\n**Note:** Zone transfers are a grey area — they are a DNS protocol feature but unauthorized transfers may violate ROE. Confirm scope before attempting.\n\n### DNS Analysis Patterns\n- **MX records**: Reveal email infrastructure (Google Workspace, Microsoft 365, self-hosted)\n- **TXT records**: SPF, DKIM, DMARC reveal email security posture; may contain verification tokens leaking service usage\n- **NS delegation**: Identifies DNS hosting provider (Cloudflare, AWS Route53, etc.)\n- **CNAME chains**: Expose CDN usage, third-party service integrations, potential subdomain takeover candidates\n- **SOA records**: Reveal primary DNS admin, serial numbers (change frequency indicator)\n- **CAA records**: Certificate Authority Authorization — reveals which CAs can issue certs\n\n## 3. Subdomain Enumeration\n\n### subfinder (Primary Tool)\n```bash\n# Basic enumeration\nsubfinder -d example.com -silent\n\n# Save to file for large results\nsubfinder -d example.com -o subdomains.txt\n\n# Multiple sources with verbose\nsubfinder -d example.com -all -v\n\n# Recursive enumeration\nsubfinder -d example.com -recursive\n```\n\n### amass (Comprehensive)\n```bash\n# Passive-only enumeration (no DNS brute force)\namass enum -passive -d example.com -o amass_subs.txt\n\n# With additional intelligence sources\namass enum -passive -d example.com -src -ip\n\n# Intel mode — discover root domains from ASN\u002Forg\namass intel -org \"Target Corp\"\namass intel -asn 12345 -whois -d example.com\n```\n\n### DNS Brute Force (Secondary)\n```bash\n# Using a wordlist if available\nfor sub in $(cat \u002Fusr\u002Fshare\u002Fwordlists\u002Fsubdomains.txt); do\n    dig +short \"$sub.example.com\" | grep -v \"^$\" && echo \"$sub.example.com\"\ndone\n```\n\n### Subdomain Analysis\n- **Naming patterns**: `dev.`, `staging.`, `test.`, `admin.`, `vpn.`, `mail.` reveal internal structure\n- **IP clustering**: Group subdomains by IP to identify shared hosting \u002F infrastructure segments\n- **Cloud indicators**: `*.amazonaws.com`, `*.azurewebsites.net` CNAME targets reveal cloud usage\n- **Dangling CNAMEs**: Subdomains pointing to deprovisioned services = potential subdomain takeover\n\n## 4. Certificate Transparency (CT) Logs\n\n### Using crt.sh\n```bash\ncurl -s \"https:\u002F\u002Fcrt.sh\u002F?q=%25.example.com&output=json\" | \\\n    python3 -c \"import sys,json; [print(x['name_value']) for x in json.load(sys.stdin)]\" | \\\n    sort -u\n```\n\n### Analysis Value\n- CT logs are a **public, immutable** record of all TLS certificates issued\n- Reveals subdomains not found by DNS enumeration\n- Shows historical certificates — even revoked ones expose past infrastructure\n- Wildcard certificates (`*.example.com`) indicate broad subdomain usage\n\n## 5. Web Fingerprinting (Passive)\n\n### HTTP Headers Analysis\n```bash\ncurl -sI https:\u002F\u002Fexample.com\n```\n**Look for:**\n- `Server`: Web server software and version\n- `X-Powered-By`: Backend framework\n- `X-CDN`, `CF-RAY`: CDN identification\n- `Strict-Transport-Security`: HSTS configuration\n- `Content-Security-Policy`: CSP reveals allowed domains \u002F integrations\n\n### httpx — Bulk Probing & Tech Detection\n```bash\n# Probe all subdomains with tech detection\nhttpx -l subdomains.txt -sc -cl -ct -title -tech-detect -o httpx_results.txt\n\n# Filter live hosts with specific status codes\nhttpx -l subdomains.txt -mc 200,301,302,403 -title -tech-detect\n\n# JSON output for parsing\nhttpx -l subdomains.txt -sc -title -tech-detect -json -o httpx.json\n```\n**httpx is critical for:**\n- Validating which subdomains are actually alive (HTTP response)\n- Bulk technology fingerprinting (frameworks, CDN, WAF)\n- Status code and content-length triage\n\n### Technology Stack Detection\n```bash\ncurl -s https:\u002F\u002Fexample.com | grep -Ei '(wp-content|drupal|joomla|next|react|angular|vue)'\n```\n\n## 6. Tool Chaining & Output Normalization\n\n### Piping Between Tools\n```bash\n# subfinder → httpx → nuclei pipeline\nsubfinder -d \u003CTARGET> -silent | httpx -silent -sc -title -tech-detect | tee live_\u003CTARGET>.txt\ncat live_\u003CTARGET>.txt | awk '{print $1}' | nuclei -severity critical,high -silent\n\n# CT logs → dedup → resolve\ncurl -s \"https:\u002F\u002Fcrt.sh\u002F?q=%25.\u003CTARGET>&output=json\" | \\\n  python3 -c \"import sys,json; [print(x['name_value']) for x in json.load(sys.stdin)]\" | \\\n  sort -u | httpx -silent -o ct_live_\u003CTARGET>.txt\n\n# amass + subfinder → merge → dedup\ncat amass_subs.txt subdomains.txt | sort -u > all_subs_\u003CTARGET>.txt\n```\n\n### Output Normalization\nNormalize all subdomain sources into a single format for downstream tools:\n```bash\n# Standard format: one subdomain per line, no protocol, no trailing dot\ncat all_subs_\u003CTARGET>.txt | \\\n  sed 's|https\\?:\u002F\u002F||; s|\u002F.*||; s|\\.$||' | \\\n  tr '[:upper:]' '[:lower:]' | sort -u > normalized_subs_\u003CTARGET>.txt\n```\n\n## 7. Passive DNS & Historical Analysis\n\n### Passive DNS Sources\n```bash\n# SecurityTrails API (if available)\ncurl -s \"https:\u002F\u002Fapi.securitytrails.com\u002Fv1\u002Fdomain\u002F\u003CTARGET>\u002Fsubdomains\" \\\n  -H \"APIKEY: $ST_KEY\" | python3 -m json.tool\n\n# VirusTotal passive DNS\ncurl -s \"https:\u002F\u002Fwww.virustotal.com\u002Fapi\u002Fv3\u002Fdomains\u002F\u003CTARGET>\u002Fresolutions?limit=40\" \\\n  -H \"x-apikey: $VT_KEY\" | python3 -c \"\nimport sys, json\ndata = json.load(sys.stdin)\nfor r in data.get('data', []):\n  attrs = r['attributes']\n  print(f\\\"{attrs.get('date','?')}  {attrs.get('host_name','?')} -> {attrs.get('ip_address','?')}\\\")\n\"\n```\n\n### Historical DNS Value\n- **IP changes** reveal infrastructure migrations (on-prem → cloud)\n- **Old A records** may still resolve to accessible legacy servers\n- **Expired CNAME targets** are subdomain takeover candidates\n- **MX history** shows email provider changes\n\n## 8. OSINT Handoff\n\n> **Boundary**: Passive recon covers **technical infrastructure** (DNS, subdomains, WHOIS, ASN, CT logs, web fingerprinting). For **human and organizational intelligence** (email harvesting, employee enumeration, GitHub secret scanning, breach data, social media, Google dorking, Wayback Machine), use the dedicated `osint` skill.\n\nAfter completing passive recon, hand off discovered domains and infrastructure data to the `osint` skill for:\n- Email pattern discovery from discovered domains\n- Employee and org structure enumeration\n- GitHub\u002FGitLab secret scanning for discovered organizations\n- Breach exposure assessment for discovered email domains\n- Google dorking using discovered subdomains and paths\n- Wayback Machine analysis of discovered URLs\n\n## 9. Error Handling & Edge Cases\n\n### When Tools Fail\n| Problem | Cause | Solution |\n|---------|-------|----------|\n| subfinder returns 0 results | API keys not configured | Run with `-all` flag; add API keys to `~\u002F.config\u002Fsubfinder\u002Fprovider-config.yaml` |\n| crt.sh timeout | Rate limiting | Wait 30s and retry; use local CT log mirror if available |\n| httpx hangs on large list | Too many concurrent requests | Add `-threads 25 -timeout 5` |\n| amass very slow | Default config too aggressive | Use `-passive` flag only; set timeout with `-timeout 10` |\n| WHOIS blocked | Rate limited by registrar | Try alternative WHOIS server: `whois -h whois.verisign-grs.com \u003CTARGET>` |\n\n### False Positive Reduction\n- **Wildcard DNS**: Check if `*.TARGET` resolves → if yes, filter out wildcard IPs from subdomain results\n- **Parking pages**: httpx title containing \"parked\", \"coming soon\", \"default\" → deprioritize\n- **CDN IPs**: Multiple subdomains resolving to same CDN IP ≠ same server\n\n```bash\n# Detect wildcard DNS\nWILDCARD_IP=$(dig +short nonexistent-random-string.\u003CTARGET>)\nif [ -n \"$WILDCARD_IP\" ]; then\n  echo \"WILDCARD detected: $WILDCARD_IP — filtering results\"\n  grep -v \"$WILDCARD_IP\" resolved_subs.txt > filtered_subs.txt\nfi\n```\n\n## 10. Workflow: Passive Recon Sequence\n\n1. **WHOIS + ASN** → Establish ownership, registrar, nameservers, IP ranges\n2. **DNS Records** → Map A, MX, NS, TXT, SOA, CAA records\n3. **Subdomain Enumeration** → subfinder + amass + CT logs\n4. **Deduplicate & Normalize** → Merge all sources, remove wildcards\n5. **Live Host Probing** → httpx on all discovered subdomains\n6. **Passive DNS History** → Check for old IPs, infrastructure changes\n7. **Web Fingerprinting** → Technology stack on key assets\n8. **→ Hand off to `osint` skill** → Email, employee, GitHub, breach, social media, dorking\n9. **Synthesis** → Build infrastructure map, identify high-value targets for active phase\n\n## 11. Decision Gate: Passive → Active Transition\n\nBefore moving to active reconnaissance, you must have:\n- [ ] Complete domain\u002Fsubdomain inventory (deduplicated, wildcard-filtered)\n- [ ] DNS infrastructure map (nameservers, mail servers, CDN)\n- [ ] IP address grouping and ASN mapping\n- [ ] Live host validation (httpx results)\n- [ ] Technology stack indicators\n- [ ] Passive DNS history reviewed\n- [ ] OSINT findings documented\n- [ ] Identified high-value targets that justify active probing\n\n## Bundled Resources\n\n### References\n- `references\u002Fdns-techniques.md` — DNS record types, subdomain tool comparison, CT deep dive, ASN\u002FBGP intel, passive DNS databases. Read when you need detailed technique reference beyond this skill's quick-reference commands.\n\n### Scripts\n- `scripts\u002Fparse_subdomains.py` — Parse and deduplicate subdomain results from multiple tools. Usage: `python scripts\u002Fparse_subdomains.py recon\u002F*.txt -d \u003CTARGET> -o recon\u002Fall_subs.txt`\n",{"name":5,"metadata":24,"description":7,"allowed-tools":29},{"tags":25,"subdomain":26,"when_to_use":27,"mitre_attack":28},"passive, dns, subdomain-enum, whois, ct-logs, httpx, asn","reconnaissance","passive recon, WHOIS, DNS lookup, subdomain, subfinder, amass, crt.sh, certificate transparency, ASN, httpx, tech fingerprint","T1590, T1591, T1592, T1593, T1596","Bash Read Write","main","c0c483827a963764d5e1a663a9591867d47289e6","stack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Frecon\u002Fpassive-recon","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu","2026-06-15 13:48:41",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Iwakishirokoshu\u002FHermesUltimate --skill passive-recon",{"tool":42,"command":43},"bunx","bunx skills add Iwakishirokoshu\u002FHermesUltimate --skill passive-recon",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Iwakishirokoshu\u002FHermesUltimate --skill passive-recon","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Frecon\u002Fpassive-recon\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fdns-techniques.md","REFERENCE","参考文档",3519,"https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Frecon\u002Fpassive-recon\u002Freferences\u002Fdns-techniques.md",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"scripts\u002Fparse_subdomains.py","SCRIPT","脚本",2244,"https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Frecon\u002Fpassive-recon\u002Fscripts\u002Fparse_subdomains.py",[63,70,77,84,91,98],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M770W8JDE5EC1TJT4GSDWD78","wps-pixie-dust","WPS Pixie-Dust offline nonce attack (reaver -K \u002F pixiewps) and fallback online PIN brute (bully) to recover the AP's WPA PSK without capturing a handshake.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M770W4B7T5VCVHB88V1F02H1","wpa3-sae","WPA3-SAE transition-mode downgrade (DragonShift), SSID Confusion CVE-2023-52424, Dragonblood side-channels, and SAE captive-portal credential recovery against WPA3-Personal networks.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M770W093C8FAV8S34K8VB6T9","wpa2-psk","WPA\u002FWPA2-PSK handshake capture via targeted deauth + PMKID (no deauth required) + offline hashcat cracking. The most common consumer\u002FSMB encryption mode in 2026.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M770VTNAQGZ3D0RQVFEKTE8Z","wpa-enterprise-eap","WPA\u002FWPA2\u002FWPA3-Enterprise (802.1X\u002FEAP) rogue-RADIUS evil-twin for MSCHAPv2 capture, GTC downgrade, and PEAP relay. MSCHAPv2 capture equals a NetNTLM hash — the primary wireless on-ramp to Active Directory.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M770VNG05ZX3CV84R9GX8PJN","krack-fragattacks","KRACK key-reinstallation (CVE-2017-13077..13082) and FragAttacks fragmentation\u002Faggregation flaws (CVE-2020-24586..24588, CVE-2020-26139..26147) against legacy or embedded 802.11 supplicants with poor patch cadence.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M770VHFH7N192V56PFSRXF5K","evil-twin-karma","Evil-twin rogue AP with KARMA\u002FMana PNL-probe response, captive-portal credential capture, and post-association MITM for PSK\u002Fopen networks. Distinct from wpa-enterprise-eap which targets 802.1X.","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]