Skip to main content

Passive Subdomain Enumeration

tip

To learn more, I recommend the OSINT: Corporate Recon module from HackTheBox.

Overview

Subdomain enumeration refers to mapping all available subdomains within a domain name. It increases our attack surface and may uncover hidden management backend panels or intranet web applications that network administrators expected to keep hidden using the "security by obscurity" strategy.

VirusTotal

VirusTotal maintains its DNS replication service, which is developed by preserving DNS resolutions made when users visit URLs given by them.

VirusTotal

Certificates

SSL/TLS certificates can provide additional domain names and subdomains because of Certificate Transparency (CT) (i.e., a project that requires every SSL/TSL certificate issued by a Certificate Authority (CA) to be published in a publicly accessible log).

export TARGET="facebook.com"
curl -s "https://crt.sh/?q=${TARGET}&output=json" | jq -r '.[] | "\(.name_value)\n\(.common_name)"' | sort -u > "${TARGET}_crt.sh.txt"

TheHarvester - Automation

TheHarvester is a simple yet powerful tool for early-stage penetration testing and red team engagements.

The tool collects emails, names, subdomains, IP addresses, and URLs from various public data sources for passive information gathering.

Here are some modules:

BaiduBaidu search engine.
BufferoverunUses data from Rapid7's Project Sonar - www.rapid7.com/research/project-sonar/
CrtshComodo Certificate search.
HackertargetOnline vulnerability scanners and network intelligence to help organizations.
OtxAlienVault Open Threat Exchange - https://otx.alienvault.com
RapiddnsDNS query tool, which makes querying subdomains or sites using the same IP easy.
Sublist3rFast subdomains enumeration tool for penetration testers
ThreatcrowdOpen source threat intelligence.
ThreatminerData mining for threat intelligence.
TrelloSearch Trello boards (Uses Google search)
UrlscanA sandbox for the web that is a URL and website scanner.
VhostBing virtual hosts search.
VirustotalDomain search.
ZoomeyeA Chinese version of Shodan.

lets you enter a domain name and look for subdomain certificates.