Free tech learning for everyone, from basics to pro

Ethical HackingCyber SecurityBeginner

Reconnaissance and OSINT: what you leak and how to reduce it

In short: Reconnaissance is the information-gathering stage before an attack or test. Open source intelligence (OSINT) uses public sources such as websites, DNS, certificate logs and social media. Defenders should look at their own footprint the same way and reduce what is exposed.

Why reconnaissance matters

Attackers rarely start by attacking. They start by learning: who works where, what technology is used, which systems face the internet and how emails are formatted. This stage is called reconnaissance or footprinting. Good reconnaissance makes later attacks quicker and more convincing, so understanding it helps you defend.

Open source intelligence (OSINT) is information collected from publicly available sources. "Open source" here means publicly accessible, not open source software.

Two kinds of reconnaissancePassiveNo contact with targetPublic records, searchDNS history, job advertsHard to detectActiveInteracts with systemsDNS queries, scansBanner grabbingCan be logged
Figure 1. Passive reconnaissance only uses public sources; active reconnaissance touches the target and needs permission.

Passive and active

Passive reconnaissance uses sources that never touch the target's systems: search engines, company websites, social media, public DNS datasets, business registries and certificate transparency (CT) logs, which publicly record every certificate issued and therefore reveal many subdomain names. Active reconnaissance interacts with the target, for example querying its DNS servers, browsing its web servers or scanning ports. Active work can be detected and logged, and against systems you do not own it needs permission.

In an authorised test, the scope document should say whether active techniques and people-focused OSINT are allowed.

What organisations leak

What organisations leakStaff detailsnames, roles, emailsTechnologyjob ads, tool namesDNS recordssubdomains, mailCertificatespublic CT logsDocumentsfile metadataCoderepos, secrets
Figure 2. Common sources of public information that attackers use to plan attacks.
  • People: staff profiles on professional networks reveal names, roles and reporting lines, ideal for crafting phishing emails.
  • Technology: job adverts asking for experience with specific firewall or VPN products tell an attacker what to research.
  • Infrastructure: DNS records, CT logs and old subdomains reveal forgotten test servers.
  • Documents: PDFs and Office files often keep metadata such as usernames, software versions and internal paths.
  • Code: public code repositories sometimes contain API keys, passwords or internal hostnames.
  • Breach data: email addresses and passwords from other sites' breaches are reused in credential stuffing.

A few safe, passive lookups you can run against your own domain:

dig example.com NS +short
dig example.com MX +short
dig example.com TXT +short
whois example.com
exiftool report.pdf

Reducing your footprint

  1. Run OSINT against your own organisation regularly, ideally before attackers do.
  2. Remove unused DNS records and decommission old subdomains properly.
  3. Strip metadata from documents before publishing them.
  4. Scan code repositories for secrets and rotate any that leak.
  5. Give staff guidance on what to share publicly about their work.
  6. Use generic role addresses for public contacts where possible.
  7. Monitor breach notification services for company email addresses.

Tip: you cannot hide everything, and you should not try. Assume attackers know your staff names and email format, and make sure MFA and phishing defences cope with that.

Practice

Is looking up a company in certificate transparency logs passive or active reconnaissance?
Passive: the logs are public third-party records, so you never touch the company's systems.
Why might a job advert be useful to an attacker?
It can reveal the specific products and versions an organisation uses, helping the attacker look for known vulnerabilities.
Name two actions that reduce what an organisation leaks publicly.
For example: strip document metadata, remove stale DNS records, scan repositories for secrets, and guide staff on what to post.

Key takeaways

  • Reconnaissance gathers information to plan an attack or a test.
  • Passive methods use public sources; active methods touch the target and need permission.
  • Common leaks: staff details, technology choices, DNS, certificates, metadata and code.
  • Defenders should run OSINT on themselves and reduce what is exposed.
  • Assume basic details are public and build defences that cope.
Tracks your learning on this device only. See your progress on the learning paths.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.