[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EFKFKRFP2V12WMYVFAVTBD":3,"skill-same:01M7EFKFKRFP2V12WMYVFAVTBD":75},{"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":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M7EFKFKRFP2V12WMYVFAVTBD","building-threat-intelligence-feed-integration",null,"Builds automated threat intelligence feed integration pipelines connecting STIX\u002FTAXII feeds, open-source threat intel, and commercial TI platforms into SIEM and security tools for real-time IOC matching and alerting. Use when SOC teams need to operationalize threat intelligence by automating feed ingestion, normalization, scoring, and distribution to detection systems.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fbuilding-threat-intelligence-feed-integration\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: building-threat-intelligence-feed-integration\ndescription: 'Builds automated threat intelligence feed integration pipelines connecting\n  STIX\u002FTAXII feeds, open-source threat intel, and commercial TI platforms into SIEM\n  and security tools for real-time IOC matching and alerting. Use when SOC teams need\n  to operationalize threat intelligence by automating feed ingestion, normalization,\n  scoring, and distribution to detection systems.\n\n  '\ndomain: cybersecurity\nsubdomain: soc-operations\ntags:\n- soc\n- threat-intelligence\n- stix\n- taxii\n- misp\n- feeds\n- ioc\n- siem-integration\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- DE.CM-01\n- DE.AE-02\n- RS.MA-01\n- DE.AE-06\nmitre_attack:\n- T1071\n- T1105\n- T1588.001\n---\n# Building Threat Intelligence Feed Integration\n\n## When to Use\n\nUse this skill when:\n- SOC teams need automated ingestion of threat intelligence feeds into SIEM platforms\n- Multiple TI sources require normalization into a common format (STIX 2.1)\n- Detection systems need real-time IOC matching against network and endpoint telemetry\n- TI feed quality assessment and deduplication processes need to be established\n\n**Do not use** for manual IOC lookup — use dedicated enrichment tools (VirusTotal, AbuseIPDB) for ad-hoc queries.\n\n## Prerequisites\n\n- MISP instance or Threat Intelligence Platform (TIP) for feed aggregation\n- STIX\u002FTAXII client library (`taxii2-client`, `stix2` Python packages)\n- SIEM platform (Splunk ES, Elastic Security, or Sentinel) with TI framework configured\n- API keys for commercial and open-source feeds (AlienVault OTX, Abuse.ch, CISA AIS)\n- Python 3.8+ for feed processing automation\n\n## Workflow\n\n### Step 1: Identify and Catalog Intelligence Sources\n\nMap available feeds by type, format, and update frequency:\n\n| Feed Source | Format | IOC Types | Update Freq | Cost |\n|-------------|--------|-----------|-------------|------|\n| AlienVault OTX | STIX\u002FJSON | IP, Domain, Hash, URL | Real-time | Free |\n| Abuse.ch URLhaus | CSV\u002FJSON | URL, Domain | Every 5 min | Free |\n| Abuse.ch MalwareBazaar | JSON API | File Hash | Real-time | Free |\n| CISA AIS | STIX\u002FTAXII 2.1 | All types | Daily | Free (US Gov) |\n| CrowdStrike Intel | STIX\u002FJSON | All types + Actor TTP | Real-time | Commercial |\n| Mandiant Advantage | STIX 2.1 | All types + Reports | Real-time | Commercial |\n\n### Step 2: Ingest STIX\u002FTAXII Feeds\n\nConnect to a TAXII 2.1 server and download indicators:\n\n```python\nfrom taxii2client.v21 import Server, Collection\nfrom stix2 import parse\n\n# Connect to TAXII server (example: CISA AIS)\nserver = Server(\n    \"https:\u002F\u002Ftaxii.cisa.gov\u002Ftaxii2\u002F\",\n    user=\"your_username\",\n    password=\"your_password\"\n)\n\n# List available collections\nfor api_root in server.api_roots:\n    print(f\"API Root: {api_root.title}\")\n    for collection in api_root.collections:\n        print(f\"  Collection: {collection.title} (ID: {collection.id})\")\n\n# Fetch indicators from a collection\ncollection = Collection(\n    \"https:\u002F\u002Ftaxii.cisa.gov\u002Ftaxii2\u002Fcollections\u002FCOLLECTION_ID\u002F\",\n    user=\"your_username\",\n    password=\"your_password\"\n)\n\n# Get indicators added in last 24 hours\nfrom datetime import datetime, timedelta\nadded_after = (datetime.utcnow() - timedelta(days=1)).strftime(\"%Y-%m-%dT%H:%M:%S.000Z\")\n\nresponse = collection.get_objects(added_after=added_after, type=[\"indicator\"])\nfor obj in response.get(\"objects\", []):\n    indicator = parse(obj)\n    print(f\"Type: {indicator.type}\")\n    print(f\"Pattern: {indicator.pattern}\")\n    print(f\"Valid Until: {indicator.valid_until}\")\n    print(f\"Confidence: {indicator.confidence}\")\n    print(\"---\")\n```\n\n### Step 3: Ingest Open-Source Feeds\n\n**Abuse.ch URLhaus Feed:**\n\n```python\nimport requests\nimport csv\nfrom io import StringIO\n\n# Download URLhaus recent URLs\nresponse = requests.get(\"https:\u002F\u002Furlhaus.abuse.ch\u002Fdownloads\u002Fcsv_recent\u002F\")\nreader = csv.reader(StringIO(response.text), delimiter=',')\n\nindicators = []\nfor row in reader:\n    if row[0].startswith(\"#\"):\n        continue\n    indicators.append({\n        \"id\": row[0],\n        \"dateadded\": row[1],\n        \"url\": row[2],\n        \"url_status\": row[3],\n        \"threat\": row[5],\n        \"tags\": row[6]\n    })\n\nprint(f\"Ingested {len(indicators)} URLs from URLhaus\")\n\n# Filter for active threats only\nactive = [i for i in indicators if i[\"url_status\"] == \"online\"]\nprint(f\"Active threats: {len(active)}\")\n```\n\n**AlienVault OTX Pulse Feed:**\n\n```python\nfrom OTXv2 import OTXv2, IndicatorTypes\n\notx = OTXv2(\"YOUR_OTX_API_KEY\")\n\n# Get subscribed pulses (last 24 hours)\npulses = otx.getall(modified_since=\"2024-03-14T00:00:00\")\n\nfor pulse in pulses:\n    print(f\"Pulse: {pulse['name']}\")\n    print(f\"Tags: {pulse['tags']}\")\n    for indicator in pulse[\"indicators\"]:\n        print(f\"  IOC: {indicator['indicator']} ({indicator['type']})\")\n```\n\n**Abuse.ch Feodo Tracker (C2 IPs):**\n\n```python\nresponse = requests.get(\"https:\u002F\u002Ffeodotracker.abuse.ch\u002Fdownloads\u002Fipblocklist_recommended.json\")\nc2_data = response.json()\n\nfor entry in c2_data:\n    print(f\"IP: {entry['ip_address']}:{entry['port']}\")\n    print(f\"Malware: {entry['malware']}\")\n    print(f\"First Seen: {entry['first_seen']}\")\n    print(f\"Last Online: {entry['last_online']}\")\n```\n\n### Step 4: Normalize and Deduplicate\n\nConvert all feeds to STIX 2.1 format for standardization:\n\n```python\nfrom stix2 import Indicator, Bundle\nimport hashlib\n\ndef create_stix_indicator(ioc_value, ioc_type, source, confidence=50):\n    \"\"\"Convert raw IOC to STIX 2.1 indicator\"\"\"\n    pattern_map = {\n        \"ipv4\": f\"[ipv4-addr:value = '{ioc_value}']\",\n        \"domain\": f\"[domain-name:value = '{ioc_value}']\",\n        \"url\": f\"[url:value = '{ioc_value}']\",\n        \"sha256\": f\"[file:hashes.'SHA-256' = '{ioc_value}']\",\n        \"md5\": f\"[file:hashes.MD5 = '{ioc_value}']\",\n    }\n\n    return Indicator(\n        name=f\"{ioc_type}: {ioc_value}\",\n        pattern=pattern_map[ioc_type],\n        pattern_type=\"stix\",\n        valid_from=\"2024-03-15T00:00:00Z\",\n        confidence=confidence,\n        labels=[source],\n        custom_properties={\"x_source_feed\": source}\n    )\n\n# Deduplicate across sources\nseen_iocs = set()\nunique_indicators = []\n\nfor ioc in all_collected_iocs:\n    ioc_hash = hashlib.sha256(f\"{ioc['type']}:{ioc['value']}\".encode()).hexdigest()\n    if ioc_hash not in seen_iocs:\n        seen_iocs.add(ioc_hash)\n        unique_indicators.append(\n            create_stix_indicator(ioc[\"value\"], ioc[\"type\"], ioc[\"source\"])\n        )\n\nbundle = Bundle(objects=unique_indicators)\nprint(f\"Unique indicators: {len(unique_indicators)}\")\n```\n\n### Step 5: Push to SIEM Threat Intelligence Framework\n\n**Push to Splunk ES Threat Intelligence:**\n\n```python\nimport requests\n\nsplunk_url = \"https:\u002F\u002Fsplunk.company.com:8089\"\nheaders = {\"Authorization\": f\"Bearer {splunk_token}\"}\n\nfor indicator in unique_indicators:\n    # Extract IOC value from STIX pattern\n    ioc_value = indicator.pattern.split(\"'\")[1]\n\n    # Upload to Splunk ES threat intel collection\n    data = {\n        \"ip\": ioc_value,\n        \"description\": indicator.name,\n        \"weight\": indicator.confidence \u002F\u002F 10,\n        \"threat_key\": indicator.id,\n        \"source_feed\": indicator.get(\"x_source_feed\", \"unknown\")\n    }\n\n    requests.post(\n        f\"{splunk_url}\u002Fservices\u002Fdata\u002Fthreat_intel\u002Fitem\u002Fip_intel\",\n        headers=headers, data=data,\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```\n\n**Push to MISP for centralized management:**\n\n```python\nfrom pymisp import PyMISP, MISPEvent, MISPAttribute\n\nmisp = PyMISP(\"https:\u002F\u002Fmisp.company.com\", \"YOUR_MISP_API_KEY\")\n\n# Create event for feed batch\nevent = MISPEvent()\nevent.info = f\"TI Feed Import - {datetime.now().strftime('%Y-%m-%d')}\"\nevent.threat_level_id = 2  # Medium\nevent.analysis = 2  # Completed\n\n# Add indicators as attributes\nfor ioc in unique_indicators:\n    attr = MISPAttribute()\n    attr.type = \"ip-dst\" if \"ipv4\" in ioc.pattern else \"domain\"\n    attr.value = ioc.pattern.split(\"'\")[1]\n    attr.to_ids = True\n    attr.comment = f\"Source: {ioc.get('x_source_feed', 'mixed')}\"\n    event.add_attribute(**attr)\n\nresult = misp.add_event(event)\nprint(f\"MISP Event created: {result['Event']['id']}\")\n```\n\n### Step 6: Monitor Feed Health and Quality\n\nTrack feed effectiveness metrics:\n\n```spl\nindex=threat_intel sourcetype=\"threat_intel_manager\"\n| stats count AS total_iocs,\n        dc(threat_key) AS unique_iocs,\n        dc(source_feed) AS feed_count\n  by source_feed\n| join source_feed [\n    search index=notable source=\"Threat Intelligence\"\n    | stats count AS matches by source_feed\n  ]\n| eval match_rate = round(matches \u002F unique_iocs * 100, 2)\n| sort - match_rate\n| table source_feed, unique_iocs, matches, match_rate\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|-----------|\n| **STIX 2.1** | Structured Threat Information Expression — standardized JSON format for sharing threat intelligence objects |\n| **TAXII** | Trusted Automated eXchange of Indicator Information — transport protocol for sharing STIX data via REST API |\n| **TIP** | Threat Intelligence Platform — centralized system for aggregating, scoring, and distributing threat intelligence |\n| **IOC Scoring** | Process of assigning confidence values to indicators based on source reliability and corroboration |\n| **Feed Deduplication** | Removing duplicate IOCs across multiple sources while preserving multi-source attribution |\n| **IOC Expiration** | Time-to-live policy removing aged indicators (IP: 30 days, Domain: 90 days, Hash: 1 year) |\n\n## Tools & Systems\n\n- **MISP**: Open-source threat intelligence platform for feed aggregation, correlation, and sharing\n- **AlienVault OTX**: Free threat intelligence sharing platform with community pulse feeds\n- **Abuse.ch**: Suite of free threat feeds (URLhaus, MalwareBazaar, Feodo Tracker, ThreatFox)\n- **OpenCTI**: Open-source cyber threat intelligence platform supporting STIX 2.1 native storage\n- **TAXII2 Client**: Python library for connecting to STIX\u002FTAXII 2.1 servers for automated indicator retrieval\n\n## Common Scenarios\n\n- **New Feed Onboarding**: Evaluate feed quality, map fields to STIX, configure automated ingestion pipeline\n- **Multi-SIEM Distribution**: Push normalized IOCs from MISP to Splunk, Elastic, and Sentinel simultaneously\n- **False Positive Reduction**: Score IOCs by source count and age, expire stale indicators automatically\n- **Feed Quality Audit**: Compare detection match rates across feeds to identify highest-value sources\n- **Incident IOC Sharing**: Package investigation IOCs as STIX bundle and share with ISACs via TAXII\n\n## Output Format\n\n```\nTHREAT INTEL FEED STATUS — Daily Report\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nDate:         2024-03-15\nTotal IOCs:   45,892 active indicators\n\nFeed Health:\n  Feed                  IOCs    Matches  Match Rate  Status\n  Abuse.ch URLhaus      12,340  47       0.38%       HEALTHY\n  AlienVault OTX        18,567  23       0.12%       HEALTHY\n  Abuse.ch Feodo        1,203   12       1.00%       HEALTHY\n  CISA AIS              8,945   8        0.09%       HEALTHY\n  CrowdStrike Intel     4,837   31       0.64%       HEALTHY\n\nActions Today:\n  New IOCs ingested:    1,247\n  IOCs expired:         892\n  Duplicates removed:   156\n  SIEM matches:         121 notable events generated\n  False positives:      3 (CDN IPs removed from feed)\n```\n","# Building Threat Intelligence Feed Integration\n\n## When to Use\n\nUse this skill when:\n- SOC teams need automated ingestion of threat intelligence feeds into SIEM platforms\n- Multiple TI sources require normalization into a common format (STIX 2.1)\n- Detection systems need real-time IOC matching against network and endpoint telemetry\n- TI feed quality assessment and deduplication processes need to be established\n\n**Do not use** for manual IOC lookup — use dedicated enrichment tools (VirusTotal, AbuseIPDB) for ad-hoc queries.\n\n## Prerequisites\n\n- MISP instance or Threat Intelligence Platform (TIP) for feed aggregation\n- STIX\u002FTAXII client library (`taxii2-client`, `stix2` Python packages)\n- SIEM platform (Splunk ES, Elastic Security, or Sentinel) with TI framework configured\n- API keys for commercial and open-source feeds (AlienVault OTX, Abuse.ch, CISA AIS)\n- Python 3.8+ for feed processing automation\n\n## Workflow\n\n### Step 1: Identify and Catalog Intelligence Sources\n\nMap available feeds by type, format, and update frequency:\n\n| Feed Source | Format | IOC Types | Update Freq | Cost |\n|-------------|--------|-----------|-------------|------|\n| AlienVault OTX | STIX\u002FJSON | IP, Domain, Hash, URL | Real-time | Free |\n| Abuse.ch URLhaus | CSV\u002FJSON | URL, Domain | Every 5 min | Free |\n| Abuse.ch MalwareBazaar | JSON API | File Hash | Real-time | Free |\n| CISA AIS | STIX\u002FTAXII 2.1 | All types | Daily | Free (US Gov) |\n| CrowdStrike Intel | STIX\u002FJSON | All types + Actor TTP | Real-time | Commercial |\n| Mandiant Advantage | STIX 2.1 | All types + Reports | Real-time | Commercial |\n\n### Step 2: Ingest STIX\u002FTAXII Feeds\n\nConnect to a TAXII 2.1 server and download indicators:\n\n```python\nfrom taxii2client.v21 import Server, Collection\nfrom stix2 import parse\n\n# Connect to TAXII server (example: CISA AIS)\nserver = Server(\n    \"https:\u002F\u002Ftaxii.cisa.gov\u002Ftaxii2\u002F\",\n    user=\"your_username\",\n    password=\"your_password\"\n)\n\n# List available collections\nfor api_root in server.api_roots:\n    print(f\"API Root: {api_root.title}\")\n    for collection in api_root.collections:\n        print(f\"  Collection: {collection.title} (ID: {collection.id})\")\n\n# Fetch indicators from a collection\ncollection = Collection(\n    \"https:\u002F\u002Ftaxii.cisa.gov\u002Ftaxii2\u002Fcollections\u002FCOLLECTION_ID\u002F\",\n    user=\"your_username\",\n    password=\"your_password\"\n)\n\n# Get indicators added in last 24 hours\nfrom datetime import datetime, timedelta\nadded_after = (datetime.utcnow() - timedelta(days=1)).strftime(\"%Y-%m-%dT%H:%M:%S.000Z\")\n\nresponse = collection.get_objects(added_after=added_after, type=[\"indicator\"])\nfor obj in response.get(\"objects\", []):\n    indicator = parse(obj)\n    print(f\"Type: {indicator.type}\")\n    print(f\"Pattern: {indicator.pattern}\")\n    print(f\"Valid Until: {indicator.valid_until}\")\n    print(f\"Confidence: {indicator.confidence}\")\n    print(\"---\")\n```\n\n### Step 3: Ingest Open-Source Feeds\n\n**Abuse.ch URLhaus Feed:**\n\n```python\nimport requests\nimport csv\nfrom io import StringIO\n\n# Download URLhaus recent URLs\nresponse = requests.get(\"https:\u002F\u002Furlhaus.abuse.ch\u002Fdownloads\u002Fcsv_recent\u002F\")\nreader = csv.reader(StringIO(response.text), delimiter=',')\n\nindicators = []\nfor row in reader:\n    if row[0].startswith(\"#\"):\n        continue\n    indicators.append({\n        \"id\": row[0],\n        \"dateadded\": row[1],\n        \"url\": row[2],\n        \"url_status\": row[3],\n        \"threat\": row[5],\n        \"tags\": row[6]\n    })\n\nprint(f\"Ingested {len(indicators)} URLs from URLhaus\")\n\n# Filter for active threats only\nactive = [i for i in indicators if i[\"url_status\"] == \"online\"]\nprint(f\"Active threats: {len(active)}\")\n```\n\n**AlienVault OTX Pulse Feed:**\n\n```python\nfrom OTXv2 import OTXv2, IndicatorTypes\n\notx = OTXv2(\"YOUR_OTX_API_KEY\")\n\n# Get subscribed pulses (last 24 hours)\npulses = otx.getall(modified_since=\"2024-03-14T00:00:00\")\n\nfor pulse in pulses:\n    print(f\"Pulse: {pulse['name']}\")\n    print(f\"Tags: {pulse['tags']}\")\n    for indicator in pulse[\"indicators\"]:\n        print(f\"  IOC: {indicator['indicator']} ({indicator['type']})\")\n```\n\n**Abuse.ch Feodo Tracker (C2 IPs):**\n\n```python\nresponse = requests.get(\"https:\u002F\u002Ffeodotracker.abuse.ch\u002Fdownloads\u002Fipblocklist_recommended.json\")\nc2_data = response.json()\n\nfor entry in c2_data:\n    print(f\"IP: {entry['ip_address']}:{entry['port']}\")\n    print(f\"Malware: {entry['malware']}\")\n    print(f\"First Seen: {entry['first_seen']}\")\n    print(f\"Last Online: {entry['last_online']}\")\n```\n\n### Step 4: Normalize and Deduplicate\n\nConvert all feeds to STIX 2.1 format for standardization:\n\n```python\nfrom stix2 import Indicator, Bundle\nimport hashlib\n\ndef create_stix_indicator(ioc_value, ioc_type, source, confidence=50):\n    \"\"\"Convert raw IOC to STIX 2.1 indicator\"\"\"\n    pattern_map = {\n        \"ipv4\": f\"[ipv4-addr:value = '{ioc_value}']\",\n        \"domain\": f\"[domain-name:value = '{ioc_value}']\",\n        \"url\": f\"[url:value = '{ioc_value}']\",\n        \"sha256\": f\"[file:hashes.'SHA-256' = '{ioc_value}']\",\n        \"md5\": f\"[file:hashes.MD5 = '{ioc_value}']\",\n    }\n\n    return Indicator(\n        name=f\"{ioc_type}: {ioc_value}\",\n        pattern=pattern_map[ioc_type],\n        pattern_type=\"stix\",\n        valid_from=\"2024-03-15T00:00:00Z\",\n        confidence=confidence,\n        labels=[source],\n        custom_properties={\"x_source_feed\": source}\n    )\n\n# Deduplicate across sources\nseen_iocs = set()\nunique_indicators = []\n\nfor ioc in all_collected_iocs:\n    ioc_hash = hashlib.sha256(f\"{ioc['type']}:{ioc['value']}\".encode()).hexdigest()\n    if ioc_hash not in seen_iocs:\n        seen_iocs.add(ioc_hash)\n        unique_indicators.append(\n            create_stix_indicator(ioc[\"value\"], ioc[\"type\"], ioc[\"source\"])\n        )\n\nbundle = Bundle(objects=unique_indicators)\nprint(f\"Unique indicators: {len(unique_indicators)}\")\n```\n\n### Step 5: Push to SIEM Threat Intelligence Framework\n\n**Push to Splunk ES Threat Intelligence:**\n\n```python\nimport requests\n\nsplunk_url = \"https:\u002F\u002Fsplunk.company.com:8089\"\nheaders = {\"Authorization\": f\"Bearer {splunk_token}\"}\n\nfor indicator in unique_indicators:\n    # Extract IOC value from STIX pattern\n    ioc_value = indicator.pattern.split(\"'\")[1]\n\n    # Upload to Splunk ES threat intel collection\n    data = {\n        \"ip\": ioc_value,\n        \"description\": indicator.name,\n        \"weight\": indicator.confidence \u002F\u002F 10,\n        \"threat_key\": indicator.id,\n        \"source_feed\": indicator.get(\"x_source_feed\", \"unknown\")\n    }\n\n    requests.post(\n        f\"{splunk_url}\u002Fservices\u002Fdata\u002Fthreat_intel\u002Fitem\u002Fip_intel\",\n        headers=headers, data=data,\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```\n\n**Push to MISP for centralized management:**\n\n```python\nfrom pymisp import PyMISP, MISPEvent, MISPAttribute\n\nmisp = PyMISP(\"https:\u002F\u002Fmisp.company.com\", \"YOUR_MISP_API_KEY\")\n\n# Create event for feed batch\nevent = MISPEvent()\nevent.info = f\"TI Feed Import - {datetime.now().strftime('%Y-%m-%d')}\"\nevent.threat_level_id = 2  # Medium\nevent.analysis = 2  # Completed\n\n# Add indicators as attributes\nfor ioc in unique_indicators:\n    attr = MISPAttribute()\n    attr.type = \"ip-dst\" if \"ipv4\" in ioc.pattern else \"domain\"\n    attr.value = ioc.pattern.split(\"'\")[1]\n    attr.to_ids = True\n    attr.comment = f\"Source: {ioc.get('x_source_feed', 'mixed')}\"\n    event.add_attribute(**attr)\n\nresult = misp.add_event(event)\nprint(f\"MISP Event created: {result['Event']['id']}\")\n```\n\n### Step 6: Monitor Feed Health and Quality\n\nTrack feed effectiveness metrics:\n\n```spl\nindex=threat_intel sourcetype=\"threat_intel_manager\"\n| stats count AS total_iocs,\n        dc(threat_key) AS unique_iocs,\n        dc(source_feed) AS feed_count\n  by source_feed\n| join source_feed [\n    search index=notable source=\"Threat Intelligence\"\n    | stats count AS matches by source_feed\n  ]\n| eval match_rate = round(matches \u002F unique_iocs * 100, 2)\n| sort - match_rate\n| table source_feed, unique_iocs, matches, match_rate\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|-----------|\n| **STIX 2.1** | Structured Threat Information Expression — standardized JSON format for sharing threat intelligence objects |\n| **TAXII** | Trusted Automated eXchange of Indicator Information — transport protocol for sharing STIX data via REST API |\n| **TIP** | Threat Intelligence Platform — centralized system for aggregating, scoring, and distributing threat intelligence |\n| **IOC Scoring** | Process of assigning confidence values to indicators based on source reliability and corroboration |\n| **Feed Deduplication** | Removing duplicate IOCs across multiple sources while preserving multi-source attribution |\n| **IOC Expiration** | Time-to-live policy removing aged indicators (IP: 30 days, Domain: 90 days, Hash: 1 year) |\n\n## Tools & Systems\n\n- **MISP**: Open-source threat intelligence platform for feed aggregation, correlation, and sharing\n- **AlienVault OTX**: Free threat intelligence sharing platform with community pulse feeds\n- **Abuse.ch**: Suite of free threat feeds (URLhaus, MalwareBazaar, Feodo Tracker, ThreatFox)\n- **OpenCTI**: Open-source cyber threat intelligence platform supporting STIX 2.1 native storage\n- **TAXII2 Client**: Python library for connecting to STIX\u002FTAXII 2.1 servers for automated indicator retrieval\n\n## Common Scenarios\n\n- **New Feed Onboarding**: Evaluate feed quality, map fields to STIX, configure automated ingestion pipeline\n- **Multi-SIEM Distribution**: Push normalized IOCs from MISP to Splunk, Elastic, and Sentinel simultaneously\n- **False Positive Reduction**: Score IOCs by source count and age, expire stale indicators automatically\n- **Feed Quality Audit**: Compare detection match rates across feeds to identify highest-value sources\n- **Incident IOC Sharing**: Package investigation IOCs as STIX bundle and share with ISACs via TAXII\n\n## Output Format\n\n```\nTHREAT INTEL FEED STATUS — Daily Report\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nDate:         2024-03-15\nTotal IOCs:   45,892 active indicators\n\nFeed Health:\n  Feed                  IOCs    Matches  Match Rate  Status\n  Abuse.ch URLhaus      12,340  47       0.38%       HEALTHY\n  AlienVault OTX        18,567  23       0.12%       HEALTHY\n  Abuse.ch Feodo        1,203   12       1.00%       HEALTHY\n  CISA AIS              8,945   8        0.09%       HEALTHY\n  CrowdStrike Intel     4,837   31       0.64%       HEALTHY\n\nActions Today:\n  New IOCs ingested:    1,247\n  IOCs expired:         892\n  Duplicates removed:   156\n  SIEM matches:         121 notable events generated\n  False positives:      3 (CDN IPs removed from feed)\n```\n",{"name":5,"tags":24,"author":33,"domain":34,"license":15,"version":35,"nist_csf":36,"subdomain":41,"description":42,"mitre_attack":43},[25,26,27,28,29,30,31,32],"soc","threat-intelligence","stix","taxii","misp","feeds","ioc","siem-integration","mahipal","cybersecurity","1.0",[37,38,39,40],"DE.CM-01","DE.AE-02","RS.MA-01","DE.AE-06","soc-operations","Builds automated threat intelligence feed integration pipelines connecting STIX\u002FTAXII feeds, open-source threat intel, and commercial TI platforms into SIEM and security tools for real-time IOC matching and alerting. Use when SOC teams need to operationalize threat intelligence by automating feed ingestion, normalization, scoring, and distribution to detection systems.\n",[44,45,46],"T1071","T1105","T1588.001","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fbuilding-threat-intelligence-feed-integration",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill building-threat-intelligence-feed-integration",{"tool":61,"command":62},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill building-threat-intelligence-feed-integration",{"tool":64,"command":65},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill building-threat-intelligence-feed-integration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fbuilding-threat-intelligence-feed-integration\u002FSKILL.md",true,[69],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fapi-reference.md","REFERENCE","参考文档",2187,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fbuilding-threat-intelligence-feed-integration\u002Freferences\u002Fapi-reference.md",[76,85,90,97,104,111],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":84},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":86,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":84},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":84},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":84},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":84},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":84},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]