[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B7SN69M49V26H628AXFD7G":3,"skill-same:01M7B7SN69M49V26H628AXFD7G":87},{"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":51,"commitSha":52,"skillDirectory":53,"forksCount":13,"repositoryHtmlUrl":54,"repositoryHomepageUrl":6,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":56,"install":57,"resources":70},"01M7B7SN69M49V26H628AXFD7G","implementing-security-information-sharing-with-stix2",null,"Create, validate, and share STIX 2.1 threat intelligence objects (indicators, malware, campaigns, relationships, bundles) using the stix2 Python library, and publish them over TAXII 2.1. Use when building or exchanging structured threat intelligence, modeling relationships between threat objects, or publishing\u002Fconsuming a TAXII 2.1 feed.","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\u002Fimplementing-security-information-sharing-with-stix2\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fimplementing-security-information-sharing-with-stix2\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: implementing-security-information-sharing-with-stix2\ndescription: 'Create, validate, and share STIX 2.1 threat intelligence objects (indicators,\n  malware, campaigns, relationships, bundles) using the stix2 Python library, and\n  publish them over TAXII 2.1. Use when building or exchanging structured threat\n  intelligence, modeling relationships between threat objects, or publishing\u002Fconsuming\n  a TAXII 2.1 feed.\n\n  '\ndomain: cybersecurity\nsubdomain: threat-intelligence\ntags:\n- stix\n- taxii\n- threat-sharing\n- intelligence-exchange\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nd3fend_techniques:\n- File Metadata Consistency Validation\n- Application Protocol Command Analysis\n- Identifier Analysis\n- Content Format Conversion\n- Message Analysis\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- T1027\n---\n\n# Implementing Security Information Sharing with STIX 2.1\n\nBuild and share structured threat intelligence using STIX 2.1 objects\nwith the stix2 Python library and TAXII 2.1 transport protocol.\n\n## When to Use\n\n- Building a threat intelligence platform that exchanges IOCs with partner organizations\n- Automating ingestion and export of indicators from MISP, OpenCTI, or other TIP platforms\n- Creating machine-readable intelligence reports for ISAC\u002FISAO sharing communities\n- Publishing threat data to a TAXII 2.1 server for downstream consumption by SIEMs and SOARs\n- Converting unstructured threat reports into standardized STIX 2.1 bundles\n- Enriching detection rules with context by linking indicators to malware, campaigns, and threat actors\n\n**Do not use** for sharing simple IP blocklists or CSV-based IOC feeds that do not require relationship context; plain-text feeds with simpler formats like CSV or OpenIOC may be more efficient in those cases.\n\n## Prerequisites\n\n- Python 3.8+ with `stix2` library (`pip install stix2`)\n- `taxii2-client` for consuming TAXII feeds (`pip install taxii2-client`)\n- A TAXII 2.1 server endpoint for publishing (e.g., OpenTAXII, Medallion, or MISP TAXII service)\n- Familiarity with STIX 2.1 SDO types: Indicator, Malware, Threat Actor, Campaign, Attack Pattern, Identity\n- Familiarity with STIX 2.1 SRO types: Relationship, Sighting\n- Optional: OpenCTI or MISP instance for end-to-end integration testing\n\n## Workflow\n\n### Step 1: Install Dependencies\n\n```bash\npip install stix2 taxii2-client requests\n```\n\n### Step 2: Create STIX 2.1 Domain Objects (SDOs)\n\nCreate core intelligence objects that describe threats, actors, and campaigns:\n\n```python\nfrom stix2 import (\n    Indicator, Malware, ThreatActor, Campaign,\n    AttackPattern, Identity, Relationship, Bundle,\n    ExternalReference\n)\nfrom datetime import datetime\n\n# Create a producer identity\nproducer = Identity(\n    name=\"ACME Threat Intel Team\",\n    identity_class=\"organization\",\n    sectors=[\"technology\"],\n    contact_information=\"threatintel@acme.example.com\"\n)\n\n# Create a malware object\nemotet_malware = Malware(\n    name=\"Emotet\",\n    description=\"Banking trojan turned modular botnet loader. \"\n                \"Distributed via malspam with macro-enabled Office documents.\",\n    malware_types=[\"trojan\", \"bot\"],\n    is_family=True,\n    created_by_ref=producer.id\n)\n\n# Create an attack pattern referencing MITRE ATT&CK\nspearphishing_pattern = AttackPattern(\n    name=\"Spearphishing Attachment\",\n    description=\"Adversaries send spearphishing emails with a malicious attachment.\",\n    external_references=[\n        ExternalReference(\n            source_name=\"mitre-attack\",\n            external_id=\"T1566.001\",\n            url=\"https:\u002F\u002Fattack.mitre.org\u002Ftechniques\u002FT1566\u002F001\u002F\"\n        )\n    ],\n    created_by_ref=producer.id\n)\n\n# Create a threat actor\nthreat_actor = ThreatActor(\n    name=\"Mummy Spider\",\n    description=\"Cybercriminal group operating the Emotet botnet infrastructure.\",\n    threat_actor_types=[\"crime-syndicate\"],\n    aliases=[\"TA542\", \"Gold Crestwood\"],\n    primary_motivation=\"personal-gain\",\n    created_by_ref=producer.id\n)\n\n# Create a campaign\ncampaign = Campaign(\n    name=\"Emotet Q1 2026 Resurgence\",\n    description=\"Renewed Emotet distribution campaign using thread-hijacked \"\n                \"reply-chain emails with OneNote lure attachments.\",\n    first_seen=\"2026-01-15T00:00:00Z\",\n    created_by_ref=producer.id\n)\n\nprint(f\"Created malware SDO: {emotet_malware.id}\")\nprint(f\"Created threat actor SDO: {threat_actor.id}\")\nprint(f\"Created campaign SDO: {campaign.id}\")\n```\n\n### Step 3: Create STIX Indicators with Patterns\n\nDefine detection patterns using the STIX Patterning Language:\n\n```python\n# File hash indicator\nhash_indicator = Indicator(\n    name=\"Emotet dropper hash\",\n    description=\"SHA-256 hash of Emotet first-stage dropper observed in Jan 2026 campaign.\",\n    indicator_types=[\"malicious-activity\"],\n    pattern_type=\"stix\",\n    pattern=\"[file:hashes.'SHA-256' = 'a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2']\",\n    valid_from=\"2026-01-15T00:00:00Z\",\n    created_by_ref=producer.id\n)\n\n# Network indicator for C2 domain\nc2_indicator = Indicator(\n    name=\"Emotet C2 domain\",\n    description=\"Command and control domain observed in Emotet tier-1 botnet infrastructure.\",\n    indicator_types=[\"malicious-activity\"],\n    pattern_type=\"stix\",\n    pattern=\"[domain-name:value = 'malicious-c2.example.com']\",\n    valid_from=\"2026-01-20T00:00:00Z\",\n    created_by_ref=producer.id\n)\n\n# Compound pattern: process spawning with suspicious command line\nprocess_indicator = Indicator(\n    name=\"Emotet PowerShell download cradle\",\n    description=\"PowerShell execution pattern used by Emotet to download next-stage payload.\",\n    indicator_types=[\"malicious-activity\"],\n    pattern_type=\"stix\",\n    pattern=(\n        \"[process:command_line MATCHES 'powershell.*-enc.*' \"\n        \"AND process:parent_ref.name = 'winword.exe']\"\n    ),\n    valid_from=\"2026-01-15T00:00:00Z\",\n    created_by_ref=producer.id\n)\n\n# Email subject indicator\nemail_indicator = Indicator(\n    name=\"Emotet phishing subject line pattern\",\n    description=\"Subject line pattern seen in thread-hijacked Emotet phishing emails.\",\n    indicator_types=[\"malicious-activity\"],\n    pattern_type=\"stix\",\n    pattern=\"[email-message:subject MATCHES '^RE:.*Invoice.*[0-9]{6}']\",\n    valid_from=\"2026-01-15T00:00:00Z\",\n    created_by_ref=producer.id\n)\n\nprint(f\"Created {4} indicator objects\")\n```\n\n### Step 4: Build Relationships Between Objects\n\nLink SDOs together using Relationship objects to express how threats are connected:\n\n```python\n# Malware uses attack pattern\nrel_malware_attack = Relationship(\n    relationship_type=\"uses\",\n    source_ref=emotet_malware.id,\n    target_ref=spearphishing_pattern.id,\n    description=\"Emotet is distributed via spearphishing attachments.\",\n    created_by_ref=producer.id\n)\n\n# Threat actor uses malware\nrel_actor_malware = Relationship(\n    relationship_type=\"uses\",\n    source_ref=threat_actor.id,\n    target_ref=emotet_malware.id,\n    description=\"Mummy Spider operates the Emotet malware infrastructure.\",\n    created_by_ref=producer.id\n)\n\n# Indicator indicates malware\nrel_indicator_malware = Relationship(\n    relationship_type=\"indicates\",\n    source_ref=hash_indicator.id,\n    target_ref=emotet_malware.id,\n    description=\"File hash indicator for Emotet dropper binary.\",\n    created_by_ref=producer.id\n)\n\n# Campaign uses malware\nrel_campaign_malware = Relationship(\n    relationship_type=\"uses\",\n    source_ref=campaign.id,\n    target_ref=emotet_malware.id,\n    created_by_ref=producer.id\n)\n\n# Threat actor attributed to campaign\nrel_actor_campaign = Relationship(\n    relationship_type=\"attributed-to\",\n    source_ref=campaign.id,\n    target_ref=threat_actor.id,\n    created_by_ref=producer.id\n)\n\nprint(f\"Created {5} relationship objects linking threat intelligence\")\n```\n\n### Step 5: Assemble and Serialize a STIX Bundle\n\nPackage all objects into a bundle for sharing:\n\n```python\nimport json\n\nbundle = Bundle(\n    objects=[\n        producer,\n        emotet_malware,\n        spearphishing_pattern,\n        threat_actor,\n        campaign,\n        hash_indicator,\n        c2_indicator,\n        process_indicator,\n        email_indicator,\n        rel_malware_attack,\n        rel_actor_malware,\n        rel_indicator_malware,\n        rel_campaign_malware,\n        rel_actor_campaign,\n    ]\n)\n\n# Serialize to JSON\nbundle_json = bundle.serialize(pretty=True)\n\n# Write bundle to file for sharing\nwith open(\"emotet_campaign_bundle.json\", \"w\") as f:\n    f.write(bundle_json)\n\nprint(f\"Bundle {bundle.id} contains {len(bundle.objects)} objects\")\nprint(f\"Written to emotet_campaign_bundle.json\")\n\n# Validate the bundle by re-parsing\nfrom stix2 import parse\nparsed = parse(bundle_json, allow_custom=False)\nprint(f\"Bundle validation passed: {len(parsed.objects)} objects parsed successfully\")\n```\n\n### Step 6: Consume Intelligence from a TAXII 2.1 Server\n\nRetrieve published threat intelligence from a TAXII feed:\n\n```python\nfrom taxii2client.v21 import Server, Collection, as_pages\nimport json\n\n# Connect to a TAXII 2.1 server\ntaxii_server = Server(\n    \"https:\u002F\u002Ftaxii.example.com\u002Ftaxii2\u002F\",\n    user=\"readonly\",\n    password=\"readonly_password\"\n)\n\n# Discover API roots and collections\napi_root = taxii_server.api_roots[0]\nprint(f\"API Root: {api_root.title}\")\n\nfor collection in api_root.collections:\n    print(f\"  Collection: {collection.title} (ID: {collection.id})\")\n\n# Fetch indicators from a specific collection\ntarget_collection = Collection(\n    f\"https:\u002F\u002Ftaxii.example.com\u002Ftaxii2\u002Fcollections\u002F{api_root.collections[0].id}\u002F\",\n    user=\"readonly\",\n    password=\"readonly_password\"\n)\n\n# Retrieve objects with filtering\nresponse = target_collection.get_objects(\n    added_after=\"2026-01-01T00:00:00Z\",\n    type=[\"indicator\", \"malware\"]\n)\n\nstix_data = json.loads(response.text)\nprint(f\"Retrieved {len(stix_data.get('objects', []))} objects from TAXII server\")\n\n# Process each retrieved object\nfor obj in stix_data.get(\"objects\", []):\n    if obj[\"type\"] == \"indicator\":\n        print(f\"  Indicator: {obj['name']} | Pattern: {obj['pattern'][:60]}...\")\n    elif obj[\"type\"] == \"malware\":\n        print(f\"  Malware: {obj['name']} | Family: {obj.get('is_family', False)}\")\n```\n\n### Step 7: Publish Intelligence to a TAXII 2.1 Server\n\nPush your STIX bundle to a writable TAXII collection:\n\n```python\nimport requests\nimport json\n\nTAXII_URL = \"https:\u002F\u002Ftaxii.example.com\u002Ftaxii2\u002Fcollections\u002FCOLLECTION_ID\u002Fobjects\u002F\"\nTAXII_USER = \"publisher\"\nTAXII_PASS = \"publisher_password\"\n\nheaders = {\n    \"Content-Type\": \"application\u002Ftaxii+json;version=2.1\",\n    \"Accept\": \"application\u002Ftaxii+json;version=2.1\"\n}\n\n# Read the bundle we created earlier\nwith open(\"emotet_campaign_bundle.json\", \"r\") as f:\n    bundle_data = f.read()\n\nresponse = requests.post(\n    TAXII_URL,\n    headers=headers,\n    auth=(TAXII_USER, TAXII_PASS),\n    data=bundle_data,\n    timeout=30\n)\n\nif response.status_code in (200, 201, 202):\n    status = response.json()\n    print(f\"Published successfully. Status ID: {status.get('id')}\")\n    print(f\"  Total count: {status.get('total_count')}\")\n    print(f\"  Success count: {status.get('success_count')}\")\n    print(f\"  Failure count: {status.get('failure_count')}\")\nelse:\n    print(f\"Publishing failed: {response.status_code} - {response.text}\")\n```\n\n### Step 8: Validate and Lint STIX Objects\n\nEnsure objects comply with the STIX 2.1 specification:\n\n```python\nfrom stix2 import parse, exceptions\nimport json\n\ndef validate_stix_bundle(bundle_path):\n    \"\"\"Validate all objects in a STIX bundle against the 2.1 spec.\"\"\"\n    with open(bundle_path, \"r\") as f:\n        raw = json.load(f)\n\n    errors = []\n    valid_count = 0\n\n    for obj in raw.get(\"objects\", []):\n        try:\n            parsed = parse(json.dumps(obj), allow_custom=False)\n            valid_count += 1\n        except (exceptions.InvalidValueError, exceptions.MissingPropertiesError) as e:\n            errors.append({\n                \"object_id\": obj.get(\"id\", \"unknown\"),\n                \"object_type\": obj.get(\"type\", \"unknown\"),\n                \"error\": str(e)\n            })\n\n    print(f\"Validation results: {valid_count} valid, {len(errors)} errors\")\n    for err in errors:\n        print(f\"  ERROR in {err['object_type']} ({err['object_id']}): {err['error']}\")\n\n    return len(errors) == 0\n\nvalidate_stix_bundle(\"emotet_campaign_bundle.json\")\n```\n\n## Verification\n\n- Confirm all STIX objects serialize to valid JSON and include required properties (`type`, `id`, `created`, `modified`)\n- Verify relationship `source_ref` and `target_ref` point to existing object IDs within the bundle\n- Validate indicator patterns parse correctly using the STIX patterning grammar\n- Test TAXII publishing returns a success status with `success_count` matching the number of objects sent\n- Re-retrieve published objects from the TAXII server and confirm they round-trip without data loss\n- Check that consuming systems (SIEM, SOAR, TIP) can ingest the bundle and create corresponding detection rules or enrichment data\n- Run `stix2-validator` CLI tool against exported bundles: `stix2_validator emotet_campaign_bundle.json`\n","# Implementing Security Information Sharing with STIX 2.1\n\nBuild and share structured threat intelligence using STIX 2.1 objects\nwith the stix2 Python library and TAXII 2.1 transport protocol.\n\n## When to Use\n\n- Building a threat intelligence platform that exchanges IOCs with partner organizations\n- Automating ingestion and export of indicators from MISP, OpenCTI, or other TIP platforms\n- Creating machine-readable intelligence reports for ISAC\u002FISAO sharing communities\n- Publishing threat data to a TAXII 2.1 server for downstream consumption by SIEMs and SOARs\n- Converting unstructured threat reports into standardized STIX 2.1 bundles\n- Enriching detection rules with context by linking indicators to malware, campaigns, and threat actors\n\n**Do not use** for sharing simple IP blocklists or CSV-based IOC feeds that do not require relationship context; plain-text feeds with simpler formats like CSV or OpenIOC may be more efficient in those cases.\n\n## Prerequisites\n\n- Python 3.8+ with `stix2` library (`pip install stix2`)\n- `taxii2-client` for consuming TAXII feeds (`pip install taxii2-client`)\n- A TAXII 2.1 server endpoint for publishing (e.g., OpenTAXII, Medallion, or MISP TAXII service)\n- Familiarity with STIX 2.1 SDO types: Indicator, Malware, Threat Actor, Campaign, Attack Pattern, Identity\n- Familiarity with STIX 2.1 SRO types: Relationship, Sighting\n- Optional: OpenCTI or MISP instance for end-to-end integration testing\n\n## Workflow\n\n### Step 1: Install Dependencies\n\n```bash\npip install stix2 taxii2-client requests\n```\n\n### Step 2: Create STIX 2.1 Domain Objects (SDOs)\n\nCreate core intelligence objects that describe threats, actors, and campaigns:\n\n```python\nfrom stix2 import (\n    Indicator, Malware, ThreatActor, Campaign,\n    AttackPattern, Identity, Relationship, Bundle,\n    ExternalReference\n)\nfrom datetime import datetime\n\n# Create a producer identity\nproducer = Identity(\n    name=\"ACME Threat Intel Team\",\n    identity_class=\"organization\",\n    sectors=[\"technology\"],\n    contact_information=\"threatintel@acme.example.com\"\n)\n\n# Create a malware object\nemotet_malware = Malware(\n    name=\"Emotet\",\n    description=\"Banking trojan turned modular botnet loader. \"\n                \"Distributed via malspam with macro-enabled Office documents.\",\n    malware_types=[\"trojan\", \"bot\"],\n    is_family=True,\n    created_by_ref=producer.id\n)\n\n# Create an attack pattern referencing MITRE ATT&CK\nspearphishing_pattern = AttackPattern(\n    name=\"Spearphishing Attachment\",\n    description=\"Adversaries send spearphishing emails with a malicious attachment.\",\n    external_references=[\n        ExternalReference(\n            source_name=\"mitre-attack\",\n            external_id=\"T1566.001\",\n            url=\"https:\u002F\u002Fattack.mitre.org\u002Ftechniques\u002FT1566\u002F001\u002F\"\n        )\n    ],\n    created_by_ref=producer.id\n)\n\n# Create a threat actor\nthreat_actor = ThreatActor(\n    name=\"Mummy Spider\",\n    description=\"Cybercriminal group operating the Emotet botnet infrastructure.\",\n    threat_actor_types=[\"crime-syndicate\"],\n    aliases=[\"TA542\", \"Gold Crestwood\"],\n    primary_motivation=\"personal-gain\",\n    created_by_ref=producer.id\n)\n\n# Create a campaign\ncampaign = Campaign(\n    name=\"Emotet Q1 2026 Resurgence\",\n    description=\"Renewed Emotet distribution campaign using thread-hijacked \"\n                \"reply-chain emails with OneNote lure attachments.\",\n    first_seen=\"2026-01-15T00:00:00Z\",\n    created_by_ref=producer.id\n)\n\nprint(f\"Created malware SDO: {emotet_malware.id}\")\nprint(f\"Created threat actor SDO: {threat_actor.id}\")\nprint(f\"Created campaign SDO: {campaign.id}\")\n```\n\n### Step 3: Create STIX Indicators with Patterns\n\nDefine detection patterns using the STIX Patterning Language:\n\n```python\n# File hash indicator\nhash_indicator = Indicator(\n    name=\"Emotet dropper hash\",\n    description=\"SHA-256 hash of Emotet first-stage dropper observed in Jan 2026 campaign.\",\n    indicator_types=[\"malicious-activity\"],\n    pattern_type=\"stix\",\n    pattern=\"[file:hashes.'SHA-256' = 'a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2']\",\n    valid_from=\"2026-01-15T00:00:00Z\",\n    created_by_ref=producer.id\n)\n\n# Network indicator for C2 domain\nc2_indicator = Indicator(\n    name=\"Emotet C2 domain\",\n    description=\"Command and control domain observed in Emotet tier-1 botnet infrastructure.\",\n    indicator_types=[\"malicious-activity\"],\n    pattern_type=\"stix\",\n    pattern=\"[domain-name:value = 'malicious-c2.example.com']\",\n    valid_from=\"2026-01-20T00:00:00Z\",\n    created_by_ref=producer.id\n)\n\n# Compound pattern: process spawning with suspicious command line\nprocess_indicator = Indicator(\n    name=\"Emotet PowerShell download cradle\",\n    description=\"PowerShell execution pattern used by Emotet to download next-stage payload.\",\n    indicator_types=[\"malicious-activity\"],\n    pattern_type=\"stix\",\n    pattern=(\n        \"[process:command_line MATCHES 'powershell.*-enc.*' \"\n        \"AND process:parent_ref.name = 'winword.exe']\"\n    ),\n    valid_from=\"2026-01-15T00:00:00Z\",\n    created_by_ref=producer.id\n)\n\n# Email subject indicator\nemail_indicator = Indicator(\n    name=\"Emotet phishing subject line pattern\",\n    description=\"Subject line pattern seen in thread-hijacked Emotet phishing emails.\",\n    indicator_types=[\"malicious-activity\"],\n    pattern_type=\"stix\",\n    pattern=\"[email-message:subject MATCHES '^RE:.*Invoice.*[0-9]{6}']\",\n    valid_from=\"2026-01-15T00:00:00Z\",\n    created_by_ref=producer.id\n)\n\nprint(f\"Created {4} indicator objects\")\n```\n\n### Step 4: Build Relationships Between Objects\n\nLink SDOs together using Relationship objects to express how threats are connected:\n\n```python\n# Malware uses attack pattern\nrel_malware_attack = Relationship(\n    relationship_type=\"uses\",\n    source_ref=emotet_malware.id,\n    target_ref=spearphishing_pattern.id,\n    description=\"Emotet is distributed via spearphishing attachments.\",\n    created_by_ref=producer.id\n)\n\n# Threat actor uses malware\nrel_actor_malware = Relationship(\n    relationship_type=\"uses\",\n    source_ref=threat_actor.id,\n    target_ref=emotet_malware.id,\n    description=\"Mummy Spider operates the Emotet malware infrastructure.\",\n    created_by_ref=producer.id\n)\n\n# Indicator indicates malware\nrel_indicator_malware = Relationship(\n    relationship_type=\"indicates\",\n    source_ref=hash_indicator.id,\n    target_ref=emotet_malware.id,\n    description=\"File hash indicator for Emotet dropper binary.\",\n    created_by_ref=producer.id\n)\n\n# Campaign uses malware\nrel_campaign_malware = Relationship(\n    relationship_type=\"uses\",\n    source_ref=campaign.id,\n    target_ref=emotet_malware.id,\n    created_by_ref=producer.id\n)\n\n# Threat actor attributed to campaign\nrel_actor_campaign = Relationship(\n    relationship_type=\"attributed-to\",\n    source_ref=campaign.id,\n    target_ref=threat_actor.id,\n    created_by_ref=producer.id\n)\n\nprint(f\"Created {5} relationship objects linking threat intelligence\")\n```\n\n### Step 5: Assemble and Serialize a STIX Bundle\n\nPackage all objects into a bundle for sharing:\n\n```python\nimport json\n\nbundle = Bundle(\n    objects=[\n        producer,\n        emotet_malware,\n        spearphishing_pattern,\n        threat_actor,\n        campaign,\n        hash_indicator,\n        c2_indicator,\n        process_indicator,\n        email_indicator,\n        rel_malware_attack,\n        rel_actor_malware,\n        rel_indicator_malware,\n        rel_campaign_malware,\n        rel_actor_campaign,\n    ]\n)\n\n# Serialize to JSON\nbundle_json = bundle.serialize(pretty=True)\n\n# Write bundle to file for sharing\nwith open(\"emotet_campaign_bundle.json\", \"w\") as f:\n    f.write(bundle_json)\n\nprint(f\"Bundle {bundle.id} contains {len(bundle.objects)} objects\")\nprint(f\"Written to emotet_campaign_bundle.json\")\n\n# Validate the bundle by re-parsing\nfrom stix2 import parse\nparsed = parse(bundle_json, allow_custom=False)\nprint(f\"Bundle validation passed: {len(parsed.objects)} objects parsed successfully\")\n```\n\n### Step 6: Consume Intelligence from a TAXII 2.1 Server\n\nRetrieve published threat intelligence from a TAXII feed:\n\n```python\nfrom taxii2client.v21 import Server, Collection, as_pages\nimport json\n\n# Connect to a TAXII 2.1 server\ntaxii_server = Server(\n    \"https:\u002F\u002Ftaxii.example.com\u002Ftaxii2\u002F\",\n    user=\"readonly\",\n    password=\"readonly_password\"\n)\n\n# Discover API roots and collections\napi_root = taxii_server.api_roots[0]\nprint(f\"API Root: {api_root.title}\")\n\nfor collection in api_root.collections:\n    print(f\"  Collection: {collection.title} (ID: {collection.id})\")\n\n# Fetch indicators from a specific collection\ntarget_collection = Collection(\n    f\"https:\u002F\u002Ftaxii.example.com\u002Ftaxii2\u002Fcollections\u002F{api_root.collections[0].id}\u002F\",\n    user=\"readonly\",\n    password=\"readonly_password\"\n)\n\n# Retrieve objects with filtering\nresponse = target_collection.get_objects(\n    added_after=\"2026-01-01T00:00:00Z\",\n    type=[\"indicator\", \"malware\"]\n)\n\nstix_data = json.loads(response.text)\nprint(f\"Retrieved {len(stix_data.get('objects', []))} objects from TAXII server\")\n\n# Process each retrieved object\nfor obj in stix_data.get(\"objects\", []):\n    if obj[\"type\"] == \"indicator\":\n        print(f\"  Indicator: {obj['name']} | Pattern: {obj['pattern'][:60]}...\")\n    elif obj[\"type\"] == \"malware\":\n        print(f\"  Malware: {obj['name']} | Family: {obj.get('is_family', False)}\")\n```\n\n### Step 7: Publish Intelligence to a TAXII 2.1 Server\n\nPush your STIX bundle to a writable TAXII collection:\n\n```python\nimport requests\nimport json\n\nTAXII_URL = \"https:\u002F\u002Ftaxii.example.com\u002Ftaxii2\u002Fcollections\u002FCOLLECTION_ID\u002Fobjects\u002F\"\nTAXII_USER = \"publisher\"\nTAXII_PASS = \"publisher_password\"\n\nheaders = {\n    \"Content-Type\": \"application\u002Ftaxii+json;version=2.1\",\n    \"Accept\": \"application\u002Ftaxii+json;version=2.1\"\n}\n\n# Read the bundle we created earlier\nwith open(\"emotet_campaign_bundle.json\", \"r\") as f:\n    bundle_data = f.read()\n\nresponse = requests.post(\n    TAXII_URL,\n    headers=headers,\n    auth=(TAXII_USER, TAXII_PASS),\n    data=bundle_data,\n    timeout=30\n)\n\nif response.status_code in (200, 201, 202):\n    status = response.json()\n    print(f\"Published successfully. Status ID: {status.get('id')}\")\n    print(f\"  Total count: {status.get('total_count')}\")\n    print(f\"  Success count: {status.get('success_count')}\")\n    print(f\"  Failure count: {status.get('failure_count')}\")\nelse:\n    print(f\"Publishing failed: {response.status_code} - {response.text}\")\n```\n\n### Step 8: Validate and Lint STIX Objects\n\nEnsure objects comply with the STIX 2.1 specification:\n\n```python\nfrom stix2 import parse, exceptions\nimport json\n\ndef validate_stix_bundle(bundle_path):\n    \"\"\"Validate all objects in a STIX bundle against the 2.1 spec.\"\"\"\n    with open(bundle_path, \"r\") as f:\n        raw = json.load(f)\n\n    errors = []\n    valid_count = 0\n\n    for obj in raw.get(\"objects\", []):\n        try:\n            parsed = parse(json.dumps(obj), allow_custom=False)\n            valid_count += 1\n        except (exceptions.InvalidValueError, exceptions.MissingPropertiesError) as e:\n            errors.append({\n                \"object_id\": obj.get(\"id\", \"unknown\"),\n                \"object_type\": obj.get(\"type\", \"unknown\"),\n                \"error\": str(e)\n            })\n\n    print(f\"Validation results: {valid_count} valid, {len(errors)} errors\")\n    for err in errors:\n        print(f\"  ERROR in {err['object_type']} ({err['object_id']}): {err['error']}\")\n\n    return len(errors) == 0\n\nvalidate_stix_bundle(\"emotet_campaign_bundle.json\")\n```\n\n## Verification\n\n- Confirm all STIX objects serialize to valid JSON and include required properties (`type`, `id`, `created`, `modified`)\n- Verify relationship `source_ref` and `target_ref` point to existing object IDs within the bundle\n- Validate indicator patterns parse correctly using the STIX patterning grammar\n- Test TAXII publishing returns a success status with `success_count` matching the number of objects sent\n- Re-retrieve published objects from the TAXII server and confirm they round-trip without data loss\n- Check that consuming systems (SIEM, SOAR, TIP) can ingest the bundle and create corresponding detection rules or enrichment data\n- Run `stix2-validator` CLI tool against exported bundles: `stix2_validator emotet_campaign_bundle.json`\n",{"name":5,"tags":24,"author":29,"domain":30,"license":14,"version":31,"nist_csf":32,"subdomain":37,"description":38,"mitre_attack":39,"d3fend_techniques":45},[25,26,27,28],"stix","taxii","threat-sharing","intelligence-exchange","mahipal","cybersecurity","1.0",[33,34,35,36],"ID.RA-01","ID.RA-05","DE.CM-01","DE.AE-02","threat-intelligence","Create, validate, and share STIX 2.1 threat intelligence objects (indicators, malware, campaigns, relationships, bundles) using the stix2 Python library, and publish them over TAXII 2.1. Use when building or exchanging structured threat intelligence, modeling relationships between threat objects, or publishing\u002Fconsuming a TAXII 2.1 feed.\n",[40,41,42,43,44],"T1591","T1592","T1593","T1589","T1027",[46,47,48,49,50],"File Metadata Consistency Validation","Application Protocol Command Analysis","Identifier Analysis","Content Format Conversion","Message Analysis","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fimplementing-security-information-sharing-with-stix2","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill implementing-security-information-sharing-with-stix2",{"tool":63,"command":64},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill implementing-security-information-sharing-with-stix2",{"tool":66,"command":67},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill implementing-security-information-sharing-with-stix2","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fimplementing-security-information-sharing-with-stix2\u002FSKILL.md",true,[71,75,81],{"path":72,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fapi-reference.md","REFERENCE","参考文档",2070,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fimplementing-security-information-sharing-with-stix2\u002Freferences\u002Fapi-reference.md",{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"scripts\u002Fagent.py","SCRIPT","脚本",7185,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fimplementing-security-information-sharing-with-stix2\u002Fscripts\u002Fagent.py",[88,96,103,110,117,124],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":92,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"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":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":92,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"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":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":92,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"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":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":92,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"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":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":92,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"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":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":92,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"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",[],[]]