[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E6PVF7D40Q4PWT3DDNP3W1":3,"skill-same:01M7E6PVF7D40Q4PWT3DDNP3W1":130},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":74,"commitSha":75,"skillDirectory":76,"forksCount":77,"repositoryHtmlUrl":78,"repositoryHomepageUrl":6,"ownerHtmlUrl":79,"ownerBlogUrl":6,"ownerDescription":80,"updatedAt":81,"install":82,"resources":95},"01M7E6PVF7D40Q4PWT3DDNP3W1","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.","sanjeevafk\u002Fagent-skills","sanjeevafk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230678117?v=4","01M7C540EFY46ETG1NNWKS5X3Q","Sanjeev","01M7C540F366J5C1D587BMKH9Q",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Ftracking-threat-actor-infrastructure\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-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":25,"author":35,"domain":36,"license":15,"version":37,"mitre_f3":38,"nist_csf":64,"subdomain":26,"description":7,"mitre_attack":69},[26,27,28,29,30,31,32,33,34],"threat-intelligence","cti","ioc","mitre-attack","stix","infrastructure-tracking","shodan","censys","passive-dns","mahipal","cybersecurity","1.0",{"tactics":39,"version":42,"techniques":43},[40,41],"reconnaissance","resource-development","1.1",[44,48,51,54,57,61],{"id":45,"name":46,"source":47,"tactic":40},"T1593","Search Open Websites\u002FDomains","attack",{"id":49,"name":50,"source":47,"tactic":41},"T1583.001","Acquire Infrastructure: Domains",{"id":52,"name":53,"source":47,"tactic":41},"T1583.008","Acquire Infrastructure: Malvertising",{"id":55,"name":56,"source":47,"tactic":41},"T1583.003","Acquire Infrastructure: Virtual Private Network or Server",{"id":58,"name":59,"source":60,"tactic":41},"F1020.002","Create Fake Materials: Fake Website","f3",{"id":62,"name":63,"source":47,"tactic":41},"T1608.006","Stage Capabilities: SEO Poisoning",[65,66,67,68],"ID.RA-01","ID.RA-05","DE.CM-01","DE.AE-02",[70,71,45,72,73],"T1591","T1592","T1589","T1566","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","collections\u002Fcybersecurity-skills\u002Fskills\u002Ftracking-threat-actor-infrastructure",1,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fsanjeevafk","First make it work. Then make it right. Then make it fast.","2026-11-14 13:36:16",{"source":8,"skillName":5,"commands":83,"prompt":93,"zipAvailable":94},[84,87,90],{"tool":85,"command":86},"npx","npx skills add sanjeevafk\u002Fagent-skills --skill tracking-threat-actor-infrastructure",{"tool":88,"command":89},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill tracking-threat-actor-infrastructure",{"tool":91,"command":92},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill tracking-threat-actor-infrastructure","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Ftracking-threat-actor-infrastructure\u002FSKILL.md",true,[96,102,106,112,116,120,126],{"path":97,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":100,"sourceHtmlUrl":101},"assets\u002Ftemplate.md","ASSET","资产文件",1357,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Ftracking-threat-actor-infrastructure\u002Fassets\u002Ftemplate.md",{"path":103,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":105,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":107,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":110,"sourceHtmlUrl":111},"references\u002Fapi-reference.md","REFERENCE","参考文档",1892,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Ftracking-threat-actor-infrastructure\u002Freferences\u002Fapi-reference.md",{"path":113,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":114,"sourceHtmlUrl":115},"references\u002Fstandards.md",1661,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Ftracking-threat-actor-infrastructure\u002Freferences\u002Fstandards.md",{"path":117,"resourceType":108,"resourceTypeDesc":109,"sizeBytes":118,"sourceHtmlUrl":119},"references\u002Fworkflows.md",2422,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Ftracking-threat-actor-infrastructure\u002Freferences\u002Fworkflows.md",{"path":121,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":124,"sourceHtmlUrl":125},"scripts\u002Fagent.py","SCRIPT","脚本",7800,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Ftracking-threat-actor-infrastructure\u002Fscripts\u002Fagent.py",{"path":127,"resourceType":122,"resourceTypeDesc":123,"sizeBytes":128,"sourceHtmlUrl":129},"scripts\u002Fprocess.py",11104,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fcybersecurity-skills\u002Fskills\u002Ftracking-threat-actor-infrastructure\u002Fscripts\u002Fprocess.py",[131,139,147,155,163,170],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":135,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":20},"01M7EFHX67M3KKXT1BXVPA5ADT","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","MIT","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":135,"licenseFileUrl":143,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":20},"01M7EFFQGM51TZBGRENXY50ZYM","whiteboard-diagrams","Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FSKILL.md",[],[],{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":151,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":20},"01M7EFF1CSQNTDMHFK4ZGY6NYK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":159,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":20},"01M7EFE8106X6C28FT8PA74427","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":135,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":20},"01M7EFCSNZM9G7ZHS6F127Q71X","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":135,"licenseFileUrl":174,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":20},"01M7EFCE7EZMKPRYDDNKBQ9EEH","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FSKILL.md",[],[]]