[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78J2XY9EH61MSCFXWG4EEBX":3,"skill-same:01M78J2XY9EH61MSCFXWG4EEBX":76},{"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":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M78J2XY9EH61MSCFXWG4EEBX","building-threat-feed-aggregation-with-misp",null,"Deploy MISP (Malware Information Sharing Platform) to aggregate, correlate, and distribute threat intelligence feeds from multiple sources for centralized IOC management and automated SIEM integration.","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbuilding-threat-feed-aggregation-with-misp\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbuilding-threat-feed-aggregation-with-misp\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: building-threat-feed-aggregation-with-misp\ndescription: Deploy MISP (Malware Information Sharing Platform) to aggregate, correlate, and distribute threat intelligence feeds from multiple sources for centralized IOC management and automated SIEM integration.\ndomain: cybersecurity\nsubdomain: threat-intelligence\ntags: [misp, threat-feed, aggregation, indicator, sharing, correlation, siem-integration, threat-intelligence]\nversion: \"1.0\"\nauthor: mahipal\nlicense: Apache-2.0\n---\n# Building Threat Feed Aggregation with MISP\n\n## Overview\n\nMISP is the leading open-source threat intelligence platform for collecting, storing, distributing, and sharing cybersecurity indicators and threat intelligence. It aggregates feeds from OSINT sources, commercial providers, and sharing communities into a unified platform with automatic correlation, STIX\u002FTAXII export, and direct integration with SIEMs and security tools. This skill covers deploying MISP via Docker, configuring feeds from sources like abuse.ch, AlienVault OTX, and CIRCL, setting up automated feed synchronization, and integrating with Splunk, Elasticsearch, and SOAR platforms.\n\n\n## When to Use\n\n- When deploying or configuring building threat feed aggregation with misp capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Docker and Docker Compose for deployment\n- Python 3.9+ with `pymisp` library for API interaction\n- Linux server with 8GB+ RAM for production deployment\n- Understanding of IOC types and threat intelligence lifecycle\n- Network access to external feed URLs\n\n## Key Concepts\n\n### MISP Architecture\n\nMISP stores threat intelligence as Events containing Attributes (IOCs) organized by type and category. Events can have Tags (MITRE ATT&CK, TLP marking, sector tags), Galaxies (threat actor profiles, malware families, attack patterns), and Objects (structured groupings of related attributes). Events are correlated automatically across the instance.\n\n### Feed Types\n\nMISP supports three feed formats: MISP format (native JSON events), CSV (comma-separated IOCs), and freetext (unstructured text with automatic IOC extraction). Feeds can be remote (fetched from URLs) or local (uploaded files). MISP ships with 80+ default OSINT feeds including abuse.ch URLhaus, Botvrij, CIRCL OSINT, and malware traffic analysis.\n\n### Sharing and Synchronization\n\nMISP instances can synchronize with other MISP instances via push\u002Fpull mechanisms. Sharing groups control distribution (organization only, this community, connected communities, all communities). The TAXII server module enables integration with STIX\u002FTAXII consumers.\n\n## Workflow\n\n### Step 1: Deploy MISP with Docker\n\n```yaml\n# docker-compose.yml for MISP deployment\nversion: '3.8'\nservices:\n  misp:\n    image: coolacid\u002Fmisp-docker:core-latest\n    container_name: misp\n    restart: unless-stopped\n    ports:\n      - \"443:443\"\n      - \"80:80\"\n    environment:\n      - MYSQL_HOST=misp-db\n      - MYSQL_DATABASE=misp\n      - MYSQL_USER=misp\n      - MYSQL_PASSWORD=misp_db_password_change_me\n      - MISP_ADMIN_EMAIL=admin@organization.com\n      - MISP_ADMIN_PASSPHRASE=admin_password_change_me\n      - MISP_BASEURL=https:\u002F\u002Fmisp.organization.com\n      - POSTFIX_RELAY_HOST=smtp.organization.com\n      - TIMEZONE=UTC\n    volumes:\n      - misp-data:\u002Fvar\u002Fwww\u002FMISP\u002Fapp\u002Ffiles\n      - misp-config:\u002Fvar\u002Fwww\u002FMISP\u002Fapp\u002FConfig\n    depends_on:\n      - misp-db\n      - misp-redis\n\n  misp-db:\n    image: mysql:8.0\n    container_name: misp-db\n    restart: unless-stopped\n    environment:\n      - MYSQL_DATABASE=misp\n      - MYSQL_USER=misp\n      - MYSQL_PASSWORD=misp_db_password_change_me\n      - MYSQL_ROOT_PASSWORD=root_password_change_me\n    volumes:\n      - misp-db-data:\u002Fvar\u002Flib\u002Fmysql\n\n  misp-redis:\n    image: redis:7\n    container_name: misp-redis\n    restart: unless-stopped\n\nvolumes:\n  misp-data:\n  misp-config:\n  misp-db-data:\n```\n\n### Step 2: Configure Feeds via PyMISP API\n\n```python\nfrom pymisp import PyMISP, MISPFeed\nimport json\n\nclass MISPFeedManager:\n    def __init__(self, misp_url, misp_key, verify_ssl=False):\n        self.misp = PyMISP(misp_url, misp_key, verify_ssl)\n        print(f\"[+] Connected to MISP: {misp_url}\")\n\n    def list_feeds(self):\n        \"\"\"List all configured feeds.\"\"\"\n        feeds = self.misp.feeds()\n        enabled = [f for f in feeds if f.get(\"Feed\", {}).get(\"enabled\")]\n        disabled = [f for f in feeds if not f.get(\"Feed\", {}).get(\"enabled\")]\n        print(f\"[+] Feeds: {len(enabled)} enabled, {len(disabled)} disabled\")\n        return feeds\n\n    def enable_default_feeds(self):\n        \"\"\"Enable recommended default OSINT feeds.\"\"\"\n        recommended_feeds = [\n            \"CIRCL OSINT Feed\",\n            \"Botvrij.eu - Indicators of Compromise\",\n            \"abuse.ch URLhaus Host file\",\n            \"abuse.ch Feodo Tracker\",\n            \"abuse.ch SSL Blacklist\",\n            \"malwaredomainlist\",\n            \"CyberCure - IP Feed\",\n        ]\n\n        feeds = self.misp.feeds()\n        enabled_count = 0\n        for feed in feeds:\n            feed_data = feed.get(\"Feed\", {})\n            if feed_data.get(\"name\") in recommended_feeds:\n                if not feed_data.get(\"enabled\"):\n                    self.misp.enable_feed(feed_data[\"id\"])\n                    self.misp.enable_feed_cache(feed_data[\"id\"])\n                    enabled_count += 1\n                    print(f\"  [+] Enabled: {feed_data['name']}\")\n\n        print(f\"[+] Enabled {enabled_count} feeds\")\n\n    def add_custom_feed(self, name, url, provider, feed_format=\"csv\",\n                        input_source=\"network\", enabled=True):\n        \"\"\"Add a custom threat intelligence feed.\"\"\"\n        feed = MISPFeed()\n        feed.name = name\n        feed.provider = provider\n        feed.url = url\n        feed.source_format = feed_format\n        feed.input_source = input_source\n        feed.enabled = enabled\n        feed.caching_enabled = True\n        feed.publish = False\n        feed.distribution = \"3\"  # All communities\n\n        result = self.misp.add_feed(feed)\n        if \"Feed\" in result:\n            feed_id = result[\"Feed\"][\"id\"]\n            print(f\"[+] Added feed: {name} (ID: {feed_id})\")\n            return feed_id\n        else:\n            print(f\"[-] Error adding feed: {result}\")\n            return None\n\n    def fetch_all_feeds(self):\n        \"\"\"Trigger fetch for all enabled feeds.\"\"\"\n        feeds = self.misp.feeds()\n        for feed in feeds:\n            feed_data = feed.get(\"Feed\", {})\n            if feed_data.get(\"enabled\"):\n                self.misp.fetch_feed(feed_data[\"id\"])\n                print(f\"  [*] Fetching: {feed_data['name']}\")\n        print(\"[+] Feed fetch triggered for all enabled feeds\")\n\nmanager = MISPFeedManager(\n    \"https:\u002F\u002Fmisp.organization.com\",\n    \"YOUR_MISP_API_KEY\",\n)\nmanager.enable_default_feeds()\nmanager.add_custom_feed(\n    name=\"Abuse.ch MalwareBazaar Recent\",\n    url=\"https:\u002F\u002Fbazaar.abuse.ch\u002Fexport\u002Fcsv\u002Frecent\u002F\",\n    provider=\"abuse.ch\",\n    feed_format=\"csv\",\n)\nmanager.fetch_all_feeds()\n```\n\n### Step 3: Search and Correlate Indicators\n\n```python\ndef search_indicators(misp, value=None, type_attribute=None, tags=None, last_days=30):\n    \"\"\"Search MISP for indicators with correlation.\"\"\"\n    from datetime import datetime, timedelta\n    date_from = (datetime.now() - timedelta(days=last_days)).strftime(\"%Y-%m-%d\")\n\n    search_params = {\n        \"date_from\": date_from,\n        \"published\": True,\n        \"enforceWarninglist\": True,\n    }\n    if value:\n        search_params[\"value\"] = value\n    if type_attribute:\n        search_params[\"type_attribute\"] = type_attribute\n    if tags:\n        search_params[\"tags\"] = tags\n\n    results = misp.search(\"attributes\", **search_params)\n    attributes = results.get(\"Attribute\", [])\n    print(f\"[+] Search returned {len(attributes)} attributes\")\n\n    # Group by event for context\n    events = {}\n    for attr in attributes:\n        event_id = attr.get(\"event_id\", \"\")\n        if event_id not in events:\n            events[event_id] = {\"attributes\": [], \"tags\": set()}\n        events[event_id][\"attributes\"].append({\n            \"type\": attr.get(\"type\", \"\"),\n            \"value\": attr.get(\"value\", \"\"),\n            \"category\": attr.get(\"category\", \"\"),\n            \"timestamp\": attr.get(\"timestamp\", \"\"),\n        })\n        for tag in attr.get(\"Tag\", []):\n            events[event_id][\"tags\"].add(tag.get(\"name\", \"\"))\n\n    return {\"attributes\": attributes, \"events\": events}\n\n# Search for specific IOC\nmisp = manager.misp\nresults = search_indicators(misp, value=\"203.0.113.1\")\nresults_by_type = search_indicators(misp, type_attribute=\"ip-dst\", last_days=7)\nresults_by_tag = search_indicators(misp, tags=[\"tlp:white\", \"type:OSINT\"])\n```\n\n### Step 4: Export to SIEM (Splunk \u002F Elasticsearch)\n\n```python\nimport requests\nfrom datetime import datetime, timedelta\n\nclass MISPSIEMExporter:\n    def __init__(self, misp_client):\n        self.misp = misp_client\n\n    def export_to_splunk(self, splunk_url, hec_token, days=7):\n        \"\"\"Export recent MISP indicators to Splunk via HEC.\"\"\"\n        date_from = (datetime.now() - timedelta(days=days)).strftime(\"%Y-%m-%d\")\n        results = self.misp.search(\"attributes\", date_from=date_from,\n                                    published=True, enforceWarninglist=True)\n        attributes = results.get(\"Attribute\", [])\n\n        headers = {\"Authorization\": f\"Splunk {hec_token}\"}\n        exported = 0\n        for attr in attributes:\n            event = {\n                \"event\": {\n                    \"ioc_type\": attr.get(\"type\", \"\"),\n                    \"ioc_value\": attr.get(\"value\", \"\"),\n                    \"category\": attr.get(\"category\", \"\"),\n                    \"event_id\": attr.get(\"event_id\", \"\"),\n                    \"timestamp\": attr.get(\"timestamp\", \"\"),\n                    \"tags\": [t.get(\"name\", \"\") for t in attr.get(\"Tag\", [])],\n                },\n                \"sourcetype\": \"misp:attribute\",\n                \"source\": \"misp\",\n                \"index\": \"threat_intel\",\n            }\n            resp = requests.post(\n                f\"{splunk_url}\u002Fservices\u002Fcollector\u002Fevent\",\n                headers=headers, json=event,\n                verify=not os.environ.get(\"SKIP_TLS_VERIFY\", \"\").lower() == \"true\",  # Set SKIP_TLS_VERIFY=true for self-signed certs in lab environments\n            )\n            if resp.status_code == 200:\n                exported += 1\n\n        print(f\"[+] Exported {exported}\u002F{len(attributes)} indicators to Splunk\")\n\n    def export_ioc_list(self, output_file, ioc_types=None, days=30):\n        \"\"\"Export flat IOC list for firewall\u002Fproxy blocklists.\"\"\"\n        ioc_types = ioc_types or [\"ip-dst\", \"domain\", \"hostname\", \"url\"]\n        date_from = (datetime.now() - timedelta(days=days)).strftime(\"%Y-%m-%d\")\n\n        all_iocs = []\n        for ioc_type in ioc_types:\n            results = self.misp.search(\n                \"attributes\", type_attribute=ioc_type,\n                date_from=date_from, published=True,\n                enforceWarninglist=True,\n            )\n            for attr in results.get(\"Attribute\", []):\n                all_iocs.append(attr.get(\"value\", \"\"))\n\n        unique_iocs = sorted(set(all_iocs))\n        with open(output_file, \"w\") as f:\n            for ioc in unique_iocs:\n                f.write(f\"{ioc}\\n\")\n\n        print(f\"[+] Exported {len(unique_iocs)} unique IOCs to {output_file}\")\n\nexporter = MISPSIEMExporter(misp)\nexporter.export_ioc_list(\"blocklist_ips.txt\", ioc_types=[\"ip-dst\"], days=7)\n```\n\n## Validation Criteria\n\n- MISP deployed and accessible via web interface and API\n- Default OSINT feeds enabled and fetching data\n- Custom feeds added and ingesting indicators\n- Indicators searchable with correlation across events\n- IOCs exported to SIEM (Splunk\u002FElasticsearch) successfully\n- Blocklists generated for firewall\u002Fproxy integration\n\n## References\n\n- [MISP Project](https:\u002F\u002Fwww.misp-project.org\u002F)\n- [MISP GitHub Repository](https:\u002F\u002Fgithub.com\u002FMISP\u002FMISP)\n- [MISP Default Feeds](https:\u002F\u002Fwww.misp-project.org\u002Ffeeds\u002F)\n- [PyMISP Documentation](https:\u002F\u002Fpymisp.readthedocs.io\u002F)\n- [Kraven Security: MISP Using Feeds](https:\u002F\u002Fkravensecurity.com\u002Fthreat-intelligence-with-misp-part-4-using-feeds\u002F)\n- [Cosive: What is MISP](https:\u002F\u002Fwww.cosive.com\u002Fblog\u002Fwhat-is-misp-the-ultimate-introduction)\n","# Building Threat Feed Aggregation with MISP\n\n## Overview\n\nMISP is the leading open-source threat intelligence platform for collecting, storing, distributing, and sharing cybersecurity indicators and threat intelligence. It aggregates feeds from OSINT sources, commercial providers, and sharing communities into a unified platform with automatic correlation, STIX\u002FTAXII export, and direct integration with SIEMs and security tools. This skill covers deploying MISP via Docker, configuring feeds from sources like abuse.ch, AlienVault OTX, and CIRCL, setting up automated feed synchronization, and integrating with Splunk, Elasticsearch, and SOAR platforms.\n\n\n## When to Use\n\n- When deploying or configuring building threat feed aggregation with misp capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Docker and Docker Compose for deployment\n- Python 3.9+ with `pymisp` library for API interaction\n- Linux server with 8GB+ RAM for production deployment\n- Understanding of IOC types and threat intelligence lifecycle\n- Network access to external feed URLs\n\n## Key Concepts\n\n### MISP Architecture\n\nMISP stores threat intelligence as Events containing Attributes (IOCs) organized by type and category. Events can have Tags (MITRE ATT&CK, TLP marking, sector tags), Galaxies (threat actor profiles, malware families, attack patterns), and Objects (structured groupings of related attributes). Events are correlated automatically across the instance.\n\n### Feed Types\n\nMISP supports three feed formats: MISP format (native JSON events), CSV (comma-separated IOCs), and freetext (unstructured text with automatic IOC extraction). Feeds can be remote (fetched from URLs) or local (uploaded files). MISP ships with 80+ default OSINT feeds including abuse.ch URLhaus, Botvrij, CIRCL OSINT, and malware traffic analysis.\n\n### Sharing and Synchronization\n\nMISP instances can synchronize with other MISP instances via push\u002Fpull mechanisms. Sharing groups control distribution (organization only, this community, connected communities, all communities). The TAXII server module enables integration with STIX\u002FTAXII consumers.\n\n## Workflow\n\n### Step 1: Deploy MISP with Docker\n\n```yaml\n# docker-compose.yml for MISP deployment\nversion: '3.8'\nservices:\n  misp:\n    image: coolacid\u002Fmisp-docker:core-latest\n    container_name: misp\n    restart: unless-stopped\n    ports:\n      - \"443:443\"\n      - \"80:80\"\n    environment:\n      - MYSQL_HOST=misp-db\n      - MYSQL_DATABASE=misp\n      - MYSQL_USER=misp\n      - MYSQL_PASSWORD=misp_db_password_change_me\n      - MISP_ADMIN_EMAIL=admin@organization.com\n      - MISP_ADMIN_PASSPHRASE=admin_password_change_me\n      - MISP_BASEURL=https:\u002F\u002Fmisp.organization.com\n      - POSTFIX_RELAY_HOST=smtp.organization.com\n      - TIMEZONE=UTC\n    volumes:\n      - misp-data:\u002Fvar\u002Fwww\u002FMISP\u002Fapp\u002Ffiles\n      - misp-config:\u002Fvar\u002Fwww\u002FMISP\u002Fapp\u002FConfig\n    depends_on:\n      - misp-db\n      - misp-redis\n\n  misp-db:\n    image: mysql:8.0\n    container_name: misp-db\n    restart: unless-stopped\n    environment:\n      - MYSQL_DATABASE=misp\n      - MYSQL_USER=misp\n      - MYSQL_PASSWORD=misp_db_password_change_me\n      - MYSQL_ROOT_PASSWORD=root_password_change_me\n    volumes:\n      - misp-db-data:\u002Fvar\u002Flib\u002Fmysql\n\n  misp-redis:\n    image: redis:7\n    container_name: misp-redis\n    restart: unless-stopped\n\nvolumes:\n  misp-data:\n  misp-config:\n  misp-db-data:\n```\n\n### Step 2: Configure Feeds via PyMISP API\n\n```python\nfrom pymisp import PyMISP, MISPFeed\nimport json\n\nclass MISPFeedManager:\n    def __init__(self, misp_url, misp_key, verify_ssl=False):\n        self.misp = PyMISP(misp_url, misp_key, verify_ssl)\n        print(f\"[+] Connected to MISP: {misp_url}\")\n\n    def list_feeds(self):\n        \"\"\"List all configured feeds.\"\"\"\n        feeds = self.misp.feeds()\n        enabled = [f for f in feeds if f.get(\"Feed\", {}).get(\"enabled\")]\n        disabled = [f for f in feeds if not f.get(\"Feed\", {}).get(\"enabled\")]\n        print(f\"[+] Feeds: {len(enabled)} enabled, {len(disabled)} disabled\")\n        return feeds\n\n    def enable_default_feeds(self):\n        \"\"\"Enable recommended default OSINT feeds.\"\"\"\n        recommended_feeds = [\n            \"CIRCL OSINT Feed\",\n            \"Botvrij.eu - Indicators of Compromise\",\n            \"abuse.ch URLhaus Host file\",\n            \"abuse.ch Feodo Tracker\",\n            \"abuse.ch SSL Blacklist\",\n            \"malwaredomainlist\",\n            \"CyberCure - IP Feed\",\n        ]\n\n        feeds = self.misp.feeds()\n        enabled_count = 0\n        for feed in feeds:\n            feed_data = feed.get(\"Feed\", {})\n            if feed_data.get(\"name\") in recommended_feeds:\n                if not feed_data.get(\"enabled\"):\n                    self.misp.enable_feed(feed_data[\"id\"])\n                    self.misp.enable_feed_cache(feed_data[\"id\"])\n                    enabled_count += 1\n                    print(f\"  [+] Enabled: {feed_data['name']}\")\n\n        print(f\"[+] Enabled {enabled_count} feeds\")\n\n    def add_custom_feed(self, name, url, provider, feed_format=\"csv\",\n                        input_source=\"network\", enabled=True):\n        \"\"\"Add a custom threat intelligence feed.\"\"\"\n        feed = MISPFeed()\n        feed.name = name\n        feed.provider = provider\n        feed.url = url\n        feed.source_format = feed_format\n        feed.input_source = input_source\n        feed.enabled = enabled\n        feed.caching_enabled = True\n        feed.publish = False\n        feed.distribution = \"3\"  # All communities\n\n        result = self.misp.add_feed(feed)\n        if \"Feed\" in result:\n            feed_id = result[\"Feed\"][\"id\"]\n            print(f\"[+] Added feed: {name} (ID: {feed_id})\")\n            return feed_id\n        else:\n            print(f\"[-] Error adding feed: {result}\")\n            return None\n\n    def fetch_all_feeds(self):\n        \"\"\"Trigger fetch for all enabled feeds.\"\"\"\n        feeds = self.misp.feeds()\n        for feed in feeds:\n            feed_data = feed.get(\"Feed\", {})\n            if feed_data.get(\"enabled\"):\n                self.misp.fetch_feed(feed_data[\"id\"])\n                print(f\"  [*] Fetching: {feed_data['name']}\")\n        print(\"[+] Feed fetch triggered for all enabled feeds\")\n\nmanager = MISPFeedManager(\n    \"https:\u002F\u002Fmisp.organization.com\",\n    \"YOUR_MISP_API_KEY\",\n)\nmanager.enable_default_feeds()\nmanager.add_custom_feed(\n    name=\"Abuse.ch MalwareBazaar Recent\",\n    url=\"https:\u002F\u002Fbazaar.abuse.ch\u002Fexport\u002Fcsv\u002Frecent\u002F\",\n    provider=\"abuse.ch\",\n    feed_format=\"csv\",\n)\nmanager.fetch_all_feeds()\n```\n\n### Step 3: Search and Correlate Indicators\n\n```python\ndef search_indicators(misp, value=None, type_attribute=None, tags=None, last_days=30):\n    \"\"\"Search MISP for indicators with correlation.\"\"\"\n    from datetime import datetime, timedelta\n    date_from = (datetime.now() - timedelta(days=last_days)).strftime(\"%Y-%m-%d\")\n\n    search_params = {\n        \"date_from\": date_from,\n        \"published\": True,\n        \"enforceWarninglist\": True,\n    }\n    if value:\n        search_params[\"value\"] = value\n    if type_attribute:\n        search_params[\"type_attribute\"] = type_attribute\n    if tags:\n        search_params[\"tags\"] = tags\n\n    results = misp.search(\"attributes\", **search_params)\n    attributes = results.get(\"Attribute\", [])\n    print(f\"[+] Search returned {len(attributes)} attributes\")\n\n    # Group by event for context\n    events = {}\n    for attr in attributes:\n        event_id = attr.get(\"event_id\", \"\")\n        if event_id not in events:\n            events[event_id] = {\"attributes\": [], \"tags\": set()}\n        events[event_id][\"attributes\"].append({\n            \"type\": attr.get(\"type\", \"\"),\n            \"value\": attr.get(\"value\", \"\"),\n            \"category\": attr.get(\"category\", \"\"),\n            \"timestamp\": attr.get(\"timestamp\", \"\"),\n        })\n        for tag in attr.get(\"Tag\", []):\n            events[event_id][\"tags\"].add(tag.get(\"name\", \"\"))\n\n    return {\"attributes\": attributes, \"events\": events}\n\n# Search for specific IOC\nmisp = manager.misp\nresults = search_indicators(misp, value=\"203.0.113.1\")\nresults_by_type = search_indicators(misp, type_attribute=\"ip-dst\", last_days=7)\nresults_by_tag = search_indicators(misp, tags=[\"tlp:white\", \"type:OSINT\"])\n```\n\n### Step 4: Export to SIEM (Splunk \u002F Elasticsearch)\n\n```python\nimport requests\nfrom datetime import datetime, timedelta\n\nclass MISPSIEMExporter:\n    def __init__(self, misp_client):\n        self.misp = misp_client\n\n    def export_to_splunk(self, splunk_url, hec_token, days=7):\n        \"\"\"Export recent MISP indicators to Splunk via HEC.\"\"\"\n        date_from = (datetime.now() - timedelta(days=days)).strftime(\"%Y-%m-%d\")\n        results = self.misp.search(\"attributes\", date_from=date_from,\n                                    published=True, enforceWarninglist=True)\n        attributes = results.get(\"Attribute\", [])\n\n        headers = {\"Authorization\": f\"Splunk {hec_token}\"}\n        exported = 0\n        for attr in attributes:\n            event = {\n                \"event\": {\n                    \"ioc_type\": attr.get(\"type\", \"\"),\n                    \"ioc_value\": attr.get(\"value\", \"\"),\n                    \"category\": attr.get(\"category\", \"\"),\n                    \"event_id\": attr.get(\"event_id\", \"\"),\n                    \"timestamp\": attr.get(\"timestamp\", \"\"),\n                    \"tags\": [t.get(\"name\", \"\") for t in attr.get(\"Tag\", [])],\n                },\n                \"sourcetype\": \"misp:attribute\",\n                \"source\": \"misp\",\n                \"index\": \"threat_intel\",\n            }\n            resp = requests.post(\n                f\"{splunk_url}\u002Fservices\u002Fcollector\u002Fevent\",\n                headers=headers, json=event,\n                verify=not os.environ.get(\"SKIP_TLS_VERIFY\", \"\").lower() == \"true\",  # Set SKIP_TLS_VERIFY=true for self-signed certs in lab environments\n            )\n            if resp.status_code == 200:\n                exported += 1\n\n        print(f\"[+] Exported {exported}\u002F{len(attributes)} indicators to Splunk\")\n\n    def export_ioc_list(self, output_file, ioc_types=None, days=30):\n        \"\"\"Export flat IOC list for firewall\u002Fproxy blocklists.\"\"\"\n        ioc_types = ioc_types or [\"ip-dst\", \"domain\", \"hostname\", \"url\"]\n        date_from = (datetime.now() - timedelta(days=days)).strftime(\"%Y-%m-%d\")\n\n        all_iocs = []\n        for ioc_type in ioc_types:\n            results = self.misp.search(\n                \"attributes\", type_attribute=ioc_type,\n                date_from=date_from, published=True,\n                enforceWarninglist=True,\n            )\n            for attr in results.get(\"Attribute\", []):\n                all_iocs.append(attr.get(\"value\", \"\"))\n\n        unique_iocs = sorted(set(all_iocs))\n        with open(output_file, \"w\") as f:\n            for ioc in unique_iocs:\n                f.write(f\"{ioc}\\n\")\n\n        print(f\"[+] Exported {len(unique_iocs)} unique IOCs to {output_file}\")\n\nexporter = MISPSIEMExporter(misp)\nexporter.export_ioc_list(\"blocklist_ips.txt\", ioc_types=[\"ip-dst\"], days=7)\n```\n\n## Validation Criteria\n\n- MISP deployed and accessible via web interface and API\n- Default OSINT feeds enabled and fetching data\n- Custom feeds added and ingesting indicators\n- Indicators searchable with correlation across events\n- IOCs exported to SIEM (Splunk\u002FElasticsearch) successfully\n- Blocklists generated for firewall\u002Fproxy integration\n\n## References\n\n- [MISP Project](https:\u002F\u002Fwww.misp-project.org\u002F)\n- [MISP GitHub Repository](https:\u002F\u002Fgithub.com\u002FMISP\u002FMISP)\n- [MISP Default Feeds](https:\u002F\u002Fwww.misp-project.org\u002Ffeeds\u002F)\n- [PyMISP Documentation](https:\u002F\u002Fpymisp.readthedocs.io\u002F)\n- [Kraven Security: MISP Using Feeds](https:\u002F\u002Fkravensecurity.com\u002Fthreat-intelligence-with-misp-part-4-using-feeds\u002F)\n- [Cosive: What is MISP](https:\u002F\u002Fwww.cosive.com\u002Fblog\u002Fwhat-is-misp-the-ultimate-introduction)\n",{"name":5,"tags":25,"author":34,"domain":35,"license":15,"version":36,"subdomain":33,"description":7},[26,27,28,29,30,31,32,33],"misp","threat-feed","aggregation","indicator","sharing","correlation","siem-integration","threat-intelligence","mahipal","cybersecurity","1.0","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fbuilding-threat-feed-aggregation-with-misp",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill building-threat-feed-aggregation-with-misp",{"tool":52,"command":53},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill building-threat-feed-aggregation-with-misp",{"tool":55,"command":56},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill building-threat-feed-aggregation-with-misp","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbuilding-threat-feed-aggregation-with-misp\u002FSKILL.md",true,[60,64,70],{"path":61,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fapi-reference.md","REFERENCE","参考文档",2135,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbuilding-threat-feed-aggregation-with-misp\u002Freferences\u002Fapi-reference.md",{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"scripts\u002Fagent.py","SCRIPT","脚本",6731,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbuilding-threat-feed-aggregation-with-misp\u002Fscripts\u002Fagent.py",[77,85,92,99,106,114],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":20},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":20},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":20},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":20},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":110,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":20},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":20},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]