Reconnaissance and OSINT
Learn passive and active reconnaissance, use DNS, WHOIS, certificate transparency and public sources to map an organization's attack surface.
Welcome back!
Step 1 of 10Learn
Most of the map is already public
Before touching a single target system, a skilled tester can often learn an organization's email address format, the names of its IT staff, the cloud providers it uses, dozens of forgotten subdomains, the versions of software it runs, and sometimes even leaked passwords. All of it from public sources.
This is reconnaissance, and it's often the most valuable phase. Attackers rarely break in through the front door the company spends money defending. They find the forgotten test server, the old marketing site, or the employee whose personal social media reveals their work email and interests, ideal material for a convincing phishing email.
Reconnaissance comes in two forms:
- Passive reconnaissance gathers information without directly interacting with the target's systems: search engines, public records, social media, DNS data from third parties, certificate logs, archived web pages. The target can't detect it.
- Active reconnaissance interacts directly with target systems, for example querying their DNS servers, visiting their websites or scanning their network. It can be logged and detected, and it requires authorization.
Information gathered from publicly available sources is called open-source intelligence (OSINT). Journalists, investigators and threat intelligence analysts use the same techniques. For defenders, running OSINT on your own organization is one of the cheapest ways to discover what you're exposing.
Step 2 of 10Practice · Sort into groups
Sort each technique into passive or active reconnaissance.
Tap an item, then tap its group (or drag it there).
Step 3 of 10Learn
DNS, WHOIS and certificate logs
The internet's own infrastructure is a rich source of information.
DNS (the Domain Name System) maps names to addresses, and its public records reveal a lot:
- A and AAAA records give IPv4 and IPv6 addresses for a name, showing where services are hosted.
- MX records name the mail servers, revealing the email provider.
- TXT records often contain verification codes for services such as cloud platforms and marketing tools, plus email security policies (SPF and DMARC), all hinting at which vendors the company uses.
- NS records show which DNS provider hosts the domain.
- CNAME records point one name at another, sometimes to cloud services. A CNAME pointing to a cloud resource that has been deleted can enable a subdomain takeover, where an attacker claims the resource and serves content under the company's name.
WHOIS and its successor RDAP show domain registration details. Since privacy rules such as Europe's GDPR, personal details are usually redacted, but registration dates, registrars and name servers still help.
Certificate Transparency (CT) logs are especially powerful. Because every publicly trusted TLS certificate must be logged, searching the logs for a domain lists the names certificates were issued for: vpn.example.com, staging-api.example.com, old-hr-portal.example.com. Testers routinely discover forgotten systems this way, and so do attackers, often within minutes of a new certificate being issued.
Step 4 of 10Practice · Match the pairs
Match each DNS record type to what it reveals.
Tap an answer, then tap the place where it belongs (or drag it there).
- MX
- A
- TXT
- CNAME
Step 5 of 10Note
Step 6 of 10Learn
People, documents and leaks
Organizations are made of people, and people leave trails.
- Professional networking sites reveal names, job titles, team structures and technologies listed in skills. Combine a few names with a known email format such as first.last@company.com and you have a phishing target list.
- Job postings list the software and systems a company uses: experience with a particular firewall brand, Kubernetes and a specific ERP system required tells an attacker what to research.
- Documents published on websites often contain metadata: author names, usernames, software versions and internal file paths.
- Code repositories: developers sometimes accidentally push passwords, API keys or internal hostnames to public repositories. Automated scanners, run by both defenders and attackers, find exposed keys within minutes.
- Search engine operators narrow searches to specific sites or file types, for example finding spreadsheets indexed on a company's domain that were never meant to be public.
- Breach data: past breaches have leaked billions of credentials. Services like Have I Been Pwned let organizations check whether their domains appear, without exposing passwords.
Ethical testers handle OSINT on people carefully. Gather only what the engagement needs, stick to work-related information, don't contact or harass anyone outside agreed social-engineering tests, and never use leaked credentials against systems or accounts outside the scope.
Step 7 of 10Note
Step 8 of 10Practice · Select all that apply
An attacker wants to craft a convincing phishing email to a company's finance team. Which OSINT sources would most directly help? Select all that apply.
Select all that apply.
Step 9 of 10Practice · True or false
Because certificate transparency logs are public, searching them for a company's domain names is a form of passive reconnaissance.
Step 10 of 10Practice · Choose one
A company wants to reduce the information attackers can gather about it through reconnaissance. Which step would help most?
Lesson complete!