1---2name: performing-open-source-intelligence-gathering3description: Open Source Intelligence (OSINT) gathering is the first active phase of a red team engagement, where operators collect publicly available information about the target organization to identify attack s4domain: cybersecurity5subdomain: red-teaming6tags: [red-team, adversary-simulation, mitre-attack, exploitation, post-exploitation, osint, reconnaissance]7version: "1.0"8author: mahipal9license: MIT10metadata:11 source: https://skillmd.com/skills/njones17/performing-open-source-intelligence-gathering12---1314# Performing Open Source Intelligence Gathering1516## Overview1718Open Source Intelligence (OSINT) gathering is the first active phase of a red team engagement, where operators collect publicly available information about the target organization to identify attack surfaces, potential targets for social engineering, technology stacks, and credential exposures. Effective OSINT directly shapes initial access strategies and reduces operational risk.1920## Objectives2122- Enumerate the target organization's external attack surface (domains, IPs, cloud assets)23- Identify employees and their roles for social engineering targeting24- Discover leaked credentials, API keys, and sensitive documents25- Map the organization's technology stack and vendors26- Identify physical locations, office layouts, and access control details27- Build target profiles for spearphishing campaign development2829## Core Concepts3031### OSINT Categories3233| Category | Sources | Value |34|----------|---------|-------|35| Domain Intelligence | DNS records, WHOIS, CT logs, subdomain enumeration | Network attack surface |36| Personnel Intelligence | LinkedIn, social media, conference talks, publications | Social engineering targets |37| Credential Intelligence | Breach databases, paste sites, GitHub leaks | Valid credential discovery |38| Technology Intelligence | Job postings, Wappalyzer, Shodan, Censys | Vulnerability identification |39| Physical Intelligence | Google Maps, social media photos, Glassdoor | Physical access planning |40| Document Intelligence | SEC filings, public documents, metadata extraction | Organizational structure |4142### MITRE ATT&CK Mapping4344- **T1595.001** - Active Scanning: Scanning IP Blocks45- **T1595.002** - Active Scanning: Vulnerability Scanning46- **T1592** - Gather Victim Host Information47- **T1589** - Gather Victim Identity Information48- **T1590** - Gather Victim Network Information49- **T1591** - Gather Victim Org Information50- **T1593** - Search Open Websites/Domains51- **T1594** - Search Victim-Owned Websites52- **T1596** - Search Open Technical Databases5354## Implementation Steps5556### Phase 1: Domain and Network Reconnaissance571. Perform WHOIS lookups for target domains582. Enumerate subdomains using Certificate Transparency logs, DNS brute-force, and web scraping593. Identify IP ranges and ASN ownership604. Scan for exposed services using Shodan/Censys615. Check for cloud storage buckets (S3, Azure Blob, GCS)626. Map CDN and hosting providers6364### Phase 2: Personnel and Social Intelligence651. Enumerate employees via LinkedIn, company website, and conference speaker lists662. Identify email naming conventions673. Discover personal social media accounts of key targets684. Map organizational hierarchy and reporting structure695. Identify recently hired IT/security personnel706. Check for conference presentations and technical publications7172### Phase 3: Credential and Data Leak Discovery731. Search breach databases (Have I Been Pwned, DeHashed)742. Check paste sites (Pastebin, GitHub Gists)753. Search GitHub/GitLab for leaked secrets and API keys764. Look for exposed configuration files and backups775. Check for leaked internal documents via Google dorking7879### Phase 4: Technology Stack Identification801. Analyze job postings for technology mentions812. Use Wappalyzer/BuiltWith for web technology fingerprinting823. Check for exposed admin panels and development environments834. Identify VPN and remote access technologies845. Map cloud services and SaaS applications8586## Tools and Resources8788| Tool | Purpose | Type |89|------|---------|------|90| Amass | Subdomain enumeration and network mapping | Open Source |91| Subfinder | Passive subdomain discovery | Open Source |92| theHarvester | Email, subdomain, and name harvesting | Open Source |93| Maltego | Visual link analysis and data correlation | Commercial |94| SpiderFoot | Automated OSINT collection | Open Source |95| Shodan | Internet-connected device search | Commercial |96| Censys | Internet asset discovery | Commercial |97| Recon-ng | Web reconnaissance framework | Open Source |98| GitDorker | GitHub secret scanning | Open Source |99| Photon | Web crawler for OSINT | Open Source |100101## Validation Criteria102103- [ ] Complete list of target domains and subdomains104- [ ] Employee list with roles and email addresses105- [ ] Technology stack identified106- [ ] Credential leak assessment completed107- [ ] Attack surface map documented108- [ ] OSINT report compiled for engagement team