Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
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
Detection Gaps & Validation
Pivot false positives: pivoting on shared attributes balloons into benign infrastructure - a shared CDN IP, a default org, a Let's Encrypt issuer, or a JARM/JA3S hash common to thousands of stock servers will "link" unrelated hosts. Pivot on high-specificity selectors (unique ssl.cert.serial, a self-signed CN like Sliver's multiplayer/operators, a distinctive http.favicon.hash, non-standard ports) and corroborate with a second pivot before claiming a cluster.
Sinkholes and takedowns: a "live" C2 IP/domain may be a sinkhole (researcher/registrar controlled) or already seized - check passive DNS for a sudden re-point into known sinkhole ranges and WHOIS for registrar holds before tracking it as active adversary infra.
Source coverage gaps: passive DNS providers see only what their sensors observed (regional/temporal blind spots), CT logs miss certs from non-logging or internal CAs, and Shodan/Censys scan windows lag - absence in one source is not absence. Query several (SecurityTrails + PassiveTotal + crt.sh + Censys).
CT noise: crt.sh returns every cert including wildcards and unrelated SANs; filter by issuance date and registration pattern, not raw count.
How to confirm: validate a discovered indicator before deploying - confirm it currently resolves/responds, that the fingerprint match is specific (not a generic default), and enrich via VirusTotal relations; set STIX valid_from/confidence to reflect that infrastructure rotates fast.
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