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

Deploy the XTM platform

Run OpenCTI, OpenAEV, OpenCRQ and XTM One side by side behind your reverse proxy, registered with each other around XTM One, sharing one license, and watched.

XTM OneOpenCTIOpenAEVOpenCRQFor platform engineers and administrators

At the end of this journey, OpenCTI, OpenAEV, OpenCRQ and XTM One run on one host with the official Docker deployment, FiligranHQ/xtm-docker, behind your reverse proxy over HTTPS. Each platform has registered with XTM One with the same secret, XTM One works with their data as the person who asks, one Filigran license gives the platform its Enterprise Edition, and you know which endpoints and logs tell you it is healthy. A platform engineer drives it; an administrator takes over each platform once it answers. The steps below are the pages to follow, in order.

  1. Architecture and host → Stack running: modules and host
  2. Stack running → XTM One usable: public URL
  3. Stack running → OpenCRQ signed in: database and bucket
  4. XTM One usable → Platforms registered: registrations
  5. OpenCRQ signed in → Platforms registered: registration
  6. Platforms registered → Stack watched: one license
  7. Stack watched → Stack upgraded: maintenance window
The stack is planned, installed on one host with OpenCRQ, connected around XTM One, then watched and upgraded

Who takes part

  • Platform engineers plan the stack, prepare the host, install the modules, connect them, set the configuration of XTM One, monitor it and upgrade the stack (steps 1 to 9).
  • Administrators sign in first with the admin accounts of .env, add the language model and the license in XTM One (step 4), sign in to OpenCRQ through XTM One as its super administrator (step 5), then hand access to the teams.

Why it spans several modules

The modules are built to run as one stack, with XTM One at its center:

  • Shared services. OpenCTI, OpenAEV, XTM One and OpenCRQ keep their data in one set of backing services: Elasticsearch, RabbitMQ, Redis, S3 storage (RustFS) and PostgreSQL with pgvector. Each module keeps to its own index prefix, bucket and database, so one instance of each service is enough.
  • Registration. OpenCTI, OpenAEV and OpenCRQ register with XTM One with one shared secret, PLATFORM_REGISTRATION_TOKEN, then register again every 5 minutes as a heartbeat. Once registered, XTM One agents work with their data, and their users get Ask Ariane, which OpenCRQ offers in its Enterprise Edition only.
  • Calls as a person. XTM One calls each platform as the person who asks, and the platform applies that person's rights. The tokens of these calls name the public URL of their issuer, so the public URLs you set are also the identities of the modules.
  • People matched across modules. XTM One finds a person in OpenCTI and OpenAEV by email: the administrator's email must be the same in XTM One, OpenCTI and OpenAEV. OpenCRQ finds the account tied to the person's XTM One account at their sign-in through XTM One, never by email.
  • One license. A Filigran license installed in XTM One travels back, in the registration answer, to each platform it names as a sub-license. It decides the edition of OpenCRQ, which holds no license of its own. An OpenCTI or OpenAEV with an Enterprise Edition license of its own also gives XTM One its Enterprise Edition.

Installed apart, each module needs its own services, OpenCTI and OpenAEV need a license each, OpenCRQ does not start without XTM One, and no assistant reads across the modules. What each part is and which service it uses is in The XTM stack: modules and shared services; how a request carries a person's identity is in XTM One in OpenCTI.

What you need

  • A Linux host, linux/amd64, with Docker Engine 20.10 or later and Docker Compose 2.24.4 or later, 16 GB of RAM and 50 GB of free disk at least, 32 GB of RAM for production, and about 5 GB more for OpenCRQ. See Requirements and Sizing.
  • A host name per platform, and a reverse proxy that serves them over HTTPS: see Publish the platforms over HTTPS.
  • A Filigran license certificate for the Enterprise Edition, and the API key of a language model provider or the address of a model on your network.
  • A mail relay for OpenCTI, OpenAEV and XTM One.
  • On the host, a shell account that runs sudo and Docker. In the modules, the admin accounts that .env creates are the first administrators: no role is needed before them.

How it unfolds

The story: Example CERT runs the XTM platform for the hotel chains it serves. Its platform engineer installs the stack on one host, behind Nginx on the same host, with OpenCTI at https://opencti.example.com, OpenAEV at https://openaev.example.com, XTM One at https://xtm-one.example.com and OpenCRQ at https://opencrq.example.com. The CERT's administrator, admin@example.com, takes over each platform.

Plan the stack

xtm-docker starts the whole stack, and no module is optional (step 1). XTM One runs as xtm-one, the interface and its API, and xtm-one-worker, the background work. OpenCTI and OpenAEV run with their default integrations, and XTM Composer manages the integrations of both. Elasticsearch, RabbitMQ, Redis, S3 storage and PostgreSQL serve them all. OpenCRQ starts with them, with its own database in the same PostgreSQL and its own bucket in the same S3 storage.

Prepare the host

The engineer checks the versions of Docker and Docker Compose, the processor and the memory, and raises vm.max_map_count for Elasticsearch (step 2). xtm-docker already sets what the shared services need, such as max_connections=200 on PostgreSQL for OpenAEV, XTM One and OpenCRQ together.

Install the stack on one host

In a clone of xtm-docker, .env gets fresh secrets for every password, key and token, and a copy goes to the team's secret store (step 3). OPENCTI_ADMIN_EMAIL, OPENAEV_ADMIN_EMAIL and XTM_ONE_ADMIN_EMAIL all read admin@example.com. Each platform's public URL is built from its *_EXTERNAL_SCHEME, *_HOST and *_PORT, here https, its host name and 443. docker-compose.override.yml publishes OpenCTI on 127.0.0.1:8080, OpenAEV on 127.0.0.1:8081, XTM One on 127.0.0.1:8090 and OpenCRQ on 127.0.0.1:8082 for the proxy, keeps Elasticsearch and Redis on the host itself, and pins the versions: OpenCTI 7.261119.0, OpenAEV 3.261118.0, XTM One 1.261119.1, OpenCRQ 0.261123.0.

Make XTM One usable

Behind the proxy, XTM One must know which address the proxy reaches it from: FORWARDED_ALLOW_IPS=172.18.0.1, the gateway of the stack's network, under xtm-one in the override file (step 3). The proxy keeps requests open for 300 seconds, since an agent's answer can take minutes. /api/health/ready answers "status":"ok" once the start is complete. The administrator signs in, adds the language model in Administration > Settings > AI and models > Models, or the engineer sets it as LLM_PROVIDER_ANTHROPIC_API_KEY, and the license goes in Administration > Settings > Platform, with Install License on the Enterprise License card.

Add OpenCRQ

OpenCRQ starts with the stack, after two one-shot services (its setup): opencrq-db-init, which creates the role of OpenCRQ, OPENCRQ_POSTGRES_USER, and the opencrq database it owns in the shared PostgreSQL, and opencrq-bucket-init, which creates its bucket in the S3 storage. XTM_ONE__TOKEN takes PLATFORM_REGISTRATION_TOKEN, and OPENCRQ_API_URL=http://opencrq:3002 on xtm-one lets XTM One call it inside the stack. The log reads Registered with XTM One. At its first start, OpenCRQ creates its first tenant, Default, which the OpenCTI and OpenAEV connectors of xtm-docker feed. OpenCRQ has no account to create: once the proxy publishes it, the administrator clicks Sign in with XTM One as admin@example.com, XTM One's administrator, and becomes its super administrator.

Connect the platforms around XTM One

PLATFORM_REGISTRATION_TOKEN holds one random value, read by OpenCTI, OpenAEV, OpenCRQ and both XTM One containers (step 6). After docker compose up -d, the platforms register within minutes, and My Profile > MCP Endpoint in XTM One shows each platform as Connected. OpenAEV also registers in OpenCTI as the connector OpenAEV Coverage - <tenant>, which answers security coverage requests. The clocks stay synchronized with NTP: XTM One refuses a token from a clock more than 60 seconds ahead.

Finish the configuration of XTM One

Neither xtm-docker nor the module's Compose file passes XTM One a mail server: until SMTP_HOSTNAME is set on both containers, XTM One sends no invitation and writes the link of a password reset in its log (step 7). The same page sets the security headers of its pages and the size of its processes. XTM_ONE_SECRET_KEY never changes once XTM One has started: it encrypts the credentials XTM One stores.

Watch it

The engineer monitors /api/health/ready as well as /api/health: the healthcheck of xtm-docker asks /api/health, which answers as soon as the server listens (step 8). Prometheus metrics, one JSON line per request in the logs, and the Security audit section of Administration > Settings > Access and security complete the picture: the audit flags a published registration token or a proxy XTM One does not trust.

Upgrade

Each upgrade starts with a snapshot of Elasticsearch and a copy of the other volumes, then git pull, the new pinned versions, docker compose pull and docker compose up -d (step 9). OpenCTI and OpenAEV migrate their data as they start. The breaking changes say what to do before and after, and the compatibility matrix which versions work together.

The steps

Each step opens its page; the first one starts the journey, and every page of it then shows where you are.

8 steps · about 98 min of reading · XTM One, OpenCTI, OpenAEV, OpenCRQStart the journey
  1. 1Plan the architectureThe XTM stack: modules and shared services · 6 minHow the XTM stack is built around XTM One, which shared service each module uses, and how the modules connect to each other.
  2. 2Check the requirementsRequirements · 4 minWhat the host and the shared services must provide to run OpenCTI, OpenAEV, OpenCRQ and XTM One, with the versions each module supports.
  3. 3Install with Docker ComposeInstall with Docker Compose · 12 minInstall the XTM stack for production on one host with the official Docker Compose deployment, with secrets, public URLs, persistent data and pinned versions.
  4. 4Finish the setup of XTM OneConfigure XTM One · 23 minFinish the setup of XTM One after the install, then set its secrets, public URL and proxy trust, language models, edition, platform links, mail, security headers and sizing.
  5. 5Finish the setup of OpenCRQConfigure OpenCRQ · 24 minFinish the setup of OpenCRQ after the install and sign in to its first tenant, then set its database, storage, XTM One, connector, telemetry and HTTP settings.
  6. 6Connect the modulesConnect the modules to each other · 11 minRegister OpenCTI, OpenAEV and OpenCRQ with XTM One, link OpenCTI and OpenAEV, connect OpenCRQ to both, and give XTM Composer its tokens, with the public and internal URLs each link uses.
  7. 7Monitor XTM OneMonitor and troubleshoot XTM One · 9 minWatch XTM One through its health endpoints, metrics, logs and security audit, and find the cause when it does not start, chat does not stream or agents do not answer.
  8. 8UpgradeUpgrade · 9 minUpgrade an XTM stack deployed with Docker Compose to new images, after a backup, and know what each platform migrates on its own.

Where to go next

NextRehearse a cyber crisis with the people who would live it
Journeys
Outcomes reached across modules, step by step.

Published

OverviewAI-assisted intelligenceCheck your defenses against the threats you trackComposer rolloutReuse from XTM HubRun a CTEM cycle across the platformAutomate threat intelligenceInvestigate an incidentBrief a sector on its threatsDeploy the XTM platformRehearse a cyber crisis with the people who would live itTest whether your staff fall for the lureKeep your detections tested every weekBuild an AI agent your team can trustGovern how AI is used across the platformLet the night shift ask agents from Slack