# Asset Discovery
> Org-level recon that expands a company name into the full set of root domains, IP ranges, cloud endpoints and tenants it owns, before any per-host subdomain or content work; the defender-side version is External Attack Surface Management (EASM).
## How it works
Asset discovery sits above [[Subdomain Enumeration]]: its output is the *seed list* (root domains, ASNs/CIDRs, cloud tenants, unlinked IPs) that everything downstream fans out from. The standard sequence (Wiz Bug Bounty Masterclass, ProjectDiscovery one-shot script):
1. **Root domain discovery**: acquisitions and WHOIS (Crunchbase, whoxy.com), reverse WHOIS on the registrant org.
2. **IP-space discovery**: ASN to CIDR, then reverse DNS on those ranges.
3. **Internet-wide search engines** (Shodan, Censys, Fofa, Netlas, ZoomEye) for hosts with no DNS record that still carry the org's certificates, favicon or HTML.
4. **Subdomain enumeration** per root (see [[Subdomain Enumeration]], [[OWASP Amass]]).
5. **Public exposure probing**: resolve, [[Port Scanning|port scan]], `httpx` for live services and tech.
Rule from the masterclass: passive first, active second, and don't stop at the main domain, because acquisitions and WHOIS surface the forgotten assets. ProjectDiscovery treats this phase as the one that most needs a human. It can be lightly automated with `uncover` and the Whoxy API, but ownership calls need review.
Assetnote's point about internet-wide recon: an IP-centric view misses much of the modern surface. Behind CDNs, WAFs and TLS-SNI routing, many hostnames share one IP and only answer with the right `Host`/SNI. A bare IP scan therefore sends the wrong host header and sees a default page. Correlate names and IPs; don't treat either alone as the asset.
## Techniques / data sources
### Root domains, ASNs and IP ranges
```bash
# ASN -> announced prefixes via RADb (as93 methodology); find the ASN on bgp.he.net or whois of a known IP
whois -h whois.radb.net -- '-i origin AS12345' | grep -Eo '([0-9.]+){4}/[0-9]+'
# Amass intel: org name -> ASNs -> parent domains
amass intel -org 'Example Ltd'
amass intel -active -asn 222222 -ip
amass intel -d owasp.org -whois # reverse-WHOIS pivot to sibling roots
```
Reverse-WHOIS hits can be confirmed manually (e.g. ViewDNS `reversewhois/?q=<Org>`, one of Amass's own data sources). `-active` adds zone-transfer attempts and cert grabs (Dionach). Big companies often own their ASN, and an ASN-wide range is in scope only if the program wording covers it. Shodan/Censys org attribution is also often wrong, so verify ownership before testing (Intigriti).
### Internet search engines (Shodan / Censys)
| Goal | Shodan | Censys |
|---|---|---|
| By org | `org:"Target"` / `ssl:"Target"` | `autonomous_system.organization:"Target"` / `services.tls.certificate.parsed.subject.organization` |
| By ASN | `asn:AS1234` | `autonomous_system.asn: AS1234` |
| Cert names | `ssl.cert.subject.CN:"target.com"` | `services.tls.certificate.names:"target.com"` |
| Favicon | `http.favicon.hash:<mmh3>` | `services.http.response.favicons.hashes:<hash>` |
| Live only | `http.status:200 org:"Target"` | `services.http.response.status_code:200 AND ...` |
Censys requires explicit `AND`/`OR`. Combining org filters with expired-cert, `http.html` and panel-title operators surfaces forgotten hosts and login panels (Intigriti). Run reverse DNS on IPs found this way to pivot to more roots and ASNs (ProjectDiscovery).
### Favicon fingerprinting
The favicon hash is MurmurHash3 (32-bit, signed) over the **base64-encoded** icon bytes. It is a durable fingerprint because icons rarely change. Pivots (Bishop Fox):
- `shodan-query: http.favicon.hash:<v>` / `fofa-query: icon_hash=<v>`. Nuclei's `favicon-detect.yaml` plus CVE templates carrying `shodan-query` + CPE give a labelled hash→product baseline.
- The favicon URL is itself a signal. A non-standard path (`/assets/v3/icons/brand.ico`) or a shared CDN path ties unrelated domains to common infra.
- Content/favicon mismatch flags honeypots. One of the top hashes (attributed to Gladinet CentreStack) is likely mostly honeypot infrastructure.
- Caveats: MMH3 is collision-prone (preimages to a chosen hash exist), and counts after a CVE can *rise*, because researchers and honeypots deploy the product too (cPanel, CVE-2026-41940).
### Certificates (CT logs and live TLS)
```bash
curl -s "https://crt.sh/?q=%.target.com&output=json" | python3 -m json.tool | grep '"name_value"' | sort -u
openssl x509 -in cert.pem -noout -text | grep -A3 "Subject:\|Subject Alternative Name"
```
CT records every name ever issued, so `oldstaging`, `vpn2`, `jira`, `sso-dev`, `mfa-dev` and past-project names persist (dev.to checklist; a Tesla CT query returned 300+ unique names). On live hosts, read the handshake in `curl -v`: the `subject`, `issuer` and `subjectAltName` lines. Self-signed and internal-CA certs leak internal hostnames (`DNS:admin.internal`), `O`/`OU` naming conventions and ownership. crt.sh rate-limits hard, so use its API for volume (gitconnected TLS article).
### Origin IP behind a CDN/WAF
- **hakoriginfinder** requests every candidate IP with the original `Host` header and compares each body to the real response by Levenshtein distance (`-l` threshold, default 5; `-p` ports, default 80,443; `-t` threads):
`prips 93.184.216.0/24 | hakoriginfinder -h https://example.com:443/foo -p 80,443,8080,8443`
- **CloudFail** recovers Cloudflare origins via misconfigured DNS (DNSDumpster), the historical Crimeflare DB and brute-forcing about 2,500 subdomains: `python3 cloudfail.py --target example.com --tor`.
Candidate ranges come from the ASN/Censys steps above. An origin match lets you test without the WAF.
### Virtual hosts
Names never published in DNS can still be served by a shared reverse proxy, which picks the app by `Host`:
`ffuf -u https://example.com -H "Host: FUZZ.example.com" -w wordlist` (Intigriti, 7 overlooked techniques). See [[Content Discovery]].
### Cloud tenants and shadow cloud
- **MSFTRecon** does unauthenticated M365/Entra mapping: tenant name/ID, federation (managed vs federated → SAML targets), AAD Connect, enterprise apps and admin-consent endpoints, B2C, storage. `./msftrecon.py -d example.com -j` (`--gov`, `--cn` for sovereign clouds).
- Cloud resources often get provider-assigned names outside the org's DNS space (`name.s3.us-east-2.amazonaws.com`, dynamic public IPs). Pure DNS-seeded external scans miss them. Wiz ASM pairs outside-in scanning with in-account inventory to catch these "shadow cloud" assets, and reports cloud/AI keys exposed in JS and default creds on CI/CD among real findings.
- Self-hosted AI tooling is a distinct exposed-asset class: Jupyter 8888, MLflow 5000, LiteLLM 4000, Ollama 11434, ComfyUI 8188, Langflow 7860, Ray 8265. Censys counted about 268k internet-facing AI systems (Oct 2026), and honeypot data shows attackers already sweep these ports. See [[AI Infrastructure Vulnerabilities]].
### Forgotten-asset checklist (defender view)
Seed from registrar accounts, all cloud subscriptions (including personal-card ones) and ISP-assigned ranges. Then run CT for names, resolve and flag dangling CNAMEs ([[Subdomain Takeover]]), and port-check for 3389/22/3306/5432/6379/9200/8080/8443 (dev.to).
## EASM platforms
Commercial ASM has moved from visibility to **validation**. ProjectDiscovery's 2026 report argues "proof, not probability", citing 1,198 "critical" alerts collapsed to 31 real issues by deterministic validation. Wiz ASM adds graph context and owner attribution. Assetnote's original pitch (now Searchlight Cyber) stresses continuous, wide-breadth discovery modelled on bug-bounty hunter behaviour.
## Related
- [[Reconnaissance]] (hub)
- [[Subdomain Enumeration]] · [[OWASP Amass]] · [[Port Scanning]] · [[Subdomain Takeover]] · [[Content Discovery]] · [[Google Dorking]] · [[JavaScript Analysis]]
- [[Domain and Infrastructure OSINT]] · [[API Discovery]] · [[Leaked Cloud Credentials]] · [[AI Infrastructure Vulnerabilities]] · [[Bug Bounty Methodology]] · [[Bug Bounty Automation]]
## Sources
- [[raw/wiz.io/reconnaissance-overview-bug-bounty-masterclass-11938|Reconnaissance Overview - Bug Bounty Masterclass (Wiz)]]
- [[raw/blog.projectdiscovery.io/building-a-fast-one-shot-recon-script-for-bug-bounty-4875|Building a Fast One-Shot Recon Script for Bug Bounty]]
- [[raw/bug-bounties.as93.net/recon-methodology-for-bug-bounties-finding-attack-surface-others-miss-14252|Recon methodology for bug bounties: finding attack surface others miss]]
- [[raw/dionach.com/how-to-use-owasp-amass-an-extensive-tutorial-6091|How to Use OWASP Amass: An Extensive Tutorial]]
- [[raw/assetnote.io/internet-wide-recon-moving-past-ip-centric-approaches-4283|Internet-Wide Recon: Moving Past IP-Centric Approaches]]
- [[raw/intigriti.com/shodan-and-censys-for-beginners-how-to-find-more-vulnerabilities-4869|Shodan and Censys for beginners]]
- [[raw/bishopfox.com/on-favicons-from-browser-icons-to-attack-surface-intelligence-10084|On Favicons: From Browser Icons to Attack Surface Intelligence]]
- [[raw/levelup.gitconnected.com/the-tls-handshake-is-recon-most-pentesters-scroll-past-it-14519|The TLS Handshake Is Recon]]
- [[raw/dev.to/the-riskiest-server-is-the-one-nobody-remembers-a-checklist-for-forgot-13627|The riskiest server is the one nobody remembers]]
- [[raw/github.com/hakoriginfinder-6064|hakoriginfinder]]
- [[raw/github.com/m0rtem-cloudfail-utilize-misconfigured-dns-and-old-database-records-to-1088|m0rtem/CloudFail]]
- [[raw/intigriti.com/7-overlooked-recon-techniques-to-find-more-vulnerabilities-14251|7 overlooked recon techniques to find more vulnerabilities]]
- [[raw/github.com/github-arcanum-sec-msftrecon-6042|Arcanum-Sec/msftrecon]]
- [[raw/wiz.io/introducing-wiz-asm-context-driven-attack-surface-management-9130|Introducing Wiz ASM]]
- [[raw/projectdiscovery.io/the-2026-state-of-attack-surface-management-projectdiscovery-4672|The 2026 State of Attack Surface Management]]
- [[raw/medium.com/who-scans-ai-infrastructure-ollama-jupyter-mlflow-data-15095|Who scans AI infrastructure? Ollama, Jupyter, MLflow data]]