[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B9HBZG2TWN0X020Q3BSNE4":3,"skill-same:01M7B9HBZG2TWN0X020Q3BSNE4":127},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":73,"commitSha":74,"skillDirectory":75,"forksCount":13,"repositoryHtmlUrl":76,"repositoryHomepageUrl":6,"ownerHtmlUrl":77,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":78,"install":79,"resources":92},"01M7B9HBZG2TWN0X020Q3BSNE4","tracking-threat-actor-infrastructure",null,"Discovers and maps adversary-controlled infrastructure (C2 servers, phishing domains, exploit-kit hosts, bulletproof hosting) by pivoting across passive DNS, certificate transparency logs, Shodan\u002FCensys scans, WHOIS records, and network fingerprints (JARM\u002FJA3S). Use when tracking threat actor infrastructure, expanding a known IOC into related assets, or producing STIX-based threat intelligence during a CTI investigation.","vikasvardhanv\u002Fjerry_skills","vikasvardhanv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99010657?v=4","01M7B2B0VN78W7529RQX5BR6DZ","01M7B2B0WDNTXJHRK3QNPNWRP6",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftracking-threat-actor-infrastructure\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftracking-threat-actor-infrastructure\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: tracking-threat-actor-infrastructure\ndescription: Discovers and maps adversary-controlled infrastructure (C2 servers,\n  phishing domains, exploit-kit hosts, bulletproof hosting) by pivoting across passive\n  DNS, certificate transparency logs, Shodan\u002FCensys scans, WHOIS records, and network\n  fingerprints (JARM\u002FJA3S). Use when tracking threat actor infrastructure, expanding\n  a known IOC into related assets, or producing STIX-based threat intelligence during\n  a CTI investigation.\ndomain: cybersecurity\nsubdomain: threat-intelligence\ntags:\n- threat-intelligence\n- cti\n- ioc\n- mitre-attack\n- stix\n- infrastructure-tracking\n- shodan\n- censys\n- passive-dns\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- ID.RA-01\n- ID.RA-05\n- DE.CM-01\n- DE.AE-02\nmitre_attack:\n- T1591\n- T1592\n- T1593\n- T1589\n- T1566\nmitre_f3:\n  version: '1.1'\n  tactics:\n  - reconnaissance\n  - resource-development\n  techniques:\n  - id: T1593\n    name: Search Open Websites\u002FDomains\n    tactic: reconnaissance\n    source: attack\n  - id: T1583.001\n    name: 'Acquire Infrastructure: Domains'\n    tactic: resource-development\n    source: attack\n  - id: T1583.008\n    name: 'Acquire Infrastructure: Malvertising'\n    tactic: resource-development\n    source: attack\n  - id: T1583.003\n    name: 'Acquire Infrastructure: Virtual Private Network or Server'\n    tactic: resource-development\n    source: attack\n  - id: F1020.002\n    name: 'Create Fake Materials: Fake Website'\n    tactic: resource-development\n    source: f3\n  - id: T1608.006\n    name: 'Stage Capabilities: SEO Poisoning'\n    tactic: resource-development\n    source: attack\n---\n# Tracking Threat Actor Infrastructure\n\n## Overview\n\nThreat 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\u002FCensys scanning, WHOIS analysis, and network fingerprinting to discover, track, and pivot across threat actor infrastructure over time.\n\n\n## When to Use\n\n- When managing security operations that require tracking threat actor infrastructure\n- When improving security program maturity and operational processes\n- When establishing standardized procedures for security team workflows\n- When integrating threat intelligence or vulnerability data into operations\n\n## Prerequisites\n\n- Python 3.9+ with `shodan`, `censys`, `requests`, `stix2` libraries\n- API keys: Shodan, Censys, VirusTotal, SecurityTrails, PassiveTotal\n- Understanding of DNS, TLS\u002FSSL certificates, IP allocation, ASN structure\n- Familiarity with passive DNS and certificate transparency concepts\n- Access to domain registration (WHOIS) lookup services\n\n## Key Concepts\n\n### Infrastructure Pivoting\nPivoting 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\u002FJA3S hashes, and WHOIS registrant data.\n\n### Passive DNS\nPassive DNS databases record DNS query\u002Fresponse 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.\n\n### Certificate Transparency\nCertificate Transparency (CT) logs publicly record all SSL\u002FTLS 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.\n\n### Network Fingerprinting\n- **JARM**: Active TLS server fingerprint (hash of TLS handshake responses)\n- **JA3S**: Passive TLS server fingerprint (hash of Server Hello)\n- **HTTP Headers**: Server banners, custom headers, response patterns\n- **Favicon Hash**: Hash of HTTP favicon for server identification\n\n## Workflow\n\n### Step 1: Shodan Infrastructure Discovery\n\n```python\nimport shodan\n\napi = shodan.Shodan(\"YOUR_SHODAN_API_KEY\")\n\ndef discover_infrastructure(ip_address):\n    \"\"\"Discover services and metadata for a target IP.\"\"\"\n    try:\n        host = api.host(ip_address)\n        return {\n            \"ip\": host[\"ip_str\"],\n            \"org\": host.get(\"org\", \"\"),\n            \"asn\": host.get(\"asn\", \"\"),\n            \"isp\": host.get(\"isp\", \"\"),\n            \"country\": host.get(\"country_name\", \"\"),\n            \"city\": host.get(\"city\", \"\"),\n            \"os\": host.get(\"os\"),\n            \"ports\": host.get(\"ports\", []),\n            \"vulns\": host.get(\"vulns\", []),\n            \"hostnames\": host.get(\"hostnames\", []),\n            \"domains\": host.get(\"domains\", []),\n            \"tags\": host.get(\"tags\", []),\n            \"services\": [\n                {\n                    \"port\": svc.get(\"port\"),\n                    \"transport\": svc.get(\"transport\"),\n                    \"product\": svc.get(\"product\", \"\"),\n                    \"version\": svc.get(\"version\", \"\"),\n                    \"ssl_cert\": svc.get(\"ssl\", {}).get(\"cert\", {}).get(\"subject\", {}),\n                    \"jarm\": svc.get(\"ssl\", {}).get(\"jarm\", \"\"),\n                }\n                for svc in host.get(\"data\", [])\n            ],\n        }\n    except shodan.APIError as e:\n        print(f\"[-] Shodan error: {e}\")\n        return None\n\ndef search_c2_framework(framework_name):\n    \"\"\"Search Shodan for known C2 framework signatures.\"\"\"\n    c2_queries = {\n        \"cobalt-strike\": 'product:\"Cobalt Strike Beacon\"',\n        \"metasploit\": 'product:\"Metasploit\"',\n        \"covenant\": 'http.html:\"Covenant\" http.title:\"Covenant\"',\n        \"sliver\": 'ssl.cert.subject.cn:\"multiplayer\" ssl.cert.issuer.cn:\"operators\"',\n        \"havoc\": 'http.html_hash:-1472705893',\n    }\n\n    query = c2_queries.get(framework_name.lower(), framework_name)\n    results = api.search(query, limit=100)\n\n    hosts = []\n    for match in results.get(\"matches\", []):\n        hosts.append({\n            \"ip\": match[\"ip_str\"],\n            \"port\": match[\"port\"],\n            \"org\": match.get(\"org\", \"\"),\n            \"country\": match.get(\"location\", {}).get(\"country_name\", \"\"),\n            \"asn\": match.get(\"asn\", \"\"),\n            \"timestamp\": match.get(\"timestamp\", \"\"),\n        })\n\n    return hosts\n```\n\n### Step 2: Passive DNS Pivoting\n\n```python\nimport requests\n\ndef passive_dns_lookup(indicator, api_key, indicator_type=\"ip\"):\n    \"\"\"Query SecurityTrails for passive DNS records.\"\"\"\n    base_url = \"https:\u002F\u002Fapi.securitytrails.com\u002Fv1\"\n    headers = {\"APIKEY\": api_key, \"Accept\": \"application\u002Fjson\"}\n\n    if indicator_type == \"ip\":\n        url = f\"{base_url}\u002Fsearch\u002Flist\"\n        payload = {\n            \"filter\": {\"ipv4\": indicator}\n        }\n        resp = requests.post(url, json=payload, headers=headers, timeout=30)\n    else:\n        url = f\"{base_url}\u002Fdomain\u002F{indicator}\u002Fsubdomains\"\n        resp = requests.get(url, headers=headers, timeout=30)\n\n    if resp.status_code == 200:\n        return resp.json()\n    return None\n\n\ndef query_passive_total(indicator, user, api_key):\n    \"\"\"Query PassiveTotal for passive DNS and WHOIS data.\"\"\"\n    base_url = \"https:\u002F\u002Fapi.passivetotal.org\u002Fv2\"\n    auth = (user, api_key)\n\n    # Passive DNS\n    pdns_resp = requests.get(\n        f\"{base_url}\u002Fdns\u002Fpassive\",\n        params={\"query\": indicator},\n        auth=auth,\n        timeout=30,\n    )\n\n    # WHOIS\n    whois_resp = requests.get(\n        f\"{base_url}\u002Fwhois\",\n        params={\"query\": indicator},\n        auth=auth,\n        timeout=30,\n    )\n\n    results = {}\n    if pdns_resp.status_code == 200:\n        results[\"passive_dns\"] = pdns_resp.json().get(\"results\", [])\n    if whois_resp.status_code == 200:\n        results[\"whois\"] = whois_resp.json()\n\n    return results\n```\n\n### Step 3: Certificate Transparency Monitoring\n\n```python\nimport requests\n\ndef search_ct_logs(domain):\n    \"\"\"Search Certificate Transparency logs via crt.sh.\"\"\"\n    resp = requests.get(\n        f\"https:\u002F\u002Fcrt.sh\u002F?q=%.{domain}&output=json\",\n        timeout=30,\n    )\n\n    if resp.status_code == 200:\n        certs = resp.json()\n        unique_domains = set()\n        cert_info = []\n\n        for cert in certs:\n            name_value = cert.get(\"name_value\", \"\")\n            for name in name_value.split(\"\\n\"):\n                unique_domains.add(name.strip())\n\n            cert_info.append({\n                \"id\": cert.get(\"id\"),\n                \"issuer\": cert.get(\"issuer_name\", \"\"),\n                \"common_name\": cert.get(\"common_name\", \"\"),\n                \"name_value\": name_value,\n                \"not_before\": cert.get(\"not_before\", \"\"),\n                \"not_after\": cert.get(\"not_after\", \"\"),\n                \"serial_number\": cert.get(\"serial_number\", \"\"),\n            })\n\n        return {\n            \"domain\": domain,\n            \"total_certificates\": len(certs),\n            \"unique_domains\": sorted(unique_domains),\n            \"certificates\": cert_info[:50],\n        }\n    return None\n\n\ndef monitor_new_certs(domains, interval_hours=1):\n    \"\"\"Monitor for newly issued certificates for a list of domains.\"\"\"\n    from datetime import datetime, timedelta\n\n    cutoff = (datetime.utcnow() - timedelta(hours=interval_hours)).isoformat()\n    new_certs = []\n\n    for domain in domains:\n        result = search_ct_logs(domain)\n        if result:\n            for cert in result.get(\"certificates\", []):\n                if cert.get(\"not_before\", \"\") > cutoff:\n                    new_certs.append({\n                        \"domain\": domain,\n                        \"cert\": cert,\n                    })\n\n    return new_certs\n```\n\n### Step 4: Infrastructure Correlation and Timeline\n\n```python\nfrom datetime import datetime\n\ndef build_infrastructure_timeline(indicators):\n    \"\"\"Build a timeline of infrastructure changes.\"\"\"\n    timeline = []\n\n    for ind in indicators:\n        if \"passive_dns\" in ind:\n            for record in ind[\"passive_dns\"]:\n                timeline.append({\n                    \"timestamp\": record.get(\"firstSeen\", \"\"),\n                    \"event\": \"dns_resolution\",\n                    \"source\": record.get(\"resolve\", \"\"),\n                    \"target\": record.get(\"value\", \"\"),\n                    \"record_type\": record.get(\"recordType\", \"\"),\n                })\n\n        if \"certificates\" in ind:\n            for cert in ind[\"certificates\"]:\n                timeline.append({\n                    \"timestamp\": cert.get(\"not_before\", \"\"),\n                    \"event\": \"certificate_issued\",\n                    \"domain\": cert.get(\"common_name\", \"\"),\n                    \"issuer\": cert.get(\"issuer\", \"\"),\n                })\n\n    timeline.sort(key=lambda x: x.get(\"timestamp\", \"\"))\n    return timeline\n```\n\n## Validation Criteria\n\n- Shodan\u002FCensys queries return infrastructure details for target IPs\n- Passive DNS reveals historical domain-IP mappings\n- Certificate transparency search finds associated domains\n- Infrastructure pivoting discovers new related indicators\n- Timeline shows infrastructure evolution over time\n- Results are exportable as STIX 2.1 Infrastructure objects\n\n## References\n\n- [Shodan API Documentation](https:\u002F\u002Fdeveloper.shodan.io\u002Fapi)\n- [Censys Search API](https:\u002F\u002Fsearch.censys.io\u002Fapi)\n- [SecurityTrails API](https:\u002F\u002Fsecuritytrails.com\u002Fcorp\u002Fapi)\n- [crt.sh Certificate Transparency](https:\u002F\u002Fcrt.sh\u002F)\n- [PassiveTotal API](https:\u002F\u002Fapi.passivetotal.org\u002Fapi\u002Fdocs\u002F)\n- [JARM Fingerprinting](https:\u002F\u002Fgithub.com\u002Fsalesforce\u002Fjarm)\n","# Tracking Threat Actor Infrastructure\n\n## Overview\n\nThreat 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\u002FCensys scanning, WHOIS analysis, and network fingerprinting to discover, track, and pivot across threat actor infrastructure over time.\n\n\n## When to Use\n\n- When managing security operations that require tracking threat actor infrastructure\n- When improving security program maturity and operational processes\n- When establishing standardized procedures for security team workflows\n- When integrating threat intelligence or vulnerability data into operations\n\n## Prerequisites\n\n- Python 3.9+ with `shodan`, `censys`, `requests`, `stix2` libraries\n- API keys: Shodan, Censys, VirusTotal, SecurityTrails, PassiveTotal\n- Understanding of DNS, TLS\u002FSSL certificates, IP allocation, ASN structure\n- Familiarity with passive DNS and certificate transparency concepts\n- Access to domain registration (WHOIS) lookup services\n\n## Key Concepts\n\n### Infrastructure Pivoting\nPivoting 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\u002FJA3S hashes, and WHOIS registrant data.\n\n### Passive DNS\nPassive DNS databases record DNS query\u002Fresponse 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.\n\n### Certificate Transparency\nCertificate Transparency (CT) logs publicly record all SSL\u002FTLS 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.\n\n### Network Fingerprinting\n- **JARM**: Active TLS server fingerprint (hash of TLS handshake responses)\n- **JA3S**: Passive TLS server fingerprint (hash of Server Hello)\n- **HTTP Headers**: Server banners, custom headers, response patterns\n- **Favicon Hash**: Hash of HTTP favicon for server identification\n\n## Workflow\n\n### Step 1: Shodan Infrastructure Discovery\n\n```python\nimport shodan\n\napi = shodan.Shodan(\"YOUR_SHODAN_API_KEY\")\n\ndef discover_infrastructure(ip_address):\n    \"\"\"Discover services and metadata for a target IP.\"\"\"\n    try:\n        host = api.host(ip_address)\n        return {\n            \"ip\": host[\"ip_str\"],\n            \"org\": host.get(\"org\", \"\"),\n            \"asn\": host.get(\"asn\", \"\"),\n            \"isp\": host.get(\"isp\", \"\"),\n            \"country\": host.get(\"country_name\", \"\"),\n            \"city\": host.get(\"city\", \"\"),\n            \"os\": host.get(\"os\"),\n            \"ports\": host.get(\"ports\", []),\n            \"vulns\": host.get(\"vulns\", []),\n            \"hostnames\": host.get(\"hostnames\", []),\n            \"domains\": host.get(\"domains\", []),\n            \"tags\": host.get(\"tags\", []),\n            \"services\": [\n                {\n                    \"port\": svc.get(\"port\"),\n                    \"transport\": svc.get(\"transport\"),\n                    \"product\": svc.get(\"product\", \"\"),\n                    \"version\": svc.get(\"version\", \"\"),\n                    \"ssl_cert\": svc.get(\"ssl\", {}).get(\"cert\", {}).get(\"subject\", {}),\n                    \"jarm\": svc.get(\"ssl\", {}).get(\"jarm\", \"\"),\n                }\n                for svc in host.get(\"data\", [])\n            ],\n        }\n    except shodan.APIError as e:\n        print(f\"[-] Shodan error: {e}\")\n        return None\n\ndef search_c2_framework(framework_name):\n    \"\"\"Search Shodan for known C2 framework signatures.\"\"\"\n    c2_queries = {\n        \"cobalt-strike\": 'product:\"Cobalt Strike Beacon\"',\n        \"metasploit\": 'product:\"Metasploit\"',\n        \"covenant\": 'http.html:\"Covenant\" http.title:\"Covenant\"',\n        \"sliver\": 'ssl.cert.subject.cn:\"multiplayer\" ssl.cert.issuer.cn:\"operators\"',\n        \"havoc\": 'http.html_hash:-1472705893',\n    }\n\n    query = c2_queries.get(framework_name.lower(), framework_name)\n    results = api.search(query, limit=100)\n\n    hosts = []\n    for match in results.get(\"matches\", []):\n        hosts.append({\n            \"ip\": match[\"ip_str\"],\n            \"port\": match[\"port\"],\n            \"org\": match.get(\"org\", \"\"),\n            \"country\": match.get(\"location\", {}).get(\"country_name\", \"\"),\n            \"asn\": match.get(\"asn\", \"\"),\n            \"timestamp\": match.get(\"timestamp\", \"\"),\n        })\n\n    return hosts\n```\n\n### Step 2: Passive DNS Pivoting\n\n```python\nimport requests\n\ndef passive_dns_lookup(indicator, api_key, indicator_type=\"ip\"):\n    \"\"\"Query SecurityTrails for passive DNS records.\"\"\"\n    base_url = \"https:\u002F\u002Fapi.securitytrails.com\u002Fv1\"\n    headers = {\"APIKEY\": api_key, \"Accept\": \"application\u002Fjson\"}\n\n    if indicator_type == \"ip\":\n        url = f\"{base_url}\u002Fsearch\u002Flist\"\n        payload = {\n            \"filter\": {\"ipv4\": indicator}\n        }\n        resp = requests.post(url, json=payload, headers=headers, timeout=30)\n    else:\n        url = f\"{base_url}\u002Fdomain\u002F{indicator}\u002Fsubdomains\"\n        resp = requests.get(url, headers=headers, timeout=30)\n\n    if resp.status_code == 200:\n        return resp.json()\n    return None\n\n\ndef query_passive_total(indicator, user, api_key):\n    \"\"\"Query PassiveTotal for passive DNS and WHOIS data.\"\"\"\n    base_url = \"https:\u002F\u002Fapi.passivetotal.org\u002Fv2\"\n    auth = (user, api_key)\n\n    # Passive DNS\n    pdns_resp = requests.get(\n        f\"{base_url}\u002Fdns\u002Fpassive\",\n        params={\"query\": indicator},\n        auth=auth,\n        timeout=30,\n    )\n\n    # WHOIS\n    whois_resp = requests.get(\n        f\"{base_url}\u002Fwhois\",\n        params={\"query\": indicator},\n        auth=auth,\n        timeout=30,\n    )\n\n    results = {}\n    if pdns_resp.status_code == 200:\n        results[\"passive_dns\"] = pdns_resp.json().get(\"results\", [])\n    if whois_resp.status_code == 200:\n        results[\"whois\"] = whois_resp.json()\n\n    return results\n```\n\n### Step 3: Certificate Transparency Monitoring\n\n```python\nimport requests\n\ndef search_ct_logs(domain):\n    \"\"\"Search Certificate Transparency logs via crt.sh.\"\"\"\n    resp = requests.get(\n        f\"https:\u002F\u002Fcrt.sh\u002F?q=%.{domain}&output=json\",\n        timeout=30,\n    )\n\n    if resp.status_code == 200:\n        certs = resp.json()\n        unique_domains = set()\n        cert_info = []\n\n        for cert in certs:\n            name_value = cert.get(\"name_value\", \"\")\n            for name in name_value.split(\"\\n\"):\n                unique_domains.add(name.strip())\n\n            cert_info.append({\n                \"id\": cert.get(\"id\"),\n                \"issuer\": cert.get(\"issuer_name\", \"\"),\n                \"common_name\": cert.get(\"common_name\", \"\"),\n                \"name_value\": name_value,\n                \"not_before\": cert.get(\"not_before\", \"\"),\n                \"not_after\": cert.get(\"not_after\", \"\"),\n                \"serial_number\": cert.get(\"serial_number\", \"\"),\n            })\n\n        return {\n            \"domain\": domain,\n            \"total_certificates\": len(certs),\n            \"unique_domains\": sorted(unique_domains),\n            \"certificates\": cert_info[:50],\n        }\n    return None\n\n\ndef monitor_new_certs(domains, interval_hours=1):\n    \"\"\"Monitor for newly issued certificates for a list of domains.\"\"\"\n    from datetime import datetime, timedelta\n\n    cutoff = (datetime.utcnow() - timedelta(hours=interval_hours)).isoformat()\n    new_certs = []\n\n    for domain in domains:\n        result = search_ct_logs(domain)\n        if result:\n            for cert in result.get(\"certificates\", []):\n                if cert.get(\"not_before\", \"\") > cutoff:\n                    new_certs.append({\n                        \"domain\": domain,\n                        \"cert\": cert,\n                    })\n\n    return new_certs\n```\n\n### Step 4: Infrastructure Correlation and Timeline\n\n```python\nfrom datetime import datetime\n\ndef build_infrastructure_timeline(indicators):\n    \"\"\"Build a timeline of infrastructure changes.\"\"\"\n    timeline = []\n\n    for ind in indicators:\n        if \"passive_dns\" in ind:\n            for record in ind[\"passive_dns\"]:\n                timeline.append({\n                    \"timestamp\": record.get(\"firstSeen\", \"\"),\n                    \"event\": \"dns_resolution\",\n                    \"source\": record.get(\"resolve\", \"\"),\n                    \"target\": record.get(\"value\", \"\"),\n                    \"record_type\": record.get(\"recordType\", \"\"),\n                })\n\n        if \"certificates\" in ind:\n            for cert in ind[\"certificates\"]:\n                timeline.append({\n                    \"timestamp\": cert.get(\"not_before\", \"\"),\n                    \"event\": \"certificate_issued\",\n                    \"domain\": cert.get(\"common_name\", \"\"),\n                    \"issuer\": cert.get(\"issuer\", \"\"),\n                })\n\n    timeline.sort(key=lambda x: x.get(\"timestamp\", \"\"))\n    return timeline\n```\n\n## Validation Criteria\n\n- Shodan\u002FCensys queries return infrastructure details for target IPs\n- Passive DNS reveals historical domain-IP mappings\n- Certificate transparency search finds associated domains\n- Infrastructure pivoting discovers new related indicators\n- Timeline shows infrastructure evolution over time\n- Results are exportable as STIX 2.1 Infrastructure objects\n\n## References\n\n- [Shodan API Documentation](https:\u002F\u002Fdeveloper.shodan.io\u002Fapi)\n- [Censys Search API](https:\u002F\u002Fsearch.censys.io\u002Fapi)\n- [SecurityTrails API](https:\u002F\u002Fsecuritytrails.com\u002Fcorp\u002Fapi)\n- [crt.sh Certificate Transparency](https:\u002F\u002Fcrt.sh\u002F)\n- [PassiveTotal API](https:\u002F\u002Fapi.passivetotal.org\u002Fapi\u002Fdocs\u002F)\n- [JARM Fingerprinting](https:\u002F\u002Fgithub.com\u002Fsalesforce\u002Fjarm)\n",{"name":5,"tags":24,"author":34,"domain":35,"license":14,"version":36,"mitre_f3":37,"nist_csf":63,"subdomain":25,"description":7,"mitre_attack":68},[25,26,27,28,29,30,31,32,33],"threat-intelligence","cti","ioc","mitre-attack","stix","infrastructure-tracking","shodan","censys","passive-dns","mahipal","cybersecurity","1.0",{"tactics":38,"version":41,"techniques":42},[39,40],"reconnaissance","resource-development","1.1",[43,47,50,53,56,60],{"id":44,"name":45,"source":46,"tactic":39},"T1593","Search Open Websites\u002FDomains","attack",{"id":48,"name":49,"source":46,"tactic":40},"T1583.001","Acquire Infrastructure: Domains",{"id":51,"name":52,"source":46,"tactic":40},"T1583.008","Acquire Infrastructure: Malvertising",{"id":54,"name":55,"source":46,"tactic":40},"T1583.003","Acquire Infrastructure: Virtual Private Network or Server",{"id":57,"name":58,"source":59,"tactic":40},"F1020.002","Create Fake Materials: Fake Website","f3",{"id":61,"name":62,"source":46,"tactic":40},"T1608.006","Stage Capabilities: SEO Poisoning",[64,65,66,67],"ID.RA-01","ID.RA-05","DE.CM-01","DE.AE-02",[69,70,44,71,72],"T1591","T1592","T1589","T1566","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftracking-threat-actor-infrastructure","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":80,"prompt":90,"zipAvailable":91},[81,84,87],{"tool":82,"command":83},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill tracking-threat-actor-infrastructure",{"tool":85,"command":86},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill tracking-threat-actor-infrastructure",{"tool":88,"command":89},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill tracking-threat-actor-infrastructure","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftracking-threat-actor-infrastructure\u002FSKILL.md",true,[93,99,103,109,113,117,123],{"path":94,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":97,"sourceHtmlUrl":98},"assets\u002Ftemplate.md","ASSET","资产文件",1357,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftracking-threat-actor-infrastructure\u002Fassets\u002Ftemplate.md",{"path":100,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":102,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":104,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":107,"sourceHtmlUrl":108},"references\u002Fapi-reference.md","REFERENCE","参考文档",1892,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftracking-threat-actor-infrastructure\u002Freferences\u002Fapi-reference.md",{"path":110,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":111,"sourceHtmlUrl":112},"references\u002Fstandards.md",1661,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftracking-threat-actor-infrastructure\u002Freferences\u002Fstandards.md",{"path":114,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":115,"sourceHtmlUrl":116},"references\u002Fworkflows.md",2422,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftracking-threat-actor-infrastructure\u002Freferences\u002Fworkflows.md",{"path":118,"resourceType":119,"resourceTypeDesc":120,"sizeBytes":121,"sourceHtmlUrl":122},"scripts\u002Fagent.py","SCRIPT","脚本",7800,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftracking-threat-actor-infrastructure\u002Fscripts\u002Fagent.py",{"path":124,"resourceType":119,"resourceTypeDesc":120,"sizeBytes":125,"sourceHtmlUrl":126},"scripts\u002Fprocess.py",11104,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Ftracking-threat-actor-infrastructure\u002Fscripts\u002Fprocess.py",[128,136,143,150,157,164],{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":132,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":19},"01M7BESR1CJ3H5SP9XM8KYJZ9W","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","MIT","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":132,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":19},"01M7BES1YA6R97W7QPMFFM1PED","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":132,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":19},"01M7BERNHYGY035AR00VRT03KE","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":132,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":19},"01M7BERCK1EAKTWW7R436WAR0J","notebooklm","Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio\u002FVideo Overviews, Mind Maps, Reports incl. Briefing Doc\u002FStudy Guide\u002FFAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":132,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":19},"01M7BEQZAZAQRTXFJRY7RHV3TY","litreview","Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed\u002FOpenAlex (or Consensus) query.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[],{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":132,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":19},"01M7BEQKJ45K31QK5VRAQSVJCJ","grants","NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",[],[]]