Skip to content

Lesson 2 of 9 · 18m

Passive Reconnaissance: Learn Without Touching the Target

Use DNS, certificate transparency, public code, job postings, and breach data to build a target model before active scanning.

Good reconnaissance feels almost unfair. Before sending one packet to the target, you should know what they build, what they expose, which cloud providers they use, which frameworks leak version banners, and which forgotten subdomain is still pointing at a Heroku app from 2021. Passive recon is not glamorous, but it determines where the noisy work goes.

Build the asset model first

Start with domains, not IP addresses. Domains connect business units, products, acquisitions, and legacy services. Enumerate subdomains from certificate transparency, passive DNS, search engines, and public datasets, then resolve them and group by infrastructure owner.

amass enum -passive -d example-industries.test -o amass.txt
subfinder -silent -d example-industries.test -o subfinder.txt
cat amass.txt subfinder.txt | sort -u | dnsx -silent -a -resp-only

Do not worship tool output. Each candidate asset needs context: does it resolve, who owns the netblock, does the certificate name make sense, and is it inside the contractual scope? Recon output without attribution is just a pile of strings.

Certificate transparency is a time machine

Certificates expose old hostnames long after marketing forgets them. Querying crt.sh for %.example-industries.test often reveals admin portals, VPN gateways, test environments, and acquisition domains.

curl -s 'https://crt.sh/?q=%25.example-industries.test&output=json' |
  jq -r '.[].name_value' |
  tr '\n' ' ' | tr ' ' '\n' |
  sort -u

Pay attention to naming patterns. dev, stage, old, vpn, admin, jenkins, grafana, and backup are not just names. They are clues about operational maturity and forgotten privilege.

Public artifacts tell you how the organization works

Job postings reveal stack details no scanner can infer: "Senior Rails engineer with Kubernetes and Terraform experience" tells you what to expect behind the login page. GitHub organizations leak CI variables, API endpoints, developer emails, and occasionally secrets. Public documentation leaks integration partners and authentication flows.

Useful sources include:

  • GitHub and GitLab search for organization names, internal hostnames, and API tokens
  • Wayback Machine for retired endpoints and old JavaScript bundles
  • Public S3 buckets and indexed documents for naming conventions and metadata
  • Breach corpora for reused credential patterns — only where engagement rules permit

Recon notes are part of the product

Keep a structured evidence log from the beginning. Your future self will not remember whether admin.example.test came from CT logs or a JavaScript file.

| asset | source | resolution | owner evidence | scope status |
|---|---|---|---|---|
| api.example-industries.test | crt.sh | 203.0.113.22 | client-owned netblock | in scope |
| legacy.example-industries.test | wayback js | 192.0.2.80 | unknown SaaS | needs approval |

That table is not bureaucracy. It is how you avoid burning a day on a beautiful attack path into infrastructure you were never allowed to touch.

Field notes

  • Passive does not mean harmless; querying third-party services can still violate terms or expose client interest.
  • Treat subdomain takeover candidates as high-value but validate carefully before claiming impact.
  • Save raw output immediately. Sources disappear, DNS changes, and clients ask where a claim came from.
  • Recon ends when you can explain the target's shape to a colleague without opening a tool.

Was this lesson helpful?

Sign in to rate