You are reading the documentation of OpenCTI 7.260811 LTS · 7.260811.0-lts.1, supported until 2027-09.Latest is 7.261119.0 →
Concept

The XTM stack: modules and shared services

How the XTM stack is built around XTM One, which shared service each module uses, and how the modules connect to each other.

All modulesFor platform engineers and evaluators

The XTM platform runs as one stack. XTM One is at its center. OpenCTI, OpenAEV, OpenCRQ, their default integrations and XTM Composer always start with it, and all of them share one set of backing services: Elasticsearch, RabbitMQ, Redis, S3 storage and PostgreSQL. This page explains what each part is, which shared service each module uses and how the modules talk to each other, as the official Docker deployment, FiligranHQ/xtm-docker, defines them. How each module works inside is on its own architecture page.

What the stack is made of

PartWhat it isIn xtm-docker
ModulesThe XTM applications: XTM One, OpenCTI, OpenAEV, OpenCRQ, XTM Composer and the default integrationsOne Compose file per module, in modules/. Every module always starts
Shared servicesThe search engine, queue, cache, file storage and database the modules keep their data inOne instance of each, one Compose file per service, in infra/
Init jobsShort tasks that prepare something for a module, then stop or waitxtm-one-db-init, opencrq-db-init, opencrq-bucket-init and rsa-key-generator

The modules

XTM One

The AI layer at the center of the platform. It runs as two services: xtm-one, the web application and its API, and xtm-one-worker, which runs the background work. Before XTM One starts, the xtm-one-db-init job creates its PostgreSQL role, its xtm_one database and the pgvector extension. XTM One images are published for linux/amd64 only. See XTM One.

OpenCTI

The threat intelligence platform. It runs as the opencti service and the worker service, with three worker replicas in xtm-docker. Its default connectors run with it. How the platform, its workers and its connectors work together is in OpenCTI architecture.

OpenAEV

The exposure validation platform, as the openaev service. Its default collectors and injectors run with it. How the platform, its agents and its integrations work together is in OpenAEV architecture.

OpenCRQ

The cyber risk quantification platform, as the opencrq service. Its image is filigran/opencrq: see What xtm-docker runs for OpenCRQ. Before it starts, the opencrq-db-init job creates its PostgreSQL role, which is not a superuser, and the opencrq database that role owns, and the opencrq-bucket-init job creates its bucket. It reads threats from OpenCTI and validation results from OpenAEV, and registers with XTM One, without which it does not start. Inside the container, a process manager supervises an http process, for the interface and the API, and a worker process, for the background jobs and the connectors, or a single main process in the monolith profile. It answers the health check for all of them, and reports unhealthy when one stops sending heartbeats for PROCESS_MANAGER__HEARTBEAT_TIMEOUT; its Prometheus endpoint merges the metrics of every process. How they work together is in OpenCRQ architecture.

XTM Composer

XTM Composer deploys and runs integrations from the interface of OpenCTI and OpenAEV. It manages the integrations of both platforms, and starts once they are healthy. It starts integration containers through the Docker socket of the host, on the network of the stack. Before it starts, the rsa-key-generator job creates the RSA key it encrypts the integrations' configurations with. See XTM Composer.

The shared services

Shared serviceCompose serviceWhat it holdsCompose file
ElasticsearchelasticsearchThe knowledge of OpenCTI and OpenAEV, and its search indicesinfra/elasticsearch.yml
RabbitMQrabbitmqThe queues between the platforms, their workers and their integrationsinfra/rabbitmq.yml
RedisredisCache, sessions and live eventsinfra/redis.yml
S3 storage (RustFS)minioFiles, imports and exportsinfra/rustfs.yml
PostgreSQL with pgvectorpgsqlThe databases of OpenAEV, OpenCRQ and XTM Oneinfra/postgresql.yml

Every shared service starts with the stack. Each module waits until the shared services it depends on are healthy before it starts.

Which module uses which service

ModuleElasticsearchRabbitMQRedisS3 storagePostgreSQL
XTM OneNoNoYesYes, bucket xtm-one-filesYes, database xtm_one
OpenCTIYesYesYesYes, bucket opencti-bucketNo
OpenAEVYesYesNoYes, bucket openaevYes, database openaev
OpenCRQNoNoNoYes, bucket opencrqYes, database opencrq
XTM ComposerNoNoNoNoNo
Default integrationsNoConnectors and injectorsNoNoNo

One instance of each service is enough because each module keeps to its own data. OpenCTI and OpenAEV write Elasticsearch indices under their own prefix, opencti and openaev by default. Each module has its own bucket. OpenAEV and XTM One each have their own database, and XTM One connects with its own role, which is not the PostgreSQL superuser.

Two rules surprise people:

  • XTM Composer uses no shared service. It talks to the APIs of OpenCTI and OpenAEV, and to Docker.
  • By default, OpenCTI connectors and OpenAEV injectors connect to RabbitMQ, although nothing in their configuration names it. They use the connection details their platform gives them when they register, so they must be able to reach RabbitMQ under the host name the platform knows it by.

How the modules connect

  1. Default integrations → OpenCTI: platform API
  2. Default integrations → OpenAEV: platform API
  3. XTM Composer → OpenCTI: manages integrations
  4. XTM Composer → OpenAEV: manages integrations
  5. OpenCTI ↔ OpenAEV: API calls
  6. OpenCTI ↔ XTM One: registers
  7. OpenAEV ↔ XTM One: registers
  8. OpenCRQ ↔ XTM One: registers
XTM One is at the center of the stack, OpenCTI, OpenAEV and OpenCRQ connect to it, and the integrations go through the platforms
  • OpenCTI, OpenAEV and OpenCRQ register with XTM One, and XTM One calls their APIs. They all share one secret, PLATFORM_REGISTRATION_TOKEN: every platform connected to the same XTM One must use the same value.
  • OpenCTI and OpenAEV call each other's API, each with the admin token of the other.
  • OpenCRQ reads OpenCTI and OpenAEV through its connectors, set with their admin tokens for its Default tenant.
  • XTM Composer manages the integrations of both platforms through their APIs, with their admin tokens.
  • The default integrations talk to their platform: OpenCTI connectors to OpenCTI, OpenAEV collectors and injectors to OpenAEV.

Inside the stack, the modules reach each other by service name, such as http://opencti:8080. Browsers reach them on public URLs built from .env. Network and ports lists every address, port and token.

What's next

NextWhat each XTM module brings
Deploy
Install, configure, secure, scale and upgrade the platform.

Published

Overview
Run the XTM platform locally
OverviewDeploy with an AI agent