Passive Reconnaissance
Passive recon means gathering all possible information about a target without interacting directly with its infrastructure: you send no packets to its servers, scan no ports, touch nothing that leaves a trace in its logs. You rely on third-party sources (public DNS, Certificate Transparency, search engines, social networks, leaks) that already hold the data. It’s the first phase of every pentest and the stealthiest: the target never notices you’re looking.
Why start here
Section titled “Why start here”Every passive data point reduces the noise you’ll make later. Before sending a single packet you already know subdomains, the cloud provider, the emails, the technologies, and sometimes leaked credentials. You reach active reconnaissance with a tight list of targets instead of sweeping blind. And in bug bounty and red team, the more you get without touching the target, the less likely you are to be detected (or blocked) before the interesting part.
How it fits the recon flow
Section titled “How it fits the recon flow”Passive recon isn’t an isolated technique: it’s the root of a tree that keeps branching. From a seed (the domain) you get assets, from assets you get more assets, and everything consolidates into an inventory that feeds the active phase.
flowchart TD
A[Seed domain] --> B[DNS / Certificate Transparency]
A --> C[ASN and IP ranges]
A --> D[Search engines / dorking]
B --> E[Subdomains]
C --> F[Hosts with no DNS]
D --> G[Documents / metadata]
D --> H[Secrets in repos]
A --> I[People / emails]
E --> J[(Asset inventory)]
F --> J
G --> J
H --> J
I --> J
J --> K[Active recon / enumeration]
What to look for
Section titled “What to look for”- Domains and subdomains: the real surface (see Subdomain Enumeration).
- IPs, ranges, and ASN: what infrastructure the organization owns (see ASN and IP Ranges).
- Technologies: CMS, frameworks, languages, providers (see Technology Fingerprinting).
- People: employees, roles, contacts (see People OSINT and Email Enumeration).
- Leaked secrets: credentials, keys, and tokens (see Code Repository OSINT).
- Metadata and documents: internal users, software, and paths (see Document Metadata).
- History: what the site looked like before (see Historical Archives (Wayback)).
The passive / active boundary
Section titled “The passive / active boundary”What turns “passive” into “active” is touching the target’s infrastructure. Two rules to orient yourself:
- Querying
crt.shis passive; runningnmapagainst its IPs is active. - A
digto a public resolver is passive; a zone transfer (AXFR) against its name server is active.
The boundary matters for stealth and, in formal pentests, for legal scope too: only what’s inside the authorized scope may be touched.
Data sources (without touching the target)
Section titled “Data sources (without touching the target)”All of these query third-party databases, not the target:
- DNS and DNS history: SecurityTrails, DNSDumpster, VirusTotal.
- Certificate Transparency: every issued certificate lands in public logs and reveals subdomains; query it at
crt.shor Censys. - Device search engines: Shodan, Censys, FOFA, ZoomEye (see Shodan and Device Search Engines).
- Google dorking:
site:,filetype:,inurl:to find indexed files and panels (see Google Dorking). - Social and professional networks: LinkedIn (employees), GitHub (code and secrets), X.
- Credential leaks: Have I Been Pwned, Dehashed, leak databases.
- Historical archive: Wayback Machine, archive.today.
Tools that orchestrate passive OSINT
Section titled “Tools that orchestrate passive OSINT”These tools aggregate many of the sources above in a single run:
amass enum -passive -d target.com # subdomains from multiple passive sourcessubfinder -d target.com -all -silent # passive subdomainstheHarvester -d target.com -b all # emails, hosts, and namesFor broader OSINT: SpiderFoot and recon-ng (automated collection frameworks) and Maltego for relationship graphs (see Maltego and OSINT Graphs).
Direct Certificate Transparency query
Section titled “Direct Certificate Transparency query”A concrete example of a high-yield passive source, without touching the target:
curl -s "https://crt.sh/?q=%25.target.com&output=json" \ | jq -r '.[].name_value' | sort -uAttacker OPSEC
Section titled “Attacker OPSEC”- Use third-party sources and, if you query something attributable, do it from infrastructure not tied to you.
- Don’t authenticate with your real accounts on the target’s portals during recon.
- Save and organize everything (domains, IPs, emails, technologies) in a single inventory for the active phase.
Common mistakes
Section titled “Common mistakes”- Jumping straight to active scanning without doing the passive work: more noise, less coverage.
- Staying on the main domain and ignoring subdomains, sibling domains, and ranges.
- Not deduplicating or normalizing: you end up with inconsistent lists that break the next-phase tools.
- Confusing “doesn’t resolve” with “doesn’t exist”: a dead subdomain today may resolve tomorrow.
Defensive note (reduce your exposure)
Section titled “Defensive note (reduce your exposure)”An organization shrinks its passive footprint by minimizing data in certificates and DNS, reviewing what employees leak on GitHub and LinkedIn, monitoring Certificate Transparency and leaks (HIBP for business), and stripping metadata from the documents it publishes. What you discover as an attacker, defense should discover first (continuous Attack Surface Management).
Testing checklist
Section titled “Testing checklist”- Domains and subdomains collected (amass / subfinder / crt.sh).
- IPs, ranges, and ASN of the organization.
- Technologies and providers identified.
- Emails and employees (theHarvester, LinkedIn).
- Search for leaked secrets (GitHub, leaks, HIBP).
- Documents and metadata collected.
- History reviewed (Wayback).
- Everything organized in the inventory for the active phase.