[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B82EFP5QCCJ7KZWR6NW5WW":3,"skill-same:01M7B82EFP5QCCJ7KZWR6NW5WW":80},{"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":40,"commitSha":41,"skillDirectory":42,"forksCount":13,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":45,"install":46,"resources":59},"01M7B82EFP5QCCJ7KZWR6NW5WW","modeling-threats-with-opencti",null,"Deploy OpenCTI (Filigran) via Docker Compose and use the pycti Python client to model threat actors, intrusion sets, campaigns, and indicators as a STIX 2.1 knowledge graph with relationships (uses, attributed-to, targets). Use when building a centralized threat-intel knowledge base, correlating IOCs from multiple feeds into one adversary graph, or producing STIX bundles for detection engineering.","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\u002Fmodeling-threats-with-opencti\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fmodeling-threats-with-opencti\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: modeling-threats-with-opencti\ndescription: Deploy OpenCTI (Filigran) via Docker Compose and use the pycti Python client to model threat actors, intrusion sets, campaigns, and indicators as a STIX 2.1 knowledge graph with relationships (uses, attributed-to, targets). Use when building a centralized threat-intel knowledge base, correlating IOCs from multiple feeds into one adversary graph, or producing STIX bundles for detection engineering.\ndomain: cybersecurity\nsubdomain: threat-intelligence\ntags:\n- opencti\n- threat-intelligence\n- stix2\n- pycti\n- knowledge-graph\n- threat-modeling\n- mitre-attack\n- cti\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- ID.RA-03\nmitre_attack:\n- T1589\n---\n# Modeling Threats with OpenCTI\n\n## Overview\n\nOpenCTI (Open Cyber Threat Intelligence) is an open-source threat-intelligence platform developed by **Filigran** that lets analysts store, organize, visualize, and share structured cyber threat intelligence as a knowledge graph. Every object — Threat Actors, Intrusion Sets, Campaigns, Attack Patterns, Malware, Indicators, Observables, Vulnerabilities — is modeled on the **STIX 2.1** standard, and the relationships between them (`uses`, `attributed-to`, `targets`, `indicates`) form a graph that reveals how adversaries operate end to end.\n\nArchitecturally, OpenCTI is built from a GraphQL API backed by Elasticsearch\u002FOpenSearch and a graph database, a Redis stream, RabbitMQ message broker, **import\u002Fexport workers**, and **connectors**. Connectors retrieve information from external sources (MITRE ATT&CK, MISP, AlienVault OTX, CISA, abuse.ch, etc.), convert it into STIX 2.1 bundles, and submit those bundles to the platform; workers then ingest the bundles into the graph. The official Python client, **pycti** (`OpenCTIApiClient`), is the programmatic interface analysts use to create entities, build relationships, and push STIX bundles.\n\nThis skill follows the official OpenCTI documentation (docs.opencti.io) and the `OpenCTI-Platform\u002Fclient-python` (pycti) repository. It maps to MITRE ATT&CK **T1589 (Gather Victim Identity Information)** as part of the broader CTI analysis lifecycle — OpenCTI is where reconnaissance and adversary tradecraft observed across reporting is consolidated, deduplicated, and modeled so detection and response teams can act on it. The threat context is the volume and fragmentation of modern CTI: hundreds of vendor reports, IOC feeds, and ATT&CK updates that are useless until correlated into a single, queryable adversary picture.\n\n## When to Use\n\n- Building a centralized, STIX-native knowledge base of threat actors, campaigns, and TTPs\n- Correlating IOCs and reports from multiple feeds into a single adversary graph\n- Mapping observed activity to MITRE ATT&CK techniques for coverage and gap analysis\n- Producing structured intelligence (STIX bundles) for downstream detection engineering\n- Tracking attribution: which intrusion sets are attributed to which threat actors and campaigns\n- Automating CTI ingestion via connectors and the pycti API\n\n## Prerequisites\n\n- Docker and Docker Compose (OpenCTI is deployed as a container stack)\n- Python 3.8+ for the pycti client:\n  ```bash\n  pip install pycti stix2\n  ```\n- An OpenCTI instance and an API token (Profile > API access in the UI)\n- Familiarity with the STIX 2.1 data model (SDOs, SROs, observables)\n- RabbitMQ, Redis, and Elasticsearch\u002FOpenSearch reachable by the platform (handled by the reference compose)\n\n## Objectives\n\n- Deploy an OpenCTI platform with workers via Docker Compose\n- Authenticate to the GraphQL API with pycti using an API token\n- Create core STIX domain objects: Threat Actor, Intrusion Set, Campaign, Attack Pattern, Malware\n- Build relationships (`uses`, `attributed-to`, `targets`) to form the adversary graph\n- Enable connectors (MITRE ATT&CK, MISP) to auto-ingest intelligence\n- Submit STIX 2.1 bundles via `send_stix2_bundle`\n- Query the graph and export an actor's full TTP profile\n\n## MITRE ATT&CK Mapping\n\n| ID | Name | Relevance |\n|----|------|-----------|\n| T1589 | Gather Victim Identity Information | OpenCTI consolidates reconnaissance and victim\u002Ftarget intelligence observed across reporting into a structured, queryable knowledge graph that supports analysis of adversary targeting. |\n\n## Workflow\n\n### Step 1: Deploy the OpenCTI platform\nUse the official Docker Compose stack. Generate the required tokens\u002FUUIDs and start the platform, workers, and dependencies.\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FOpenCTI-Platform\u002Fdocker.git opencti-docker\ncd opencti-docker\n\n# Generate required secrets (UUID v4 for tokens, base64 for app secret)\ncat > .env \u003C\u003CEOF\nOPENCTI_ADMIN_EMAIL=admin@opencti.local\nOPENCTI_ADMIN_PASSWORD=$(openssl rand -hex 16)\nOPENCTI_ADMIN_TOKEN=$(cat \u002Fproc\u002Fsys\u002Fkernel\u002Frandom\u002Fuuid)\nOPENCTI_BASE_URL=http:\u002F\u002Flocalhost:8080\nMINIO_ROOT_USER=$(cat \u002Fproc\u002Fsys\u002Fkernel\u002Frandom\u002Fuuid)\nMINIO_ROOT_PASSWORD=$(cat \u002Fproc\u002Fsys\u002Fkernel\u002Frandom\u002Fuuid)\nRABBITMQ_DEFAULT_USER=guest\nRABBITMQ_DEFAULT_PASS=guest\nELASTIC_MEMORY_SIZE=4G\nCONNECTOR_HISTORY_ID=$(cat \u002Fproc\u002Fsys\u002Fkernel\u002Frandom\u002Fuuid)\nCONNECTOR_EXPORT_FILE_STIX_ID=$(cat \u002Fproc\u002Fsys\u002Fkernel\u002Frandom\u002Fuuid)\nEOF\n\n# Increase vm.max_map_count for Elasticsearch, then start the stack\nsudo sysctl -w vm.max_map_count=1048575\ndocker compose up -d\n```\nAccess the UI at http:\u002F\u002Flocalhost:8080 and log in with the admin credentials from `.env`.\n\n### Step 2: Authenticate with pycti\nCreate an `OpenCTIApiClient` instance using your platform URL and API token.\n```python\nfrom pycti import OpenCTIApiClient\n\nopencti = OpenCTIApiClient(\n    \"http:\u002F\u002Flocalhost:8080\",\n    \"YOUR_API_TOKEN\",  # from Profile > API access, or OPENCTI_ADMIN_TOKEN\n)\n```\n\n### Step 3: Create core STIX domain objects\nCreate a Threat Actor, an Intrusion Set, a Campaign, and an Attack Pattern. pycti `create()` calls act as upserts when `update=True`.\n```python\n# Threat Actor (group)\nactor = opencti.threat_actor_group.create(\n    name=\"APT-EXAMPLE\",\n    description=\"Financially motivated intrusion group tracked in this case.\",\n    threat_actor_types=[\"crime-syndicate\"],\n)\n\n# Intrusion Set\nintrusion_set = opencti.intrusion_set.create(\n    name=\"EXAMPLE-SET\",\n    description=\"Cluster of activity sharing infrastructure and TTPs.\",\n)\n\n# Campaign\ncampaign = opencti.campaign.create(\n    name=\"Operation Example 2026\",\n    description=\"Spearphishing campaign targeting the finance sector.\",\n)\n\n# Attack Pattern linked to MITRE ATT&CK (x_mitre_id maps to the technique)\ntechnique = opencti.attack_pattern.create(\n    name=\"Spearphishing Attachment\",\n    x_mitre_id=\"T1566.001\",\n)\n```\n\n### Step 4: Build relationships to form the graph\nConnect the objects with STIX relationships so the graph reflects how the adversary operates.\n```python\n# Intrusion set attributed to the threat actor\nopencti.stix_core_relationship.create(\n    fromId=intrusion_set[\"id\"],\n    toId=actor[\"id\"],\n    relationship_type=\"attributed-to\",\n)\n\n# Campaign attributed to the intrusion set\nopencti.stix_core_relationship.create(\n    fromId=campaign[\"id\"],\n    toId=intrusion_set[\"id\"],\n    relationship_type=\"attributed-to\",\n)\n\n# Intrusion set uses the technique\nopencti.stix_core_relationship.create(\n    fromId=intrusion_set[\"id\"],\n    toId=technique[\"id\"],\n    relationship_type=\"uses\",\n)\n```\n\n### Step 5: Add indicators and observables\nCreate an indicator with a STIX pattern and tie it to the intrusion set via an `indicates` relationship.\n```python\nfrom dateutil.parser import parse\n\ndate = parse(\"2026-06-01\").strftime(\"%Y-%m-%dT%H:%M:%SZ\")\n\nindicator = opencti.indicator.create(\n    name=\"C2 domain for Operation Example\",\n    pattern_type=\"stix\",\n    pattern=\"[domain-name:value = 'malicious-c2.example']\",\n    x_opencti_main_observable_type=\"Domain-Name\",\n    valid_from=date,\n)\n\nopencti.stix_core_relationship.create(\n    fromId=indicator[\"id\"],\n    toId=intrusion_set[\"id\"],\n    relationship_type=\"indicates\",\n)\n```\n\n### Step 6: Submit a STIX 2.1 bundle directly\nFor bulk ingestion, build a STIX bundle and submit it with `send_stix2_bundle` — the recommended bulk-ingest path.\n```python\nimport json\n\nwith open(\"threat_report_bundle.json\") as f:\n    bundle = json.load(f)\n\nopencti.stix2.import_bundle_from_json(\n    json.dumps(bundle),\n    update=True,\n)\n```\n\n### Step 7: Enable connectors for automated ingestion\nAdd connectors to the compose stack so external intelligence (MITRE ATT&CK, MISP) is ingested continuously. Each connector needs its own token.\n```yaml\n# Append to docker-compose.yml under services:\n  connector-mitre:\n    image: opencti\u002Fconnector-mitre:latest\n    environment:\n      - OPENCTI_URL=http:\u002F\u002Fopencti:8080\n      - OPENCTI_TOKEN=${CONNECTOR_MITRE_TOKEN}\n      - CONNECTOR_ID=${CONNECTOR_MITRE_ID}\n      - CONNECTOR_TYPE=EXTERNAL_IMPORT\n      - CONNECTOR_NAME=MITRE ATT&CK\n      - CONNECTOR_SCOPE=tool,report,malware,identity,attack-pattern,intrusion-set,campaign\n      - MITRE_INTERVAL=7   # days\n    restart: always\n```\n```bash\ndocker compose up -d connector-mitre\n```\n\n### Step 8: Query the graph and export an actor profile\nRead back the adversary's full picture for reporting and detection engineering.\n```python\n# Resolve all techniques an intrusion set uses\niset = opencti.intrusion_set.read(filters={\n    \"mode\": \"and\",\n    \"filters\": [{\"key\": \"name\", \"values\": [\"EXAMPLE-SET\"]}],\n    \"filterGroups\": [],\n})\n\nrels = opencti.stix_core_relationship.list(\n    fromId=iset[\"id\"],\n    relationship_type=\"uses\",\n)\nfor r in rels:\n    print(r[\"to\"][\"name\"], r[\"to\"].get(\"x_mitre_id\"))\n```\n\n## Tools and Resources\n\n| Tool | Purpose | Source |\n|------|---------|--------|\n| OpenCTI Platform | STIX 2.1 threat-intel knowledge graph | https:\u002F\u002Fgithub.com\u002FOpenCTI-Platform\u002Fopencti |\n| OpenCTI Docker | Reference compose stack | https:\u002F\u002Fgithub.com\u002FOpenCTI-Platform\u002Fdocker |\n| pycti | Official Python client for the GraphQL API | https:\u002F\u002Fgithub.com\u002FOpenCTI-Platform\u002Fclient-python |\n| OpenCTI Connectors | Importers (MITRE, MISP, OTX, CISA, abuse.ch) | https:\u002F\u002Fgithub.com\u002FOpenCTI-Platform\u002Fconnectors |\n| OpenCTI docs | Official documentation | https:\u002F\u002Fdocs.opencti.io\u002Flatest\u002F |\n| STIX 2.1 spec | Underlying data model | https:\u002F\u002Foasis-open.github.io\u002Fcti-documentation\u002F |\n\n## STIX Object Cheat Sheet (pycti entities)\n\n| pycti entity | STIX type | Use |\n|--------------|-----------|-----|\n| `threat_actor_group` | threat-actor | Named adversary group |\n| `intrusion_set` | intrusion-set | Clustered activity \u002F tracked set |\n| `campaign` | campaign | Time-bounded operation |\n| `attack_pattern` | attack-pattern | MITRE ATT&CK technique |\n| `malware` | malware | Tooling\u002Fimplant |\n| `indicator` | indicator | Detection pattern (STIX\u002FSigma\u002FYARA) |\n| `vulnerability` | vulnerability | CVE |\n| `stix_core_relationship` | relationship | `uses`, `attributed-to`, `targets`, `indicates` |\n\n## Validation Criteria\n\n- [ ] OpenCTI platform and workers deployed and reachable at the base URL\n- [ ] pycti authenticates with a valid API token\n- [ ] Threat Actor, Intrusion Set, Campaign, and Attack Pattern objects created\n- [ ] Relationships (`attributed-to`, `uses`, `indicates`) built between objects\n- [ ] At least one indicator created and linked to an intrusion set\n- [ ] A STIX 2.1 bundle ingested via `import_bundle_from_json`\n- [ ] MITRE ATT&CK connector enabled and importing techniques\n- [ ] Intrusion-set TTP profile queryable and exportable\n","# Modeling Threats with OpenCTI\n\n## Overview\n\nOpenCTI (Open Cyber Threat Intelligence) is an open-source threat-intelligence platform developed by **Filigran** that lets analysts store, organize, visualize, and share structured cyber threat intelligence as a knowledge graph. Every object — Threat Actors, Intrusion Sets, Campaigns, Attack Patterns, Malware, Indicators, Observables, Vulnerabilities — is modeled on the **STIX 2.1** standard, and the relationships between them (`uses`, `attributed-to`, `targets`, `indicates`) form a graph that reveals how adversaries operate end to end.\n\nArchitecturally, OpenCTI is built from a GraphQL API backed by Elasticsearch\u002FOpenSearch and a graph database, a Redis stream, RabbitMQ message broker, **import\u002Fexport workers**, and **connectors**. Connectors retrieve information from external sources (MITRE ATT&CK, MISP, AlienVault OTX, CISA, abuse.ch, etc.), convert it into STIX 2.1 bundles, and submit those bundles to the platform; workers then ingest the bundles into the graph. The official Python client, **pycti** (`OpenCTIApiClient`), is the programmatic interface analysts use to create entities, build relationships, and push STIX bundles.\n\nThis skill follows the official OpenCTI documentation (docs.opencti.io) and the `OpenCTI-Platform\u002Fclient-python` (pycti) repository. It maps to MITRE ATT&CK **T1589 (Gather Victim Identity Information)** as part of the broader CTI analysis lifecycle — OpenCTI is where reconnaissance and adversary tradecraft observed across reporting is consolidated, deduplicated, and modeled so detection and response teams can act on it. The threat context is the volume and fragmentation of modern CTI: hundreds of vendor reports, IOC feeds, and ATT&CK updates that are useless until correlated into a single, queryable adversary picture.\n\n## When to Use\n\n- Building a centralized, STIX-native knowledge base of threat actors, campaigns, and TTPs\n- Correlating IOCs and reports from multiple feeds into a single adversary graph\n- Mapping observed activity to MITRE ATT&CK techniques for coverage and gap analysis\n- Producing structured intelligence (STIX bundles) for downstream detection engineering\n- Tracking attribution: which intrusion sets are attributed to which threat actors and campaigns\n- Automating CTI ingestion via connectors and the pycti API\n\n## Prerequisites\n\n- Docker and Docker Compose (OpenCTI is deployed as a container stack)\n- Python 3.8+ for the pycti client:\n  ```bash\n  pip install pycti stix2\n  ```\n- An OpenCTI instance and an API token (Profile > API access in the UI)\n- Familiarity with the STIX 2.1 data model (SDOs, SROs, observables)\n- RabbitMQ, Redis, and Elasticsearch\u002FOpenSearch reachable by the platform (handled by the reference compose)\n\n## Objectives\n\n- Deploy an OpenCTI platform with workers via Docker Compose\n- Authenticate to the GraphQL API with pycti using an API token\n- Create core STIX domain objects: Threat Actor, Intrusion Set, Campaign, Attack Pattern, Malware\n- Build relationships (`uses`, `attributed-to`, `targets`) to form the adversary graph\n- Enable connectors (MITRE ATT&CK, MISP) to auto-ingest intelligence\n- Submit STIX 2.1 bundles via `send_stix2_bundle`\n- Query the graph and export an actor's full TTP profile\n\n## MITRE ATT&CK Mapping\n\n| ID | Name | Relevance |\n|----|------|-----------|\n| T1589 | Gather Victim Identity Information | OpenCTI consolidates reconnaissance and victim\u002Ftarget intelligence observed across reporting into a structured, queryable knowledge graph that supports analysis of adversary targeting. |\n\n## Workflow\n\n### Step 1: Deploy the OpenCTI platform\nUse the official Docker Compose stack. Generate the required tokens\u002FUUIDs and start the platform, workers, and dependencies.\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FOpenCTI-Platform\u002Fdocker.git opencti-docker\ncd opencti-docker\n\n# Generate required secrets (UUID v4 for tokens, base64 for app secret)\ncat > .env \u003C\u003CEOF\nOPENCTI_ADMIN_EMAIL=admin@opencti.local\nOPENCTI_ADMIN_PASSWORD=$(openssl rand -hex 16)\nOPENCTI_ADMIN_TOKEN=$(cat \u002Fproc\u002Fsys\u002Fkernel\u002Frandom\u002Fuuid)\nOPENCTI_BASE_URL=http:\u002F\u002Flocalhost:8080\nMINIO_ROOT_USER=$(cat \u002Fproc\u002Fsys\u002Fkernel\u002Frandom\u002Fuuid)\nMINIO_ROOT_PASSWORD=$(cat \u002Fproc\u002Fsys\u002Fkernel\u002Frandom\u002Fuuid)\nRABBITMQ_DEFAULT_USER=guest\nRABBITMQ_DEFAULT_PASS=guest\nELASTIC_MEMORY_SIZE=4G\nCONNECTOR_HISTORY_ID=$(cat \u002Fproc\u002Fsys\u002Fkernel\u002Frandom\u002Fuuid)\nCONNECTOR_EXPORT_FILE_STIX_ID=$(cat \u002Fproc\u002Fsys\u002Fkernel\u002Frandom\u002Fuuid)\nEOF\n\n# Increase vm.max_map_count for Elasticsearch, then start the stack\nsudo sysctl -w vm.max_map_count=1048575\ndocker compose up -d\n```\nAccess the UI at http:\u002F\u002Flocalhost:8080 and log in with the admin credentials from `.env`.\n\n### Step 2: Authenticate with pycti\nCreate an `OpenCTIApiClient` instance using your platform URL and API token.\n```python\nfrom pycti import OpenCTIApiClient\n\nopencti = OpenCTIApiClient(\n    \"http:\u002F\u002Flocalhost:8080\",\n    \"YOUR_API_TOKEN\",  # from Profile > API access, or OPENCTI_ADMIN_TOKEN\n)\n```\n\n### Step 3: Create core STIX domain objects\nCreate a Threat Actor, an Intrusion Set, a Campaign, and an Attack Pattern. pycti `create()` calls act as upserts when `update=True`.\n```python\n# Threat Actor (group)\nactor = opencti.threat_actor_group.create(\n    name=\"APT-EXAMPLE\",\n    description=\"Financially motivated intrusion group tracked in this case.\",\n    threat_actor_types=[\"crime-syndicate\"],\n)\n\n# Intrusion Set\nintrusion_set = opencti.intrusion_set.create(\n    name=\"EXAMPLE-SET\",\n    description=\"Cluster of activity sharing infrastructure and TTPs.\",\n)\n\n# Campaign\ncampaign = opencti.campaign.create(\n    name=\"Operation Example 2026\",\n    description=\"Spearphishing campaign targeting the finance sector.\",\n)\n\n# Attack Pattern linked to MITRE ATT&CK (x_mitre_id maps to the technique)\ntechnique = opencti.attack_pattern.create(\n    name=\"Spearphishing Attachment\",\n    x_mitre_id=\"T1566.001\",\n)\n```\n\n### Step 4: Build relationships to form the graph\nConnect the objects with STIX relationships so the graph reflects how the adversary operates.\n```python\n# Intrusion set attributed to the threat actor\nopencti.stix_core_relationship.create(\n    fromId=intrusion_set[\"id\"],\n    toId=actor[\"id\"],\n    relationship_type=\"attributed-to\",\n)\n\n# Campaign attributed to the intrusion set\nopencti.stix_core_relationship.create(\n    fromId=campaign[\"id\"],\n    toId=intrusion_set[\"id\"],\n    relationship_type=\"attributed-to\",\n)\n\n# Intrusion set uses the technique\nopencti.stix_core_relationship.create(\n    fromId=intrusion_set[\"id\"],\n    toId=technique[\"id\"],\n    relationship_type=\"uses\",\n)\n```\n\n### Step 5: Add indicators and observables\nCreate an indicator with a STIX pattern and tie it to the intrusion set via an `indicates` relationship.\n```python\nfrom dateutil.parser import parse\n\ndate = parse(\"2026-06-01\").strftime(\"%Y-%m-%dT%H:%M:%SZ\")\n\nindicator = opencti.indicator.create(\n    name=\"C2 domain for Operation Example\",\n    pattern_type=\"stix\",\n    pattern=\"[domain-name:value = 'malicious-c2.example']\",\n    x_opencti_main_observable_type=\"Domain-Name\",\n    valid_from=date,\n)\n\nopencti.stix_core_relationship.create(\n    fromId=indicator[\"id\"],\n    toId=intrusion_set[\"id\"],\n    relationship_type=\"indicates\",\n)\n```\n\n### Step 6: Submit a STIX 2.1 bundle directly\nFor bulk ingestion, build a STIX bundle and submit it with `send_stix2_bundle` — the recommended bulk-ingest path.\n```python\nimport json\n\nwith open(\"threat_report_bundle.json\") as f:\n    bundle = json.load(f)\n\nopencti.stix2.import_bundle_from_json(\n    json.dumps(bundle),\n    update=True,\n)\n```\n\n### Step 7: Enable connectors for automated ingestion\nAdd connectors to the compose stack so external intelligence (MITRE ATT&CK, MISP) is ingested continuously. Each connector needs its own token.\n```yaml\n# Append to docker-compose.yml under services:\n  connector-mitre:\n    image: opencti\u002Fconnector-mitre:latest\n    environment:\n      - OPENCTI_URL=http:\u002F\u002Fopencti:8080\n      - OPENCTI_TOKEN=${CONNECTOR_MITRE_TOKEN}\n      - CONNECTOR_ID=${CONNECTOR_MITRE_ID}\n      - CONNECTOR_TYPE=EXTERNAL_IMPORT\n      - CONNECTOR_NAME=MITRE ATT&CK\n      - CONNECTOR_SCOPE=tool,report,malware,identity,attack-pattern,intrusion-set,campaign\n      - MITRE_INTERVAL=7   # days\n    restart: always\n```\n```bash\ndocker compose up -d connector-mitre\n```\n\n### Step 8: Query the graph and export an actor profile\nRead back the adversary's full picture for reporting and detection engineering.\n```python\n# Resolve all techniques an intrusion set uses\niset = opencti.intrusion_set.read(filters={\n    \"mode\": \"and\",\n    \"filters\": [{\"key\": \"name\", \"values\": [\"EXAMPLE-SET\"]}],\n    \"filterGroups\": [],\n})\n\nrels = opencti.stix_core_relationship.list(\n    fromId=iset[\"id\"],\n    relationship_type=\"uses\",\n)\nfor r in rels:\n    print(r[\"to\"][\"name\"], r[\"to\"].get(\"x_mitre_id\"))\n```\n\n## Tools and Resources\n\n| Tool | Purpose | Source |\n|------|---------|--------|\n| OpenCTI Platform | STIX 2.1 threat-intel knowledge graph | https:\u002F\u002Fgithub.com\u002FOpenCTI-Platform\u002Fopencti |\n| OpenCTI Docker | Reference compose stack | https:\u002F\u002Fgithub.com\u002FOpenCTI-Platform\u002Fdocker |\n| pycti | Official Python client for the GraphQL API | https:\u002F\u002Fgithub.com\u002FOpenCTI-Platform\u002Fclient-python |\n| OpenCTI Connectors | Importers (MITRE, MISP, OTX, CISA, abuse.ch) | https:\u002F\u002Fgithub.com\u002FOpenCTI-Platform\u002Fconnectors |\n| OpenCTI docs | Official documentation | https:\u002F\u002Fdocs.opencti.io\u002Flatest\u002F |\n| STIX 2.1 spec | Underlying data model | https:\u002F\u002Foasis-open.github.io\u002Fcti-documentation\u002F |\n\n## STIX Object Cheat Sheet (pycti entities)\n\n| pycti entity | STIX type | Use |\n|--------------|-----------|-----|\n| `threat_actor_group` | threat-actor | Named adversary group |\n| `intrusion_set` | intrusion-set | Clustered activity \u002F tracked set |\n| `campaign` | campaign | Time-bounded operation |\n| `attack_pattern` | attack-pattern | MITRE ATT&CK technique |\n| `malware` | malware | Tooling\u002Fimplant |\n| `indicator` | indicator | Detection pattern (STIX\u002FSigma\u002FYARA) |\n| `vulnerability` | vulnerability | CVE |\n| `stix_core_relationship` | relationship | `uses`, `attributed-to`, `targets`, `indicates` |\n\n## Validation Criteria\n\n- [ ] OpenCTI platform and workers deployed and reachable at the base URL\n- [ ] pycti authenticates with a valid API token\n- [ ] Threat Actor, Intrusion Set, Campaign, and Attack Pattern objects created\n- [ ] Relationships (`attributed-to`, `uses`, `indicates`) built between objects\n- [ ] At least one indicator created and linked to an intrusion set\n- [ ] A STIX 2.1 bundle ingested via `import_bundle_from_json`\n- [ ] MITRE ATT&CK connector enabled and importing techniques\n- [ ] Intrusion-set TTP profile queryable and exportable\n",{"name":5,"tags":24,"author":33,"domain":34,"license":14,"version":35,"nist_csf":36,"subdomain":26,"description":7,"mitre_attack":38},[25,26,27,28,29,30,31,32],"opencti","threat-intelligence","stix2","pycti","knowledge-graph","threat-modeling","mitre-attack","cti","mahipal","cybersecurity","1.0",[37],"ID.RA-03",[39],"T1589","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fmodeling-threats-with-opencti","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill modeling-threats-with-opencti",{"tool":52,"command":53},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill modeling-threats-with-opencti",{"tool":55,"command":56},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill modeling-threats-with-opencti","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fmodeling-threats-with-opencti\u002FSKILL.md",true,[60,64,70,74],{"path":61,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fapi-reference.md","REFERENCE","参考文档",3152,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fmodeling-threats-with-opencti\u002Freferences\u002Fapi-reference.md",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fstandards.md",1135,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fmodeling-threats-with-opencti\u002Freferences\u002Fstandards.md",{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Fagent.py","SCRIPT","脚本",5135,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fmodeling-threats-with-opencti\u002Fscripts\u002Fagent.py",[81,89,96,103,110,117],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"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":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"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":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"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":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"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":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"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":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":85,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"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",[],[]]