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: Apache-2.010---1112# Performing Open Source Intelligence Gathering1314## Overview1516Open 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.1718## Objectives1920- Enumerate the target organization's external attack surface (domains, IPs, cloud assets)21- Identify employees and their roles for social engineering targeting22- Discover leaked credentials, API keys, and sensitive documents23- Map the organization's technology stack and vendors24- Identify physical locations, office layouts, and access control details25- Build target profiles for spearphishing campaign development2627## Core Concepts2829### OSINT Categories3031| Category | Sources | Value |32|----------|---------|-------|33| Domain Intelligence | DNS records, WHOIS, CT logs, subdomain enumeration | Network attack surface |34| Personnel Intelligence | LinkedIn, social media, conference talks, publications | Social engineering targets |35| Credential Intelligence | Breach databases, paste sites, GitHub leaks | Valid credential discovery |36| Technology Intelligence | Job postings, Wappalyzer, Shodan, Censys | Vulnerability identification |37| Physical Intelligence | Google Maps, social media photos, Glassdoor | Physical access planning |38| Document Intelligence | SEC filings, public documents, metadata extraction | Organizational structure |3940### MITRE ATT&CK Mapping4142- **T1595.001** - Active Scanning: Scanning IP Blocks43- **T1595.002** - Active Scanning: Vulnerability Scanning44- **T1592** - Gather Victim Host Information45- **T1589** - Gather Victim Identity Information46- **T1590** - Gather Victim Network Information47- **T1591** - Gather Victim Org Information48- **T1593** - Search Open Websites/Domains49- **T1594** - Search Victim-Owned Websites50- **T1596** - Search Open Technical Databases5152## Implementation Steps5354### Phase 1: Domain and Network Reconnaissance551. Perform WHOIS lookups for target domains562. Enumerate subdomains using Certificate Transparency logs, DNS brute-force, and web scraping573. Identify IP ranges and ASN ownership584. Scan for exposed services using Shodan/Censys595. Check for cloud storage buckets (S3, Azure Blob, GCS)606. Map CDN and hosting providers6162### Phase 2: Personnel and Social Intelligence631. Enumerate employees via LinkedIn, company website, and conference speaker lists642. Identify email naming conventions653. Discover personal social media accounts of key targets664. Map organizational hierarchy and reporting structure675. Identify recently hired IT/security personnel686. Check for conference presentations and technical publications6970### Phase 3: Credential and Data Leak Discovery711. Search breach databases (Have I Been Pwned, DeHashed)722. Check paste sites (Pastebin, GitHub Gists)733. Search GitHub/GitLab for leaked secrets and API keys744. Look for exposed configuration files and backups755. Check for leaked internal documents via Google dorking7677### Phase 4: Technology Stack Identification781. Analyze job postings for technology mentions792. Use Wappalyzer/BuiltWith for web technology fingerprinting803. Check for exposed admin panels and development environments814. Identify VPN and remote access technologies825. Map cloud services and SaaS applications8384## Tools and Resources8586| Tool | Purpose | Type |87|------|---------|------|88| Amass | Subdomain enumeration and network mapping | Open Source |89| Subfinder | Passive subdomain discovery | Open Source |90| theHarvester | Email, subdomain, and name harvesting | Open Source |91| Maltego | Visual link analysis and data correlation | Commercial |92| SpiderFoot | Automated OSINT collection | Open Source |93| Shodan | Internet-connected device search | Commercial |94| Censys | Internet asset discovery | Commercial |95| Recon-ng | Web reconnaissance framework | Open Source |96| GitDorker | GitHub secret scanning | Open Source |97| Photon | Web crawler for OSINT | Open Source |9899## Validation Criteria100101- [ ] Complete list of target domains and subdomains102- [ ] Employee list with roles and email addresses103- [ ] Technology stack identified104- [ ] Credential leak assessment completed105- [ ] Attack surface map documented106- [ ] OSINT report compiled for engagement team