Pairing MISP with OpenCTI
How to wire your MISP instance into OpenCTI so events flow in as STIX objects, enriching the knowledge graph without any copy-paste.
Once you have OpenCTI and MISP running side by side, the next natural step is to wire them together. OpenCTI becomes your knowledge graph, MISP becomes a feed into it, and you stop doing manual lookups across two tabs.
This is the step-by-step pairing guide.
What “pairing” actually means
The OpenCTI MISP connector is a one-way importer. It polls your MISP REST API for events, converts each event’s attributes and objects into STIX 2.1 entities (indicators, observables, relationships, tags), and writes them into OpenCTI’s knowledge graph. In OpenCTI you then see MISP events as Reports and their attributes as Indicators / Observables linked to threat actors, techniques, and malware.
Nothing flows back from OpenCTI to MISP by default. If you want that direction, you’d run MISP’s own import tooling separately.
Prerequisites
- MISP reachable from the host running your OpenCTI stack (same LAN, same Docker network, or over HTTPS).
- OpenCTI up and healthy (admin login works, workers are running).
- A MISP user with API access and permission to read every event you want imported.
1. Create a dedicated MISP user for OpenCTI
Don’t reuse the admin key. In MISP:
- Administration → Add User.
- Role: User (or Sync User if you have one configured).
- Tick Auto-generate authkey. Save.
- Open the new user, copy the Auth key — you’ll paste it into OpenCTI next.
A dedicated user lets you revoke the connector’s access later without rotating your own admin key, and the audit log clearly shows what OpenCTI pulled.
2. Enable the MISP connector in OpenCTI
In your OpenCTI stack’s docker-compose.yml, find the connector-misp block. It’s commented out by default. Uncomment it and fill in:
connector-misp:
image: opencti/connector-misp:6.2.0 # match your OpenCTI version
environment:
- OPENCTI_URL=http://opencti:8080
- OPENCTI_TOKEN=${OPENCTI_ADMIN_TOKEN}
- CONNECTOR_ID=<generate-a-fresh-uuid>
- CONNECTOR_TYPE=EXTERNAL_IMPORT
- CONNECTOR_NAME=MISP
- CONNECTOR_SCOPE=misp
- CONNECTOR_CONFIDENCE_LEVEL=80
- CONNECTOR_UPDATE_EXISTING_DATA=true
- CONNECTOR_LOG_LEVEL=info
- MISP_URL=https://misp.yourdomain.com
- MISP_REFERENCE_URL=
- MISP_KEY=<the-auth-key-from-step-1>
- MISP_SSL_VERIFY=True
- MISP_DATETIME_ATTRIBUTE=timestamp
- MISP_CREATE_REPORTS=True
- MISP_CREATE_INDICATORS=True
- MISP_CREATE_OBSERVABLES=True
- MISP_CREATE_OBJECT_OBSERVABLES=True
- MISP_REPORT_TYPE=misp-event
- MISP_IMPORT_FROM_DATE=2025-01-01
- MISP_IMPORT_TAGS=
- MISP_IMPORT_TAGS_NOT=
- MISP_INTERVAL=15 # minutes
restart: always
depends_on:
- opencti
Generate a fresh UUID for CONNECTOR_ID with uuidgen and paste it in. Set MISP_IMPORT_FROM_DATE to limit the initial backfill — importing five years of events on first boot can take hours.
If MISP runs with a self-signed cert (common in home labs), set MISP_SSL_VERIFY=False. Don’t ship that to anything production-facing.
3. Start the connector
docker compose up -d connector-misp
Watch the logs:
docker compose logs -f connector-misp
You’re looking for lines like Fetching MISP events since ... and Processed event <id>. If you see an auth error, the MISP key is wrong or the user lacks permission. If you see a connection error, check that the OpenCTI container can reach MISP_URL — docker compose exec connector-misp curl -I $MISP_URL.
4. Verify in OpenCTI
Give it the MISP_INTERVAL you set (default 15 min), then in OpenCTI:
- Analyses → Reports → filter by type
misp-event. Each MISP event you had enabled should appear as a Report. - Observations → Indicators → you’ll see indicators pulled from MISP attributes.
- Click a Report to see the full attribute set as linked entities. This is the payoff — a MISP event becomes an interactive graph instead of a flat list.
5. Tag-based filtering (recommended)
You probably don’t want every MISP event in OpenCTI. Use tags to be selective:
MISP_IMPORT_TAGS=tlp:white,tlp:green— only import events explicitly marked for broad sharing.MISP_IMPORT_TAGS_NOT=workflow:state="incomplete"— skip events still being drafted.
Restart the connector after changing these.
Common gotchas
| Symptom | Cause | Fix |
|---|---|---|
| Nothing imports, no error | MISP_IMPORT_FROM_DATE is in the future, or no events match the tag filter |
Loosen the filter; set the date back |
SSLCertVerificationError |
MISP has a self-signed cert | MISP_SSL_VERIFY=False (dev only), or import the CA into the connector image |
| Duplicate reports on re-run | CONNECTOR_UPDATE_EXISTING_DATA=false |
Set it to true — OpenCTI will update instead of duplicate |
| Connector crashes on startup | Version mismatch between connector and OpenCTI core | Pin the connector image tag to your OpenCTI version |
What to do with the paired setup
Once events flow in, the useful patterns are:
- Pivot from a MISP indicator to the actor that uses it — click the indicator in OpenCTI, follow the relationship to the threat actor, see every other IOC that actor is associated with across all your other feeds.
- Enrich MISP events with MITRE — if you have the MITRE connector running too, techniques referenced in a MISP event auto-link to full ATT&CK pages.
- Export filtered STIX bundles for your SIEM — OpenCTI can slice the graph by actor, time window, or tag and dump STIX for ingestion elsewhere.
That’s the pairing. Two platforms, one connector, and a graph that keeps getting richer as both sides are fed.