Skip to content

Lesson 5 of 13 · 15m

DNS and Certificate Transparency

crt.sh, passive DNS, and historical WHOIS map a domain's infrastructure without a packet touching its resolvers.

Every publicly trusted TLS certificate your target has ever obtained is sitting in a public append-only log right now. Certificate Transparency — RFC 6962, later hardened into RFC 9162 — requires certificate authorities to submit every issued cert to independent logs operated by Google, Cloudflare, DigiCert and others; Chrome and Safari distrust certs that aren't logged. That requirement turned the CA system into a reconnaissance sensor, and the front door to it is https://crt.sh/?q=%25.example.com.

Reading CT like an inventory

crt.sh is Sectigo's public query interface over the CT corpus. The %25 in that URL is a percent-encoded %, and crt.sh treats % as a SQL LIKE wildcard — so q=%25.example.com returns every cert covering example.com or any of its subdomains. The output is a table of cert IDs, validity windows, and the full Subject Alternative Name list.

The SAN list is where the infrastructure lives. A cert minted for www.example.com frequently carries gitlab.example.com, vpn.example.com, staging.api.example.com, jira.internal.example.com alongside it — hostnames the target never linked from a public page. Wildcard certs tell you less (one *.example.com covers everything) but still timestamp the rollout. Reading the issuance timeline over years gives you naming conventions, environment patterns, and decommissioned hosts — certs outlive the DNS records that pointed at them.

One discipline note: CT proves a CA issued a cert covering a name. It proves nothing about whether that name resolves today. A SAN entry for staging.example.com is a lead, and leads get resolved through passive DNS — not assumed live.

dig, and the death of ANY

Direct DNS is still where you start for current state: dig example.com A +short, dig example.com MX, dig example.com TXT, dig NS. Per type, explicitly. The dig ANY shortcut is dead as a recon verb — RFC 8482 (2019) blessed "minimal ANY" responses, and modern resolvers answer with REFUSED, NOTIMP, or a lone HINFO telling you to ask specific questions. If a cheat sheet tells you dig ANY dumps everything, the cheat sheet predates the RFC.

Passive DNS fills in history. Services like SecurityTrails (free tier covers most needs), CIRCL's passive DNS feed, and Farsight DNSDB record observed resolutions over time: staging.example.com resolved to 203.0.113.44 in March 2021, in an IP block owned by a specific hosting company, alongside three other customer domains. That is how a dead hostname becomes an IP, an ASN, and neighboring tenants — attribution material, all without touching the target's resolvers.

For breadth, passive subdomain enumerators aggregate dozens of sources: subfinder -d example.com -silent and amass enum -passive -d example.com. Both query CT, passive DNS, and search indexes without sending a packet to the target — the -passive flag on amass is doing real work; its active mode does brute-force resolution and touches their DNS.

WHOIS is redacted now — pivot anyway

Post-GDPR WHOIS (the May 2018 ICANN Temporary Specification) redacts registrant PII behind proxy services; whois today returns "REDACTED FOR PRIVACY" for most individual registrations. RDAP — https://rdap.verisign.com/com/v1/domain/example.com for .com — returns the same data as structured JSON and is the forward path for tooling.

The pivots that still pay: historical WHOIS captures (SecurityTrails shows them free; DomainTools goes deeper at enterprise prices), the registrant organization field on certs, registrar-plus-nameserver combinations as a weak fingerprint across a domain portfolio, and privacy-proxy correlation — the same proxy registrant across a cluster of domains is a cluster worth mapping.

The pipeline, end to end, with zero packets to the target: crt.sh for the SAN map, subfinder or amass passive for breadth, passive DNS for resolution history, historical WHOIS for operator identity. That is an infrastructure dossier built entirely from data the internet already published.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.