Passive recon & OSINT
Collect public information about an authorized target without sending it traffic.
By Invicly Tech, , in Ethical Hacking & Penetration Testing. About 9 minutes to read.
In short
Passive reconnaissance gathers information about an authorized target from public sources without sending it any traffic. It builds a picture from WHOIS records, public documents and search engines, leaving no trace on the target.
Explained simply
Before an authorised test begins, you want to know as much as possible about the target. Passive recon means learning from sources that are already public, without sending a single packet to the target's own systems. You ask other people's databases, not the target.
Think of a journalist preparing an interview. They read the company website archive, news stories and job adverts before they ever call. In the same way, you read domain registration records, certificate logs, search engine results and old copies of web pages.
A lot leaks this way. Job adverts name the software the company uses. Old PDFs carry employee names in their metadata. Public code repositories sometimes contain passwords. Certificate logs list server names the company never meant to advertise.
Passive does not mean "anything goes". You still work only for a client who authorised the engagement, you collect the minimum personal data, and you write down where every fact came from, so the report can be checked.
Press Play on a diagram to walk through it one step at a time.
- No traffic to target
- Public sources only
- Leaves no trace
- WHOIS, search engines
- Sends traffic
- Scans and probes
- Can be detected
- Needs clear scope
- 1Confirm scope
Which domains and brands are authorised
- 2Registration data
WHOIS, RDAP, IP owner, ASN
- 3Certificate logs
crt.sh for subdomain names
- 4Search and archive
Operators, Wayback Machine
- 5Code and documents
Repos, metadata, leaks
- 6Write up sources
Fact, URL, date, confidence
In depth
Registration data: WHOIS and RDAP
Every domain and IP block has an owner on record. For domains, the classic tool is whois example.com. Since 2018, privacy rules such as GDPR mean most personal details are redacted, but you still see the registrar, creation and expiry dates, and name servers. Since January 2025, ICANN treats RDAP (Registration Data Access Protocol) as the official source for generic top-level domains like .com. RDAP returns structured JSON, for example from https://rdap.org/domain/example.com.
For IP addresses, the five Regional Internet Registries (ARIN, RIPE NCC, APNIC, LACNIC and AFRINIC) record who holds each block. whois 203.0.113.10 tells you the organisation and the network range, and often the Autonomous System Number (ASN), which groups all the client's announced networks.
- whois example.com: registrar, dates, name servers
- RDAP is the JSON successor to WHOIS
- whois IP: owner and network range
- An ASN can reveal more of the client's IP ranges
Search operators and archives
Search engines index far more than people think. Operators narrow the results. site:example.com limits to one domain. filetype:pdf finds documents. intitle:"index of" finds open directory listings. inurl:login finds login pages. A minus sign excludes, so site:example.com -site:www.example.com shows other subdomains. Combining them is often called dorking.
The Internet Archive's Wayback Machine keeps old copies of pages. Old versions may show removed staff pages, earlier technology or forgotten paths. Its CDX API lists every archived URL for a domain, which is a fast way to find old endpoints without touching the live site. Note that Google removed its cache: operator in 2024, so the archive is now the main source for old copies.
- site: limits to a domain
- filetype: finds documents such as pdf or xlsx
- intitle: and inurl: match the title or URL
- "exact phrase" and -exclude refine results
Certificates, code and leaked files
Certificate Transparency (CT) logs are public records of every TLS certificate that public CAs issue. Searching them at crt.sh for %.example.com lists names such as vpn.example.com or staging.example.com, because each needed a certificate. This is one of the richest passive sources.
Public code hosting is another. A search on GitHub for the client's domain may show configuration files, internal hostnames or even API keys. If you find a secret, do not try it. Record where it is, tell the client quickly, and let them revoke it. Document metadata matters too: exiftool on a published PDF often shows the author's username and the software version used.
- WHOIS / RDAP
- Registrar and dates
- Name servers
- IP owner and ASN
- CT logs (crt.sh)
- Subdomain names
- Certificate issuers
- Search and archives
- Documents
- Old pages and paths
- Code hosting
- Configs and hostnames
- Leaked keys to report
- Jobs and social
- Technology in use
- Team structure
Ethics, scope and the defender's view
Passive recon can easily wander into people's private lives. Collect only what the engagement needs: names and roles for a phishing test the client ordered, yes; home addresses and family photos, no. Do not buy or download breached databases. Store what you collect as confidential client data.
For each fact, record the source, the URL and the date, because public data changes and the client must be able to verify it. Also mark which items are confirmed and which are guesses.
Defenders can reduce what passive recon finds. Watch CT logs for unexpected certificates on your domains, turn on secret scanning in code repositories, strip metadata from documents before publishing, and avoid naming exact software versions in job adverts.
- Collect the minimum personal data
- Never use leaked credentials; report them
- Record source, URL and date for each fact
- Defenders: CT monitoring, secret scanning, metadata stripping
Learn it in 4 short steps
About 1h each. Track them with a timer in your plan.
- 1Explain passive vs active recon~1h
- 2Query WHOIS and public records~1h
- 3Use search engine operators~1h
- 4Record sources in your notes~1h
Key points
- Passive recon never touches the target directly.
- Public records and search engines reveal a lot.
- It leaves no trace in the target's logs.
- Record every source in your notes for the report.
Key terms
Tap a card to flip it. 0/4 known
Examples
Collect subdomain names from CT logs and the archive
Your client authorised example.com. Step 1: Query crt.sh for certificates covering any name under the domain. This talks to crt.sh, not to the client. Step 2: Extract and deduplicate the names. Step 3: Ask the Wayback Machine for every archived URL to spot old paths. Step 4: Save both lists with today's date in your notes. Nothing here sends traffic to the client's servers.
D=example.com
curl -s "https://crt.sh/?q=%25.$D&output=json" \
| jq -r '.[].name_value' | tr 'A-Z' 'a-z' | sed 's/^\*\.//' \
| sort -u > ct-names-$(date -u +%F).txt
curl -s "https://web.archive.org/cdx/search/cdx?url=$D/*&fl=original&collapse=urlkey" \
> wayback-urls-$(date -u +%F).txt
wc -l ct-names-*.txt wayback-urls-*.txtChecking a published PDF for metadata
A search for site:example.com filetype:pdf finds an annual report. Step 1: Download it from the search engine result (fetching a public file from the client's website is normal browsing, but note it). Step 2: Run exiftool. Step 3: The Author field shows a username like jsmith, and the Creator field shows the exact word processor version. Step 4: Note both: usernames hint at the login format, versions hint at desktop software. Step 5: The fix for the client is to strip metadata before publishing, for example with exiftool -all= file.pdf.
exiftool annual-report.pdf | grep -Ei 'author|creator|producer|create date'
# Author : jsmith
# Creator : Microsoft Word for Microsoft 365
# Producer : Microsoft Word for Microsoft 365
# Fix: remove metadata before publishing
exiftool -all= -overwrite_original annual-report.pdfQuick reference
- Passive = ask third-party sources; never send packets to the target itself
- whois example.com and https://rdap.org/domain/example.com for registration data
- crt.sh with %.example.com lists names from certificate logs
- site:example.com -site:www.example.com shows other subdomains in search results
- exiftool file.pdf shows author names and software versions
- Found a secret? Do not use it; report it so the client can revoke it
- Write down source, URL and date for every fact you collect
Quick quiz
Pick an answer to see if you're right and why.
Practice exercises
Try each one yourself first. Use the hint if you get stuck, then compare with the solution.
- Exercise 1easy
Look up the registration data for a domain you own (or example.com) with both whois and RDAP, and note the registrar, creation date and name servers.
- Exercise 2medium
For a domain you own, list all names in CT logs and compare them with the subdomains you think exist. Are there any surprises?
- Exercise 3hard
Build a small recon notes template (CSV) with columns that make every fact traceable, and fill in three rows from your own domain.
Check yourself
Answer in your head, reveal, then be honest with yourself.
Feel confident about this topic?
Frequently asked questions
- Is OSINT legal?
- Reading public information is generally legal, but how you use it matters. Privacy and data protection laws still apply to personal data, and using leaked credentials is unauthorised access.
- What is Google dorking?
- It means using advanced search operators such as site:, filetype: and intitle: to find specific pages or files that a search engine has indexed.
- Is using Shodan passive recon?
- From the target's point of view, yes: you query Shodan's existing scan data and send nothing to the target. The results may be old, so confirm them later with authorised active scans.
- What is the difference between OSINT and passive recon?
- OSINT (open-source intelligence) is the wider practice of using public information for any purpose. Passive recon is the part of a pentest that uses OSINT about the target without touching it.