# What each XTM module brings

> What each module of the XTM stack brings, the services it runs, the shared services it uses and the settings it needs in .env. The whole stack is always deployed.

- URL: https://filigran.io/docs/lts/7.260309-lts/deploy/plan/modules/
- Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.260309.0-lts.8, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0
- OpenCTI line: 7.260309 LTS · 7.260309.0-lts.8
- For: platform engineers, evaluators
- Type: Concept

The XTM stack is always deployed whole: XTM One, OpenCTI, OpenAEV, OpenCRQ, their default integrations and XTM Composer start together, with the shared services they use. No module is optional. This page says what each module adds, which services it runs, which shared services it uses and what it needs in `.env`.

**Diagram: The XTM stack always starts whole: XTM One, OpenCTI, OpenAEV and OpenCRQ, the default integrations, XTM Composer and the shared services they use**

- Integrations: Default OpenCTI connectors (10 connectors), Default OpenAEV integrations (4 collectors, 2 injectors), XTM Composer (Manages both platforms)
- Platforms: OpenCTI (Platform and 3 workers), OpenAEV (Platform), OpenCRQ (Platform)
- At the center: XTM One (xtm-one and its worker)
- Shared services: Elasticsearch and RabbitMQ (Used by OpenCTI and OpenAEV), S3 storage, PostgreSQL (S3 for every platform, PostgreSQL for all but OpenCTI), Redis (Used by XTM One and OpenCTI)

Connections:

- Default OpenCTI connectors → OpenCTI: work for
- Default OpenAEV integrations → OpenAEV: work for
- XTM Composer → OpenCTI: manages integrations
- XTM Composer → OpenAEV: manages integrations
- OpenCTI → Elasticsearch and RabbitMQ: uses
- OpenAEV → Elasticsearch and RabbitMQ: uses
- OpenAEV → S3 storage, PostgreSQL: openaev database
- OpenCRQ → S3 storage, PostgreSQL: opencrq database and bucket
- XTM One → S3 storage, PostgreSQL: uses
- XTM One → Redis: uses

## The whole stack {#the-whole-stack}

| Module | Services it starts | Shared services it uses | URL |
| --- | --- | --- | --- |
| XTM One | xtm-one, xtm-one-worker | PostgreSQL, Redis, S3 storage | http://localhost:8090 |
| XTM One: OpenSandbox (optional, profile `opensandbox`) | opensandbox | | |
| OpenCTI | opencti, worker | Redis, Elasticsearch, S3 storage, RabbitMQ | http://localhost:8080 |
| OpenCTI: Default connectors | connector-export-file-stix, connector-export-file-csv, connector-export-file-txt, connector-import-file-stix, connector-import-document, connector-import-file-yara, connector-analysis, connector-import-external-reference, connector-opencti, connector-mitre | | |
| OpenCTI: XTM Composer | xtm-composer | | |
| OpenAEV | openaev | PostgreSQL, S3 storage, RabbitMQ, Elasticsearch | http://localhost:8081 |
| OpenAEV: Default collectors and injectors | collector-mitre-attack, collector-openaev, collector-atomic-red-team, collector-nvd-nist-cve, injector-nmap, injector-nuclei | | |
| OpenAEV: XTM Composer | xtm-composer | | |
| OpenCRQ | opencrq | PostgreSQL, S3 storage | http://localhost:8082 |

No module is optional: the XTM platform is deployed whole. A part marked optional starts only with its Compose profile. Download the current images, then start the whole stack:

```bash
docker compose pull
docker compose up -d
```

Source: FiligranHQ/xtm-docker@24cd380 (docker-compose.yml).

## What starts {#what-starts}

In [FiligranHQ/xtm-docker](https://github.com/FiligranHQ/xtm-docker), `docker-compose.yml` includes one file per module, in `modules/`, and one file per shared service, in `infra/`. `docker compose pull`, then `docker compose up -d`, starts the 32 services of these files. No setting leaves a module out.

| Module | Compose file | Services it runs | Shared services it uses |
| --- | --- | --- | --- |
| XTM One | `modules/xtm-one.yml` | `xtm-one`, `xtm-one-worker`, and the `xtm-one-db-init` job | Redis, S3 storage, PostgreSQL |
| OpenCTI | `modules/opencti.yml` | `opencti`, `worker` (3 replicas), and 10 default connectors | Elasticsearch, RabbitMQ, Redis, S3 storage |
| OpenAEV | `modules/openaev.yml` | `openaev`, 4 default collectors and 2 default injectors | Elasticsearch, RabbitMQ, S3 storage, PostgreSQL |
| OpenCRQ | `modules/opencrq.yml` | `opencrq`, and the `opencrq-db-init` and `opencrq-bucket-init` jobs | S3 storage, PostgreSQL |
| XTM Composer | `modules/xtm-composer.yml` | `xtm-composer`, and the `rsa-key-generator` job | None |

**Check that it worked: Check what will start**

```bash
docker compose config --services
```
It lists the 32 services of the stack, among them `xtm-one`, `opencti`, `openaev`, `opencrq` and `xtm-composer`.

## XTM One {#xtm-one}

XTM One is the AI layer at the center of the platform. Its AI agents work across the platforms connected to it. It needs these values in `.env`:

| Variable | What to put |
| --- | --- |
| `XTM_ONE_ADMIN_EMAIL` | The admin email of the platforms you connect, so that XTM One finds their user |
| `XTM_ONE_ADMIN_PASSWORD` | The password of the XTM One admin |
| `XTM_ONE_SECRET_KEY` | A long random string, such as the output of `openssl rand -hex 32`. It signs sessions and tokens |
| `XTM_ONE_POSTGRES_USER`, `XTM_ONE_POSTGRES_PASSWORD` | The PostgreSQL role `xtm-one-db-init` creates. It must differ from `POSTGRES_USER` |
| `PLATFORM_REGISTRATION_TOKEN` | A long random string, the same for every platform connected to this XTM One |

XTM One images are published for `linux/amd64` only. On an ARM machine, such as a Mac with an Apple chip, they run through emulation: see [Requirements](https://filigran.io/docs/lts/7.260309-lts/deploy/plan/requirements/).

## OpenCTI {#opencti}

The threat intelligence platform: it collects, structures and shares knowledge about threats. `modules/opencti.yml` runs the platform and three worker replicas.

| Variable | What to put |
| --- | --- |
| `OPENCTI_ADMIN_EMAIL`, `OPENCTI_ADMIN_PASSWORD` | The first admin account |
| `OPENCTI_ADMIN_TOKEN` | A UUIDv4, such as the output of `uuidgen`. The platform does not start with another format |
| `OPENCTI_ENCRYPTION_KEY` | A 32-byte base64 key, the output of `openssl rand -base64 32`, not a UUID |
| `OPENCTI_HEALTHCHECK_ACCESS_KEY` | A random string that protects the health endpoint |
| `OPENCTI_EXTERNAL_SCHEME`, `OPENCTI_HOST`, `OPENCTI_PORT` | The public URL of OpenCTI: `http`, `localhost` and `8080` by default |

### Default OpenCTI connectors {#default-opencti-connectors}

Ten connectors run with OpenCTI. Each one reads its ID from a `CONNECTOR_*_ID` variable, a UUIDv4 that `.env.sample` already sets.

| Connector | Service | What it does |
| --- | --- | --- |
| Export File STIX | `connector-export-file-stix` | Exports data as STIX 2.1 |
| Export File CSV | `connector-export-file-csv` | Exports data as CSV |
| Export File TXT | `connector-export-file-txt` | Exports data as plain text |
| Import File STIX | `connector-import-file-stix` | Imports STIX 2.1 bundles |
| Import Document | `connector-import-document` | Imports PDF, HTML and text documents |
| Import File YARA | `connector-import-file-yara` | Imports YARA rules |
| Analysis | `connector-analysis` | Analyzes PDF, HTML and text documents |
| Import External Reference | `connector-import-external-reference` | Imports external references |
| OpenCTI Datasets | `connector-opencti` | Loads the default marking definitions, identities and locations |
| MITRE ATT&CK | `connector-mitre` | Loads the MITRE ATT&CK framework |

## OpenAEV {#openaev}

The exposure validation platform: it runs scenarios and simulations to test how your defenses respond. `modules/openaev.yml` runs the platform. It stores its data in the `openaev` database of the shared PostgreSQL.

| Variable | What to put |
| --- | --- |
| `OPENAEV_ADMIN_EMAIL`, `OPENAEV_ADMIN_PASSWORD` | The first admin account |
| `OPENAEV_ADMIN_TOKEN` | A UUIDv4, such as the output of `uuidgen` |
| `OPENAEV_HEALTHCHECK_KEY` | A random string that protects the health endpoint |
| `OPENAEV_ADMIN_ENCRYPTION_KEY`, `OPENAEV_ADMIN_ENCRYPTION_SALT` | A random key and a salt of at least 8 bytes |
| `OPENAEV_EXTERNAL_SCHEME`, `OPENAEV_HOST`, `OPENAEV_PORT` | The public URL of OpenAEV: `http`, `localhost` and `8081` by default |
| `SMTP_*` | The mail server OpenAEV sends emails through |
| `OPENAEV_MAIL_IMAP_ENABLED` and `IMAP_*` | `true` and the IMAP mailbox OpenAEV reads, or `false` (the default in `.env.sample`) |

The host port of OpenAEV is written in `modules/openaev.yml` (`"8081:8080"`), not in `.env`: to move it, replace the mapping in `docker-compose.override.yml` and change `OPENAEV_PORT` together. See [Network and ports](https://filigran.io/docs/lts/7.260309-lts/deploy/plan/network/#ports-published-on-the-host).

### Default OpenAEV collectors and injectors {#default-openaev-collectors-and-injectors}

Four collectors and two injectors run with OpenAEV. Each one reads its ID from a `COLLECTOR_*_ID` or `INJECTOR_*_ID` variable that `.env.sample` already sets.

| Integration | Kind | Service | What it brings |
| --- | --- | --- | --- |
| MITRE ATT&CK | Collector | `collector-mitre-attack` | Attack techniques and procedures |
| OpenAEV Datasets | Collector | `collector-openaev` | Default datasets |
| Atomic Red Team | Collector | `collector-atomic-red-team` | Atomic Red Team tests |
| CVE by NVD NIST | Collector | `collector-nvd-nist-cve` | CVE data from the National Vulnerability Database (NVD) |
| Nmap | Injector | `injector-nmap` | Network scans |
| Nuclei | Injector | `injector-nuclei` | Vulnerability scans |

The NVD collector reads an NVD API key from `COLLECTOR_NVD_NIST_CVE_API_KEY`. `.env.sample` leaves it empty and marks it as recommended.

## XTM Composer {#xtm-composer}

XTM Composer deploys and runs integrations from the interface of OpenCTI and OpenAEV, instead of declaring each one in the Compose files. One XTM Composer manages both platforms: it starts once OpenCTI and OpenAEV are healthy.

| Variable | What to put |
| --- | --- |
| `XTM_COMPOSER_ID` | Its ID, a UUIDv4 that `.env.sample` already sets |

XTM Composer mounts the Docker socket of the host (`/var/run/docker.sock`) to start the integration containers. See [XTM Composer](https://filigran.io/docs/lts/7.260309-lts/deploy/integrations/composer/).

## OpenCRQ {#opencrq}

OpenCRQ quantifies cyber risk in money, from the threats of OpenCTI and the validation results of OpenAEV, and registers with XTM One, without which it does not start. It connects to the shared PostgreSQL as `POSTGRES_USER`, like OpenAEV, and needs these values in `.env`:

| Variable | What to put |
| --- | --- |
| `OPENCRQ_EXTERNAL_SCHEME`, `OPENCRQ_HOST`, `OPENCRQ_PORT` | The public URL of OpenCRQ, also its identity towards XTM One. The host publishes it on port 8082 whatever `OPENCRQ_PORT` says |

See [Finish the setup of OpenCRQ](https://filigran.io/docs/lts/7.260309-lts/deploy/configure/opencrq/#finish-the-setup-after-the-install) for the first start and its first administrator.

## What's next {#what-s-next}

- [The XTM stack](https://filigran.io/docs/lts/7.260309-lts/deploy/plan/architecture/): how the modules and shared services fit together.
- [Requirements](https://filigran.io/docs/lts/7.260309-lts/deploy/plan/requirements/) and [Sizing](https://filigran.io/docs/lts/7.260309-lts/deploy/plan/sizing/) for the whole stack.
- [Install with Docker Compose](https://filigran.io/docs/lts/7.260309-lts/deploy/install/docker-compose/), or [run the platform locally](https://filigran.io/docs/lts/7.260309-lts/deploy/quick-start/) to try it first.
- [Editions and licensing](https://filigran.io/docs/lts/7.260309-lts/start/editions/).
