Domain and Infrastructure OSINT
Passive mapping of domains, IPs, certificates, registrations and hosted content to answer two questions: what does an organization expose, and what else does an adversary’s infrastructure connect to.
The same pivots serve offense (attack-surface mapping for a pentest or bounty) and defense (clustering phishing kits, sizing a campaign, takedown). Subdomain and asset enumeration proper live in Subdomain Enumeration and Asset Discovery; this page is about the pivot graph and the data sources behind it.
How it works
Every indicator yields a different query path and every lookup exposes new indicators. Typical starting points: a domain, an IP, an email, a URL, or a TLS certificate seen in a scan (OSINTBench). The pivot set:
| Pivot | Source / tool | What it links |
|---|---|---|
| Registrant email, phone, org, NS, registrar | whois, DomainTools, SecurityTrails, WhoisXML (incl. historical WHOIS) | Other domains by the same registrant; details exposed briefly before privacy kicked in |
| A/AAAA/MX/NS history | SecurityTrails, passive DNS | Co-hosted domains, takeover windows, NS changes |
| Certificate SANs, issuer, serials | crt.sh / Certspotter API / Censys, CT monitors (gungnir) | Internal and pre-release hostnames, code names |
| Banners, ports, TLS, JARM | Shodan, Censys, Netlas | Same stack / same cert / same fingerprint across IPs |
| Page content: DOM hash, script paths, favicons, replicated assets, analytics | urlscan.io, VirusTotal, Censys | Kit reuse across phishing domains |
| Registration timing and naming | registrar data, NRD feeds | Scripted batch registrations, sequential names |
Techniques
WHOIS and registration. SecurityTrails (DNS history, historical WHOIS, SurfaceBrowser) is one of Intel 471’s top-five pentest/bounty data sources (Intel 471). Read registration date (fresh = suspicious), registrar (NameCheap/NameSilo carry a lot of abuse), unprotected registrant email (pivot to more domains), shared name servers, and absence of privacy protection. Historical WHOIS keeps what current WHOIS lost: an email used before privacy was enabled, a company that appeared and vanished, an NS change during a takeover (OSINTBench). Reverse WHOIS by phone number or email finds domains registered with the same contact, including subsidiaries and defunct products; one bounty write-up turned a contact-page phone number into an unlinked internal-* domain via SecurityTrails reverse WHOIS (OSINT acquisition pipeline).
Email-to-domain graph. Every corporate email is a domain pointer; harvested addresses (Hunter.io, mail threads) and the email→GitHub user→repos/orgs→code search chain surface acquired-company domains, SaaS tenants (company.atlassian.net) and pre-production names that DNS brute force and CT never see (OSINT acquisition pipeline).
Certificate Transparency. Requesting a public cert publishes the hostname. Certspotter’s free API returns every entry for a domain; gungnir streams new CT entries in seconds, so a newly issued finance-internal.* or code-named product is visible before launch (Srinivasan). Key-free CT tooling such as ctfr-reloaded adds resolution, HTTP probing, takeover checks and scoring (ctfr-reloaded). Also read the live handshake: curl -v prints the certificate chain, and -k silently hides self-signed, expired, wrong-host and unknown-CA certificates that are themselves findings (TLS handshake is recon).
Internet-scan engines. Shodan indexes banners (HTTP headers, SSH params, TLS certs) and supports org:, port:, product:, http.title:, http.html:, ssl.cert.subject:, has_screenshot:true (Shodan and Censys). Censys is ZMap-based with parsed-field queries, Elasticsearch regex and boosting:
parsed.issuer_dn.raw: /.*localhost, emailAddress=webmaster@localhost.*/ AND tags.raw: "self-signed"
tags:scada AND metadata.manufacturer:siemens AND location.country_code:DE
tags:scada AND protocols:"502/modbus"^3
host.services.software.vendor:"siemens" or host.services.hardware.vendor:"siemens"
(Hackers Arise: Censys, ICS OSINT). Copy any interesting parsed value back into search to find every host sharing it.
OT/ICS exposure. ICSRank product regexes and the Austrian Energy CERT dork set for Shodan; port clusters (Modbus 502, S7 102, OPC UA 4840 + web UI) to classify PLC vs gateway vs HMI; inurl:/Portal0000.htm for S7 web portals; neighbouring /24 hosts with identical certs or banners indicate one OT cell. Off-network sources: ImportYeti bills of lading to tie PLC purchases to an operator, WiGLE SSIDs like Plant_SCADA_Guest (ICS OSINT).
Bulk datasets instead of APIs. Rate-limited free tiers and case-sensitive search limit commercial APIs. Indexing Rapid7 Project Sonar forward/reverse DNS (≈200 GB uncompressed for IPv4 FDNS) into MongoDB with a multikey “terms” index gives unlimited substring search (Build your own OSINT APIs). Demirkapi ran YARA over a year of VirusTotal uploads (Retrohunt) to find 15,000+ hard-coded secrets, and passive DNS to find 78,000 dangling cloud resources across 66,000 apex domains (WIRED: Demirkapi). URLTeam’s archived shortener corpora expose shared cloud-drive links, internal URLs and Trello boards; GrayhatWarfare indexes them with dead/parked links removed (Shortener search). The same corpus approach finds leaked code-signing certs: VirusTotal and GrayhatWarfare yielded 39 usable certificates, mostly via game-cheat bundles shipping cert + password (Recertify).
Hunting adversary infrastructure
Wiz’s three pivot families for phishing domains (Wiz: 0ktapus):
- Application fingerprinting — kit artifacts: script/path sets (
/bundles/modernizr+/WebResource.axd+/Scripts/jquery-2.2.3.min.js), a malformedheightattribute bug, full-DOM SHA-256, POST targets (../tmo/data/login.php). Per-victim tailoring breaks HTML hashes, but kits replicate assets from the victim’s real Okta page — hash the legitimate logo/JS and search for other hosts serving it. - Network profiling — no TLS or Let’s Encrypt, open directories, port sets, shared JARM, reused IPs, shortener redirects; monitor actor IPs for co-registered domains.
- Registration analysis — keyword sets (
sso,okta,servicenow,hr), shared NS (ns3.my-ndns[.]com), registrars, one-year terms, aged domains; watching NRDs on the actor’s NS surfaced a previously unknown template.
Attribution caveat: a kit cluster is not an actor; several groups can share a kit.
Notable cases
- 0ktapus / Scattered Spider — 12 DOM templates catalogued with pivots and activity windows;
mailgun-okta[.]comreused after two years (Wiz). - Telegram takeover kit, 244 domains — sequential
bgp01–99.sbs,bgp01–47.icu,jpg01–99.sbsregistered in scripted batches (1–3 s apart) at NameSilo behind one Cloudflare NS pair; only 13 ever seen in kit traffic. Stable pivots:turnstile-gate.jsSHA-256, Turnstile sitekey, redirector path/wqamhcsom/?r=&t=, backend/api/telegram/. Main bundle hash changes per build, so don’t hunt on it. Cloaking served a Chinese calendar decoy to scanners, and Cloudflare closed the first reports as benign (Telegram takeover kit). - PrizeBuzz PhaaS — one Vite SPA, brand set by
/base.json(code: 1100is the brand-agnostic fingerprint); 318 five-letter.buzzdomains, each on a different Cloudflare account; cloaking on geo, locale, one-time victim token and#<unix-ms>fragment (PhishEye). - Fake-journalist X OAuth lure — real Calendly routing form → WIRED-branded booking page → X app
CalendarBookingswith read/write/DM; five publication-branded lures traced to one backend (Casco). - 333 malicious Tor exits (~10% of exits) running Ebury to MITM SSH; found by detecting host-key changes through exitmap and an
sshesamehoneypot (kaba.cx).
Defenses
- Assume CT is public: private PKI, or wildcard certs for internal zones to stop leaking hostnames (Srinivasan).
- Run your own CT and NRD monitors for brand/keyword lookalikes; hunt kits by stable artifacts (asset hashes, sitekeys, paths), not volatile bundle hashes.
- Report kit pools as one case to the registrar; keep the full victim-path evidence, since cloaked pages pass automated abuse checks (Telegram takeover kit).
- Track your own exposure in scan engines continuously; see Asset Discovery, Subdomain Takeover, Leaked Cloud Credentials.
Related
- OSINT
- OSINT Tools
- Reconnaissance · Subdomain Enumeration · Asset Discovery · Google Dorking
- Dark Web OSINT · Document Metadata OSINT
- Subdomain Takeover · Secret Scanning
Sources
- Domain and IP Investigation with OSINT (OSINTBench) · original
- Finding Hidden Internal Apps Through Public Certificate Logs · original
- The TLS Handshake Is Recon · original
- ctfr-reloaded: certificate transparency subdomain discovery · original
- Phone Numbers and Emails to Hidden Subdomains · original
- Beyond Google: Shodan and Censys · original
- OSINT Gathering Using Censys (Hackers Arise) · original
- Operational Technology Discovery: ICS OSINT · original
- Top 5 OSINT Sources for Pentesting and Bug Bounties (Intel 471) · original
- Build Your Own OSINT APIs for Pen Testers · original
- Thousands of Corporate Secrets Were Left Exposed · original
- How to search URLs exposed by Shortener services · original
- Recertify: Public Code Signing Certificates · original
- Unmasking Phishing: 0ktapus domains · original
- A Calendar for Scanners: Telegram Takeover Kit · original
- PrizeBuzz phishing network analysis · original
- Fake Journalist phishing scam targeting tech founders · original
- How I got over 300 Tor exit nodes removed · original