[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B8KVDS48JKFSXTJNBF79V3":3,"skill-same:01M7B8KVDS48JKFSXTJNBF79V3":83},{"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":47,"commitSha":48,"skillDirectory":49,"forksCount":13,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M7B8KVDS48JKFSXTJNBF79V3","performing-ip-reputation-analysis-with-shodan",null,"Analyze IP address reputation using the Shodan API to identify open ports, running services, known vulnerabilities, and hosting context for threat intelligence enrichment and incident triage.","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\u002Fperforming-ip-reputation-analysis-with-shodan\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-ip-reputation-analysis-with-shodan\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: performing-ip-reputation-analysis-with-shodan\ndescription: Analyze IP address reputation using the Shodan API to identify open ports,\n  running services, known vulnerabilities, and hosting context for threat intelligence\n  enrichment and incident triage.\ndomain: cybersecurity\nsubdomain: threat-intelligence\ntags:\n- shodan\n- ip-reputation\n- enrichment\n- threat-intelligence\n- reconnaissance\n- vulnerability\n- api\n- internet-scanning\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- T1595\n---\n# Performing IP Reputation Analysis with Shodan\n\n## Overview\n\nShodan is the world's first search engine for internet-connected devices, continuously scanning the IPv4 and IPv6 address space to catalog open ports, running services, SSL certificates, and known vulnerabilities. This skill covers using the Shodan API and InternetDB free API to enrich IP addresses from security alerts, assess threat levels based on exposed services and vulnerabilities, identify hosting infrastructure patterns, and integrate IP reputation data into SOC triage and threat intelligence workflows.\n\n\n## When to Use\n\n- When conducting security assessments that involve performing ip reputation analysis with shodan\n- When following incident response procedures for related security events\n- When performing scheduled security testing or auditing activities\n- When validating security controls through hands-on testing\n\n## Prerequisites\n\n- Python 3.9+ with `shodan` library (`pip install shodan`)\n- Shodan API key (free tier: limited queries; paid plans for higher limits and streaming)\n- Understanding of TCP\u002FUDP ports, common services, and CVE identifiers\n- Familiarity with ASN, CIDR notation, and IP geolocation concepts\n- Network security knowledge for interpreting scan results\n\n## Key Concepts\n\n### Shodan Data Model\n\nEach IP record in Shodan contains: open ports and protocols, banner data (service responses), SSL\u002FTLS certificate details, known CVE vulnerabilities, hostname(s) and reverse DNS, ASN and ISP information, geographic location, operating system fingerprint, and historical scan data showing changes over time.\n\n### InternetDB API\n\nShodan's free InternetDB API (internetdb.shodan.io) provides quick IP lookups without authentication, returning open ports, hostnames, tags, CPEs, and known vulnerabilities. This is useful for high-volume enrichment where the full Shodan API would hit rate limits.\n\n### Reputation Scoring\n\nIP reputation is assessed by combining: number and type of open ports (unusual ports indicate compromise), vulnerable services (unpatched software with known CVEs), hosting type (residential, cloud, VPN\u002Fproxy, bulletproof hosting), historical activity (past associations with malware, scanning, spam), and geographic context (countries known for specific threat activity).\n\n## Workflow\n\n### Step 1: Basic IP Enrichment with Shodan API\n\n```python\nimport shodan\nimport json\nfrom datetime import datetime\n\nclass ShodanEnricher:\n    def __init__(self, api_key):\n        self.api = shodan.Shodan(api_key)\n        self.info = self.api.info()\n        print(f\"[+] Shodan API initialized. Credits: {self.info.get('scan_credits', 0)}\")\n\n    def enrich_ip(self, ip_address):\n        \"\"\"Full enrichment of an IP address via Shodan.\"\"\"\n        try:\n            host = self.api.host(ip_address)\n            enrichment = {\n                \"ip\": ip_address,\n                \"organization\": host.get(\"org\", \"\"),\n                \"asn\": host.get(\"asn\", \"\"),\n                \"isp\": host.get(\"isp\", \"\"),\n                \"country\": host.get(\"country_name\", \"\"),\n                \"country_code\": host.get(\"country_code\", \"\"),\n                \"city\": host.get(\"city\", \"\"),\n                \"latitude\": host.get(\"latitude\"),\n                \"longitude\": host.get(\"longitude\"),\n                \"os\": host.get(\"os\", \"\"),\n                \"ports\": host.get(\"ports\", []),\n                \"hostnames\": host.get(\"hostnames\", []),\n                \"domains\": host.get(\"domains\", []),\n                \"vulns\": host.get(\"vulns\", []),\n                \"tags\": host.get(\"tags\", []),\n                \"last_update\": host.get(\"last_update\", \"\"),\n                \"services\": [],\n            }\n\n            for service in host.get(\"data\", []):\n                svc = {\n                    \"port\": service.get(\"port\", 0),\n                    \"transport\": service.get(\"transport\", \"tcp\"),\n                    \"product\": service.get(\"product\", \"\"),\n                    \"version\": service.get(\"version\", \"\"),\n                    \"module\": service.get(\"_shodan\", {}).get(\"module\", \"\"),\n                    \"banner\": service.get(\"data\", \"\")[:200],\n                }\n                if \"ssl\" in service:\n                    svc[\"ssl_subject\"] = service[\"ssl\"].get(\"cert\", {}).get(\"subject\", {})\n                    svc[\"ssl_issuer\"] = service[\"ssl\"].get(\"cert\", {}).get(\"issuer\", {})\n                    svc[\"ssl_expires\"] = service[\"ssl\"].get(\"cert\", {}).get(\"expires\", \"\")\n                enrichment[\"services\"].append(svc)\n\n            # Calculate reputation score\n            enrichment[\"reputation\"] = self._calculate_reputation(enrichment)\n            print(f\"[+] {ip_address}: {len(enrichment['ports'])} ports, \"\n                  f\"{len(enrichment['vulns'])} vulns, \"\n                  f\"reputation: {enrichment['reputation']['level']}\")\n            return enrichment\n\n        except shodan.APIError as e:\n            print(f\"[-] Shodan error for {ip_address}: {e}\")\n            return None\n\n    def _calculate_reputation(self, data):\n        \"\"\"Calculate IP reputation score based on Shodan data.\"\"\"\n        score = 0\n        factors = []\n\n        # Vulnerability assessment\n        vuln_count = len(data.get(\"vulns\", []))\n        if vuln_count > 10:\n            score += 40\n            factors.append(f\"{vuln_count} known vulnerabilities\")\n        elif vuln_count > 5:\n            score += 25\n            factors.append(f\"{vuln_count} known vulnerabilities\")\n        elif vuln_count > 0:\n            score += 10\n            factors.append(f\"{vuln_count} known vulnerabilities\")\n\n        # Suspicious port analysis\n        suspicious_ports = {4444, 5555, 6666, 8888, 9090, 1234, 31337,\n                           6667, 6697, 8080, 8443, 3128, 1080}\n        open_ports = set(data.get(\"ports\", []))\n        sus_found = open_ports.intersection(suspicious_ports)\n        if sus_found:\n            score += 15\n            factors.append(f\"suspicious ports: {sus_found}\")\n\n        # Tag-based assessment\n        malicious_tags = {\"self-signed\", \"cloud\", \"vpn\", \"proxy\", \"tor\"}\n        tags = set(data.get(\"tags\", []))\n        mal_tags = tags.intersection(malicious_tags)\n        if mal_tags:\n            score += 10\n            factors.append(f\"tags: {mal_tags}\")\n\n        # Too many open ports\n        port_count = len(data.get(\"ports\", []))\n        if port_count > 20:\n            score += 15\n            factors.append(f\"excessive open ports ({port_count})\")\n\n        level = (\n            \"critical\" if score >= 50\n            else \"high\" if score >= 35\n            else \"medium\" if score >= 15\n            else \"low\"\n        )\n\n        return {\"score\": score, \"level\": level, \"factors\": factors}\n\n    def enrich_ip_free(self, ip_address):\n        \"\"\"Quick IP enrichment using free InternetDB API.\"\"\"\n        import requests\n        resp = requests.get(f\"https:\u002F\u002Finternetdb.shodan.io\u002F{ip_address}\", timeout=10)\n        if resp.status_code == 200:\n            data = resp.json()\n            print(f\"[+] InternetDB: {ip_address} -> \"\n                  f\"{len(data.get('ports', []))} ports, \"\n                  f\"{len(data.get('vulns', []))} vulns\")\n            return data\n        return None\n\nenricher = ShodanEnricher(\"YOUR_SHODAN_API_KEY\")\nresult = enricher.enrich_ip(\"8.8.8.8\")\nprint(json.dumps(result, indent=2, default=str))\n```\n\n### Step 2: Batch IP Reputation Check\n\n```python\nimport time\n\ndef batch_ip_reputation(enricher, ip_list, output_file=\"ip_reputation.json\"):\n    \"\"\"Check reputation for a list of IP addresses.\"\"\"\n    results = []\n    for i, ip in enumerate(ip_list):\n        result = enricher.enrich_ip(ip)\n        if result:\n            results.append(result)\n        if (i + 1) % 10 == 0:\n            print(f\"  [{i+1}\u002F{len(ip_list)}] Processed\")\n            time.sleep(1)  # Rate limiting\n\n    # Sort by reputation score (highest risk first)\n    results.sort(key=lambda x: x.get(\"reputation\", {}).get(\"score\", 0), reverse=True)\n\n    with open(output_file, \"w\") as f:\n        json.dump(results, f, indent=2, default=str)\n\n    # Summary\n    levels = {\"critical\": 0, \"high\": 0, \"medium\": 0, \"low\": 0}\n    for r in results:\n        level = r.get(\"reputation\", {}).get(\"level\", \"low\")\n        levels[level] += 1\n\n    print(f\"\\n=== Batch Reputation Summary ===\")\n    print(f\"Total IPs: {len(results)}\")\n    for level, count in levels.items():\n        print(f\"  {level.upper()}: {count}\")\n\n    return results\n\nsuspicious_ips = [\"203.0.113.1\", \"198.51.100.5\", \"192.0.2.100\"]\nresults = batch_ip_reputation(enricher, suspicious_ips)\n```\n\n### Step 3: Infrastructure Correlation\n\n```python\ndef correlate_infrastructure(enricher, ip_address):\n    \"\"\"Find related infrastructure based on shared attributes.\"\"\"\n    host_data = enricher.enrich_ip(ip_address)\n    if not host_data:\n        return {}\n\n    correlations = {\n        \"same_org\": [],\n        \"same_asn\": [],\n        \"shared_ssl\": [],\n    }\n\n    # Search for same organization\n    org = host_data.get(\"organization\", \"\")\n    if org:\n        try:\n            results = enricher.api.search(f'org:\"{org}\"', limit=20)\n            for match in results.get(\"matches\", []):\n                correlations[\"same_org\"].append({\n                    \"ip\": match.get(\"ip_str\", \"\"),\n                    \"port\": match.get(\"port\", 0),\n                    \"product\": match.get(\"product\", \"\"),\n                })\n        except shodan.APIError:\n            pass\n\n    # Search for same SSL certificate\n    for service in host_data.get(\"services\", []):\n        ssl_subject = service.get(\"ssl_subject\", {})\n        if ssl_subject:\n            cn = ssl_subject.get(\"CN\", \"\")\n            if cn:\n                try:\n                    results = enricher.api.search(f'ssl.cert.subject.CN:\"{cn}\"', limit=20)\n                    for match in results.get(\"matches\", []):\n                        correlations[\"shared_ssl\"].append({\n                            \"ip\": match.get(\"ip_str\", \"\"),\n                            \"cn\": cn,\n                        })\n                except shodan.APIError:\n                    pass\n\n    print(f\"[+] Infrastructure correlations for {ip_address}:\")\n    print(f\"  Same org: {len(correlations['same_org'])} hosts\")\n    print(f\"  Shared SSL: {len(correlations['shared_ssl'])} hosts\")\n    return correlations\n```\n\n## Validation Criteria\n\n- Shodan API queried successfully with proper authentication\n- IP enrichment returns ports, services, vulnerabilities, and geolocation\n- Reputation scoring classifies IPs by threat level\n- Batch enrichment handles rate limiting correctly\n- Infrastructure correlation identifies related hosts\n- InternetDB free API used for high-volume lookups\n\n## References\n\n- [Shodan Developer API](https:\u002F\u002Fdeveloper.shodan.io\u002Fapi)\n- [Shodan InternetDB API](https:\u002F\u002Finternetdb.shodan.io\u002F)\n- [Shodan Python Library](https:\u002F\u002Fgithub.com\u002Fachillean\u002Fshodan-python)\n- [Query.ai: Leveraging Shodan for Security Research](https:\u002F\u002Fwww.query.ai\u002Fresources\u002Fblogs\u002Fleveraging-shodan-for-security-research\u002F)\n- [Torq: Shodan IP Enrichment Workflow](https:\u002F\u002Fkb.torq.io\u002Fen\u002Farticles\u002F9350284-shodan-ip-address-enrichment-with-cache-workflow-template)\n- [Recorded Future: Shodan Integration](https:\u002F\u002Fsupport.recordedfuture.com\u002Fhc\u002Fen-us\u002Farticles\u002F115001403928-Shodan)\n","# Performing IP Reputation Analysis with Shodan\n\n## Overview\n\nShodan is the world's first search engine for internet-connected devices, continuously scanning the IPv4 and IPv6 address space to catalog open ports, running services, SSL certificates, and known vulnerabilities. This skill covers using the Shodan API and InternetDB free API to enrich IP addresses from security alerts, assess threat levels based on exposed services and vulnerabilities, identify hosting infrastructure patterns, and integrate IP reputation data into SOC triage and threat intelligence workflows.\n\n\n## When to Use\n\n- When conducting security assessments that involve performing ip reputation analysis with shodan\n- When following incident response procedures for related security events\n- When performing scheduled security testing or auditing activities\n- When validating security controls through hands-on testing\n\n## Prerequisites\n\n- Python 3.9+ with `shodan` library (`pip install shodan`)\n- Shodan API key (free tier: limited queries; paid plans for higher limits and streaming)\n- Understanding of TCP\u002FUDP ports, common services, and CVE identifiers\n- Familiarity with ASN, CIDR notation, and IP geolocation concepts\n- Network security knowledge for interpreting scan results\n\n## Key Concepts\n\n### Shodan Data Model\n\nEach IP record in Shodan contains: open ports and protocols, banner data (service responses), SSL\u002FTLS certificate details, known CVE vulnerabilities, hostname(s) and reverse DNS, ASN and ISP information, geographic location, operating system fingerprint, and historical scan data showing changes over time.\n\n### InternetDB API\n\nShodan's free InternetDB API (internetdb.shodan.io) provides quick IP lookups without authentication, returning open ports, hostnames, tags, CPEs, and known vulnerabilities. This is useful for high-volume enrichment where the full Shodan API would hit rate limits.\n\n### Reputation Scoring\n\nIP reputation is assessed by combining: number and type of open ports (unusual ports indicate compromise), vulnerable services (unpatched software with known CVEs), hosting type (residential, cloud, VPN\u002Fproxy, bulletproof hosting), historical activity (past associations with malware, scanning, spam), and geographic context (countries known for specific threat activity).\n\n## Workflow\n\n### Step 1: Basic IP Enrichment with Shodan API\n\n```python\nimport shodan\nimport json\nfrom datetime import datetime\n\nclass ShodanEnricher:\n    def __init__(self, api_key):\n        self.api = shodan.Shodan(api_key)\n        self.info = self.api.info()\n        print(f\"[+] Shodan API initialized. Credits: {self.info.get('scan_credits', 0)}\")\n\n    def enrich_ip(self, ip_address):\n        \"\"\"Full enrichment of an IP address via Shodan.\"\"\"\n        try:\n            host = self.api.host(ip_address)\n            enrichment = {\n                \"ip\": ip_address,\n                \"organization\": host.get(\"org\", \"\"),\n                \"asn\": host.get(\"asn\", \"\"),\n                \"isp\": host.get(\"isp\", \"\"),\n                \"country\": host.get(\"country_name\", \"\"),\n                \"country_code\": host.get(\"country_code\", \"\"),\n                \"city\": host.get(\"city\", \"\"),\n                \"latitude\": host.get(\"latitude\"),\n                \"longitude\": host.get(\"longitude\"),\n                \"os\": host.get(\"os\", \"\"),\n                \"ports\": host.get(\"ports\", []),\n                \"hostnames\": host.get(\"hostnames\", []),\n                \"domains\": host.get(\"domains\", []),\n                \"vulns\": host.get(\"vulns\", []),\n                \"tags\": host.get(\"tags\", []),\n                \"last_update\": host.get(\"last_update\", \"\"),\n                \"services\": [],\n            }\n\n            for service in host.get(\"data\", []):\n                svc = {\n                    \"port\": service.get(\"port\", 0),\n                    \"transport\": service.get(\"transport\", \"tcp\"),\n                    \"product\": service.get(\"product\", \"\"),\n                    \"version\": service.get(\"version\", \"\"),\n                    \"module\": service.get(\"_shodan\", {}).get(\"module\", \"\"),\n                    \"banner\": service.get(\"data\", \"\")[:200],\n                }\n                if \"ssl\" in service:\n                    svc[\"ssl_subject\"] = service[\"ssl\"].get(\"cert\", {}).get(\"subject\", {})\n                    svc[\"ssl_issuer\"] = service[\"ssl\"].get(\"cert\", {}).get(\"issuer\", {})\n                    svc[\"ssl_expires\"] = service[\"ssl\"].get(\"cert\", {}).get(\"expires\", \"\")\n                enrichment[\"services\"].append(svc)\n\n            # Calculate reputation score\n            enrichment[\"reputation\"] = self._calculate_reputation(enrichment)\n            print(f\"[+] {ip_address}: {len(enrichment['ports'])} ports, \"\n                  f\"{len(enrichment['vulns'])} vulns, \"\n                  f\"reputation: {enrichment['reputation']['level']}\")\n            return enrichment\n\n        except shodan.APIError as e:\n            print(f\"[-] Shodan error for {ip_address}: {e}\")\n            return None\n\n    def _calculate_reputation(self, data):\n        \"\"\"Calculate IP reputation score based on Shodan data.\"\"\"\n        score = 0\n        factors = []\n\n        # Vulnerability assessment\n        vuln_count = len(data.get(\"vulns\", []))\n        if vuln_count > 10:\n            score += 40\n            factors.append(f\"{vuln_count} known vulnerabilities\")\n        elif vuln_count > 5:\n            score += 25\n            factors.append(f\"{vuln_count} known vulnerabilities\")\n        elif vuln_count > 0:\n            score += 10\n            factors.append(f\"{vuln_count} known vulnerabilities\")\n\n        # Suspicious port analysis\n        suspicious_ports = {4444, 5555, 6666, 8888, 9090, 1234, 31337,\n                           6667, 6697, 8080, 8443, 3128, 1080}\n        open_ports = set(data.get(\"ports\", []))\n        sus_found = open_ports.intersection(suspicious_ports)\n        if sus_found:\n            score += 15\n            factors.append(f\"suspicious ports: {sus_found}\")\n\n        # Tag-based assessment\n        malicious_tags = {\"self-signed\", \"cloud\", \"vpn\", \"proxy\", \"tor\"}\n        tags = set(data.get(\"tags\", []))\n        mal_tags = tags.intersection(malicious_tags)\n        if mal_tags:\n            score += 10\n            factors.append(f\"tags: {mal_tags}\")\n\n        # Too many open ports\n        port_count = len(data.get(\"ports\", []))\n        if port_count > 20:\n            score += 15\n            factors.append(f\"excessive open ports ({port_count})\")\n\n        level = (\n            \"critical\" if score >= 50\n            else \"high\" if score >= 35\n            else \"medium\" if score >= 15\n            else \"low\"\n        )\n\n        return {\"score\": score, \"level\": level, \"factors\": factors}\n\n    def enrich_ip_free(self, ip_address):\n        \"\"\"Quick IP enrichment using free InternetDB API.\"\"\"\n        import requests\n        resp = requests.get(f\"https:\u002F\u002Finternetdb.shodan.io\u002F{ip_address}\", timeout=10)\n        if resp.status_code == 200:\n            data = resp.json()\n            print(f\"[+] InternetDB: {ip_address} -> \"\n                  f\"{len(data.get('ports', []))} ports, \"\n                  f\"{len(data.get('vulns', []))} vulns\")\n            return data\n        return None\n\nenricher = ShodanEnricher(\"YOUR_SHODAN_API_KEY\")\nresult = enricher.enrich_ip(\"8.8.8.8\")\nprint(json.dumps(result, indent=2, default=str))\n```\n\n### Step 2: Batch IP Reputation Check\n\n```python\nimport time\n\ndef batch_ip_reputation(enricher, ip_list, output_file=\"ip_reputation.json\"):\n    \"\"\"Check reputation for a list of IP addresses.\"\"\"\n    results = []\n    for i, ip in enumerate(ip_list):\n        result = enricher.enrich_ip(ip)\n        if result:\n            results.append(result)\n        if (i + 1) % 10 == 0:\n            print(f\"  [{i+1}\u002F{len(ip_list)}] Processed\")\n            time.sleep(1)  # Rate limiting\n\n    # Sort by reputation score (highest risk first)\n    results.sort(key=lambda x: x.get(\"reputation\", {}).get(\"score\", 0), reverse=True)\n\n    with open(output_file, \"w\") as f:\n        json.dump(results, f, indent=2, default=str)\n\n    # Summary\n    levels = {\"critical\": 0, \"high\": 0, \"medium\": 0, \"low\": 0}\n    for r in results:\n        level = r.get(\"reputation\", {}).get(\"level\", \"low\")\n        levels[level] += 1\n\n    print(f\"\\n=== Batch Reputation Summary ===\")\n    print(f\"Total IPs: {len(results)}\")\n    for level, count in levels.items():\n        print(f\"  {level.upper()}: {count}\")\n\n    return results\n\nsuspicious_ips = [\"203.0.113.1\", \"198.51.100.5\", \"192.0.2.100\"]\nresults = batch_ip_reputation(enricher, suspicious_ips)\n```\n\n### Step 3: Infrastructure Correlation\n\n```python\ndef correlate_infrastructure(enricher, ip_address):\n    \"\"\"Find related infrastructure based on shared attributes.\"\"\"\n    host_data = enricher.enrich_ip(ip_address)\n    if not host_data:\n        return {}\n\n    correlations = {\n        \"same_org\": [],\n        \"same_asn\": [],\n        \"shared_ssl\": [],\n    }\n\n    # Search for same organization\n    org = host_data.get(\"organization\", \"\")\n    if org:\n        try:\n            results = enricher.api.search(f'org:\"{org}\"', limit=20)\n            for match in results.get(\"matches\", []):\n                correlations[\"same_org\"].append({\n                    \"ip\": match.get(\"ip_str\", \"\"),\n                    \"port\": match.get(\"port\", 0),\n                    \"product\": match.get(\"product\", \"\"),\n                })\n        except shodan.APIError:\n            pass\n\n    # Search for same SSL certificate\n    for service in host_data.get(\"services\", []):\n        ssl_subject = service.get(\"ssl_subject\", {})\n        if ssl_subject:\n            cn = ssl_subject.get(\"CN\", \"\")\n            if cn:\n                try:\n                    results = enricher.api.search(f'ssl.cert.subject.CN:\"{cn}\"', limit=20)\n                    for match in results.get(\"matches\", []):\n                        correlations[\"shared_ssl\"].append({\n                            \"ip\": match.get(\"ip_str\", \"\"),\n                            \"cn\": cn,\n                        })\n                except shodan.APIError:\n                    pass\n\n    print(f\"[+] Infrastructure correlations for {ip_address}:\")\n    print(f\"  Same org: {len(correlations['same_org'])} hosts\")\n    print(f\"  Shared SSL: {len(correlations['shared_ssl'])} hosts\")\n    return correlations\n```\n\n## Validation Criteria\n\n- Shodan API queried successfully with proper authentication\n- IP enrichment returns ports, services, vulnerabilities, and geolocation\n- Reputation scoring classifies IPs by threat level\n- Batch enrichment handles rate limiting correctly\n- Infrastructure correlation identifies related hosts\n- InternetDB free API used for high-volume lookups\n\n## References\n\n- [Shodan Developer API](https:\u002F\u002Fdeveloper.shodan.io\u002Fapi)\n- [Shodan InternetDB API](https:\u002F\u002Finternetdb.shodan.io\u002F)\n- [Shodan Python Library](https:\u002F\u002Fgithub.com\u002Fachillean\u002Fshodan-python)\n- [Query.ai: Leveraging Shodan for Security Research](https:\u002F\u002Fwww.query.ai\u002Fresources\u002Fblogs\u002Fleveraging-shodan-for-security-research\u002F)\n- [Torq: Shodan IP Enrichment Workflow](https:\u002F\u002Fkb.torq.io\u002Fen\u002Farticles\u002F9350284-shodan-ip-address-enrichment-with-cache-workflow-template)\n- [Recorded Future: Shodan Integration](https:\u002F\u002Fsupport.recordedfuture.com\u002Fhc\u002Fen-us\u002Farticles\u002F115001403928-Shodan)\n",{"name":5,"tags":24,"author":33,"domain":34,"license":14,"version":35,"nist_csf":36,"subdomain":28,"description":7,"mitre_attack":41},[25,26,27,28,29,30,31,32],"shodan","ip-reputation","enrichment","threat-intelligence","reconnaissance","vulnerability","api","internet-scanning","mahipal","cybersecurity","1.0",[37,38,39,40],"ID.RA-01","ID.RA-05","DE.CM-01","DE.AE-02",[42,43,44,45,46],"T1591","T1592","T1593","T1589","T1595","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-ip-reputation-analysis-with-shodan","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill performing-ip-reputation-analysis-with-shodan",{"tool":59,"command":60},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill performing-ip-reputation-analysis-with-shodan",{"tool":62,"command":63},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill performing-ip-reputation-analysis-with-shodan","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-ip-reputation-analysis-with-shodan\u002FSKILL.md",true,[67,71,77],{"path":68,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fapi-reference.md","REFERENCE","参考文档",1157,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-ip-reputation-analysis-with-shodan\u002Freferences\u002Fapi-reference.md",{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Fagent.py","SCRIPT","脚本",4260,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fperforming-ip-reputation-analysis-with-shodan\u002Fscripts\u002Fagent.py",[84,92,99,106,113,120],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":88,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"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":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":88,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"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":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":88,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"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":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":88,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"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":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":88,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"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":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":88,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"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",[],[]]