Follow the same case into OpenCTI
The official MISP Connector imports the fictional phishing Event from MISP 2.5.53 into OpenCTI 7.261124.0. Both stacks run in separate local Compose projects using the handbook’s fictional dataset and reserved values.
The exercise covers MISP to OpenCTI. Decide which source Events may enter, then review how the destination represents those Events and their detection patterns. Official Connector documentation · OpenCTI Connector handbook
Start two isolated local labs
Use the same local Docker Engine, separate Compose projects, and new volumes for fictional data. See the MISP quickstart and the OpenCTI Docker guide. Choose different loopback ports if another instance already uses the defaults.
Set paths from the directory containing both repositories. Use the same Compose project names throughout the exercise.
MISP_LAB="$PWD/MISP-tutorial/lab"
OCTI_LAB="$PWD/opencti-tutorial/lab"
BRIDGE="$MISP_LAB/opencti-bridge"
COMPOSE_PROJECT_NAME=sectools-bridge-misp python3 "$MISP_LAB/start.py"
python3 "$OCTI_LAB/init-env.py"
(cd "$OCTI_LAB" && docker compose -p sectools-bridge-octi up -d --wait opencti worker)
python3 "$MISP_LAB/verify.py"Reuse the OpenCTI .env if you already initialized this isolated project. The MISP fixture uses a fixed UUID. Preparation applies a dedicated filter tag, creates a Distribution 1 control with the same tag, and issues a read-only key that expires after one hour.
docker network create --internal sectools-misp-opencti
(cd "$MISP_LAB" && docker compose -p sectools-bridge-misp \
-f compose.yaml -f "$BRIDGE/compose.misp.yaml" up -d --wait misp-nginx)
python3 "$BRIDGE/fixture.py" prepare
(cd "$OCTI_LAB" && docker compose -p sectools-bridge-octi \
--env-file .env --env-file "$BRIDGE/.env.bridge" \
-f compose.yaml -f "$BRIDGE/compose.opencti.yaml" run --rm --no-deps -T connector-misp)Reuse the named Docker network if it already belongs to this exercise. Only the Connector and MISP nginx join it. The OpenCTI token belongs to the isolated lab’s administrator. Revoke the short-lived MISP key when the exercise ends.
Compare the source and destination fields
| MISP input | Verified OpenCTI result |
|---|---|
| Published fixed-UUID Event | One Report with an external reference to the source Event. |
login.example and 192.0.2.10 | The Report contains Domain Name and IPv4 Observables. |
The domain’s to_ids=false | This Connector configuration still creates a domain Indicator. Review the destination’s detection eligibility before using an Indicator downstream. |
| Lab tag, TLP, and Galaxy | The lab tag is a Label, the Report has TLP:CLEAR, and the destination has an Attack Pattern named Phishing. Its x_mitre_id field was null, so the name alone does not establish that the T1566 field survived. |
domain-ip and related Event data | The Report contains based-on and related-to relationships. Compare individual edges with the source when necessary. |
| Distribution 1 control with the same tag | The Connector could read it in MISP. The import allowed only Distribution 0, so it created no Report for the control. |
The exercise verifies the Connector’s input filter. OpenCTI uses its own markings, groups, and permissions for destination visibility. A context-only value from MISP can still become an Indicator under the tested settings.

Compare the source Event in MISP · Download the read-back JSON · Download the source fixture generator
Read back the Report and replay with a new Connector identity
python3 "$BRIDGE/check.py" --opencti-env "$OCTI_LAB/.env" --snapshot bridge-first.jsonIf you use a different loopback port for OpenCTI, add --origin with its local HTTP origin. The checker waits for completed Connector work, reads the source reference, objects, relationships, and marking from the Report, and checks that the negative control is absent.
python3 "$BRIDGE/fixture.py" replay
(cd "$OCTI_LAB" && docker compose -p sectools-bridge-octi \
--env-file .env --env-file "$BRIDGE/.env.bridge" \
-f compose.yaml -f "$BRIDGE/compose.opencti.yaml" run --rm --no-deps -T connector-misp)
python3 "$BRIDGE/check.py" --opencti-env "$OCTI_LAB/.env" --compare bridge-first.jsonThe new Connector identity starts with an empty cursor and processes the same fixture again. Comparing the Report and its objects distinguishes a successful replay from a second run that skipped the source.
2026-12-02 Asia/Taipei · arm64 local Docker · synthetic data only
MISP 2.5.53 → official opencti/connector-misp:7.261124.0 → OpenCTI 7.261124.0
Connector image digest: sha256:86dba6295b116f1e5c62ab3ea590898eb99872df0f5a4645b09bcc2988b07365
MISP seed:
PASS MISP read-only key sees published 0 and 1 fixtures with the same lab tag.
Run 1:
PASS official Connector work complete with bundles processed and no errors.
PASS one case Report; level 1 control absent; source reference verified.
PASS domain and IP Observables; IP detection pattern present.
OBSERVED context domain Indicator: True
PASS markings, labels, Attack Patterns, and relationship types read from the Report.
Report STIX ID: report--44398ccf-fa6e-5f37-b980-78950f11d90b
Report objects: 16; Indicator 4; relationships: based-on 4, related-to 2.
Report marking: TLP:CLEAR; label: sectools-opencti-lab.
Attack Pattern: Phishing; x_mitre_id: null.
Run 2, new Connector identity and empty cursor:
PASS official Connector work complete with bundles processed and no errors.
PASS one case Report; level 1 control absent; source reference verified.
PASS domain and IP Observables; IP detection pattern present.
OBSERVED context domain Indicator: True
PASS markings, labels, Attack Patterns, and relationship types read from the Report.
PASS full replay preserved the same Report and object set.
Revoke the training key and keep the exercise data
python3 "$BRIDGE/fixture.py" revokeThis removes the exercise’s temporary MISP key and its local Connector settings file. Pause each Compose project with stop when you want to keep the exercise data.
Your reading progress is saved in this browser.
This browser blocked storage. Reloading may clear this session’s progress.