You are reading the documentation of OpenCTI 7.260309 LTS · 7.260309.0-lts.8, supported until 2027-04.Latest is 7.261119.0 →
Reference

Network and ports

The ports the XTM stack publishes, the internal addresses its services use to reach each other, and the outbound connections it makes.

All modulesFor platform engineers

This page lists the network side of the XTM stack as FiligranHQ/xtm-docker defines it: the ports it publishes on the host, the service names and ports the containers use to reach each other, who talks to whom, the public URLs, and the connections the stack makes to the outside. Use it to open a firewall, to check for port conflicts or to put the stack behind a reverse proxy.

INTEGRATIONSPLATFORMSAT THE CENTERSHARED SERVICESWorkers and integrationsConnectors, collectors, injectors, XTMComposerOpenCTIhttp://opencti:8080, host port 8080OpenAEVhttp://openaev:8080, host port 8081OpenCRQhttp://opencrq:3002, host port 8082XTM Onehttp://xtm-one:4000, host port 8090Shared serviceselasticsearch:9200, rabbitmq:5672,redis:6379, minio:9000, pgsql:5432
  1. Workers and integrations → OpenCTI: OPENCTI_ADMIN_TOKEN
  2. Workers and integrations → OpenAEV: OPENAEV_ADMIN_TOKEN
  3. OpenCTI ↔ OpenAEV: admin tokens
  4. OpenCTI ↔ XTM One: PLATFORM_REGISTRATION_TOKEN
  5. OpenAEV ↔ XTM One: PLATFORM_REGISTRATION_TOKEN
  6. OpenCRQ ↔ XTM One: PLATFORM_REGISTRATION_TOKEN
  7. OpenCRQ → OpenCTI: token of each tenant
  8. OpenCRQ → OpenAEV: token of each tenant
  9. OpenCTI → Shared services: by service name
  10. OpenAEV → Shared services: by service name
  11. XTM One → Shared services: by service name
  12. OpenCRQ → Shared services: by service name
Inside the Docker network the containers reach each other by service name, each link with its token, while users reach the platforms on their host ports

Ports published on the host

Host portServiceContainer portWhat it servesStarts withSet in
OPENCTI_PORT, 8080 by defaultopencti8080OpenCTI web interface and GraphQL APIopencti.env
8081openaev8080OpenAEV web interface and APIopenaevdocker-compose.yml, with OPENAEV_PORT in .env
XTM_ONE_PORT, 8090 by defaultxtm-one4000XTM One web interface and APIAlways.env
8082opencrq3002OpenCRQ web interface and APIAlwaysmodules/opencrq.yml, with OPENCRQ_PORT in .env for the public URL
9200elasticsearch9200Elasticsearch HTTP APIopencti or openaevdocker-compose.yml
5672rabbitmq5672RabbitMQ, Advanced Message Queuing Protocol (AMQP)opencti or openaevdocker-compose.yml
15672rabbitmq15672RabbitMQ management interface and APIopencti or openaevdocker-compose.yml
6379redis6379RedisAlwaysdocker-compose.yml
9000minio9000S3 API of RustFSAlwaysdocker-compose.yml
Not publishedpgsql5432PostgreSQLAlways
Not publishedopencrq8444OpenCRQ health check, which the healthcheck of the container callsAlwaysHEALTHCHECK_HTTP_SERVER__PORT in modules/opencrq.yml
Not publishedopencrq14269OpenCRQ Prometheus endpoint, off by defaultWhen you turn it onThe Prometheus variables of the opencrq service: see Observability metrics

The host port of OpenAEV is written in docker-compose.yml ("8081:8080"). To move it, replace the mapping in docker-compose.override.yml, as Change the stack without editing docker-compose.yml describes, and set OPENAEV_PORT to the same value: OPENAEV_PORT builds the public URL of OpenAEV, not the port mapping. For port 8082:

services:
  openaev:
    ports: !override
      - "8083:8080"

Without !override, Docker Compose adds 8083 to 8081 instead of replacing it. The host port of OpenCRQ, 8082, moves the same way, in the opencrq service.

See what your stack publishes
docker compose ps --format '{{.Service}}\t{{.Ports}}'

Each running service is listed with its published ports, such as 0.0.0.0:6379->6379/tcp for Redis.

The shared services are open on every interface

xtm-docker publishes Elasticsearch, RabbitMQ, Redis and S3 storage on every network interface of the host. Elasticsearch runs with its security turned off (xpack.security.enabled=false) and Redis without a password. The modules reach these services on the internal network and do not need the published ports. On a host others can reach, remove the ports of these services in docker-compose.override.yml with ports: !reset [], or bind them to the local machine only with ports: !override and, for example, "127.0.0.1:9200:9200". See Harden the deployment.

Inside the stack

Every service is on one Docker network, <COMPOSE_PROJECT_NAME>_default: xtm_default with the COMPOSE_PROJECT_NAME=xtm of .env.sample. The containers reach each other by service name, so the public host names do not need to resolve inside Docker.

AddressReached by
http://opencti:8080The OpenCTI worker and connectors, XTM Composer, XTM One, OpenAEV (on /graphql), and OpenCRQ once a tenant is connected to it
http://openaev:8080The OpenAEV collectors and injectors, XTM Composer, XTM One, OpenCTI, and OpenCRQ once a tenant is connected to it
http://xtm-one:4000OpenCTI, OpenAEV, OpenCRQ
http://opencrq:3002XTM One
elasticsearch:9200OpenCTI, OpenAEV
rabbitmq:5672OpenCTI, OpenAEV, and the integrations and workers they give the address to
rabbitmq:15672OpenCTI and OpenAEV, on the RabbitMQ management API
redis:6379OpenCTI, XTM One and its worker
minio:9000OpenCTI, OpenAEV, XTM One and its worker, OpenCRQ and the opencrq-bucket-init job. Only the backend of OpenCRQ reaches it: its files go to browsers through the OpenCRQ API
pgsql:5432OpenAEV (database openaev), XTM One and its worker (database xtm_one), the xtm-one-db-init job, OpenCRQ (database opencrq) and the opencrq-db-init job

The containers XTM Composer starts join the same network: xtm-docker sets OPENCTI__DAEMON__DOCKER__NETWORK_MODE and OPENAEV__DAEMON__DOCKER__NETWORK_MODE to ${COMPOSE_PROJECT_NAME}_default. An integration you run yourself must join it too, to reach its platform and RabbitMQ: see Run an integration without XTM Composer.

Who talks to whom

FromToAddressCredential
OpenCTIXTM OneXTM__XTM_ONE_URL=http://xtm-one:4000PLATFORM_REGISTRATION_TOKEN
OpenAEVXTM OneOPENAEV_XTM_ONE_URL=http://xtm-one:4000PLATFORM_REGISTRATION_TOKEN
XTM OneOpenCTIOPENCTI_API_URL=http://opencti:8080
XTM OneOpenAEVOPENAEV_API_URL=http://openaev:8080
OpenCRQXTM OneXTM_ONE__URLPLATFORM_REGISTRATION_TOKEN
XTM OneOpenCRQOPENCRQ_API_URL=http://opencrq:3002
OpenCTIOpenAEVXTM__OPENAEV_API_URL=http://openaev:8080OPENAEV_ADMIN_TOKEN
OpenAEVOpenCTIopenaev.xtm.opencti.api-url, http://opencti:8080/graphqlOPENCTI_ADMIN_TOKEN
OpenCRQOpenCTI, for one tenantCONNECTORS__OPENCTI__<tenant>__URL, such as http://opencti:8080CONNECTORS__OPENCTI__<tenant>__TOKEN
OpenCRQOpenAEV, for one tenantCONNECTORS__OPENAEV__<tenant>__URL, such as http://openaev:8080CONNECTORS__OPENAEV__<tenant>__TOKEN
XTM ComposerOpenCTI and OpenAEVhttp://opencti:8080, http://openaev:8080OPENCTI_ADMIN_TOKEN, OPENAEV_ADMIN_TOKEN
XTM ComposerDocker on the host/var/run/docker.sock, mounted in the container
Worker and connectorsOpenCTIOPENCTI_URL=http://opencti:8080OPENCTI_ADMIN_TOKEN
Collectors and injectorsOpenAEVOPENAEV_URL=http://openaev:8080OPENAEV_ADMIN_TOKEN

OpenCTI connectors and OpenAEV injectors also connect to RabbitMQ, with the host name, port and credentials their platform gives them when they register: rabbitmq and 5672 in xtm-docker. If an integration runs where that name does not resolve, it cannot reach the queue.

OpenCRQ reaches OpenCTI and OpenAEV with the address and token set for each of its tenants on the opencrq service. xtm-docker sets them for its first tenant, Default; Configure OpenCRQ lists the variables. It does not only read through that link: at each start, it creates in OpenCTI the Live Stream OpenCRQ threat feed, or brings it up to date. See Link OpenCRQ to OpenCTI and OpenAEV for what its token needs.

XTM Composer controls Docker on the host through its socket. Treat access to the xtm-composer container like access to the host.

Public URLs

Browsers, and the links one platform shows to another, use the public URL of each platform. xtm-docker builds it from three variables per platform:

PlatformVariablesDefaultPassed to the platform as
OpenCTIOPENCTI_EXTERNAL_SCHEME, OPENCTI_HOST, OPENCTI_PORThttp://localhost:8080APP__BASE_URL, and OPENAEV_XTM_OPENCTI_URL on OpenAEV
OpenAEVOPENAEV_EXTERNAL_SCHEME, OPENAEV_HOST, OPENAEV_PORThttp://localhost:8081OPENAEV_BASE-URL, and XTM__OPENAEV_URL on OpenCTI
XTM OneXTM_ONE_EXTERNAL_SCHEME, XTM_ONE_HOST, XTM_ONE_PORThttp://localhost:8090BASE_URL and FRONTEND_URL, on xtm-one and xtm-one-worker
OpenCRQOPENCRQ_EXTERNAL_SCHEME, OPENCRQ_HOST, OPENCRQ_PORThttp://localhost:8082XTM_ONE__PLATFORM_URL, on opencrq

The public URL is also the identity each module signs its requests to the others with. XTM One also accepts tokens addressed to its internal URL: xtm-docker sets XTM_AUTH_ACCEPTED_AUDIENCES=http://xtm-one:4000.

To sign a user in to OpenCRQ, the browser goes to the public URL of XTM One, its BASE_URL, while OpenCRQ exchanges the code for the user's token and reads the signing keys of XTM One at XTM_ONE__URL, http://xtm-one:4000 in xtm-docker.

To publish the platforms over TLS behind a reverse proxy, set the scheme to https together with the host and the port, for example OPENCTI_EXTERNAL_SCHEME=https, OPENCTI_HOST=opencti.example.com and OPENCTI_PORT=443. See Publish the platforms over HTTPS.

Outbound connections

FromToSet by
OpenCTIYour mail server, on port 25SMTP_HOST. The port is written in docker-compose.yml (SMTP__PORT=25)
OpenAEVYour mail serverSMTP_HOST and SMTP_PORT
OpenAEVYour IMAP server, when OPENAEV_MAIL_IMAP_ENABLED=trueIMAP_HOST and IMAP_PORT, 993 in .env.sample
Docker on the hostDocker Hub, and docker.elastic.co for Elasticsearch, to download the imagesThe image of each service
XTM ComposerThe registry of each integration image it deploysSee Pull integrations from a private registry
OpenCRQThe public CVE sources: services.nvd.nist.gov (NIST NVD), cveawg.mitre.org (the CVE records of MITRE, which the NIST NVD sync reads for the vendor's remediation), api.first.org (FIRST EPSS) and www.cisa.gov (CISA KEV). A blocked cveawg.mitre.org fails no run: the CVEs only get no vendor remediationA tenant administrator, who turns each source on in Integrations: see How CVE sources weigh your vulnerabilities
OpenCRQraw.githubusercontent.com, for the default threats it loadsCONNECTORS__DEFAULT_THREATS__DATASET_URL points it to a mirror, or, empty, turns the default threats off. See the OpenCRQ configuration
OpenCRQtelemetry.ocrq.filigran.io, for the anonymous usage telemetryOn by default. TELEMETRY__USAGE__ENABLED=false on the opencrq service turns it off
OpenCRQlogin.microsoftonline.com and graph.microsoft.com for Microsoft Defender, public-api.drata.com by default for Drata, or the regional API of the Drata account, such as public-api.eu.drata.com, for a tenant connected to themThe variables of each tenant: see Configure OpenCRQ
OpenCRQAn OpenCTI or an OpenAEV outside the stack, for a tenant connected to itCONNECTORS__OPENCTI__<tenant>__URL, CONNECTORS__OPENAEV__<tenant>__URL
OpenCRQYour OpenTelemetry collector, over gRPC (port 4317 in the usual examples), and your Pyroscope server, over HTTP (port 4040), when you turn them onThe observability variables of the opencrq service: see Observability metrics

Each integration also connects to the systems it works with. Its own documentation says which.

What's next

NextOverview
Deploy
Install, configure, secure, scale and upgrade the platform.

Published

Overview
Run the XTM platform locally
OverviewDeploy with an AI agent