Skip to main content

Lesson 3 of 10

OSINT & Reconnaissance Techniques

OSINT (Open Source Intelligence) is the collection of information from publicly available sources. Before touching any target system, experienced testers spend significant time on passive reconnaissance - building a comprehensive picture of the target without triggering a single alert.

55 minBy Priygop Editorial TeamUpdated 2026Peer Reviewed & Verified

OSINT Sources and Tools

OSINT Sources and Tools
# Passive reconnaissance - no direct interaction with target

# 1. DNS Enumeration
# Subdomains reveal infrastructure - dev, staging, admin, api panels
subfinder -d example.com              # Subdomain enumeration
amass enum -d example.com             # Comprehensive subdomain discovery
dnsrecon -d example.com               # DNS record types
dig axfr @ns1.example.com example.com # Zone transfer attempt

# 2. Search Engine Dorking
# Google operators to find sensitive information
site:example.com                      # All indexed pages
site:example.com filetype:pdf         # PDF documents (may contain sensitive data)
site:example.com inurl:admin          # Admin paths
site:example.com intitle:index.of     # Directory listings
"example.com" filetype:env            # .env files with credentials
site:pastebin.com "example.com"        # Leaked data on pastebins

# 3. Domain/IP Investigation
whois example.com                     # Domain registrar, owner, dates
whois 93.184.216.34                   # Who owns this IP?
# Shodan - search engine for internet-connected devices
curl "https://api.shodan.io/shodan/host/93.184.216.34?key=API_KEY"

# 4. Certificate Transparency Logs (passive subdomain discovery)
curl "https://crt.sh/?q=%.example.com&output=json" | jq '.[].name_value' | sort -u

People Intelligence (HUMINT)

  • LinkedIn: Find employees, their roles, technology skills (reveals tech stack), recent job postings (reveal tools like 'experience with AWS and Kubernetes needed')
  • HaveIBeenPwned API: Check if company email domains appear in known data breaches - indicates which credential pairs may be available on dark web markets
  • GitHub: Search for company name in commit messages, configuration files, hardcoded credentials. 'git log --grep="password"' in cloned repositories
  • Job postings: Reverse engineer the tech stack from requirements ('Must have experience with: Cisco ASA, Check Point firewall, SolarWinds NPM')
  • theHarvester: Automated email harvesting from search engines, LinkedIn, Hunter.io - builds a list of valid email addresses for phishing simulation

Shodan for Security Research

Shodan for Security Research
# Shodan - Internet-wide scanner with historical data

# Basic searches (shodan.io web interface or CLI)
hostname:example.com         # All devices associated with domain
org:"Example Corp"            # All devices owned by organization
net:93.184.216.0/24           # Scan results for IP range

# Filter by service/vulnerability
product:nginx version:1.14.0  # Specific version (check for known CVEs)
vuln:CVE-2021-44228           # Systems vulnerable to Log4Shell
http.title:"phpMyAdmin"       # Exposed database admin panels
port:3389 RDP country:US      # US RDP servers (ransomware targets)

# CLI tool
pip install shodan
shodan init YOUR_API_KEY
shodan search "hostname:example.com" --fields ip_str,port,product,version
shodan host 93.184.216.34

# Defensive use: Monitor your own attack surface
shodan alert create "My Company IPs" 93.184.216.0/24
# Get alerts when Shodan discovers new exposed services on your IPs

Common Mistakes

  • Skipping passive recon and going straight to active scanning - passive recon leaves zero footprint; active scanning triggers IDS alerts and may violate scope
  • Not searching GitHub for leaked credentials - this is one of the highest-yield reconnaissance activities and completely passive
  • Ignoring certificate transparency logs - CT logs reveal subdomains not discoverable through DNS brute force

Tip

Tip

Practice OSINT Reconnaissance Techniques in small, isolated examples before integrating into larger projects. Breaking concepts into small experiments builds genuine understanding faster than reading alone.

Diagram
Loading diagram…

The foundational security model: Confidentiality (privacy), Integrity (trust), and Availability (uptime).

Practice Task

Note

Practice Task - (1) Write a working example of OSINT Reconnaissance Techniques from scratch without looking at notes. (2) Modify it to handle an edge case (empty input, null value, or error state). (3) Share your solution in the Priygop community for feedback.

Quick Quiz

Common Mistake

Warning

A common mistake with OSINT Reconnaissance Techniques is skipping edge case testing - empty inputs, null values, and unexpected data types. Always validate boundary conditions to write robust, production-ready cybersecurity code.

Key Takeaways

  • OSINT (Open Source Intelligence) is the collection of information from publicly available sources.
  • LinkedIn: Find employees, their roles, technology skills (reveals tech stack), recent job postings (reveal tools like 'experience with AWS and Kubernetes needed')
  • HaveIBeenPwned API: Check if company email domains appear in known data breaches - indicates which credential pairs may be available on dark web markets
  • GitHub: Search for company name in commit messages, configuration files, hardcoded credentials. 'git log --grep="password"' in cloned repositories

Hands-on Practice Tools for this Course

Test what you learn using these free in-browser developer utilities (no signup required).

All 40+ Tools

Topics in This Module

0/10 done