Performing Open Source Intelligence Gathering
Legal Notice: This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.
Overview
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 surfaces, potential targets for social engineering, technology stacks, and credential exposures. Effective OSINT directly shapes initial access strategies and reduces operational risk.
When to Use
- When conducting security assessments that involve performing open source intelligence gathering
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing
Prerequisites
- Familiarity with red teaming concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
Objectives
- Enumerate the target organization's external attack surface (domains, IPs, cloud assets)
- Identify employees and their roles for social engineering targeting
- Discover leaked credentials, API keys, and sensitive documents
- Map the organization's technology stack and vendors
- Identify physical locations, office layouts, and access control details
- Build target profiles for spearphishing campaign development
Core Concepts
OSINT Categories
| Category |
Sources |
Value |
| Domain Intelligence |
DNS records, WHOIS, CT logs, subdomain enumeration |
Network attack surface |
| Personnel Intelligence |
LinkedIn, social media, conference talks, publications |
Social engineering targets |
| Credential Intelligence |
Breach databases, paste sites, GitHub leaks |
Valid credential discovery |
| Technology Intelligence |
Job postings, Wappalyzer, Shodan, Censys |
Vulnerability identification |
| Physical Intelligence |
Google Maps, social media photos, Glassdoor |
Physical access planning |
| Document Intelligence |
SEC filings, public documents, metadata extraction |
Organizational structure |
MITRE ATT&CK Mapping
- T1595.001 - Active Scanning: Scanning IP Blocks
- T1595.002 - Active Scanning: Vulnerability Scanning
- T1592 - Gather Victim Host Information
- T1589 - Gather Victim Identity Information
- T1590 - Gather Victim Network Information
- T1591 - Gather Victim Org Information
- T1593 - Search Open Websites/Domains
- T1594 - Search Victim-Owned Websites
- T1596 - Search Open Technical Databases
Workflow
Phase 1: Domain and Network Reconnaissance
- Perform WHOIS lookups for target domains
- Enumerate subdomains using Certificate Transparency logs, DNS brute-force, and web scraping
- Identify IP ranges and ASN ownership
- Scan for exposed services using Shodan/Censys
- Check for cloud storage buckets (S3, Azure Blob, GCS)
- Map CDN and hosting providers
Phase 2: Personnel and Social Intelligence
- Enumerate employees via LinkedIn, company website, and conference speaker lists
- Identify email naming conventions
- Discover personal social media accounts of key targets
- Map organizational hierarchy and reporting structure
- Identify recently hired IT/security personnel
- Check for conference presentations and technical publications
Phase 3: Credential and Data Leak Discovery
- Search breach databases (Have I Been Pwned, DeHashed)
- Check paste sites (Pastebin, GitHub Gists)
- Search GitHub/GitLab for leaked secrets and API keys
- Look for exposed configuration files and backups
- Check for leaked internal documents via Google dorking
Phase 4: Technology Stack Identification
- Analyze job postings for technology mentions
- Use Wappalyzer/BuiltWith for web technology fingerprinting
- Check for exposed admin panels and development environments
- Identify VPN and remote access technologies
- Map cloud services and SaaS applications
Tools and Resources
| Tool |
Purpose |
Type |
| Amass |
Subdomain enumeration and network mapping |
Open Source |
| Subfinder |
Passive subdomain discovery |
Open Source |
| theHarvester |
Email, subdomain, and name harvesting |
Open Source |
| Maltego |
Visual link analysis and data correlation |
Commercial |
| SpiderFoot |
Automated OSINT collection |
Open Source |
| Shodan |
Internet-connected device search |
Commercial |
| Censys |
Internet asset discovery |
Commercial |
| Recon-ng |
Web reconnaissance framework |
Open Source |
| GitDorker |
GitHub secret scanning |
Open Source |
| Photon |
Web crawler for OSINT |
Open Source |
Validation Criteria
Source: mukul975/Anthropic-Cybersecurity-Skills → skills/performing-open-source-intelligence-gathering/SKILL.md
1---
2name: performing-open-source-intelligence-gathering
3description: "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 s"
4category: security-and-compliance
5source_repo: mukul975/Anthropic-Cybersecurity-Skills
6source_path: "skills/performing-open-source-intelligence-gathering/SKILL.md"
7source_url: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/HEAD/skills/performing-open-source-intelligence-gathering/SKILL.md
8metadata:
9 source: https://skillmd.com/skills/thedixitjain/performing-open-source-intelligence-gathering
10---
11
12# Performing Open Source Intelligence Gathering
13
14
15> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.
16
17## Overview
18
19Open 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.
20
21
22## When to Use
23
24- When conducting security assessments that involve performing open source intelligence gathering
25- When following incident response procedures for related security events
26- When performing scheduled security testing or auditing activities
27- When validating security controls through hands-on testing
28
29## Prerequisites
30
31- Familiarity with red teaming concepts and tools
32- Access to a test or lab environment for safe execution
33- Python 3.8+ with required dependencies installed
34- Appropriate authorization for any testing activities
35
36## Objectives
37
38- Enumerate the target organization's external attack surface (domains, IPs, cloud assets)
39- Identify employees and their roles for social engineering targeting
40- Discover leaked credentials, API keys, and sensitive documents
41- Map the organization's technology stack and vendors
42- Identify physical locations, office layouts, and access control details
43- Build target profiles for spearphishing campaign development
44
45## Core Concepts
46
47### OSINT Categories
48
49| Category | Sources | Value |
50|----------|---------|-------|
51| Domain Intelligence | DNS records, WHOIS, CT logs, subdomain enumeration | Network attack surface |
52| Personnel Intelligence | LinkedIn, social media, conference talks, publications | Social engineering targets |
53| Credential Intelligence | Breach databases, paste sites, GitHub leaks | Valid credential discovery |
54| Technology Intelligence | Job postings, Wappalyzer, Shodan, Censys | Vulnerability identification |
55| Physical Intelligence | Google Maps, social media photos, Glassdoor | Physical access planning |
56| Document Intelligence | SEC filings, public documents, metadata extraction | Organizational structure |
57
58### MITRE ATT&CK Mapping
59
60- **T1595.001** - Active Scanning: Scanning IP Blocks
61- **T1595.002** - Active Scanning: Vulnerability Scanning
62- **T1592** - Gather Victim Host Information
63- **T1589** - Gather Victim Identity Information
64- **T1590** - Gather Victim Network Information
65- **T1591** - Gather Victim Org Information
66- **T1593** - Search Open Websites/Domains
67- **T1594** - Search Victim-Owned Websites
68- **T1596** - Search Open Technical Databases
69
70## Workflow
71
72### Phase 1: Domain and Network Reconnaissance
731. Perform WHOIS lookups for target domains
742. Enumerate subdomains using Certificate Transparency logs, DNS brute-force, and web scraping
753. Identify IP ranges and ASN ownership
764. Scan for exposed services using Shodan/Censys
775. Check for cloud storage buckets (S3, Azure Blob, GCS)
786. Map CDN and hosting providers
79
80### Phase 2: Personnel and Social Intelligence
811. Enumerate employees via LinkedIn, company website, and conference speaker lists
822. Identify email naming conventions
833. Discover personal social media accounts of key targets
844. Map organizational hierarchy and reporting structure
855. Identify recently hired IT/security personnel
866. Check for conference presentations and technical publications
87
88### Phase 3: Credential and Data Leak Discovery
891. Search breach databases (Have I Been Pwned, DeHashed)
902. Check paste sites (Pastebin, GitHub Gists)
913. Search GitHub/GitLab for leaked secrets and API keys
924. Look for exposed configuration files and backups
935. Check for leaked internal documents via Google dorking
94
95### Phase 4: Technology Stack Identification
961. Analyze job postings for technology mentions
972. Use Wappalyzer/BuiltWith for web technology fingerprinting
983. Check for exposed admin panels and development environments
994. Identify VPN and remote access technologies
1005. Map cloud services and SaaS applications
101
102## Tools and Resources
103
104| Tool | Purpose | Type |
105|------|---------|------|
106| Amass | Subdomain enumeration and network mapping | Open Source |
107| Subfinder | Passive subdomain discovery | Open Source |
108| theHarvester | Email, subdomain, and name harvesting | Open Source |
109| Maltego | Visual link analysis and data correlation | Commercial |
110| SpiderFoot | Automated OSINT collection | Open Source |
111| Shodan | Internet-connected device search | Commercial |
112| Censys | Internet asset discovery | Commercial |
113| Recon-ng | Web reconnaissance framework | Open Source |
114| GitDorker | GitHub secret scanning | Open Source |
115| Photon | Web crawler for OSINT | Open Source |
116
117## Validation Criteria
118
119- [ ] Complete list of target domains and subdomains
120- [ ] Employee list with roles and email addresses
121- [ ] Technology stack identified
122- [ ] Credential leak assessment completed
123- [ ] Attack surface map documented
124- [ ] OSINT report compiled for engagement team
125
126---
127
128**Source:** [`mukul975/Anthropic-Cybersecurity-Skills`](https://github.com/mukul975/Anthropic-Cybersecurity-Skills) → `skills/performing-open-source-intelligence-gathering/SKILL.md`