MISP Handbook
繁中

MISP Docker Lab Evidence and Reproduction Guide

Review the pinned environment and original output, reproduce the checks, and see the boundaries of the verified workflows.

About 4 minLab MISP 2.5.53
In this chapter
After this chapter, you can

Reproduce a lab check and state exactly what its result demonstrates.

What the recorded lab verified

The original tests ran on November 27, 2026 in the Asia/Taipei time zone. The local Docker environment was recreated with clean lab volumes before running the recorded checks. The data is fictional and uses reserved addresses.

Coverage includes bringing up the five services, password and API authentication, event modeling and correlation, publication and detection queries, two formats of import, STIX export, workers and modules, Warninglists, PyMISP and Sightings, local organization visibility, persistence, and a MariaDB-only restore.

Test boundaries

The recorded run was a single instance. Cross-instance synchronization, live external feeds, HTTPS or SSO, cross-version upgrades, and full disaster recovery were outside the run.

Align the environment before comparing results

ComponentTested setup
MISP core and nginx2.5.53 from the official MISP Docker images
misp-modules3.1.6, with 358 modules available
PyMISP3.0.0 in the core image
MariaDB / Valkey10.11.20 / 7.2.16
ArchitectureApple Silicon arm64, with native arm64 images
Docker / ComposeEngine 29.5.2 / Compose 5.6.1
Colima VM4 CPUs, 8 GiB RAM, 40 GiB data disk
Startup73 seconds from a clean start with images cached, and 22 seconds after down/up
Host endpointhttp://localhost:18081, loopback only

See the recorded environment and image digests. Pinning the image label makes the lab practical to reproduce. Use the matching digest and architecture when you need the exact image bytes.

Recorded service health
SERVICE        IMAGE                                          STATUS                        PORTS
db             ghcr.io/mariadb/mariadb:10.11.20               Up About a minute (healthy)   3306/tcp
misp-core      ghcr.io/misp/misp-docker/misp-core:v2.5.53     Up About a minute (healthy)
misp-modules   ghcr.io/misp/misp-docker/misp-modules:v3.1.6   Up About a minute (healthy)
misp-nginx     ghcr.io/misp/misp-docker/misp-nginx:v2.5.53    Up 5 seconds (healthy)        8443/tcp, 127.0.0.1:18081->8080/tcp
redis          ghcr.io/valkey-io/valkey:7.2.16                Up About a minute (healthy)   6379/tcp

Login form, session authentication, and Auth key

The checker follows the login redirect, submits the password with a CSRF token, verifies the session’s role and organization, and requests the version through the API. It keeps the credentials and session value out of the output.

From the lab directory
python3 http-check.py
Recorded HTTP and authentication output
PASS homepage: HTTP 200, unauthenticated visitor redirected to /users/login
PASS administrator password login: accepted with CSRF token; session value hidden
PASS authenticated cookie session: admin / SecTools Lab
PASS API auth key: MISP 2.5.53; perm_sync=True

Write, read back, and rerun

Create and verify the fictional case
python3 verify.py
First run
PASS taxonomies, galaxies + object templates loaded locally; tlp taxonomy enabled
PASS write/read: event + 4 attributes + domain-ip object (created)
PASS context: tlp:clear tag + ATT&CK galaxy cluster Phishing - T1566
PASS correlation: 192.0.2.10 links the case to the follow-up event
PASS rerun: fixed UUID keeps one event
PASS publish + to_ids search: 3 detection-ready attributes; login.example stays context-only
PASS STIX 2.1 export: report + indicator + attack-pattern; objects=25
RESULT {"event_uuid": "99f6f54e-d6ce-5b2a-bea3-bdbf6fda1b87", "follow_up_uuid": "91201a08-fffe-5d52-8548-deba87937598", "stix_objects": 25}
Second run
PASS taxonomies, galaxies + object templates loaded locally; tlp taxonomy enabled
PASS write/read: event + 4 attributes + domain-ip object (reused)
PASS context: tlp:clear tag + ATT&CK galaxy cluster Phishing - T1566
PASS correlation: 192.0.2.10 links the case to the follow-up event
PASS rerun: fixed UUID keeps one event
PASS publish + to_ids search: 3 detection-ready attributes; login.example stays context-only
PASS STIX 2.1 export: report + indicator + attack-pattern; objects=25
RESULT {"event_uuid": "99f6f54e-d6ce-5b2a-bea3-bdbf6fda1b87", "follow_up_uuid": "91201a08-fffe-5d52-8548-deba87937598", "stix_objects": 25}

The two runs show the same Event UUID. The second reuses the Object and still finds one matching Event. The catalogs load from local files supplied by the image.

MISP JSON and STIX 2.1 import

Use the MISP JSON fixture and STIX 2.1 fixture. Each run imports two sample Events using fresh UUIDs, then queries those UUIDs so that earlier data cannot make the check pass.

From the lab directory
python3 import-check.py
Recorded import output
PASS MISP JSON import: new event ee1e116d… with 2 attributes + tlp:clear
PASS STIX 2.1 import: report 3ea222cd… became event 4; indicator stix-import.example present
RESULT {"misp_json_event": "ee1e116d-cea0-4be6-9fb9-0b2416f97858", "stix_event": "3ea222cd-af40-4144-b32b-669cb3ecc756"}

Workers, modules, and Warninglists

Enables two module settings and two lists in the lab
python3 modules-check.py
Recorded workers and module output
PASS background workers alive: cache=5, default=5, email=5, prio=5, scheduler=1, update=1
PASS misp-modules reachable from misp-core: 1 enabled module(s) listed
PASS enrichment module round trip: valid rule accepted, broken rule rejected
PASS warninglists: 232 shipped, 0 enabled before this run; after enabling RFC 5735 + RFC 6761, both training values are flagged as reserved

An offline YARA syntax check verifies round-trip module communication. The exercise also checks that the two enabled lists flag documentation values. Already enabled lists may change the initial count on a subsequent run.

PyMISP query, pagination, and Sighting

Using the client inside misp-core
docker compose exec -T misp-core python3 < pymisp-check.py
Recorded PyMISP output
PASS PyMISP 3.0.0 connected: MISP 2.5.53
PASS get_event by UUID: SecTools Lab — 釣魚事件建模練習(虛構) (4 attributes, 1 object)
PASS search attributes(ip-dst, to_ids, published, tlp:clear): 2 hit(s)
PASS stable pagination (order=Event.id ASC): pages = [2, 2, 2, 0], no overlap
PASS sighting recorded on 192.0.2.10: total sightings = 1

The script adds one Sighting for 192.0.2.10 each time. Import runs also change the number of available Events, so compare the behavior rather than expecting identical counts.

Local visibility for a second organization

Run after verify.py
python3 sharing-check.py
Recorded Distribution and edit checks
PASS partner org + User-role account ready: SecTools Partner Lab (local), role_id=3
PASS sharing group ready: SecTools Lab Trust Circle (SecTools Lab + partner)
PASS partner visibility — your organisation only (0): hidden
PASS partner visibility — this community only (1): visible
PASS partner visibility — sharing group (4): visible
PASS partner can read the community event but cannot edit it; temporary key deleted

The partner sees the community Event and the Sharing Group Event. The organization-only Event is hidden. The partner cannot edit the community Event. Both organizations are on one instance.

Read existing data after recreating containers

This interrupts the local lab. The plain down command below retains named volumes. The read-only check fails if the expected Event has disappeared.

Recreate containers and retain named volumes
docker compose down
docker compose up -d --wait --wait-timeout 900
python3 persistence-check.py
Recorded persistence output
PASS persisted after rebuild: event 99f6f54e…, 4 attributes, tags, galaxy, correlation

Restore a MariaDB dump into a new database

Restores into a separate lab database
python3 backup-drill.py
Recorded backup and restore output
PASS dump: /backups/misp-20261127T105834Z.sql.gz (119322944 bytes, --single-transaction)
PASS restore: dump loaded into new database misp_restore_drill
PASS row counts match: events=6, attributes=14, objects=2, tags=84, organisations=2, correlation_values=1
PASS restored training event found by UUID: 99f6f54e…

The test matches key table counts and finds the original training Event by UUID. A full recovery exercise also needs attachments, configuration, GPG material, secrets, and the restarted application.

What changed during testing

  • The nginx probe switched from unavailable wget to image-provided curl.
  • TLP tags had to be initialized after enabling the taxonomy.
  • HTTP 200 alone was insufficient. A write can return saved: false or errors.
  • Object Templates had to be loaded and the Object Attribute flags set deliberately.
  • Warninglists had to be enabled before the expected matches appeared.
  • Stable pagination needed an explicit sort order.
  • The read/edit permission check was changed to avoid producing unrelated Events.

Download the fixtures and scripts

Use docker compose stop when taking a break. If using the dedicated VM, you can stop it with colima stop --profile misp-tutorial.

Screenshots from the local instance

On December 2, 2026, the lab was restarted and its health, password login, and API version were checked again. The screenshots show the original interface and fictional training event.

See the screenshot provenance and hashes.

Handbook release history

v1.3.0 · 2026-12-02

Added one-command deployment, a MISP to OpenCTI connector lab, and an isolated 3.0 database migration and 2.5 restore rehearsal. Quickstart · Connector results · Migration evidence

v1.2.0 · 2026-12-02

Added the English edition, matching language links, site planning credit, privacy and disclaimer pages, and licensing for original teaching content and software.

v1.1.0 · 2026-12-02

Redesigned the handbook, introduced section-level search, reading progress, interactive Event and Distribution examples, an official reference index, and local screenshots.

v1.0.0 · 2026-11-27

Published the first 14 chapters in Traditional Chinese with the pinned MISP 2.5.53 lab and original evidence.

The handbook version tracks editorial and website changes. The MISP version identifies the software used in the lab.

Search the handbook