OpenCTI Hands-on Handbook繁中

OpenCTI Intelligence Connectors: CISA KEV, ATT&CK and CAPEC

Connect official CISA KEV, Enterprise and ICS ATT&CK, and CAPEC using Docker. Verify imports, replay stability and failure recovery with commands, screenshots and troubleshooting.

Handbook v1.10.1OpenCTI 7.261124.0About 28 minutes

Give the platform useful data, and give every record a traceable source.

Starting OpenCTI is only the beginning. The real work starts here: choosing trustworthy sources, establishing an update process, and bringing vulnerabilities, techniques, software, and behavioral context together while keeping the original material available for checking. This chapter uses real public intelligence, separately from the fictional examples used earlier to practice permissions and forms.

We start with two complementary sources: CISA KEV answers which vulnerabilities are known to have been exploited; MITRE ATT&CK describes attack techniques, known activity, and their relationships. Neither proves that your organization has been compromised, nor establishes that a particular product version is affected. First make the sources available and searchable, then compare them with your own assets and incident data.

Scope of this lab

OpenCTI Community Edition 7.261124.0, official connectors, and the existing Docker lab. Public sources were actually downloaded and ingested through the queue and Worker. We begin with CISA and MITRE, which require no API key, and also explain IOC sources that require an account or license. The verification records in each section define what was actually tested.

Choose the question before choosing the source.

SourcePurposeIntegration and scope here
CISA KEVKnown exploited vulnerabilities, affected product names, and vendor contextOfficial CISA Connector; actual import of the official public catalog, without an API key
MITRE ATT&CKTechniques, intrusion sets, malware, mitigations, and source relationshipsOfficial MITRE Connector; pinned Enterprise 19.1 data for reproducibility
ThreatFoxIOCs associated with malware activity, with dates and sourcesRequires an Auth-Key; not connected in this chapter. Configuration without credentials is not presented as a completed integration
URLhausMalware distribution URLs and their statusAPI/data exports require an Auth-Key; not connected in this chapter
OpenPhish CommunityA limited phishing-URL feedThe provider lists 12-hour updates and noncommercial use only; listed as an option, not imported here
An existing MISP platformEvents and attributes shared by an organizationRequires a real server, API key, and permission to share; this chapter does not claim a completed cross-platform integration

Publicly accessible data, a free community plan, and an open license are different conditions. Design each integration around the source's permitted uses, update frequency, and redistribution rules. Preserve attribution and applicable terms when forwarding or reusing data. See the official CISA data mirror, MITRE data and tools, ThreatFox API, URLhaus API and OpenPhish plan details. Source conditions were checked on November 29, 2026.

Share the platform; start sources separately.

  1. Complete the Docker deployment first and confirm that OpenCTI, RabbitMQ, and the Worker are available. Run the commands below from the repository root. This lab uses the colima-opencti-tutorial context; substitute your own context on another host.

  2. Reuse the existing platform connection and encryption settings in lab/.env. Do not regenerate the entire file just to add a connector, and never paste a real token into a webpage or Git.

  3. Download or inspect the CISA Compose and MITRE Compose. These add source services without changing the original eight base services. Each has a fixed, distinct Connector ID. Keep that ID when restarting the same connector; generate a new UUID only when deploying a separate instance.

  4. Finish one source before adding another. A completed download is not a completed import: verify Connector Works, processed counts, errors, and retrieved objects together.

This local lab reuses the administrator token to reproduce the existing environment. Production deployments should give each source a dedicated service account, with capabilities and maximum confidence appropriate to that connector. The minimum permission combination was not tested here; do not adopt administrator access as the production default. A version-specific issue affected automatic service-account creation for MITRE; its verification record retains the diagnosis.

CISA KEV: connect the real Known Exploited Vulnerabilities catalog.

This run fetches official JSON directly from CISA's own GitHub mirror, without third-party repackaging. The main website returned HTTP 403 during the check, so we used the reachable official mirror; this does not mean CISA's primary download endpoint fails in every environment. TLS verification remains enabled. Do not disable it to work around a connection problem.

SettingValue used and rationale
Imageopencti/connector-cisa-known-exploited-vulnerabilities:7.261124.0
Platform URLhttp://opencti:8080, the service name inside the container network
Sourcehttps://raw.githubusercontent.com/cisagov/kev-data/develop/known_exploited_vulnerabilities.json
CONNECTOR_DURATION_PERIODP1D; daily polling is configured, but the container is stopped after the experiment
CISA_KEV_FLAG_ONLYfalse, importing vulnerabilities and related software and vendors
CISA_CREATE_INFRASTRUCTURESfalse, avoiding the blanket creation of infrastructure objects for software products
CISA_TLPTLP:CLEAR
Start the official CISA Connector
docker --context colima-opencti-tutorial compose \
  -f lab/compose.yaml -f lab/compose.cisa.yaml \
  up -d --no-deps connector-cisa

docker --context colima-opencti-tutorial compose \
  -f lab/compose.yaml -f lab/compose.cisa.yaml \
  logs --tail 30 connector-cisa
  1. In Integrations, find SecTools Lab - CISA KEV official. Confirm that its name matches this source. A successful, unrelated STIX Import work is not evidence for this import.

  2. Open Works and wait for this work to complete. The tested catalog version 2026.11.27 contains 1,808 CVEs, with a completed work count of 10,848/10,848 and no errors. The processed total includes identities, software, relationships, and repeated references; it does not mean 10,848 unique vulnerabilities.

  3. Go to Arsenal → Vulnerabilities and search for CVE-2026-120705. Check the CISA KEV flag, author, and description. The source author is the full name Cybersecurity and Infrastructure Security Agency; Creators identifies the account that performed the import. These fields have different meanings.

  4. Open the related Software and confirm that GeoServer has a has relationship with this vulnerability. Also sample the middle and end of the catalog, rather than checking only its first successful record.

The version-pinned official configuration and field mapping explain full mode and KEV flag-only mode. Flag-only mode suits environments with another vulnerability source, but it may still create a missing CVE with only a name and flag. It is not an update-existing-records-only mode.

OpenCTI shows CVE-2026-120705 with CISA KEV Yes, the CISA author, and TLP:CLEAR. EPSS and CVSS have no values yet.Enlarge image
A real imported CISA KEV vulnerabilityCVE-2026-120705 was imported by the official connector. KEV is Yes; empty EPSS, CVSS, and other fields are shown honestly and do not imply zero risk.Actual local screenshot · OpenCTI 7.261124.0 · 2026-11-29

Reconcile source counts, flags, relationships, and versions.

Read-only verification of every CVE and sampled fields
docker --context colima-opencti-tutorial compose -f lab/compose.yaml \
  exec -T worker python < lab/cisa-check.py

The verification script downloads the official catalog and calculates its SHA-256, waits for the Worker, paginates through all KEV vulnerabilities in the platform, and compares the complete source CVE set. All 1,808 existed with the flag set to true. It then checked the source description, author, TLP, and software relationships for three samples from the beginning, middle, and end. Matching totals alone were not treated as proof that the content was correct. The source-version record also lists the corresponding official commit and pinned URL. The pinned file was verified to match the live download byte for byte, allowing this source snapshot to be reproduced later.

Observed limitation: The three sampled vulnerabilities had no External references. This connector version did not populate the source links we needed. Do not assume that remediation requirements, deadlines, or all other KEV fields are fully mapped either. Return to the original CISA record and vendor advisory for remediation guidance; an empty field does not mean no risk.

Add a separate source-verification report
docker --context colima-opencti-tutorial compose -f lab/compose.yaml \
  exec -T worker python < lab/cisa-provenance.py

This script creates CISA KEV source verification / 2026.11.27, authored by the tutorial verifier, retaining the official URL, catalog version, source date, hash, and three real samples. It is not a CISA report and does not rewrite the source vulnerabilities. Reopen its External references and included objects to trace the verification back to the source.

Expand the complete CISA test record and initial troubleshooting
Real source → Connector → Worker → main knowledge base
Initial verification: all catalog CVEs imported; author assertion incorrectly expected the acronym CISA instead of the full agency name.
CISA KEV real-source verification 2026-11-29T12:13:59.786509+00:00
SOURCE {"url": "https://raw.githubusercontent.com/cisagov/kev-data/develop/known_exploited_vulnerabilities.json", "catalogVersion": "2026.11.27", "dateReleased": "2026-11-27T18:03:12.5733Z", "count": 1808, "sha256": "05be4bfcfd70004c57756f02231e308e4273cd0c0ae513695c91bf45de483b3d"}
WAIT work [{"id": "work_8c9c7f11-9100-46aa-8d3d-06fd9289e7f1_2026-11-29T12:12:40.262Z", "status": "progress", "completed_number": 0, "errors": [], "tracking": {"import_expected_number": 10848, "import_processed_number": 3230}}]
WAIT work [{"id": "work_8c9c7f11-9100-46aa-8d3d-06fd9289e7f1_2026-11-29T12:12:40.262Z", "status": "progress", "completed_number": 0, "errors": [], "tracking": {"import_expected_number": 10848, "import_processed_number": 4118}}]
WAIT work [{"id": "work_8c9c7f11-9100-46aa-8d3d-06fd9289e7f1_2026-11-29T12:12:40.262Z", "status": "progress", "completed_number": 0, "errors": [], "tracking": {"import_expected_number": 10848, "import_processed_number": 4964}}]
WAIT work [{"id": "work_8c9c7f11-9100-46aa-8d3d-06fd9289e7f1_2026-11-29T12:12:40.262Z", "status": "progress", "completed_number": 0, "errors": [], "tracking": {"import_expected_number": 10848, "import_processed_number": 6033}}]
WAIT work [{"id": "work_8c9c7f11-9100-46aa-8d3d-06fd9289e7f1_2026-11-29T12:12:40.262Z", "status": "progress", "completed_number": 0, "errors": [], "tracking": {"import_expected_number": 10848, "import_processed_number": 7217}}]
WAIT work [{"id": "work_8c9c7f11-9100-46aa-8d3d-06fd9289e7f1_2026-11-29T12:12:40.262Z", "status": "progress", "completed_number": 0, "errors": [], "tracking": {"import_expected_number": 10848, "import_processed_number": 8423}}]
WAIT work [{"id": "work_8c9c7f11-9100-46aa-8d3d-06fd9289e7f1_2026-11-29T12:12:40.262Z", "status": "progress", "completed_number": 0, "errors": [], "tracking": {"import_expected_number": 10848, "import_processed_number": 9701}}]
CONNECTOR {"id": "8c9c7f11-9100-46aa-8d3d-06fd9289e7f1", "name": "SecTools Lab - CISA KEV official", "connector_state": "{\"last_update\": \"2026-11-27T18:03:12.5733Z\"}", "works": [{"id": "work_8c9c7f11-9100-46aa-8d3d-06fd9289e7f1_2026-11-29T12:12:40.262Z", "status": "complete", "completed_number": 10848, "errors": [], "tracking": {"import_expected_number": 10848, "import_processed_number": 10848}}]}
PASS all catalog CVEs stored with KEV flag {"source": 1808, "matched": 1808, "total_kev_in_platform": 1808}
Traceback (most recent call last):
  File "<stdin>", line 87, in <module>
AssertionError: Missing CISA attribution

Corrected read-only verification follows; no data was altered to satisfy the assertion.
CISA KEV real-source verification 2026-11-29T12:17:10.436629+00:00
SOURCE {"url": "https://raw.githubusercontent.com/cisagov/kev-data/develop/known_exploited_vulnerabilities.json", "catalogVersion": "2026.11.27", "dateReleased": "2026-11-27T18:03:12.5733Z", "count": 1808, "sha256": "05be4bfcfd70004c57756f02231e308e4273cd0c0ae513695c91bf45de483b3d"}
CONNECTOR {"id": "8c9c7f11-9100-46aa-8d3d-06fd9289e7f1", "name": "SecTools Lab - CISA KEV official", "connector_state": "{\"last_update\": \"2026-11-27T18:03:12.5733Z\"}", "works": [{"id": "work_8c9c7f11-9100-46aa-8d3d-06fd9289e7f1_2026-11-29T12:12:40.262Z", "status": "complete", "completed_number": 10848, "errors": [], "tracking": {"import_expected_number": 10848, "import_processed_number": 10848}}]}
PASS all catalog CVEs stored with KEV flag {"source": 1808, "matched": 1808, "total_kev_in_platform": 1808}
PASS sample fields and software relationship {"id": "126a2f32-2d14-498d-b5c7-e0750289c77d", "standard_id": "vulnerability--b516c925-af57-582b-a62b-b2c857b4c0c5", "name": "CVE-2026-120705", "description": "OsGeo GeoServer contains an XML injection vulnerability that allows an unauthenticated remote attacker to cause the server to read local text files accessible to the GeoServer process or fetch attacker-specified HTTP or HTTPS URLs via a crafted ID parameter in the WFS 2.0 GetFeatureById stored query. This vulnerability can be chained with CVE-2026-129244, CVE-2026-129243, CVE-2026-129245, and CVE-2026-129242 to achieve unauthenticated remote code execution on an affected GeoServer instance.", "x_opencti_cisa_kev": true, "createdBy": {"name": "Cybersecurity and Infrastructure Security Agency"}, "objectMarking": [{"definition": "TLP:CLEAR"}], "externalReferences": {"edges": []}, "softwares": {"edges": [{"node": {"id": "b61f53d4-e951-4464-beeb-b0f8becd35b5", "observable_value": "GeoServer"}}]}}
PASS sample fields and software relationship {"id": "3ca20a42-07b5-47bc-9187-0829d3fa94b8", "standard_id": "vulnerability--4cd067f1-5ae8-5039-abd9-5b9696682905", "name": "CVE-2022-27926", "description": "Synacor Zimbra Collaboration Suite (ZCS) contains a cross-site scripting vulnerability by allowing an endpoint URL to accept parameters without sanitizing.", "x_opencti_cisa_kev": true, "createdBy": {"name": "Cybersecurity and Infrastructure Security Agency"}, "objectMarking": [{"definition": "TLP:CLEAR"}], "externalReferences": {"edges": []}, "softwares": {"edges": [{"node": {"id": "72f239f2-6c1c-4dcc-bf6e-442011b95f2f", "observable_value": "Zimbra Collaboration Suite (ZCS)"}}]}}
PASS sample fields and software relationship {"id": "9d1c7964-b763-42f8-9e6c-8ea31faff838", "standard_id": "vulnerability--ca9e89bd-cd25-59ed-ac7a-971f6525c992", "name": "CVE-2020-29583", "description": "Zyxel firewalls (ATP, USG, VM) and AP Controllers (NXC2500 and NXC5500) contain a use of hard-coded credentials vulnerability in an undocumented account (\"zyfwp\") with an unchangeable password.", "x_opencti_cisa_kev": true, "createdBy": {"name": "Cybersecurity and Infrastructure Security Agency"}, "objectMarking": [{"definition": "TLP:CLEAR"}], "externalReferences": {"edges": []}, "softwares": {"edges": [{"node": {"id": "8e2a19d5-504e-4b02-8cfc-8563a178045c", "observable_value": "Multiple Products"}}]}}
SAMPLE_IDS {"CVE-2026-120705": "126a2f32-2d14-498d-b5c7-e0750289c77d", "CVE-2022-27926": "3ca20a42-07b5-47bc-9187-0829d3fa94b8", "CVE-2020-29583": "9d1c7964-b763-42f8-9e6c-8ea31faff838"}
LIMIT: validates this downloaded catalog and sample relationships; no claim of future updates, all product versions, or automatic remediation priority.
RESULT PASS real CISA catalog -> official Connector -> queue -> Worker -> main knowledge

RESTART EVIDENCE: same connector ID and persisted state; selected official connector log messages
{"timestamp": "2026-11-29T12:18:37.326603Z", "message": "Last CISA KEV catalog version ingested by this connector (from connector state): 2026-11-27T18:03:12.5733Z"}
{"timestamp": "2026-11-29T12:18:37.841595Z", "message": "CISA KEV catalog version served by CISA (dateReleased): 2026-11-27T18:03:12.5733Z, 1808 entries"}
{"timestamp": "2026-11-29T12:18:37.841806Z", "message": "CISA KEV catalog version 2026-11-27T18:03:12.5733Z has already been ingested, nothing to do"}
PASS post-restart: same source hash/version, 1808 catalog CVEs present, three sampled internal IDs unchanged
CONNECTOR {"id": "8c9c7f11-9100-46aa-8d3d-06fd9289e7f1", "name": "SecTools Lab - CISA KEV official", "connector_state": "{\"last_update\": \"2026-11-27T18:03:12.5733Z\"}", "works": [{"id": "work_8c9c7f11-9100-46aa-8d3d-06fd9289e7f1_2026-11-29T12:18:37.334Z", "status": "complete", "completed_number": 1, "errors": [], "tracking": {"import_expected_number": 1, "import_processed_number": 1}}, {"id": "work_8c9c7f11-9100-46aa-8d3d-06fd9289e7f1_2026-11-29T12:12:40.262Z", "status": "complete", "completed_number": 10848, "errors": [], "tracking": {"import_expected_number": 10848, "import_processed_number": 10848}}]}
PASS all catalog CVEs stored with KEV flag {"source": 1808, "matched": 1808, "total_kev_in_platform": 1808}
FOCUSED REVIEW: all three recorded post-restart software observable_value fields equal their exact official source product, via has relationships. Validator strengthened from nonempty relationship to exact product. No mutation or full import rerun.
Expand the source-verification report read-back results
Source report and three references
PASS provenance Report source URL, hash, catalog version and three real imported CVE references
ARTIFACT {"id": "5e6359e3-56ad-44bc-b867-3721deea254f", "name": "CISA KEV source verification / 2026.11.27", "description": "Ingestion verification report authored by the tutorial, not a CISA publication.\nOfficial catalog: https://raw.githubusercontent.com/cisagov/kev-data/develop/known_exploited_vulnerabilities.json\nCatalog version: 2026.11.27\nSource release: 2026-11-27T18:03:12.5733Z\nSource count: 1808\nSHA-256: 05be4bfcfd70004c57756f02231e308e4273cd0c0ae513695c91bf45de483b3d\nThis report links three verification samples only; it does not claim these vulnerabilities affect a particular organization or that all catalog fields were imported.", "createdBy": {"name": "SecTools Tutorial Verification"}, "externalReferences": {"edges": [{"node": {"url": "https://raw.githubusercontent.com/cisagov/kev-data/develop/known_exploited_vulnerabilities.json", "external_id": "2026.11.27"}}]}, "objects": {"edges": [{"node": {"id": "3ca20a42-07b5-47bc-9187-0829d3fa94b8"}}, {"node": {"id": "126a2f32-2d14-498d-b5c7-e0750289c77d"}}, {"node": {"id": "9d1c7964-b763-42f8-9e6c-8ea31faff838"}}]}}
Two CISA Connector works completed: initial 10848/10848 and restart 1/1, both with 0 errors. The Degraded warning about a non-service account remains visible.Enlarge image
Full import and restart against the same catalogThe initial import completed 10,848/10,848. After restart, the unchanged catalog was not resent and the work recorded 1/1. Both had no errors; Degraded still warns that the lab account is not a service account.Actual local screenshot · OpenCTI 7.261124.0 · 2026-11-29
The CISA KEV verification report shows the official URL, version 2026.11.27, 1808 entries, and SHA-256, authored by SecTools Tutorial Verification.Enlarge image
Record source versions and sample evidence in the platformThis is a separate verification report created for the handbook, not CISA's original report. Its Publication date uses the catalog release time for version comparison; Platform creation date records when the verification report was actually written. Do not confuse them.Actual local screenshot · OpenCTI 7.261124.0 · 2026-11-29

MITRE ATT&CK: import techniques and preserve relationship evidence.

ATT&CK is valuable for the relationships among techniques, intrusion sets, software, and mitigations, not just a list of names. This run uses the official MITRE Connector and pins Enterprise ATT&CK 19.1 STIX 2.1 data to an official repository commit. That prevents a different source snapshot from being mistaken for a platform error when readers repeat the lab.

Run a one-time import of pinned Enterprise ATT&CK data
docker --context colima-opencti-tutorial compose \
  -f lab/compose.yaml -f lab/compose.mitre.yaml \
  up -d --no-deps connector-mitre

docker --context colima-opencti-tutorial compose \
  -f lab/compose.yaml -f lab/compose.mitre.yaml \
  logs --tail 30 connector-mitre

In Compose, MITRE_ENTERPRISE_FILE_URL points to the pinned official file. Mobile, ICS, and CAPEC URLs are set to the string false and are not downloaded in this run. CONNECTOR_RUN_AND_TERMINATE=true runs once and exits. A stopped container may therefore be expected; inspect its exit code and Work instead of judging success solely by whether it is still running. Source markings are retained, with a 2 GiB memory limit.

  1. Find this MITRE Connector in Integrations and check the data version, work start time, and processing status.

  2. Go to Techniques → Attack patterns and search by external technique ID, then open a candidate. A matching name is not enough: verify its ATT&CK ID, source author, and external references.

  3. Choose an existing relationship, such as uses, mitigates or subtechnique-of, and follow it from source to target, checking direction, description, and citations. Do not invent links merely to make a graph look complete.

  4. Run the MITRE verification script to verify work completion together with entity and relationship read-back. The detailed scope is in the connector chapter's test record.

Verify the official MITRE import
docker --context colima-opencti-tutorial compose -f lab/compose.yaml \
  exec -T worker python < lab/mitre-check.py

A pinned version supports learning and regression tests, but does not automatically become the next ATT&CK release. For routine operation, establish a separate update process: check the official release, compare added, revoked, and deprecated objects in a test environment, then adjust the source URL and schedule. Revocation, deprecation, import filters, and supported connector types affect counts. The total number of objects in the raw JSON is not the number of techniques shown in the interface.

Turn the data into a private daily dashboard.

Start with two questions: how many KEV-flagged vulnerabilities are available, and which ATT&CK techniques have been imported? Number and List widgets use identical conditions so readers can trace a total to its details. CISA uses the Vulnerability type and x_opencti_cisa_kev = true, with the source author additionally verified for each record. MITRE uses the actual source author and Attack-Pattern type, avoiding fuzzy names that might include fictional tutorial objects.

The dashboard stays private. Placing CISA and MITRE side by side is a reading aid, not a vulnerability-to-technique mapping between the sources. Without asset versions and deployment scope, it does not generate an organizational risk score. Pick a CVE potentially relevant to software you use, check affected conditions in the source, and then decide whether a verification or remediation task is needed.

Create and verify the real-intelligence dashboard
docker --context colima-opencti-tutorial compose -f lab/compose.yaml \
  exec -T \
  -e DASHBOARD_CISA_EXPECTED=1808 \
  -e DASHBOARD_MITRE_AUTHOR_ID=40c66171-b175-415b-a1c1-4785dedbae5e \
  -e DASHBOARD_MITRE_EXPECTED=709 \
  worker python < lab/dashboard-osint.py

The command above is the actual successful command from this run. On your own platform, replace the author ID and expected counts with your own verified results. The MITRE check's sample_technique.createdBy.id is a local author identifier, not a fixed cross-platform value; the CISA catalog also changes. Verify the source set before entering a count, rather than changing numbers just to pass a test. If you imported only CISA, omit the two MITRE parameters to create the two-widget version.

  1. After both source checks pass, run the dashboard script. It creates a private dashboard with a random suffix. Every rerun creates another dashboard; it does not overwrite an existing one.

  2. Open Dashboards → Custom dashboards and find the output's SecTools|公開情資工作台|7f8bbdaff2fe. Your own run will have a different suffix. This run contains one Number and one List widget each for CISA and MITRE.

  3. Check the CISA total of 1,808 and the MITRE total of 709. Number may abbreviate 1,808 as 1.81K; use the query record for the exact value. The 709 techniques were not revoked, but include the source's 12 deprecated techniques, so they must not be described as 709 currently active techniques.

  4. Open objects from the lists and check names, authors, and markings. Lists are sorted by name and show the first ten entries, not the ten most recently added. Save, reload, and confirm that Number, List, and their filters remain consistent.

The API verification retrieved all four CISA pages and both MITRE pages, checking unique IDs, totals, and authors. It then queried again using the saved widget filters and obtained the same results. Finally, a browser check confirmed that all four widgets rendered. The raw verification record retains the complete results.

The 24-hour increase on screen uses platform creation time: it represents this ingestion, not necessarily vulnerabilities or techniques newly published by the source that day. Platform creation time, source publication time, and the date added to KEV are distinct. Relabeling a widget does not make them interchangeable.

The private OpenCTI dashboard shows CISA KEV 1.81K and MITRE 709, above vulnerability and technique lists sorted by name.Enlarge image
A private dashboard with real CISA and MITRE dataCISA's exact total is 1,808; MITRE's is 709, including 12 deprecated techniques. Adjacent widgets do not establish vulnerability-to-technique mappings, and their increases are not an organizational risk score.Actual local screenshot · OpenCTI 7.261124.0 · 2026-11-29

Updates, failures, and shutdown: keep sources maintainable.

SymptomCheck firstAction
The container started, but lists remain emptyConnector registration, work submission, and Worker processingTrace source → Connector → queue → Worker → object query; a running container alone is not proof of success
CISA's date is unchanged and restart brings no new dataSource dateReleased and Connector state.last_updateAn unchanged catalog may not be resent. Confirm a real source update instead of repeatedly clearing state to manufacture work
Counts differ from an online descriptionSource version, domain, revoked/deprecated filters, and work completionKeep the original hash and version; compare against the same source snapshot
401, 403, or no data availableKey requirements, rate limits, plan, and source-side access conditionsConfirm the official endpoint and permission, then retry a limited request; keep credentials out of public commands and screenshots
Vulnerabilities exist but CVSS/source references are missingThe connector's actual field mappingsAdd a suitable source or verification report; do not guess missing values
Health still shows DegradedExpand the specific reason, such as the lab account not being a service accountHandle configuration warnings separately from data-delivery failures; successful work does not automatically clear every warning

Define expiry and revocation policies before connecting IOC feeds. ThreatFox currently no longer provides IOCs older than six months through its API/exports, but that does not automatically delete older local objects. Keep source dates and validity periods, distinguishing unavailable-at-source, explicitly revoked, and locally retained data. URLhaus and ThreatFox Auth-Keys do not replace the platform token. Without a key, do not repeatedly send unauthorized requests.

After the lab, stop only the additional source services
docker --context colima-opencti-tutorial compose \
  -f lab/compose.yaml -f lab/compose.cisa.yaml stop connector-cisa

docker --context colima-opencti-tutorial compose \
  -f lab/compose.yaml -f lab/compose.mitre.yaml stop connector-mitre

Stopping a connector does not remove imported intelligence. Keep data and state after the tutorial. Receiving CISA daily requires the platform, Worker, and connector to keep running, with host sleep, service accounts, monitoring, and backups addressed. This chapter verifies the actual import and listed rerun behavior, not guaranteed operation over multiple days.

Next, use the data to answer a real question.

  1. Choose a product you actually use and look for related vulnerabilities in CISA KEV. A name match still requires checking affected versions and deployment conditions.

  2. Put the source advisory, verification date, and unresolved asset conditions in your own Report. Preserve the source author and clearly separate your analysis.

  3. Map to ATT&CK when incident evidence or a report explicitly identifies a technique. Without supporting evidence, leave a question for further investigation.

  4. Make the next action a task: verify a version, check exposure, or read vendor remediation guidance. When you return, assess whether the question was answered, not merely whether the object count increased.

For more intelligence tools, practical perspectives, and tutorials, explore SecTools.tw. Reliable sources and deliverable analysis turn stored data into knowledge you can actually use.

MITRE ATT&CK® ICS and CAPEC: import official data, replay it and recover from a 404.

After Enterprise ATT&CK, you can bring industrial-control techniques and general attack patterns into the same analysis environment. Sharing an environment does not make them one incident. This lab uses the official OpenCTI MITRE connector to import ICS 19.1 and CAPEC 3.9 separately, identify their provenance, verify stored data and diagnose a work item that appears successful despite failing to retrieve its source.

The steps use this handbook's Community Edition lab and OpenCTI 7.261124.0. Two new connector IDs keep these imports separate from the earlier Enterprise ATT&CK and CISA entry points. These IDs belong to this teaching lab; do not reuse them for a different connector connected to the same platform.

1. Understand the snapshots and what each count measures.

Each source is pinned to a Git commit, rather than a moving branch. ICS uses MITRE's official ICS ATT&CK 19.1 snapshot; CAPEC uses MITRE's official CAPEC 3.9 STIX 2.1 snapshot. The checker also verifies the complete file's SHA-256 instead of assuming that an unchanged filename means unchanged content.

SourceRaw objectsAfter revoked/deprecated filteringWork expected/processedAttack patterns individually reconciled
ICS 19.12,1742,152987/987109
CAPEC 3.92,6662,6102,610/2,610559

These four measures are not interchangeable. Filtering removes revoked objects, CAPEC Deprecated entries and relationships pointing to excluded objects. The remaining source can still contain custom types that the connector does not submit to workers in the same way. Work tracking describes this import, not the platform-wide number of newly created objects. This test reconciles all 109 and 559 retained attack patterns by source STIX ID, internal ID, name and external reference, with additional samples for source markings, an ICS tactic and one direct relationship.

Pinned source hashes used by the checker
ICS SHA-256:   a91f659d6d03095e84089630b098edb2ed9d5cd5b1ea41369b27846cd32f2a43
CAPEC SHA-256: ee6244f48259c1963d0507535e1843d67ba08fe58b4dfe351c1b74f9e376fa69

2. Prepare the environment and start two separate connectors.

Complete the one-command startup and sign-in checks, keep the existing lab/.env and confirm that the worker, RabbitMQ and Elasticsearch are healthy. Docker needs access to GitHub's raw-file service. The overlay caps each connector at 2 GiB of memory; that is not the whole platform's requirement or a claim that both containers immediately use their full allowance. If resources are tight, start, wait for and verify one source at a time before treating a resource failure as a source failure.

Run the following commands from the repository root in the same terminal. Confirm that you selected your local lab engine. Set the following variable only for the handbook's dedicated Colima profile; skip it when using Docker Desktop or another already-selected local context.

Only for the dedicated Colima environment
export DOCKER_CONTEXT=colima-opencti-tutorial

Define a shortcut for this terminal session so every subsequent command uses the same Compose files. config --quiet validates configuration without printing expanded secrets.

Define the shortcut and start the connectors
mitre_lab() {
  docker compose --env-file lab/.env \
    -f lab/compose.yaml -f lab/compose.mitre-expanded.yaml "$@"
}
mitre_lab config --quiet
mitre_lab up -d --no-deps connector-mitre-ics connector-mitre-capec
mitre_lab wait connector-mitre-ics connector-mitre-capec
mitre_lab ps -a connector-mitre-ics connector-mitre-capec

--no-deps assumes the core platform is already running. wait waits for connector exit, not for workers to finish importing every object. Both connectors use CONNECTOR_RUN_AND_TERMINATE=true and restart: 'no', so stopping after the run is expected. The verification step is still required.

Both entry points also explicitly set OPENCTI_TLS_REJECT_UNAUTHORIZED=true. In this run, connectors reach http://opencti:8080 on Docker's internal network, so this is not an end-to-end test of platform HTTPS. Downloads from the official HTTPS sources retain certificate verification. Treat these as separate connections.

3. Verify the latest work and source baseline, then read back stored objects.

Run the baseline check below. It retrieves the pinned sources again, verifies their hashes, waits for the latest work to complete, checks expected and processed counts, then paginates through the target attack patterns. It does not create missing source objects to make verification pass. Baseline can read an existing successful work item; it does not force a new one. The replay and recovery checks below require a new work ID. The default worker-processing wait limit is 1,800 seconds per source.

Record the initial verification baseline
mitre_lab exec -T -e SOURCE_LAB_ACTION=baseline worker \
  python - < lab/mitre-expanded-check.py

The final line should be RESULT PASS. The following excerpt comes from the real baseline run on 2026-12-02. Your work IDs and internal UUIDs will differ; compare the source scope and verification results.

Excerpt from the real terminal record
PASS source readback ics {"matched_attack_patterns": 109, "sample_id": "ed5874c8-ecd5-4107-bac2-218c8c8e1d25", "unique_internal_ids": 109, "work_expected": 987, "work_id": "work_76a96260-973f-4a2f-bc16-1d3f8727c7e8_2026-12-02T07:49:53.838Z"}
PASS source readback capec {"matched_attack_patterns": 559, "sample_id": "8e38011e-8a9b-4c74-ac87-e8590fc79f90", "unique_internal_ids": 559, "work_expected": 2610, "work_id": "work_39d2cf16-8725-4b38-870b-5b631fd2b8ab_2026-12-02T07:49:53.837Z"}
RESULT PASS

For sequential imports, name just one service in the startup and wait commands, and add -e SOURCE_LAB_LABEL=ics or -e SOURCE_LAB_LABEL=capec to verification. Finish both sources before replaying them together below. Each baseline stores that source's ID mapping in the worker's /tmp for comparison. This is not a backup and can disappear if the worker container is recreated. If it is lost, rebuild the baseline from a currently successful work item before beginning another replay experiment.

4. Inspect two samples without mistaking a shared name for identity.

  1. Open Integrations → Connectors and find the entries containing MITRE ICS ATT&CK 19.1 and MITRE CAPEC 3.9. Inspect the latest work's timestamp to distinguish a new run from an existing record left after an interval skip.

  2. Under Techniques → Attack patterns, search for Modify Parameter. Open it and check T0836, author The MITRE Corporation, the ICS Impair Process Control tactic and its external reference. Compare MITRE's technique page, remembering that the live page may be newer than this pinned snapshot.

  3. Search for Brute Force, open a candidate and compare the internal ID in its URL with sample_id from this baseline's PASS source readback capec output. The checker has matched that object to the pinned source's STIX ID. Then check External references for source_name=capec, external_id=CAPEC-112 and the original CAPEC-112 entry. Other objects can legitimately cite the same entry, so a name or external identifier alone does not establish identity. In this import, CAPEC-112 has x_mitre_id set to null; looking for its CAPEC identifier in that field would miss it.

  4. CAPEC-112 also retains an external reference with source_name=ATTACK and external_id=T1110. It is a source citation, not ICS T0806 (Brute Force I/O), and does not establish a uses or causal relationship in the platform. Similar names do not justify merging objects or inventing a factual relationship.

For an actual sourced relationship, inspect the verified Stuxnet → uses → Modify Parameter (T0836) link. The checker compares its description, author and original citation, and confirms it is not inferred. Continue with the public-source analysis report exercise to turn source knowledge into an assessment with explicit evidence and limits.

5. Distinguish an interval skip from a genuine replay.

MITRE_INTERVAL=7 sets a seven-day interval; the connector uses its saved last_run to decide whether another run is due. A container that exits after one run does not wake up each day to download data. After import, use the read-only checkpoint to save the latest work IDs, then restart both containers within the interval. Without a state reset, the work IDs should remain unchanged. This observed skip is not a fresh import. The checkpoint neither changes connector state nor replaces the source-ID baseline.

Record the latest work before checking that a restart is skipped
mitre_lab exec -T -e SOURCE_LAB_ACTION=checkpoint worker \
  python - < lab/mitre-expanded-check.py
mitre_lab restart connector-mitre-ics connector-mitre-capec
mitre_lab wait connector-mitre-ics connector-mitre-capec
mitre_lab exec -T -e SOURCE_LAB_ACTION=unchanged worker \
  python - < lab/mitre-expanded-check.py

To replay the same snapshots, first confirm that the previous work has completed, then use the restricted lab reset. It resets only these two teaching connectors' state, without clearing the database or recreating objects. It changes whether the next run is due; do not apply it to a production entry point whose behavior you have not established.

Reset the lab state, replay and compare identifiers
mitre_lab exec -T -e SOURCE_LAB_ACTION=reset worker \
  python - < lab/mitre-expanded-check.py
mitre_lab restart connector-mitre-ics connector-mitre-capec
mitre_lab wait connector-mitre-ics connector-mitre-capec
mitre_lab exec -T -e SOURCE_LAB_ACTION=rerun worker \
  python - < lab/mitre-expanded-check.py

Expect PASS same-batch identity stability: the work IDs must be new, while the same 109/559 source attack patterns retain their internal IDs. This establishes identity stability for this batch of attack patterns, not deduplication of every relationship, every object type or future source version.

6. Recover from a 404: why complete and even 1/1 can be false success.

For this test, the isolated CAPEC entry point deliberately used a nonexistent file. The connector logged HTTP 404 but still exited with code 0, reported success and advanced last_run. Work became complete with no errors and default tracking values of 1/1. This does not mean one intelligence object was imported, and it is not the expected CAPEC 2,610/2,610. The 559 previously imported objects remaining readable does not prove that the new work succeeded.

The following failure exercise is optional. Complete the baseline and previous work first, then add compose.mitre-failure.yaml only for this chapter's isolated CAPEC connector. Do not include this intentionally failing overlay in routine deployment.

Point only the teaching CAPEC connector at a missing source
mitre_lab exec -T -e SOURCE_LAB_ACTION=reset -e SOURCE_LAB_LABEL=capec worker \
  python - < lab/mitre-expanded-check.py
docker compose --env-file lab/.env -f lab/compose.yaml \
  -f lab/compose.mitre-expanded.yaml -f lab/compose.mitre-failure.yaml \
  up -d --no-deps connector-mitre-capec
mitre_lab wait connector-mitre-capec
mitre_lab logs --tail 30 connector-mitre-capec
mitre_lab exec -T -e SOURCE_LAB_ACTION=failure -e SOURCE_LAB_LABEL=capec worker \
  python - < lab/mitre-expanded-check.py

Read the same run's HTTP 404 logs, work ID and failure check together. Passing failure mode means the expected fault was reproduced, not that the source is usable. Normal verification must reject this work. Recovery requires more than removing the bad URL: because last_run advanced, explicitly reset this teaching entry point, then recreate its container using the original two Compose files so the correct environment takes effect.

Restore the source and verify a new successful work item
mitre_lab exec -T -e SOURCE_LAB_ACTION=reset -e SOURCE_LAB_LABEL=capec worker \
  python - < lab/mitre-expanded-check.py
mitre_lab up -d --no-deps --force-recreate connector-mitre-capec
mitre_lab wait connector-mitre-capec
mitre_lab exec -T -e SOURCE_LAB_ACTION=recovery -e SOURCE_LAB_LABEL=capec worker \
  python - < lab/mitre-expanded-check.py

Recovery requires a new work ID, the correct source hash, CAPEC's fixed work count, readback of 559 source objects and the same source-to-internal-ID mapping. If work is incomplete, counts differ or no new work appears, check logs, queues and state. Do not delete data or repeatedly regenerate secrets.

7. Stop the entry points and preserve data and source rights.

Stop only this chapter's two connectors
mitre_lab stop connector-mitre-ics connector-mitre-capec

Stopping does not delete imported intelligence or cancel work already received by workers. Check queue processing before shutting down the core platform. Preserve connector IDs, .env and data volumes, and decide whether your next session needs a restart or a deliberate replay.

The configuration keeps MITRE_REMOVE_STATEMENT_MARKING=false, and the ICS and CAPEC samples retain their original copyright/license statements. Preserve provenance when sharing or exporting, and consult MITRE ATT&CK's usage and branding rules and the CAPEC terms of use. This site's original-article license does not replace third-party data licenses. This tutorial does not imply endorsement by MITRE or OpenCTI.

What does this test establish, and what remains untested?

The scope is this handbook's Community Edition environment, pinned versions and sources: import, individual attack-pattern readback, selected relationships and markings, same-batch replay and the specified 404 scenario. Fixed snapshots are not new daily intelligence. This run does not validate long-term scheduling, future upstream changes, every STIX/custom type or Enterprise Edition features. The raw verification record retains development failures and corrections; use the final passing result for each stage. Further practical guidance and tool notes are maintained by SecTools.tw.

After ingestion: make updates, pauses and recovery repeatable.

Having data today does not make it useful tomorrow. The important operational questions are which source this run actually retrieved, which objects were processed, and where to resume after a failure. Check the source version, work status and stored knowledge separately instead of treating one successful import as permanent health.

  1. Record a baseline for each source.

    Keep the URL, retrieval time, the source's own publication time or version, file hash, valid object identifier set and connector ID. Fixed snapshots support reproduction; ongoing monitoring needs updating sources. Retrieving an old snapshot today does not give it a new publication date. Platform-wide totals alone are not a baseline.

  2. Check the source, connector and worker separately.

    First verify source availability and format, then inspect this connector's current work and state, and finally check worker processing and object readback. A successful HTTP response, a running container and a complete work item describe different layers. None alone proves that every object reached the knowledge base.

  3. Replay the same snapshot.

    Keep a mapping between source identifiers and OpenCTI internal IDs from the first import, then replay the identical snapshot. Confirm that the same objects remain readable without unexpectedly becoming new objects. Claiming that relationships are also deduplicated requires a separate relationship-set comparison. Other feeds can change platform-wide counts.

  4. Pause your own ingestion entry before changing its update policy.

    Stopping one connector prevents its new scheduled work, but workers may still process queued data. Stopping does not delete imported objects or retract intelligence already shared. Preserve configuration, source and state records rather than clearing a checkpoint whose meaning is unclear.

  5. Verify recovery, not just restart.

    After fixing a source or connection problem, verify a new successful work item and reconcile source samples and identifiers. If a checkpoint skips the same version, inspect that connector's state logic first. Reset it only when you understand the replay scope. The lab uses an isolated connector to avoid changing an existing schedule.

Fixed snapshots and ongoing updates serve different purposes.

The fixed-version tests establish replay and recovery from the specific failure tested. They do not establish future data accuracy, daily scheduling, compatibility with future upstream changes or long-term availability. Production still needs regular sampling and alerts.

Start troubleshooting by identifying the failing layer.

SymptomCheck firstVerify after recovery
Source returns 401 or 403Provider permissions, API quota and licensing. Repeated retries do not resolve denied access.Retrieve the required data with the authorized account, without logging credentials.
404, non-JSON response or changed formatWhether the fixed URL still exists or returns an error page. Do not treat an empty file as an empty intelligence feed.Check source version and structure, then a new work item and sample fields.
Work remains pendingWorkers, RabbitMQ, memory and queues. Distinguish work not yet submitted from processing in progress.This run completes and its objects are readable; an old success record is insufficient.
No new work after restartSchedule, run-and-terminate, source publication date and checkpoint.Establish whether a skip is expected or a failure, and retain the evidence.
Counts differ from the sourcePagination, deprecated/revoked records, object types, duplicate IDs and filter scope.Compare ID sets over the same scope and list missing or extra items rather than forcing totals to match.
Every step is worth recording

Finished this chapter?

Mark it when you are ready. Opening or scrolling through a chapter does not complete it automatically. You can undo your choice.

View my progress

Record what you have actually done.

These are self-assessments. This site does not connect to OpenCTI to verify your work or certify your skills.

Progress is saved only in this browser. No account or automatic device sync. Clearing site data also removes progress.

KEEP YOUR CURIOSITY ALIVE

Make sense of intelligence.
Keep exploring real security questions.

Explore incidents, perspectives and tools at SecTools.tw, and find your next question worth investigating.

SecTools.tw

Search the handbook