Tracking Threat Actor Infrastructure
Overview
Threat actor infrastructure tracking involves monitoring and mapping adversary-controlled assets including command-and-control (C2) servers, phishing domains, exploit kit hosts, bulletproof hosting, and staging servers. This skill covers using passive DNS, certificate transparency logs, Shodan/Censys scanning, WHOIS analysis, and network fingerprinting to discover, track, and pivot across threat actor infrastructure over time.
When to Use
- When managing security operations that require tracking threat actor infrastructure
- When improving security program maturity and operational processes
- When establishing standardized procedures for security team workflows
- When integrating threat intelligence or vulnerability data into operations
Prerequisites
- Python 3.9+ with
shodan, censys, requests, stix2 libraries
- API keys: Shodan, Censys, VirusTotal, SecurityTrails, PassiveTotal
- Understanding of DNS, TLS/SSL certificates, IP allocation, ASN structure
- Familiarity with passive DNS and certificate transparency concepts
- Access to domain registration (WHOIS) lookup services
Key Concepts
Infrastructure Pivoting
Pivoting is the technique of using one known indicator to discover related infrastructure. Starting from a known C2 IP address, analysts can pivot via: passive DNS (find domains), reverse WHOIS (find related registrations), SSL certificates (find shared certs), SSH key fingerprints, HTTP response fingerprints, JARM/JA3S hashes, and WHOIS registrant data.
Passive DNS
Passive DNS databases record DNS query/response data observed at recursive resolvers. This allows analysts to find historical domain-to-IP mappings, discover domains hosted on a known C2 IP, and identify fast-flux or domain generation algorithm (DGA) behavior.
Certificate Transparency
Certificate Transparency (CT) logs publicly record all SSL/TLS certificates issued by CAs. Monitoring CT logs reveals new certificates registered for suspicious domains, helping identify phishing sites and C2 infrastructure before they become active.
Network Fingerprinting
- JARM: Active TLS server fingerprint (hash of TLS handshake responses)
- JA3S: Passive TLS server fingerprint (hash of Server Hello)
- HTTP Headers: Server banners, custom headers, response patterns
- Favicon Hash: Hash of HTTP favicon for server identification
Workflow
📎 Detailed content (full examples / references / data tables) has been split into reference.md in the same directory; use Read to load the relevant section on demand.
1---2name: tracking-threat-actor-infrastructure3description: "Discovers and maps adversary-controlled C2 infrastructure. Signals: C2, command and control, remote control."4zh-signals: "Discovers and maps adversary-controlled infrastructure (C2 servers) 信号:c2,命令控制,远控。"5when-to-use: Discovers and maps adversary-controlled infrastructure (C2 servers,6 phishing domains, exploit-kit hosts, bulletproof hosting) by pivoting across passive7 DNS, certificate transparency logs, Shodan/Censys scans, WHOIS records, and network8 fingerprints (JARM/JA3S). Use when tracking threat actor infrastructure, expanding9 a known IOC into related assets, or producing STIX-based threat intelligence during10 a CTI investigation.11domain: cybersecurity12subdomain: threat-intelligence13tags:14- threat-intelligence15- cti16- ioc17- mitre-attack18- stix19- infrastructure-tracking20- shodan21- censys22- passive-dns23version: '1.0'24author: mahipal25license: Apache-2.026nist_csf:27- ID.RA-0128- ID.RA-0529- DE.CM-0130- DE.AE-0231mitre_attack:32- T159133- T159234- T159335- T158936- T156637mitre_f3:38 version: '1.1'39 tactics:40 - reconnaissance41 - resource-development42 techniques:43 - id: T159344 name: Search Open Websites/Domains45 tactic: reconnaissance46 source: attack47 - id: T1583.00148 name: 'Acquire Infrastructure: Domains'49 tactic: resource-development50 source: attack51 - id: T1583.00852 name: 'Acquire Infrastructure: Malvertising'53 tactic: resource-development54 source: attack55 - id: T1583.00356 name: 'Acquire Infrastructure: Virtual Private Network or Server'57 tactic: resource-development58 source: attack59 - id: F1020.00260 name: 'Create Fake Materials: Fake Website'61 tactic: resource-development62 source: f363 - id: T1608.00664 name: 'Stage Capabilities: SEO Poisoning'65 tactic: resource-development66 source: attack67metadata:68 source: https://skillmd.com/skills/dangeroussong/tracking-threat-actor-infrastructure69---7071# Tracking Threat Actor Infrastructure7273## Overview7475Threat actor infrastructure tracking involves monitoring and mapping adversary-controlled assets including command-and-control (C2) servers, phishing domains, exploit kit hosts, bulletproof hosting, and staging servers. This skill covers using passive DNS, certificate transparency logs, Shodan/Censys scanning, WHOIS analysis, and network fingerprinting to discover, track, and pivot across threat actor infrastructure over time.767778## When to Use7980- When managing security operations that require tracking threat actor infrastructure81- When improving security program maturity and operational processes82- When establishing standardized procedures for security team workflows83- When integrating threat intelligence or vulnerability data into operations8485## Prerequisites8687- Python 3.9+ with `shodan`, `censys`, `requests`, `stix2` libraries88- API keys: Shodan, Censys, VirusTotal, SecurityTrails, PassiveTotal89- Understanding of DNS, TLS/SSL certificates, IP allocation, ASN structure90- Familiarity with passive DNS and certificate transparency concepts91- Access to domain registration (WHOIS) lookup services9293## Key Concepts9495### Infrastructure Pivoting96Pivoting is the technique of using one known indicator to discover related infrastructure. Starting from a known C2 IP address, analysts can pivot via: passive DNS (find domains), reverse WHOIS (find related registrations), SSL certificates (find shared certs), SSH key fingerprints, HTTP response fingerprints, JARM/JA3S hashes, and WHOIS registrant data.9798### Passive DNS99Passive DNS databases record DNS query/response data observed at recursive resolvers. This allows analysts to find historical domain-to-IP mappings, discover domains hosted on a known C2 IP, and identify fast-flux or domain generation algorithm (DGA) behavior.100101### Certificate Transparency102Certificate Transparency (CT) logs publicly record all SSL/TLS certificates issued by CAs. Monitoring CT logs reveals new certificates registered for suspicious domains, helping identify phishing sites and C2 infrastructure before they become active.103104### Network Fingerprinting105- **JARM**: Active TLS server fingerprint (hash of TLS handshake responses)106- **JA3S**: Passive TLS server fingerprint (hash of Server Hello)107- **HTTP Headers**: Server banners, custom headers, response patterns108- **Favicon Hash**: Hash of HTTP favicon for server identification109110## Workflow111112> 📎 Detailed content (full examples / references / data tables) has been split into `reference.md` in the same directory; use Read to load the relevant section on demand.