# Deploy and operate > Deploy the whole XTM platform as one stack, then run, scale and upgrade it. - URL: https://filigran.io/docs/deploy/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - Type: Overview XTM is deployed as one stack around XTM One: OpenCTI, OpenAEV, OpenCRQ and XTM Composer always run with it and share Elasticsearch, Redis, RabbitMQ, S3 storage and PostgreSQL. No module is optional. These pages follow the life of a deployment, from a first try on your machine to production, operations and upgrades. ## Start here {#start-here} Pick where you are: each tab gives your goal and the pages to read first, in order. **Try it** You want the platform running on one machine today, to see what it does. 1. [Run the XTM platform locally](https://filigran.io/docs/deploy/quick-start/): XTM One, OpenCTI, OpenAEV and XTM Composer on one machine with Docker Compose. 2. [Deploy with an AI agent](https://filigran.io/docs/deploy/quick-start/with-an-ai-agent/): let a coding agent do it, from a prompt and steps it can check. 3. [What each XTM module brings](https://filigran.io/docs/deploy/plan/modules/): the services each module runs and the settings it needs. **Go to production** You prepare a deployment your teams will rely on. 1. [Requirements](https://filigran.io/docs/deploy/plan/requirements/): what the host, the shared services and the runtimes must provide. 2. [Sizing](https://filigran.io/docs/deploy/plan/sizing/): how much CPU, memory and disk the stack needs. 3. [Topologies: one host, a cluster, Kubernetes](https://filigran.io/docs/deploy/plan/topologies/): where the modules and the shared services can run. 4. [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/): secrets, public URLs, persistent data and pinned versions. 5. [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/): the three platforms behind your reverse proxy. 6. [Sign in the first time and keep an emergency account](https://filigran.io/docs/deploy/configure/first-access/): the first administrator, and an account that works when single sign-on fails. **Add integrations** You connect the platforms to your sources and your security tools. 1. [How integrations run](https://filigran.io/docs/deploy/integrations/how-they-run/): connectors, collectors, injectors and executors, and how they reach their platform. 2. [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/): deploy and run them as containers, from the platform interface. 3. [Deploy a first integration with XTM Composer](https://filigran.io/docs/deploy/integrations/quick-start/): check that the platforms see it, then deploy one. **Run it** You keep the deployment healthy, safe and recoverable. 1. [Check that the platforms are healthy](https://filigran.io/docs/deploy/operate/health-probes/): the health endpoints and what each answer means. 2. [Back up and restore](https://filigran.io/docs/deploy/operate/backup/): every store of the stack together, and a restore on an empty deployment. 3. [Harden the deployment](https://filigran.io/docs/deploy/operate/harden/): close the shared services to the network and tighten the settings. 4. [Troubleshoot the XTM stack](https://filigran.io/docs/deploy/operate/troubleshoot/): where the logs are, and the common startup and ingestion errors. **Upgrade** You move to a new release without surprise. 1. [Upgrade](https://filigran.io/docs/deploy/upgrade/): new images after a backup, and what each platform migrates on its own. 2. [Compatibility matrix](https://filigran.io/docs/deploy/upgrade/compatibility/): the versions documented together and the constraints between them. 3. [Breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/): the changes that need an action, per version. 4. [Versioning and LTS](https://filigran.io/docs/deploy/upgrade/lifecycle/): how releases are numbered and which lines are supported. ## What the stack runs {#what-the-stack-runs} | 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). ## Integrations, run by XTM Composer {#integrations-run-by-xtm-composer} Connectors, collectors, injectors and executors are programs that run beside the platforms. XTM Composer, part of the stack, deploys them as containers: you pick an integration in the OpenCTI or OpenAEV interface, fill in its settings, and follow its status and logs there. ![The connector catalog of OpenCTI, where an administrator picks an integration that XTM Composer deploys.](https://filigran.io/docs/shots/92ce4000bd858b51ec9c48b3fa93f88c0fdbcba12b1b7cdbf9facd7fa43ca9f8.webp) ## Browse Deploy {#browse-deploy} **Quick start** - [Run the XTM platform locally](https://filigran.io/docs/deploy/quick-start/): Start the whole XTM platform, XTM One, OpenCTI, OpenAEV, OpenCRQ and XTM Composer, on one machine with Docker Compose. - [Deploy with an AI agent](https://filigran.io/docs/deploy/quick-start/with-an-ai-agent/): Let Claude Code or another coding agent deploy the XTM platform on your machine, from a prompt and steps it can check. **Plan** - [The XTM stack: modules and shared services](https://filigran.io/docs/deploy/plan/architecture/): How the XTM stack is built around XTM One, which shared service each module uses, and how the modules connect to each other. - [What each XTM module brings](https://filigran.io/docs/deploy/plan/modules/): 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. - [Requirements](https://filigran.io/docs/deploy/plan/requirements/): What the host and the shared services must provide to run OpenCTI, OpenAEV, OpenCRQ and XTM One, with the versions each module supports. - [Sizing](https://filigran.io/docs/deploy/plan/sizing/): How much CPU, memory and disk the XTM stack needs, on one host with xtm-docker and component by component for production. - [Topologies: one host, a cluster, Kubernetes](https://filigran.io/docs/deploy/plan/topologies/): Where the modules and shared services of the XTM stack can run, from one host with Docker Compose to clusters and Kubernetes, and what each choice gives. - [Network and ports](https://filigran.io/docs/deploy/plan/network/): The ports the XTM stack publishes, the internal addresses its services use to reach each other, and the outbound connections it makes. **Install** - [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/): Install the XTM stack for production on one host with the official Docker Compose deployment, with secrets, public URLs, persistent data and pinned versions. - [Start the whole stack on an existing deployment](https://filigran.io/docs/deploy/install/modules/): Bring a deployment that ran only some modules of the XTM stack to the whole stack, which xtm-docker now always starts, with what to check and what happens to the data. - [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/): Publish OpenCTI, OpenAEV and XTM One over HTTPS behind a reverse proxy, with HTTP/2, WebSockets, streamed responses, forwarded headers, secure cookies and the right public URLs. - [Install offline or with FIPS 140-3](https://filigran.io/docs/deploy/install/air-gapped/): Install the XTM stack on a host without internet access, and run OpenCTI with its FIPS 140-3 images and compliant shared services. **Configure** - [Configure the shared services](https://filigran.io/docs/deploy/configure/shared-services/): Size and connect the search engine, Redis, RabbitMQ, S3 storage, PostgreSQL and mail server that the XTM modules share, or point them to your own. - [Connect the modules to each other](https://filigran.io/docs/deploy/configure/connect-modules/): Register 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. - [Sign in the first time and keep an emergency account](https://filigran.io/docs/deploy/configure/first-access/): Set the bootstrap admin of OpenCTI, OpenAEV and XTM One, and the admin token of OpenCRQ, sign in the first time, and keep a local account that still works when single sign-on fails. - [Configure OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/): Finish 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. - [Trust your certificate authority and proxy](https://filigran.io/docs/deploy/configure/certificates/): Make OpenCTI and OpenAEV trust your internal certificate authority, send their outgoing traffic through a proxy, and set how OpenAEV agents check certificates. - [Map tiles](https://filigran.io/docs/deploy/configure/maps/): Where OpenCTI takes the tiles and country boundaries of its maps, and how to replace them with your own files, with no external map server. - [Extract intelligence from documents on premises](https://filigran.io/docs/deploy/configure/ai-extraction/): Run the extraction web service of the Import Document AI connector in your own stack, so that OpenCTI extracts threat intelligence from documents on premises. - [Configure XTM One](https://filigran.io/docs/deploy/configure/xtm-one/): Finish 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. **Integrate** - [How integrations run](https://filigran.io/docs/deploy/integrations/how-they-run/): How connectors, collectors, injectors and executors run next to OpenCTI and OpenAEV, how they reach their platform, and which ones xtm-docker always starts. - [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/): XTM Composer deploys and runs the integrations of OpenCTI and OpenAEV as containers, so you manage them from the platform interface. - [Deploy a first integration with XTM Composer](https://filigran.io/docs/deploy/integrations/quick-start/): Check that XTM Composer runs in the XTM stack and that OpenCTI and OpenAEV see it, then deploy a first integration from the interface. - [XTM Composer architecture](https://filigran.io/docs/deploy/integrations/architecture/): How XTM Composer registers with OpenCTI and OpenAEV, reconciles their integrations with the containers it runs, and decrypts their secrets. - [Install XTM Composer](https://filigran.io/docs/deploy/integrations/install-composer/): Install XTM Composer with xtm-docker, Docker, Podman or Kubernetes, with its RSA key, its platform tokens and access to the container engine. - [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/): Set the identity, key, platforms and container engine of XTM Composer, with a YAML file or environment variables, and the options each engine applies to the integration containers. - [Run integrations behind a proxy](https://filigran.io/docs/deploy/integrations/proxy/): Send XTM Composer and the integrations it runs through an HTTP or HTTPS proxy, including a TLS-intercepting proxy with its own certificate authority. - [Pull integrations from a private registry](https://filigran.io/docs/deploy/integrations/private-registry/): Make XTM Composer pull integration images from a private or mirrored container registry, with credentials, on Docker, Podman or Kubernetes. - [Migrate to XTM Composer](https://filigran.io/docs/deploy/integrations/migrate/): Move connectors, collectors and injectors you deployed by hand under the management of XTM Composer. - [Run an integration without XTM Composer](https://filigran.io/docs/deploy/integrations/manual/): Run an OpenCTI connector or an OpenAEV collector or injector yourself, with Docker Compose or Python, with its own token and network access. - [Troubleshoot XTM Composer](https://filigran.io/docs/deploy/integrations/troubleshoot/): Find why XTM Composer does not start, does not register with OpenCTI or OpenAEV, or does not deploy an integration, from the messages it logs. **Operate** - [Observability metrics](https://filigran.io/docs/deploy/operate/metrics/): The Prometheus and OpenTelemetry metrics OpenCTI, OpenAEV and OpenCRQ expose for your own monitoring, how to turn them on in the XTM stack and what each one measures. - [Check that the platforms are healthy](https://filigran.io/docs/deploy/operate/health-probes/): The health endpoints of XTM One, OpenCTI and OpenAEV, what each answer means, and how to use them in Docker Compose, Kubernetes or a load balancer. - [Back up and restore](https://filigran.io/docs/deploy/operate/backup/): Back up every store of the XTM stack together, with an Elasticsearch snapshot, PostgreSQL dumps and copies of the other volumes, and restore them on an empty deployment. - [Scale: workers, platforms and clusters](https://filigran.io/docs/deploy/operate/scale/): Add OpenCTI workers in the XTM stack, run several OpenCTI nodes as a cluster, and put Elasticsearch, Redis, RabbitMQ and S3 storage in cluster mode. - [Manage Elasticsearch indices](https://filigran.io/docs/deploy/operate/rollover/): How OpenCTI organizes its Elasticsearch or OpenSearch indices, the rollover policy that keeps their shards small, and the permissions its user needs. - [Harden the deployment](https://filigran.io/docs/deploy/operate/harden/): Close the shared services of the XTM stack to the network, protect the health keys, limit who gets an OpenCRQ account, and tighten the OpenCTI settings, from rate limiting to sessions and logs. - [Troubleshoot the XTM stack](https://filigran.io/docs/deploy/operate/troubleshoot/): Find the logs of each part of the XTM stack, raise their level, and fix the common startup, ingestion and Elasticsearch errors. - [Collect logs for support](https://filigran.io/docs/deploy/operate/support-package/): Generate and download an OpenCTI support package, a ZIP file with the recent application logs and usage statistics of every node, to troubleshoot or to send to support. - [Monitor and troubleshoot XTM One](https://filigran.io/docs/deploy/operate/xtm-one/): Watch 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. **Upgrade** - [Upgrade](https://filigran.io/docs/deploy/upgrade/): Upgrade an XTM stack deployed with Docker Compose to new images, after a backup, and know what each platform migrates on its own. - [Versioning and LTS](https://filigran.io/docs/deploy/upgrade/lifecycle/): How XTM releases are numbered, how the OpenCTI Long-Term Support (LTS) program works, and which LTS lines are supported until when. - [Compatibility matrix](https://filigran.io/docs/deploy/upgrade/compatibility/): The OpenCTI, OpenAEV, XTM One and XTM Composer versions documented together, the version constraints between them, and the minimum versions of the shared services. - [Breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/): The changes of OpenCTI, OpenAEV, XTM One and the XTM Docker deployment that need an action when you upgrade, per version, with the guide for each. - [Upgrade XTM One](https://filigran.io/docs/deploy/upgrade/xtm-one/): Move XTM One to a new version in the XTM stack: serve it over HTTP/2 for 1.261112.0, follow its migrations, rename retired variables, and roll back from a backup. --- # Extract intelligence from documents on premises > Run the extraction web service of the Import Document AI connector in your own stack, so that OpenCTI extracts threat intelligence from documents on premises. - URL: https://filigran.io/docs/deploy/configure/ai-extraction/ - Products: OpenCTI 7.261119.0 - Edition: requires an Enterprise Edition license - For: platform engineers - Type: How-to guide The Import Document AI connector of OpenCTI extracts entities, observables and relationships from PDF, text, HTML and Markdown files, and imports them as a STIX bundle. It sends each document to an extraction web service, the one Filigran hosts or one you run. This page runs that web service in your own stack, for an air-gapped network or to keep documents on your premises, and points the connector to it. **Diagram: OpenCTI hands each imported document to the connector, which sends it to the extraction web service in your stack and imports the STIX bundle, while the other AI features call the model of the ai keys** - Documents: Documents (PDF, text, HTML, Markdown) - OpenCTI: OpenCTI (Data > Import) - Connector: ImportDocumentAI (connector-import-document-ai) - On your premises: Extraction web service (import-document-ai-webservice:8000), Your language model (ai:endpoint, such as vLLM) Connections: - Documents → OpenCTI: upload - OpenCTI → ImportDocumentAI: launch import - ImportDocumentAI → Extraction web service: document and license - ImportDocumentAI → OpenCTI: STIX bundle - OpenCTI → Your language model: summaries, search, text *(OpenCTI 7.260811 and later)* The connector has no default address: without an XTM One agent, it needs the address of a web service and your license certificate, or every import fails with `No agent_slug provided and api_base_url/api_key is not configured`. *(OpenCTI 7.260811 and later)* > **With XTM One: Extract with an XTM One agent** > > When OpenCTI is [registered with XTM One](https://filigran.io/docs/deploy/configure/connect-modules/), the connector can hand the document to an XTM One AI agent instead of the web service. The import dialog of OpenCTI then offers the agents bound to the intent `cti.stix_harvester` (the connector setting `CONNECTOR_XTM_ONE_INTENT`), and the extraction runs in your XTM One with the model you configured there. No web service is needed for those imports. ## Before you start {#before-you-start} - OpenCTI with an Enterprise Edition license, and the license certificate that Filigran gave you, in PEM format: the connector sends it to the web service. - An access token to the private Docker repository of Filigran, from your Customer Success Manager or Account Manager. - A host that fits the web service. These figures come from Filigran; extraction time depends on the size of the file. | | With a GPU | Without a GPU | | --- | --- | --- | | Computing | An NVIDIA GPU | CPU at 3 GHz or more | | RAM | 8 GB | 16 GB | | Disk | 16 GB | 16 GB | | Average extraction time | 5 to 10 seconds | 30 seconds to 2 minutes | - The stack installed as [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/) describes. ## Run the web service {#run-the-web-service} 1. Sign in to the private repository of Filigran, and enter the token when Docker asks for the password. ```bash docker login --username filigrancustomers ``` To run the service where Docker Hub is not reachable, pull `filigran/import-document-ai-webservice` here and push it to your own registry. 2. Add the service to `docker-compose.override.yml`, under `services:`, as [Change the stack without editing docker-compose.yml](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml) describes. It listens on port 8000 inside the stack; the connector reaches it there, so it needs no published port. Keep the `deploy` block only on a host with an NVIDIA GPU. ```yaml import-document-ai-webservice: image: filigran/import-document-ai-webservice restart: always deploy: resources: reservations: devices: - driver: nvidia count: 1 capabilities: [gpu] ``` 3. Start it. ```bash docker compose pull import-document-ai-webservice docker compose up -d import-document-ai-webservice ``` **Check that it worked** ```bash docker compose ps import-document-ai-webservice ``` The service is `running`. ## Point the connector to it {#point-the-connector-to-it} The connector is not part of xtm-docker. Add it to `docker-compose.override.yml` with the address of your web service. 1. Give the connector an identifier in `.env`. ```bash echo "CONNECTOR_IMPORT_DOCUMENT_AI_ID=$(python3 -c 'import uuid; print(uuid.uuid4())')" >> .env ``` 2. Add the connector under `services:`, with your license certificate in place of the three certificate lines: the whole PEM text, from `-----BEGIN CERTIFICATE-----` to `-----END CERTIFICATE-----`, indented as shown. *(OpenCTI 7.260811 and later)* ```yaml connector-import-document-ai: image: opencti/connector-import-document-ai:latest environment: OPENCTI_URL: http://opencti:8080 OPENCTI_TOKEN: ${OPENCTI_ADMIN_TOKEN} CONNECTOR_ID: ${CONNECTOR_IMPORT_DOCUMENT_AI_ID} CONNECTOR_NAME: ImportDocumentAI CONNECTOR_SCOPE: application/pdf,text/plain,text/html,text/markdown CONNECTOR_AUTO: "false" CONNECTOR_LOG_LEVEL: info IMPORT_DOCUMENT_AI_API_BASE_URL: http://import-document-ai-webservice:8000 IMPORT_DOCUMENT_AI_API_KEY: | -----BEGIN CERTIFICATE----- Your license certificate -----END CERTIFICATE----- depends_on: opencti: condition: service_healthy restart: always ``` The connector calls `/stix` under `IMPORT_DOCUMENT_AI_API_BASE_URL`. Use the image tag of your OpenCTI version in place of `latest`, as for the other connectors. 3. Start the connector. ```bash docker compose up -d connector-import-document-ai ``` 4. In OpenCTI, go to **Data > Import**, upload a PDF file, and launch an import with the connector `ImportDocumentAI`. **Check that it worked** The import completes and its entities appear in OpenCTI. *(OpenCTI 7.260811 and later)* The connector log names your web service: ```bash docker compose logs connector-import-document-ai | grep "HTTP Post Request" ``` The line holds `http://import-document-ai-webservice:8000/stix`. If the import fails with `ImportDocumentAI webservice seems to be unreachable`, the connector cannot reach the address you set: check the service name and the port. ## Connect OpenCTI to your own language model {#connect-opencti-to-your-own-language-model} The connector above handles documents only. The other AI features of OpenCTI, such as the summaries of an entity, the search in natural language and the text generation in the editors, call the language model set in the `ai` keys of the platform. To keep those prompts on your premises too, point these keys to a model you host. | Key | Default | What it does | | --- | --- | --- | | `ai:enabled` | not set | Set to `true` to connect the model. Unset or `false`, the AI features have no model | | `ai:type` | `mistralai` | The API of the model: `mistralai`, `openai` or `azureopenai`. With `ai:enabled` and `ai:token` set, any other value stops the platform at start | | `ai:endpoint` | empty | URL of the model API. Empty: the public cloud of the provider. For the Mistral AI cloud, set `https://api.mistral.ai`: with `mistralai` and any other URL, OpenCTI calls an OpenAI-compatible API at the URL followed by `/v1`, as a model served by vLLM exposes | | `ai:token` | empty | The API key. Without it, the AI features have no model | | `ai:model` | empty | The model name, as the API knows it | | `ai:max_tokens` | `30000` | Length of the prompt sent to the model. Despite its name, OpenCTI cuts the prompt to this number of characters, not tokens | | `app:ai:timeout` | `60000` | Time, in milliseconds, a search in natural language waits for the model before it fails. Raise it for a slow model | For Azure OpenAI, set `ai:type` to `azureopenai`, with `ai:version`, the API version of your deployment, `ai:ai_azure_instance`, the instance name, such as `example-cert` for `https://example-cert.openai.azure.com`, and `ai:ai_azure_deployment`, the deployment name. Two keys of `config/default.json` have no effect: `ai:timeout`, since the timeout is read from `app:ai:timeout` (`APP__AI__TIMEOUT`), and `ai:model_images`, which no code reads. The platform also needs the **Generative AI (AI Insight, NLQ)** switch on, in **Settings > Filigran Experience**. Every other AI key is in the [AI Service section](https://filigran.io/docs/reference/opencti/configuration/#ai-service) of the configuration reference. **Example: Use the model of Example CERT's GPU cluster** Example CERT serves a Mistral model with vLLM at `https://llm.example.com`, behind its own API key, kept in `.env` as `OPENCTI_AI_TOKEN`. It adds to `docker-compose.override.yml`: ```yaml services: opencti: environment: - AI__ENABLED=true - AI__TYPE=mistralai - AI__ENDPOINT=https://llm.example.com - AI__TOKEN=${OPENCTI_AI_TOKEN} - AI__MODEL=mistralai/Mistral-Small-3.2-24B-Instruct-2506 - APP__AI__TIMEOUT=120000 ``` After `docker compose up -d opencti`, the summaries and the search in natural language of OpenCTI use this model, and no prompt leaves the network. ## What's next {#what-s-next} - [Run an integration without XTM Composer](https://filigran.io/docs/deploy/integrations/manual/), for the other settings of a connector run this way. - [Install offline or with FIPS 140-3](https://filigran.io/docs/deploy/install/air-gapped/). - [Connect the modules to each other](https://filigran.io/docs/deploy/configure/connect-modules/), to extract with an XTM One agent instead. --- # Trust your certificate authority and proxy > Make OpenCTI and OpenAEV trust your internal certificate authority, send their outgoing traffic through a proxy, and set how OpenAEV agents check certificates. - URL: https://filigran.io/docs/deploy/configure/certificates/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0 - For: platform engineers - Type: How-to guide This page sets how the platforms of the XTM stack handle TLS certificates and proxies on their outgoing connections: to your services, to identity providers, to the tools they integrate with. You get each platform trusting your internal certificate authority (CA) without turning certificate checks off, the outgoing traffic of OpenCTI going through your proxy, and the OpenAEV agents set for your network. To publish the platforms over HTTPS, see [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/). **Diagram: Each platform trusts your internal certificate authority on its outgoing HTTPS calls, and OpenCTI sends them through your proxy except to the hosts in NO_PROXY** - Your CA: Internal CA (./certs/internal-ca.pem) - Platforms: OpenCTI (NODE_EXTRA_CA_CERTS), OpenAEV (OPENAEV_EXTRA-TRUSTED-CERTS-DIR) - Proxy: Your proxy (HTTP_PROXY, HTTPS_PROXY) - Destinations: Your services (Identity providers, integrated tools), Services of the stack (In NO_PROXY: opencti, openaev, redis...) Connections: - Internal CA → OpenCTI: trusted - Internal CA → OpenAEV: trusted - OpenCTI → Your proxy: outgoing requests - Your proxy → Your services: HTTPS - OpenAEV → Your services: HTTPS - OpenCTI → Services of the stack: direct ## Before you start {#before-you-start} - The stack installed as [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/) describes. The changes below go in `docker-compose.override.yml`: see [Change the stack without editing docker-compose.yml](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml). - The certificate of your CA in PEM format, the full chain if there are intermediate CAs. The examples use `./certs/internal-ca.pem` on the host, next to `docker-compose.yml`. ## Trust your internal certificate authority {#trust-your-internal-certificate-authority} Prefer trusting your CA to turning certificate checks off: the platforms keep rejecting every certificate your CA did not sign. **OpenCTI** OpenCTI runs on Node.js, which reads extra CAs from the file named by `NODE_EXTRA_CA_CERTS`, in addition to its own. This covers its HTTPS calls, such as those to an OpenID Connect provider. Put several CAs in one PEM file, one after the other. Add these lines to the `opencti` service in `docker-compose.override.yml`, then run `docker compose up -d`: ```yaml services: opencti: volumes: - ./certs:/opt/opencti/certs:ro environment: - NODE_EXTRA_CA_CERTS=/opt/opencti/certs/internal-ca.pem ``` The connections to the shared services have their own settings. Each takes the path of a certificate in the container, or its PEM content. A CA set here replaces the system CAs for that connection. | Connection | CA | Certificate check | | --- | --- | --- | | Elasticsearch or OpenSearch | `ELASTICSEARCH__SSL__CA`, or `ELASTICSEARCH__SSL__CA_PLAIN` for a PEM content OpenCTI uses when `ELASTICSEARCH__SSL__CA` is empty | `ELASTICSEARCH__SSL__REJECT_UNAUTHORIZED`, `true` by default | | Redis, with `REDIS__USE_SSL=true` | `REDIS__CA`, a list | | | RabbitMQ, with `RABBITMQ__USE_SSL=true` | `RABBITMQ__USE_SSL_CA`, a list | `RABBITMQ__USE_SSL_REJECT_UNAUTHORIZED`, off by default | | RabbitMQ management API, with `RABBITMQ__MANAGEMENT_SSL=true` | | `RABBITMQ__MANAGEMENT_SSL_REJECT_UNAUTHORIZED`, off by default | | Mail server | | `SMTP__REJECT_UNAUTHORIZED`, off by default | Write a list as JSON, for example `'REDIS__CA=["/opt/opencti/certs/internal-ca.pem"]'`. The RabbitMQ and mail server checks are off by default: set them to `true` once the CA is in place. **OpenAEV** OpenAEV adds to the CAs of Java the certificates it finds in the folder named by `OPENAEV_EXTRA-TRUSTED-CERTS-DIR`. Every outgoing HTTPS client of the platform uses them, the Elasticsearch client included. xtm-docker already sets `OPENAEV_EXTRA-TRUSTED-CERTS-DIR=/opt/openaev/additional_certs` but mounts nothing there. Add the folder to the `openaev` service in `docker-compose.override.yml`, then run `docker compose up -d`: ```yaml services: openaev: volumes: - ./certs:/opt/openaev/additional_certs:ro ``` - OpenAEV reads only the files whose name ends with `.pem`, and only the first X.509 certificate of each, PEM-armoured or DER-encoded: split a chain into one file per CA. - It skips an expired certificate, or a file it cannot read as a certificate, and keeps the others. - It reads the folder at start: restart OpenAEV after you add a certificate. **Check that it worked** ```bash docker compose exec openaev ls /opt/openaev/additional_certs ``` It lists `internal-ca.pem`. *(OpenCTI 7.261109 and later)* ## Check certificates on every outgoing connection of OpenCTI {#check-certificates-on-every-outgoing-connection-of-opencti} `TLS__REJECT_UNAUTHORIZED` sets, in one place, whether OpenCTI checks the certificate of the servers it connects to. It applies to every outgoing connection that does not set its own check: - the HTTPS proxy (`HTTPS_PROXY_REJECT_UNAUTHORIZED`), a value also passed to the integrations XTM Composer deploys; - RabbitMQ and its management API (`RABBITMQ__USE_SSL_REJECT_UNAUTHORIZED`, `RABBITMQ__MANAGEMENT_SSL_REJECT_UNAUTHORIZED`); - the mail server (`SMTP__REJECT_UNAUTHORIZED`); - the remote credentials provider of a service; - the other HTTPS calls that set no SSL verification of their own, such as a synchronization with a remote OpenCTI or a feed. A variable of the list above, when you set it, wins over `TLS__REJECT_UNAUTHORIZED`. Elasticsearch and OpenSearch keep `ELASTICSEARCH__SSL__REJECT_UNAUTHORIZED`, `true` by default. `TLS__REJECT_UNAUTHORIZED` is `false` by default, and OpenCTI logs a warning at each start while it is: `TLS certificate verification is disabled for the outgoing connections that do not set their own option`. A later version turns it on by default. Turn it on once your CA is trusted, so that the change of default does not cut a connection: ```yaml services: opencti: environment: - NODE_EXTRA_CA_CERTS=/opt/opencti/certs/internal-ca.pem - TLS__REJECT_UNAUTHORIZED=true ``` After `docker compose up -d`, the warning is gone from the logs of `opencti`, and a connection to a server whose certificate your CA did not sign fails with a certificate error instead of going through. The OpenCTI workers are Python processes with settings of their own. In xtm-docker they call the platform in plain HTTP on the network of the stack, at `http://opencti:8080`; these settings matter when `OPENCTI_URL` is an `https://` address, for workers that run elsewhere. Set them on the `worker` service: | Variable | Default | Effect | | --- | --- | --- | | `OPENCTI_SSL_VERIFY` | `false` | `false` accepts any certificate from the platform, so anyone between the workers and the platform can read their token. `true` checks it against the public CAs the worker ships with. The path of a PEM file in the container checks it against the CAs of that file only | | `HTTPS_CA_CERTIFICATES` | | A CA to trust in addition to the system CAs, as the path of a PEM file in the container or as its PEM content: your internal CA, or the CA of a proxy that inspects TLS. The worker checks the certificate of the platform against both, even when `OPENCTI_SSL_VERIFY` is `false`. The same CAs serve its calls to connectors over HTTPS when `WORKER_LISTEN_API_SSL_VERIFY` is `true` | For example, for workers that reach `https://cti-ingest.example.com`, whose certificate your internal CA signed: ```yaml services: worker: volumes: - ./certs:/opt/certs:ro environment: - OPENCTI_URL=https://cti-ingest.example.com - OPENCTI_SSL_VERIFY=true - HTTPS_CA_CERTIFICATES=/opt/certs/internal-ca.pem ``` At start, each worker logs `Proxy certificates configured`, whatever the CA is for. The other settings of the workers' calls to the platform are in [Scale](https://filigran.io/docs/deploy/operate/scale/#shape-the-calls-of-the-workers-to-the-platform). XTM Composer and the integrations it runs have their own settings: see [Run integrations behind a proxy](https://filigran.io/docs/deploy/integrations/proxy/). ## Send OpenCTI traffic through a proxy {#send-opencti-traffic-through-a-proxy} OpenCTI sends its outgoing HTTP and HTTPS requests through the proxy you set, except to the hosts you exclude. Add the variables to the `opencti` service in `docker-compose.override.yml`: | Variable | Default | Set it to | | --- | --- | --- | | `HTTP_PROXY` | | The proxy for `http://` URLs, such as `http://proxy.example.com:3128` | | `HTTPS_PROXY` | | The proxy for `https://` URLs | | `NO_PROXY` | | The hosts reached directly, comma-separated: host names, patterns with `*`, IP ranges in CIDR notation | | `HTTPS_PROXY_CA` | `[]` | The CA of a proxy that inspects TLS, as a JSON list of paths or PEM contents | | `HTTPS_PROXY_REJECT_UNAUTHORIZED` | `false` | `true` to check the certificate of the HTTPS proxy | | `AWS__PROXY_ENABLED` | `false` | `true` to send the AWS SDK traffic (STS credentials and S3) through the same proxy | Inside the stack, the platforms call each other on their service names: exclude them, or those calls go to the proxy. ```yaml services: opencti: environment: - HTTPS_PROXY=http://proxy.example.com:3128 - HTTP_PROXY=http://proxy.example.com:3128 - NO_PROXY=localhost,opencti,openaev,xtm-one,elasticsearch,redis,rabbitmq,minio ``` OpenCTI applies these values with its own HTTP agents, and clears the proxy variables of its process so that its libraries do not apply them a second time. ## Set how OpenAEV agents check certificates and proxies {#set-how-openaev-agents-check-certificates-and-proxies} Two settings of the OpenAEV instance do not act on the instance: OpenAEV writes them into the installation commands of its agents and into the commands its agents run. They decide how the agents on your endpoints reach the instance. | Variable on `openaev` | Default | When `true` | | --- | --- | --- | | `OPENAEV_UNSECURED-CERTIFICATE` | `false` | The agents accept the certificate of the platform without checking it, for a platform with a self-signed certificate | | `OPENAEV_WITH-PROXY` | `false` | The agents use the proxy set on the endpoint (`HTTP_PROXY`, `HTTPS_PROXY`). When `false`, they connect directly | > **Warning** > > `OPENAEV_UNSECURED-CERTIFICATE=true` lets anyone between the endpoints and the platform impersonate it. Prefer a certificate your endpoints trust. The installation command carries the values of the moment: reinstall an agent to change them on it. ## Serve HTTPS from a platform {#serve-https-from-a-platform} A reverse proxy in front of the stack is the simpler way to serve HTTPS: see [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/). OpenCTI and OpenAEV can also serve HTTPS themselves. In xtm-docker, the health checks and the internal URLs (`http://opencti:8080`, `http://openaev:8080`) then all have to change to `https`. | | OpenCTI | OpenAEV | | --- | --- | --- | | Certificate and key | `APP__HTTPS_CERT__CRT`, `APP__HTTPS_CERT__KEY`: paths or PEM contents. `APP__HTTPS_CERT__PASSPHRASE` when the key is encrypted | `SERVER_SSL_ENABLED=true`, with a keystore: `SERVER_SSL_KEY-STORE`, `SERVER_SSL_KEY-STORE-TYPE` (`PKCS12` by default), `SERVER_SSL_KEY-STORE-PASSWORD`, `SERVER_SSL_KEY-ALIAS` | | Secure cookies | `APP__HTTPS_CERT__COOKIE_SECURE=true` | `OPENAEV_COOKIE-SECURE=true` | Behind a reverse proxy that serves HTTPS, set the secure cookies too: the browser then sends the session cookie over HTTPS only. OpenCTI needs to serve HTTPS itself for the **Client Certificate** login, which reads the user from the certificate the browser presents (see [Authentications](https://filigran.io/docs/opencti/administer/authentications/)). When that login is on at start, OpenCTI asks every client for a certificate: | Variable | Default | Effect | | --- | --- | --- | | `APP__HTTPS_CERT__CA` | `[]` | The CAs that sign the client certificates, as a JSON list of paths or PEM contents | | `APP__HTTPS_CERT__REJECT_UNAUTHORIZED` | `true` | OpenCTI refuses the TLS connection of a client without a certificate signed by one of those CAs. Workers, connectors, scripts and health probes then need a certificate too: set `false` to let them, and the users of other logins, connect without one. The **Client Certificate** login still accepts only a certificate signed by one of those CAs | OpenCTI reads whether **Client Certificate** is on when it starts: restart it after you turn that login on or off. All settings: [Network and security](https://filigran.io/docs/reference/opencti/configuration/#network-and-security). ## What's next {#what-s-next} - [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/). - [Configure the shared services](https://filigran.io/docs/deploy/configure/shared-services/), for the TLS settings of each service. - [Run integrations behind a proxy](https://filigran.io/docs/deploy/integrations/proxy/), for XTM Composer and the integrations. - [Harden the deployment](https://filigran.io/docs/deploy/operate/harden/). --- # Connect the modules to each other > Register 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. - URL: https://filigran.io/docs/deploy/configure/connect-modules/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers - Type: How-to guide This page connects the modules of the XTM stack: OpenCTI, OpenAEV and OpenCRQ to XTM One, OpenCTI and OpenAEV to each other, OpenCRQ to both, and XTM Composer to both. xtm-docker wires every link from `.env`, so on a new stack you mostly set one shared secret and check the result. Read it too when you publish the platforms on other URLs, or run a module outside xtm-docker. **Diagram: OpenCTI, OpenAEV and OpenCRQ register with XTM One, OpenAEV answers security coverage requests from OpenCTI, OpenCRQ reads both, and XTM Composer runs the integrations of OpenCTI and OpenAEV** - Integrations: XTM Composer (Deploys integrations in Docker) - Platforms: OpenCTI (http://opencti:8080), OpenAEV (http://openaev:8080), OpenCRQ (http://opencrq:3002) - At the center: XTM One (http://xtm-one:4000) Connections: - XTM Composer → OpenCTI: OpenCTI admin token - XTM Composer → OpenAEV: OpenAEV admin token - OpenAEV → OpenCTI: security coverage - OpenCTI → XTM One: registration token - OpenAEV → XTM One: registration token - OpenCRQ → XTM One: registration token - OpenCRQ → OpenCTI: reads threats - OpenCRQ → OpenAEV: reads results - XTM One → OpenCTI: calls as the user - XTM One → OpenAEV: calls as the user ## Before you start {#before-you-start} - The stack installed as [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/) describes. - After a change to `.env` or `docker-compose.override.yml`, run `docker compose up -d`: Docker Compose recreates the containers whose configuration changed. Leave `docker-compose.yml` as it is: see [Change the stack without editing docker-compose.yml](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml). ## The links and their settings {#the-links-and-their-settings} | Link | Where it is set in xtm-docker | Address | Credential | | --- | --- | --- | --- | | OpenCTI registers with XTM One | `opencti` service | `XTM__XTM_ONE_URL=http://xtm-one:4000` | `XTM__XTM_ONE_TOKEN`, from `PLATFORM_REGISTRATION_TOKEN` | | OpenAEV registers with XTM One | `openaev` service | `OPENAEV_XTM_ONE_URL=http://xtm-one:4000` | `OPENAEV_XTM_ONE_TOKEN`, from `PLATFORM_REGISTRATION_TOKEN` | | OpenCRQ registers with XTM One | `opencrq` service | `XTM_ONE__URL=http://xtm-one:4000`, and the public URL of OpenCRQ in `XTM_ONE__PLATFORM_URL` | `XTM_ONE__TOKEN`, from `PLATFORM_REGISTRATION_TOKEN` | | XTM One accepts the registrations | `xtm-one` and `xtm-one-worker` services | | `PLATFORM_REGISTRATION_TOKEN` | | XTM One calls OpenCTI, OpenAEV and OpenCRQ | `xtm-one` service | `OPENCTI_API_URL=http://opencti:8080`, `OPENAEV_API_URL=http://openaev:8080`, `OPENCRQ_API_URL=http://opencrq:3002` | A short-lived token signed for each user | | OpenAEV answers OpenCTI | `openaev` service | `openaev.xtm.opencti.api-url=http://opencti:8080/graphql` | `OPENAEV_XTM_OPENCTI_TOKEN`, from `OPENCTI_ADMIN_TOKEN` | | OpenCTI links to OpenAEV | `opencti` service | `XTM__OPENAEV_URL` (public) | None: a link in the interface | | OpenCRQ reads OpenCTI, for one tenant | `opencrq` service | `CONNECTORS__OPENCTI____URL` | `CONNECTORS__OPENCTI____TOKEN` | | OpenCRQ reads OpenAEV, for one tenant | `opencrq` service | `CONNECTORS__OPENAEV____URL` | `CONNECTORS__OPENAEV____TOKEN` | | XTM Composer runs integrations | `xtm-composer` service | `http://opencti:8080`, `http://openaev:8080` | `OPENCTI_ADMIN_TOKEN`, `OPENAEV_ADMIN_TOKEN` | ## Register the platforms with XTM One {#register-the-platforms-with-xtm-one} Each platform registers itself with XTM One, then registers again every 5 minutes: the registration is also its heartbeat. Once a platform is registered, its users get the XTM One assistant in its interface, and XTM One can work with its data. 1. Generate the registration token and put it in `.env`. OpenCTI, OpenAEV, OpenCRQ, `xtm-one` and `xtm-one-worker` all read this one variable, so the value is the same everywhere. ```bash TOKEN=$(openssl rand -hex 32) sed -i.bak "s/^PLATFORM_REGISTRATION_TOKEN=.*/PLATFORM_REGISTRATION_TOKEN=${TOKEN}/" .env ``` > **Warning** > > A platform outside xtm-docker, or a second XTM One, must use the exact same value. XTM One refuses every registration while the token is not set, and the published default `xtm-default-registration-token` cannot register a new platform. After 10 failed attempts in a minute, XTM One refuses a client with HTTP 429 until the minute ends. 2. Give XTM One the admin email of the platforms. XTM One matches users by email between the modules, so `XTM_ONE_ADMIN_EMAIL` must be the admin email of OpenCTI and OpenAEV. ```bash grep -E '^(OPENCTI|OPENAEV|XTM_ONE)_ADMIN_EMAIL=' .env ``` The three lines show the same address. 3. Apply the change. ```bash docker compose up -d ``` OpenCTI and OpenAEV register 30 seconds after they start, OpenCRQ as soon as it starts. **Check that it worked** *(OpenCTI 7.260811 and later)* Ask OpenCTI which version of XTM One it is registered with: ```bash set -a; . ./.env; set +a curl -s "http://localhost:$OPENCTI_PORT/graphql" \ -H "Authorization: Bearer $OPENCTI_ADMIN_TOKEN" -H 'Content-Type: application/json' \ -d '{"query":"{ about { dependencies { name version } } }"}' ``` The `XTM-One` entry shows a version number, not `Not connected`. For OpenCRQ, `docker compose logs opencrq | grep "Registered with XTM One"` prints a line: see [Finish the setup of OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/#finish-the-setup-after-the-install). In XTM One, **My Profile** > **MCP Endpoint** shows each registered platform as `Connected`. ## Public and internal URLs {#public-and-internal-urls} Each module has two URLs, and the signed calls between them use both. - The **public URL** is the one users open in their browser. It is also the module's identity: every token a module signs names it as the issuer, and every token sent to a module must be addressed to it. xtm-docker builds it from `*_EXTERNAL_SCHEME`, `*_HOST` and `*_PORT` in `.env`, and passes it as `APP__BASE_URL` to OpenCTI, `OPENAEV_BASE-URL` to OpenAEV, `XTM_ONE__PLATFORM_URL` to OpenCRQ, and `BASE_URL` to both XTM One containers. - The **internal URL** is only where the other containers connect: `http://opencti:8080`, `http://openaev:8080`, `http://opencrq:3002` and `http://xtm-one:4000`. The public host names therefore do not need to resolve inside Docker. OpenCRQ opens OpenCTI objects at the internal URL of its connection, as [Connect the first tenant](https://filigran.io/docs/deploy/configure/opencrq/#connect-the-first-tenant) describes. When you publish the platforms on other URLs, change the three variables of each platform together, with the scheme set to `https` over TLS, as described in [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/). Keep these rules: - `BASE_URL` must be the same on `xtm-one` and `xtm-one-worker`: the worker signs the tokens of background work, and the platforms refuse a token from another issuer. xtm-docker sets both from the same variables. - Keep `XTM_AUTH_ACCEPTED_AUDIENCES=http://xtm-one:4000` on `xtm-one`. It lets XTM One accept tokens addressed to the URL the platforms reach it on. *(OpenCTI 7.261030 and later)* > **Note** > > OpenCTI reads XTM One's public identity from `/xtm/auth/metadata` on `XTM__XTM_ONE_URL`, and addresses its tokens to that identity. - Keep the clocks of the hosts synchronized with NTP. Each module signs its tokens for 10 minutes, and XTM One refuses a token from a clock more than 60 seconds ahead. *(OpenCTI 7.260811 and later)* On OpenCTI, `xtm:auth:token_ttl` (`XTM__AUTH__TOKEN_TTL`) sets that lifetime, in seconds, for the tokens it signs to call XTM One for a user. The default, `600`, is also the maximum: a higher value counts as `600`. Lower it to shorten the window in which a stolen token works. **Check that it worked** XTM One publishes the identity it signs with: ```bash curl -s "http://localhost:$XTM_ONE_PORT/xtm/auth/metadata" ``` The `issuer` is the public URL of XTM One, such as `https://xtm-one.example.com`, whatever URL you reach it on. If the assistant answers but every action on a platform's data fails with `401`, look for the reason in the XTM One logs: the message names the issuer, the audience or the key URL that did not match. ```bash docker compose logs xtm-one | grep "XTM JWT rejected" ``` ## Link OpenCTI and OpenAEV {#link-opencti-and-openaev} xtm-docker links the two platforms in both directions: **OpenAEV to OpenCTI** OpenAEV registers in OpenCTI as an enrichment connector named `OpenAEV Coverage - `, which answers the security coverage requests of OpenCTI. | Setting on `openaev` | Value in xtm-docker | Role | | --- | --- | --- | | `OPENAEV_XTM_OPENCTI_ENABLE` | `true` | Turns the link on | | `OPENAEV_XTM_OPENCTI_URL` | The public URL of OpenCTI | Links to OpenCTI | | `openaev.xtm.opencti.api-url`, passed in `SPRING_APPLICATION_JSON` | `http://opencti:8080/graphql` | The API OpenAEV calls. Without it, OpenAEV calls the public URL followed by `/graphql` | | `OPENAEV_XTM_OPENCTI_TOKEN` | `${OPENCTI_ADMIN_TOKEN}` | The OpenCTI token OpenAEV registers with | The `api-url` key holds a hyphen, which Spring does not read from an environment variable of that form, so xtm-docker passes it as JSON. These keys configure the default tenant of OpenAEV. With several tenants, each one has its own keys, `openaev.xtm.opencti..enable`, `.url`, `.api-url` and `.token`: see [OpenAEV configuration](https://filigran.io/docs/reference/openaev/configuration/). **OpenCTI to OpenAEV** OpenCTI reads one setting: `XTM__OPENAEV_URL`, the public URL of OpenAEV. The OpenAEV entry of the product switcher in the OpenCTI interface opens it, and shows **Platform connected** while it is set. xtm-docker also sets `XTM__OPENAEV_API_URL=http://openaev:8080` and `XTM__OPENAEV_TOKEN=${OPENAEV_ADMIN_TOKEN}` on `opencti`. OpenCTI reads neither: it makes no call to OpenAEV, so no certificate setting applies to this link. The coverage data comes from OpenAEV, through the connector of the other tab. `xtm:opengrc_url` (`XTM__OPENGRC_URL`) is the URL of OpenCRQ, under its former name, OpenGRC. OpenCTI passes it to the interface, but no screen uses it yet. A later release renames it after OpenCRQ, still reads this name as a deprecated fallback, and adds OpenCRQ to the product switcher. xtm-docker sets both names to the public URL of OpenCRQ: `XTM__OPENGRC_URL`, the one OpenCTI 7.261119.0 reads, and `XTM__OPENCRQ_URL`, the one later releases read first. xtm-docker also sets `APP__GRAPHQL__PLAYGROUND__FORCE_DISABLED_INTROSPECTION=false` on `opencti`. OpenAEV sends a GraphQL introspection query before it registers its coverage connector, and OpenCTI refuses introspection by default since 7.261109.0: without this setting, the connector of the other tab does not register. See [Query OpenCTI with GraphQL](https://filigran.io/docs/develop/apis/graphql/). **Check that it worked** List the connectors OpenCTI knows: ```bash curl -s "http://localhost:$OPENCTI_PORT/graphql" \ -H "Authorization: Bearer $OPENCTI_ADMIN_TOKEN" -H 'Content-Type: application/json' \ -d '{"query":"{ connectors { name active connector_scope } }"}' ``` The list holds `OpenAEV Coverage - 2cffad3a-0001-4078-b0e2-ef74274022c3`, the default tenant of OpenAEV, with the scope `security-coverage`. ## Link OpenCRQ to OpenCTI and OpenAEV {#link-opencrq-to-opencti-and-openaev} OpenCRQ reads the threats of OpenCTI and the simulation results of OpenAEV, for each of its tenants separately. The connection of a tenant is two variables per platform on the `opencrq` service, keyed by the tenant's identifier, which its **Settings** > **Parameters** page in OpenCRQ shows under **Identifier**: see [Connect the first tenant](https://filigran.io/docs/deploy/configure/opencrq/#connect-the-first-tenant), and every connector in [Connectors of each tenant](https://filigran.io/docs/deploy/configure/opencrq/#connectors-of-each-tenant). A connection set this way comes up enabled. At each start, for every tenant it holds with these variables, OpenCRQ does the following: - **OpenAEV.** It creates the service account `OpenAEV (deployment)` in the tenant's **Connectors** group, and binds the OpenAEV connector to it. - **OpenCTI.** It creates the Live Stream `OpenCRQ threat feed` in OpenCTI, with the token of the connection, or brings its filter back to what OpenCRQ needs: the Intrusion Sets, Threat Actors, Campaigns and Reports, and the `targets`, `uses` and `attributed-to` relationships between them and what they target or use. It then binds that stream with the service account `OpenCTI (deployment)`. xtm-docker also prepares the other direction, from OpenAEV to OpenCRQ, for an OpenAEV release that reads it: on `openaev`, `OPENAEV_XTM_OPENCRQ_URL` (the public URL of OpenCRQ), `OPENAEV_XTM_OPENCRQ_TOKEN` (`OPENCRQ_ADMIN_TOKEN`) and `openaev.xtm.opencrq.api-url` (`http://opencrq:3002/trpc`, in `SPRING_APPLICATION_JSON`). OpenAEV 3.261118.0 reads none of them. The same `SPRING_APPLICATION_JSON` turns on `BULK_SNAPSHOT_EXPORT`, the preview feature of OpenAEV that the OpenAEV connector of OpenCRQ reads the simulation results from: see [Read the snapshot export of OpenAEV](https://filigran.io/docs/opencrq/use/sources/openaev/#read-the-snapshot-export-of-openaev). These steps never replace a choice a tenant administrator made in **Integrations**: an account already bound, a stream already chosen or a connector turned off stay as they are. A variable that names a tenant the platform does not hold is skipped, and a platform that does not answer leaves its connector for the next start. xtm-docker sets these variables for the tenant of `OPENCRQ_TENANT_ID`, by default the tenant OpenCRQ creates at its first start, which is therefore connected from that start. For a tenant created later, in the Enterprise Edition, add its variables and run `docker compose up -d` so that OpenCRQ starts again and connects it. To create or update its stream, the user of the OpenCTI token needs **Manage data sharing** or **Bypass all capabilities**: the admin token of OpenCTI holds the second. With another token, OpenCRQ changes nothing in OpenCTI, and a connector nobody configured stays idle, its page saying which capability the token lacks. Grant the capability in OpenCTI and restart OpenCRQ, or let a tenant administrator choose a stream with **Configure**: see [Connect OpenCTI with a Live Stream](https://filigran.io/docs/opencrq/use/sources/opencti/). OpenCRQ finds its stream again by a marker in the stream's description, so a stream renamed in OpenCTI still counts; an edit to its filter is replaced at the next start. **Check that it worked** Ask OpenCTI for its streams: ```bash curl -s "http://localhost:$OPENCTI_PORT/graphql" \ -H "Authorization: Bearer $OPENCTI_ADMIN_TOKEN" -H 'Content-Type: application/json' \ -d '{"query":"{ streamCollections { edges { node { name stream_live } } } }"}' ``` The list holds `OpenCRQ threat feed`, with `stream_live` set to `true`. In OpenCRQ, the tenant's **Settings** > **Security** > **Service accounts** lists `OpenCTI (deployment)` and `OpenAEV (deployment)`. ## Give XTM Composer its tokens {#give-xtm-composer-its-tokens} XTM Composer deploys and runs the integrations that users choose in the interface of OpenCTI and OpenAEV. xtm-docker configures it from `.env`: | Setting on `xtm-composer` | Value in xtm-docker | Role | | --- | --- | --- | | `MANAGER__ID` | `${XTM_COMPOSER_ID}` | The identifier of this XTM Composer, a UUID | | `OPENCTI__ENABLE`, `OPENAEV__ENABLE` | `true`, `true` | It manages both platforms | | `OPENCTI__URL`, `OPENAEV__URL` | `http://opencti:8080`, `http://openaev:8080` | The platforms, inside the stack | | `OPENCTI__TOKEN`, `OPENAEV__TOKEN` | `${OPENCTI_ADMIN_TOKEN}`, `${OPENAEV_ADMIN_TOKEN}` | The token it uses on each platform | | `OPENCTI__DAEMON__DOCKER__NETWORK_MODE`, `OPENAEV__DAEMON__DOCKER__NETWORK_MODE` | `${COMPOSE_PROJECT_NAME}_default` | The Docker network of the integrations it starts, so that they reach the platforms by service name | | `MANAGER__CREDENTIALS_KEY_FILEPATH` | `/keys/private_key.pem` | The RSA key that the `rsa-key-generator` service creates at the first start, in the `rsakeys` volume | Every other setting of XTM Composer is in [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/). ## What's next {#what-s-next} - [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/), for its other settings. - [Network and ports](https://filigran.io/docs/deploy/plan/network/), for every connection of the stack. - [XTM Suite settings of OpenCTI](https://filigran.io/docs/reference/opencti/configuration/#xtm-suite), every key of its links to the other modules. - [Compatibility matrix](https://filigran.io/docs/deploy/upgrade/compatibility/), for the versions that work together. --- # Sign in the first time and keep an emergency account > Set the bootstrap admin of OpenCTI, OpenAEV and XTM One, and the admin token of OpenCRQ, sign in the first time, and keep a local account that still works when single sign-on fails. - URL: https://filigran.io/docs/deploy/configure/first-access/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0 - For: platform engineers, administrators - Type: How-to guide Each platform of the XTM stack creates its first administrator from `.env`: the bootstrap admin. This page explains how the three bootstrap admins behave, how to sign in the first time and change their passwords, and how to keep one of them as a break-glass account, a local account that still works when single sign-on (SSO) is down. OpenCRQ has no bootstrap admin: its users sign in through XTM One, and its optional admin token works on its API only. Configuring SSO itself is in [Configure single sign-on](https://filigran.io/docs/opencti/administer/sso/). **Diagram: At every start, each platform resets its bootstrap admin to the values of .env, and the services that call the platforms read the same tokens** - Host: .env (OPENCTI_, OPENAEV_, XTM_ONE_ADMIN_*) - Services: Services calling the platforms (Worker, connectors, collectors, injectors, XTM Composer) - Platforms: OpenCTI (Email, password, token), OpenAEV (Email, password, token) - At the center: XTM One (Email, password) Connections: - .env → OpenCTI: every start - .env → OpenAEV: every start - .env → XTM One: every start - .env → Services calling the platforms: admin tokens - Services calling the platforms → OpenCTI: calls - Services calling the platforms → OpenAEV: calls ## Before you start {#before-you-start} - The stack installed as [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/) describes. - Shell access to the host, to read and change `.env`. ## The bootstrap admins {#the-bootstrap-admins} | Platform | Variables in `.env` | Passed to the platform as | Rules | | --- | --- | --- | --- | | OpenCTI | `OPENCTI_ADMIN_EMAIL`, `OPENCTI_ADMIN_PASSWORD`, `OPENCTI_ADMIN_TOKEN` | `APP__ADMIN__EMAIL`, `APP__ADMIN__PASSWORD`, `APP__ADMIN__TOKEN` | A valid email address and a UUID token. OpenCTI does not start while the password or the token is `ChangeMe` | | OpenAEV | `OPENAEV_ADMIN_EMAIL`, `OPENAEV_ADMIN_PASSWORD`, `OPENAEV_ADMIN_TOKEN` | The same names | A valid email address and a UUID token | | XTM One | `XTM_ONE_ADMIN_EMAIL`, `XTM_ONE_ADMIN_PASSWORD` | `ADMIN_EMAIL`, `ADMIN_PASSWORD` | The admin email of OpenCTI and OpenAEV: XTM One matches users by email. A password of 72 bytes at most | Every platform applies these values again **at every start**: it creates the admin the first time, then resets its email and password, and for OpenCTI and OpenAEV its token, to the values of `.env`. Three consequences: - A password changed in the interface lasts until the next restart. Change it in `.env`. - Anyone who can read `.env` and restart the stack can take over the admin accounts. Keep `.env` readable by its owner only (`chmod 600 .env`) and out of version control. - In xtm-docker, the admin tokens are also the credentials of the services that call the platforms: the OpenCTI worker and connectors, the OpenAEV collectors and injectors, XTM Composer, and the link between OpenCTI and OpenAEV. They all read the same variables of `.env`, so they follow a change of token. ### OpenCRQ {#opencrq} OpenCRQ keeps no password and has no sign-in form: XTM One signs its users in, and the account of `XTM_ONE_ADMIN_EMAIL` is its super administrator. See [Sign in to OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/#sign-in-to-opencrq). `APP__ADMIN__TOKEN` on the `opencrq` service is a token for the API, the counterpart of the admin tokens of OpenCTI and OpenAEV. It signs nobody in to the interface. xtm-docker sets it from `OPENCRQ_ADMIN_TOKEN` of `.env`, which `init-env.sh` draws as a UUID version 4. | `APP__ADMIN__TOKEN` | What OpenCRQ does | | --- | --- | | Unset | Both uses below are off. `/api/xtm/peer-tokens` answers `404` | | A UUID version 4 | A request with `Authorization: Bearer` and this token acts as the service account `Deployment admin token`, which OpenCRQ creates in the **Admin** group of the initial tenant, the tenant of `INITIAL_TENANT__ID`. The token also opens `/api/xtm/peer-tokens`, where a deployment manager gives another XTM module a service account and a token in that tenant, and `/api/xtm/peer-tokens/revoke` | | Another value | OpenCRQ does not start, and names the key | OpenCRQ applies it at every start, like the other platforms: it creates or updates the `Deployment admin token` account, and keeps no copy of the token, so a new value replaces the old one at the next start. The initial tenant is the one OpenCRQ creates at its first start, as [Configure OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/#connectors-of-each-tenant) describes. If it does not exist when OpenCRQ starts, OpenCRQ refuses the token on the API. After the initial tenant was deleted, the next start recreates it, with the same identifier, only when no tenant is left: the token then works again. While other tenants remain, it is not recreated, and the token stays refused. To cut the token off the API at once, choose **Disable** for the `Deployment admin token` service account of the initial tenant: see [Let integrations sign in with service accounts](https://filigran.io/docs/opencrq/administer/service-accounts/). No restart is needed, and a restart does not enable it again. The account does not guard `/api/xtm/peer-tokens`: only unsetting `APP__ADMIN__TOKEN` and restarting OpenCRQ closes it. ## Sign in the first time {#sign-in-the-first-time} 1. Read the admin accounts in `.env`. ```bash grep -E '^(OPENCTI|OPENAEV|XTM_ONE)_ADMIN_(EMAIL|PASSWORD)=' .env ``` 2. Open each platform at its public URL, `http://localhost:8080` for OpenCTI, `http://localhost:8081` for OpenAEV and `http://localhost:8090` for XTM One with the values of `.env.sample`, and sign in with its email and password. **Check that it worked** Each platform opens with the admin signed in. ## Change an admin password {#change-an-admin-password} 1. Set the new password in `.env`. For OpenCTI: ```bash NEW=$(openssl rand -hex 24) sed -i.bak "s/^OPENCTI_ADMIN_PASSWORD=.*/OPENCTI_ADMIN_PASSWORD=${NEW}/" .env ``` Use `OPENAEV_ADMIN_PASSWORD` or `XTM_ONE_ADMIN_PASSWORD` for the other platforms. 2. Recreate the container so that it reads the new value. ```bash docker compose up -d ``` **Check that it worked** After the platform is healthy again (`docker compose ps`), the new password signs you in and the old one is refused. ## Keep a break-glass account {#keep-a-break-glass-account} When users sign in through SSO only, an outage, a misconfiguration or an expired certificate of the identity provider locks everyone out, administrators included. A break-glass account is a local administrator kept for that case, and used only then. The bootstrap admin is that account: its password is in `.env`, and the platforms apply it at every start. To keep it usable, leave local authentication on next to SSO. The sign-in page then shows the email and password form with the SSO buttons. Regular users sign in through SSO; the bootstrap admin uses the form when SSO fails. **Diagram: Regular users sign in through single sign-on, and the bootstrap admin keeps the local form for the day single sign-on fails** - Who signs in: Regular users (Every day), Bootstrap admin (Break-glass account, password in .env) - Sign-in page: SSO buttons (One per provider), Email and password form (Local authentication left on) - Checked by: Identity provider (Can be down or misconfigured), Local accounts (Bootstrap admin from .env) Connections: - Regular users → SSO buttons: sign in - Bootstrap admin → Email and password form: when SSO fails - SSO buttons → Identity provider: checks - Email and password form → Local accounts: checks **OpenCTI** Local authentication is the **Local** strategy of **Settings > Security > Authentications**. Leave it enabled. OpenCTI refuses to disable it while no other strategy is enabled. The sign-in form checks an email and a password against each enabled LDAP provider first, then against the local accounts. The bootstrap admin is the exception to the **Local** switch: OpenCTI accepts its email and password even while **Local** is disabled. The sign-in page shows the form only while **Local** or an LDAP provider is enabled. So with an LDAP provider in place, the bootstrap admin can still sign in through the form when the directory is down. If local authentication was disabled and SSO no longer works: 1. Add this variable to the `opencti` service in `docker-compose.override.yml`, as [Change the stack without editing docker-compose.yml](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml) describes: ```yaml services: opencti: environment: - APP__AUTHENTICATION__FORCE_LOCAL=true ``` 2. Run `docker compose up -d`. At start, OpenCTI turns local authentication back on and logs `[MIGRATION-SAFETY] No other provider available, forcing local_auth to enabled`, at the `warn` level: xtm-docker sets `APP__APP_LOGS__LOGS_LEVEL=error`, which hides it. 3. Sign in with `OPENCTI_ADMIN_EMAIL` and `OPENCTI_ADMIN_PASSWORD`, fix the SSO strategy, and check that the **Local** strategy is enabled. 4. Remove the variable from `docker-compose.override.yml`, then run `docker compose up -d` again. OpenCTI also turns local authentication back on by itself at start when no other way to sign in is usable, for example after the Enterprise Edition license that SSO needs has expired. > **Warning** > > `APP__ADMIN__EXTERNALLY_MANAGED=true` locks the bootstrap admin at every start. Set it only if another administrator can always sign in: it removes the break-glass account. **OpenAEV** Local authentication is a setting of the platform, `OPENAEV_AUTH-LOCAL-ENABLE`. xtm-docker sets it to `true` in the `openaev` service. Keep it when you enable SSO with `OPENAEV_AUTH-OPENID-ENABLE=true` or `OPENAEV_AUTH-SAML2-ENABLE=true`: the three settings are independent, and the sign-in page shows the form above one button per SSO provider. If local authentication was turned off, set `OPENAEV_AUTH-LOCAL-ENABLE=true` again in the `openaev` service of `docker-compose.override.yml`, run `docker compose up -d`, and sign in with `OPENAEV_ADMIN_EMAIL` and `OPENAEV_ADMIN_PASSWORD`. **XTM One** Local authentication is the **Local Authentication** switch in **Settings** > **Access and security** > **Authentication** of XTM One, on by default. While it is off, nobody can sign in with a password: leave it on to keep the bootstrap admin as a break-glass account. At every start, XTM One also gives the `XTM_ONE_ADMIN_EMAIL` account back the administrator role and re-enables it, so an account disabled or demoted in the interface works again after a restart. When XTM Hub decides who is an administrator of XTM One, it never demotes this account. Its email cannot be changed in **My Profile**: whoever holds that address is the platform administrator, so XTM One refuses the change. To use another address, change `XTM_ONE_ADMIN_EMAIL` in `.env` and run `docker compose up -d`: XTM One then creates a new admin account with that address, and leaves the account of the previous address as it was. **OpenCRQ** OpenCRQ has no local account to keep: **Sign in with XTM One** is its only way in, and the account of `XTM_ONE_ADMIN_EMAIL` is its super administrator. The break-glass account of XTM One is therefore the one of OpenCRQ too: once it has signed in to XTM One with its password, it opens OpenCRQ. When XTM One does not answer, the sign-in page of OpenCRQ shows **XTM One is unavailable** and nobody can sign in to the interface until XTM One is back. The token of `APP__ADMIN__TOKEN` does not depend on XTM One and still works on the API: see [OpenCRQ](#opencrq). > **Tip** > > Store the passwords of the bootstrap admins in your secret store, with the procedure to use them, and review the audit logs after each use. ## What's next {#what-s-next} - [Configure single sign-on](https://filigran.io/docs/opencti/administer/sso/), for the identity provider of each platform. - [SSO migration from environment variables to UI](https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/7-260224-sso-migration/), if OpenCTI still takes its SSO from the environment. - [Harden the deployment](https://filigran.io/docs/deploy/operate/harden/), for sessions and the other security settings. --- # Map tiles > Where OpenCTI takes the tiles and country boundaries of its maps, and how to replace them with your own files, with no external map server. - URL: https://filigran.io/docs/deploy/configure/maps/ - Products: OpenCTI 7.261119.0 - For: platform engineers, administrators - Type: How-to guide OpenCTI draws its maps, such as the locations of an entity or the map widgets of dashboards, from map data it serves itself. This page explains where that data comes from, and how to replace it with a more detailed or regional map. Since version 7.260811, maps work with no configuration, air-gapped deployments included; before, the browsers load the tiles from a tile server. *(OpenCTI 7.260811 and later)* ## How OpenCTI serves its maps {#how-opencti-serves-its-maps} The browser renders the maps from vector tiles in a [PMTiles](https://pmtiles.io/) file. OpenCTI serves it at `/maps/world.pmtiles` and answers range requests, so the browser downloads only the tiles of the area and zoom level it shows. No external map server is involved, and the map follows the light or dark theme of the interface. **Diagram: The browser loads its map tiles from OpenCTI, which serves the custom file of its S3 bucket when an administrator uploaded one, else the file bundled in its image** - Browsers: Browser (Renders vector tiles), Administrator (Settings > Parameters > Map configuration) - OpenCTI: OpenCTI (/maps/world.pmtiles) - Map files: Custom file (In the S3 bucket of OpenCTI), Bundled file (In the image of OpenCTI) Connections: - Browser → OpenCTI: range requests - Administrator → OpenCTI: upload - OpenCTI → Custom file: wins when present - OpenCTI → Bundled file: otherwise The tiles come from one of two files: - the bundled file, in the image of OpenCTI, at the path `APP__MAP_BUNDLED_FILE_PATH` (`./static/maps/world.pmtiles` by default); - a custom file, uploaded by an administrator and stored in the S3 bucket of OpenCTI. *(OpenCTI 7.261030 and later)* The country boundaries, the polygons that color countries in map widgets, are a second file, served at `/maps/countries.json`. They come the same way from a bundled file, at `APP__MAP_COUNTRIES_BUNDLED_FILE_PATH` (`./static/maps/countries.json` by default), or from a custom file. Replacing one file does not replace the other. A custom file, when there is one, wins over the bundled one. *(OpenCTI 7.261030 and later)* Browsers keep each file for up to 5 minutes, so an upload or a deletion reaches every browser within that time. The `APP__MAP_*_BUNDLED_FILE_PATH` settings only move the bundled files, for a custom image of OpenCTI: you do not need them to use your own map. ## Get a PMTiles file {#get-a-pmtiles-file} [Protomaps](https://protomaps.com/) publishes a daily build of the whole planet, about 137 GB. A low-zoom extract, from zoom 0 to 6, is about 30 to 80 MB and enough for OpenCTI. The [go-pmtiles](https://github.com/protomaps/go-pmtiles) command line extracts it with range requests, without downloading the whole planet: ```bash pmtiles extract https://build.protomaps.com/20260722.pmtiles world.pmtiles --maxzoom=6 ``` Replace the date with that of a recent build. For a regional map, the [Protomaps command line](https://docs.protomaps.com/guide/getting-started) extracts an area with `--bbox`; [planetiler](https://github.com/onthegomap/planetiler) builds tiles from OpenStreetMap data. ## Upload your map {#upload-your-map} *(OpenCTI 7.261030 and later)* 1. Go to **Settings > Parameters > Map configuration**. 2. Open the menu of **Custom map** and choose **Upload**, then select your `.pmtiles` file. When a custom map is already in place, **Replace** uploads a new one in its place. **Check that it worked** The **Custom map** row shows your file, with its name and size. Within 5 minutes, the maps of OpenCTI show your tiles. To go back to the bundled map, open the menu of **Custom map**, choose **Delete** and confirm. *(OpenCTI 7.261030 and later)* ## Upload your country boundaries {#upload-your-country-boundaries} The file is a GeoJSON `FeatureCollection`, plain or gzipped. Every feature carries an `ISO3` property: OpenCTI colors a country with the polygons whose `ISO3` matches one of its aliases, and ignores the other properties. The bundled file comes from the `ne_10m_admin_0_countries` layer of [Natural Earth](https://www.naturalearthdata.com/downloads/10m-cultural-vectors/); the script `scripts/generate-countries-geojson.sh` of the OpenCTI repository builds it, and can start your own. 1. Go to **Settings > Parameters > Map configuration**. 2. Open the menu of **Custom country boundaries** and choose **Upload**, or **Replace** when a custom file is in place, then select your file. **Check that it worked** The row shows your file. In the browser tab you uploaded from, the next map uses the new boundaries at once. OpenCTI checks the file and keeps the previous one when the new file is an unreadable gzip archive, is not valid JSON, is not a `FeatureCollection` with at least one feature, or has a feature whose `ISO3` property is missing, empty or not a string. **Download**, in the same menu, returns the stored file as plain GeoJSON. **Delete** goes back to the bundled boundaries. ## Coming from an external tile server {#coming-from-an-external-tile-server} Earlier versions loaded raster tiles from a tile server, set with `APP__MAP_TILE_SERVER_DARK` and `APP__MAP_TILE_SERVER_LIGHT`. OpenCTI now ignores these settings: remove them, and the tile server if you ran one. ## What's next {#what-s-next} - [Install offline or with FIPS 140-3](https://filigran.io/docs/deploy/install/air-gapped/). - [Configure the shared services](https://filigran.io/docs/deploy/configure/shared-services/), for the S3 bucket that holds the custom files. --- # Configure OpenCRQ > Finish 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. - URL: https://filigran.io/docs/deploy/configure/opencrq/ - Products: OpenCRQ 0.261123.0 - For: platform engineers - Type: How-to guide This page sets the configuration an OpenCRQ deployment needs: where its database and file storage are, how it reaches XTM One, which tools each tenant reads, what it reports, and how it listens. Every setting is an environment variable of the `opencrq` service, read when the platform starts. OpenCRQ starts with the rest of the XTM stack, as [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/) describes: [Finish the setup after the install](#finish-the-setup-after-the-install) gives it its public URL, then XTM One's administrator signs in to its first tenant. Come back here to connect tenants to OpenCTI and OpenAEV, size the database connections, turn the usage telemetry off, or move a service out of the stack. The settings not covered here, such as the background jobs, are in the [OpenCRQ configuration](https://filigran.io/docs/reference/opencrq/configuration/) reference. **Diagram: OpenCRQ reads its settings from environment variables when it starts, refuses a wrong one, and uses them to reach its database, its file storage, XTM One, the tools each tenant connects and your monitoring** - Settings: Environment variables (POSTGRES__HOST and others) - OpenCRQ: OpenCRQ (Checks them at boot) - Deployment: PostgreSQL (Required), S3 storage (Optional), XTM One (Required) - Per tenant: Connected tools (OpenCTI, OpenAEV, NVD, Defender, Drata) - Monitoring: Your monitoring (Metrics, traces, logs) Connections: - Environment variables → OpenCRQ: read at start - OpenCRQ → PostgreSQL: POSTGRES__* - OpenCRQ → S3 storage: FILE_STORAGE__* - OpenCRQ → XTM One: XTM_ONE__* - OpenCRQ → Connected tools: CONNECTORS__* - OpenCRQ → Your monitoring: TELEMETRY__* ## What xtm-docker runs for OpenCRQ {#what-xtm-docker-runs-for-opencrq} **Diagram: OpenCRQ runs in the XTM stack, keeps its data in its own database and bucket of the shared services, and registers with XTM One, through which its users sign in** - Users: Browser (https://opencrq.example.com) - OpenCRQ: opencrq (HTTP and worker processes) - XTM One: XTM One (http://xtm-one:4000) - Shared services: PostgreSQL (opencrq database), S3 storage (opencrq bucket) Connections: - Browser → opencrq: through the reverse proxy - Browser → XTM One: signs in - opencrq → XTM One: registers every 5 minutes - XTM One → opencrq: calls as the user - opencrq → PostgreSQL: its data - opencrq → S3 storage: uploaded files `modules/opencrq.yml` adds three services to the stack: | Service | What it does | When | | --- | --- | --- | | `opencrq-db-init` | Creates the role of OpenCRQ, `OPENCRQ_POSTGRES_USER`, not a superuser, and the `opencrq` database it owns, in the shared `pgsql` instance. OpenCRQ connects as that role | At each start; it sets the role's password from `.env` again, and changes nothing else once they exist | | `opencrq-bucket-init` | Creates the OpenCRQ bucket in the shared S3 storage, with the AWS command line interface: in production, OpenCRQ never creates it | At each start; it changes nothing once the bucket exists | | `opencrq` | OpenCRQ itself, the image `filigran/opencrq`, public on Docker Hub. It listens on port 3002, published on port 8082 of the host, and answers its health check on port 8444 inside the container | Once both jobs succeeded and XTM One is healthy | The stack also gives the shared PostgreSQL 1 GB of shared memory, which the large queries of OpenCRQ need, and lets XTM One reach OpenCRQ inside the stack (`OPENCRQ_API_URL=http://opencrq:3002`). | `.env` setting | Default | What it sets | | --- | --- | --- | | `OPENCRQ_EXTERNAL_SCHEME`, `OPENCRQ_HOST`, `OPENCRQ_PORT` | `http`, `localhost`, `8082` | The public URL of OpenCRQ. It is also its identity towards XTM One: the tokens OpenCRQ signs name it, and the tokens XTM One sends must be addressed to it | | `OPENCRQ_POSTGRES_USER`, `OPENCRQ_POSTGRES_PASSWORD` | `opencrq`, drawn by `init-env.sh` | The PostgreSQL role of OpenCRQ, which must differ from `POSTGRES_USER` and `XTM_ONE_POSTGRES_USER`. Set the role once: changed after the first start, the `opencrq` database and its tables stay owned by the old role. Without the password, `opencrq-db-init` fails and OpenCRQ does not start | | `OPENCRQ_ADMIN_TOKEN` | A UUID version 4, drawn by `init-env.sh` | The admin token of the OpenCRQ API (`APP__ADMIN__TOKEN`): see [Sign in the first time and keep an emergency account](https://filigran.io/docs/deploy/configure/first-access/#opencrq). Another value stops OpenCRQ at start | | `OPENCRQ_S3_BUCKET` | `opencrq` | The bucket of OpenCRQ in the shared S3 storage | | `OPENCRQ_TENANT_ID` | Empty, read as `01a043da-ff47-72c2-aaa4-7da56d85c83e` | The identifier of the tenant the OpenCTI and OpenAEV connectors of the `opencrq` service feed | OpenCRQ registers with XTM One with `PLATFORM_REGISTRATION_TOKEN`, as OpenCTI and OpenAEV do. Its users sign in through XTM One: OpenCRQ keeps no password, and has no sign-in form of its own. OpenCRQ also reaches the internet: `telemetry.ocrq.filigran.io` for the anonymous usage telemetry, on by default; `raw.githubusercontent.com` for the default threats, once a tenant loads them; and the CVE sources (NIST, FIRST and CISA), once a tenant administrator turns them on. See [Network and ports](https://filigran.io/docs/deploy/plan/network/#outbound-connections). At its first start, OpenCRQ creates its first tenant, `Default`, with the identifier `01a043da-ff47-72c2-aaa4-7da56d85c83e`. The connections to OpenCTI and OpenAEV are set per tenant, by the tenant's identifier, and xtm-docker sets them for the tenant of `OPENCRQ_TENANT_ID`, that same identifier by default: the first tenant is connected from that start, as [Connect the first tenant](#connect-the-first-tenant) shows. OpenCRQ adds two processes to the host: the HTTP server, with a heap of 512 MB, and the worker that runs the background jobs, with a heap of 4,096 MB. Plan about 5 GB for OpenCRQ on top of what the rest of the stack needs, and about 50 more PostgreSQL connections at peak: see [Requirements](https://filigran.io/docs/deploy/plan/requirements/) and [Sizing](https://filigran.io/docs/deploy/plan/sizing/). ## Finish the setup after the install {#finish-the-setup-after-the-install} OpenCRQ starts with the rest of the stack. These steps give it its public URL and check that it registered with XTM One. You need: - The stack installed and running as [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/) describes, with `PLATFORM_REGISTRATION_TOKEN` set to a value of your own: see [Connect the modules to each other](https://filigran.io/docs/deploy/configure/connect-modules/#register-the-platforms-with-xtm-one). Run the commands of this page from its folder. - The host name users will type, such as `opencrq.example.com`, served over HTTPS by your reverse proxy: see [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/). XTM One sends users back to OpenCRQ at that URL after they sign in, and accepts it only over HTTPS, or on `localhost` for a trial. The session cookie of OpenCRQ is `Secure`: over plain HTTP, browsers keep it on `localhost` only. - The credentials of XTM One's administrator, the account of `XTM_ONE_ADMIN_EMAIL` in `.env`: until you add members to the first tenant, it is the only account that can open OpenCRQ. 1. Check the public URL of OpenCRQ in `.env`, which [Configure the stack](https://filigran.io/docs/deploy/install/docker-compose/#configure-the-stack) sets with the other platforms. ```bash grep -E '^OPENCRQ_(EXTERNAL_SCHEME|HOST|PORT)=' .env ``` **Check that it worked** `OPENCRQ_EXTERNAL_SCHEME=https`, `OPENCRQ_HOST=opencrq.example.com` and `OPENCRQ_PORT=443`. `OPENCRQ_PORT` is the port of the public URL, 443 behind the reverse proxy: the host still publishes OpenCRQ on port 8082. After a change, run `docker compose up -d`. 2. Check that OpenCRQ runs. Its first start creates its tables and loads the reference catalogues: allow a minute or two. The stack runs `filigran/opencrq:latest`, the latest release of OpenCRQ, like the other modules, unless you [pinned the image versions](https://filigran.io/docs/deploy/install/docker-compose/#pin-the-image-versions). ```bash docker compose ps opencrq-db-init opencrq-bucket-init opencrq --all --format '{{.Service}} {{.State}} {{.Health}}' docker compose exec opencrq wget -qO- http://localhost:8444/health ``` **Check that it worked** Both jobs show `exited`, and `opencrq` shows `running healthy`. Then `{"healthy":true,...}`, with the state of each process: each line `childrenHealthStates` lists says `RUNNING`. 3. Check that OpenCRQ registered with XTM One. ```bash docker compose logs opencrq | grep "Registered with XTM One" ``` The line names the version of XTM One, and `eeEnabled` says whether the XTM license covers OpenCRQ. OpenCRQ registers when it starts, then every 5 minutes. A `XTM One registration failed` line with HTTP 401 means that XTM One refused the token. Either OpenCRQ and XTM One hold different values, as after a `docker compose restart` that kept the old ones, or the token is the published default `xtm-default-registration-token`, which cannot register a new platform. Set a value of your own in `PLATFORM_REGISTRATION_TOKEN` and run `docker compose up -d`. 4. Put the reverse proxy in front of port 8082 of the host, for `opencrq.example.com`. Sign-in goes through this URL: XTM One sends the browser back to `https://opencrq.example.com/api/auth/xtm/callback`, and a sign-in started at another address first moves the browser there. **Check that it worked** ```bash docker compose logs opencrq | grep "Sign-in with XTM One stays off" ``` The command prints nothing. A line means the public URL of OpenCRQ is neither HTTPS nor `localhost`: XTM One would refuse it, so nobody can sign in. Fix `OPENCRQ_EXTERNAL_SCHEME` and run `docker compose up -d` again. ## Sign in to OpenCRQ {#sign-in-to-opencrq} OpenCRQ has no first-administrator form. XTM One's administrator is OpenCRQ's super administrator: every right on the platform and in every tenant, given again at each sign-in, without being a member of any group. They sign in to the first tenant and give it the name of the organization OpenCRQ prices risk for. 1. Open `https://opencrq.example.com` in a browser and click **Sign in with XTM One**. 2. Sign in to XTM One with the account of `XTM_ONE_ADMIN_EMAIL`. If XTM One already has a session in this browser, it sends you back at once. 3. OpenCRQ opens in the `Default` tenant, on its **Get started** wizard the first time. 4. Open **Settings > Security**, choose **Platform** at the top of the menu, and open **Tenants**. 5. Choose **Rename** in the actions menu of the `Default` card, enter the **Name** of the organization, and click **Save**. ![The Tenants page of the platform shows the card of the tenant OpenCRQ created at its first start, with its number of members.](https://filigran.io/docs/shots/c28b4c572f2aed0f8864807ac74e451e70d113a728c59cd93689f3d64c48962c.webp) To name the tenant from the first start instead, set `INITIAL_TENANT__NAME` on the `opencrq` service before that start: see [Connectors of each tenant](#connectors-of-each-tenant). The tenant starts with an **Admin** group and a **Connectors** group, and with no member: you reach it as super administrator, tagged **Super Administrator** in its **Users** list, without belonging to it. Add its people from **Settings > Security > Users** with **Add members**: see [Give people access with users, groups and roles](https://filigran.io/docs/opencrq/administer/users-and-roles/). Anyone else who signs in before then reads **You don't have access to OpenCRQ yet**. A Community Edition platform serves this one tenant; more require the Enterprise Edition: see [Run several tenants in one platform](https://filigran.io/docs/opencrq/administer/tenants/). When the sign-in does not work: | OpenCRQ shows | What it means | | --- | --- | | **XTM One is unavailable**, with **Try again** | XTM One does not answer OpenCRQ, or has given it no sign-in client yet. There is no other way in. Check that XTM One is healthy, that `PLATFORM_REGISTRATION_TOKEN` is not the published default (XTM One then creates no sign-in client), and the reverse proxy step of [Finish the setup after the install](#finish-the-setup-after-the-install). Then click **Try again** | | **You are not signed in**, with the reason | XTM One refused or interrupted the sign-in, or it was cancelled. Click **Sign in with XTM One** again | | **You are not signed in**, with **Your XTM One account cannot be matched to an account here. Ask an administrator.** | Another OpenCRQ account already holds the email of this XTM One user, whatever its case, and is not linked to them. The log of `opencrq` says `Sign-in with XTM One refused: email of another account`, with the XTM One subject (`sub`) of the user it refused. An XTM One user deleted and created again comes back with a new subject: OpenCRQ refuses them the same way, and nothing in its interface ties their old account to the new one | | **You don't have access to OpenCRQ yet** | You signed in with another XTM One account than its administrator. Click **Sign out**, sign out of XTM One too, and sign in again with the account of `XTM_ONE_ADMIN_EMAIL` | ## Connect the first tenant {#connect-the-first-tenant} xtm-docker connects the tenant of `OPENCRQ_TENANT_ID` to the stack's OpenCTI and OpenAEV, with their admin tokens: by default the first tenant, `01a043da-ff47-72c2-aaa4-7da56d85c83e`. You have nothing to set. Both connectors come up enabled at the first start: OpenCRQ creates their service accounts, `OpenCTI (deployment)` and `OpenAEV (deployment)`, and creates in OpenCTI the Live Stream `OpenCRQ threat feed`, which carries the threats and their relationships (`targets`, `uses`, `attributed-to`). The OpenCTI token needs **Manage data sharing** or **Bypass all capabilities** for that, which the admin token holds: see [Link OpenCRQ to OpenCTI and OpenAEV](https://filigran.io/docs/deploy/configure/connect-modules/#link-opencrq-to-opencti-and-openaev). The tenant's **Integrations** shows both connectors enabled. A tenant's identifier is in its **Settings > Parameters**, under **Identifier**. If you set `INITIAL_TENANT__ID` on the `opencrq` service, set `OPENCRQ_TENANT_ID` in `.env` to the same value: OpenCRQ skips a connection that names a tenant it does not hold. To connect another tenant, created in the Enterprise Edition, set the variables [Connectors of each tenant](#connectors-of-each-tenant) lists for its identifier, then run `docker compose up -d`. The links OpenCRQ shows to OpenCTI objects open at the URL of the tenant's connection, `http://opencti:8080` in xtm-docker, which only the containers of the stack reach. The **Filigran products** menu, next to the OpenCRQ logo, opens that same URL for OpenCTI and for OpenAEV when the tenant is connected to them, and their product pages on filigran.io otherwise. xtm-docker also gives OpenCRQ the public URLs of OpenCTI and OpenAEV, as `XTM__OPENCTI_URL` and `XTM__OPENAEV_URL`, but the menu does not read them: only the `xtm.products` API returns them. **Example: Bring OpenCRQ into service in Example CERT's stack** Example CERT runs the XTM stack for its member hotel chains, with OpenCTI at `https://opencti.example.com`, XTM One at `https://xtm-one.example.com` and OpenCRQ at `https://opencrq.example.com`, for Grand Meridian Hotels and the other members. Once the stack runs, its platform engineer checks OpenCRQ: ```bash grep -E '^OPENCRQ_(EXTERNAL_SCHEME|HOST|PORT)=' .env docker compose logs opencrq | grep -E "Registered with XTM One|Sign-in with XTM One stays off" ``` `.env` holds the three values of the public URL, and the log of `opencrq` shows `Registered with XTM One`, and no `Sign-in with XTM One stays off` line. Once the reverse proxy publishes `opencrq.example.com`, the CERT's administrator, `admin@example.com` in XTM One (`XTM_ONE_ADMIN_EMAIL`), clicks **Sign in with XTM One** and lands in the `Default` tenant. They rename it `Grand Meridian Hotels` on the **Tenants** page. Its **Settings > Parameters** shows the **Identifier** `01a043da-ff47-72c2-aaa4-7da56d85c83e`, the one `OPENCRQ_TENANT_ID` keeps when left empty. Its **Integrations** already show the OpenCTI and OpenAEV connectors enabled, and the OpenCTI one reads the Live Stream `OpenCRQ threat feed` that OpenCRQ created with the admin token. The administrator then adds Grand Meridian's risk manager with **Add members**. ## How OpenCRQ reads its settings {#how-opencrq-reads-its-settings} - **A variable per key.** The key in upper case, with `__` between its levels: `POSTGRES__POOL_MAX` is `postgres.pool_max`. Lists take commas. - **Checked at start.** OpenCRQ checks the whole configuration against its schema when it starts. A value of the wrong type, a required key left blank, or a block set halfway stops the platform with a message that names the key. Nothing is reloaded while it runs: after a change, recreate the container with `docker compose up -d`. - **Defaults in the image.** The image ships the defaults of the background jobs, the recomputations and the processes. A variable overrides its key. ## Database {#database} | Variable | Default | What it sets | | --- | --- | --- | | `POSTGRES__HOST`, `POSTGRES__PORT` | Required | Where PostgreSQL listens | | `POSTGRES__DATABASE` | Required | The database OpenCRQ owns. It creates its tables there at each start, through its migrations | | `POSTGRES__USER`, `POSTGRES__PASSWORD` | Required | The role it connects as, the owner of the database | | `POSTGRES__POOL_MAX` | `20`, at least `10` | The connections each process may open in its pool | The migrations create the `unaccent` extension. The owner of the database can create it, but a managed service that allows extensions one by one refuses any it does not list, and OpenCRQ then stops at its first start: on Azure Database for PostgreSQL, add `unaccent` to the `azure.extensions` server parameter first. Count the connections against PostgreSQL's `max_connections`, shared with the other modules of the instance. With the default `split` profile, OpenCRQ runs two processes, each with its own pool of `POSTGRES__POOL_MAX` connections; the worker also keeps 5 connections for the job runtime and one per channel of database notifications it listens to. Plan about 50 connections with the defaults. Give PostgreSQL at least 1 GB of shared memory (`shm_size: 1gb` in Docker Compose, a memory `emptyDir` on Kubernetes). With the 64 MB a container gets by default, a large query fails with `could not resize shared memory segment`, and the background job that ran it fails with it. ## File storage {#file-storage} OpenCRQ keeps the files people upload, such as the STIX bundles of the **Threats** page, in an S3-compatible bucket, each tenant under its own prefix. The file storage is optional: | What you set | What OpenCRQ does | | --- | --- | | No `FILE_STORAGE__*` variable | Starts without file storage: on the **Threats** page, **Analyze new bundle** is greyed out, with **File storage is not configured** | | The block, with a wrong endpoint, wrong keys or a bucket that does not exist | Stops at start with a message: `File storage is misconfigured — fix FILE_STORAGE__* before restarting` | | The block, right, with the storage briefly unreachable | Starts, logs the error, and connects at the first upload | | Variable | Default | What it sets | | --- | --- | --- | | `FILE_STORAGE__ENDPOINT` | Required in the block | The S3 API, such as `http://minio:9000` | | `FILE_STORAGE__ACCESS_KEY`, `FILE_STORAGE__SECRET_KEY` | Required in the block | The keys OpenCRQ signs in with | | `FILE_STORAGE__BUCKET` | `opencrq` | The bucket. Create it before the first start: OpenCRQ never creates it in production | | `FILE_STORAGE__REGION` | `eu-west-3` | The region the S3 client sends. Any value works for MinIO-compatible storage | ## XTM One {#xtm-one} OpenCRQ does not start without XTM One. It registers with XTM One when it starts and every 5 minutes, which brings back its edition, and XTM One calls it as the person who asks when an AI agent works on its data. | Variable | What it sets | | --- | --- | | `XTM_ONE__URL` | Where OpenCRQ reaches XTM One. An internal address works, such as `http://xtm-one:4000` | | `XTM_ONE__TOKEN` | The registration token, the value of `PLATFORM_REGISTRATION_TOKEN` on XTM One | | `XTM_ONE__PLATFORM_URL` | The public URL of OpenCRQ, such as `https://opencrq.example.com`. It names OpenCRQ in the tokens it signs and in its registration | | `XTM_ONE__ENABLED` | Nothing: XTM One cannot be turned off. Leave it out; any value other than `true` stops the platform | Keep these rules: - **Your own registration token.** Set it before the first start: OpenCRQ registers with XTM One with this token, and the registration brings both the sign-in through XTM One and the XTM license. XTM One refuses to register a new platform with its published default token, `xtm-default-registration-token`, with HTTP 401: it keeps only the heartbeat of a platform registered earlier, and withholds the XTM license from it. - **Public and internal URLs.** OpenCRQ reads XTM One's public identity from `/xtm/auth/metadata` on `XTM_ONE__URL`, once an hour, and uses it for the tokens and for the links users follow to XTM One. When `XTM_ONE__PLATFORM_URL` does not resolve inside Docker, set `OPENCRQ_API_URL` on the XTM One services to the internal address of OpenCRQ, as xtm-docker does ([What xtm-docker runs for OpenCRQ](#what-xtm-docker-runs-for-opencrq)). - **The edition.** The Enterprise Edition of OpenCRQ comes from the XTM license that XTM One returns at registration, which OpenCRQ verifies, or, until it expires, from a Filigran license installed on the platform before 17 November 2026. It brings more than one tenant and the Ask Ariane assistant: see [The edition](#the-edition). - **When XTM One is down.** OpenCRQ keeps serving and its health check stays healthy, but Ask Ariane is unavailable and every user sees why: see [When XTM One is down](#when-xtm-one-is-down). ### The edition {#the-edition} OpenCRQ checks the XTM license again at every registration, every 5 minutes, against the certificate authority of Filigran built into its image: - A license that verifies grants the Enterprise Edition for 7 days, in memory, never past the end of the license. Each later verified answer renews it. - A readable answer whose license does not verify, or that carries no license, ends the Enterprise Edition granted by XTM One at once. OpenCRQ logs why in a warning, such as `XTM One returned an XTM license that does not entitle this platform, so it stays in Community Edition`. - An outage, a refused registration or an unreadable answer changes nothing: the grant runs until its 7 days are over. | License type | Entitles OpenCRQ until | | --- | --- | | `standard`, `lts`, `nfr` | 90 days after its expiry date | | `trial` | Its expiry date | | `ci` | 45 minutes after the creation of the OpenCRQ instance | At start, the features that depend on the edition wait up to 5 seconds for the first answer of XTM One, then serve the Community Edition until that answer lands. The grant lives in memory: after a restart, a platform without an installed license is in the Community Edition until a registration succeeds. ### When XTM One is down {#when-xtm-one-is-down} OpenCRQ keeps serving, and its health check stays healthy. Every user sees a message that names the cause, followed by what it takes away: Ask Ariane, and for a platform XTM One entitled, the end date of its Enterprise Edition. | Message | The registration got | Usual cause | | --- | --- | --- | | **XTM One cannot be reached.** | A network error, no answer within 30 seconds, or an HTTP status other than 2xx, 401 and 403 | XTM One is stopped, or `XTM_ONE__URL` does not reach it | | **This platform's registration with XTM One is refused.** | HTTP 401 or 403 | A token that differs from `PLATFORM_REGISTRATION_TOKEN` on XTM One, or a proxy in front of XTM One | | **This platform's registration with XTM One got an answer that cannot be read.** | A 2xx answer that is not a registration | A wrong `XTM_ONE__URL`, a captive portal, or a version of XTM One that OpenCRQ does not read | The message shows when the first registration since the start fails, or when the attempts keep failing 10 minutes after the last success: one lost heartbeat shows nothing. It clears once a registration succeeds. None of the three ends a granted Enterprise Edition: the grant runs until its 7 days are over. ## Connectors of each tenant {#connectors-of-each-tenant} The credentials of a connector are set per tenant, never in the interface: two tenants can read two different OpenCTI instances. A variable takes the identifier of the tenant, shown as **Identifier** in **Settings > Parameters**: `CONNECTORS______`. At its first start, on a platform without any tenant, OpenCRQ creates one, so that you can write its connector variables before that start: | Variable | Default | What it sets | | --- | --- | --- | | `INITIAL_TENANT__ID` | `01a043da-ff47-72c2-aaa4-7da56d85c83e` | The identifier of that first tenant, a UUID | | `INITIAL_TENANT__NAME` | `Default` | Its name, which administrators can change afterwards | `INITIAL_TENANT__NAME` counts only while the platform holds no tenant: once one exists, changing it renames nothing. `INITIAL_TENANT__ID` is read at every start too: it names the tenant of the `APP__ADMIN__TOKEN` account and of the accounts `/api/xtm/peer-tokens` creates, as [Sign in the first time](https://filigran.io/docs/deploy/configure/first-access/#opencrq) describes. Changing it later creates no tenant. If the creation fails, OpenCRQ logs `Creating the initial tenant failed, booting without it` and starts without it. Every other tenant gets its identifier when an administrator creates it: see [Run several tenants in one platform](https://filigran.io/docs/opencrq/administer/tenants/). | Connector | Variables, after `CONNECTORS__` and the tenant identifier | Without them | | --- | --- | --- | | CISA KEV, FIRST EPSS | None | No variable needed. Off until a tenant administrator binds a service account in **Integrations** | | NIST NVD | `NIST__…__API_KEY` | Off until a tenant administrator binds a service account in **Integrations**. Without a key, it runs at NVD's lower rate limit | | OpenCTI | `OPENCTI__…__URL`, `OPENCTI__…__TOKEN` | Inactive for the tenant | | OpenAEV | `OPENAEV__…__URL`, `OPENAEV__…__TOKEN` | Inactive for the tenant | | Microsoft Defender, through Microsoft Graph | `MICROSOFT_GRAPH__…__AZURE_TENANT_ID`, `__CLIENT_ID`, `__CLIENT_SECRET` | Inactive for the tenant | | Drata | `DRATA__…__API_KEY`, and `__URL` (`https://public-api.drata.com` by default; `https://public-api.eu.drata.com` for an EU account), `__WORKSPACE_ID` (`1` by default) | Inactive for the tenant | The OpenCTI and OpenAEV connectors come up enabled once their variables are set. At each start, OpenCRQ creates the Live Stream `OpenCRQ threat feed` in OpenCTI, or puts its filter back, and binds each of the two connectors that nobody configured to a service account. A binding a tenant administrator made is kept. See [Link OpenCRQ to OpenCTI and OpenAEV](https://filigran.io/docs/deploy/configure/connect-modules/#link-opencrq-to-opencti-and-openaev). Another connector with its variables set still waits for a tenant administrator to give it a service account in **Integrations**: see [Let integrations sign in with service accounts](https://filigran.io/docs/opencrq/administer/service-accounts/). The [connectors reference](https://filigran.io/docs/reference/opencrq/connectors/) says what each one brings and when it runs, and the connector pages say what each tool must grant: [Connect OpenCTI with a Live Stream](https://filigran.io/docs/opencrq/use/sources/opencti/), [Import OpenAEV results](https://filigran.io/docs/opencrq/use/sources/openaev/). ## Telemetry {#telemetry} The `TELEMETRY__*` variables form two groups. `TELEMETRY__USAGE__*` sets the anonymous usage telemetry OpenCRQ sends to Filigran: what it sends, and how to check or stop it, is in [Check or stop the usage telemetry sent to Filigran](https://filigran.io/docs/opencrq/administer/telemetry/). `TELEMETRY__OBSERVABILITY__*` sets the observability metrics, traces, logs and profiles it sends to your own tools: see [Observability metrics](https://filigran.io/docs/deploy/operate/metrics/). OpenCRQ accepts no other `TELEMETRY__*` variable. An unknown one stops the platform at start with `Unrecognized key` and the name of the key under `telemetry`, rather than leaving a transport off without a word. The names of earlier builds count as unknown, so rename them: | Name in earlier builds | Name now | | --- | --- | | `TELEMETRY__TAGS` | `TELEMETRY__USAGE__TAGS` | | `TELEMETRY__APPLICATION_NAME` | `TELEMETRY__OBSERVABILITY__SERVICE_NAME` | | `TELEMETRY__TRACES__ENABLED`, `TELEMETRY__TRACES__EXPORTER_OTLP` | `TELEMETRY__OBSERVABILITY__OTLP__TRACES__ENABLED`, `TELEMETRY__OBSERVABILITY__OTLP__TRACES__EXPORTER` | | `TELEMETRY__LOGS__ENABLED`, `TELEMETRY__LOGS__EXPORTER_OTLP` | `TELEMETRY__OBSERVABILITY__OTLP__LOGS__ENABLED`, `TELEMETRY__OBSERVABILITY__OTLP__LOGS__EXPORTER` | | `TELEMETRY__METRICS__OTLP__*` | `TELEMETRY__OBSERVABILITY__OTLP__METRICS__*` | | `TELEMETRY__METRICS__PROMETHEUS__*` | `TELEMETRY__OBSERVABILITY__PROMETHEUS__*` | | `TELEMETRY__PYROSCOPE__*` | `TELEMETRY__OBSERVABILITY__PYROSCOPE__*` | | Variable | Default | What it sets | | --- | --- | --- | | `TELEMETRY__USAGE__ENABLED` | `true` | `false` turns the usage telemetry off: OpenCRQ never contacts Filigran's collector, and logs `Anonymous usage telemetry is disabled by TELEMETRY__USAGE__ENABLED=false, nothing is sent` | | `TELEMETRY__USAGE__TAGS` | Empty | Tags of the deployment, separated by commas, such as `saas,eu-west`, sent with the usage data. OpenCRQ trims, lowercases, deduplicates and sorts them | The usage telemetry sends counts over the whole platform, such as the number of tenants, users, risk scenarios and simulations run, and whether it runs in the Enterprise Edition: no names and no content. The image sends them every 6 hours to `https://telemetry.ocrq.filigran.io`. When the collector does not answer at start, as on a platform without internet access, OpenCRQ logs `Telemetry endpoint is not reachable, anonymous usage telemetry is disabled` and sends nothing until its next start. ## HTTP and processes {#http-and-processes} | Variable | Default | What it sets | | --- | --- | --- | | `HTTP_SERVER__HOST`, `HTTP_SERVER__PORT` | None | Where the interface and the API listen in the container, such as `0.0.0.0` and `3002`. Required for the interface and the API: without them, OpenCRQ starts with no HTTP server | | `HEALTHCHECK_HTTP_SERVER__PORT` | Required | The port of the health check, such as `8444`. It answers `200` with `{"healthy":true,...}` while every process runs, and `503` otherwise | | `HTTP_SERVER__PUBLIC_PORT`, `HEALTHCHECK_HTTP_SERVER__PUBLIC_PORT` | None | The ports published on the host, for the logs only | | `HTTP_SERVER__MAX_RESPONSE_ITEMS` | `20000` | The most items one API call returns. Above it, the call is refused with `PAYLOAD_TOO_LARGE` | | `PROCESS_MANAGER__PROFILE` | `split` | `split` runs the HTTP server and the background worker as two processes. `monolith` runs one process, for development only | | `PROCESS_MANAGER__HEARTBEAT_TIMEOUT` | `60000` | The milliseconds without a heartbeat from a process after which the health check answers unhealthy | Each process of a profile takes its own settings under `PROCESS_MANAGER______`. The worker of the `split` profile has a heap of 4,096 MB (`PROCESS_MANAGER__SPLIT__WORKER__MEMORY`) and the HTTP process 512 MB (`PROCESS_MANAGER__SPLIT__HTTP__MEMORY`): raise the worker's for a large estate, and the container's memory limit with it. > **Warning** > > Leave `PLATFORM_SEED__ENABLED` and `PLATFORM__RESET_ON_VERSION_CHANGE` unset in production. The first loads demonstration data; the second deletes the whole database when the version of OpenCRQ changes. On a demonstration or test platform, `PLATFORM_SEED__ENABLED=true` loads demonstration data at start: users, risk scopes with their assets and findings, threats, and priced risk scenarios. It loads them only on a platform that has no user yet, and reads these keys: | Variable | What it sets | | --- | --- | | `PLATFORM_SEED__ADMIN__EMAIL` | The email of the platform administrator the seed creates. Required | | `PLATFORM_SEED__ADMIN__PASSWORD` | The password every seeded user gets in XTM One, when the seed creates them there. OpenCRQ stores it nowhere. Required | | `PLATFORM_SEED__XTM_ONE_ADMIN__EMAIL`, `PLATFORM_SEED__XTM_ONE_ADMIN__PASSWORD` | An administrator of the XTM One in `XTM_ONE__URL`, without a second factor, that the seed signs in as to create the seeded users in XTM One, so that people can sign in as them. Unset, the seeded users exist in OpenCRQ only, and none of them can sign in | | `PLATFORM_SEED__LARGE_ESTATE__ENABLED` | `true` adds a large estate for performance tests, over a million rows that take minutes to write. `false` by default | | `PLATFORM_SEED__LARGE_ESTATE__ASSETS` | How many supporting assets that estate has, `100000` by default | | `PLATFORM_SEED__LARGE_ESTATE__FINDINGS` | How many findings it puts on them, `300000` by default | | `PLATFORM_SEED__LARGE_ESTATE__MAPPED_ASSETS` | How many of those assets its risk scope covers, `30000` by default, 3 at least | **Example: Connect Grand Meridian's tenant to OpenCTI and OpenAEV** Example CERT runs OpenCRQ for Grand Meridian Hotels, whose tenant identifier is `01a043da-ff47-72c2-aaa4-7da56d85c83e`: OpenCRQ created that tenant at its first start. Its platform engineer connects the tenant to the CERT's OpenCTI, to read the threats against the hospitality sector, to its OpenAEV, to read the simulation results of the hotels, and to the NVD with an API key. The tokens live in `.env`, as `GRAND_MERIDIAN_OPENCTI_TOKEN`, `GRAND_MERIDIAN_OPENAEV_TOKEN` and `NVD_API_KEY`. In `docker-compose.override.yml`, under the `opencrq` service, these variables replace the ones xtm-docker sets for the same tenant with the admin tokens: ```yaml environment: - CONNECTORS__OPENCTI__01a043da-ff47-72c2-aaa4-7da56d85c83e__URL=http://opencti:8080 - CONNECTORS__OPENCTI__01a043da-ff47-72c2-aaa4-7da56d85c83e__TOKEN=${GRAND_MERIDIAN_OPENCTI_TOKEN} - CONNECTORS__OPENAEV__01a043da-ff47-72c2-aaa4-7da56d85c83e__URL=http://openaev:8080 - CONNECTORS__OPENAEV__01a043da-ff47-72c2-aaa4-7da56d85c83e__TOKEN=${GRAND_MERIDIAN_OPENAEV_TOKEN} - CONNECTORS__NIST__01a043da-ff47-72c2-aaa4-7da56d85c83e__API_KEY=${NVD_API_KEY} ``` The user of `GRAND_MERIDIAN_OPENCTI_TOKEN` holds **Manage data sharing** in OpenCTI. After `docker compose up -d`, the OpenCTI and OpenAEV connectors of the tenant come up enabled in **Integrations**, OpenCTI holds the Live Stream `OpenCRQ threat feed`, the threats of Velvet Harbor and Ember Tide stream in, and the hotels' simulation results follow every hour. The NIST NVD connector runs once a tenant administrator binds a service account to it in **Integrations**. ## Where the data is {#where-the-data-is} | Data | Where | | --- | --- | | Risk scopes, assets, scenarios, prices, settings | The `opencrq` database of `pgsql`, in the `pgsqlshareddata` volume | | STIX bundles uploaded on the **Threats** page | The `opencrq` bucket of `minio`, in the `s3data` volume | Back them up with the rest of the stack: see [Back up and restore](https://filigran.io/docs/deploy/operate/backup/). OpenCRQ keeps nothing else: the container can be recreated at any time. ## What's next {#what-s-next} - [OpenCRQ configuration](https://filigran.io/docs/reference/opencrq/configuration/), every key with its variable, type and default, including the background jobs. - [Observability metrics](https://filigran.io/docs/deploy/operate/metrics/), to scrape the metrics of OpenCRQ and send its traces, logs and profiles to your tools. - [Background processes](https://filigran.io/docs/reference/opencrq/processes/), what the worker runs and when. - [Connect the modules to each other](https://filigran.io/docs/deploy/configure/connect-modules/), for the registration token XTM One shares with every platform. --- # Configure the shared services > Size and connect the search engine, Redis, RabbitMQ, S3 storage, PostgreSQL and mail server that the XTM modules share, or point them to your own. - URL: https://filigran.io/docs/deploy/configure/shared-services/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0 - For: platform engineers - Type: How-to guide This page covers the services the XTM modules share: the search engine, Redis, RabbitMQ, S3 object storage, PostgreSQL and the mail server. For each one it says which module uses it, what xtm-docker sets, the settings you decide on to replace the bundled container with your own service, such as a managed cluster, to secure and to size it, and what to watch. Every other key is in the generated references: [OpenCTI configuration](https://filigran.io/docs/reference/opencti/configuration/) and [OpenAEV configuration](https://filigran.io/docs/reference/openaev/configuration/). ## Before you start {#before-you-start} - The stack installed as [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/) describes. The settings below go in `.env` or in the `environment` of a service in `docker-compose.override.yml`: see [Change the stack without editing docker-compose.yml](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml). - How each platform names its settings in the environment: - OpenCTI: two underscores per level of `default.json`. `elasticsearch:url` becomes `ELASTICSEARCH__URL`. - OpenAEV: one underscore per dot of the Spring property, hyphens kept. `openaev.rabbitmq.queue-type` becomes `OPENAEV_RABBITMQ_QUEUE-TYPE`. - XTM One: the variable names of its own configuration, such as `REDIS_URL`. ## Who uses which service {#who-uses-which-service} **Diagram: OpenCTI, OpenAEV and XTM One share five services, each module keeping its data apart in its own index prefix, bucket and database** - Platforms: OpenCTI, OpenAEV - At the center: XTM One - Shared services: Elasticsearch (Or OpenSearch, an index prefix each), RabbitMQ (Work for workers and integrations), Redis (Event stream of OpenCTI), S3 object storage (Service minio, a bucket each), PostgreSQL (pgvector, a database each) Connections: - OpenCTI → Elasticsearch - OpenCTI → RabbitMQ - OpenCTI → Redis - OpenCTI → S3 object storage - OpenAEV → Elasticsearch - OpenAEV → RabbitMQ - OpenAEV → S3 object storage - OpenAEV → PostgreSQL - XTM One → Redis - XTM One → S3 object storage - XTM One → PostgreSQL | Service | Service in xtm-docker | Image | Used by | Compose file | | --- | --- | --- | --- | --- | | Elasticsearch | `elasticsearch` | `elasticsearch:8.19.23` | OpenCTI, OpenAEV | `infra/elasticsearch.yml` | | RabbitMQ | `rabbitmq` | `rabbitmq:4.3-management` | OpenCTI, OpenAEV | `infra/rabbitmq.yml` | | Redis | `redis` | `redis:8.8.3` | OpenCTI, XTM One | `infra/redis.yml` | | S3 object storage | `minio` | `rustfs/rustfs:1.0.4` (RustFS) | OpenCTI, OpenAEV, OpenCRQ, XTM One | `infra/rustfs.yml` | | PostgreSQL with pgvector | `pgsql` | `pgvector/pgvector:pg17` | OpenAEV, OpenCRQ, XTM One | `infra/postgresql.yml` | Every shared service starts with the whole stack, as `docker-compose.yml` includes the five Compose files of `infra/`. Each module keeps its data apart in the shared services: its own index prefix in Elasticsearch, its own bucket in S3, its own database in PostgreSQL. You can therefore replace one shared service by your own for every module at once, or for one module only. To point a module to your own service, set its variables below on the module's service in `docker-compose.override.yml`, and remove the bundled service from the `depends_on` list of that module with `!reset null`. When no module depends on the bundled service any more, give it a profile you never turn on, such as `disabled`, or Docker Compose keeps starting it, then remove its container with `docker compose rm -sf `. For example, for an Elasticsearch cluster of your own used by OpenCTI and OpenAEV: ```yaml services: opencti: environment: - ELASTICSEARCH__URL=https://search.example.com:9200 depends_on: elasticsearch: !reset null openaev: environment: - ENGINE_URL=https://search.example.com:9200 - SPRING_ELASTICSEARCH_URIS=https://search.example.com:9200 depends_on: elasticsearch: !reset null elasticsearch: profiles: !override ["disabled"] ``` ## Elasticsearch or OpenSearch {#elasticsearch-or-opensearch} The bundled `elasticsearch` service is one node, with security turned off (`xpack.security.enabled=false`): no user, no TLS. Keep it for one host on a private network; in production, use a cluster with authentication. 1. Size the Java heap. `ELASTIC_MEMORY_SIZE` in `.env` sets both `-Xms` and `-Xmx` of the bundled node. | RAM of the host | `ELASTIC_MEMORY_SIZE` | | --- | --- | | 16 GB | `2G` | | 32 GB | `4G` | | 64 GB or more | `8G` | 2. On a Linux host, raise the number of memory maps Elasticsearch may use, or it can fail to start. ```bash sudo sysctl -w vm.max_map_count=262144 ``` To keep the value after a reboot, add `vm.max_map_count=262144` to `/etc/sysctl.conf`. 3. To use your own cluster, set its address and credentials on each platform. **OpenCTI** | Variable | Default | Set it to | | --- | --- | --- | | `ELASTICSEARCH__URL` | `http://localhost:9200` | The URL of your cluster, or a list of URLs. xtm-docker sets `http://elasticsearch:9200` | | `ELASTICSEARCH__USERNAME`, `ELASTICSEARCH__PASSWORD` | | The user of OpenCTI on the cluster | | `ELASTICSEARCH__API_KEY` | | An Elasticsearch API key instead of a user: the `encoded` value Elasticsearch returns when it creates the key | | `ELASTICSEARCH__INDEX_PREFIX` | `opencti` | Keep it, unless two OpenCTI platforms share the cluster | | `ELASTICSEARCH__NUMBER_OF_REPLICAS` | | xtm-docker sets `0`, for one node. On a cluster, set the number of replicas each index needs | | `ELASTICSEARCH__PROXY` | | The URL of an HTTP proxy between OpenCTI and the cluster, such as `http://proxy.example.com:3128`. The platforms' `HTTPS_PROXY` settings, in [Trust your certificate authority and proxy](https://filigran.io/docs/deploy/configure/certificates/), do not apply to the cluster | | `OPENSEARCH__REGION` | | The AWS region of an Amazon OpenSearch Service domain, such as `eu-west-3`. Requests are then signed with AWS credentials | | `OPENSEARCH__SERVICE` | `es` | With `OPENSEARCH__REGION`: `es` for Amazon OpenSearch Service, `aoss` for Amazon OpenSearch Serverless | *(OpenCTI 7.261109 and later)* OpenCTI chooses its client at start. With `ELASTICSEARCH__ENGINE_CLIENT=auto`, the default, it reads the answer of the cluster to `GET /`, with the URL, credentials, CA and proxy above: OpenSearch gets the OpenSearch client, Elasticsearch 9 and Elastic Serverless the Elasticsearch 9 client, any other version the Elasticsearch 8 client. With `OPENSEARCH__REGION`, it takes the OpenSearch client without asking. When the user of OpenCTI may not read `GET /`, or a proxy blocks it, force the client with `ELASTICSEARCH__ENGINE_CLIENT`: `elasticsearch8`, `elasticsearch9` or `opensearch` (`opensearch` only, with `OPENSEARCH__REGION`). OpenCTI does not start when the value is another one, or when the cluster does not answer. OpenCTI logs the client it selected, such as `Search engine client elasticsearch9 selected, detected from elk 9.1.0`. It warns that Elasticsearch versions before 9 are deprecated when it detects one. `ELASTICSEARCH__ENGINE_SELECTOR` and `ELASTICSEARCH__ENGINE_CHECK` no longer apply: OpenCTI ignores them and logs a warning while they are set; remove them. **OpenAEV** | Variable | Default | Set it to | | --- | --- | --- | | `ENGINE_URL` | `http://localhost:9200` | The URL of your cluster. xtm-docker sets `http://elasticsearch:9200`, and the same value in `SPRING_ELASTICSEARCH_URIS` | | `ENGINE_USERNAME`, `ENGINE_PASSWORD` | | The user of OpenAEV on the cluster | | `ENGINE_CLIENT` | `auto` | `elasticsearch8`, `elasticsearch9` or `opensearch` to force the client. `auto` detects the engine from `ENGINE_URL` | | `ENGINE_ENGINE_AWS_MODE` | `no` | `es` for Amazon OpenSearch Service or `aoss` for Amazon OpenSearch Serverless, with `ENGINE_ENGINE_AWS_HOST` (the host, without `https://`) and `ENGINE_ENGINE_AWS_REGION` | OpenAEV indices start with `openaev`, so OpenCTI and OpenAEV can share one cluster. With `ENGINE_ENGINE_AWS_MODE`, OpenAEV signs its requests with the AWS credentials of its environment, such as the IAM role of the node or the pod it runs on. In the security settings of OpenSearch, map that IAM role as a backend role of a role allowed to manage the `openaev*` indices. OpenAEV rebuilds its indices from PostgreSQL by itself: pointed to a new, empty cluster, it creates each index at start and fills it again, so nothing needs to be copied. To rebuild the indices of the current cluster, stop OpenAEV, empty the `indexing_status` table of the `openaev` database, and start it again. The search screens fill up again while it reindexes. `engine.engine-selector`, which older versions used to choose the engine, is ignored now: set `ENGINE_CLIENT` instead. To trust the certificate of your cluster, see [Trust your certificate authority and proxy](https://filigran.io/docs/deploy/configure/certificates/). ### Size how OpenCTI uses the cluster {#size-how-opencti-uses-the-cluster} The defaults fit most platforms. Change them when the logs of OpenCTI show search engine timeouts or rejected requests, or when indexing fails on a limit. Index settings (shards, replicas, result window) go into the index templates of OpenCTI at each start: they apply to the indices created afterwards, at the next [rollover](https://filigran.io/docs/deploy/operate/rollover/), not to the existing ones. | Variable | Default | Effect | | --- | --- | --- | | `ELASTICSEARCH__NUMBER_OF_SHARDS` | The engine's default | Primary shards of each new index. Rollover keeps each primary shard under 50 GB: see [Manage Elasticsearch indices](https://filigran.io/docs/deploy/operate/rollover/) | | `ELASTICSEARCH__REQUEST_TIMEOUT` | `3600000` (ms, one hour) | Time OpenCTI waits for one request to the cluster | | `ELASTICSEARCH__MAX_RETRIES` | `3` | Retries of a failed request before OpenCTI returns an error | | `ELASTICSEARCH__SNIFF_ON_START` | `false` | `true` to discover the nodes of the cluster at start and spread requests over them. Keep `false` behind a load balancer, or when the nodes announce addresses OpenCTI cannot reach | | `ELASTICSEARCH__MAX_BULK_OPERATIONS` | `5000` | Operations in one bulk request during mass updates and migrations. Lower it if bulk requests time out or exceed the request size limit of the cluster | | `ELASTICSEARCH__MAX_CONCURRENCY` | `4` | Bulk requests sent in parallel during mass updates and migrations. Raise it on a large cluster to go faster, lower it to reduce the load | | `ELASTICSEARCH__BATCH_LOADER_MAX_SIZE` | `300` | Elements grouped into one query when an API request loads related data, such as creators and markings | | `ELASTICSEARCH__DEFAULT_PAGINATION_RESULT`, `ELASTICSEARCH__MAX_PAGINATION_RESULT` | `500`, `5000` | Page size of a list query that asks for none, and the largest page size a query gets | | `ELASTICSEARCH__MAX_RESULT_WINDOW` | `100000` | The `max_result_window` of the indices: the deepest offset a search can reach | | `ELASTICSEARCH__MAX_RUNTIME_RESOLUTIONS` | `5000` | Entities loaded to sort a list by a computed column, such as the author. Raise it if such a sort shows `Unknown` on a large dataset | | `ELASTICSEARCH__MAX_CONTAINER_RESOLUTIONS`, `ELASTICSEARCH__MAX_CONTAINER_OBJECT_RESOLUTIONS` | `1000`, `100000` | Containers, and objects in them, loaded to show the related containers of an entity | | `ELASTICSEARCH__UNSECURE_SCRIPT_FILTER_ENABLED` | `false` | `true` allows the `script` filter operator, which sends a raw script to the cluster. Any user who can filter can then run a script: keep `false` unless you trust every user | *(OpenCTI 7.261030 and later)* `ELASTICSEARCH__MAX_MAPPING_FIELDS`, `3500` by default, sets `index.mapping.total_fields.limit` on the templates and on the existing indices at each start. Raise it if indexing fails because an index reached its field limit, which many custom attributes can cause. What to watch on the cluster: the heap of each node, the rejected requests of its `write` and `search` thread pools, and the size of the shards of the `opencti_*` indices. All settings: [Elasticsearch](https://filigran.io/docs/reference/opencti/configuration/#elasticsearch). ## Redis {#redis} OpenCTI keeps its event stream in Redis, among other things; XTM One uses it too. The bundled `redis` service has no password. **OpenCTI** | Variable | Default | Set it to | | --- | --- | --- | | `REDIS__HOSTNAME`, `REDIS__PORT` | `localhost`, `6379` | Your Redis. xtm-docker sets `redis` and `6379` | | `REDIS__USERNAME`, `REDIS__PASSWORD` | | The credentials of your Redis | | `REDIS__MODE` | `single` | `sentinel` or `cluster`, with `REDIS__HOSTNAMES` (and `REDIS__SENTINEL_MASTER_NAME` in sentinel mode) | | `REDIS__USE_SSL` | `false` | `true` for a Redis that only accepts TLS, in single or cluster mode | | `REDIS__DATABASE` | `0` | The database number, in single mode only | | `REDIS__NAMESPACE` | | A prefix for every key and channel of OpenCTI, such as `cti-prod`. Set it when several OpenCTI platforms share one Redis | | `REDIS__HOST_IP_FAMILY` | `4` | `6` for a Redis reachable over IPv6 only, `0` for both | | `REDIS__TRIMMING` | `2000000` | The number of events kept in the live stream. It sizes the memory Redis needs | | `REDIS__ACTIVITY_TRIMMING`, `REDIS__NOTIFICATION_TRIMMING` | `50000`, `50000` | The events kept, approximately, in the activity stream and in the notification stream. Raise the second if digests over long periods miss events | **XTM One** | Variable | Default | Set it to | | --- | --- | --- | | `REDIS_URL` | `redis://redis:6379` | The URL of your Redis. Set it on `xtm-one` and `xtm-one-worker` | | `REDIS_PASSWORD` | | The password of your Redis | | `REDIS_MODE` | `standalone` | `sentinel`, with `REDIS_SENTINEL_HOSTS` and `REDIS_SENTINEL_SERVICE` | ### OpenCTI with Redis Sentinel {#opencti-with-redis-sentinel} In sentinel mode, OpenCTI asks the Sentinels listed in `REDIS__HOSTNAMES` for the address of the master named `REDIS__SENTINEL_MASTER_NAME`, then connects to that master. | Variable | Default | Set it to | | --- | --- | --- | | `REDIS__SENTINEL_USERNAME`, `REDIS__SENTINEL_PASSWORD` | | The credentials of the Sentinels, when they ask for some. `REDIS__USERNAME` and `REDIS__PASSWORD` stay those of the master | | `REDIS__SENTINEL_ROLE` | `master` | Keep `master`: OpenCTI writes to Redis. `slave` connects to a replica, in the order of `REDIS__SENTINEL_PREFERRED_SLAVES`, a list of `{ "ip", "port", "prio" }` objects | | `REDIS__SENTINEL_FAILOVER_DETECTOR` | `false` | `true` to listen to the Sentinels and reconnect to the new master as soon as a failover happens, instead of when the connection to the old one fails | | `REDIS__SENTINEL_UPDATE_SENTINELS` | `true` | `false` to use only the Sentinels of `REDIS__HOSTNAMES`, when the addresses the Sentinels announce are not reachable from OpenCTI | | `REDIS__SENTINEL_TLS` | `false` | See the warning below | > **Warning** > > In sentinel mode, OpenCTI passes no TLS settings to its Redis client: `REDIS__USE_SSL`, `REDIS__CA` and `REDIS__SENTINEL_TLS` do not encrypt the connections to the Sentinels or to the master. Keep them on a private network, or use single or cluster mode for TLS. ```yaml services: opencti: environment: - REDIS__MODE=sentinel - 'REDIS__HOSTNAMES=["sentinel1.example.com:26379","sentinel2.example.com:26379","sentinel3.example.com:26379"]' - REDIS__SENTINEL_MASTER_NAME=opencti - REDIS__SENTINEL_USERNAME=opencti - REDIS__SENTINEL_PASSWORD=${REDIS_SENTINEL_PASSWORD} - REDIS__USERNAME=opencti - REDIS__PASSWORD=${REDIS_PASSWORD} - REDIS__SENTINEL_FAILOVER_DETECTOR=true ``` ### OpenCTI with a Redis cluster {#opencti-with-a-redis-cluster} In cluster mode, OpenCTI connects to the nodes of `REDIS__HOSTNAMES` and learns the others from the cluster. Putting Redis in cluster mode for capacity is in [Scale](https://filigran.io/docs/deploy/operate/scale/#redis). | Variable | Default | Set it to | | --- | --- | --- | | `REDIS__NAT_MAP` | | When the nodes sit behind NAT or a proxy (Docker, Kubernetes, cloud) and announce addresses OpenCTI cannot reach: a JSON list of `announced>reachable` pairs, such as `["10.0.0.11:6379>redis-1.example.com:6379"]` | | `REDIS__SCALE_READS` | `all` | The nodes that serve reads: `master`, `slave` or `all`. `master` when a read must never miss a write a replica has not received yet | *(OpenCTI 7.261030 and later)* With TLS (`REDIS__USE_SSL=true`), OpenCTI checks the certificate of every node against `REDIS__TLS_SERVERNAME`, or `REDIS__HOSTNAME` when it is empty, and sends that name in the TLS handshake (SNI). In single mode the same name applies to the one server. Set `REDIS__TLS_CLUSTER_NODE_MODE=true` to check the certificate of each node against that node's own address instead. *(OpenCTI 7.260811 and later)* `REDIS__NOTIFICATION_RANGE_BATCH_SIZE`, `1000` by default, sets how many events of the notification stream the notification manager reads per request when it builds a digest. Lower it if building digests over a busy stream takes too much memory. *(OpenCTI 7.261030 and later)* `REDIS__MAX_EVENT_LENGTH`, in bytes, moves an event larger than this size out of the live stream into S3 storage, and keeps only its file name in Redis. `0`, the default, keeps every event in Redis. Set it, such as `1048576` for 1 MB, when large bundles make Redis use too much memory. What to watch on Redis: its used memory against `maxmemory`, which the stream trimming settings above drive, and its connected clients. Each OpenCTI node opens six connections at start (five, and one for its lock process), then one more for each reader of the stream it runs: each manager that reads the stream (history, rules, notifications, playbooks, publication, activity, file indexing) and each live stream a connector or a remote platform consumes from it. All settings: [Redis](https://filigran.io/docs/reference/opencti/configuration/#redis). ## RabbitMQ {#rabbitmq} OpenCTI and OpenAEV pass work to their workers and integrations through RabbitMQ. In xtm-docker both use the same broker and the same user, `RABBITMQ_DEFAULT_USER` and `RABBITMQ_DEFAULT_PASS` from `.env`. OpenCTI also calls the management API, on port 15672, and so does OpenAEV when it migrates its queues: a broker of your own needs the management plugin. **OpenCTI** | Variable | Default | Set it to | | --- | --- | --- | | `RABBITMQ__HOSTNAME`, `RABBITMQ__PORT` | `localhost`, `5672` | Your broker | | `RABBITMQ__PORT_MANAGEMENT` | `15672` | The port of its management API. `RABBITMQ__HOSTNAME_MANAGEMENT` if it has another host name | | `RABBITMQ__USERNAME`, `RABBITMQ__PASSWORD` | `guest`, `guest` | The user of OpenCTI | | `RABBITMQ__VHOST` | `/` | The virtual host of OpenCTI | | `RABBITMQ__QUEUE_TYPE` | `classic` | `quorum` on a cluster of brokers | | `RABBITMQ__QUEUE_PREFIX` | | A prefix, followed by `_`, on the names of the exchanges and queues of OpenCTI, such as `cti-prod`. Set it, or a virtual host of its own, when several OpenCTI platforms share one broker | | `RABBITMQ__USE_SSL`, `RABBITMQ__MANAGEMENT_SSL` | `false`, `false` | `true` for a broker, or a management API, that only accepts TLS | | `RABBITMQ__USE_SSL_REJECT_UNAUTHORIZED`, `RABBITMQ__MANAGEMENT_SSL_REJECT_UNAUTHORIZED` | off, off | `true` to check the certificate of the broker, or of the management API. Off by default: turn them on once OpenCTI trusts their CA, see [Trust your certificate authority and proxy](https://filigran.io/docs/deploy/configure/certificates/) | | `RABBITMQ__USE_SSL_CERT`, `RABBITMQ__USE_SSL_KEY` | | For a broker that asks for a client certificate: the certificate and the private key of OpenCTI, as paths in the container or PEM contents. Or `RABBITMQ__USE_SSL_PFX`, both in one PKCS#12 file | | `RABBITMQ__USE_SSL_PASSPHRASE` | | The passphrase of that private key or PKCS#12 file, when it is encrypted | **OpenAEV** | Variable | Default | Set it to | | --- | --- | --- | | `OPENAEV_RABBITMQ_HOSTNAME`, `OPENAEV_RABBITMQ_PORT` | `localhost`, `5672` | Your broker | | `OPENAEV_RABBITMQ_MANAGEMENT-PORT` | `15672` | The port of its management API | | `OPENAEV_RABBITMQ_USER`, `OPENAEV_RABBITMQ_PASS` | `guest`, `guest` | The user of OpenAEV | | `OPENAEV_RABBITMQ_VHOST` | `/` | The virtual host of OpenAEV | | `OPENAEV_RABBITMQ_QUEUE-TYPE` | `classic` | `quorum` on a cluster of brokers | | `OPENAEV_RABBITMQ_PREFIX` | `openaev` | The prefix of the OpenAEV queues | | `OPENAEV_RABBITMQ_SSL` | `false` | `true` for a broker that only accepts TLS. OpenAEV then also calls the management API over HTTPS, on the host of the broker | | `OPENAEV_RABBITMQ_TRUST-STORE`, `OPENAEV_RABBITMQ_TRUST-STORE-PASSWORD` | | Over TLS, a PKCS12 trust store that holds the CA of the broker's certificate, such as `file:/opt/openaev/rabbitmq-truststore.p12`, and its password. OpenAEV then checks the broker against this trust store only, in TLS 1.3, and the management API against this trust store or the platform's. Without it, or when the file does not exist, as with the placeholder of the shipped `application.properties`, OpenAEV checks both against the platform trust store: the CAs of Java and the certificates of `OPENAEV_EXTRA-TRUSTED-CERTS-DIR` | Over TLS, OpenAEV always checks the certificate of the broker and of its management API: `OPENAEV_RABBITMQ_MANAGEMENT-INSECURE` no longer has any effect. When your internal CA signed the certificate of the broker, the simplest is to put that CA in the folder of `OPENAEV_EXTRA-TRUSTED-CERTS-DIR`, as [Trust your certificate authority and proxy](https://filigran.io/docs/deploy/configure/certificates/) shows, and to set no RabbitMQ trust store: the broker and the management API then trust the same CAs as the other connections of OpenAEV. For a broker that asks for a client certificate, OpenAEV presents the one of the key store that the standard Java properties `javax.net.ssl.keyStore`, `javax.net.ssl.keyStoreType` and `javax.net.ssl.keyStorePassword` name. For example, for a broker whose certificate the internal CA of `./certs/internal-ca.pem` signed, in `docker-compose.override.yml`: ```yaml services: openaev: volumes: - ./certs:/opt/openaev/additional_certs:ro environment: - OPENAEV_RABBITMQ_HOSTNAME=rabbitmq.example.com - OPENAEV_RABBITMQ_PORT=5671 - OPENAEV_RABBITMQ_MANAGEMENT-PORT=15671 - OPENAEV_RABBITMQ_USER=openaev - OPENAEV_RABBITMQ_PASS=${OPENAEV_RABBITMQ_PASSWORD} - OPENAEV_RABBITMQ_SSL=true depends_on: rabbitmq: !reset null ``` > **Warning** > > Integrations connect to RabbitMQ with the host name and port their platform gives them, `rabbitmq` and `5672` in xtm-docker. An integration that runs where that name does not resolve cannot reach its queue. See [Run an integration without XTM Composer](https://filigran.io/docs/deploy/integrations/manual/). OpenCTI workers and connectors get the host, port, user and `RABBITMQ__USE_SSL` setting of the broker from OpenCTI, not its certificates. Over TLS, they accept any certificate the broker presents until you set, on each worker and connector: | Variable | Default | Set it to | | --- | --- | --- | | `MQ_USE_SSL_REJECT_UNAUTHORIZED` | `false` | `true` to check the certificate of the broker | | `MQ_USE_SSL_CA` | | The CA that signed it, as a path in the container or PEM content | | `MQ_USE_SSL_CERT`, `MQ_USE_SSL_KEY` | | For a broker that asks for a client certificate: the certificate and its private key, as paths or PEM content | | `MQ_USE_SSL_PASSPHRASE` | | The passphrase of that private key, when it is encrypted | What to watch on RabbitMQ: the messages ready in the `push_` queues, which grow when the workers cannot keep up (add workers, see [Scale](https://filigran.io/docs/deploy/operate/scale/#add-workers)), the disk and memory alarms of the broker, which block every publisher, and its free disk space. All settings of OpenCTI: [RabbitMQ](https://filigran.io/docs/reference/opencti/configuration/#rabbitmq). ## S3 object storage {#s3-object-storage} OpenCTI, OpenAEV, OpenCRQ and XTM One store their files in S3. The bundled `minio` service runs RustFS, an S3-compatible server, with the credentials `MINIO_ROOT_USER` and `MINIO_ROOT_PASSWORD` of `.env`: the service and the variables keep the names of MinIO, which the stack ran before. Each platform uses its own bucket. **OpenCTI** | Variable | Default | Set it to | | --- | --- | --- | | `MINIO__ENDPOINT`, `MINIO__PORT` | `localhost`, `9000` | Your S3 service, such as `s3.eu-west-3.amazonaws.com` and `443` for AWS. With `s3.amazonaws.com`, the AWS SDK chooses the endpoint of the region itself | | `MINIO__USE_SSL` | `false` | `true` for HTTPS | | `MINIO__ACCESS_KEY`, `MINIO__SECRET_KEY` | | The credentials of OpenCTI | | `MINIO__SESSION_TOKEN` | | The session token of temporary credentials from AWS Security Token Service (STS), with the access and secret keys. OpenCTI reads it at start and does not renew it: restart it with new credentials before they expire, or prefer `MINIO__USE_AWS_ROLE` | | `MINIO__BUCKET_NAME` | `opencti-bucket` | The bucket of OpenCTI | | `MINIO__BUCKET_REGION` | `us-east-1` | The region of the bucket on AWS | | `MINIO__USE_AWS_ROLE` | `false` | `true` to take the credentials from the AWS role of the host instead of the access and secret keys | | `MINIO__DISABLE_CHECKSUM_VALIDATION` | `false` | `true` when an S3-compatible service rejects uploads because of the checksum headers recent AWS SDKs send. OpenCTI then sends checksums only when the operation requires them | | `MINIO__USE_AWS_LOGS` | `false` | `true` to write the debug messages of the S3 client to the log of OpenCTI, to diagnose a connection to the bucket | | `MINIO__EXCLUDED_FILES` | `[".DS_Store"]` | The file names OpenCTI hides when it lists the files of the bucket, case-insensitive | All settings: [S3 Bucket](https://filigran.io/docs/reference/opencti/configuration/#s3-bucket). **OpenAEV** | Variable | Default | Set it to | | --- | --- | --- | | `MINIO_ENDPOINT`, `MINIO_PORT` | `localhost`, `9000` | Your S3 service. On AWS, the endpoint of the bucket's region, such as `s3.eu-west-3.amazonaws.com`, and `443` | | `MINIO_SECURE` | `false` | `true` for HTTPS | | `MINIO_ACCESS-KEY`, `MINIO_ACCESS-SECRET` | | The credentials of OpenAEV | | `MINIO_BUCKET` | `openaev` | The bucket of OpenAEV, created at start when missing | | `OPENAEV_S3_USE-AWS-ROLE` | `false` | `true` to take the credentials from AWS Security Token Service (STS), with the IAM role of the host, instead of the access keys | | `OPENAEV_S3_STS-ENDPOINT` | | Optional, experimental. Your own STS endpoint. Empty, OpenAEV calls `https://sts.amazonaws.com`, or the regional endpoint when `AWS_REGION` is set | **XTM One** | Variable in `modules/xtm-one.yml` | Set from `.env` | Set it to | | --- | --- | --- | | `S3_ENDPOINT` | | Your S3 service, as `host:port`. xtm-docker sets `minio:9000` | | `S3_USE_SSL` | | `true` for HTTPS | | `S3_ACCESS_KEY`, `S3_SECRET_KEY` | `MINIO_ROOT_USER`, `MINIO_ROOT_PASSWORD` | The credentials of XTM One | | `S3_BUCKET` | `XTM_ONE_S3_BUCKET`, `xtm-one-files` by default | The bucket of XTM One. XTM One creates it at its first start | | `S3_REGION` | | The region of the bucket, required on AWS | | `S3_USE_AWS_ROLE` | | `true` to take the credentials from the role of the host | Set them on `xtm-one` and `xtm-one-worker`. **OpenCRQ** | Variable in `modules/opencrq.yml` | Set from `.env` | Set it to | | --- | --- | --- | | `FILE_STORAGE__ENDPOINT` | | The URL of your S3 service. xtm-docker sets `http://minio:9000` | | `FILE_STORAGE__ACCESS_KEY`, `FILE_STORAGE__SECRET_KEY` | `MINIO_ROOT_USER`, `MINIO_ROOT_PASSWORD` | The credentials of OpenCRQ | | `FILE_STORAGE__BUCKET` | `OPENCRQ_S3_BUCKET`, `opencrq` by default | The bucket of OpenCRQ. OpenCRQ never creates it: in xtm-docker, the `opencrq-bucket-init` job does, at every start | | `FILE_STORAGE__REGION` | | The region of the bucket, `eu-west-3` by default | On your own S3 service, create the bucket first, and keep `opencrq-bucket-init` from starting, as the last step of [PostgreSQL](#postgresql) does for `opencrq-db-init`. ## PostgreSQL {#postgresql} OpenAEV, OpenCRQ and XTM One share the `pgsql` instance, each with its own database: `openaev`, `opencrq` and `xtm_one`. - OpenAEV connects with the superuser of the instance, `POSTGRES_USER` and `POSTGRES_PASSWORD` of `.env`. - XTM One connects with its own role, `XTM_ONE_POSTGRES_USER` and `XTM_ONE_POSTGRES_PASSWORD`, which must differ from the superuser. At every start, the `xtm-one-db-init` service creates that role, the `xtm_one` database and the `vector` extension (pgvector) that XTM One needs. Only a superuser can create that extension. - OpenCRQ connects with its own role too, `OPENCRQ_POSTGRES_USER` (`opencrq`) and `OPENCRQ_POSTGRES_PASSWORD`, which must differ from the superuser and from the XTM One role. At every start, the `opencrq-db-init` service creates that role, sets its password from `.env`, and creates the `opencrq` database it owns. The only extension OpenCRQ creates, `uuid-ossp`, is a trusted one: the role needs no superuser right. Set `OPENCRQ_POSTGRES_USER` once: changed after the first start, the `opencrq` database and its tables stay owned by the old role. - `infra/postgresql.yml` starts PostgreSQL with `max_connections=200`: OpenAEV opens up to 20 connections, XTM One up to 35 per process, over its web processes and its worker, and OpenCRQ about 50 at peak. Keep at least this value on your own server. - It also gives the container 1 GB of shared memory (`shm_size`): parallel queries pass their rows through it, and the aggregates of OpenCRQ fail past the 64 MB a container gets by default. To use your own PostgreSQL server: 1. On your server, connect with `psql` as a superuser and create the databases, the roles of XTM One and OpenCRQ, and the extension. Use the values of `XTM_ONE_POSTGRES_USER` (`xtmone` in `.env.sample`), `XTM_ONE_POSTGRES_PASSWORD`, `OPENCRQ_POSTGRES_USER` (`opencrq`) and `OPENCRQ_POSTGRES_PASSWORD` from `.env`. ```sql CREATE DATABASE openaev; CREATE ROLE opencrq LOGIN PASSWORD 'the value of OPENCRQ_POSTGRES_PASSWORD'; CREATE DATABASE opencrq OWNER opencrq; CREATE ROLE xtmone LOGIN PASSWORD 'the value of XTM_ONE_POSTGRES_PASSWORD'; CREATE DATABASE xtm_one OWNER xtmone; \connect xtm_one CREATE EXTENSION IF NOT EXISTS vector; ``` 2. Point OpenAEV to it, in the `openaev` service of `docker-compose.override.yml`. Set `POSTGRES_USER` and `POSTGRES_PASSWORD` in `.env` to a role of your server that can create extensions in the `openaev` database, as the superuser does in xtm-docker: OpenAEV creates the `hstore` and `pg_trgm` extensions during its migrations. ```yaml - SPRING_DATASOURCE_URL=jdbc:postgresql://postgres.example.com:5432/openaev - SPRING_DATASOURCE_USERNAME=${POSTGRES_USER} - SPRING_DATASOURCE_PASSWORD=${POSTGRES_PASSWORD} ``` 3. Point XTM One to it, in the `xtm-one` and `xtm-one-worker` services of `docker-compose.override.yml`: ```yaml - DATABASE_URL=postgresql+asyncpg://${XTM_ONE_POSTGRES_USER}:${XTM_ONE_POSTGRES_PASSWORD}@postgres.example.com:5432/xtm_one ``` 4. Point OpenCRQ to it, in the `opencrq` service of `docker-compose.override.yml`. It keeps connecting as `OPENCRQ_POSTGRES_USER`: ```yaml - POSTGRES__HOST=postgres.example.com - POSTGRES__PORT=5432 ``` 5. Keep the `pgsql`, `xtm-one-db-init` and `opencrq-db-init` services from starting, and remove them from the `depends_on` lists of `openaev`, `xtm-one` and `opencrq`. With steps 2 to 4, `docker-compose.override.yml` holds: ```yaml services: openaev: environment: - SPRING_DATASOURCE_URL=jdbc:postgresql://postgres.example.com:5432/openaev - SPRING_DATASOURCE_USERNAME=${POSTGRES_USER} - SPRING_DATASOURCE_PASSWORD=${POSTGRES_PASSWORD} depends_on: pgsql: !reset null xtm-one: environment: - DATABASE_URL=postgresql+asyncpg://${XTM_ONE_POSTGRES_USER}:${XTM_ONE_POSTGRES_PASSWORD}@postgres.example.com:5432/xtm_one depends_on: xtm-one-db-init: !reset null xtm-one-worker: environment: - DATABASE_URL=postgresql+asyncpg://${XTM_ONE_POSTGRES_USER}:${XTM_ONE_POSTGRES_PASSWORD}@postgres.example.com:5432/xtm_one opencrq: environment: - POSTGRES__HOST=postgres.example.com - POSTGRES__PORT=5432 depends_on: opencrq-db-init: !reset null pgsql: profiles: !override ["disabled"] xtm-one-db-init: profiles: !override ["disabled"] opencrq-db-init: profiles: !override ["disabled"] ``` If they ran, remove their containers with `docker compose rm -sf pgsql xtm-one-db-init opencrq-db-init`. **Check that it worked** ```bash docker compose config --quiet && echo "configuration OK" ``` It prints `configuration OK`. After `docker compose up -d`, `docker compose ps` shows `openaev`, `xtm-one` and `opencrq` healthy. ## Mail server {#mail-server} The `SMTP_*` and `IMAP_*` variables of `.env` do not reach every platform: | Platform | Reads | | --- | --- | | OpenAEV | Every `SMTP_*` variable, and the `IMAP_*` variables when `OPENAEV_MAIL_IMAP_ENABLED=true` | | OpenCTI | `SMTP_HOST` only: `modules/opencti.yml` sets the port to 25, without authentication | OpenAEV sends the email injects of simulations through SMTP. On port 587, as with Gmail or Microsoft 365, set `SMTP_STARTTLS_ENABLE=true` and `SMTP_SSL_ENABLE=false`; on port 465, the reverse. A mailbox protected by two-factor authentication needs an app password, created in the account of the mailbox, in `SMTP_PASSWORD`. With IMAP on, OpenAEV reads the same mailbox every 10 seconds, to show the players' replies in the simulation: it reads the folders of `OPENAEV_MAIL_IMAP_INBOX` (`INBOX`, several separated by commas) and files what it sends in `OPENAEV_MAIL_IMAP_SENT` (`Sent`), which it creates when missing. Gmail names that folder `[Gmail]/Sent Mail`. The keys are in the [spring.mail](https://filigran.io/docs/reference/openaev/configuration/#spring-mail) and [openaev.mail](https://filigran.io/docs/reference/openaev/configuration/#openaev-mail) blocks of the configuration reference. To send OpenCTI mail through a relay that needs authentication, add these variables to the `opencti` service in `docker-compose.override.yml`. `SMTP__PORT` replaces the port 25 that `modules/opencti.yml` sets: ```yaml services: opencti: environment: - SMTP__PORT=${SMTP_PORT} - SMTP__USERNAME=${SMTP_USERNAME} - SMTP__PASSWORD=${SMTP_PASSWORD} - SMTP__USE_SSL=${SMTP_SSL_ENABLE} ``` `SMTP__USE_SSL=true` opens the connection in TLS, as on port 465. On port 587, keep `SMTP_SSL_ENABLE=false`. *(OpenCTI 7.260811 and later)* For a provider that no longer accepts passwords, such as Microsoft 365, OpenCTI authenticates with OAuth2: set `SMTP__AUTH_TYPE=oauth2`, then `SMTP__OAUTH_USER` (the mailbox), `SMTP__OAUTH_CLIENT_ID`, `SMTP__OAUTH_CLIENT_SECRET`, `SMTP__OAUTH_ISSUER` (the OpenID Connect issuer URL of the provider) and `SMTP__OAUTH_REFRESH_TOKEN`, instead of `SMTP__USERNAME` and `SMTP__PASSWORD`. OpenCTI exchanges the refresh token for an access token before it sends. Request the refresh token with the scope that allows sending through SMTP: for Microsoft 365, `https://outlook.office.com/SMTP.Send` with `offline_access`; for Google Workspace, `https://mail.google.com/`. OpenCTI can also take its mail server from its interface, in **Settings > Security > SMTP configuration**, without a restart. When that configuration is in use, OpenCTI ignores the `SMTP__*` variables. See [Send emails from OpenCTI](https://filigran.io/docs/opencti/administer/smtp/). *(OpenCTI 7.261030 and later)* `SMTP__CONNECTION_TIMEOUT` and `SMTP__GREETING_TIMEOUT`, in milliseconds, apply in both cases: OpenCTI always reads them from its configuration. **Example: Point OpenCTI to the managed services of Example CERT** Example CERT runs OpenCTI at https://cti.example.com for the hotel chains it serves. It moves OpenCTI to its own services: an Elasticsearch cluster of three nodes with an API key, a Redis Sentinel group, a RabbitMQ cluster behind a TLS load balancer, and an S3 bucket on AWS reached with the role of the host. Its internal CA signed the certificates of the cluster and of the broker; `./certs/internal-ca.pem` holds it. In `docker-compose.override.yml`: ```yaml services: opencti: volumes: - ./certs:/opt/opencti/certs:ro environment: - ELASTICSEARCH__URL=https://search.example.com:9200 - ELASTICSEARCH__API_KEY=${OPENCTI_ELASTIC_API_KEY} - ELASTICSEARCH__SSL__CA=/opt/opencti/certs/internal-ca.pem - ELASTICSEARCH__NUMBER_OF_SHARDS=3 - ELASTICSEARCH__NUMBER_OF_REPLICAS=1 - REDIS__MODE=sentinel - 'REDIS__HOSTNAMES=["sentinel1.example.com:26379","sentinel2.example.com:26379","sentinel3.example.com:26379"]' - REDIS__SENTINEL_MASTER_NAME=opencti - REDIS__SENTINEL_PASSWORD=${REDIS_SENTINEL_PASSWORD} - REDIS__PASSWORD=${REDIS_PASSWORD} - REDIS__SENTINEL_FAILOVER_DETECTOR=true - RABBITMQ__HOSTNAME=rabbitmq.example.com - RABBITMQ__PORT=5671 - RABBITMQ__PORT_MANAGEMENT=15671 - RABBITMQ__USERNAME=opencti - RABBITMQ__PASSWORD=${OPENCTI_RABBITMQ_PASSWORD} - RABBITMQ__QUEUE_TYPE=quorum - RABBITMQ__USE_SSL=true - 'RABBITMQ__USE_SSL_CA=["/opt/opencti/certs/internal-ca.pem"]' - RABBITMQ__USE_SSL_REJECT_UNAUTHORIZED=true - RABBITMQ__MANAGEMENT_SSL=true - RABBITMQ__MANAGEMENT_SSL_REJECT_UNAUTHORIZED=true - NODE_EXTRA_CA_CERTS=/opt/opencti/certs/internal-ca.pem - MINIO__ENDPOINT=s3.amazonaws.com - MINIO__PORT=443 - MINIO__USE_SSL=true - MINIO__BUCKET_NAME=example-cert-opencti - MINIO__BUCKET_REGION=eu-west-3 - MINIO__USE_AWS_ROLE=true depends_on: elasticsearch: !reset null redis: !reset null rabbitmq: !reset null minio: !reset null ``` After `docker compose up -d opencti`, the query of [Check that it works](#check-that-it-works) lists `Search engine`, `RabbitMQ` and `Redis` with the versions of Example CERT's services. The bundled services still start for the other modules: give each one the `disabled` profile once no module uses it, as [Who uses which service](#who-uses-which-service) shows. ## Read the service credentials of OpenCTI from CyberArk {#read-the-service-credentials-of-opencti-from-cyberark} When your policy forbids passwords in `.env`, OpenCTI can fetch the credentials of Elasticsearch, Redis and S3 storage from the CyberArk Central Credential Provider when it connects to them. Each service has its prefix: `ELASTICSEARCH`, `REDIS`, or `MINIO` for S3 storage. | Variable | Default | Set it to | | --- | --- | --- | | `__CREDENTIALS_PROVIDER__SELECTOR` | | `cyberark`. Without it, OpenCTI ignores the other variables of the service | | `__CREDENTIALS_PROVIDER__CYBERARK__URI` | | The Accounts endpoint of the Central Credential Provider, such as `https://cyberark.example.com/AIMWebService/api/Accounts` | | `__CREDENTIALS_PROVIDER__CYBERARK__APP_ID`, `__SAFE`, `__OBJECT` | | The application ID, safe and object of the account, sent as `AppID`, `Safe` and `Object` | | `__CREDENTIALS_PROVIDER__CYBERARK__FIELD_TARGETS` | | A JSON list: the setting that receives each value of the secret, in order. Without it, OpenCTI reads `__CREDENTIALS_PROVIDER__FIELD_TARGETS`. With neither, the secret fills nothing | | `__CREDENTIALS_PROVIDER__CYBERARK__DEFAULT_SPLITTER` | `:` | The separator between the values of the secret, as in `user:password`. OpenCTI cuts the secret at every separator, so a password that contains it is cut too: choose a separator your passwords never contain | | `__CREDENTIALS_PROVIDER__HTTPS_CERT__CRT`, `__KEY` | | When the provider asks for a client certificate: the certificate and its private key, each as its PEM content encoded in base64 on one line, not a path | | `__CREDENTIALS_PROVIDER__HTTPS_CERT__CA` | | Read only together with a client certificate. Leave it unset, and give the CA that signed the certificate of the provider to `NODE_EXTRA_CA_CERTS`, as described in [Trust your certificate authority and proxy](https://filigran.io/docs/deploy/configure/certificates/): a list set here replaces the CAs OpenCTI trusts, and does not load as a CA | | `__CREDENTIALS_PROVIDER__HTTPS_CERT__REJECT_UNAUTHORIZED` | off | `true` to check the certificate of the provider. Keep `true` in production: with `false`, anyone between OpenCTI and the provider can pose as it and read the secrets | The settings a secret can fill depend on the service: | Service | Prefix | Field targets | | --- | --- | --- | | Elasticsearch or OpenSearch | `ELASTICSEARCH` | `username` and `password`, or `apiKey` | | Redis | `REDIS` | `username` and `password`; with Sentinel, also `sentinelUsername` and `sentinelPassword` | | S3 storage | `MINIO` | `accessKeyId` and `secretAccessKey` | For example, Example CERT keeps the Elasticsearch and Redis accounts of OpenCTI in the CyberArk safe `cti-platform`, each as its user name and password separated by `|`, because the passwords may contain a colon. Its Central Credential Provider accepts only clients with a certificate, signed like the provider's own certificate by the internal CA. The platform team stores the client certificate and its key, base64-encoded, in `.env` as `CYBERARK_CLIENT_CERT_B64` and `CYBERARK_CLIENT_KEY_B64` (for example with `base64 -w0 opencti-client.crt`), and adds to the `opencti` service in `docker-compose.override.yml`: ```yaml services: opencti: volumes: - ./certs:/opt/opencti/certs:ro environment: - ELASTICSEARCH__CREDENTIALS_PROVIDER__SELECTOR=cyberark - ELASTICSEARCH__CREDENTIALS_PROVIDER__CYBERARK__URI=https://cyberark.example.com/AIMWebService/api/Accounts - ELASTICSEARCH__CREDENTIALS_PROVIDER__CYBERARK__APP_ID=opencti - ELASTICSEARCH__CREDENTIALS_PROVIDER__CYBERARK__SAFE=cti-platform - ELASTICSEARCH__CREDENTIALS_PROVIDER__CYBERARK__OBJECT=elasticsearch-opencti - 'ELASTICSEARCH__CREDENTIALS_PROVIDER__CYBERARK__FIELD_TARGETS=["username","password"]' - ELASTICSEARCH__CREDENTIALS_PROVIDER__CYBERARK__DEFAULT_SPLITTER=| - ELASTICSEARCH__CREDENTIALS_PROVIDER__HTTPS_CERT__CRT=${CYBERARK_CLIENT_CERT_B64} - ELASTICSEARCH__CREDENTIALS_PROVIDER__HTTPS_CERT__KEY=${CYBERARK_CLIENT_KEY_B64} - ELASTICSEARCH__CREDENTIALS_PROVIDER__HTTPS_CERT__REJECT_UNAUTHORIZED=true - REDIS__CREDENTIALS_PROVIDER__SELECTOR=cyberark - REDIS__CREDENTIALS_PROVIDER__CYBERARK__URI=https://cyberark.example.com/AIMWebService/api/Accounts - REDIS__CREDENTIALS_PROVIDER__CYBERARK__APP_ID=opencti - REDIS__CREDENTIALS_PROVIDER__CYBERARK__SAFE=cti-platform - REDIS__CREDENTIALS_PROVIDER__CYBERARK__OBJECT=redis-opencti - 'REDIS__CREDENTIALS_PROVIDER__FIELD_TARGETS=["username","password"]' - REDIS__CREDENTIALS_PROVIDER__CYBERARK__DEFAULT_SPLITTER=| - REDIS__CREDENTIALS_PROVIDER__HTTPS_CERT__CRT=${CYBERARK_CLIENT_CERT_B64} - REDIS__CREDENTIALS_PROVIDER__HTTPS_CERT__KEY=${CYBERARK_CLIENT_KEY_B64} - REDIS__CREDENTIALS_PROVIDER__HTTPS_CERT__REJECT_UNAUTHORIZED=true - NODE_EXTRA_CA_CERTS=/opt/opencti/certs/internal-ca.pem ``` Each service carries its own provider settings, client certificate included: Redis reads none of the Elasticsearch ones. `ELASTICSEARCH__CREDENTIALS_PROVIDER__HTTPS_CERT__CA` and its Redis counterpart stay unset: `NODE_EXTRA_CA_CERTS` makes OpenCTI trust the internal CA that signed the provider's certificate. Redis takes its field targets from the variable without `CYBERARK`, which serves any provider; both forms work. At startup, the logs of `opencti` show `Remote credentials successfully fetched` once for the source `elasticsearch` and once for the source `redis`. When the provider cannot be reached, they show `Remote credentials data fail to fetch, fallback`. Then, as when the provider returns no secret, OpenCTI connects with the `ELASTICSEARCH__USERNAME` and `ELASTICSEARCH__PASSWORD` of its configuration, if any. The secrets of single sign-on providers use the same mechanism under another prefix: see [Authentication](https://filigran.io/docs/opencti/administer/authentications/). ## Check that it works {#check-that-it-works} From the host, ask OpenCTI which versions of its services it reaches: ```bash set -a; . ./.env; set +a curl -s "http://localhost:$OPENCTI_PORT/graphql" \ -H "Authorization: Bearer $OPENCTI_ADMIN_TOKEN" -H 'Content-Type: application/json' \ -d '{"query":"{ about { dependencies { name version } } }"}' ``` **Check that it worked** The answer lists `Search engine`, `RabbitMQ` and `Redis`, each with a version. `docker compose ps` shows `opencti`, `openaev` and `xtm-one` healthy. ## What's next {#what-s-next} - [Trust your certificate authority and proxy](https://filigran.io/docs/deploy/configure/certificates/), to trust the certificates of your services. - [Connect the modules to each other](https://filigran.io/docs/deploy/configure/connect-modules/). - [Back up and restore](https://filigran.io/docs/deploy/operate/backup/), for the data these services hold. - [Scale: workers, platforms and clusters](https://filigran.io/docs/deploy/operate/scale/). --- # Configure XTM One > Finish 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. - URL: https://filigran.io/docs/deploy/configure/xtm-one/ - Products: XTM One 1.261119.1 - For: platform engineers - Type: How-to guide XTM One starts with the rest of the XTM stack, as [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/) describes. This page first takes it from running to usable: the reverse proxy it trusts, the first sign-in, a language model and its edition. It then sets the configuration a deployment of XTM One decides on: its secrets, its public URL, the language models, its edition, its links to the other platforms, mail, the security headers of its pages, its sandbox and the package mirror of the sandbox, and the size of its processes. Every setting here is an environment variable of the `xtm-one` and `xtm-one-worker` containers, read when they start. Read the [XTM One configuration](https://filigran.io/docs/reference/xtm-one/configuration/) reference for every variable. **Diagram: XTM One reads its environment once at start, on the platform and on the worker; the Settings screens store the rest in its database** - What you edit: .env (XTM_ONE_* values of xtm-docker), docker-compose.override.yml (Every other variable), Settings screens (AI Models, Security, Parameters) - XTM One: xtm-one (Reads its environment at start), xtm-one-worker (Same URL, secret and license) - Stored: xtm_one database (Providers, options, encrypted keys) Connections: - .env → xtm-one: docker compose up -d - docker-compose.override.yml → xtm-one: docker compose up -d - .env → xtm-one-worker: same values - Settings screens → xtm_one database: saved - xtm_one database → xtm-one: unless a variable locks ## What XTM One runs on {#what-xtm-one-runs-on} **Diagram: XTM One runs as a platform and a worker on the shared services of the stack, behind the reverse proxy, and calls the language models you connect** - Users and platforms: Browser (https://xtm-one.example.com), OpenCTI and OpenAEV (register on http://xtm-one:4000) - XTM One: xtm-one (Interface, API, chat, port 4000), xtm-one-worker (Assignments, schedules, indexing) - Shared services: PostgreSQL (xtm_one database, pgvector), Redis (Jobs, live chat, locks), S3 storage (xtm-one-files bucket) - Models: Language models (A provider or a local endpoint) Connections: - Browser → xtm-one: through the reverse proxy - OpenCTI and OpenAEV → xtm-one: register every 5 minutes - xtm-one → PostgreSQL: its data - xtm-one-worker → Redis: background jobs - xtm-one-worker → S3 storage: files - xtm-one → Language models: prompts - xtm-one-worker → Language models: prompts | Component | What XTM One needs | In xtm-docker | | --- | --- | --- | | Images | `xtmone/platform`, the interface, the API and the chat on port 4000, and `xtmone/worker`, which runs the background work: assignments, schedules, knowledge base indexing. Both at the same version. They are published for `linux/amd64` only | The `xtm-one` and `xtm-one-worker` services, always started | | PostgreSQL | PostgreSQL 17 with the `vector` extension (pgvector) in its database. The extension needs a superuser to create it | The shared `pgsql` service: the `xtm-one-db-init` job creates the `xtm_one` database, its role `XTM_ONE_POSTGRES_USER` and the extension at each start | | Redis | The queue of background jobs, the live chat, locks, rate limits and quota counters. It holds working state, not your data | The shared `redis` service | | S3 storage | A bucket for uploaded documents, chat attachments, generated files and large trace payloads. XTM One creates it when it does not exist | The shared `minio` service, bucket `XTM_ONE_S3_BUCKET` (`xtm-one-files`) | | A language model | At least one provider XTM One reaches, such as OpenAI, Anthropic, Google Gemini, Mistral AI, Azure OpenAI or AWS Bedrock, or a model on your network through Ollama, LiteLLM or an OpenAI-compatible endpoint | None: you add it after the first sign-in | | An edition | AI agents and the chat run with the Enterprise Edition only: a Filigran license in XTM One, or a registered OpenCTI or OpenAEV that has one | `XTM_ONE_ENTERPRISE_LICENSE`, empty in `.env.sample` | With the Community Edition, XTM One starts and its screens open, but the chat and the agents stay off. The MCP servers of the registered platforms work in both editions. See [What each edition of XTM One brings](https://filigran.io/docs/xtm-one/administer/editions/). ## Finish the setup after the install {#finish-the-setup-after-the-install} Once the stack runs, with XTM One published on `127.0.0.1:8090` and a reverse proxy that serves `xtm-one.example.com` over HTTPS, these steps take XTM One from running to usable. Run their commands from the folder of the stack. Keep at hand an API key of a language model provider, or the address of a model served on your network, and a Filigran license certificate unless a registered OpenCTI or OpenAEV has one. xtm-docker builds the whole configuration of XTM One from `.env`. Three values decide what you cannot change later without trouble: | Variable of `.env` | What it is | | --- | --- | | `XTM_ONE_SECRET_KEY` | Signs the sessions and the tokens XTM One sends to the other platforms, and encrypts the credentials it stores, such as the API keys of the language models. Never change it once XTM One has started: every credential it encrypted becomes unreadable | | `XTM_ONE_ADMIN_EMAIL` | The administrator account, created at the first start. It must be the admin email of OpenCTI and OpenAEV: XTM One finds a person in each platform by email | | `XTM_ONE_ADMIN_PASSWORD` | The password of that account, 72 bytes at most. XTM One applies it again at every start: change it in `.env`, then restart, rather than in the interface, where a change lasts until the next restart | 1. Check that `.env` holds your own values, not those of `.env.sample`. ```bash grep -E '^(XTM_ONE_(HOST|PORT|EXTERNAL_SCHEME|ADMIN_EMAIL|SECRET_KEY)|PLATFORM_REGISTRATION_TOKEN)=' .env ``` **Check that it worked** `XTM_ONE_EXTERNAL_SCHEME=https`, `XTM_ONE_HOST=xtm-one.example.com`, `XTM_ONE_PORT=443`, your administrator's email, and long random values for the secret and the token, not `ChangeMeWithGeneratedRandomString`. 2. Let the reverse proxy keep long requests open and stream the chat. An agent's answer can take minutes, and Nginx closes a request after 60 seconds without data by default. Add these lines to the `location /` block of `xtm-one.example.com` in your proxy configuration, then reload it: ```nginx proxy_read_timeout 300s; proxy_send_timeout 300s; ``` Keep `client_max_body_size` at 50 MB or more: knowledge base uploads reach that size. The chat streams its answers as server-sent events, which need three things from the proxy: - HTTP/2 between the browsers and the proxy (`http2 on;` in the `server` block). Every open tab of XTM One holds its streams, and over HTTP/1.1 a few tabs use up the connections a browser opens to one host: XTM One then stops loading. - Response buffering off for `/api/`, or each answer shows only once it is complete. Nginx follows the `X-Accel-Buffering: no` header XTM One sends with its streams. - A read timeout above 15 seconds: a stream with nothing to send writes a keep-alive every 15 seconds. The 300 seconds above cover it. The server block of [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/) already serves HTTP/2 and turns buffering off. It also forwards WebSockets, which the XTM One Desktop app, the runners and the relays use; the chat does not. 3. Tell XTM One which address its reverse proxy reaches it from. Behind a proxy, every request comes from the proxy: until XTM One trusts it, the audit log records the proxy's address for every person, the sign-in rate limit counts everyone as one client, and the agent-to-agent endpoints refuse every request with `403 https required`. A proxy on the Docker host reaches the container from the gateway of the stack's network: ```bash docker network inspect xtm_default --format '{{(index .IPAM.Config 0).Gateway}}' ``` `xtm` is the `COMPOSE_PROJECT_NAME` of `.env`. Write that address as `FORWARDED_ALLOW_IPS` under the `xtm-one` service of `docker-compose.override.yml`, above the `# Pinned versions` line: ```yaml services: xtm-one: environment: - FORWARDED_ALLOW_IPS=172.18.0.1 ``` `FORWARDED_ALLOW_IPS` takes an address, a network in CIDR form or a comma-separated list, and no host name. For a proxy elsewhere, name the address XTM One sees it from; behind several proxies, list each of them. See [Public URL and reverse proxy](#public-url-and-reverse-proxy). 4. Apply the changes, then wait until XTM One is ready. ```bash docker compose up -d docker compose exec xtm-one curl -sS http://localhost:4000/api/health/ready ``` **Check that it worked** It prints `{"database":"ok","redis":"ok","s3":"ok","status":"ok"}`. The first start creates the tables and the built-in agents: until it ends, the answer reads `"status": "starting"`, with HTTP status 503. A dependency that does not answer turns its own field into an error, such as `"s3":"error: bucket not found"`. The healthcheck of xtm-docker asks `/api/health`, which answers as soon as the server listens, so `healthy` in `docker compose ps` comes before ready. 5. Open `https://xtm-one.example.com` and sign in once, then read the last request in the access log of XTM One. ```bash docker compose logs --tail 200 xtm-one | grep '"http_request"' | tail -n 1 ``` **Check that it worked** `client_ip` is the address of your workstation. The gateway address there means that `FORWARDED_ALLOW_IPS` does not name the proxy: correct it and restart `xtm-one`. ## Connect a language model {#connect-a-language-model} 1. Sign in at `https://xtm-one.example.com` with `XTM_ONE_ADMIN_EMAIL` and `XTM_ONE_ADMIN_PASSWORD`. 2. Open **Settings** > **AI and models** > **Models**, click **Add Provider**, choose the provider, enter its API key and the models to offer. See [Set up the platform in Settings](https://filigran.io/docs/xtm-one/administer/settings/). 3. Add the license: **Settings** > **Platform** > **Enterprise License**, or the certificate in `XTM_ONE_ENTERPRISE_LICENSE`, which then locks the field. Skip this step when a registered OpenCTI or OpenAEV has the Enterprise Edition. To keep the provider in the configuration of the deployment instead, set its key as a variable of the `xtm-one` service: `LLM_PROVIDER__API_KEY`, where `` is `OPENAI`, `ANTHROPIC`, `GEMINI`, `MISTRAL`, `AZURE_OPENAI`, `BEDROCK`, `OPENROUTER`, `OLLAMA`, `LITELLM` or `CUSTOM_OPENAI`. XTM One applies it at each start, and **Models** shows the provider with an **Env** badge. [Language models](#language-models) lists the variables that go with it. ![The Models section of Settings, tab AI and models: the provider set by the deployment carries its Env badge and is active, its model is the default of the agents, and the routing, fallback, embedding and decision models each have their own section.](https://filigran.io/docs/shots/a4672cbda70d58303d2a405ab79fc32c23e30ecd458905e9d309b2420112e0f9.webp) **Check that it worked** Open **Chat** and ask "What can you do?". The **CTEM Assistant**, the default agent of every person, answers in a few seconds. An error that names the provider or the model means the key or the model is wrong. **Example: Bring XTM One into service at Grand Meridian Hotels** Marc Dupuis, of IT operations at Grand Meridian Hotels, installed the stack on `xtm-one.grand-meridian.example` and its sister host names, behind Nginx on the Docker host. The stack's network gateway is `172.18.0.1`. He keeps the Anthropic key in the team's secret store and adds it to `.env` as a named variable, `XTM_ONE_ANTHROPIC_API_KEY`, then writes `docker-compose.override.yml`: ```yaml services: xtm-one: environment: - FORWARDED_ALLOW_IPS=172.18.0.1 - LLM_PROVIDER_ANTHROPIC_API_KEY=${XTM_ONE_ANTHROPIC_API_KEY} - LLM_PROVIDER_ANTHROPIC_MODELS=claude-sonnet-5,claude-haiku-4-5-20251001 - DEFAULT_MODEL=claude-sonnet-5 ``` After `docker compose up -d`, `/api/health/ready` answers `"status":"ok"`, and Hélène Marchetti, the CISO, signs in with `XTM_ONE_ADMIN_EMAIL`, `helene.marchetti@grand-meridian.example`, the admin email of OpenCTI and OpenAEV too. **Models** shows Anthropic with its **Env** badge, and the license OpenCTI holds gives XTM One its Enterprise Edition once OpenCTI registers. ## How XTM One reads its settings {#how-xtm-one-reads-its-settings} - **Two containers.** `xtm-one` serves the interface, the API and the chat; `xtm-one-worker` runs the background work. Both read the public URL, the secret, the database, the storage and the license, and must have the same values. A variable this page gives for one container only is read by that one. - **Read at start.** After a change, run `docker compose up -d`: Docker Compose recreates the containers whose configuration changed. A value XTM One refuses, such as a malformed list or a negative limit, stops it at start with a message that names the variable. - **Variable or screen.** Agents, language models, single sign-on and most security options are set in **Settings** and stored in the database. Where a screen field has a variable, the variable wins when it is set: the field shows it read-only, and a change from the screen is refused. xtm-docker passes XTM One a fixed list of variables, built from `.env`: | In `.env` of xtm-docker | XTM One variable | Containers | | --- | --- | --- | | `XTM_ONE_EXTERNAL_SCHEME`, `XTM_ONE_HOST`, `XTM_ONE_PORT` | `BASE_URL`, `FRONTEND_URL` | Both | | `XTM_ONE_ADMIN_EMAIL`, `XTM_ONE_ADMIN_PASSWORD` | `ADMIN_EMAIL`, `ADMIN_PASSWORD` | Both | | `XTM_ONE_SECRET_KEY` | `SECRET_KEY` | Both | | `XTM_ONE_POSTGRES_USER`, `XTM_ONE_POSTGRES_PASSWORD` | `DATABASE_URL`, on the `xtm_one` database of `pgsql` | Both | | `MINIO_ROOT_USER`, `MINIO_ROOT_PASSWORD`, `XTM_ONE_S3_BUCKET` | `S3_ACCESS_KEY`, `S3_SECRET_KEY`, `S3_BUCKET` | Both | | `PLATFORM_REGISTRATION_TOKEN` | `PLATFORM_REGISTRATION_TOKEN` | Both | | `XTM_ONE_ENTERPRISE_LICENSE` | `ENTERPRISE_LICENSE` | Both | | `XTM_ONE_LOG_LEVEL`, `XTM_ONE_LOG_FORMAT` | `LOG_LEVEL`, `LOG_FORMAT` | Both | | Fixed | `PLATFORM_MODE=xtm_one`, `REDIS_URL=redis://redis:6379`, `S3_ENDPOINT=minio:9000`, `S3_USE_SSL=false` | Both | | Fixed | `OPENCTI_API_URL=http://opencti:8080`, `OPENAEV_API_URL=http://openaev:8080`, `OPENCRQ_API_URL=http://opencrq:3002`, `XTM_AUTH_ACCEPTED_AUDIENCES=http://xtm-one:4000` | `xtm-one` | | `XTM_ONE_CUSTOM_TOOL_SANDBOX`, `OPENSANDBOX_API_KEY`, `XTM_ONE_OPENSANDBOX_IMAGES`, `XTM_ONE_OPENSANDBOX_NETWORK_ALLOW` | `CUSTOM_TOOL_SANDBOX`, `OPENSANDBOX_API_KEY`, `OPENSANDBOX_IMAGES`, `OPENSANDBOX_NETWORK_ALLOW`, with `OPENSANDBOX_DOMAIN=opensandbox:8090`: see [Run code in OpenSandbox](#run-code-in-opensandbox) | Both | Any other variable goes in `docker-compose.override.yml`, under the `environment` of the service, above the `# Pinned versions` line: see [Change the stack without editing docker-compose.yml](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml). ## Secrets and the administrator {#secrets-and-the-administrator} | Variable | Default | What to know | | --- | --- | --- | | `SECRET_KEY` | Required | Signs the sessions and the tokens XTM One sends, and encrypts the credentials it stores: provider keys, integration secrets, OAuth tokens. Never change it once XTM One has started. Changed or lost, every stored credential becomes unreadable and every session ends, with no way back but the old value | | `ADMIN_EMAIL` | `admin@filigran.io` in the module | The administrator account. At every start, XTM One creates it or makes it an active administrator again | | `ADMIN_PASSWORD` | Required | The password of that account, applied again at every start. At most 72 bytes: a longer value stops the platform | | `ADMIN_TOKEN` | None | An API key for that account, for automation: it starts with `fcp-` and has 32 characters or more | Because the administrator's password follows `.env` at every start, `.env` gives control of XTM One: keep it readable by its owner only (`chmod 600 .env`), out of version control, with a copy in your secret store. Change the password in `.env`, then restart. ## Public URL and reverse proxy {#public-url-and-reverse-proxy} | Variable | Default | What to know | | --- | --- | --- | | `BASE_URL` | `http://localhost:4000` in the module | The public URL people open. It builds the links of emails and of single sign-on, and it is the issuer of every token XTM One signs for OpenCTI, OpenAEV and OpenCRQ: set the same value on both containers, as xtm-docker does | | `FRONTEND_URL` | Same as `BASE_URL` | Where the browser comes back after a single sign-on. Mail clients load the images of XTM One's emails from it, under `/email-assets/` | | `FORWARDED_ALLOW_IPS` | `127.0.0.1` | The proxies XTM One trusts, on `xtm-one`: an address, a CIDR network or a comma-separated list. It reads the client address from `X-Forwarded-For` and the scheme from `X-Forwarded-Proto` only on requests from them | | `TRUST_PROXY_HEADERS` | `false` | Trusts the forwarded headers from any peer, and takes the leftmost `X-Forwarded-For` value, which a client can write. Leave it off and use `FORWARDED_ALLOW_IPS` | | `BASE_PATH`, `BASE_PATH_MODE` | None, `auto` | Serve XTM One under a path, such as `/xtm-one`. `BASE_URL` and `FRONTEND_URL` then end with the same path | Without `FORWARDED_ALLOW_IPS` naming the proxy, XTM One sees every request as plain HTTP from the proxy's address: the audit log records that address for every person, the per-address rate limits of the sign-in and password reset count everyone as one client, and the agent-to-agent endpoints refuse every request with `403 https required`. XTM One reads `FORWARDED_ALLOW_IPS` when it starts: it is not a field of **Settings** > **Access and security**. It resolves no host name, and a network must have its host bits at zero (`10.42.0.0/16`, not `10.42.0.1/16`); it logs any other entry at start, and that entry trusts nobody. Behind several proxies, such as a load balancer then an ingress, list each one. `*` trusts every peer: use it only when nothing but the proxy reaches the container. Give XTM One its own host name, like the other platforms. Under `BASE_PATH`, the health endpoints and `/metrics` stay at the root of the container's port, and the prefix must not start with a path XTM One serves itself, such as `/api`, `/mcp` or `/xtm`: the platform refuses it at start. See the [URLs](https://filigran.io/docs/reference/xtm-one/configuration/#urls) of the reference. ## Language models {#language-models} An administrator can add providers in **Settings** > **AI and models** > **Models**. To keep them in the configuration of the deployment instead, set them on `xtm-one`: the platform applies them at each start, and the worker reads them from the database. | Variable | Default | What it sets | | --- | --- | --- | | `LLM_PROVIDER__API_KEY` | None | The key of a provider. `` is `OPENAI`, `ANTHROPIC`, `GEMINI`, `MISTRAL`, `AZURE_OPENAI`, `BEDROCK`, `OPENROUTER`, `OLLAMA`, `LITELLM`, `CUSTOM_OPENAI` or `FILIGRAN_GATEWAY`. The provider shows an **Env** badge and cannot be deleted from the screen: remove the variable and restart to remove it | | `LLM_PROVIDER__MODELS` | None | The models offered, comma-separated. Unset, XTM One leaves the list stored for the provider as it is. A provider with no list chats on its built-in model only while no other provider lists one. `FILIGRAN_GATEWAY` is the exception: unset while no other provider offers a chat model, XTM One asks the gateway for its models at each start | | `LLM_PROVIDER_MODELS_EDITABLE` | `false` | `false`: the list of the variable is the catalog, rewritten at each start. `true`: it is a baseline that administrators can curate in **Models** | | `MODELS_ENV_PROVIDING_ONLY` | `false` | `true` refuses every change to providers from the screen and the API | | `DEFAULT_MODEL` | The first model configured | The default model of the agents, applied again at each start while a provider offers it | | `BYOLLM_ACTIVATED` | `false` | Hands the language models to the administrators: `DEFAULT_*` values apply once, to an install that has no configuration of its own yet | For `CUSTOM_OPENAI`, an endpoint that speaks the OpenAI API, the value is the key, two vertical bars, then the base URL of the endpoint. For `FILIGRAN_GATEWAY`, the **Filigran AI Gateway**, the URL comes first, optionally followed by `||` and the provider it targets, then `||` and a token; without a token, XTM One signs its calls with its own token. When `LLM_PROVIDER_FILIGRAN_GATEWAY_MODELS` is unset and no other provider offers a chat model, XTM One asks the gateway for its chat models at start and uses them as its list. It refreshes that list at every start, even once another provider offers chat models, until an administrator edits it in **Models**, which `LLM_PROVIDER_MODELS_EDITABLE=true` or `BYOLLM_ACTIVATED=true` allows. With either of these, the first listing also needs the gateway to have no list yet. A model the gateway stops listing leaves the list, but the agents and people that chose it keep their choice. If the gateway does not answer within 5 seconds, XTM One keeps the stored list and logs `could not list the filigran_gateway models`. When every provider that chats lists no model, **Models** says so: "The configured LLM providers offer no model. Agentic and LLM-powered platform features are unavailable until one does." For a provider set by its variable, whose models administrators cannot edit, an administrator also reads the variable to set, such as "Set LLM_PROVIDER_OPENAI_MODELS and restart, or set LLM_PROVIDER_MODELS_EDITABLE=true to select its models here." On a host without internet access, use a model served on your network, through `OLLAMA`, `LITELLM` or `CUSTOM_OPENAI`. The rest of the AI settings, such as image and speech models, are in [AI providers](https://filigran.io/docs/reference/xtm-one/configuration/#ai-providers). ## Edition and AI {#edition-and-ai} | Variable | Default | What it sets | | --- | --- | --- | | `ENTERPRISE_LICENSE` | None | The Filigran license certificate, in PEM form, on both containers. It can also be pasted in **Settings** > **Platform** > **Enterprise License**; the variable then locks the field | | `PLATFORM_MODE` | `xtm_one` | `ai_disabled` starts XTM One with AI switched off: its screens and data stay available, and no agent runs. See [Run XTM One with AI switched off](https://filigran.io/docs/xtm-one/administer/running-without-ai/) | XTM One is in the Enterprise Edition with its own license, or when a registered OpenCTI or OpenAEV has one. A license certificate spans several lines: pasting it in **Enterprise License** is simpler than a variable. ## Links to the other platforms {#links-to-the-other-platforms} [Connect the modules to each other](https://filigran.io/docs/deploy/configure/connect-modules/) registers OpenCTI and OpenAEV with XTM One and explains the public and internal URLs. On the side of XTM One: | Variable | Default | What it sets | | --- | --- | --- | | `PLATFORM_REGISTRATION_TOKEN` | None | The secret every platform registers with. Unset, XTM One refuses every registration. The published default of the module's Compose file, `xtm-default-registration-token`, keeps registered platforms connected but registers no new one, and XTM One then sends the platforms no license certificate. After 10 failed attempts in a minute, a client is refused with HTTP 429 until the minute ends | | `OPENCTI_API_URL`, `OPENAEV_API_URL`, `OPENCRQ_API_URL` | The URL each platform registers with | Where XTM One calls each platform, fetches its signing keys and, for OpenAEV, sends its callbacks. Every link people get stays on the registered public URL. A change applies at the platform's next registration, within 5 minutes | | `XTM_AUTH_ACCEPTED_AUDIENCES` | None | The URLs the platforms reach XTM One on when they differ from `BASE_URL`, comma-separated. A platform version that addresses its tokens to that URL is refused unless it is listed | `OPENGRC_API_URL`, the former name of `OPENCRQ_API_URL`, is read until 31 December 2026, with a warning in the logs. ## Mail {#mail} XTM One sends invitations, password resets and announcements of model changes by email. Neither xtm-docker nor the module's Compose file passes it a mail server: until you set `SMTP_HOSTNAME`, XTM One sends nothing, and writes the link of a password reset in its log instead. | Variable | Default | What it sets | | --- | --- | --- | | `SMTP_HOSTNAME`, `SMTP_PORT` | None, `587` | The mail relay | | `SMTP_USERNAME`, `SMTP_PASSWORD` | None | The account, when the relay asks for one | | `SMTP_FROM` | `SMTP_USERNAME` | The sender address | | `SMTP_STARTTLS` | `true` | Upgrades the connection with STARTTLS, as port 587 expects. For a relay with TLS from the start, on port 465, set `SMTP_USE_TLS=true` | Set them on both containers, and set `SMTP_FROM_NAME`, the name people see as the sender, to the name of your platform. The example at the end of this page reuses the mail settings of the stack. ## Security headers {#security-headers} XTM One sends a Content Security Policy on every page it serves, which tells the browser which scripts, styles and connections the page may use. Set these on `xtm-one`: | Variable | Default | What it sets | | --- | --- | --- | | `CONTENT_SECURITY_POLICY_MODE` | `report-only` | `report-only` blocks nothing: browsers report what the policy would block. `enforce` blocks it. `off` sends no policy. Any other value stops the platform | | `CONTENT_SECURITY_POLICY_FRAME_ANCESTORS` | None | The other sites allowed to show XTM One in a frame once the policy is enforced, such as an intranet portal: `https://portal.example.com`, comma-separated | XTM One never sends `X-Frame-Options`, and your proxy must not add it: it would break the Microsoft Teams tab, the Office add-in and the sites you allow to frame XTM One. Until the policy is enforced, any site can frame XTM One. Once it is, XTM One itself, the sites you list and the registered platforms may frame it; the registered platforms only while `PLATFORM_REGISTRATION_TOKEN` is a value of your own, and at most 20 of them. To move to `enforce`: 1. Run in `report-only` for a few days of normal use: the chat, reports and decks, settings, and every site that embeds XTM One. 2. Read **Settings** > **Access and security** > **Security audit**: it lists the violations browsers reported in the last 7 days, by directive. The log of `xtm-one` names each new one once, in a line that starts with `CSP violation first seen`. Violations that browser extensions cause are counted apart. 3. Set `CONTENT_SECURITY_POLICY_MODE=enforce` and run `docker compose up -d`. ![The Security audit, which reads the live settings at each run: each finding ends on a recommendation that names the variable to set on xtm-one, such as AGENT_TOOLS_STRICT_ADMIN_ACCESS or CUSTOM_TOOL_SANDBOX, and the setting of Settings it locks.](https://filigran.io/docs/shots/516f061062a22dc98e93aab97bf395d26f5fdaaf6684c4e25adefeaf46196f57.webp) **Check that it worked** ```bash curl -sI https://xtm-one.example.com/ | grep -i '^content-security-policy' ``` The header reads `content-security-policy:`, without `-report-only`. To go back, set `report-only` again: nothing else is stored. ## Run code in OpenSandbox {#run-code-in-opensandbox} Custom tools, the code interpreter and the checks and services an agent starts in a repository workspace run their code in a sandbox. They are off until an administrator turns them on in **Settings** > **Access and security**. `CUSTOM_TOOL_SANDBOX` on both containers decides where the code runs: | Value | Where the code runs | | --- | --- | | `auto` | xtm-docker's default, `XTM_ONE_CUSTOM_TOOL_SANDBOX=auto`. A hardened Docker container when the platform can start one, otherwise a restricted process of the XTM One containers. The checks and services of a repository workspace need OpenSandbox: see [Run the repository's checks](https://filigran.io/docs/xtm-one/use/sandbox-workspace/#run-the-repository-s-checks) | | `opensandbox` | One container per run, started by an OpenSandbox server. Also used by the code interpreter | xtm-docker ships OpenSandbox as the `opensandbox` profile of `modules/xtm-one.yml`, off by default. Its server mounts the socket of the container engine to start those containers, which gives it control of every container of the host. To run it, set in `.env`: ```bash COMPOSE_PROFILES=opensandbox XTM_ONE_CUSTOM_TOOL_SANDBOX=opensandbox ``` Then run `docker compose up -d`: the `opensandbox` service starts, and `xtm-one` and `xtm-one-worker` are recreated with the new value. | In `.env` of xtm-docker | XTM One variable | What it sets | | --- | --- | --- | | `OPENSANDBOX_API_KEY` | `OPENSANDBOX_API_KEY` | The key XTM One sends to the server, and the server's own key. `init-env.sh` draws it; the server does not start without one | | `XTM_ONE_OPENSANDBOX_IMAGES` | `OPENSANDBOX_IMAGES` | The image of each language. xtm-docker runs the published `xtmone/sandbox-python` and `xtmone/sandbox-nodejs`, at the tags of the XTM One release. They are published for `linux/amd64` only | | `XTM_ONE_OPENSANDBOX_NETWORK_ALLOW` | `OPENSANDBOX_NETWORK_ALLOW` | The domains the sandboxes may reach. Empty, they reach nothing | | `CONTAINER_ENGINE_SOCKET` | None | The socket the server mounts, `/var/run/docker.sock` by default. Under rootless Podman, `$XDG_RUNTIME_DIR/podman/podman.sock` | xtm-docker points XTM One to the server at `opensandbox:8090`. The containers the server starts publish their ports on the host, which XTM One reaches as `host.docker.internal`. See [OpenSandbox](https://filigran.io/docs/reference/xtm-one/configuration/#opensandbox) in the reference for the other settings. ## Install packages in the sandbox through a mirror {#install-packages-in-the-sandbox-through-a-mirror} When XTM One runs its sandbox on OpenSandbox, the checks and services an agent runs in a workspace (`sandbox_run_command`, `sandbox_start_service`) run in containers of their own. By default, npm, Yarn, pip and uv install there only the packages their images hold. To let them install others without opening the internet to those containers, run a read-only mirror of npm and PyPI and name it on both containers: | Variable | Default | What it sets | | --- | --- | --- | | `SANDBOX_REGISTRY_MIRROR_URL` | None | The mirror, such as `http://registry-mirror:8080`. Its host joins the egress of the command and service containers, on top of `OPENSANDBOX_NETWORK_ALLOW`, and npm, Yarn, corepack, pip and uv install from its `/npm/` and `/pypi/simple/` paths. The code interpreter and custom tools never use it. An address that is not `http` or `https`, or that holds a user, a password, a query or a fragment, stops XTM One at start | The module ships a mirror, `backend/sandbox/registry-mirror/nginx.conf`, for an unprivileged nginx (`nginxinc/nginx-unprivileged`) with the file mounted as `/etc/nginx/nginx.conf`, on port 8080. It answers only `GET` and `HEAD` on the packages of npm and PyPI and refuses every other path with `403`, so no one can publish or sign in through it. It drops the `Authorization` and `Cookie` headers, holds no credential, and rewrites the download links of the registries to itself. Its container needs DNS and egress to `registry.npmjs.org`, `pypi.org` and `files.pythonhosted.org`. It resolves them through the Kubernetes DNS, `kube-dns.kube-system.svc.cluster.local`: elsewhere, change its `resolver` line to the resolver of your network. Keep the three registries out of `OPENSANDBOX_NETWORK_ALLOW`, so that the mirror stays the only way to them. With xtm-docker, add the variable to `docker-compose.override.yml`: ```yaml services: xtm-one: environment: - SANDBOX_REGISTRY_MIRROR_URL=http://registry-mirror:8080 xtm-one-worker: environment: - SANDBOX_REGISTRY_MIRROR_URL=http://registry-mirror:8080 ``` ## Size the platform and the worker {#size-the-platform-and-the-worker} | Variable | Default | What it sets | | --- | --- | --- | | `WEB_WORKERS` | `2` | The processes of `xtm-one` that serve the interface, the API and the chat. Raise it when many people chat at the same time: about twice the CPU cores plus one | | `WORKER_CONCURRENCY` | `20` | The background jobs each worker container runs at once. Add worker replicas when jobs queue | | `MAX_CONCURRENT_RUNS` | `10` | The assignment runs in parallel | | `DB_POOL_SIZE`, `DB_MAX_OVERFLOW` | `15`, `10` | The PostgreSQL connections of each process | Every process opens its own pools: `DB_POOL_SIZE` plus `DB_MAX_OVERFLOW` connections, and up to 10 more for the traces of agent runs, so 35 with the defaults. Count every web process and every worker replica against `max_connections` of PostgreSQL, which xtm-docker sets to `200` for XTM One, OpenAEV and OpenCRQ together, OpenAEV taking up to 20 and OpenCRQ about 50 at peak. With the defaults, XTM One takes up to 105: 35 for each of its 2 web processes and its worker. To add worker replicas, set `deploy.replicas` on `xtm-one-worker` in `docker-compose.override.yml`, and count each one in the connections. **Example: Send mail and serve the Grand Meridian intranet portal** Grand Meridian Hotels shows XTM One in its intranet portal, `https://portal.grand-meridian.example`, and wants invitations to reach new members of the SOC. Marc Dupuis, of IT operations, reuses the mail relay that `.env` already gives OpenAEV, gives the four-core host one more web process per core, and adds to `docker-compose.override.yml`: ```yaml services: xtm-one: environment: - SMTP_HOSTNAME=${SMTP_HOST} - SMTP_PORT=${SMTP_PORT} - SMTP_USERNAME=${SMTP_USERNAME} - SMTP_PASSWORD=${SMTP_PASSWORD} - SMTP_FROM=xtm-one@grand-meridian.example - SMTP_FROM_NAME=XTM One - CONTENT_SECURITY_POLICY_MODE=enforce - CONTENT_SECURITY_POLICY_FRAME_ANCESTORS=https://portal.grand-meridian.example - WEB_WORKERS=4 xtm-one-worker: environment: - SMTP_HOSTNAME=${SMTP_HOST} - SMTP_PORT=${SMTP_PORT} - SMTP_USERNAME=${SMTP_USERNAME} - SMTP_PASSWORD=${SMTP_PASSWORD} - SMTP_FROM=xtm-one@grand-meridian.example - SMTP_FROM_NAME=XTM One ``` With 4 web processes and one worker, XTM One takes up to 175 connections, and OpenAEV 20: 195, under the `200` of `pgsql`. After `docker compose up -d`, Hélène Marchetti invites Paul Garnier from **Administration** > **Users and groups**, and his invitation arrives from `XTM One `. ## Where the data is {#where-the-data-is} | Data | Where, in xtm-docker | | --- | --- | | Agents, conversations, knowledge base chunks and their vectors, assignments, traces, settings, and the encrypted credentials | The `xtm_one` database of `pgsql`, in the `pgsqlshareddata` volume | | Uploaded documents, chat attachments, generated reports and decks, large trace payloads | The `xtm-one-files` bucket of `minio`, in the `s3data` volume | | Queued jobs, the state of running chats, rate limits | Redis, in the `redisdata` volume. Working state: XTM One rebuilds it | Back them up with the rest of the stack, together with `.env`: without the same `XTM_ONE_SECRET_KEY`, a restored XTM One cannot read the credentials it stores. See [Back up and restore](https://filigran.io/docs/deploy/operate/backup/). ## What's next {#what-s-next} - [XTM One configuration](https://filigran.io/docs/reference/xtm-one/configuration/), every variable with its default. - [Monitor and troubleshoot XTM One](https://filigran.io/docs/deploy/operate/xtm-one/), for the metrics and the logs. - [Set up the platform in Settings](https://filigran.io/docs/xtm-one/administer/settings/), for what administrators set on screen. - [Connect the modules to each other](https://filigran.io/docs/deploy/configure/connect-modules/). --- # Install offline or with FIPS 140-3 > Install the XTM stack on a host without internet access, and run OpenCTI with its FIPS 140-3 images and compliant shared services. - URL: https://filigran.io/docs/deploy/install/air-gapped/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers - Type: How-to guide This page installs the XTM stack on a host that cannot reach the internet, by carrying the images over from a connected machine, and lists what still needs an outside source. It then switches OpenCTI to its FIPS 140-3 images and says what the shared services need for a compliant stack. Read [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/) first: this page changes only where the images come from and which ones run. **Diagram: The images are pulled and saved on a connected machine, carried to the target host as one archive and started from there, while a few features still need a source of their own** - Connected machine: xtm-docker configured (.env, pinned versions) - Carried over: xtm-images.tar (With .env, override, infra and modules) - Target host, no internet: The stack (docker load, then up -d without pull) - Still needs a source: Private registry (Integrations of XTM Composer), Proxy (Integrations that read public sources), On-premise AI extraction (Import Document AI connector), Internal certificate authority (Certificates of internal services) Connections: - xtm-docker configured → xtm-images.tar: pull and save - xtm-images.tar → The stack: copy and load - The stack → Private registry: integration images - The stack → Proxy: public sources - The stack → On-premise AI extraction: document extraction - The stack → Internal certificate authority: trusted certificates ## Before you start {#before-you-start} - A connected machine with Docker Compose v2 and Git, and a way to copy files from it to the target host. - The same processor architecture on both machines: Intel or AMD (amd64). XTM One is published for amd64 only, and so are the FIPS images of OpenCTI. - On the target host, Docker Engine 20.10 or later with Docker Compose v2, and the space for the images: about as much as `docker image ls` shows on the connected machine after the download. ## Install without internet access {#install-without-internet-access} 1. On the connected machine, get the deployment and configure it as [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/) describes, up to the pinned versions: `docker-compose.override.yml` pins the images you will copy. For FIPS images, also follow [Switch OpenCTI to its FIPS images](#switch-opencti-to-its-fips-images) now. ```bash git clone https://github.com/FiligranHQ/xtm-docker.git cd xtm-docker ``` 2. Download the images and save them in one archive. ```bash docker compose pull docker save -o xtm-images.tar $(docker compose config --images | sort -u) ``` **Check that it worked** ```bash docker compose config --images | sort -u ``` It lists every image of the stack, with the versions you pinned, and `xtm-images.tar` exists next to `docker-compose.yml`. 3. Copy the whole `xtm-docker` folder, with `.env`, `docker-compose.override.yml`, the `infra` and `modules` folders and `xtm-images.tar`, to the target host. `.env` holds every secret of the stack: copy it the way you copy secrets. 4. On the target host, load the images. ```bash cd xtm-docker docker load -i xtm-images.tar ``` 5. Start the stack, without `docker compose pull`: Docker Compose uses the images it finds on the host. ```bash docker compose up -d ``` **Check that it worked** ```bash docker compose ps --format '{{.Service}} {{.Health}}' | grep -E '^(opencti|openaev|xtm-one|opencrq) ' ``` `opencti`, `openaev`, `xtm-one` and `opencrq` say `healthy` after a few minutes. If `up` tries to download an image, an image is missing from the archive: repeat steps 2 to 4. To upgrade, repeat these steps with the new versions pinned in `docker-compose.override.yml`. ## What still needs an outside source {#what-still-needs-an-outside-source} Once the images are on the host, the stack starts from them. Some features read from or deploy outside sources, and need a mirror, an on-premise service or a proxy instead: | Feature | What it needs | Where to set it up | | --- | --- | --- | | Integrations deployed by XTM Composer | Pulls the image of each integration from a registry | [Pull integrations from a private registry](https://filigran.io/docs/deploy/integrations/private-registry/) | | Integrations that read public sources, such as the NVD CVE collector | Access to their source | [Run integrations behind a proxy](https://filigran.io/docs/deploy/integrations/proxy/) | | AI document extraction in OpenCTI | The Import Document AI connector calls a service hosted by Filigran by default | [Extract intelligence from documents on premises](https://filigran.io/docs/deploy/configure/ai-extraction/) | | Certificates of internal services | Your internal certificate authority | [Trust your certificate authority and proxy](https://filigran.io/docs/deploy/configure/certificates/) | *(OpenCTI 7.260811 and later)* The OpenCTI map works offline: the platform ships its map tiles in the image. See [Map tiles](https://filigran.io/docs/deploy/configure/maps/). ## Switch OpenCTI to its FIPS images {#switch-opencti-to-its-fips-images} The FIPS 140-3 images of OpenCTI are built on Alpine Linux with the OpenSSL FIPS provider enabled, from the [base image that Filigran maintains](https://github.com/FiligranHQ/docker-python-nodejs-fips). They exist for the platform, the worker and the connectors, with the tag of the version followed by `-fips`: `7.261030.1-fips`, or `7.260811.0-lts.1-fips` for a long-term support release. XTM Composer has a FIPS image too, which deploys the FIPS images of the connectors. OpenAEV and XTM One have no FIPS images. 1. Pin the versions as [Pin the image versions](https://filigran.io/docs/deploy/install/docker-compose/#pin-the-image-versions) describes. 2. Switch every OpenCTI image to its `-fips` tag in `docker-compose.override.yml`. The Import External Reference connector has no FIPS image and keeps its tag. Run this command again each time you run the pinning commands: they write the tags without `-fips`. ```bash OPENCTI_VERSION=7.261030.1 sed -i.bak -E \ -e "s#image: (opencti/[a-z0-9-]+):${OPENCTI_VERSION}\$#image: \1:${OPENCTI_VERSION}-fips#" \ -e "s#(connector-import-external-reference):${OPENCTI_VERSION}-fips#\1:${OPENCTI_VERSION}#" \ docker-compose.override.yml ``` **Check that it worked** ```bash docker compose config --images | grep '^opencti/' ``` Every OpenCTI image ends with `-fips`, except `opencti/connector-import-external-reference`. 3. Switch XTM Composer to its FIPS image, so that the connectors you deploy from the catalog run their FIPS images. Add these lines under the `services:` key of `docker-compose.override.yml`, above the `# Pinned versions` line. The pinning commands do not change the image of XTM Composer, so this tag stays. ```yaml xtm-composer: image: filigran/xtm-composer:3.261120.0-fips ``` The FIPS image of XTM Composer sets `manager.image_tag_suffix` (`MANAGER__IMAGE_TAG_SUFFIX`) to `-fips`: it adds `-fips` to the tag of every integration it deploys. `opencti/connector-mitre:7.261030.1` runs as `opencti/connector-mitre:7.261030.1-fips`, and an image without a tag as `latest-fips`. A tag that already ends with `-fips`, or an image pinned by digest, stays as it is. On a host without internet access, the registry XTM Composer pulls from must hold these `-fips` tags: see [Pull integrations from a private registry](https://filigran.io/docs/deploy/integrations/private-registry/). **Check that it worked** ```bash docker compose config --images | grep xtm-composer ``` It prints `filigran/xtm-composer:3.261120.0-fips`. Once the stack runs, `docker compose logs xtm-composer | grep 'Starting XTM composer'` shows `fips` set to `true` and `image_tag_suffix` set to `-fips`. > **Warning: Integrations without a FIPS image** > > XTM Composer adds the suffix to every integration it deploys, for OpenAEV as for OpenCTI. An integration with no image under the `-fips` tag, such as the Import External Reference connector, is not deployed: its **Logs** tab says `[XTM Composer] Connector not deployed`, then that the image cannot be pulled, with the error of the registry. XTM Composer tries again at each pass. 4. For each connector you run outside XTM Composer, use its `-fips` tag when Docker Hub lists one, such as [the FIPS tags of the STIX file export connector](https://hub.docker.com/r/opencti/connector-export-file-stix/tags?name=fips). ### What the images guarantee {#what-the-images-guarantee} All cryptography in the OpenCTI FIPS images goes through the OpenSSL FIPS provider 3.1.2, the module validated under CMVP certificate #4985, valid until 10 March 2030. FIPS mode is on by default: no flag, variable or configuration step is needed. - The module is built from the validated source distribution, unmodified, by the procedure of its Security Policy, with integrity verification and the required self-tests enabled. - FIPS mode is enforced: non-approved algorithms are refused, not substituted. The full posture is in [FIPS.md](https://github.com/FiligranHQ/docker-python-nodejs-fips/blob/main/FIPS.md), in the base image repository. ## Make the shared services compliant {#make-the-shared-services-compliant} The FIPS images cover OpenCTI. For a compliant stack, the shared services must use FIPS 140-3 cryptography too. | Service | How | | --- | --- | | Elasticsearch | FIPS 140-3 from version 9.4, and from 8.19.15 in the 8.x line, with the Bouncy Castle FIPS 2.x libraries as Java security provider. Earlier versions support FIPS 140-2 with Bouncy Castle 1.x. Follow the [Elastic FIPS guide](https://www.elastic.co/docs/deploy-manage/security/fips-es), or use the [Elastic FedRAMP offering](https://www.elastic.co/industries/public-sector/fedramp). | | Redis | No FIPS images. Redis encrypts [TLS](https://redis.io/docs/latest/operate/oss_and_stack/management/security/encryption/) with the OpenSSL it is built against: build it on a FIPS-validated OpenSSL and choose the ciphers with `tls-ciphers` (TLS 1.2) and `tls-ciphersuites` (TLS 1.3). Or put a [Stunnel](https://www.stunnel.org/) TLS endpoint between OpenCTI and Redis. | | RabbitMQ | No FIPS images, but [custom cipher suites](https://www.rabbitmq.com/docs/ssl#cipher-suites); since RabbitMQ 3.12.5, its Erlang build (26.1 and later) [supports FIPS mode on OpenSSL 3](https://www.rabbitmq.com/docs/which-erlang). Or use a Stunnel TLS endpoint. | | S3 object storage | Prefer an endpoint that is already validated, such as the [AWS S3 FIPS endpoints](https://aws.amazon.com/compliance/fips/). xtm-docker runs RustFS: check its builds against your FIPS requirements before you rely on them. The last MinIO FIPS images, on [Quay.io](https://quay.io/repository/minio/minio?tab=tags) with tags ending in `.fips`, are no longer maintained: check them against your requirements first. | The Elasticsearch of xtm-docker, 8.19.18, is in the FIPS 140-3 range, but runs with security off: enable FIPS mode as the Elastic guide describes. > **Tip: AWS native services** > > OpenCTI works with AWS native services, available in the [FedRAMP Moderate and FedRAMP High scopes](https://aws.amazon.com/compliance/services-in-scope/FedRAMP/): Amazon OpenSearch Service, Amazon ElastiCache for Redis, Amazon MQ for RabbitMQ and Amazon S3. ## Check what the OpenCTI images contain {#check-what-the-opencti-images-contain} Each OpenCTI release publishes a software bill of materials (SBOM) for each variant of the platform and worker images, in the assets of its [GitHub release](https://github.com/OpenCTI-Platform/opencti/releases). Use it in the security review of the images you carry over, or to check whether a vulnerable library is in the version you run. | Image variant | Image tag | SBOM asset | | --- | --- | --- | | Standard | `7.261030.1` | `sbom-opencti-platform-7.261030.1.cdx.json` | | FIPS 140-3 | `7.261030.1-fips` | `sbom-opencti-platform_fips-7.261030.1.cdx.json` | | Red Hat Universal Base Image 9 | `7.261030.1-ubi9` | `sbom-opencti-platform_ubi9-7.261030.1.cdx.json` | Each file is in the CycloneDX JSON format. Its top component is OpenCTI, with one child component for each part, each with its own dependencies: `filigran/platform`, the platform image, with its Alpine and Python packages; `opencti-front`, the web interface; `opencti-graphql`, the GraphQL API; and `filigran/worker`, the worker image. The connectors are not in it: each has its own image. *(OpenCTI 7.261030 and later)* > **Warning: Incomplete SBOM in 7.261030.1** > > In the SBOMs of 7.261030.1, `opencti-front` and `opencti-graphql` list no dependencies: the JavaScript libraries of the platform are missing. The SBOMs of the long-term support releases list them. To count the dependencies of each part, then find the version of a library, here the Python library `stix2`: ```bash OPENCTI_VERSION=7.261030.1 curl -fsSLO "https://github.com/OpenCTI-Platform/opencti/releases/download/${OPENCTI_VERSION}/sbom-opencti-platform-${OPENCTI_VERSION}.cdx.json" jq -r '.components[] | "\(.name): \((.components // []) | length)"' "sbom-opencti-platform-${OPENCTI_VERSION}.cdx.json" jq -r '[.. | objects | select(.name? == "stix2") | "\(.name) \(.version)"] | unique[]' "sbom-opencti-platform-${OPENCTI_VERSION}.cdx.json" ``` **Check that it worked** The first command prints one line for each part, such as `filigran/worker: 122`. The second prints `stix2 3.0.2` for 7.261030.1. ## What's next {#what-s-next} - [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/), to publish the platforms over HTTPS. - [Pull integrations from a private registry](https://filigran.io/docs/deploy/integrations/private-registry/), to deploy integrations from your own registry. - [Upgrade](https://filigran.io/docs/deploy/upgrade/), to plan the next versions you will carry over. --- # Install with Docker Compose > Install the XTM stack for production on one host with the official Docker Compose deployment, with secrets, public URLs, persistent data and pinned versions. - URL: https://filigran.io/docs/deploy/install/docker-compose/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers - Type: How-to guide This page installs the XTM stack for production on one host with the official Docker deployment, [FiligranHQ/xtm-docker](https://github.com/FiligranHQ/xtm-docker). At the end, the whole stack, XTM One, OpenCTI, OpenAEV, OpenCRQ, XTM Composer and their default integrations, runs with strong secrets, the public addresses of your users, data kept in Docker volumes and versions that change only when you decide. Every install of the XTM platform runs all its modules together: there is no install of one module on its own. To try the platform first, follow [Run the XTM platform locally](https://filigran.io/docs/deploy/quick-start/): it uses the same files with fewer steps. **Diagram: You prepare the host, write .env and docker-compose.override.yml, start the stack, whose data stays in Docker volumes, and publish it through a reverse proxy on local ports** - Prepare: The host (vm.max_map_count, Docker at boot, git clone) - Configure: .env (Secrets, admins, mail, public URLs), docker-compose.override.yml (Local ports, pinned versions, workers) - Start: The whole XTM platform (docker compose pull, then up -d) - Data: Docker volumes (xtm_esdata, xtm_pgsqlshareddata and others) - Publish: Reverse proxy (HTTPS for your users) Connections: - The host → .env: secrets script - .env → The whole XTM platform: settings and secrets - docker-compose.override.yml → The whole XTM platform: merged at each command - The whole XTM platform → Docker volumes: keeps its data - Reverse proxy → The whole XTM platform: 127.0.0.1:8080 to 8090 > **Note: The Compose files of the OpenCTI repository** > > [OpenCTI-Platform/docker](https://github.com/OpenCTI-Platform/docker) is a second Compose deployment, for OpenCTI with XTM One and XTM Composer, without OpenAEV. It has an OpenSearch variant, `docker-compose.opensearch.yml`. Its `.env.sample` names the OpenCTI and XTM One settings as xtm-docker does, but its services differ (XTM One has its own PostgreSQL, `pgsql-xtm-one`) and so does its mail setting (`SMTP_HOSTNAME`): the commands of this page do not apply to it as they are. This page follows xtm-docker. ## Before you start {#before-you-start} - A Linux host with Docker Engine 20.10 or later and Docker Compose 2.24.4 or later: `docker compose version` prints it. An earlier v2 stops on the `include` list of `docker-compose.yml` (2.20) or on the `!override` tags of this page (2.24.4). To install them, follow the [Docker Engine installation guide](https://docs.docker.com/engine/install/). - 16 GB of RAM at least, 32 GB recommended for production, and 50 GB of free disk. [Sizing](https://filigran.io/docs/deploy/plan/sizing/) says how much each module needs. - An Intel or AMD (amd64) processor: XTM One is published for amd64 only. - Python 3, to pin the image versions. - For each platform users reach, the host name they will type, such as `opencti.example.com`, and a reverse proxy that serves it over HTTPS: see [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/). ## Prepare the host {#prepare-the-host} 1. Raise the memory map limit that Elasticsearch needs, now and after every restart. ```bash echo 'vm.max_map_count=262144' | sudo tee /etc/sysctl.d/99-xtm-elasticsearch.conf sudo sysctl --system ``` **Check that it worked** ```bash sysctl vm.max_map_count ``` It prints `vm.max_map_count = 262144`. 2. Make Docker start with the host. Every service of the stack has `restart: always`, except `xtm-one-db-init`, which runs once at each start, so the stack comes back when Docker does. ```bash sudo systemctl enable --now docker ``` 3. Get the deployment. ```bash git clone https://github.com/FiligranHQ/xtm-docker.git cd xtm-docker ``` ## Configure the stack {#configure-the-stack} `docker-compose.yml` includes one file per shared service, under `infra/`, and one file per module, under `modules/`: `xtm-one.yml`, `opencti.yml`, `openaev.yml`, `opencrq.yml` and `xtm-composer.yml`. Every service they list starts, and XTM Composer manages both OpenCTI and OpenAEV. All the configuration is in `.env`, except the ports, the image versions and the number of workers, which these Compose files set. Change those in `docker-compose.override.yml`, never in the files of xtm-docker: see [Change the stack without editing docker-compose.yml](#change-the-stack-without-editing-docker-compose-yml). 1. Create `.env` with fresh secrets. ```bash docker compose -f init.yml run --rm init ``` A temporary container copies `.env.sample` and gives every password, key and token a random value: a UUID for the admin tokens and health check keys, a 32-byte base64 key for `OPENCTI_ENCRYPTION_KEY`, and a random string for the others. It names the users of PostgreSQL and RabbitMQ, sends mail to `localhost` until step 3, makes `.env` readable by its owner alone, and never overwrites an existing `.env`. It prints the admin password of each platform. `.env` now holds every secret of the stack, including the encryption keys of OpenCTI and OpenAEV. Keep a copy in your secret store: you need the same values to restore the stack. 2. Set the admin accounts. Give `OPENCTI_ADMIN_EMAIL`, `OPENAEV_ADMIN_EMAIL` and `XTM_ONE_ADMIN_EMAIL` the address of your administrator. `XTM_ONE_ADMIN_EMAIL` must be the admin email of the platforms XTM One connects to: XTM One finds the user by this address. ```bash ADMIN=admin@example.com sed -i.bak -E "s/^(OPENCTI|OPENAEV|XTM_ONE)_ADMIN_EMAIL=.*/\1_ADMIN_EMAIL=${ADMIN}/" .env ``` 3. Set the mail server. Replace the `SMTP_*` values of `.env` with those of your relay: `SMTP_HOST`, `SMTP_PORT`, `SMTP_USERNAME`, `SMTP_PASSWORD`, and `SMTP_AUTH`, `SMTP_SSL_ENABLE`, `SMTP_STARTTLS_ENABLE` set to `true` or `false`. If OpenAEV does not read a mailbox, set `OPENAEV_MAIL_IMAP_ENABLED=false` and leave the `IMAP_*` values. > **Note** > > OpenAEV uses every `SMTP_*` value. OpenCTI uses only `SMTP_HOST`, on port 25 without authentication, as `docker-compose.yml` sets it. To send OpenCTI mail through an authenticated relay, see [Configure the shared services](https://filigran.io/docs/deploy/configure/shared-services/). 4. Fit Elasticsearch to the host. `ELASTIC_MEMORY_SIZE` is the Java heap of Elasticsearch, `4G` in `.env.sample`. | RAM of the host | `ELASTIC_MEMORY_SIZE` | | --- | --- | | 16 GB | `2G` | | 32 GB | `4G` | | 64 GB or more | `8G` | ```bash sed -i.bak 's/^ELASTIC_MEMORY_SIZE=.*/ELASTIC_MEMORY_SIZE=8G/' .env ``` 5. Set the public URLs. Each platform builds its URL from three variables of `.env`: the scheme, the host and the port that users type. For platforms served over HTTPS by a reverse proxy on port 443, set: ```bash OPENCTI_EXTERNAL_SCHEME=https OPENCTI_HOST=opencti.example.com OPENCTI_PORT=443 OPENAEV_EXTERNAL_SCHEME=https OPENAEV_HOST=openaev.example.com OPENAEV_PORT=443 XTM_ONE_EXTERNAL_SCHEME=https XTM_ONE_HOST=xtm-one.example.com XTM_ONE_PORT=443 OPENCRQ_EXTERNAL_SCHEME=https OPENCRQ_HOST=opencrq.example.com OPENCRQ_PORT=443 ``` These URLs are also the identity each module signs its requests to the others with. Inside the stack, the containers reach each other on their service names (`http://opencti:8080`, `http://openaev:8080`, `http://xtm-one:4000`, `http://opencrq:3002`), so the public host names do not need to resolve inside Docker. 6. Publish the platforms on local ports for the reverse proxy. `docker-compose.yml` publishes OpenCTI on `OPENCTI_PORT` and XTM One on `XTM_ONE_PORT`, so with the values above Docker would take port 443 that the proxy needs. It also publishes Elasticsearch and Redis, which run without authentication, on every interface. This command creates `docker-compose.override.yml`, which binds every published port to the host itself, with OpenCTI on 8080, OpenAEV on 8081 and XTM One on 8090. `ports: !override` replaces the ports of `docker-compose.yml` instead of adding to them: ```bash cat > docker-compose.override.yml <<'EOF' services: opencti: ports: !override - "127.0.0.1:8080:8080" openaev: ports: !override - "127.0.0.1:8081:8080" xtm-one: ports: !override - "127.0.0.1:8090:4000" opencrq: ports: !override - "127.0.0.1:8082:3002" elasticsearch: ports: !override - "127.0.0.1:9200:9200" redis: ports: !override - "127.0.0.1:6379:6379" minio: ports: !override - "127.0.0.1:9000:9000" rabbitmq: ports: !override - "127.0.0.1:5672:5672" - "127.0.0.1:15672:15672" EOF ``` > **Note** > > An integration that runs on another host, outside XTM Composer, needs to reach some of these services. See [Run an integration without XTM Composer](https://filigran.io/docs/deploy/integrations/manual/) before you close them. 7. Pin the versions. `docker-compose.yml` uses the `latest` tag, so every `docker compose pull` could upgrade a platform. Write the releases you install in `docker-compose.override.yml` with the commands of [Pin the image versions](#pin-the-image-versions), here the current ones: `OPENCTI_VERSION=7.261119.0`, `OPENAEV_VERSION=3.261118.0`, `XTM_ONE_VERSION=1.261119.1` and `OPENCRQ_VERSION=0.261123.0`. The OpenCTI connectors and the OpenAEV collectors and injectors follow the version of their platform. xtm-docker pins RustFS, the S3 storage, to `1.0.4`. XTM Composer, the `alpine/openssl` key generator and the AWS command line interface of `opencrq-bucket-init` keep `latest`. Check which versions work together in [Compatibility between modules](https://filigran.io/docs/deploy/upgrade/compatibility/). 8. Size the OpenCTI workers. The worker writes the data that connectors send to OpenCTI; `modules/opencti.yml` starts 3 of them. For more throughput, set `replicas` of the `worker` service in `docker-compose.override.yml`: add the `worker` lines below under the `services:` key of the file, above the `# Pinned versions` line. ```yaml services: worker: deploy: replicas: 4 ``` [Scale: workers, platforms and clusters](https://filigran.io/docs/deploy/operate/scale/) explains when to add workers. **Check that it worked** ```bash docker compose config --quiet && echo "configuration OK" docker compose config --services ``` It prints `configuration OK`, then the 32 services of the stack: XTM One with its worker and `xtm-one-db-init`, OpenCTI with its worker and ten connectors, OpenAEV with four collectors and two injectors, OpenCRQ with `opencrq-db-init` and `opencrq-bucket-init`, XTM Composer with `rsa-key-generator`, and the five shared services. `opensandbox`, which runs the code of XTM One's agents, starts only with its profile: see [Run code in OpenSandbox](https://filigran.io/docs/deploy/configure/xtm-one/#run-code-in-opensandbox). ## Start the stack {#start-the-stack} 1. Download the images, then start the stack. ```bash docker compose pull docker compose up -d ``` The first start creates the databases and the indices: allow a few minutes. 2. Wait until the platforms are healthy. ```bash docker compose ps --format '{{.Service}} {{.Health}}' | grep -E '^(opencti|openaev|xtm-one|opencrq) ' ``` **Check that it worked** `opencti`, `openaev`, `xtm-one` and `opencrq` say `healthy`. On the host, OpenCTI, OpenAEV and XTM One answer their health check on their local port: ```bash set -a; . ./.env; set +a curl -fsS "http://127.0.0.1:8080/health?health_access_key=$OPENCTI_HEALTHCHECK_ACCESS_KEY" >/dev/null && echo "OpenCTI OK" curl -fsS "http://127.0.0.1:8081/api/health?health_access_key=$OPENAEV_HEALTHCHECK_KEY" >/dev/null && echo "OpenAEV OK" curl -fsS "http://127.0.0.1:8090/api/health" >/dev/null && echo "XTM One OK" ``` 3. Put the reverse proxy in front of the platforms, as [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/) describes, then sign in at each public URL with the admin email and password of `.env`. OpenCRQ has no password of its own: XTM One's administrator signs in to it through XTM One and lands in its first tenant, `Default`, which OpenCRQ creates at its first start. Then [finish the setup of each module](#finish-the-setup-of-each-module). ## Finish the setup of each module {#finish-the-setup-of-each-module} The stack runs every module from its first start. Each one has a few steps left before people use it: | Module | What is left | Where | | --- | --- | --- | | OpenCTI and OpenAEV | Sign in with the admin email and password of `.env`, and keep a break-glass account before you turn on single sign-on | [Sign in the first time and keep an emergency account](https://filigran.io/docs/deploy/configure/first-access/) | | XTM One | Trust the reverse proxy, let it stream the chat, connect a language model and give it its edition | [Finish the setup of XTM One](https://filigran.io/docs/deploy/configure/xtm-one/#finish-the-setup-after-the-install) | | OpenCRQ | Check its public URL and its registration with XTM One, then sign in to its first tenant through XTM One | [Finish the setup of OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/#finish-the-setup-after-the-install) | | Every module | Check that the modules registered with XTM One and reach each other | [Connect the modules to each other](https://filigran.io/docs/deploy/configure/connect-modules/) | ## Change the stack without editing docker-compose.yml {#change-the-stack-without-editing-docker-compose-yml} `docker-compose.yml` belongs to the xtm-docker repository: change it, and every `git pull` conflicts with your change. Put every local change in `docker-compose.override.yml`, next to it, instead. Docker Compose reads that file after `docker-compose.yml` on every command and merges the two. `.env` keeps the values xtm-docker reads from it; the override file holds the rest: environment variables, mounts, ports, image versions and the number of workers. This example raises the log level of OpenCTI, mounts a folder of certificates in it, publishes it on the host only, and starts four workers: ```yaml services: opencti: environment: - APP__APP_LOGS__LOGS_LEVEL=info volumes: - ./certs:/opt/opencti/certs:ro ports: !override - "127.0.0.1:8080:8080" worker: deploy: replicas: 4 ``` Docker Compose merges each key in its own way: | Key | What the override file does | | --- | --- | | `environment` | Adds the variable, or replaces the value of the variable of the same name | | `volumes` | Adds the mount, or replaces the mount on the same path in the container | | `ports` | Adds to the ports of `docker-compose.yml`. `ports: !override` followed by a list replaces them, `ports: !reset []` removes them | | `depends_on` | Adds the dependency. `: !reset null` under it removes one | | `profiles` | Adds to the profiles. `profiles: !override ["disabled"]` keeps the service from starting | | `image`, `deploy.replicas` and the other single values | Replaces the value | | A service that `docker-compose.yml` does not have | Adds it | `!reset` needs Docker Compose 2.24 or later, and `!override` 2.24.4 or later. Above the pinned versions, write one `services:` key, and each service once under it: when a page gives lines for a service your file already has, add them under that service. Docker Compose refuses a file that repeats a key, with `mapping key "opencti" already defined`. **Check that it worked** ```bash docker compose config --quiet && echo "configuration OK" docker compose config | grep -E 'LOGS_LEVEL|host_ip|replicas' ``` With the example as `docker-compose.override.yml`, it prints `configuration OK`, then `APP__APP_LOGS__LOGS_LEVEL: info`, `host_ip: 127.0.0.1` and `replicas: 4`: the merged configuration has the values of the override file. Apply the change with `docker compose up -d`: Docker Compose recreates the containers whose configuration changed. After a `git pull`, run `docker compose config --quiet` again, and compare what you replaced with `!override` to the new `docker-compose.yml`. ### Pin the image versions {#pin-the-image-versions} These commands pin the OpenCTI, OpenAEV, XTM One and OpenCRQ images of the stack. They write the image of each service, with the versions you set, at the end of `docker-compose.override.yml`. Run them again to change the versions: they replace that part of the file. ```bash OPENCTI_VERSION=7.261119.0 OPENAEV_VERSION=3.261118.0 XTM_ONE_VERSION=1.261119.1 OPENCRQ_VERSION=0.261123.0 touch docker-compose.override.yml sed -i.bak '/^# Pinned versions/,$d' docker-compose.override.yml PINNED=$(docker compose config --format json | python3 -c ' import json, sys tags = dict(zip(["opencti", "openaev", "xtmone", "filigran/opencrq"], sys.argv[1:])) for name, service in sorted(json.load(sys.stdin)["services"].items()): repo = service["image"].rsplit(":", 1)[0] key = repo if repo in tags else repo.split("/")[0] if key in tags: print(f" {name}:\n image: {repo}:{tags[key]}") ' "$OPENCTI_VERSION" "$OPENAEV_VERSION" "$XTM_ONE_VERSION" "$OPENCRQ_VERSION") printf '%s\n' '# Pinned versions: keep this part last, the pinning commands rewrite it' '---' 'services:' "$PINNED" >> docker-compose.override.yml ``` The `---` line starts a second part of the file, which Docker Compose merges like the first. Keep your other changes above the `# Pinned versions` line: the commands delete everything from that line to the end of the file. **Check that it worked** ```bash docker compose config --images | grep -E '^(opencti|openaev|xtmone|filigran/opencrq)' ``` Every image ends with the version you set. ## Where the data is {#where-the-data-is} The data of the stack lives in Docker volumes, named after `COMPOSE_PROJECT_NAME` (`xtm` in `.env.sample`). They survive `docker compose down` and a restart of the host, and only `docker compose down -v` deletes them. | Volume | Holds | | --- | --- | | `xtm_esdata` | Elasticsearch: the knowledge of OpenCTI and the indices of OpenAEV | | `xtm_pgsqlshareddata` | PostgreSQL: the `openaev`, `opencrq` and `xtm_one` databases | | `xtm_s3data` | RustFS, the S3 object storage: files of OpenCTI, OpenAEV, OpenCRQ and XTM One | | `xtm_redisdata` | Redis, used by OpenCTI for its event stream and by XTM One | | `xtm_amqpdata` | RabbitMQ: the messages waiting for the workers and integrations | | `xtm_rsakeys` | The private key of XTM Composer | ```bash docker volume ls --filter label=com.docker.compose.project=xtm ``` Back them up together with `.env`: see [Back up and restore](https://filigran.io/docs/deploy/operate/backup/). ## What's next {#what-s-next} - [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/), to publish the platforms over HTTPS. - [Configure XTM One](https://filigran.io/docs/deploy/configure/xtm-one/) and [Configure OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/), to finish their setup. - [Connect the modules to each other](https://filigran.io/docs/deploy/configure/connect-modules/), to check the links between XTM One, OpenCTI, OpenAEV, OpenCRQ and XTM Composer. - [Sign in the first time and keep an emergency account](https://filigran.io/docs/deploy/configure/first-access/), before you turn on single sign-on. - [Start the whole stack on an existing deployment](https://filigran.io/docs/deploy/install/modules/), for a deployment that ran only some modules. - [Install offline or with FIPS 140-3](https://filigran.io/docs/deploy/install/air-gapped/), for a host without internet access. --- # Start the whole stack on an existing deployment > Bring a deployment that ran only some modules of the XTM stack to the whole stack, which xtm-docker now always starts, with what to check and what happens to the data. - URL: https://filigran.io/docs/deploy/install/modules/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers - Type: How-to guide The official Docker deployment, [FiligranHQ/xtm-docker](https://github.com/FiligranHQ/xtm-docker), has no optional module: `docker compose up -d` starts the whole XTM platform, 32 services. XTM One, OpenCTI, OpenAEV, OpenCRQ, XTM Composer, their default integrations and the shared services always run together. This page brings a deployment that ran only some of them, with a `COMPOSE_PROFILES` line in `.env`, to the whole stack: what to clean in `.env`, what to check on the host, and what happens to the data. **Diagram: A deployment that ran only some modules drops the lines that chose them from .env, pulls and runs up, and the whole stack starts beside the data already in the shared volumes** - You: Clean .env (COMPOSE_PROFILES and Composer switches out) - Docker Compose: docker compose up -d (After docker compose pull) - The stack: Modules that ran (Recreated when their configuration changed), New modules (Created: OpenCTI, OpenAEV, XTM Composer...) - Data: Shared volumes (esdata, pgsqlshareddata, s3data and others) Connections: - Clean .env → docker compose up -d: after git pull - docker compose up -d → Modules that ran: keeps or recreates - docker compose up -d → New modules: starts - Modules that ran → Shared volumes: data stays - New modules → Shared volumes: creates its own ## Before you start {#before-you-start} - A stack installed from xtm-docker, as [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/) describes. Run the commands of this page from its folder. - For OpenCRQ, the admin of XTM One, who signs in to it with XTM One and lands in its first tenant, `Default`, which OpenCRQ creates at its first start: see [Sign in to OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/#sign-in-to-opencrq). - A host sized for the whole stack: 16 GB of RAM at least, 32 GB recommended for production, and 50 GB of free disk. [Sizing](https://filigran.io/docs/deploy/plan/sizing/) says how much each module needs. - A backup of the volumes and of `.env`: see [Back up and restore](https://filigran.io/docs/deploy/operate/backup/). ## What the stack runs {#what-the-stack-runs} `docker-compose.yml` includes one file per shared service, under `infra/`, and one file per module, under `modules/`. Every service they list starts. | File | Services | | --- | --- | | `modules/xtm-one.yml` | `xtm-one`, `xtm-one-worker`, `xtm-one-db-init` | | `modules/opencti.yml` | `opencti`, `worker`, and the 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` | | `modules/openaev.yml` | `openaev`, and the default collectors and injectors: `collector-mitre-attack`, `collector-openaev`, `collector-atomic-red-team`, `collector-nvd-nist-cve`, `injector-nmap`, `injector-nuclei` | | `modules/opencrq.yml` | `opencrq`, `opencrq-db-init`, `opencrq-bucket-init` | | `modules/xtm-composer.yml` | `xtm-composer`, `rsa-key-generator` | | `infra/*.yml` | `elasticsearch`, `rabbitmq`, `redis`, `pgsql` (PostgreSQL with pgvector), `minio` (RustFS, the S3 storage) | XTM Composer always manages both OpenCTI and OpenAEV. ## Move to the whole stack {#move-to-the-whole-stack} 1. Get the current deployment. ```bash git pull ``` 2. Remove the lines that no longer do anything from `.env`: `COMPOSE_PROFILES`, which listed the modules to start, and `XTM_COMPOSER_OPENCTI_ENABLE` and `XTM_COMPOSER_OPENAEV_ENABLE`, which turned XTM Composer off for one platform. ```bash sed -i.bak -E '/^(COMPOSE_PROFILES|XTM_COMPOSER_OPENCTI_ENABLE|XTM_COMPOSER_OPENAEV_ENABLE)=/d' .env ``` 3. Check that the modules you did not run have your own secrets, not the values of `.env.sample`. OpenCTI does not start with the sample values. ```bash grep -E '^(OPENCTI|OPENAEV)_(ADMIN_(PASSWORD|TOKEN|ENCRYPTION_KEY|ENCRYPTION_SALT)|ENCRYPTION_KEY|HEALTHCHECK_(ACCESS_)?KEY)=' .env ``` A value such as `changeme`, `ChangeMe_UUIDv4`, `00000000-0000-0000-0000-000000000000` or an empty one needs a fresh one: a UUID for the admin tokens and health check keys, a 32-byte base64 key for `OPENCTI_ENCRYPTION_KEY` (`openssl rand -base64 32`), and a long random string for the others (`openssl rand -hex 24`). Set the admin email and the public URL of each new platform too, as [Configure the stack](https://filigran.io/docs/deploy/install/docker-compose/#configure-the-stack) describes. 4. Prepare the host for the services you did not run. If Elasticsearch did not run, raise `vm.max_map_count` to `262144`, as [Prepare the host](https://filigran.io/docs/deploy/install/docker-compose/#prepare-the-host) does. If `docker-compose.override.yml` binds the published ports to the host itself, add the services that were not in it, such as `openaev` or `elasticsearch`. 5. If you pinned the versions, run the commands of [Pin the image versions](https://filigran.io/docs/deploy/install/docker-compose/#pin-the-image-versions) again: they pinned only the images of the services that ran, and now pin those of the whole stack. 6. Download the images, then start the stack. ```bash docker compose pull docker compose up -d ``` Docker Compose creates the services that did not run, recreates those whose configuration changed, such as `xtm-composer`, and leaves the others alone. The first start of OpenCTI or OpenAEV creates its indices and databases: allow a few minutes. **Check that it worked** ```bash docker compose config --services | wc -l docker compose ps --format '{{.Service}} {{.Health}}' | grep -E '^(opencti|openaev|xtm-one|opencrq) ' ``` The first command prints `32`. Each platform then says `healthy`. Then register the new platforms with XTM One and check the links between the modules, as [Connect the modules to each other](https://filigran.io/docs/deploy/configure/connect-modules/) describes. ## What happens to the data {#what-happens-to-the-data} The data of the modules that already ran stays in their volumes, and a platform that starts for the first time creates its own beside it. The volumes are shared between modules: | Volume | Shared by | | --- | --- | | `esdata` | OpenCTI and OpenAEV | | `pgsqlshareddata` | OpenAEV, XTM One and OpenCRQ | | `s3data` | OpenCTI, OpenAEV, XTM One and OpenCRQ | | `redisdata` | OpenCTI and XTM One | | `amqpdata` | OpenCTI and OpenAEV | | `rsakeys` | XTM Composer | Their names start with `COMPOSE_PROJECT_NAME`, `xtm_` by default. ## Stop the whole stack {#stop-the-whole-stack} `docker compose down` stops every container of the stack. The volumes stay. `docker compose down -v` deletes them, with the data of every module. ## What's next {#what-s-next} - [Connect the modules to each other](https://filigran.io/docs/deploy/configure/connect-modules/), after a platform starts for the first time. - [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/), to run more integrations than the default ones. - [Back up and restore](https://filigran.io/docs/deploy/operate/backup/), to keep the volumes and `.env` together. --- # Publish the platforms over HTTPS > Publish OpenCTI, OpenAEV and XTM One over HTTPS behind a reverse proxy, with HTTP/2, WebSockets, streamed responses, forwarded headers, secure cookies and the right public URLs. - URL: https://filigran.io/docs/deploy/install/reverse-proxy/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers - Type: How-to guide This page puts a reverse proxy in front of the XTM stack, so that users reach each platform on its own host name over HTTPS. The proxy terminates TLS and forwards to the platforms, which keep calling each other inside Docker. The example uses Nginx; any proxy that serves HTTP/2, forwards WebSockets and does not buffer streamed responses works the same way. **Diagram: Users reach each platform over HTTPS through the reverse proxy, which forwards to a local port, while the platforms call each other inside Docker** - Users: Browsers and clients (https://opencti.example.com and others) - Host: Reverse proxy (TLS on port 443) - Platforms in Docker: OpenCTI (127.0.0.1:8080), OpenAEV (127.0.0.1:8081) - At the center: XTM One (127.0.0.1:8090) Connections: - Browsers and clients → Reverse proxy: HTTPS - Reverse proxy → OpenCTI: HTTP and WebSocket - Reverse proxy → OpenAEV: HTTP and WebSocket - Reverse proxy → XTM One: HTTP - OpenCTI ↔ XTM One: by service name - OpenAEV ↔ XTM One: by service name ## Before you start {#before-you-start} - The stack installed as [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/) describes, with the public URLs set (step 6) and the platforms published on local ports (step 7): OpenCTI on `127.0.0.1:8080`, OpenAEV on `127.0.0.1:8081`, XTM One on `127.0.0.1:8090`. - A DNS record for each host name, such as `opencti.example.com`, `openaev.example.com` and `xtm-one.example.com`, pointing to the proxy. - A TLS certificate and its key for each host name, or one certificate that covers them all. - Nginx on the Docker host. ## What the platforms expect {#what-the-platforms-expect} | Need | Why | | --- | --- | | The public URL in `.env` | Each platform builds its links and signs its requests to the others with `*_EXTERNAL_SCHEME`, `*_HOST` and `*_PORT`. With TLS, set the scheme to `https` and the port to `443`. | | WebSockets forwarded | OpenCTI serves its GraphQL subscriptions over a WebSocket on `/graphql`, and OpenAEV uses WebSockets too. In XTM One, the XTM One Desktop app, the runners and the relays connect over a WebSocket, and fall back to slower HTTP long-polling without it; the chat does not use one. The proxy must pass the `Upgrade` and `Connection` headers. | | HTTP/2 to browsers, for XTM One | The XTM One chat streams its answers as server-sent events. Every open tab of XTM One holds its activity stream, and a chat tab also the stream of its conversation and, while an answer is written, the stream of that message. A browser opens at most 6 HTTP/1.1 connections per host: over HTTP/1.1, a few open tabs use them all and XTM One stops loading. HTTP/2 carries every stream on one connection. The proxy still reaches XTM One over HTTP/1.1. | | No buffering | Responses that stream, such as subscriptions and the answers of AI agents, must reach the browser as they come. A proxy that buffers the XTM One chat shows each answer only once it is complete. | | A read timeout above 15 seconds | An XTM One stream with nothing to send writes a keep-alive every 15 seconds: a shorter read timeout cuts it. Nginx waits 60 seconds by default; [Finish the setup of XTM One](https://filigran.io/docs/deploy/configure/xtm-one/#finish-the-setup-after-the-install) raises it for the long answers of AI agents. | | Forwarded headers | The platforms read the scheme and the client address from `X-Forwarded-Proto` and `X-Forwarded-For`. OpenCTI takes the client address only from a proxy on a loopback, link-local or private address; OpenAEV reads them (`server.forward-headers-strategy=framework`). | | Large uploads | Nginx refuses request bodies over 1 MB by default. OpenAEV accepts files up to 5 GB. | ## Configure the proxy {#configure-the-proxy} 1. Write one server block per platform in `/etc/nginx/conf.d/xtm.conf`. Replace the host names and the certificate paths with yours. ```nginx server { listen 443 ssl; server_name opencti.example.com; ssl_certificate /etc/nginx/tls/opencti.example.com.crt; ssl_certificate_key /etc/nginx/tls/opencti.example.com.key; client_max_body_size 5g; location / { proxy_pass http://127.0.0.1:8080; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_cache off; proxy_buffering off; chunked_transfer_encoding off; } } server { listen 443 ssl; server_name openaev.example.com; ssl_certificate /etc/nginx/tls/openaev.example.com.crt; ssl_certificate_key /etc/nginx/tls/openaev.example.com.key; client_max_body_size 5g; location / { proxy_pass http://127.0.0.1:8081; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_cache off; proxy_buffering off; chunked_transfer_encoding off; } } server { listen 443 ssl; http2 on; server_name xtm-one.example.com; ssl_certificate /etc/nginx/tls/xtm-one.example.com.crt; ssl_certificate_key /etc/nginx/tls/xtm-one.example.com.key; client_max_body_size 5g; location / { proxy_pass http://127.0.0.1:8090; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_cache off; proxy_buffering off; chunked_transfer_encoding off; } } ``` `http2 on;` serves XTM One over HTTP/2 to browsers, which its chat needs. The directive exists from Nginx 1.25.1; on an older Nginx, write `listen 443 ssl http2;` instead of the two lines. 2. Check the configuration and load it. ```bash sudo nginx -t sudo systemctl reload nginx ``` **Check that it worked** `nginx -t` ends with `test is successful`. Each platform answers its health check through the proxy: ```bash set -a; . ./.env; set +a curl -fsS "https://$OPENCTI_HOST/health?health_access_key=$OPENCTI_HEALTHCHECK_ACCESS_KEY" >/dev/null && echo "OpenCTI OK" curl -fsS "https://$OPENAEV_HOST/api/health?health_access_key=$OPENAEV_HEALTHCHECK_KEY" >/dev/null && echo "OpenAEV OK" curl -fsS "https://$XTM_ONE_HOST/api/health" >/dev/null && echo "XTM One OK" curl -sS --http2 -o /dev/null -w 'XTM One over HTTP/%{http_version}\n' "https://$XTM_ONE_HOST/api/health" ``` Run it from the `xtm-docker` folder, where `.env` is. The last line prints `XTM One over HTTP/2`; `HTTP/1.1` means the proxy does not serve HTTP/2 yet. 3. Mark the session cookies as secure, so that browsers send them over HTTPS only. In `docker-compose.override.yml`, add one variable to the `environment` of two services, as [Change the stack without editing docker-compose.yml](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml) describes: ```yaml services: opencti: environment: - APP__HTTPS_CERT__COOKIE_SECURE=true openaev: environment: - OPENAEV_COOKIE-SECURE=true ``` Then apply the change: Docker Compose recreates the two containers. ```bash docker compose up -d ``` **Check that it worked** Sign in to OpenCTI and OpenAEV at their public URL. The sign-in holds when you open another page. > **Warning: Proxy on another host** > > OpenCTI takes the client address from `X-Forwarded-For` only when the proxy reaches it from a loopback, link-local or private address. From any other address, OpenCTI sees every request as coming from the proxy: the activity and audit logs record the proxy's address, and the IP-based protections, such as rate limiting, apply to the proxy instead of to each user. The session cookie is not affected: OpenCTI marks it secure from `X-Forwarded-Proto` whatever the proxy's address. *(OpenCTI 7.260811 and later)* If your proxy reaches OpenCTI from a public address, add that address, or its CIDR range, to `TRUST_PROXY_ADDRESSES` (`trust_proxy_addresses`), such as `TRUST_PROXY_ADDRESSES=["203.0.113.10"]`. See [Network and security](https://filigran.io/docs/reference/opencti/configuration/#network-and-security). ## Serve a platform under a path {#serve-a-platform-under-a-path} Give each platform its own host name in the XTM stack. Both platforms can be served under a path, such as `https://example.com/opencti`, but the other services of `docker-compose.yml` reach them at the root of their service name (`http://opencti:8080`, `http://openaev:8080`), so every internal URL would have to change too. | Platform | Setting | Public URL | | --- | --- | --- | | OpenCTI | `app:base_path`, environment variable `APP__BASE_PATH=/opencti` | Keep the base URL without the path: OpenCTI adds the base path to it. The WebSocket moves to `/opencti/graphql`. | | OpenAEV | `server.servlet.context-path=/openaev` | Put the path in `openaev.base-url`: `https://example.com/openaev`. | ## Serve HTTPS from OpenCTI itself {#serve-https-from-opencti-itself} Without a proxy, OpenCTI can serve HTTPS on its own port: set `APP__HTTPS_CERT__KEY` and `APP__HTTPS_CERT__CRT` (`app:https_cert:key` and `app:https_cert:crt`) to the paths of the key and the certificate inside the container, or to their PEM contents, and `APP__HTTPS_CERT__PASSPHRASE` if the key is encrypted. A reverse proxy remains the simpler choice for the whole stack, since OpenAEV and XTM One need TLS too. To trust the certificates of the services the platforms call, see [Trust your certificate authority and proxy](https://filigran.io/docs/deploy/configure/certificates/). ## What's next {#what-s-next} - [Connect the modules to each other](https://filigran.io/docs/deploy/configure/connect-modules/), to check that the platforms still reach each other with their public URLs. - [Harden the deployment](https://filigran.io/docs/deploy/operate/harden/), for security headers, sessions and rate limiting. - [Check that the platforms are healthy](https://filigran.io/docs/deploy/operate/health-probes/), to monitor the platforms through the proxy. --- # XTM Composer architecture > How XTM Composer registers with OpenCTI and OpenAEV, reconciles their integrations with the containers it runs, and decrypts their secrets. - URL: https://filigran.io/docs/deploy/integrations/architecture/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0, XTM Composer 3.261121.0 - For: platform engineers - Type: Concept XTM Composer is a small Rust program that sits between the platforms and a container engine. It never receives orders: it asks each platform, every few seconds, which integrations should exist and in which state, then makes the container engine match. This page explains that loop, how it registers, and how the secrets of an integration reach its container, so you can reason about its behavior when you install or troubleshoot it. **Diagram: XTM Composer between the platforms and the container engine** - Platforms: OpenCTI (GraphQL API), OpenAEV (REST API) - XTM Composer: XTM Composer (Reconciles every 10 seconds) - Container engine: Orchestrator (Docker, Podman, Kubernetes, Swarm, Portainer) - Integrations: Integration containers (One per instance) Connections: - XTM Composer ↔ OpenCTI: pull instances - XTM Composer ↔ OpenAEV: pull instances - XTM Composer → Orchestrator: deploy, start, stop - Orchestrator → Integration containers: run - Integration containers → OpenCTI: register ## Two loops per platform {#two-loops-per-platform} For each platform whose block has `enable: true`, XTM Composer runs two independent loops. | Loop | Interval | What it does | | --- | --- | --- | | Registration and ping | `manager.ping_alive_schedule`, 60 seconds by default | Reads the platform version, registers, then pings. It registers again when the platform version changes, and starts over when a ping fails | | Reconciliation | `manager.execute_schedule`, 10 seconds by default | Compares the integrations the platform lists with the containers that run, and acts on the difference | Both platforms are reached with the URL and token of their block: the GraphQL API at `/graphql` for OpenCTI, the REST API at `/api` for OpenAEV. ## Registration {#registration} At start, when it serves OpenCTI, XTM Composer loads its RSA private key and stops if the key is missing or is not a PKCS#8 PEM file. When it serves OpenAEV alone, it reads the key only when it first registers: a bad key then shows as an error in its logs, and XTM Composer does not register. With its key loaded, it registers with each platform under `manager.id` and `manager.name`, and sends its public key: as a PKCS#1 PEM document to OpenCTI, as a SubjectPublicKeyInfo PEM document to OpenAEV. The platform keeps the identifier and the public key. OpenAEV keeps a single XTM Composer: each registration replaces the previous one, and the pings of a replaced XTM Composer are refused. Run one XTM Composer per OpenAEV. OpenAEV considers XTM Composer unreachable when it has not pinged for two hours. Keep `manager.id` and the key stable: they are how the platform recognizes XTM Composer and encrypts for it. ## Reconciliation {#reconciliation} Every `execute_schedule` seconds, XTM Composer fetches the integration instances of the platform. For each one it looks for a container of the same name, then: | Situation | What XTM Composer does | | --- | --- | | No container | Pulls the image and creates the container, stopped, then reports it as stopped | | The requested state is started and the container is stopped | Starts it | | The requested state is stopped and the container runs | Stops it | | The configuration hash of the instance differs from the one of the container | Pulls the image, then removes the container and creates it again with the new configuration | | The container runs | Reports its health, its restart count and its start date: when it starts and every 30 seconds | | `logs_schedule` seconds have passed, 10 by default | Sends the latest lines of its logs to the platform | | A container of that name belongs to another instance | Leaves it alone and writes in the logs of the instance that the name is taken | Then it removes the containers it manages for this platform that no longer match an instance, or whose name changed. A container counts as in a reboot loop when it has restarted more than three times and has been up for less than five minutes. XTM Composer reports it to the platform with its health. ### When the image cannot be pulled {#when-the-image-cannot-be-pulled} XTM Composer pulls the image of an instance before it deploys it or applies a new configuration. On Kubernetes, the nodes pull the image: XTM Composer reads the pull failures from the pods instead. A missing image never replaces a running integration. | Situation | What XTM Composer does | | --- | --- | | The pull fails before a first deployment | Deploys nothing and reports the instance as stopped. The logs of the instance say `[XTM Composer] Connector not deployed`, followed by the image and the error | | The pull fails before a new configuration is applied | Keeps the container that runs, with its previous configuration. The logs of the instance say `[XTM Composer] Connector not updated, the previous deployment is kept`, followed by the image and the error | | On Kubernetes, a pod waits for its image (`ErrImagePull`, `ImagePullBackOff`, `InvalidImageName`, `ErrImageNeverPull`) | With no pod running, reports the instance as stopped, does not start it again and writes `Connector waiting for its image` in its logs. When the previous pod still runs, writes `Connector not updated, the previous deployment is kept`. Stopping the instance still scales the Deployment down | XTM Composer tries again at each pass, so the instance deploys or updates once the image is in the registry. Its own logs say `Cannot pull the workload image`. See [Troubleshoot XTM Composer](https://filigran.io/docs/deploy/integrations/troubleshoot/) for the usual causes. ### Runtime and logs on Kubernetes {#runtime-and-logs-on-kubernetes} During a rolling update, the Deployment of an instance may have a new pod next to the one that runs. XTM Composer reads the restart count, the start date and the logs from a pod whose integration container runs, the newest one when there are several. It sends the last 100 lines of the integration container only, not those of its sidecars. When no pod answers, the logs of the instance say `[XTM Composer] Cannot read the connector logs`, followed by the error. ### How it marks its containers {#how-it-marks-its-containers} XTM Composer lists and cleans up only the containers whose `xtm-manager` or `opencti-manager` label is its own `manager.id`. Every container it creates carries each key twice, under its `xtm-` name and under its former `opencti-` name: | Label or variable | Former name, still written | Value | | --- | --- | --- | | Label `xtm-manager` | `opencti-manager` | `manager.id` | | Label `xtm-workload-id` | `opencti-connector-id` | The ID of the instance in the platform | | Label `xtm-platform` | `opencti-platform` | `opencti` or `openaev` | | Variable `XTM_CONFIG_HASH` | `OPENCTI_CONFIG_HASH` | The configuration hash of the instance. On Kubernetes, an annotation of the Deployment | The former names keep a rollback to an earlier XTM Composer working, and keep the containers deployed by earlier versions recognized: XTM Composer reads the `xtm-` labels first, then the former ones. A later version will stop writing the former names: filter on `xtm-manager` in new scripts and monitoring. A command such as `docker ps --filter label=opencti-manager` still works in this version. The container is named after the instance: its name in lower case, every character other than a letter or a digit replaced by `-`. On Docker, Podman and Portainer, that is the name of the container, whatever its length. On Kubernetes and Docker Swarm, the name must be a DNS label (RFC 1123): lowercase ASCII letters, digits and `-`, no `-` at either end, 63 characters at most. XTM Composer keeps the container name when it already is one. Otherwise, for example when the name is longer than 63 characters or holds an accented letter, it builds a label from the instance name: 1. It puts the name in lower case, replaces every character other than an ASCII letter or digit with `-`, and removes the `-` at both ends. 2. It keeps the first 54 characters, without a final `-`. 3. It appends `-` and the first 8 hexadecimal characters of the SHA-256 hash of the full instance name. The label is the same at every pass, and two long names that share their first characters still get two labels. OpenAEV names its instances after the catalog title and the instance ID, so their names often take the suffix: `DNS Enumeration (subdomains and DNS records)-7653e749-8c9d-4723-a656-84f3b9fda3ab` becomes `dns-enumeration--subdomains-and-dns-records--7653e749-` followed by 8 hexadecimal characters. A name such as `Import File (STIX) v2` stays `import-file--stix--v2`. This rule arrives with XTM Composer 3.261121.0. It does not rename or redeploy the instances that already run: their names were valid labels, since Kubernetes and Docker Swarm refuse any other. An instance whose name was refused before now deploys at the next pass. On Kubernetes, the instance is a Deployment of that name, whose integration container has the same name, with one replica when started and zero when stopped. On Docker Swarm, it is a service of that name. To find the Deployment or the service of an instance without computing its name, filter on its `xtm-workload-id` label. ### What the container receives {#what-the-container-receives} The container gets the configuration of the instance as environment variables, plus the URL of each platform XTM Composer serves, `OPENCTI_URL` and `OPENAEV_URL`, taken from its own configuration. The integration therefore reaches the platform at the same URL as XTM Composer: in xtm-docker, `http://opencti:8080` and `http://openaev:8080` on the network of the deployment. When the proxy is on, it also gets the proxy variables: see [Run integrations behind a proxy](https://filigran.io/docs/deploy/integrations/proxy/). ## Secrets {#secrets} The platform encrypts every secret setting of an instance, such as an API key, with the public key XTM Composer registered. Only XTM Composer can decrypt it, right before it creates the container. Each encrypted value is Base64 text made of: | Bytes | Content | | --- | --- | | 1 | Version: `1` for RSA PKCS#1 v1.5, `2` for RSA-OAEP with SHA-256 | | 512 | A random AES-256 key and its 12-byte nonce, encrypted with the RSA public key | | The rest | The value, encrypted with AES-256-GCM | The 512 bytes are the size of a 4096-bit RSA block: XTM Composer needs a 4096-bit key. The FIPS build of XTM Composer refuses version `1`. A value may fail to decrypt, for example when the key of XTM Composer changed after the platform encrypted it. XTM Composer then refuses to deploy or update the instance rather than start it with a blank secret. Its logs then say `Refusing to deploy connector`. ## What's next {#what-s-next} - [Install XTM Composer](https://filigran.io/docs/deploy/integrations/install-composer/). - [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/), for the intervals and the container engine. - [Troubleshoot XTM Composer](https://filigran.io/docs/deploy/integrations/troubleshoot/). --- # XTM Composer > XTM Composer deploys and runs the integrations of OpenCTI and OpenAEV as containers, so you manage them from the platform interface. - URL: https://filigran.io/docs/deploy/integrations/composer/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0, XTM Composer 3.261121.0 - Edition: requires an Enterprise Edition license - For: platform engineers, administrators - Type: Concept XTM Composer is the component that deploys integrations for OpenCTI and OpenAEV. You pick an integration in the catalog of a platform and fill its form. XTM Composer starts it as a container on your Docker, Podman or Kubernetes, reports its status and logs, and applies your changes. This page explains what it does, what it needs, and where to go next to install it. **Diagram: You deploy an integration from the catalog of a platform, and XTM Composer starts it as a container on your engine and reports its status and logs back** - You: Catalog and form (Deploy, Create, Start) - Platforms: OpenCTI (Connectors), OpenAEV (Collectors, injectors, executors) - XTM Composer: XTM Composer (The Integration Manager) - Container engine: Container engine (Docker, Podman, Kubernetes, Swarm, Portainer) - Integrations: Integration containers (Started and stopped from the interface) Connections: - Catalog and form → OpenCTI: deploy - Catalog and form → OpenAEV: deploy - XTM Composer ↔ OpenCTI: instances, status, logs - XTM Composer ↔ OpenAEV: instances, status, logs - XTM Composer → Container engine: start container - Container engine → Integration containers: run In the interface of both platforms, XTM Composer appears as the **Integration Manager**. ## What it runs {#what-it-runs} | Platform | What XTM Composer deploys | Where you deploy from | | --- | --- | --- | | OpenCTI | Connectors | **Integrations**, **Available** tab (**Data > Ingestion > Connector catalog** before 7.260811) | | OpenAEV | External collectors, injectors and executors | **Integrations** > **Catalog** | One XTM Composer can serve OpenCTI, OpenAEV or both: each platform has its own block in its configuration (`opencti` and `openaev`), switched on or off with `enable`. The integrations built into a platform, such as the email injector of OpenAEV, do not need it. See [How integrations run](https://filigran.io/docs/deploy/integrations/how-they-run/). XTM Composer runs the image the catalog names for each integration. To run the FIPS 140-3 or Red Hat Universal Base Image 9 builds of the integrations instead, `manager.image_tag_suffix` adds `-fips` or `-ubi9` to the tag of every image it deploys. The FIPS image of XTM Composer sets `-fips`. See [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/). ## What it needs {#what-it-needs} - An **Enterprise Edition** license on the platform. Without it, the catalog is read-only. You can enter the license from the **Deploy** action of a catalog card, from the detail view of an integration, or from the platform settings. - OpenCTI 6.8.17 or later. Every OpenCTI version documented here qualifies. - A container engine XTM Composer can drive: Docker, Podman, Kubernetes, Docker Swarm, or Docker environments in Portainer. - A 4096-bit RSA private key, which XTM Composer keeps and whose public key it gives to the platform. The platform encrypts the secrets of each integration with it. - An API token for each platform it serves. ## XTM Composer in the XTM stack {#xtm-composer-in-the-xtm-stack} In [FiligranHQ/xtm-docker](https://github.com/FiligranHQ/xtm-docker), XTM Composer is part of the stack and always starts with it. `modules/xtm-composer.yml` defines two services: `xtm-composer`, and `rsa-key-generator`, which creates the RSA key once in the `rsakeys` volume. XTM Composer always serves both OpenCTI and OpenAEV: the service sets `OPENCTI__ENABLE` and `OPENAEV__ENABLE` to `true`. It starts once the key exists and OpenCTI, OpenAEV and RabbitMQ are healthy. A `.env` written for an earlier version of xtm-docker may still set `XTM_COMPOSER_OPENCTI_ENABLE` or `XTM_COMPOSER_OPENAEV_ENABLE`. They no longer do anything: remove them. The service connects to `http://opencti:8080` and `http://openaev:8080` with the admin token of each platform, drives the Docker daemon through `/var/run/docker.sock`, and attaches the integrations it starts to the network of the deployment. [Deploy a first integration with XTM Composer](https://filigran.io/docs/deploy/integrations/quick-start/) checks that it runs and deploys a first integration. ## Deploy an integration from the interface {#deploy-an-integration-from-the-interface} Once XTM Composer is running, the catalog no longer warns that deployment requires the Integration Manager. **OpenCTI** 1. Open **Integrations**, **Available** tab (**Data > Ingestion > Connector catalog** before 7.260811) and find the connector. A badge on **Deploy** shows that it is already deployed. 2. Click **Deploy** and fill the form: a **Display name**, from which OpenCTI derives the **Instance name** that names the container, the account the connector writes as, with **Automatically create a service account** or an existing **Service account responsible for data creation**, and the settings of the connector under **Configuration**. **Advanced options** shows the optional ones. The header of the form counts the **instances deployed** by XTM Composer for this connector; click it to list them. 3. Click **Create**. OpenCTI opens the new instance. It is not started yet. 4. Click **Start**. The **Logs** tab shows what the connector writes, at the log level you chose. OpenCTI refuses an instance name or a service account name that is already used by another instance or user. You can deploy several instances of the same connector with different names, but each one adds load to the platform: avoid it unless you need it. **OpenAEV** 1. Open **Integrations** > **Catalog** and find the collector, injector or executor. 2. Click **Deploy** and fill the form: a unique **Instance name**, the log level and the settings of the integration. **Advanced options** shows the optional ones. 3. Click **Create**. OpenAEV opens the new instance. It is not started yet. 4. Click **Start**. The **Logs** tab shows what the integration writes. The deployed instances are listed in **Integrations** > **Collectors**, **Injectors** and **Executors**. ## What you manage from the interface {#what-you-manage-from-the-interface} - Only the instances XTM Composer manages can be started and stopped from the interface, and only they show their logs there. - You can update the configuration of a managed instance with **Update**. XTM Composer applies it within a few seconds by recreating the container, or by updating the Deployment on Kubernetes. - When the image of an integration cannot be pulled, XTM Composer deploys nothing, or keeps the container that runs with its previous configuration, and says so in the **Logs** tab: `[XTM Composer] Connector not deployed` or `[XTM Composer] Connector not updated, the previous deployment is kept`, with the image and the error. It tries again at each pass. See [Troubleshoot XTM Composer](https://filigran.io/docs/deploy/integrations/troubleshoot/). - On Kubernetes and Docker Swarm, the Deployment or the service of an instance takes a name of 63 characters at most. An instance name that is longer, frequent in OpenAEV, or holds accented letters is converted and ends with 8 characters of a hash. See [how XTM Composer names containers](https://filigran.io/docs/deploy/integrations/architecture/#how-it-marks-its-containers). - Secrets such as API keys are encrypted when you save them and never shown again. - An integration you deployed by hand can be taken over by XTM Composer: see [Migrate to XTM Composer](https://filigran.io/docs/deploy/integrations/migrate/). ## Add your own connectors to the OpenCTI catalog {#add-your-own-connectors-to-the-opencti-catalog} The OpenCTI catalog lists the connectors of Filigran. To offer connectors you build yourself, list more catalogs in `app:custom_catalogs` (`APP__CUSTOM_CATALOGS`), as a JSON array of file paths the platform can read, inside its container in Docker. Each file is a JSON catalog in the format of the built-in one, with a `contracts` list. XTM Composer can deploy a contract that has `manager_supported` set to `true` and a `config_schema`. *(OpenCTI 7.261030 and later)* An entry can also be an `http://` or `https://` URL, which OpenCTI downloads. The catalog manager loads the catalogs: its keys are in the [Engines, Schedules and Managers](https://filigran.io/docs/reference/opencti/configuration/#engines-schedules-and-managers) section of the configuration reference. ```yaml services: opencti: environment: - 'APP__CUSTOM_CATALOGS=["/opt/opencti/catalogs/example-cert.json"]' volumes: - ./catalogs:/opt/opencti/catalogs:ro ``` Filigran may remove this key in a later version: check with your Filigran contact before you build on it. ## What's next {#what-s-next} - [Deploy a first integration with XTM Composer](https://filigran.io/docs/deploy/integrations/quick-start/), to turn it on in the XTM stack. - [Install XTM Composer](https://filigran.io/docs/deploy/integrations/install-composer/), on Docker, Podman or Kubernetes outside xtm-docker. - [XTM Composer architecture](https://filigran.io/docs/deploy/integrations/architecture/), how it registers, reconciles and decrypts. - [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/), [Run integrations behind a proxy](https://filigran.io/docs/deploy/integrations/proxy/) and [Pull integrations from a private registry](https://filigran.io/docs/deploy/integrations/private-registry/). - [Troubleshoot XTM Composer](https://filigran.io/docs/deploy/integrations/troubleshoot/). --- # Configure XTM Composer > Set the identity, key, platforms and container engine of XTM Composer, with a YAML file or environment variables, and the options each engine applies to the integration containers. - URL: https://filigran.io/docs/deploy/integrations/configure-composer/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0, XTM Composer 3.261121.0 - Edition: requires an Enterprise Edition license - For: platform engineers - Type: How-to guide This page explains how XTM Composer reads its configuration and gives the settings you need to connect it to OpenCTI and OpenAEV and to your container engine. Every key, with its type and default, is in the XTM Composer sections of [OpenCTI integration settings](https://filigran.io/docs/reference/opencti/integration-settings/#xtm-composer-manager), generated from the code: they list the `opencti` keys, and the `openaev` keys are the same. **Diagram: XTM Composer merges three sources of settings, the last one winning, and creates each integration on the engine that the selector of its platform names** - Settings, last one wins: config/default.yaml (Shipped in the image), config/.yaml (production.yaml by default), Environment variables (__ between levels) - XTM Composer: XTM Composer (daemon.selector per platform) - Container engine: Docker (A container), Podman (A container), Kubernetes (A Deployment, the default), Docker Swarm (A replicated service), Portainer (A container through its API) Connections: - config/default.yaml → XTM Composer: read first - config/.yaml → XTM Composer: overrides - Environment variables → XTM Composer: wins - XTM Composer → Docker: docker - XTM Composer → Podman: podman - XTM Composer → Kubernetes: kubernetes - XTM Composer → Docker Swarm: swarm - XTM Composer → Portainer: portainer ## Where settings come from {#where-settings-come-from} XTM Composer merges three sources, the last one winning: 1. `config/default.yaml`, shipped in the image at `/opt/xtm-composer/config/default.yaml`. 2. `config/.yaml`, if it exists. `COMPOSER_ENV` is `production` by default, so the file is `/opt/xtm-composer/config/production.yaml`. 3. Environment variables. A variable is the path of the key in capitals, with `__` between levels: `manager.logger.level` is `MANAGER__LOGGER__LEVEL`, `opencti.daemon.docker.network_mode` is `OPENCTI__DAEMON__DOCKER__NETWORK_MODE`. To use a file in a container, mount that one file, not the folder: `default.yaml` must stay in place. ```bash docker run -d --name xtm-composer \ -v "$PWD/production.yaml:/opt/xtm-composer/config/production.yaml:ro" \ -v "$PWD/keys:/keys:ro" \ -v /var/run/docker.sock:/var/run/docker.sock \ filigran/xtm-composer:latest ``` Lists, such as `extra_hosts` or `cap_add`, go in the YAML file. A YAML file does not expand variables: write the values, or give secrets as environment variables. ## XTM Composer itself {#xtm-composer-itself} | Key | Environment variable | Default | Set it to | | --- | --- | --- | --- | | `manager.id` | `MANAGER__ID` | `default-manager-id` | A stable identifier, such as a UUID. The platforms know XTM Composer by it, and it labels every container XTM Composer manages | | `manager.name` | `MANAGER__NAME` | `Filigran connector manager` | The name the platforms show | | `manager.credentials_key_filepath` | `MANAGER__CREDENTIALS_KEY_FILEPATH` | | The path of the 4096-bit RSA private key, PKCS#8 PEM. Wins over `credentials_key` when both are set | | `manager.credentials_key` | `MANAGER__CREDENTIALS_KEY` | | The key itself, when you cannot mount a file | | `manager.execute_schedule` | `MANAGER__EXECUTE_SCHEDULE` | `10` | Seconds between two reconciliations | | `manager.ping_alive_schedule` | `MANAGER__PING_ALIVE_SCHEDULE` | `60` | Seconds between two pings to each platform | | `manager.image_tag_suffix` | `MANAGER__IMAGE_TAG_SUFFIX` | None, and `-fips` in the FIPS image of XTM Composer | `-fips` or `-ubi9`, to run the FIPS or Red Hat Universal Base Image (UBI) builds of the integrations. Another value stops XTM Composer at start | | `manager.logger.level` | `MANAGER__LOGGER__LEVEL` | `info` | `trace`, `debug`, `info`, `warn` or `error` | | `manager.logger.format` | `MANAGER__LOGGER__FORMAT` | `json` | `json` or `pretty` | One of `credentials_key_filepath` and `credentials_key` is required: XTM Composer stops at start without a key. When it serves OpenAEV alone, it reads the key only at its first registration, and logs the error then. XTM Composer adds `manager.image_tag_suffix` to the tag of every integration image it deploys, for both platforms and on every container engine: - `opencti/connector-mitre:6.9.0` becomes `opencti/connector-mitre:6.9.0-fips`, and an image without a tag gets `latest-fips`. - A tag that already ends with the suffix keeps it once, and an image pinned by digest (`@sha256:…`) stays as it is. - With a private registry, the suffix goes after the tag: `registry.example.com/opencti/connector-mitre:6.9.0-fips`. Every integration you deploy needs an image with that tag. OpenAEV publishes no FIPS images, as [Install offline or with FIPS 140-3](https://filigran.io/docs/deploy/install/air-gapped/) says. When the image cannot be pulled, XTM Composer deploys nothing and logs the reason on the integration in the platform: see [Troubleshoot XTM Composer](https://filigran.io/docs/deploy/integrations/troubleshoot/). An empty value turns the suffix off, in the FIPS image too: `MANAGER__IMAGE_TAG_SUFFIX=""`. Keep `manager.logger.directory` and `manager.logger.console` at their default, `true`: XTM Composer then writes its logs to its standard output and to daily files in a `logs` folder next to its executable. ## The platforms {#the-platforms} `opencti` and `openaev` take the same keys. Replace `OPENCTI__` with `OPENAEV__` for OpenAEV. | Key | Environment variable | Default | Set it to | | --- | --- | --- | --- | | `opencti.enable` | `OPENCTI__ENABLE` | `true` (`false` for `openaev`) | `true` to serve this platform | | `opencti.url` | `OPENCTI__URL` | `http://host.docker.internal:4000` | The URL of the platform, as XTM Composer and its integrations reach it. XTM Composer also gives it to every integration as `OPENCTI_URL` or `OPENAEV_URL` | | `opencti.token` | `OPENCTI__TOKEN` | `ChangeMe` | An API token of the platform | | `opencti.unsecured_certificate` | `OPENCTI__UNSECURED_CERTIFICATE` | `false` | `true` to accept an invalid or self-signed certificate on the platform. Not for production | | `opencti.request_timeout` | `OPENCTI__REQUEST_TIMEOUT` | `30` | Seconds before a request to the platform times out | | `opencti.connect_timeout` | `OPENCTI__CONNECT_TIMEOUT` | `10` | Seconds before a connection to the platform times out | | `opencti.logs_schedule` | `OPENCTI__LOGS_SCHEDULE` | `10` | Seconds between two sends of the logs of an integration | The proxy keys of each platform are in [Run integrations behind a proxy](https://filigran.io/docs/deploy/integrations/proxy/), the registry keys in [Pull integrations from a private registry](https://filigran.io/docs/deploy/integrations/private-registry/). ## The container engine {#the-container-engine} `opencti.daemon.selector`, or `OPENCTI__DAEMON__SELECTOR`, says where XTM Composer runs the integrations of the platform: `docker`, `podman`, `kubernetes` (the default), `swarm` or `portainer`. Each platform has its own `daemon` block, so OpenCTI and OpenAEV can use different engines. The block of the selected engine shapes what XTM Composer creates for each integration: a container, a Swarm service or a Kubernetes Deployment. It sets the network the integration joins, how it resolves names, its Linux privileges and the resources it may use. - The options apply to every integration of the platform alike. There is no value per integration. - XTM Composer reads them when it creates a container. An integration already deployed gets a change only when its container is created again: change its configuration with **Update**, or remove its container. - The keys are under `opencti.daemon.`, and under `openaev.daemon.` for OpenAEV. A key with one value also takes an environment variable, such as `OPENCTI__DAEMON__DOCKER__PRIVILEGED=false`. A list or a map, such as `cap_drop` or `sysctls`, goes in the YAML file. - A key you leave out keeps the default of the engine. [OpenCTI integration settings](https://filigran.io/docs/reference/opencti/integration-settings/#xtm-composer-orchestrator) gives the type of every key, engine by engine. **Docker** XTM Composer talks to the Docker daemon through its socket, mounted in the XTM Composer container, and starts each integration as a container next to it. The `opencti.daemon.docker` block is optional, and so is each of its keys: without them, the integrations get the defaults of Docker. The types are in [XTM Composer: Docker](https://filigran.io/docs/reference/opencti/integration-settings/#xtm-composer-docker). | Key under `opencti.daemon.docker` | Effect on the integration containers | Default | | --- | --- | --- | | `socket_path` | The Docker API socket XTM Composer uses, as a path or a `unix://` URL | `/var/run/docker.sock` | | `network_mode` | The network they join. Name the network of the platform and RabbitMQ, `xtm_default` in xtm-docker: on another network, an integration cannot reach the platform and fails at start. `host` and `none` also work | The `bridge` network of Docker | | `extra_hosts` | Lines added to their `/etc/hosts`, as `host:ip`. `host-gateway` as the IP stands for the host | None | | `dns` | The DNS servers they use | Those of the host | | `dns_search` | The domains added to a short host name | Those of the host | | `privileged` | `true` gives them every privilege on the host. Leave it off unless an integration documents the need | `false` | | `cap_add` | Linux capabilities added, such as `NET_ADMIN` | The default set of Docker | | `cap_drop` | Linux capabilities removed. `ALL` removes every one: test your integrations after the change | The default set of Docker | | `security_opt` | Security options: `no-new-privileges:true`, a `seccomp=` or `apparmor=` profile, SELinux `label=` options | The profiles of Docker | | `userns_mode` | User namespace. `host` turns off the remapping of a daemon set with `userns-remap` | The setting of the daemon | | `pid_mode` | PID namespace. `host` lets them see the processes of the host | Their own namespace | | `ipc_mode` | IPC namespace: `private`, `shareable` or `host` | The default of the daemon | | `uts_mode` | UTS namespace. `host` gives them the host name of the host | Their own namespace | | `runtime` | The OCI runtime declared in the daemon, such as `runsc` for gVisor | The default runtime, usually `runc` | | `shm_size` | The size of `/dev/shm`, in bytes | 64 MB | | `sysctls` | Kernel parameters of their namespaces, as a map: `net.ipv4.tcp_keepalive_time: "600"` | Those of the host | | `ulimits` | Resource limits, each with a `name`, a `soft` and a `hard` value. An entry without all three is ignored | The limits of the daemon | Example CERT runs OpenCTI with xtm-docker on one host. It hardens the integrations: no Linux capability, no privilege escalation, its internal DNS, and more open files for the large feeds it imports. ```yaml opencti: daemon: selector: docker docker: network_mode: xtm_default extra_hosts: - "proxy.example.com:10.0.20.5" dns: - 10.0.0.53 dns_search: - example.com privileged: false cap_drop: - ALL security_opt: - "no-new-privileges:true" shm_size: 134217728 ulimits: - name: nofile soft: 65536 hard: 65536 ``` **Podman** XTM Composer drives Podman through its Docker-compatible API socket, rootful or rootless, on a Linux host only. The `opencti.daemon.podman` block takes the keys of the Docker tab, with the same effect. The block is optional, and so is each of its keys. The types are in [XTM Composer: Podman](https://filigran.io/docs/reference/opencti/integration-settings/#xtm-composer-podman). | Key under `opencti.daemon.podman` | Effect on the integration containers | Default | | --- | --- | --- | | `socket_path` | The Podman API socket, as a path or a `unix://` URL. Another scheme stops XTM Composer at start | The first socket that exists: `$XDG_RUNTIME_DIR/podman/podman.sock`, then `/run/user//podman/podman.sock` (not for root), then `/run/podman/podman.sock` | | `network_mode` | The network they join, such as the network of the platform. Check it with `podman network inspect` | The default network of Podman | | `extra_hosts`, `dns`, `dns_search`, `privileged`, `cap_add`, `cap_drop`, `security_opt`, `userns_mode`, `pid_mode`, `ipc_mode`, `uts_mode`, `runtime`, `shm_size`, `sysctls`, `ulimits` | As in the Docker tab | The defaults of Podman | `XDG_RUNTIME_DIR` is read from the environment of XTM Composer, at each attempt to find the socket. Example CERT runs a rootful Podman on a Red Hat Enterprise Linux host, with the socket mounted in the XTM Composer container at the default path: ```yaml opencti: daemon: selector: podman podman: socket_path: /run/podman/podman.sock network_mode: xtm_default cap_drop: - ALL security_opt: - "no-new-privileges:true" ulimits: - name: nofile soft: 65536 hard: 65536 ``` **Kubernetes** XTM Composer uses the service account of its pod, or the current kubeconfig context. It creates one Deployment per integration in its own namespace, with one replica when the integration is started and none when it is stopped. The default configuration holds the block, so the `kubernetes` selector works with no key. The types are in [XTM Composer: Kubernetes](https://filigran.io/docs/reference/opencti/integration-settings/#xtm-composer-kubernetes). | Key under `opencti.daemon.kubernetes` | Effect on the integration Deployments | Default | | --- | --- | --- | | `image_pull_policy` | When Kubernetes pulls the image: `Always`, `IfNotPresent` or `Never`. Another value logs a warning and falls back to `IfNotPresent` | `IfNotPresent` | | `image_resources` | The requests and limits of every integration container, in the Kubernetes `resources` format. YAML only | None: the LimitRange of the namespace applies, if any | | `base_deployment` | A Deployment manifest XTM Composer starts every integration Deployment from. What XTM Composer sets wins: name, labels, replicas, the integration container. The rest of the base is kept, such as pod annotations, `nodeSelector`, `tolerations`, `affinity` or a pod `securityContext`. YAML only | None | | `base_deployment_json` | The same manifest as a JSON string, for an environment variable. Read only when `base_deployment` is not set. A string that is not valid JSON makes XTM Composer fail when it deploys an integration | None | Example CERT keeps its integrations on the nodes it dedicates to them, with bounded resources: ```yaml opencti: daemon: selector: kubernetes kubernetes: image_pull_policy: IfNotPresent image_resources: requests: cpu: 250m memory: 256Mi limits: cpu: "1" memory: 1Gi base_deployment: metadata: labels: team: example-cert spec: template: spec: nodeSelector: workload: integrations tolerations: - key: dedicated operator: Equal value: integrations effect: NoSchedule securityContext: seccompProfile: type: RuntimeDefault ``` Without a file, give the base as `OPENCTI__DAEMON__KUBERNETES__BASE_DEPLOYMENT_JSON='{"spec":{"template":{"spec":{"nodeSelector":{"workload":"integrations"}}}}}'`. **Docker Swarm** XTM Composer talks to `/var/run/docker.sock` on a Swarm manager node: there is no socket key. It creates one replicated service per integration, with one replica when the integration is started and none when it is stopped. The XTM stack runs on Docker Compose: use this engine when your platform runs on a Swarm cluster of your own. The `opencti.daemon.swarm` block is required with the `swarm` selector, even with a single key: without it, XTM Composer stops at start with `Missing swarm configuration`. Every key in it is optional. The types are in [XTM Composer: Docker Swarm](https://filigran.io/docs/reference/opencti/integration-settings/#xtm-composer-docker-swarm). | Key under `opencti.daemon.swarm` | Effect on the integration services | Default | | --- | --- | --- | | `network` | The overlay network the services attach to. Name the network of the platform and RabbitMQ, or the integrations cannot reach them | None | | `extra_hosts` | Lines of their `/etc/hosts`, written as in that file: `10.0.20.5 proxy.example.com`. XTM Composer passes them to Swarm as they are, so the `host:ip` form of Docker does not work here | None | | `dns`, `dns_search` | The DNS servers and the search domains of the containers | Those of the node | | `cap_add`, `cap_drop` | Linux capabilities added or removed | The default set of Docker | | `sysctls` | Kernel parameters of their namespaces, as a map | Those of the node | | `ulimits` | Resource limits, each with a `name`, a `soft` and a `hard` value. An entry without all three is ignored | The limits of the daemon | | `hostname` | The host name of the containers. Every integration of the platform gets the same one | The container ID | | `user` | The user the containers run as, as `uid:gid` or a name | The user of the image | | `read_only` | `true` mounts the root filesystem read-only. An integration that writes files there fails | `false` | | `init` | `true` runs an init process that forwards signals and reaps child processes | The default of the daemon | | `stop_grace_period` | The time a container gets to stop before it is killed, in nanoseconds: `10000000000` is 10 seconds | 10 seconds | | `resources.cpu_limit` | The CPU a service may use, in nano CPUs: `1000000000` is one CPU | No limit | | `resources.memory_limit` | The memory a service may use, in bytes. Above it, the container is killed | No limit | | `resources.cpu_reservation` | The CPU a node must have free to run the service, in nano CPUs | None | | `resources.memory_reservation` | The memory a node must have free to run the service, in bytes | None | | `placement_constraints` | The nodes the services may run on, such as `node.role==worker` or `node.labels.integrations==true` | Any node | | `placement_preferences` | Labels to spread the services across, such as `node.labels.zone` | None | | `restart_condition` | When Swarm restarts a container: `none`, `on-failure` or `any`. Another value counts as `any` | `any` | | `restart_delay` | The wait between two restarts, in nanoseconds | 5 seconds | | `restart_max_attempts` | The maximum number of restarts. `0` sets no limit | No limit | Example CERT runs OpenCTI on a Swarm cluster of three zones, with the overlay network `xtm_backend`. It runs the integrations on labelled worker nodes, spread across zones, within one CPU and 1 GB each: ```yaml opencti: daemon: selector: swarm swarm: network: xtm_backend extra_hosts: - "10.0.20.5 proxy.example.com" dns_search: - example.com cap_drop: - ALL init: true stop_grace_period: 30000000000 resources: cpu_limit: 1000000000 memory_limit: 1073741824 cpu_reservation: 250000000 memory_reservation: 268435456 placement_constraints: - node.role==worker - node.labels.integrations==true placement_preferences: - node.labels.zone restart_condition: any restart_delay: 10000000000 restart_max_attempts: 0 ``` **Portainer** XTM Composer creates the integration containers through the Portainer API, in one Docker environment of Portainer. It calls the Docker API that Portainer exposes for that environment, with the API key in the `X-API-KEY` header, and does not check the certificate of Portainer. Only `network_mode` and `stack` shape the containers: the container options of the Docker tab do not apply. The types are in [XTM Composer: Portainer](https://filigran.io/docs/reference/opencti/integration-settings/#xtm-composer-portainer). | Key under `opencti.daemon.portainer` | Effect | Default | | --- | --- | --- | | `api` | The Portainer URL, with its port | `https://host.docker.internal:9443`, and `https://localhost:9443` for OpenAEV | | `api_key` | A Portainer access token of a user who manages containers in the environment. Give it as an environment variable | `ChangeMe` | | `env_id` | The ID of the environment: the number in its address in Portainer | `3` | | `env_type` | `docker`, the only type supported. Another value stops XTM Composer at start | `docker` | | `api_version` | The Docker API version of the calls. Lower it for an older Docker Engine | `v1.44` | | `stack` | A name set as the `com.docker.compose.project` label of each container, so that Portainer shows them in that stack | None, and `opencti-dev` for OpenAEV | | `network_mode` | The network the containers join, such as the network of the platform | None, and `opencti-dev_default` for OpenAEV | The default configuration gives the `openaev` block `stack: opencti-dev` and `network_mode: opencti-dev_default`. When OpenAEV uses Portainer, set both: otherwise its integrations try to join a network that does not exist. Example CERT manages its Docker host in Portainer, as environment 2, with the token given as `OPENCTI__DAEMON__PORTAINER__API_KEY`: ```yaml opencti: daemon: selector: portainer portainer: api: https://portainer.example.com:9443 env_id: "2" env_type: docker api_version: v1.44 stack: xtm network_mode: xtm_default ``` ## Show what an integration receives {#show-what-an-integration-receives} To see the environment XTM Composer gives each container it starts, set `MANAGER__DEBUG__SHOW_ENV_VARS=true`: it logs a `Starting connector` line with the variables, secrets replaced by `***REDACTED***`. `MANAGER__DEBUG__SHOW_SENSITIVE_ENV_VARS=true` shows the secrets too: use it only while you debug, then turn it off. ## A complete example {#a-complete-example} **Example: Serve both platforms of Example CERT from one Docker host** Example CERT runs OpenCTI and OpenAEV with xtm-docker. `/opt/xtm-composer/config/production.yaml` for an XTM Composer that serves both platforms on Docker, with the key mounted at `/keys/private_key.pem` and the tokens given as `OPENCTI__TOKEN` and `OPENAEV__TOKEN`: ```yaml manager: id: 8215614c-7139-422e-b825-b20fd2a13a23 name: XTM Composer credentials_key_filepath: /keys/private_key.pem opencti: enable: true url: http://opencti:8080 daemon: selector: docker docker: network_mode: xtm_default openaev: enable: true url: http://openaev:8080 daemon: selector: docker docker: network_mode: xtm_default ``` Replace the `id` with a UUID of your own, generated once with `python3 -c 'import uuid; print(uuid.uuid4())'`. XTM Composer then registers with both platforms and starts their integrations on the `xtm_default` network. ## Check that it works {#check-that-it-works} Restart XTM Composer and read its first lines: it logs `Starting XTM composer` with its version and its `image_tag_suffix`, then `Successfully loaded RSA private key (PKCS#8 format)`, then `Manager registered` for each platform it serves. A setting it cannot read stops it at start, with an error that names the setting. ## What's next {#what-s-next} - [OpenCTI integration settings](https://filigran.io/docs/reference/opencti/integration-settings/#xtm-composer-manager), every key of XTM Composer with its type and default. - [Run integrations behind a proxy](https://filigran.io/docs/deploy/integrations/proxy/) and [Pull integrations from a private registry](https://filigran.io/docs/deploy/integrations/private-registry/). - [Troubleshoot XTM Composer](https://filigran.io/docs/deploy/integrations/troubleshoot/). --- # How integrations run > How connectors, collectors, injectors and executors run next to OpenCTI and OpenAEV, how they reach their platform, and which ones xtm-docker always starts. - URL: https://filigran.io/docs/deploy/integrations/how-they-run/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0, XTM Composer 3.261121.0 - For: platform engineers, administrators - Type: Concept An integration is a small program that connects OpenCTI or OpenAEV to another system: it imports or exports data, enriches it, or runs actions. Most integrations run as their own container next to the platform. This page explains how they run, how they reach their platform, and which ones the XTM stack starts by default, so you can choose how to run yours. ## Four kinds of integration {#four-kinds-of-integration} | Kind | Platform | What it does | How it is built | | --- | --- | --- | --- | | Connector | OpenCTI | Imports, enriches, streams or exports threat intelligence | [Connectors](https://filigran.io/docs/develop/integration-model/connectors/) | | Collector | OpenAEV | Reads detection and prevention results, or reference data, from a security tool or a source | [Collectors](https://filigran.io/docs/develop/integration-model/collectors/) | | Injector | OpenAEV | Runs injects: sends emails, runs scans, calls other tools | [Injectors](https://filigran.io/docs/develop/integration-model/injectors/) | | Executor | OpenAEV | Deploys and runs OpenAEV agents on endpoints | [Executors](https://filigran.io/docs/develop/integration-model/executors/) | The catalog of available integrations is the [XTM Hub integrations library](https://hub.filigran.io/cybersecurity-solutions/open-cti-integrations). Each platform also shows its own catalog: **Integrations**, **Available** tab (**Data > Ingestion > Connector catalog** before 7.260811) in OpenCTI, **Integrations** > **Catalog** in OpenAEV. ### Built-in and external {#built-in-and-external} Some integrations live inside the platform and need no deployment: - OpenAEV embeds some injectors, such as email, SMS and media pressure. You configure them in the platform configuration. - OpenAEV runs its own agent natively, and you configure the executors of endpoint security products, such as Tanium or CrowdStrike Falcon, in **Integrations** > **Executors** of OpenAEV. Everything else is external: a program, usually in Python, published as a Docker image (`opencti/connector-*`, `openaev/collector-*`, `openaev/injector-*`), that you run yourself or let XTM Composer run for you. ## How an integration reaches its platform {#how-an-integration-reaches-its-platform} Every external integration needs two settings to reach its platform, plus an identity of its own: | Setting | OpenCTI connector | OpenAEV collector or injector | | --- | --- | --- | | Platform URL | `OPENCTI_URL` | `OPENAEV_URL` | | API token | `OPENCTI_TOKEN` | `OPENAEV_TOKEN` | | Unique ID, a UUIDv4 | `CONNECTOR_ID` | `COLLECTOR_ID` or `INJECTOR_ID` | | Display name | `CONNECTOR_NAME` | `COLLECTOR_NAME` or `INJECTOR_NAME` | At start, the integration registers with the platform through its API, with its token. The platform then gives it the address and credentials of RabbitMQ: - An OpenCTI connector pushes the STIX 2.1 bundles it produces to its RabbitMQ queue, and the OpenCTI workers write them into the platform. Enrichment and export connectors also receive their jobs from RabbitMQ. - An OpenAEV injector receives its work through RabbitMQ in the same way. **Diagram: How an integration exchanges data with its platform** - Integrations: Connector (OpenCTI import, enrichment, stream, export), Collector, injector (OpenAEV, external ones) - Platforms: OpenCTI (API at OPENCTI_URL), OpenAEV (API at OPENAEV_URL) - Queues: RabbitMQ (One queue per integration) Connections: - Connector → OpenCTI: register with token - Collector, injector → OpenAEV: register with token - Connector → RabbitMQ: push and listen - Collector, injector → RabbitMQ: injectors listen - OpenCTI → RabbitMQ: workers consume So an integration must reach two things on the network: the platform URL you give it, and RabbitMQ at the host name and port the platform hands out. In the XTM stack, both are on the Docker network of the deployment (`xtm_default` with the default `COMPOSE_PROJECT_NAME=xtm`), as `http://opencti:8080`, `http://openaev:8080` and `rabbitmq:5672`. A connector that cannot reach RabbitMQ can talk to OpenCTI over HTTP only: see [Run an integration without XTM Composer](https://filigran.io/docs/deploy/integrations/manual/). The token decides what the integration can do. OpenCTI recommends one user per connector, in the `Connectors` group. OpenAEV integrations can share an administrator token. The details are in [Run an integration without XTM Composer](https://filigran.io/docs/deploy/integrations/manual/#create-a-token). ## Three ways to run integrations {#three-ways-to-run-integrations} | Way | What you do | When to choose it | | --- | --- | --- | | [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/) | Deploy, start, stop and configure integrations from the platform interface. XTM Composer runs the containers | Most deployments. It requires an Enterprise Edition license | | The default integrations of xtm-docker | Nothing: they are part of the stack | The integrations every platform needs, always started with the stack | | [By hand](https://filigran.io/docs/deploy/integrations/manual/) | Add a service to a Compose file, or run the Python program | An integration that is not in the catalog, or a deployment without Enterprise Edition | You can combine them: the default integrations run as Compose services while XTM Composer runs the ones you add later. ## The default integrations of xtm-docker {#the-default-integrations-of-xtm-docker} [FiligranHQ/xtm-docker](https://github.com/FiligranHQ/xtm-docker) always starts these integrations with the stack: they are defined next to their platform, in `modules/opencti.yml` and `modules/openaev.yml`. Each one runs as a Compose service with `restart: always`, starts once its platform is healthy, and uses the admin token of its platform (`OPENCTI_ADMIN_TOKEN` or `OPENAEV_ADMIN_TOKEN` in `.env`). Its ID is in `.env` too. **OpenCTI connectors** | Service | What it does | | --- | --- | | `connector-export-file-stix` | Exports data as STIX 2.1 | | `connector-export-file-csv` | Exports data as CSV | | `connector-export-file-txt` | Exports data as plain text | | `connector-import-file-stix` | Imports STIX 2.1 bundles | | `connector-import-document` | Imports PDF, HTML and text documents and extracts their knowledge | | `connector-import-file-yara` | Imports YARA rules | | `connector-analysis` | Analyzes PDF, HTML and text documents | | `connector-import-external-reference` | Imports the content of external references | | `connector-opencti` | Loads the OpenCTI datasets: marking definitions, identities, locations | | `connector-mitre` | Loads MITRE ATT&CK | The import, analysis and dataset connectors (`connector-import-*`, `connector-analysis`, `connector-opencti`, `connector-mitre`) set `CONNECTOR_AUTO_CREATE_SERVICE_ACCOUNT=true`, with a confidence level of 100. At start, each one creates a service account named `[C] ` in the `Connectors` group, then runs with its token instead of the admin token. The three export connectors keep a token of their own: an export connector acts as the user who asked for the export, and only an account with **Bypass all capabilities** can do so. Give each one the token of a service account in a group that has it, such as Administrators, in `CONNECTOR_EXPORT_FILE_STIX_TOKEN`, `CONNECTOR_EXPORT_FILE_CSV_TOKEN` and `CONNECTOR_EXPORT_FILE_TXT_TOKEN` of `.env`. Left empty, as in `.env.sample`, they use the admin token. **OpenAEV collectors and injectors** | Service | Kind | What it does | | --- | --- | --- | | `collector-mitre-attack` | Collector | Loads MITRE ATT&CK attack patterns | | `collector-openaev` | Collector | Loads the OpenAEV datasets | | `collector-atomic-red-team` | Collector | Loads the Atomic Red Team tests | | `collector-nvd-nist-cve` | Collector | Loads CVEs from the NVD. Set `COLLECTOR_NVD_NIST_CVE_API_KEY` in `.env`: optional, recommended | | `injector-nmap` | Injector | Runs Nmap network scans | | `injector-nuclei` | Injector | Runs Nuclei vulnerability scans | ## See them run {#see-them-run} Each platform lists the integrations that registered with it, managed by XTM Composer or not: - OpenCTI: **Integrations**, **Deployed** tab (**Data > Ingestion > Connectors** before 7.260811) shows each connector, its status and the messages waiting in its RabbitMQ queue. - OpenAEV: **Integrations** > **Collectors** and **Integrations** > **Injectors** show each collector and injector and its status. From the host, the containers of the default integrations are Compose services: ```bash docker compose ps --format '{{.Service}} {{.Status}}' | grep -E '^(connector|collector|injector)-' ``` **Check that it worked** Each default integration is `Up`. A container that keeps restarting cannot reach its platform: run `docker compose logs ` to see why. ## What's next {#what-s-next} - [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/), to run integrations from the platform interface. - [Run an integration without XTM Composer](https://filigran.io/docs/deploy/integrations/manual/), for Docker and Python deployments, networking and tokens. - [Integration model](https://filigran.io/docs/develop/integration-model/), to build your own integration. --- # Install XTM Composer > Install XTM Composer with xtm-docker, Docker, Podman or Kubernetes, with its RSA key, its platform tokens and access to the container engine. - URL: https://filigran.io/docs/deploy/integrations/install-composer/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0, XTM Composer 3.261121.0 - Edition: requires an Enterprise Edition license - For: platform engineers - Type: How-to guide This page installs XTM Composer next to OpenCTI, OpenAEV or both, on the container engine that will run your integrations. In the XTM stack, xtm-docker already runs XTM Composer for both platforms: see [Deploy a first integration with XTM Composer](https://filigran.io/docs/deploy/integrations/quick-start/). Read [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/) first if you are new to it. **Diagram: Every installation gives XTM Composer an RSA key and a stable identifier, a URL and token for each platform it serves, and access to one container engine** - What you give it: RSA private key (4096 bits, PKCS#8 PEM), Identifier (MANAGER__ID, same at every restart) - XTM Composer: XTM Composer (filigran/xtm-composer) - Container engine: Docker (/var/run/docker.sock), Podman (/run/podman/podman.sock), Kubernetes (A Deployment per integration) - Platforms: OpenCTI (OPENCTI__URL, OPENCTI__TOKEN), OpenAEV (OPENAEV__URL, OPENAEV__TOKEN) Connections: - RSA private key → XTM Composer: mounted file - Identifier → XTM Composer: environment - XTM Composer → Docker: socket - XTM Composer → Podman: API socket - XTM Composer → Kubernetes: service account - XTM Composer → OpenCTI: register with token - XTM Composer → OpenAEV: register with token ## Before you start {#before-you-start} - OpenCTI, OpenAEV or both, running and reachable from the machine or cluster where XTM Composer and its integrations will run. - An API token for each platform. xtm-docker uses the admin token of each platform (`OPENCTI_ADMIN_TOKEN`, `OPENAEV_ADMIN_TOKEN`). - The container engine that will run the integrations: Docker, Podman or Kubernetes. For Docker Swarm and Portainer, install with Docker below, then set the selector in [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/#the-container-engine). - OpenSSL, to generate the key, and Python 3, to generate an identifier. ## What every installation has {#what-every-installation-has} | Part | Value | | --- | --- | | Image | `filigran/xtm-composer`, for `linux/amd64` and `linux/arm64`. Tags: `latest`, each release such as `3.261121.0`, and a FIPS build tagged `latest-fips` or `-fips`. The FIPS build deploys the `-fips` images of the integrations: see `manager.image_tag_suffix` in [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/#xtm-composer-itself) | | RSA private key | 4096 bits, PKCS#8 PEM (`-----BEGIN PRIVATE KEY-----`), given with `MANAGER__CREDENTIALS_KEY_FILEPATH` or `MANAGER__CREDENTIALS_KEY` | | Identifier | `MANAGER__ID`, the same at every restart. xtm-docker uses a UUID | | Platforms | `OPENCTI__ENABLE`, `OPENCTI__URL`, `OPENCTI__TOKEN`, and the same with `OPENAEV__`. OpenCTI is enabled by default, OpenAEV is not | | Container engine | `OPENCTI__DAEMON__SELECTOR` and `OPENAEV__DAEMON__SELECTOR`: `docker`, `podman`, `kubernetes`, `swarm` or `portainer`. The default is `kubernetes` | Generate the key with `openssl genpkey`: it writes PKCS#8. Older OpenSSL versions of `openssl genrsa` write PKCS#1 (`BEGIN RSA PRIVATE KEY`), which XTM Composer refuses. ```bash openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:4096 ``` XTM Composer reads its settings from environment variables, which this page uses, or from a YAML file: see [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/). ## Install {#install} **XTM stack** XTM Composer is part of the stack: there is nothing to add. `docker compose pull` and `docker compose up -d` start it with the rest, from `modules/xtm-composer.yml`, and it serves both OpenCTI and OpenAEV. The `rsa-key-generator` service creates the key in the `rsakeys` volume and `XTM_COMPOSER_ID` in `.env` is the identifier. [Deploy a first integration with XTM Composer](https://filigran.io/docs/deploy/integrations/quick-start/) gives every command and its check. **Docker** XTM Composer drives the Docker daemon through its socket and starts the integrations as sibling containers, attached to the network you name. 1. Create a folder with the key. ```bash mkdir -p xtm-composer/keys && cd xtm-composer openssl genpkey -algorithm RSA -out keys/private_key.pem -pkeyopt rsa_keygen_bits:4096 ``` 2. Set the platforms to serve and the Docker network the integrations must join to reach them. Leave the URL of a platform empty to leave it out. ```bash export OPENCTI_URL=https://opencti.example.com OPENCTI_TOKEN=your-opencti-token export OPENAEV_URL= OPENAEV_TOKEN= export PLATFORM_NETWORK=xtm_default ``` **Check that it worked** ```bash docker network inspect "$PLATFORM_NETWORK" --format '{{.Name}}' ``` It prints the network name. `docker network ls` lists the networks if it does not exist. 3. Write the configuration once, with a new identifier. Keep `composer.env`: the identifier must not change. ```bash on() { [ -n "$1" ] && echo true || echo false; } cat > composer.env <&1 | grep -E 'Successfully loaded RSA private key|Manager registered' ``` It shows the key loaded and one `Manager registered` line per platform. Registration is retried every minute. **Podman** XTM Composer drives Podman through its API socket, rootful or rootless, with the `podman` selector. 1. Turn on the Podman socket. Rootful, as root: ```bash sudo systemctl enable --now podman.socket ``` Rootless, as the user that will own the integrations, and keep its containers running after logout: ```bash systemctl --user enable --now podman.socket sudo loginctl enable-linger "$USER" ``` 2. Create the key and the configuration as in the Docker tab, steps 1 to 3, with three changes. Write `podman` instead of `docker` in the `OPENCTI__DAEMON__SELECTOR` and `OPENAEV__DAEMON__SELECTOR` lines, and `PODMAN` instead of `DOCKER` in the two `NETWORK_MODE` lines. Check the network with `podman network inspect`. 3. Start XTM Composer with the socket mounted at `/run/podman/podman.sock`, where it finds it without configuration. For a rootless Podman, run this as the same user and mount `/run/user/$(id -u)/podman/podman.sock` instead. ```bash podman run -d --name xtm-composer --restart always \ --env-file composer.env \ --security-opt label=disable \ -v /run/podman/podman.sock:/run/podman/podman.sock \ -v "$PWD/keys:/keys:ro" \ docker.io/filigran/xtm-composer:latest ``` `label=disable` lets the container use the socket on SELinux hosts. **Check that it worked** ```bash podman logs xtm-composer 2>&1 | grep -E 'Connected to Podman|Manager registered' ``` It shows `Connected to Podman`, with the socket and the rootful or rootless mode, and one `Manager registered` line per platform. **Kubernetes** XTM Composer creates one Deployment per integration, in its own namespace, with a service account that may manage Deployments there. The integrations must reach the platforms at the URLs you give, from that namespace. 1. Create the namespace, the key and the token secrets. Set `OPENCTI_URL` to the address of the OpenCTI service as it resolves from the `xtm-composer` namespace, such as `http://..svc:8080`. ```bash kubectl create namespace xtm-composer openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:4096 kubectl -n xtm-composer create secret generic xtm-composer-key --from-file=private_key.pem=private_key.pem export OPENCTI_URL=http://opencti.opencti.svc:8080 OPENCTI_TOKEN=your-opencti-token kubectl -n xtm-composer create secret generic xtm-composer-tokens --from-literal=opencti-token="$OPENCTI_TOKEN" ``` 2. Write the manifest once, with a new identifier, and keep `xtm-composer.yaml`. The role covers what XTM Composer does: manage Deployments, read Pods and their logs, and create or delete the Secrets of a private registry or a proxy CA. ```bash cat > xtm-composer.yaml < Ingestion > Connector catalog** before 7.260811) in OpenCTI, **Integrations** > **Catalog** in OpenAEV. It no longer says that deploying requires the Integration Manager. Deploy an integration and start it, as in [Deploy a first integration with XTM Composer](https://filigran.io/docs/deploy/integrations/quick-start/#step-4-deploy-a-first-integration). ## What's next {#what-s-next} - [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/), for every setting and the other container engines. - [Run integrations behind a proxy](https://filigran.io/docs/deploy/integrations/proxy/) and [Pull integrations from a private registry](https://filigran.io/docs/deploy/integrations/private-registry/). - [Troubleshoot XTM Composer](https://filigran.io/docs/deploy/integrations/troubleshoot/). --- # Run an integration without XTM Composer > Run an OpenCTI connector or an OpenAEV collector or injector yourself, with Docker Compose or Python, with its own token and network access. - URL: https://filigran.io/docs/deploy/integrations/manual/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0 - For: platform engineers - Type: How-to guide This page runs an integration yourself, without XTM Composer: as a Docker Compose service next to the XTM stack, or as a Python program. Use it for an integration that is not in the catalog, or a platform without Enterprise Edition. Read [How integrations run](https://filigran.io/docs/deploy/integrations/how-they-run/) first for what an integration needs from its platform. **Diagram: An integration you run yourself registers with its platform with its own token and identifier, and reaches RabbitMQ at the address the platform gives it** - You run it: Docker Compose service (On the xtm_default network), Python program (Settings in config.yml) - Platforms: OpenCTI (http://opencti:8080), OpenAEV (http://openaev:8080) - Queues: RabbitMQ (Or MQ_HOST, MQ_PORT to override) Connections: - Docker Compose service → OpenCTI: URL, token, ID - Docker Compose service → OpenAEV: URL, token, ID - Python program → OpenCTI: same settings - Python program → OpenAEV: same settings - Docker Compose service → RabbitMQ: address from platform - Python program → RabbitMQ: address from platform ## Before you start {#before-you-start} - The platform running: OpenCTI, OpenAEV or both. - The name of the integration and the settings it needs: each one documents them in the `README.md` of its folder, in the repositories [OpenCTI-Platform/connectors](https://github.com/OpenCTI-Platform/connectors), [OpenAEV-Platform/collectors](https://github.com/OpenAEV-Platform/collectors) and [OpenAEV-Platform/injectors](https://github.com/OpenAEV-Platform/injectors). - Network access from where the integration runs to the platform URL and to RabbitMQ, at the host and port the platform gives out. In the XTM stack, both are on the `xtm_default` network. ## Create a token {#create-a-token} **OpenCTI** Run each connector with its own user, so you can tell what each one wrote and limit what it can do. OpenCTI has a `Connectors` group for them. | Connector type | Group of its user | Why | | --- | --- | --- | | `EXTERNAL_IMPORT`, `INTERNAL_ENRICHMENT`, `INTERNAL_IMPORT_FILE`, `STREAM` | `Connectors` | It imports, enriches or reads the stream as its own user | | `INTERNAL_EXPORT_FILE` | A group with an Administrator role that bypasses capabilities | It exports with the rights of the user who asked for the export, which it impersonates | 1. In **Settings > Security > Users**, create a user named after the connector, such as `[C] MISP`. 2. Add it to the `Connectors` group, or the administrator group for an export connector. 3. Create an API token for it and copy it: it is the `OPENCTI_TOKEN` of the connector. A connector can also create its own user. With `CONNECTOR_AUTO_CREATE_SERVICE_ACCOUNT=true`, it creates a service account named `[C] ` in the `Connectors` group, then runs with a token of that account. Its `OPENCTI_TOKEN` must then be allowed to create users. `CONNECTOR_AUTO_CREATE_SERVICE_ACCOUNT_CONFIDENCE_LEVEL` sets its confidence level, 50 by default. xtm-docker starts its datasets and MITRE ATT&CK connectors this way. **OpenAEV** Collectors and injectors can share a token: use the admin token of OpenAEV (`OPENAEV_ADMIN_TOKEN` in the `.env` of xtm-docker) or the token of another administrator account. One account per integration is not needed. With multi-tenancy, an Enterprise Edition feature, also set `OPENAEV_TENANT_ID` to the UUID of the tenant. Each integration also needs a unique identifier, a UUIDv4, as `CONNECTOR_ID`, `COLLECTOR_ID` or `INJECTOR_ID`. Generate one per integration and keep it: the platform recognizes the integration by it. ```bash python3 -c 'import uuid; print(uuid.uuid4())' ``` Beside its URL, token, identifier and name, an OpenCTI connector reads a few settings that every connector shares. The `README.md` of the connector says which ones it needs. | Variable | Default | What it sets | | --- | --- | --- | | `CONNECTOR_TYPE` | Set by most images | The kind of connector, such as `EXTERNAL_IMPORT`, `INTERNAL_ENRICHMENT` or `STREAM`. Set it when the `docker-compose.yml` of the connector does | | `CONNECTOR_SCOPE` | `not-applicable` | What the connector handles: entity types for an enrichment connector, such as `IPv4-Addr,Domain-Name`, or MIME types for a file import connector, such as `application/pdf` | | `CONNECTOR_AUTO` | `false` | `true` makes an enrichment or file import connector run on its own on what enters its scope, instead of on request | | `CONNECTOR_LOG_LEVEL` | `error` | `debug`, `info`, `warn` or `error` | ## Run it with Docker Compose {#run-it-with-docker-compose} This example runs the MITRE ATT&CK connector of OpenCTI in its own Compose project, attached to the network of the XTM stack. xtm-docker already runs this connector, as its `connector-mitre` service: for another integration, change the image and the variables its `README.md` lists. 1. Create a folder for the integration with its secrets. ```bash mkdir connector-mitre && cd connector-mitre cat > .env < Ingestion > Connectors** before 7.260811) in OpenCTI, or in **Integrations** > **Collectors** or **Injectors** in OpenAEV. To add the integration to the Compose project of the platform instead, add the same service to its `docker-compose.override.yml` with `OPENCTI_URL=http://opencti:8080`, without the `networks` block, and with the values of `INTEGRATION_ID` and `INTEGRATION_TOKEN` in place of the variables: see [Change the stack without editing docker-compose.yml](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml). A separate project keeps the integration and its secrets apart from the stack. Each integration folder of the repositories also has its own `docker-compose.yml` to start from. To use the files of one release, such as OpenCTI 7.261030.1: ```bash wget https://github.com/OpenCTI-Platform/connectors/archive/refs/tags/7.261030.1.zip unzip 7.261030.1.zip cd connectors-7.261030.1/external-import/mitre ``` The OpenAEV repositories are tagged with the OpenAEV version, such as `3.261029.0`, with one folder per integration at their root, such as `nmap` or `mitre-attack`. ## Run it with Python {#run-it-with-python} Without Docker, an integration runs as a Python program with the same settings, written in a `config.yml` file instead of environment variables. 1. Install Python 3 and pip. ```bash sudo apt install python3 python3-pip ``` 2. Get the files of the release, as above, and go to the folder of the integration. 3. Copy the sample configuration to `config.yml` and fill it: `opencti.url` and `opencti.token`, or `openaev.url` and `openaev.token`, and the `connector`, `collector` or `injector` block with its `id` and `name`. 4. Install the dependencies and start the program as the `README.md` of the integration says. OpenCTI connectors use a `requirements.txt` in their `src` folder, for example `pip3 install -r requirements.txt` then `python3 -m __main__` for MITRE ATT&CK. OpenAEV collectors and injectors use Poetry. ## Networking {#networking} An integration reaches RabbitMQ at the host name and port that the platform gives it when it registers: the RabbitMQ settings of the platform. From another network, that name may not resolve. **Override the RabbitMQ address** Give the connector the address and credentials it must use instead, with these variables or the `mq` block of `config.yml`: | Variable | `config.yml` key | | --- | --- | | `MQ_HOST` | `mq.host` | | `MQ_PORT` | `mq.port` | | `MQ_VHOST` | `mq.vhost` | | `MQ_USE_SSL` | `mq.use_ssl` | | `MQ_USER` | `mq.user` | | `MQ_PASS` | `mq.pass` | These variables are read by OpenCTI connectors. **Use HTTP instead of RabbitMQ (OpenCTI)** An OpenCTI connector can skip RabbitMQ entirely. - `CONNECTOR_QUEUE_PROTOCOL=api` sends the bundles it produces to the OpenCTI API over HTTP instead of RabbitMQ (`amqp`, the default). It applies to import, enrichment and file import connectors. OpenCTI refuses a request larger than `app:max_payload_body_size` (`APP__MAX_PAYLOAD_BODY_SIZE`), `50mb` by default: raise it on the platform for a connector that sends large bundles. - `CONNECTOR_LISTEN_PROTOCOL=api` makes the connector receive its jobs over HTTP: it starts an HTTP server, and the OpenCTI workers call it. It applies to enrichment and export connectors. *(OpenCTI 7.261119 and later)* When the platform runs with `app:http:secure_by_default` (`APP__HTTP__SECURE_BY_DEFAULT`) set to `true`, an unset `app:max_payload_body_size` is `10mb` instead: set it on the platform before you send large bundles over HTTP. See [Secure HTTP defaults](https://filigran.io/docs/deploy/operate/harden/#secure-http-defaults). | Variable | Default | What it sets | | --- | --- | --- | | `CONNECTOR_LISTEN_PROTOCOL_API_PORT` | `7070` | The port of the HTTP server | | `CONNECTOR_LISTEN_PROTOCOL_API_PATH` | `/api/callback` | The path the workers call | | `CONNECTOR_LISTEN_PROTOCOL_API_URI` | `http://127.0.0.1:7070` | The URL, without the path, at which the workers reach the connector | | `CONNECTOR_LISTEN_PROTOCOL_API_SSL` | `false` | `true` to serve HTTPS, with `LISTEN_PROTOCOL_API_SSL_KEY`, `LISTEN_PROTOCOL_API_SSL_CERT` and `LISTEN_PROTOCOL_API_SSL_PASSPHRASE` | An enrichment connector with both set never connects to RabbitMQ. Set `CONNECTOR_LISTEN_PROTOCOL_API_URI` to an address the workers can reach, such as `http://connector-enrichment:7070` on the network of the stack. The workers make these calls. Three settings of the `worker` service shape them: | Worker variable | Default | What it sets | | --- | --- | --- | | `WORKER_LISTEN_API_SSL_VERIFY` | `false` | `true` makes the workers check the certificate of a connector that serves HTTPS | | `WORKER_LISTEN_API_HTTP_PROXY` | | A proxy for the calls to `http://` connectors | | `WORKER_LISTEN_API_HTTPS_PROXY` | | A proxy for the calls to `https://` connectors | ## Check that it works {#check-that-it-works} The platform lists the integration with its status: **Integrations**, **Deployed** tab (**Data > Ingestion > Connectors** before 7.260811) in OpenCTI, with the messages waiting in its queue; **Integrations** > **Collectors** or **Integrations** > **Injectors** in OpenAEV. An integration that does not appear has not registered: read its logs for the platform URL or the token it could not use. ## What's next {#what-s-next} - [Migrate to XTM Composer](https://filigran.io/docs/deploy/integrations/migrate/), to manage the integration from the interface later. - [Integration model](https://filigran.io/docs/develop/integration-model/), to build your own. --- # Migrate to XTM Composer > Move connectors, collectors and injectors you deployed by hand under the management of XTM Composer. - URL: https://filigran.io/docs/deploy/integrations/migrate/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0, XTM Composer 3.261121.0 - Edition: requires an Enterprise Edition license - For: platform engineers, administrators - Type: How-to guide This page moves an integration you run yourself, as a Compose service or a Python program, under XTM Composer, so you start, stop, update and read its logs from the platform interface. OpenCTI replaces the connector with a new managed instance; OpenAEV takes over the existing collector or injector. Read [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/) first if you are new to it. The [default integrations of xtm-docker](https://filigran.io/docs/deploy/integrations/how-they-run/#the-default-integrations-of-xtm-docker) are part of the stack and always start with it, so this page does not apply to them: XTM Composer would run a second copy next to them. **Diagram: Moving an integration under XTM Composer gives it a new managed instance in OpenCTI, or a takeover that keeps its identifier in OpenAEV, then you remove the old container** - Before: Integration you run (Compose service or Python program, removed after) - Platforms: OpenCTI (Deploy: a new instance, from the beginning), OpenAEV (Migrate: keeps its identifier) - XTM Composer: XTM Composer (Registered with the platform) - After: Managed instance (Start, stop, update, logs) Connections: - Integration you run → OpenCTI: its settings - Integration you run → OpenAEV: its settings - OpenCTI → XTM Composer: new instance - OpenAEV → XTM Composer: takeover - XTM Composer → Managed instance: runs ## Before you start {#before-you-start} - XTM Composer running and registered with the platform: see [Deploy a first integration with XTM Composer](https://filigran.io/docs/deploy/integrations/quick-start/). - An Enterprise Edition license on the platform. - In OpenCTI, the **Manage ingestion** capability. In OpenAEV, the permission to manage the platform settings. - The current configuration of the integration: its environment variables in your Compose file, or its `config.yml`. You need its settings and credentials again. ## Move the integration {#move-the-integration} **OpenCTI** > **Warning** > > OpenCTI creates a new connector instance. The state of the old one, such as its last run and its work in progress, is not carried over: the new instance starts from the beginning. 1. Open **Integrations**, **Available** tab (**Data > Ingestion > Connector catalog** before 7.260811) and find the connector. A connector that is not in the catalog, or that the catalog shows without **Deploy**, cannot be managed by XTM Composer: keep running it by hand. 2. Find the settings the connector needs. The connector page links to its code: its `__metadata__` folder has a `CONNECTOR_CONFIG_DOC.md` file that lists them. Match them with the values of your current configuration. 3. Click **Deploy**, fill the form with those values and a new **Display name**, which gives the **Instance name**, then click **Create**. 4. Click **Start** and wait for the status to change. **Check that it worked** The new instance appears in **Integrations**, **Deployed** tab (**Data > Ingestion > Connectors** before 7.260811) and its **Logs** tab fills. 5. Stop and remove the old connector, as described in [Remove the old container](#remove-the-old-container), so it does not run twice. **OpenAEV** OpenAEV registers the collector or injector again under XTM Composer, and keeps its identifier. 1. Open **Integrations** > **Collectors** or **Injectors**, or the detail page of the collector or injector. A **Migrate** button shows when the integration is external, has no managed instance yet, has an entry in the catalog, and XTM Composer runs. On the detail page, it also needs the permission to manage the platform settings. Without Enterprise Edition, the button asks for a license. 2. Click **Migrate**. A drawer opens with the same form as a new deployment. 3. Fill the settings with the values of your current configuration, then click **Migrate**. **Check that it worked** OpenAEV opens the new managed instance. You can start and stop it and read its logs like any deployed instance. 4. Stop and remove the old container, as described in [Remove the old container](#remove-the-old-container). If a service provider runs your OpenAEV, ask them to do it. ## Remove the old container {#remove-the-old-container} Remove the integration where you declared it, or it starts again at the next `docker compose up -d`. **Your own Compose file** Delete the service of the integration from your Compose file, your own `docker-compose.yml` or the `docker-compose.override.yml` of xtm-docker, then remove its container: ```bash docker compose up -d --remove-orphans ``` **A Python program** Stop the process and remove it from whatever starts it, such as a systemd unit. **Check that it worked** ```bash docker compose ps --format '{{.Service}}' | grep -E '^(connector|collector|injector)-' ``` The integrations you moved are no longer listed. The default integrations of xtm-docker still are. ## What's next {#what-s-next} - [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/), what you manage from the interface. - [Troubleshoot XTM Composer](https://filigran.io/docs/deploy/integrations/troubleshoot/). --- # Pull integrations from a private registry > Make XTM Composer pull integration images from a private or mirrored container registry, with credentials, on Docker, Podman or Kubernetes. - URL: https://filigran.io/docs/deploy/integrations/private-registry/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0, XTM Composer 3.261121.0 - For: platform engineers - Type: How-to guide This page makes XTM Composer pull the images of the integrations from your own registry, such as a mirror of Docker Hub in an isolated network, with or without credentials. Install XTM Composer first: see [Install XTM Composer](https://filigran.io/docs/deploy/integrations/install-composer/). **Diagram: XTM Composer puts your registry in front of the image name the platform asks for, and the container engine pulls it from there with your credentials** - Platforms: OpenCTI (opencti/connector-mitre:), OpenAEV (openaev/collector-mitre-attack) - XTM Composer: XTM Composer (Registry of each platform in front) - Container engine: Docker or Podman (Credentials with each pull), Kubernetes (Pull Secret registry-example-com-opencti) - Registry: Your registry (registry.example.com, Docker Hub names) Connections: - OpenCTI → XTM Composer: image name - OpenAEV → XTM Composer: image name - XTM Composer → Docker or Podman: prefixed image - XTM Composer → Kubernetes: prefixed image - Docker or Podman → Your registry: pull - Kubernetes → Your registry: pull ## Before you start {#before-you-start} - A registry that holds the integration images under the same names as Docker Hub, such as `opencti/connector-mitre` or `openaev/collector-mitre-attack`, with the same tags: the `-fips` or `-ubi9` tags when XTM Composer adds a tag suffix. - The host name of the registry, and a user and password or token if it requires them. ## How XTM Composer names the image {#how-xtm-composer-names-the-image} Without a registry, XTM Composer pulls the image the platform asks for, such as `opencti/connector-mitre:`, from Docker Hub. With a registry `server`, it puts the server in front of every image name: `registry.example.com/opencti/connector-mitre:`. It does not check whether the name already has a registry, so mirror the images under their Docker Hub names. When `manager.image_tag_suffix` is set, XTM Composer also adds it to the tag: `registry.example.com/opencti/connector-mitre:6.9.0-fips`, or `latest-fips` for an image without a tag. The FIPS image of XTM Composer sets `-fips` by default. Mirror the suffixed tags too, or the pulls fail. See [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/) for the values it accepts. ## Set the registry {#set-the-registry} 1. Add the registry to the environment of XTM Composer, in the `daemon` block of each platform. For OpenAEV, replace `OPENCTI__` with `OPENAEV__`. ```text OPENCTI__DAEMON__REGISTRY__SERVER=registry.example.com OPENCTI__DAEMON__REGISTRY__USERNAME=your-registry-user OPENCTI__DAEMON__REGISTRY__PASSWORD=your-registry-password ``` `OPENCTI__DAEMON__REGISTRY__EMAIL` is optional. Leave out the user and password for a registry that needs no credentials: XTM Composer then only adds the server to the image names. 2. Restart XTM Composer. It uses the registry for every image it pulls from then on: when it deploys an integration, and when it recreates one after a configuration change. | Key | Environment variable | Effect | | --- | --- | --- | | `opencti.daemon.registry.server` | `OPENCTI__DAEMON__REGISTRY__SERVER` | The registry host, put in front of every image name. Required with credentials | | `opencti.daemon.registry.username` | `OPENCTI__DAEMON__REGISTRY__USERNAME` | The user. Credentials are used only when both the user and the password are set | | `opencti.daemon.registry.password` | `OPENCTI__DAEMON__REGISTRY__PASSWORD` | The password or token | | `opencti.daemon.registry.email` | `OPENCTI__DAEMON__REGISTRY__EMAIL` | Optional | Each platform pulls with the registry of its own block, on every engine. Up to XTM Composer 3.261021.1, Kubernetes, Docker Swarm and Portainer read the `opencti` block for both platforms. > **Warning** > > If XTM Composer serves OpenAEV on Kubernetes, Docker Swarm or Portainer, and you set its registry in `OPENCTI__DAEMON__REGISTRY__*` only, set it in `OPENAEV__DAEMON__REGISTRY__*` before you upgrade. Otherwise XTM Composer pulls the OpenAEV images from Docker Hub. ## What each engine does with it {#what-each-engine-does-with-it} **Docker and Podman** XTM Composer sends the credentials with each pull. With Podman, you can also leave the credentials out of XTM Composer, keep only the server, and log in on the Podman host with the auth file the Podman service reads: ```bash sudo podman login --authfile /root/.config/containers/auth.json registry.example.com ``` For a rootless Podman, run `podman login --authfile ~/.config/containers/auth.json registry.example.com` as the user that runs the integrations. **Kubernetes** When a user and a password are set, XTM Composer creates at start an image pull Secret of type `kubernetes.io/dockerconfigjson` in its namespace for each platform, and attaches it to the Deployment of each integration of that platform. It deletes and recreates the Secrets at every start, so a changed password takes effect on restart. Each Secret is named after the server and the platform, in the Kubernetes naming format: `registry.example.com` gives `registry-example-com-opencti` and `registry-example-com-openaev`. Two platforms in the same namespace can then use the same server with different credentials. XTM Composer also keeps the Secret of its earlier versions, named after the server only (`registry-example-com`), up to date from the `opencti` block: the Deployments created before the upgrade use it until XTM Composer updates them after a configuration change. A later version of XTM Composer will stop maintaining it. The role of XTM Composer must allow `create` and `delete` on `secrets`, as in [Install XTM Composer](https://filigran.io/docs/deploy/integrations/install-composer/). ## Check that it works {#check-that-it-works} Deploy an integration from the catalog, then check where its image came from. **Docker and Podman** ```bash docker ps --filter label=opencti-manager --format '{{.Names}} {{.Image}}' ``` **Check that it worked** Each image starts with your registry, such as `registry.example.com/opencti/connector-mitre:`. **Kubernetes** ```bash kubectl -n xtm-composer logs deploy/xtm-composer | grep 'Kubernetes registry secret' kubectl -n xtm-composer get secret registry-example-com-opencti ``` **Check that it worked** The logs say `Kubernetes registry secret created` with the name of each Secret, and the Secret exists. Replace `registry-example-com` with the name of your server, dots and colons replaced by dashes, and `opencti` with `openaev` for OpenAEV. When the image cannot be pulled, XTM Composer deploys nothing, or keeps the previous deployment running after a configuration change. The **Logs** of the integration on the platform say why, such as `[XTM Composer] Connector not deployed: the image "registry.example.com/opencti/connector-mitre:6.9.0" cannot be pulled:` followed by the error of the engine. On Kubernetes, the cluster pulls the image: the logs say `Connector waiting for its image` while the pod waits. Check the name and the tag in the registry, and the credentials. See [Troubleshoot XTM Composer](https://filigran.io/docs/deploy/integrations/troubleshoot/). ## What's next {#what-s-next} - [Run integrations behind a proxy](https://filigran.io/docs/deploy/integrations/proxy/). - [Install offline or with FIPS 140-3](https://filigran.io/docs/deploy/install/air-gapped/), to mirror the images of the whole stack. - [Troubleshoot XTM Composer](https://filigran.io/docs/deploy/integrations/troubleshoot/). --- # Run integrations behind a proxy > Send XTM Composer and the integrations it runs through an HTTP or HTTPS proxy, including a TLS-intercepting proxy with its own certificate authority. - URL: https://filigran.io/docs/deploy/integrations/proxy/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0, XTM Composer 3.261121.0 - For: platform engineers - Type: How-to guide This page sends XTM Composer and the integrations it deploys through your proxy. The settings belong to each platform block, `opencti` or `openaev`, so OpenCTI and OpenAEV integrations can use different proxies. Install XTM Composer first: see [Install XTM Composer](https://filigran.io/docs/deploy/integrations/install-composer/). **Diagram: XTM Composer gives each integration it creates the proxy and its certificate authority, and both XTM Composer and the integrations reach the hosts of NO_PROXY directly** - XTM Composer: XTM Composer (OPENCTI__WITH_PROXY=true) - Integrations: Integration containers (HTTP_PROXY, HTTPS_PROXY, NO_PROXY) - Proxy: Your proxy (http://proxy.example.com:8080) - In NO_PROXY: OpenCTI or OpenAEV (opencti, openaev), RabbitMQ (rabbitmq) Connections: - XTM Composer → Integration containers: proxy and CA - XTM Composer → OpenCTI or OpenAEV: direct - Integration containers → Your proxy: other traffic - Integration containers → OpenCTI or OpenAEV: direct - Integration containers → RabbitMQ: direct ## Before you start {#before-you-start} - The URL of your proxy, such as `http://proxy.example.com:8080`, and the hosts that must not go through it. - For a proxy that intercepts TLS, its certificate authority as a PEM file. ## Turn on the proxy {#turn-on-the-proxy} 1. Add the proxy to the environment of XTM Composer: its env file, such as `composer.env`, or the `environment` of its service, in `docker-compose.override.yml` for xtm-docker. For OpenAEV, replace `OPENCTI__` with `OPENAEV__`. ```text OPENCTI__WITH_PROXY=true OPENCTI__HTTP_PROXY=http://proxy.example.com:8080 OPENCTI__HTTPS_PROXY=http://proxy.example.com:8080 OPENCTI__NO_PROXY=localhost,127.0.0.1,opencti,openaev,rabbitmq ``` Put in `NO_PROXY` every host XTM Composer and the integrations reach directly: the platform and RabbitMQ at least, as the XTM stack names them here. 2. Restart XTM Composer. Integrations get the proxy when XTM Composer creates their container. For an integration already deployed, change its configuration with **Update**, or stop it and remove its container: XTM Composer then creates it again. | Key | Environment variable | Default | Effect | | --- | --- | --- | --- | | `opencti.with_proxy` | `OPENCTI__WITH_PROXY` | `false` | `true` turns the proxy on for this platform. With `false`, XTM Composer ignores every proxy, including the `HTTP_PROXY` variables of its own environment | | `opencti.http_proxy` | `OPENCTI__HTTP_PROXY` | | The proxy for HTTP. Without it, XTM Composer uses `HTTP_PROXY` from its own environment | | `opencti.https_proxy` | `OPENCTI__HTTPS_PROXY` | | The proxy for HTTPS. Without it, XTM Composer uses `HTTPS_PROXY` from its own environment | | `opencti.no_proxy` | `OPENCTI__NO_PROXY` | | Comma-separated hosts, domains or CIDR ranges reached without the proxy, such as `opencti,.example.com,10.0.0.0/8`. Without it, `NO_PROXY` from the environment of XTM Composer. It applies to the integrations and to the requests of XTM Composer to the platform | With the proxy on, XTM Composer sends its own requests to the platform through it, except to the hosts of `no_proxy`, and gives each integration container `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY`. When you set `no_proxy` but neither `http_proxy` nor `https_proxy`, XTM Composer takes the proxy for its own requests from `HTTP_PROXY` and `HTTPS_PROXY` of its environment, else from `ALL_PROXY`. Up to XTM Composer 3.261021.1, `no_proxy` applied to the integrations only: with `http_proxy` or `https_proxy` set, XTM Composer reached the platform through the proxy even when the platform was in the list. ## Trust a TLS-intercepting proxy {#trust-a-tls-intercepting-proxy} A proxy that decrypts HTTPS presents certificates signed by its own authority. Give that authority to the integrations: | Key | Environment variable | Default | Effect | | --- | --- | --- | --- | | `opencti.https_proxy_ca` | `OPENCTI__HTTPS_PROXY_CA` | | Certificates to trust: a list of file paths or PEM blocks. As an environment variable, a JSON array such as `["/certs/proxy-ca.pem"]` | | `opencti.https_proxy_reject_unauthorized` | `OPENCTI__HTTPS_PROXY_REJECT_UNAUTHORIZED` | `true` | `false` gives the integrations `NODE_TLS_REJECT_UNAUTHORIZED=0`, which turns off certificate checks in Node.js integrations. Prefer `https_proxy_ca` | 1. Make the PEM file readable by XTM Composer, which reads the paths: mount it in its container, for example at `/certs/proxy-ca.pem`, and add the variable to its environment. In a shell, put the value in single quotes. ```text OPENCTI__HTTPS_PROXY_CA=["/certs/proxy-ca.pem"] ``` 2. On Docker, Podman, Docker Swarm or Portainer, let the container engine see the bundle XTM Composer writes. XTM Composer writes the certificates to `/tmp/xtm-composer-proxy-ca/` and asks the engine to mount that file in each integration. The engine looks for it on the host, so when XTM Composer runs in a container, mount the same host folder at the same path: ```text -v /tmp/xtm-composer-proxy-ca:/tmp/xtm-composer-proxy-ca ``` On Kubernetes, nothing to add: XTM Composer puts the bundle in a Secret named after the integration's Deployment, `-proxy-ca` cut to 63 characters, and mounts it from there. From XTM Composer 3.261121.0, when the integration's name is not a valid Kubernetes name, such as one longer than 63 characters, the Deployment name ends with 8 characters of a hash, and so does the Secret: see the naming rule in [XTM Composer architecture](https://filigran.io/docs/deploy/integrations/architecture/). 3. Restart XTM Composer, then recreate the integrations as in the previous procedure. Each integration then finds the bundle at `/etc/ssl/certs/xtm-proxy-ca.crt`, and the variables that point most runtimes to it: `SSL_CERT_FILE`, `REQUESTS_CA_BUNDLE`, `NODE_EXTRA_CA_CERTS` and `CURL_CA_BUNDLE`. > **Note** > > These settings are only for the proxy. The certificate of the platform itself is configured on the platform: see [Trust your certificate authority and proxy](https://filigran.io/docs/deploy/configure/certificates/). To make XTM Composer accept an invalid platform certificate while you test, set `OPENCTI__UNSECURED_CERTIFICATE=true`. ## Check that it works {#check-that-it-works} Check the proxy XTM Composer uses for its own requests, in its logs at start: ```bash docker logs xtm-composer 2>&1 | grep -E 'Using HTTPS? proxy' ``` **Check that it worked** A line `Using HTTP proxy` or `Using HTTPS proxy` per platform, with its `no_proxy` list and its `source`: `explicit` for the URL of the platform block, `environment` for a URL read from the environment. When the block sets no proxy URL and no `no_proxy`, XTM Composer uses the proxy variables of its environment and logs no such line. Then read the environment of an integration container XTM Composer created after the change: ```bash docker ps --filter label=opencti-manager --format '{{.Names}}' docker inspect --format '{{range .Config.Env}}{{println .}}{{end}}' | grep -E '^(HTTP_PROXY|HTTPS_PROXY|NO_PROXY|SSL_CERT_FILE)=' ``` **Check that it worked** It prints `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` with your values, and `SSL_CERT_FILE=/etc/ssl/certs/xtm-proxy-ca.crt` when you set a certificate authority. With `MANAGER__DEBUG__SHOW_ENV_VARS=true`, XTM Composer also logs these variables when it starts a container, with the proxy URLs redacted. ## What's next {#what-s-next} - [Pull integrations from a private registry](https://filigran.io/docs/deploy/integrations/private-registry/), when the images come from your registry. - [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/). --- # Deploy a first integration with XTM Composer > Check that XTM Composer runs in the XTM stack and that OpenCTI and OpenAEV see it, then deploy a first integration from the interface. - URL: https://filigran.io/docs/deploy/integrations/quick-start/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0, XTM Composer 3.261121.0 - Edition: requires an Enterprise Edition license - For: platform engineers, evaluators - Type: Tutorial This tutorial checks XTM Composer in a running XTM stack and deploys a first integration with it, in about ten minutes. At the end, OpenCTI and OpenAEV see XTM Composer, and you have deployed a first integration from the interface of a platform, which XTM Composer runs as a container. **Diagram: The XTM stack starts rsa-key-generator and XTM Composer, which registers with both platforms and runs as a container every integration you start** - xtm-docker: docker compose up (modules/xtm-composer.yml) - Key: rsa-key-generator (4096-bit key in rsakeys) - XTM Composer: xtm-composer (Starts once the platforms are healthy) - Platforms: OpenCTI (Catalog: Deploy, Create, Start), OpenAEV (Catalog: Deploy, Create, Start) - Docker: Integration container (Label xtm-manager) Connections: - docker compose up → rsa-key-generator: starts - docker compose up → xtm-composer: starts - rsa-key-generator → xtm-composer: RSA key - xtm-composer → OpenCTI: Manager registered - xtm-composer → OpenAEV: Manager registered - xtm-composer → Integration container: creates on Start It uses [FiligranHQ/xtm-docker](https://github.com/FiligranHQ/xtm-docker), where XTM Composer is part of the stack: it starts with the rest, generates its own RSA key and serves both OpenCTI and OpenAEV. To run XTM Composer outside xtm-docker, see [Install XTM Composer](https://filigran.io/docs/deploy/integrations/install-composer/). ## What you need {#what-you-need} - The XTM stack running from xtm-docker. If you do not have it yet, follow [Run the XTM platform locally](https://filigran.io/docs/deploy/quick-start/): it starts XTM Composer with the rest of the stack. - An Enterprise Edition license for each platform you deploy integrations on. - A terminal in the `xtm-docker` folder. ## Step 1: Check that XTM Composer is in the stack {#step-1-check-that-xtm-composer-is-in-the-stack} 1. List the services of XTM Composer in the stack. ```bash docker compose config --services | grep -E '^(xtm-composer|rsa-key-generator)$' ``` **Check that it worked** It lists `rsa-key-generator` and `xtm-composer`. If it does not, your copy of xtm-docker is older: get the current one with `git pull`, then run the command again. ## Step 2: Start XTM Composer {#step-2-start-xtm-composer} 1. Download the current images, then start what is not running yet. ```bash docker compose pull docker compose up -d ``` `rsa-key-generator` creates a 4096-bit key in the `rsakeys` volume the first time, then XTM Composer starts once OpenCTI, OpenAEV and RabbitMQ are healthy. 2. Check that XTM Composer loaded its key and registered with both platforms. ```bash docker compose logs xtm-composer | grep -E 'Successfully loaded RSA private key|Manager registered' ``` **Check that it worked** One line says `Successfully loaded RSA private key (PKCS#8 format)`, and one `Manager registered` line appears for each platform, OpenCTI and OpenAEV. Registration is retried every minute: if a line is missing, wait a minute and run the command again, then see [Troubleshoot XTM Composer](https://filigran.io/docs/deploy/integrations/troubleshoot/). ## Step 3: Check the platforms see it {#step-3-check-the-platforms-see-it} Sign in to each platform and open its catalog: **Integrations**, **Available** tab (**Data > Ingestion > Connector catalog** before 7.260811) in OpenCTI, **Integrations** > **Catalog** in OpenAEV. **Check that it worked** The catalog no longer says that deploying requires the installation of the Integration Manager. If it says that deployment requires an Enterprise Edition license, enter your license first. ## Step 4: Deploy a first integration {#step-4-deploy-a-first-integration} 1. In the catalog, click **Deploy** on an integration whose settings you have, for example one that needs no API key. 2. Fill the form and click **Create**. The instance opens, stopped. - In OpenCTI: a **Display name**, from which OpenCTI derives the **Instance name**, and the account the connector writes as, with **Automatically create a service account** or an existing **Service account responsible for data creation**. - In OpenAEV: a unique **Instance name**. 3. Click **Start**. **Check that it worked** On the host, XTM Composer has created a container for the instance, named after the instance name in lower case, with the label `xtm-manager` it puts on every container it manages: ```bash docker ps --filter label=xtm-manager --format '{{.Names}} {{.Status}}' ``` The instance is `Up`, and its **Logs** tab in the platform fills within a few seconds. XTM Composer 3.261021.1 and earlier label the container `opencti-manager` only. If no container appears and the **Logs** tab says that the image cannot be pulled, see [The image cannot be pulled](https://filigran.io/docs/deploy/integrations/troubleshoot/#the-image-cannot-be-pulled). ## What you learned {#what-you-learned} - [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/) runs the integrations you deploy from the interface of OpenCTI and OpenAEV. - [XTM Composer architecture](https://filigran.io/docs/deploy/integrations/architecture/): it registers with a public key, then reconciles every few seconds what the platform asks with what runs. - [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/) lists the settings you can change, such as the network its integrations join. --- # Troubleshoot XTM Composer > Find why XTM Composer does not start, does not register with OpenCTI or OpenAEV, or does not deploy an integration, from the messages it logs. - URL: https://filigran.io/docs/deploy/integrations/troubleshoot/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0, XTM Composer 3.261121.0 - For: platform engineers - Type: How-to guide This page helps you find why XTM Composer or an integration it manages does not work. Start from the logs of XTM Composer: almost every problem shows there as one of the messages below, with what to do about it. For how XTM Composer works, see [XTM Composer architecture](https://filigran.io/docs/deploy/integrations/architecture/). **Diagram: Each symptom shows first in the logs of XTM Composer, OpenAEV adds its own messages in its catalog, and an integration that starts then fails gives its cause in its own logs** - Symptom: Stops at start (Key, selector, logger values), Does not register (Platform URL, token, enable), Not deployed or updated (Key, image, network, socket), Starts then fails (Platform or RabbitMQ unreachable, a setting) - Where to look: Logs of XTM Composer (docker compose logs -f xtm-composer), OpenAEV catalog (Integrations > Catalog), Logs of the integration (Logs tab, or docker logs) Connections: - Stops at start → Logs of XTM Composer: at start - Does not register → Logs of XTM Composer: Fail to fetch version - Does not register → OpenAEV catalog: with OpenAEV - Not deployed or updated → Logs of XTM Composer: Cannot pull - Not deployed or updated → Logs of the integration: image cannot be pulled - Starts then fails → Logs of XTM Composer: Reboot loop detected - Starts then fails → Logs of the integration: the cause ## Read the logs {#read-the-logs} | Where XTM Composer runs | Command | | --- | --- | | XTM stack | `docker compose logs -f xtm-composer` | | Docker | `docker logs -f xtm-composer` | | Podman | `podman logs -f xtm-composer` | | Kubernetes | `kubectl -n xtm-composer logs -f deploy/xtm-composer` | For more detail, set `MANAGER__LOGGER__LEVEL=debug` and restart it. `MANAGER__LOGGER__FORMAT=pretty` makes the console easier to read than JSON. A healthy start logs, in this order: 1. `Starting XTM composer`, with the version and the `image_tag_suffix` it adds to the integration images, empty when there is none. 2. `Successfully loaded RSA private key (PKCS#8 format)`. 3. `Manager registered`, once for each platform it serves. Then, every few seconds for each integration, `Nothing to execute` when all is in place, or the action it takes: `Deploying the container`, `Starting`, `Stopping`, `Refreshing`. ## XTM Composer stops at start {#xtm-composer-stops-at-start} When XTM Composer serves OpenAEV alone, the key messages of this table appear at its first registration instead of at start, and XTM Composer keeps running without registering. | Message | Cause | Fix | | --- | --- | --- | | `No credentials key provided!` | No key configured | Set `MANAGER__CREDENTIALS_KEY_FILEPATH` to the path of the key in the container, or `MANAGER__CREDENTIALS_KEY` | | `Failed to read credentials key file` | The file is not at that path | Check the volume that mounts the key and the path. In xtm-docker, the key is in the `rsakeys` volume, made by `rsa-key-generator` | | `Invalid private key format. Expected PKCS#8 PEM format` | The key is PKCS#1 (`BEGIN RSA PRIVATE KEY`), as older `openssl genrsa` versions write | Convert it, as below | | `Invalid daemon configuration` | `OPENCTI__DAEMON__SELECTOR` or `OPENAEV__DAEMON__SELECTOR` has another value | Use `docker`, `podman`, `kubernetes`, `swarm` or `portainer` | | `Missing swarm configuration`, `Missing portainer configuration` | The block of the selector is absent | Add the `daemon.swarm` or `daemon.portainer` block: see [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/#the-container-engine) | | `Invalid portainer type configuration` | `daemon.portainer.env_type` is not `docker` | Set it to `docker`: XTM Composer deploys through Portainer on Docker environments only | | `Invalid log level`, `Invalid log format` | A logger value is misspelled | `trace`, `debug`, `info`, `warn` or `error`; `json` or `pretty` | | `invalid image_tag_suffix "-alpine", expected one of: -fips, -ubi9` | `MANAGER__IMAGE_TAG_SUFFIX` has another value | Set `-fips` or `-ubi9`, or leave it empty for no suffix: see [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/) | To convert a PKCS#1 key without changing it, which keeps the integrations the platform already encrypted for it: ```bash head -n 1 private_key.pem openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in private_key.pem -out private_key_pkcs8.pem ``` The first command shows `-----BEGIN RSA PRIVATE KEY-----` for PKCS#1. Point `MANAGER__CREDENTIALS_KEY_FILEPATH` to the new file, or replace the old one with it, and restart XTM Composer. ## XTM Composer does not register {#xtm-composer-does-not-register} XTM Composer retries every `ping_alive_schedule` seconds, 60 by default, until the platform answers. OpenCTI shows no list of the XTM Composer instances. It counts one as active while it has reported in the last 5 minutes: until then, and again 5 minutes after XTM Composer stops, the catalog of an Enterprise Edition platform says that deploying requires the **Integration Manager**. | Message | Cause | Fix | | --- | --- | --- | | `Fail to fetch version, check your configuration` (OpenCTI), `Failed to fetch version, check your configuration` (OpenAEV) | XTM Composer cannot reach the platform URL | Check `OPENCTI__URL` or `OPENAEV__URL` from where XTM Composer runs: the host name, the port, the network. Behind a [proxy](https://filigran.io/docs/deploy/integrations/proxy/), put the platform host in `OPENCTI__NO_PROXY` or `OPENAEV__NO_PROXY` when XTM Composer must reach it directly | | `GraphQL operation failed` (OpenCTI), `Failed to fetch version: non-success status code` (OpenAEV) | The platform answers but refuses the request | Check the token: `OPENCTI__TOKEN` or `OPENAEV__TOKEN` | | `OpenCTI backend does not support XTM composer manager registration` | OpenCTI is older than 6.8.17 | Upgrade OpenCTI | | `OpenCTI connectors orchestration disabled`, `OpenAEV connectors orchestration disabled` | The platform block has `enable: false` | Set `OPENCTI__ENABLE` or `OPENAEV__ENABLE` to `true`. xtm-docker sets both to `true` | A certificate the platform presents that XTM Composer does not trust also fails the connection. Fix the certificate: see [Trust your certificate authority and proxy](https://filigran.io/docs/deploy/configure/certificates/). To test with a self-signed certificate only, set `OPENCTI__UNSECURED_CERTIFICATE=true`. Test the URL and the token from the network of XTM Composer, here the network of the XTM stack: ```bash set -a; . ./.env; set +a docker run --rm --network xtm_default curlimages/curl:8.11.1 -s -H "Authorization: Bearer $OPENCTI_ADMIN_TOKEN" -H 'Content-Type: application/json' -d '{"query":"{ about { version } }"}' http://opencti:8080/graphql docker run --rm --network xtm_default curlimages/curl:8.11.1 -s -H "Authorization: Bearer $OPENAEV_ADMIN_TOKEN" http://openaev:8080/api/settings/version ``` **Check that it worked** Each command prints the version of the platform: in a small JSON document for OpenCTI, as text for OpenAEV. An error or nothing means XTM Composer gets the same answer. ### What OpenAEV says {#what-openaev-says} OpenAEV shows its own messages when you deploy from **Integrations** > **Catalog**: | Message | Cause | Fix | | --- | --- | --- | | `XTM Composer is not configured in the platform settings` | No XTM Composer ever registered | Start XTM Composer with `OPENAEV__ENABLE=true` and check it logs `Manager registered` | | `XTM Composer is not reachable` | XTM Composer has not pinged OpenAEV for two hours | Check that XTM Composer runs and reaches OpenAEV | | `Invalid xtm-composer identifier` | Another XTM Composer, or the same one with a new `manager.id`, registered since | Run a single XTM Composer per OpenAEV, with a stable `MANAGER__ID` | ## An integration is not deployed or not updated {#an-integration-is-not-deployed-or-not-updated} | Message in the logs of XTM Composer | Cause | Fix | | --- | --- | --- | | `Refusing to deploy connector: some encrypted configuration values cannot be decrypted` (or `refresh`) | The key of XTM Composer is not the one the platform encrypted the secrets with, for example after a new key | Put the previous key back. Otherwise, enter the secrets of the integration again with **Update** | | `Connector name collision detected` | A container, Kubernetes Deployment or Swarm service of the same name belongs to another integration, or was created by hand | Rename the instance, or remove the other workload. The **Logs** tab of the instance names it: `[XTM Composer] Connector not deployed: a deployment named "" already exists and belongs to another owner ().` | | `Kubernetes creation api error`, `Error creating swarm service` | The engine refused the workload, for the reason in the `error` field. XTM Composer 3.261120.0 and earlier named it after the instance as is, so the engine refused a name longer than 63 characters, as many OpenAEV integrations have | Upgrade XTM Composer to 3.261121.0 or later, which shortens such names. Otherwise, fix what the `error` field names | | `Cannot pull the workload image, deployment canceled` | The engine cannot pull the image in the `image` field, for the reason in the `error` field. XTM Composer deploys nothing and tries again at its next pass | See [The image cannot be pulled](#the-image-cannot-be-pulled) | | `Cannot pull the workload image, refresh canceled` | The same, after a change of the configuration of the integration. The previous container keeps running, with the previous configuration | See [The image cannot be pulled](#the-image-cannot-be-pulled). XTM Composer applies the change once the pull works | | `Error creating container` | Docker refused the container, for the reason in the `error` field, such as a network that does not exist | Set `OPENCTI__DAEMON__DOCKER__NETWORK_MODE` or `OPENAEV__DAEMON__DOCKER__NETWORK_MODE` to a network that `docker network ls` lists, such as `xtm_default` in xtm-docker | | `Cannot query the Docker API` | XTM Composer cannot use the Docker socket | Mount `/var/run/docker.sock` in its container, and check that the Docker daemon runs | | `Portainer error fetching containers`, `Error deploying the container` (Portainer) | Portainer refused the request: wrong `api`, `api_key`, `env_id` or `api_version`. The `error` field gives the answer of Portainer | Test the same request from where XTM Composer runs, as below | | `No Podman API socket found` | No Podman socket exists at the paths it checks | Enable the socket, then mount it at `/run/podman/podman.sock`: see [Install XTM Composer](https://filigran.io/docs/deploy/integrations/install-composer/) | With the `portainer` selector, XTM Composer calls the Docker API that Portainer exposes for the environment, with the API key in the `X-API-KEY` header. It does not check the certificate of Portainer. Run the same call with the values of your `daemon.portainer` block: ```bash curl -sk -H "X-API-KEY: $PORTAINER_API_KEY" https://portainer.example.com:9443/api/endpoints/3/docker/v1.44/containers/json ``` **Check that it worked** It prints a JSON list of the containers of the environment. An error message names what Portainer refused: the key, or an environment ID that does not exist. On Kubernetes, a `forbidden` error means the role of XTM Composer misses a permission. Check it: ```bash kubectl -n xtm-composer auth can-i create deployments --as=system:serviceaccount:xtm-composer:xtm-composer kubectl -n xtm-composer auth can-i get pods --subresource=log --as=system:serviceaccount:xtm-composer:xtm-composer ``` **Check that it worked** Both commands answer `yes`. Otherwise, apply the role of [Install XTM Composer](https://filigran.io/docs/deploy/integrations/install-composer/). ### The image cannot be pulled {#the-image-cannot-be-pulled} With Docker, Podman, Docker Swarm and Portainer, XTM Composer pulls the image of the integration before it deploys or updates it. When the pull fails, it changes nothing, and writes the reason in the **Logs** tab of the integration in the platform: - `[XTM Composer] Connector not deployed: the image "" cannot be pulled: `: nothing runs. An integration the platform showed as started is set to stopped. - `[XTM Composer] Connector not updated, the previous deployment is kept: the image "" cannot be pulled: `: the previous container keeps running. XTM Composer 3.261021.1 and earlier logged `Error fetching container image` with Docker, and removed the running container before a failed update. On Kubernetes, the nodes pull the image. A pod that cannot get it waits in `ErrImagePull`, `ImagePullBackOff`, `InvalidImageName` or `ErrImageNeverPull`, and XTM Composer reports it in the **Logs** tab: - `[XTM Composer] Connector waiting for its image: ...`: no pod of the integration runs, and its status is stopped. XTM Composer does not start it again while the image is missing, but stopping the integration in the platform still scales the Deployment down to zero. - `[XTM Composer] Connector not updated, the previous deployment is kept: ...`: the pod of the previous version keeps running during the update. The answer of the registry is in the events of the pod: ```bash kubectl -n xtm-composer get pods kubectl -n xtm-composer describe pod ``` The usual causes: - The image name or its tag is wrong. The `image` field, or the message, gives the name XTM Composer asked for. - `MANAGER__IMAGE_TAG_SUFFIX` adds `-fips` or `-ubi9` to the tag, and the integration is not published with that tag. OpenAEV publishes no FIPS images. See [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/). - The registry refuses the credentials, or XTM Composer pulls from Docker Hub when your images are in a private registry. Each platform pulls with the registry of its own block: since XTM Composer 3.261120.0, an OpenAEV integration on Kubernetes, Docker Swarm or Portainer no longer uses `OPENCTI__DAEMON__REGISTRY__*`. On Kubernetes, the pull secret is named after the server and the platform, such as `registry-example-com-openaev`. See [Pull integrations from a private registry](https://filigran.io/docs/deploy/integrations/private-registry/). - A proxy blocks the registry. See [Run integrations behind a proxy](https://filigran.io/docs/deploy/integrations/proxy/). ## An integration starts, then fails {#an-integration-starts-then-fails} XTM Composer reports `Reboot loop detected` when a container has restarted more than three times and has been up for less than five minutes. The cause is in the logs of the integration itself: its **Logs** tab in the platform, or the container. ```bash docker ps -a --filter label=opencti-manager --format '{{.Names}} {{.Status}}' docker logs --tail 50 ``` XTM Composer labels each container with `xtm-manager` and, until a future version drops it, with `opencti-manager`. Containers deployed before XTM Composer 3.261120.0 carry `opencti-manager` only, so the filter above lists them all. On Kubernetes, the integration is a Deployment named after the instance: `kubectl -n xtm-composer logs deploy/`. The name is the instance name in lower case, with `-` for every symbol and space. Since XTM Composer 3.261121.0, when that name is not a valid Kubernetes name, XTM Composer shortens it. This happens when the name is longer than 63 characters, has an accented letter, or starts or ends with a symbol. XTM Composer then keeps up to 54 characters and adds `-` and 8 hexadecimal characters. For example, an OpenAEV integration, named after its title and the ID of the instance, becomes `dns-enumeration--subdomains-and-dns-records--7653e749-` followed by those 8 characters. A name that was already valid does not change. To find the Deployment of an integration, list them with the ID of their instance, in `opencti-connector-id` for the Deployments made before XTM Composer 3.261120.0: ```bash kubectl -n xtm-composer get deployments -L xtm-workload-id,opencti-connector-id ``` On Docker Swarm, the service follows the same rule: `docker service logs `. The usual causes: - The integration cannot reach the platform. It uses the URL XTM Composer uses, `OPENCTI__URL` or `OPENAEV__URL`, so it must run on a network where that URL resolves: set `OPENCTI__DAEMON__DOCKER__NETWORK_MODE` or `OPENAEV__DAEMON__DOCKER__NETWORK_MODE` to the network of the platform, `xtm_default` in xtm-docker. - The integration cannot reach RabbitMQ at the address the platform gives it. See [Networking](https://filigran.io/docs/deploy/integrations/manual/#networking). - A required setting of the integration is empty or wrong. Fix it with **Update**. ## Logs do not show in the platform {#logs-do-not-show-in-the-platform} - Only the instances XTM Composer manages show logs in the interface. - XTM Composer sends the last 100 lines of the integration every `logs_schedule` seconds, 10 by default: wait a few seconds. - On Kubernetes, XTM Composer reads the container of the integration, in the pod where that container runs before a pod still waiting or left over from an update, the newest first. The restart count and the start time come from the same pod. When it cannot read any pod, the **Logs** tab shows `[XTM Composer] Cannot read the connector logs:` with the answer of Kubernetes. A `forbidden` answer means the role must allow reading `pods/log`. ## The configuration file is not read {#the-configuration-file-is-not-read} - XTM Composer reads `/opt/xtm-composer/config/.yaml`, `production.yaml` by default. A file mounted at `/config` is ignored. - Mount the file, not the `config` folder, which would hide `default.yaml`. - Environment variables win over the file. They use `__` between levels: `MANAGER__LOGGER__LEVEL`, not `MANAGER.LOGGER.LEVEL`. ## What's next {#what-s-next} - [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/). - [Troubleshoot the XTM stack](https://filigran.io/docs/deploy/operate/troubleshoot/), for the rest of the stack. --- # Back up and restore > Back up every store of the XTM stack together, with an Elasticsearch snapshot, PostgreSQL dumps and copies of the other volumes, and restore them on an empty deployment. - URL: https://filigran.io/docs/deploy/operate/backup/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers - Type: How-to guide This page backs up a Docker Compose deployment of the XTM stack, [FiligranHQ/xtm-docker](https://github.com/FiligranHQ/xtm-docker), and restores it on an empty one. You get one consistent backup of all its data: the knowledge in Elasticsearch, the databases in PostgreSQL, the files in S3 storage, the other volumes and the secrets. The platforms are stopped during the backup, so plan a maintenance window. **Diagram: With the platforms stopped, each store is backed up its own way into one backup folder, which then moves off the machine** - Stores: Elasticsearch (Volume esdata), PostgreSQL (openaev and xtm_one databases), Other volumes (s3data, redisdata, amqpdata, rsakeys), Secrets (.env and docker-compose.override.yml) - Backup folder: es-snapshots.tar.gz (Repository xtm-backup), Database dumps (openaev.dump, xtm_one.dump), Volume archives (One .tar.gz per volume), File copies (Same names in backup/) - Off the machine: Outside storage (Restore on an empty deployment) Connections: - Elasticsearch → es-snapshots.tar.gz: snapshot - PostgreSQL → Database dumps: pg_dump - Other volumes → Volume archives: copy while stopped - Secrets → File copies: copy - es-snapshots.tar.gz → Outside storage - Database dumps → Outside storage - Volume archives → Outside storage - File copies → Outside storage ## What to back up {#what-to-back-up} The data of the stack lives in six Docker volumes and one file. Their names start with `COMPOSE_PROJECT_NAME` from `.env` (`xtm` in `.env.sample`), for example `xtm_esdata`. | What | Where | Holds | Backed up with | | --- | --- | --- | --- | | Elasticsearch | Volume `esdata` | The knowledge of OpenCTI and OpenAEV and its indices | A snapshot | | PostgreSQL | Volume `pgsqlshareddata` | The `openaev`, `opencrq` and `xtm_one` databases | `pg_dump` | | S3 storage (RustFS) | Volume `s3data` | The files of OpenCTI, OpenAEV, OpenCRQ and XTM One | A copy of the volume | | Redis | Volume `redisdata` | Cache, sessions and live events | A copy of the volume | | RabbitMQ | Volume `amqpdata` | The queues and the messages waiting in them | A copy of the volume | | XTM Composer key | Volume `rsakeys` | The RSA key XTM Composer encrypts the integrations' configurations with | A copy of the volume | | Secrets | File `.env` | Passwords, tokens and the encryption keys of the platforms | A copy of the file | > **Warning: Back up the secrets with the data** > > The platforms encrypt part of their data with keys from `.env`, such as `OPENCTI_ENCRYPTION_KEY`, `OPENAEV_ADMIN_ENCRYPTION_KEY` and `XTM_ONE_SECRET_KEY`, and XTM Composer with the key in `rsakeys`. Data restored without the same keys cannot be read. Keep the backup as safe as the secrets it holds. ### Why everything is backed up together {#why-everything-is-backed-up-together} A platform keeps one piece of information in several stores. OpenCTI writes an imported file to S3 storage and indexes it in Elasticsearch; OpenAEV and XTM One keep their records in PostgreSQL and their files in S3 storage. Stores backed up at different times disagree after a restore: a record points to a file that is missing, or the other way round. So the procedure below stops everything that writes, the platforms, their workers and the integrations, then backs up every store at the same point in time. Elasticsearch does not support restoring from a copy of its data folder, even a stopped one: back it up with a snapshot. The other volumes are copied while their service is stopped. ## Before you start {#before-you-start} - The stack runs and is healthy: see [Check that the platforms are healthy](https://filigran.io/docs/deploy/operate/health-probes/). - Free disk space for the backup: about the size of the six volumes. `docker system df -v` gives their size. - A snapshot repository for Elasticsearch, prepared once as below. A stack with XTM One alone has no Elasticsearch and no RabbitMQ: skip the steps about Elasticsearch. ### Prepare the snapshot repository {#prepare-the-snapshot-repository} Elasticsearch writes snapshots to a folder declared in its `path.repo` setting. These steps make a folder `es-snapshots`, in the `xtm-docker` folder, that repository. 1. Create the folder. Elasticsearch runs as user `1000` and group `0` in its container, and needs to write to it. ```bash mkdir -p es-snapshots chmod g+rwx es-snapshots sudo chgrp 0 es-snapshots ``` 2. Declare it in `docker-compose.override.yml`, as [Change the stack without editing docker-compose.yml](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml) describes. If the file exists, add the `elasticsearch` part to it. ```yaml services: elasticsearch: environment: - path.repo=/usr/share/elasticsearch/snapshots volumes: - ./es-snapshots:/usr/share/elasticsearch/snapshots ``` 3. Recreate Elasticsearch, then register the repository under the name `xtm-backup`. ```bash docker compose up -d --wait elasticsearch docker compose exec elasticsearch curl -s -X PUT http://localhost:9200/_snapshot/xtm-backup \ -H 'Content-Type: application/json' \ -d '{"type":"fs","settings":{"location":"/usr/share/elasticsearch/snapshots"}}' ``` **Check that it worked** It answers `{"acknowledged":true}`. ## Back up the stack {#back-up-the-stack} Run every command from the `xtm-docker` folder. 1. Create the backup folder and record the versions you run: restore on the same ones. ```bash mkdir -p backup git rev-parse HEAD > backup/xtm-docker-commit.txt docker compose images > backup/images.txt ``` 2. Stop everything that writes: every service except the stores. ```bash docker compose stop $(docker compose config --services | grep -vxE 'elasticsearch|pgsql|redis|minio|rabbitmq|rsa-key-generator') ``` **Check that it worked** ```bash docker compose ps --format '{{.Service}}' ``` It lists only stores: `elasticsearch`, `pgsql`, `redis`, `minio`, `rabbitmq`, and `rsa-key-generator` if XTM Composer is deployed. 3. Take an Elasticsearch snapshot of all the indices. ```bash docker compose exec elasticsearch curl -s -X PUT \ "http://localhost:9200/_snapshot/xtm-backup/snapshot-$(date +%Y%m%d-%H%M%S)?wait_for_completion=true" ``` **Check that it worked** The answer contains `"state":"SUCCESS"`. 4. Dump the three PostgreSQL databases. ```bash docker compose exec -T pgsql sh -c 'pg_dump -U "$POSTGRES_USER" -Fc openaev' > backup/openaev.dump docker compose exec -T pgsql sh -c 'pg_dump -U "$POSTGRES_USER" -Fc opencrq' > backup/opencrq.dump docker compose exec -T pgsql sh -c 'pg_dump -U "$POSTGRES_USER" -Fc xtm_one' > backup/xtm_one.dump ``` **Check that it worked** ```bash ls -l backup/*.dump ``` The three files exist and are not empty. 5. Have Redis write its data to disk, then stop the stores. ```bash docker compose exec redis redis-cli SAVE docker compose stop ``` Redis answers `OK`. 6. Copy the other volumes, each into an archive. ```bash set -a; . ./.env; set +a for v in s3data redisdata amqpdata rsakeys; do docker volume inspect "${COMPOSE_PROJECT_NAME}_$v" >/dev/null 2>&1 || continue docker run --rm -v "${COMPOSE_PROJECT_NAME}_$v:/data:ro" -v "$PWD/backup:/backup" \ alpine:3.20 tar -czf "/backup/$v.tar.gz" -C /data . done ``` The loop skips a volume your modules do not create, such as `rsakeys` without XTM Composer. 7. Copy the secrets, the override file and the snapshot repository. ```bash cp .env docker-compose.override.yml backup/ tar -czf backup/es-snapshots.tar.gz es-snapshots ``` 8. Start the stack again. ```bash docker compose up -d ``` **Check that it worked** ```bash docker compose ps --format '{{.Service}} {{.Health}}' | grep -E '^(opencti|openaev|xtm-one|opencrq) ' ``` Each platform you run says `healthy` after a few minutes. Move the `backup` folder to storage outside the machine. Elasticsearch snapshots are incremental: each one stores only what changed since the previous ones in the same repository, so `es-snapshots` grows slowly. Delete a snapshot you no longer need with `docker compose exec elasticsearch curl -s -X DELETE http://localhost:9200/_snapshot/xtm-backup/`, never by deleting files from the folder. ## Restore the stack {#restore-the-stack} The restore puts a backup back on an empty deployment: a new machine, or the same one after `docker compose down -v`. > **Warning: On an empty deployment only** > > Restore before the platforms ever start on the new deployment. A platform that starts on empty stores creates its own data, and the restore then fails or mixes the two. 1. Get the same version of xtm-docker, and put the backup in it. ```bash git clone https://github.com/FiligranHQ/xtm-docker.git cd xtm-docker git checkout "$(cat /path/to/backup/xtm-docker-commit.txt)" cp -r /path/to/backup ./backup cp backup/.env backup/docker-compose.override.yml . tar -xzf backup/es-snapshots.tar.gz chmod -R g+rwX es-snapshots && sudo chgrp -R 0 es-snapshots ``` Replace `/path/to/backup` with the folder of your backup. 2. Create the containers and the volumes, without starting anything. ```bash docker compose create ``` 3. Put the copied volumes back. ```bash set -a; . ./.env; set +a for v in s3data redisdata amqpdata rsakeys; do [ -f "backup/$v.tar.gz" ] || continue docker run --rm -v "${COMPOSE_PROJECT_NAME}_$v:/data" -v "$PWD/backup:/backup:ro" \ alpine:3.20 tar -xzf "/backup/$v.tar.gz" -C /data done ``` 4. Restore PostgreSQL. `xtm-one-db-init` first creates the XTM One role, its database and the pgvector extension, and `opencrq-db-init` the OpenCRQ database, then each database is restored. ```bash docker compose up -d --wait pgsql docker compose run --rm xtm-one-db-init docker compose run --rm opencrq-db-init docker compose exec -T pgsql sh -c 'pg_restore -U "$POSTGRES_USER" -d openaev' < backup/openaev.dump docker compose exec -T pgsql sh -c 'pg_restore -U "$POSTGRES_USER" -d opencrq' < backup/opencrq.dump docker compose exec -T pgsql sh -c 'pg_restore -U "$POSTGRES_USER" -d xtm_one' < backup/xtm_one.dump ``` 5. Start Elasticsearch, register the repository and list its snapshots. ```bash docker compose up -d --wait elasticsearch docker compose exec elasticsearch curl -s -X PUT http://localhost:9200/_snapshot/xtm-backup \ -H 'Content-Type: application/json' \ -d '{"type":"fs","settings":{"location":"/usr/share/elasticsearch/snapshots"}}' docker compose exec elasticsearch curl -s "http://localhost:9200/_cat/snapshots/xtm-backup?v" ``` 6. Restore the snapshot you choose, with its indices, index templates and lifecycle policies. Replace `` with its name from the list. ```bash docker compose exec elasticsearch curl -s -X POST \ "http://localhost:9200/_snapshot/xtm-backup//_restore?wait_for_completion=true" \ -H 'Content-Type: application/json' \ -d '{"indices":"*","include_global_state":true}' ``` **Check that it worked** The answer gives the restored indices with `"failed":0` in `shards`. 7. Start the stack. ```bash docker compose up -d ``` **Check that it worked** Each platform says `healthy` in `docker compose ps`, and shows the data you had when you took the backup. Restore on the image versions of `backup/images.txt`. If you start newer images, the platforms migrate the restored data as they would during an upgrade: see [Upgrade](https://filigran.io/docs/deploy/upgrade/). ## What's next {#what-s-next} - [Upgrade](https://filigran.io/docs/deploy/upgrade/): take a backup before every upgrade. - [Manage Elasticsearch indices](https://filigran.io/docs/deploy/operate/rollover/), how OpenCTI organizes its Elasticsearch indices. - [Harden the deployment](https://filigran.io/docs/deploy/operate/harden/), to protect the secrets and the stores. --- # Harden the deployment > Close the shared services of the XTM stack to the network, protect the health keys, limit who gets an OpenCRQ account, and tighten the OpenCTI settings, from rate limiting to sessions and logs. - URL: https://filigran.io/docs/deploy/operate/harden/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers - Type: How-to guide The XTM stack starts with settings that make a first deployment easy, not with the strictest ones. This page lists what to tighten before production: the shared services the Docker deployment publishes, the health keys, who can create an account in XTM One, and the security settings of OpenCTI, each with its key, its default and the value to choose. **Diagram: Only the reverse proxy faces users, Elasticsearch and Redis are closed to the network, RabbitMQ and S3 storage keep their passwords, and OpenCTI limits what each client sends** - Outside the host: Users and clients (Over HTTPS), External integrations (Connect to RabbitMQ) - Host: Reverse proxy (TLS), Host firewall (Restricts 5672, 15672 and 9000) - OpenCTI: OpenCTI (Rate limit, GraphQL limits, sessions, logs) - Shared services: Elasticsearch (9200, no authentication: unpublished), Redis (6379, no password: unpublished), RabbitMQ (5672 and 15672, password of .env), S3 storage (9000, password of .env) Connections: - Users and clients → Reverse proxy: HTTPS - Reverse proxy → OpenCTI: X-Forwarded-For - OpenCTI → Elasticsearch: Docker network - OpenCTI → Redis: Docker network - External integrations → Host firewall: if you have some - Host firewall → RabbitMQ: user and password ## Before you start {#before-you-start} - A deployment that works: see [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/). - Every password, token and key of `.env` replaced with a random value, as in the [Quick start](https://filigran.io/docs/deploy/quick-start/). - The platforms published over TLS, behind a reverse proxy: see [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/). In xtm-docker, the platforms take their settings from `docker-compose.yml`. Put your changes in `docker-compose.override.yml`, as [Change the stack without editing docker-compose.yml](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml) describes, then apply them with `docker compose up -d`. ## Close Elasticsearch and Redis to the network {#close-elasticsearch-and-redis-to-the-network} xtm-docker publishes the ports of the shared services on every interface of the host. Two of them have no authentication: Elasticsearch, on port 9200, runs with `xpack.security.enabled=false`, and Redis, on port 6379, has no password. Anyone who reaches these ports reads and changes all the data. The platforms reach them on the Docker network, so the published ports are not needed. 1. Remove the published ports in `docker-compose.override.yml`. If the file already has `ports` for these services, replace them. The `!reset` tag needs Docker Compose 2.24 or later. ```yaml services: elasticsearch: ports: !reset [] redis: ports: !reset [] ``` 2. Recreate the two services. ```bash docker compose up -d elasticsearch redis ``` **Check that it worked** ```bash docker compose ps --format '{{.Service}} {{.Ports}}' | grep -E '^(elasticsearch|redis) ' ``` No line shows a `0.0.0.0:` mapping. RabbitMQ (5672, and 15672 for its management interface) and S3 storage (9000) are protected by the user and password of `.env`. Integrations that run outside the host connect to RabbitMQ: if you have none, restrict these ports with the firewall of the host. ## Protect the health keys {#protect-the-health-keys} The health endpoints answer only with their key. See [Check that the platforms are healthy](https://filigran.io/docs/deploy/operate/health-probes/). - OpenCTI refuses every call while its key is empty or `ChangeMe`. Keep a random `OPENCTI_HEALTHCHECK_ACCESS_KEY`, and do not set it to `public` on a network you do not trust. - OpenAEV accepts its default key, `ChangeMe`, and xtm-docker falls back to it when `OPENAEV_HEALTHCHECK_KEY` is missing from `.env`. Set a random value. ## Limit who gets an OpenCRQ account {#limit-who-gets-an-opencrq-account} OpenCRQ signs its users in through XTM One, and gives an account to any XTM One user at their first sign-in, even one who is a member of no tenant: they then read **You don't have access to OpenCRQ yet** until an administrator adds them. Who can sign in to OpenCRQ is therefore who can get an XTM One account. In XTM One, keep **Local Registration** off, or limit new accounts to your domains with **Allowed email domains**, and do the same for the **On-the-fly user creation** of each single sign-on method. See [Decide who gets an account](https://filigran.io/docs/xtm-one/administer/sso/#decide-who-gets-an-account) in XTM One. ## Tighten OpenCTI {#tighten-opencti} The settings below are keys of the OpenCTI configuration. Each one has an environment variable: the key in capitals, with `__` between its levels, such as `APP__SESSION_TIMEOUT` for `app:session_timeout`. Give a list as a JSON array. ```yaml services: opencti: environment: - APP__SESSION_TIMEOUT=900000 - 'APP__RATE_PROTECTION__IP_SKIP_RANGES=["10.0.0.0/8"]' ``` ### Rate limiting {#rate-limiting} OpenCTI limits the number of HTTP requests each client can send in a time window, GraphQL included, before any session handling. A client over the limit gets `429 Too Many Requests` until the window ends. Use it when nothing in front of the platform limits the rate already. *(OpenCTI 7.260811 and later)* A client is an IP address with a `User-Agent` header: two user agents behind the same IP address have their own limits. An IPv6 address counts by its `/56` network. | Key | Default | What it does | | --- | --- | --- | | `app:rate_protection:max_requests` | `10000` | Requests a client may send in the window. `0` refuses every request: it does not turn the limiter off. To exempt clients, use the skip lists | | `app:rate_protection:time_window` | `1` | Length of the window, in seconds. Below `1`, one second | | `app:rate_protection:ip_skip_list` | `[]` | IP addresses never limited, as exact addresses | *(OpenCTI 7.260811 and later)* | Key | Default | What it does | | --- | --- | --- | | `app:rate_protection:ip_skip_ranges` | `[]` | Ranges never limited, in CIDR notation, IPv4 or IPv6, such as `10.0.0.0/8` or `fd00::/8`. A single address works too | | `app:rate_protection:user_agent_skip_prefixes` | `[]` | User agents never limited: a request whose `User-Agent` starts with one of these values, ignoring case | A request is not limited when it matches any of the three lists. For example, 5,000 requests per 10 seconds for each client, except the private networks and the browsers, whose user agent starts with `Mozilla`: ```yaml - APP__RATE_PROTECTION__MAX_REQUESTS=5000 - APP__RATE_PROTECTION__TIME_WINDOW=10 - 'APP__RATE_PROTECTION__IP_SKIP_RANGES=["10.0.0.0/8","192.168.0.0/16"]' - 'APP__RATE_PROTECTION__USER_AGENT_SKIP_PREFIXES=["Mozilla"]' ``` *(OpenCTI 7.261119 and later)* Unset, `app:rate_protection:max_requests` and `app:rate_protection:time_window` follow `app:http:secure_by_default`: 30,000 requests per 60 seconds when it is `true`. See [Secure HTTP defaults](#secure-http-defaults). Behind a reverse proxy, OpenCTI limits each client by the address in the proxy's `X-Forwarded-For` header only when it trusts the proxy. Loopback, link-local and private addresses are trusted. *(OpenCTI 7.260811 and later)* Add the address of a proxy outside these ranges to `trust_proxy_addresses`. ### GraphQL query limits {#graphql-query-limits} The rate limiter counts HTTP requests, but one GraphQL request can hold many operations. OpenCTI checks each GraphQL document before it runs it, with two protections. The batching protection is always on. It limits how many times one request calls the same query or mutation through aliases, a way to guess passwords or overload the platform in a single HTTP request. The login mutation is always limited to one call. | Key | Default | What it does | | --- | --- | --- | | `app:graphql:batching_protection:query_default` | `2` | Calls of the same query in one request | | `app:graphql:batching_protection:query_subtypes` | `4` | Calls of the `subTypes` query, which the interface sends several times | | `app:graphql:batching_protection:mutation_default` | `1` | Calls of the same mutation in one request | The armor protection is off by default: `app:graphql:armor_protection:disabled` is `true`. Once on, it refuses a document that goes over one of its limits, and stops suggesting field names in the error of a wrong query: these suggestions help an attacker map the API. | Key | Default | What it does | | --- | --- | --- | | `app:graphql:armor_protection:disabled` | `true` | Set to `false` to turn the armor protection on | | `app:graphql:armor_protection:max_depth` | `20` | Nesting depth of a document | | `app:graphql:armor_protection:max_directives` | `20` | Directives in a document | | `app:graphql:armor_protection:max_tokens` | `100000` | GraphQL tokens in a document | | `app:graphql:armor_protection:cost_limit` | `50000000` | Computed cost of a document | | `app:graphql:armor_protection:block_field_suggestion` | `true` | Hides the field suggestions | Turn it on in a staging platform first, and check that the screens and the integrations you use still work: a limit set too low refuses their queries. ```yaml - APP__GRAPHQL__ARMOR_PROTECTION__DISABLED=false - APP__GRAPHQL__ARMOR_PROTECTION__MAX_DEPTH=20 - APP__GRAPHQL__ARMOR_PROTECTION__BLOCK_FIELD_SUGGESTION=true ``` *(OpenCTI 7.261109 and later)* ### Secure GraphQL defaults {#secure-graphql-defaults} `app:graphql:secure_by_default` (`APP__GRAPHQL__SECURE_BY_DEFAULT`) turns on, in one setting, the GraphQL protections you have not set yourself: | When `app:graphql:secure_by_default` is `true` | Overridden by | | --- | --- | | The armor protection is on | `app:graphql:armor_protection:disabled` | | The [GraphQL playground](#graphql-playground) is off, and introspection with it | `app:graphql:playground:enabled` | | The WebSocket endpoint accepts subscriptions only, the operations the interface sends there; a query or a mutation sent over WebSocket gets `Only subscriptions are allowed over WebSocket` | | It is `false` by default, and OpenCTI logs a warning at each start while it is: `GraphQL secure defaults are disabled for the protections that do not set their own option`. A later version turns it on by default. Turn it on in a staging platform first, then in production, and set the other keys only where you need an exception: ```yaml - APP__GRAPHQL__SECURE_BY_DEFAULT=true - APP__GRAPHQL__PLAYGROUND__ENABLED=true ``` Here the armor protection is on and WebSocket carries only subscriptions, while the playground stays available to your analysts. *(OpenCTI 7.261119 and later)* ### Secure HTTP defaults {#secure-http-defaults} `app:http:secure_by_default` (`APP__HTTP__SECURE_BY_DEFAULT`) tightens, in one setting, the HTTP protections you have not set yourself: | Protection | Unset key, by default | Unset key, when `app:http:secure_by_default` is `true` | Overridden by | | --- | --- | --- | --- | | [Rate limiting](#rate-limiting) of each client | 10,000 requests per second | 30,000 requests per 60 seconds | `app:rate_protection:max_requests`, `app:rate_protection:time_window` | | Largest JSON request body, on the GraphQL, TAXII and REST APIs | `50mb` | `10mb` | `app:max_payload_body_size` | | [Resources over plain HTTP](#insecure-http-resources) in the pages of the platform | Allowed | Refused | `app:allow_unsecure_http_resources` | | Redirects followed by the requests OpenCTI sends, for feeds, synchronizers and notifiers | `21` | `5` | `app:http:max_redirects` | It is `false` by default, and OpenCTI logs a warning at each start while it is: `HTTP secure defaults are disabled for the protections that do not set their own option`. A later version turns it on by default. - `app:max_payload_body_size` (`APP__MAX_PAYLOAD_BODY_SIZE`) takes a number of bytes, or a value with `kb`, `mb` or `gb`. A larger body is refused. The TAXII API root advertises this limit, in bytes, as its `max_content_length`. - `app:http:max_redirects` (`APP__HTTP__MAX_REDIRECTS`) takes a whole number, `0` to follow no redirect. A request that needs more redirects fails with `Maximum number of redirects exceeded`. Any other value falls back to the default, and OpenCTI logs `Invalid value for app:http:max_redirects, it must be a non-negative integer: using the default instead` at start. Turn it on in a staging platform first. Check that your connectors and scripts stay under the rate limit and send bodies under 10 MB, then set the other keys only where you need an exception: ```yaml - APP__HTTP__SECURE_BY_DEFAULT=true - APP__MAX_PAYLOAD_BODY_SIZE=50mb ``` Here the rate limit, the plain HTTP resources and the redirects take their secure values, while the API still accepts the 50 MB bundles of connectors that send them over HTTP. ### Requests and uploads {#requests-and-uploads} `app:request_timeout` closes a connection that stays idle this many milliseconds. The default, `1200000`, is 20 minutes. Keep the timeout of your reverse proxy consistent with it, or long requests fail at the proxy first. *(OpenCTI 7.261030 and later)* | Key | Default | What it does | | --- | --- | --- | | `app:max_upload_file_size` | `1gb` | Largest file a request may upload: a number of bytes, or a value with `kb`, `mb` or `gb`. A larger file is refused | | `app:max_upload_files` | `20` | Files one request may upload | An invalid value falls back to the default. Lower the size if the platform never ingests large artifacts, such as malware samples: ```yaml - APP__MAX_UPLOAD_FILE_SIZE=200mb - APP__MAX_UPLOAD_FILES=10 ``` ### Encryption key {#encryption-key} OpenCTI derives its encryption keys from `app:encryption_key` (`APP__ENCRYPTION_KEY`): 32 bytes or more, in base64, generated with `openssl rand -base64 32`. They protect the secrets it stores in its database, such as those of the authentication providers and of the managed connectors. OpenCTI does not start without it, and cannot read these secrets with another key: keep it in your secret store with the backups. `app:crypto:master_seed` (`APP__CRYPTO__MASTER_SEED`) is the former name of this key, read only when `app:encryption_key` is not set. If your configuration still uses it, move its value to `app:encryption_key`. ### HTTPS served by OpenCTI {#https-served-by-opencti} Behind a reverse proxy, OpenCTI does not need certificates. When it serves HTTPS itself, as [Serve HTTPS from a platform](https://filigran.io/docs/deploy/configure/certificates/#serve-https-from-a-platform) describes, three more keys apply. `app:https_cert:passphrase` decrypts an encrypted private key. With certificate authentication turned on, OpenCTI asks clients for a certificate, checks it against the authorities listed in `app:https_cert:ca`, paths or PEM contents, and refuses a client whose certificate does not match while `app:https_cert:reject_unauthorized` is `true`, the default. ### Sessions {#sessions} `app:session_timeout` ends a session after this many milliseconds. The default, `1200000`, is 20 minutes: set it to what your security policy requires. See [Cookies](https://filigran.io/docs/opencti/administer/cookies/). ### Public dashboards {#public-dashboards} By default, no other website can embed a public dashboard. To allow some, list them in `app:public_dashboard_authorized_domains`, as the sources of a Content Security Policy `frame-ancestors` directive, separated by spaces, such as `https://intranet.example.com`. Leave it empty to keep embedding forbidden. *(OpenCTI 7.260811 and later)* ### Insecure HTTP resources {#insecure-http-resources} *(OpenCTI 7.261119 and later)* `app:allow_unsecure_http_resources` decides whether the pages of the platform may load images, files and connections from `http://` addresses, through its Content Security Policy. Unset, it is the opposite of `app:http:secure_by_default`: allowed by default, refused with the [secure HTTP defaults](#secure-http-defaults). Set it to `false` to also make browsers load every resource of the platform over HTTPS: OpenCTI then sends the `upgrade-insecure-requests` directive. The secure HTTP defaults alone do not send it, so a platform served over plain HTTP keeps working with them. ### Ingestion URL filtering {#ingestion-url-filtering} To keep feeds from reaching internal addresses, a server-side request forgery (SSRF) risk, list the URIs that no ingestion feed may call in `app:uri_deny_list`. See [Tune feeds and streams](https://filigran.io/docs/opencti/use/ingest/feed-options/). ### Logs {#logs} | Key | Default | What it does | | --- | --- | --- | | `app:app_logs:logs_redacted_inputs` | `password`, `secret`, `token`, `api_tokens`, `authentication_value`, `enterprise_license` | GraphQL input fields whose value is hidden in the logs. Add the fields of your own sensitive data, and keep the default ones | | `app:audit_logs:trace_request_headers` | `user-agent`, `x-forwarded-for` | HTTP headers written to the audit logs with each event | | `app:app_logs:extended_error_message` | `false` | Adds the input data to error logs, and the GraphQL query and its variables to the logs of API calls. Keep it `false`: the logs would then hold sensitive data | | `app:performance_logger` | `false` | Logs every API call with its duration and size. Keep it `false` outside a performance analysis: it writes a lot of logs | See [Troubleshoot the XTM stack](https://filigran.io/docs/deploy/operate/troubleshoot/) for the other log settings. ### GraphQL playground {#graphql-playground} `app:graphql:playground:enabled` is `true` by default and serves the GraphQL playground of the API. *(OpenCTI 7.261109 and later)* Unset, it follows `app:graphql:secure_by_default`: the playground is off when that key is `true`. Set it to `false` if your users do not need it. Without the playground, the [GraphQL schema reference](https://filigran.io/docs/reference/opencti/graphql-schema/) still documents every query and mutation. `app:graphql:playground:force_disabled_introspection` is `true` by default: OpenCTI refuses introspection queries, which return the whole schema, even with the playground on. Set it to `false` to let signed-in users introspect the API, as some GraphQL tools require. Without the playground, or with the interface turned off, introspection stays refused. ### Artifact archives {#artifact-archives} OpenCTI stores potentially malicious files, the artifacts, in encrypted ZIP archives. The password of these archives is `app:artifact_zip_password`, `infected` by default, the usual value for malware samples. Change it if your policy requires another one. ## What's next {#what-s-next} - [Network and security settings of OpenCTI](https://filigran.io/docs/reference/opencti/configuration/#network-and-security), every security key with its default, and the [whole OpenCTI configuration](https://filigran.io/docs/reference/opencti/configuration/). - [Set platform security policies](https://filigran.io/docs/opencti/administer/policies/), the security policies set in the interface. - [Back up and restore](https://filigran.io/docs/deploy/operate/backup/), to keep the secrets safe with the data. --- # Check that the platforms are healthy > The health endpoints of XTM One, OpenCTI and OpenAEV, what each answer means, and how to use them in Docker Compose, Kubernetes or a load balancer. - URL: https://filigran.io/docs/deploy/operate/health-probes/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers - Type: How-to guide Each platform of the XTM stack has an HTTP endpoint that says whether it can serve requests. This page lists them, says what each answer means and how to call them, so that Docker Compose, Kubernetes or a load balancer restarts a platform or stops sending it traffic at the right time. **Diagram: An orchestrator calls the health endpoint of each platform, and OpenCTI and OpenAEV answer 200 only when the services they check answer** - Callers: Orchestrator (Docker Compose, Kubernetes or a load balancer) - Platforms: OpenCTI (Port 8080, key APP__HEALTH_ACCESS_KEY), OpenAEV (Port 8080, key OPENAEV_HEALTHCHECK_KEY) - At the center: XTM One (Port 4000, no key, 200 when up) - Checked dependencies: Elasticsearch and Redis (Checked by OpenCTI), RabbitMQ and S3 storage (Checked by both), PostgreSQL (Checked by OpenAEV) Connections: - Orchestrator → OpenCTI: /health with key - Orchestrator → OpenAEV: /api/health with key - Orchestrator → XTM One: /api/health - OpenCTI → Elasticsearch and Redis: checks - OpenCTI → RabbitMQ and S3 storage: checks - OpenAEV → RabbitMQ and S3 storage: checks - OpenAEV → PostgreSQL: checks ## The endpoints {#the-endpoints} | Platform | Endpoint | Key | Answers `200` when | | --- | --- | --- | --- | | XTM One | `/api/health`, on its port (`4000` in the container, `XTM_ONE_PORT` on the host) | None | The application is up | | OpenCTI | `/health?health_access_key=`, on its port (`8080` in the container, `OPENCTI_PORT` on the host) | `APP__HEALTH_ACCESS_KEY`, from `OPENCTI_HEALTHCHECK_ACCESS_KEY` in `.env` | Elasticsearch, S3 storage, RabbitMQ and Redis all answer | | OpenAEV | `/api/health?health_access_key=`, on its port (`8080` in the container, `8081` on the host) | `OPENAEV_HEALTHCHECK_KEY` in `.env` | PostgreSQL, RabbitMQ and S3 storage answer | The healthchecks of `docker-compose.yml` call these same endpoints, and `docker compose ps` shows their result. The workers, connectors, collectors and injectors of a platform, and XTM Composer, wait for it to be healthy before they start. ## Check the platforms by hand {#check-the-platforms-by-hand} From the `xtm-docker` folder: ```bash set -a; . ./.env; set +a curl -fsS "http://localhost:$XTM_ONE_PORT/api/health" && echo curl -fsS "http://localhost:$OPENCTI_PORT/health?health_access_key=$OPENCTI_HEALTHCHECK_ACCESS_KEY" && echo curl -fsS "http://localhost:8081/api/health?health_access_key=$OPENAEV_HEALTHCHECK_KEY" && echo ``` The host port of OpenAEV is written in `docker-compose.yml` (`8081:8080`), not taken from `OPENAEV_PORT`: `OPENAEV_PORT` only builds its public URL. If you change one, change the other. **Check that it worked** OpenCTI and OpenAEV answer `{"status":"success"}`. A platform you did not start fails to connect. ## What the answers mean {#what-the-answers-mean} **OpenCTI** | Answer | Meaning | | --- | --- | | `200` `{"status":"success"}` | The platform and its four dependencies are up | | `503` with an `error` | A dependency is down, or the platform has not finished starting | | `401` `{"status":"unauthorized"}` | The key is wrong, or the platform has no key: an empty key and the default `ChangeMe` refuse every call | Set the key to `public` to answer without a key. Use it only on a network you trust. *(OpenCTI 7.261030 and later)* The platform checks its dependencies in the background, every `app:health_monitoring:dependency_check_interval` milliseconds (default `30000`), and the endpoint returns the last result: a call never contacts a dependency. Until the first check is done, it answers `503` with `Health monitoring not initialized yet`. Add `&details=true` to get the state of each dependency and the usage figures (`es_used_size`, `s3_used_size`, `queue_consumers`). The details are never given when the key is `public`. **OpenAEV** | Answer | Meaning | | --- | --- | | `200` `{"status":"success"}` | PostgreSQL, RabbitMQ and S3 storage are up | | `503` | One of them is down, or has not been checked for three intervals | | `401` | The key is missing or wrong | OpenAEV checks its dependencies in the background, every `openaev.healthcheck.connectivity-probe-interval` (default `PT10S`, ten seconds), and the endpoint returns the last result. Elasticsearch is checked too, but its failure does not turn the answer into `503`: OpenAEV can still serve requests without it. Add `&details=true` to also get the storage used in PostgreSQL, Elasticsearch and S3. > **Warning: Change the default key** > > The default key of OpenAEV is `ChangeMe`, and OpenAEV accepts it. In xtm-docker, the platform falls back to it when `OPENAEV_HEALTHCHECK_KEY` is not set in `.env`. Set your own value. **XTM One** XTM One answers on `/api/health` without a key. The healthcheck of xtm-docker marks it unhealthy when the endpoint does not answer or answers with an HTTP error. *(OpenCTI 7.260811 and later)* ## OpenCTI liveness probe {#opencti-liveness-probe} The `/health` endpoint answers only once OpenCTI has started, which can take a long time when it migrates its data. An orchestrator that uses it to decide whether the process is alive may restart a platform in the middle of a migration. OpenCTI has a second endpoint for that: | Probe | Endpoint | Port | Answers | Checks | | --- | --- | --- | --- | --- | | Liveness | `/health/liveness` | `app:liveness_port`, off by default | As soon as the process starts | The process runs | | Readiness | `/health` | `app:port` | Once the platform has started | The dependencies | The liveness endpoint answers `GET` with `200` and `{"status":"success"}`, without a key. Turn it on with a port number in `APP__LIVENESS_PORT`. `` is `app:base_path`, empty by default. ## Use the probes in Kubernetes {#use-the-probes-in-kubernetes} *(OpenCTI 7.260811 and later)* For OpenCTI, use the liveness endpoint for the liveness probe and `/health` for the readiness probe. With `APP__LIVENESS_PORT=8082` and the platform on port 8080: ```yaml livenessProbe: httpGet: path: /health/liveness port: 8082 periodSeconds: 10 readinessProbe: httpGet: path: /health?health_access_key= port: 8080 periodSeconds: 10 ``` For OpenAEV, use `/api/health?health_access_key=` on port 8080, and for XTM One, `/api/health` on port 4000. *(OpenCTI 7.261030 and later)* > **Note: Keep-alive behind a load balancer** > > OpenCTI keeps idle connections open for `app:keep_alive_timeout` milliseconds (default `65000`), longer than the idle timeout of most load balancers. The liveness server uses the same value, so a probe sent through a load balancer behaves like the rest of the traffic. ## What's next {#what-s-next} - [Observability metrics](https://filigran.io/docs/deploy/operate/metrics/), to follow the dependencies over time. - [Scale: workers, platforms and clusters](https://filigran.io/docs/deploy/operate/scale/), to run several OpenCTI nodes behind a load balancer. - [Troubleshoot the XTM stack](https://filigran.io/docs/deploy/operate/troubleshoot/), when a platform stays unhealthy. - [HTTP endpoints](https://filigran.io/docs/reference/opencti/http-endpoints/): every endpoint OpenCTI serves besides GraphQL, health and metrics included. --- # Observability metrics > The Prometheus and OpenTelemetry metrics OpenCTI, OpenAEV and OpenCRQ expose for your own monitoring, how to turn them on in the XTM stack and what each one measures. - URL: https://filigran.io/docs/deploy/operate/metrics/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0 - For: platform engineers - Type: Reference OpenCTI, OpenAEV and OpenCRQ expose observability metrics for your own monitoring system, such as Prometheus or an OpenTelemetry (OTLP) collector. This page says how to turn them on in the XTM stack, where to scrape them and what the metrics measure. They are all off by default. **Diagram: Your Prometheus scrapes the metrics of OpenCTI, its workers, OpenAEV and OpenCRQ, and OpenCTI and OpenCRQ can also push metrics, traces and profiles to your own collectors** - Platforms: OpenCTI (/metrics on port 14269), OpenCTI workers (Port 14270), OpenAEV (/actuator/prometheus, bearer key), OpenCRQ (/metrics on port 14269) - Your monitoring: Prometheus (Scrapes the endpoints), OTLP collector (Metrics, traces, logs), Zipkin (Traces), Pyroscope (CPU and memory profiles) Connections: - OpenCTI → Prometheus: scraped - OpenCTI workers → Prometheus: scraped - OpenAEV → Prometheus: scraped with key - OpenCRQ → Prometheus: scraped - OpenCRQ → OTLP collector: pushed - OpenCTI → OTLP collector: pushed - OpenCTI → Zipkin: traces - OpenCTI → Pyroscope: profiles > **Note: Not usage telemetry** > > These metrics stay in your infrastructure. The anonymous usage data the platforms send to Filigran is something else: see [Usage telemetry and privacy](https://filigran.io/docs/opencti/configure/telemetry/), and [the usage telemetry of OpenCRQ](https://filigran.io/docs/opencrq/administer/telemetry/). ## Turn the metrics on {#turn-the-metrics-on} The platform services of xtm-docker take their settings from `docker-compose.yml` and the files it includes, in `modules/`. To add a setting without editing these files, put it in `docker-compose.override.yml`: see [Change the stack without editing docker-compose.yml](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml). **OpenCTI** OpenCTI exports its metrics with OpenTelemetry, to a Prometheus endpoint, an OTLP collector or both. | Key | Environment variable | Default | What it does | | --- | --- | --- | --- | | `app:telemetry:metrics:enabled` | `APP__TELEMETRY__METRICS__ENABLED` | `false` | Turns the metrics on | | `app:telemetry:metrics:exporter_prometheus` | `APP__TELEMETRY__METRICS__EXPORTER_PROMETHEUS` | `14269` | Port of the Prometheus endpoint, served at `/metrics` | | `app:telemetry:metrics:exporter_otlp` | `APP__TELEMETRY__METRICS__EXPORTER_OTLP` | empty | URL of an OTLP collector to push the metrics to every second. Empty: no push | 1. Create `docker-compose.override.yml` in the `xtm-docker` folder, or add to it. ```yaml services: opencti: environment: - APP__TELEMETRY__METRICS__ENABLED=true ``` 2. Recreate the platform. ```bash docker compose up -d opencti ``` **Check that it worked** ```bash docker compose exec opencti wget -qO- http://localhost:14269/metrics | grep '^# TYPE opencti_' ``` It lists the `opencti_` metrics. The port is not published on the host. Scrape `opencti:14269` from a Prometheus on the Docker network of the stack, or publish the port with a `ports` entry in the override file. The OpenCTI workers have their own Prometheus endpoint: set `WORKER_TELEMETRY_ENABLED=true` on the `worker` service, and each worker serves its metrics on port `14270` (`WORKER_PROMETHEUS_TELEMETRY_PORT`). **OpenAEV** OpenAEV serves its metrics on its API port, at `/actuator/prometheus`. The endpoint answers only a request that carries the metrics key as a bearer token, and with no key set, it refuses every request. | Key | Environment variable | Default | What it does | | --- | --- | --- | --- | | `openaev.metrics.key` | `OPENAEV_METRICS_KEY` | empty | The key Prometheus sends as `Authorization: Bearer `. Empty: the endpoint answers 401 | 1. Generate a key and add it to `.env`. ```bash echo "OPENAEV_METRICS_KEY=$(openssl rand -hex 32)" >> .env ``` 2. Pass it to the platform in `docker-compose.override.yml`. ```yaml services: openaev: environment: - OPENAEV_METRICS_KEY=${OPENAEV_METRICS_KEY} ``` 3. Recreate the platform. ```bash docker compose up -d openaev ``` **Check that it worked** ```bash set -a; . ./.env; set +a curl -fsS -H "Authorization: Bearer $OPENAEV_METRICS_KEY" "http://localhost:8081/actuator/prometheus" | grep '^# TYPE openaev_' ``` It lists the `openaev_` metrics. In a Prometheus scrape configuration, give the key with `authorization: {credentials: }`. **OpenCRQ** OpenCRQ serves its metrics to Prometheus, pushes them to an OTLP collector, or both: each transport has its own switch. The Prometheus endpoint of a container gathers the metrics of all its processes. | Environment variable | Default | What it does | | --- | --- | --- | | `TELEMETRY__OBSERVABILITY__PROMETHEUS__ENABLED` | `false` | Turns the Prometheus endpoint on, served at `/metrics` | | `TELEMETRY__OBSERVABILITY__PROMETHEUS__PORT` | `14269` | Port of the endpoint. On the port of the health check, `HEALTHCHECK_HTTP_SERVER__PORT` (`8444` in xtm-docker), the endpoint stays off | | `TELEMETRY__OBSERVABILITY__PROMETHEUS__HOST` | `0.0.0.0` | Address the endpoint listens on. `127.0.0.1` keeps it inside the container | | `TELEMETRY__OBSERVABILITY__OTLP__METRICS__ENABLED` | `false` | Turns the push to an OTLP collector on | | `TELEMETRY__OBSERVABILITY__OTLP__METRICS__EXPORTER` | None | URL of the collector, over gRPC, such as `http://otel-collector:4317`. Required when the push is on | 1. Create `docker-compose.override.yml` in the `xtm-docker` folder, or add to it. ```yaml services: opencrq: environment: - TELEMETRY__OBSERVABILITY__PROMETHEUS__ENABLED=true ``` 2. Recreate the platform. ```bash docker compose up -d opencrq ``` **Check that it worked** ```bash docker compose exec opencrq wget -qO- http://localhost:14269/metrics | grep '^# TYPE opencrq_' ``` It lists the `opencrq_` metrics, such as `opencrq_pm_processes`. The port is not published on the host, and the endpoint asks for no credentials: keep it on the Docker network of the stack. Anyone who reaches it reads the version of OpenCRQ, the address, port and name of its database, the processes and how many of each run, the SQLSTATE codes and the kinds of SQL operation of its queries, the name of every API procedure (`trpc_procedure`) and the kinds of background job (`job_kind`). No table name and no SQL text. Scrape `opencrq:14269` every 15 seconds or more. Within 5 seconds of a collection (`TELEMETRY__OBSERVABILITY__PROMETHEUS__MIN_INTERVAL_MS`), the endpoint serves the same document again. ```yaml scrape_configs: - job_name: opencrq scrape_interval: 15s static_configs: - targets: ["opencrq:14269"] ``` The names of earlier builds, such as `TELEMETRY__METRICS__PROMETHEUS__ENABLED`, stop the platform at start: see [Telemetry](https://filigran.io/docs/deploy/configure/opencrq/#telemetry). ## OpenCTI traces and profiles {#opencti-traces-and-profiles} Beyond metrics, OpenCTI can send traces and continuous profiles, to follow a slow request through the platform. Both are off by default and cost some CPU: turn them on to investigate, or on one node. ### Traces {#traces} With tracing on, OpenCTI sends an OpenTelemetry span for each GraphQL operation and for its calls to the databases and to Python, under the service name `opencti-platform`, with W3C trace context propagation. It sends them to an OTLP collector over HTTP, to Zipkin, or to both. Without an exporter URL, it sends nothing. | Key | Environment variable | Default | What it does | | --- | --- | --- | --- | | `app:telemetry:tracing:enabled` | `APP__TELEMETRY__TRACING__ENABLED` | `false` | Turns tracing on | | `app:telemetry:tracing:exporter_otlp` | `APP__TELEMETRY__TRACING__EXPORTER_OTLP` | empty | Full URL of the OTLP HTTP traces endpoint, such as `http://otel-collector:4318/v1/traces` | | `app:telemetry:tracing:exporter_zipkin` | `APP__TELEMETRY__TRACING__EXPORTER_ZIPKIN` | empty | URL of the Zipkin endpoint, such as `http://zipkin:9411/api/v2/spans` | ### Profiles {#profiles} OpenCTI can send continuous profiling data to a Pyroscope server, to see which functions use the CPU and the memory of the platform. | Key | Environment variable | Default | What it does | | --- | --- | --- | --- | | `app:telemetry:pyroscope:enabled` | `APP__TELEMETRY__PYROSCOPE__ENABLED` | `false` | Turns profiling on, at start | | `app:telemetry:pyroscope:exporter` | `APP__TELEMETRY__PYROSCOPE__EXPORTER` | empty | URL of the Pyroscope server | | `app:telemetry:pyroscope:identifier` | `APP__TELEMETRY__PYROSCOPE__IDENTIFIER` | `OpenCTI` | Application name of this platform in Pyroscope | **Example: Trace and profile a slow platform** Example CERT investigates slow searches on its OpenCTI. It sends traces to the OpenTelemetry collector of its monitoring stack and profiles to its Pyroscope server, under a name that tells this platform apart: ```yaml services: opencti: environment: - APP__TELEMETRY__TRACING__ENABLED=true - APP__TELEMETRY__TRACING__EXPORTER_OTLP=http://otel-collector.example.com:4318/v1/traces - APP__TELEMETRY__PYROSCOPE__ENABLED=true - APP__TELEMETRY__PYROSCOPE__EXPORTER=http://pyroscope.example.com:4040 - APP__TELEMETRY__PYROSCOPE__IDENTIFIER=opencti-example-cert ``` After `docker compose up -d opencti`, `docker compose logs opencti | grep Pyroscope` shows `Pyroscope plugin successfully loaded.`, and the traces of the `opencti-platform` service reach the collector. ## OpenCTI metrics {#opencti-metrics} `app:schema_metrics` is not an observability setting: it declares custom metrics on entities, data of the knowledge graph. See [Functional customization](https://filigran.io/docs/reference/opencti/configuration/#functional-customization). The [OpenCTI metrics reference](https://filigran.io/docs/reference/opencti/metrics/) lists every metric your version exports, with its kind, unit and attributes. They count GraphQL requests and errors (`opencti_api_requests`, `opencti_api_errors`), time each request (`opencti_api_latency`, in milliseconds), and measure emails sent and ingestion bulks. *(OpenCTI 7.261030 and later)* Recent versions add lock contention and data migration timings, the state of each dependency and the storage used. Prometheus adds `_total` to the name of a counter and `_bucket`, `_sum` and `_count` to a histogram. ### Attributes of the request metrics {#attributes-of-the-request-metrics} `opencti_api_requests`, `opencti_api_errors` and `opencti_api_latency` carry these attributes: | Attribute | Value | | --- | --- | | `operation` | `query`, `mutation` or `subscription` | | `name` | Name of the GraphQL operation, `Unspecified` when it has none | | `status` | `SUCCESS` or `ERROR` | | `type` | Error type, such as `FUNCTIONAL_ERROR`, `VALIDATION_ERROR` or `DATABASE_ERROR`, on errors only | | `user_agent` | User agent of the client, `Unspecified` when it sends none | Authentication and permission errors (`AUTH_REQUIRED`, `AUTH_FAILURE`, `FORBIDDEN_ACCESS`) are not counted as errors: the request goes to `opencti_api_requests` with the status `SUCCESS`. ### Attributes of the email and bulk metrics {#attributes-of-the-email-and-bulk-metrics} | Metric | Attribute | Value | | --- | --- | --- | | `opencti_sent_email` | `category` | Why the email was sent: `notification`, `user-notification`, `dissemination`, `password-reset`, `password-change` or `hub-registration` | | `opencti_sent_email` | `identifier` | ID of what the email comes from: the user (`user-` for `user-notification`), the dissemination list or the triggers of the notification. None for `hub-registration` | | `opencti_api_direct_bulk`, `opencti_api_side_bulk` | `type` | Entity type of the indexed elements, such as `Report`, `History` or `Activity` | `opencti_api_direct_bulk` records the size of each bulk request that writes elements to Elasticsearch. `opencti_api_side_bulk` records the size of the bulk request that then updates the entities at both ends of the relationships it wrote. Both count the lines of the request: two for each document. *(OpenCTI 7.261030 and later)* ### Health and usage metrics {#health-and-usage-metrics} `opencti_dependency_up` is `1` when a dependency answered the last check and `0` when it failed, for each `dependency`: `elasticsearch`, `storage`, `rabbitmq` or `redis`. The usage metrics give the size of the primary store of Elasticsearch or OpenSearch, the size of the stored files and the consumers on the push queues. A background monitor refreshes these values, so a scrape never contacts a dependency. Each node checks its dependencies itself, every `app:health_monitoring:dependency_check_interval` milliseconds (default `30000`). The usage metrics describe the whole cluster: one node computes them and shares them through Redis, and every node reads the shared value every `app:health_monitoring:usage_metrics_interval` milliseconds (default `300000`). The usage metrics need their manager, which is off by default: set `PLATFORM_USAGE_METRICS_MANAGER__ENABLED=true`. A usage metric that could not be collected is left out, not exported as `0`. `opencti_queue_consumers` has one value for each `connector_type` declared on the push queues, such as `EXTERNAL_IMPORT` or `INTERNAL_ENRICHMENT`, and `UNKNOWN` for the queues without a type. OpenCTI does not add them up: sum the types that matter to you, such as the consumers of the import queues to follow the capacity of your workers. ### Node.js runtime metrics {#node-js-runtime-metrics} OpenCTI also exports the standard Node.js metrics of its process: CPU, memory, heap, event loop lag and garbage collection, such as `process_resident_memory_bytes` and `nodejs_eventloop_lag_seconds`. ## OpenAEV metrics {#openaev-metrics} | Metric | Type | What it measures | | --- | --- | --- | | `openaev_dependency_up` | Gauge | `1` when the last check of a dependency succeeded, `0` when it failed. Attribute `dependency`: `postgresql`, `rabbitmq`, `s3` or `engine` (Elasticsearch) | | `openaev_dependency_probe_duration_seconds` | Gauge | Duration of the last check of each dependency | | `openaev_storage_used_bytes` | Gauge | Size used in each store. Attribute `storage`: `postgresql`, `engine` or `s3` | OpenAEV checks its dependencies every `openaev.healthcheck.connectivity-probe-interval` (default `PT10S`, ten seconds) and measures the storage every `openaev.healthcheck.storage-probe-interval` (default `PT4H`). The endpoint also serves the standard Spring Boot and Java virtual machine metrics. ## OpenCRQ traces, logs and profiles {#opencrq-traces-logs-and-profiles} OpenCRQ can also send traces and logs to an OTLP collector, and continuous profiles to Pyroscope. Each is off by default and has its own switch. Every process of the container sends its own data. | Environment variable | Default | What it does | | --- | --- | --- | | `TELEMETRY__OBSERVABILITY__SERVICE_NAME` | `opencrq-platform` | Service name of the traces, logs and metrics, and application name in Pyroscope | | `TELEMETRY__OBSERVABILITY__OTLP__TRACES__ENABLED` | `false` | Sends traces, such as a span for each HTTP request and each PostgreSQL query | | `TELEMETRY__OBSERVABILITY__OTLP__TRACES__EXPORTER` | None | URL of the collector, over gRPC, such as `http://otel-collector:4317`. Required when traces are on | | `TELEMETRY__OBSERVABILITY__OTLP__LOGS__ENABLED` | `false` | Sends the logs to the collector too. The container keeps writing them | | `TELEMETRY__OBSERVABILITY__OTLP__LOGS__EXPORTER` | None | URL of the collector, over gRPC. Required when logs are on | | `TELEMETRY__OBSERVABILITY__PYROSCOPE__ENABLED` | `false` | Sends memory and CPU profiles to Pyroscope | | `TELEMETRY__OBSERVABILITY__PYROSCOPE__SERVER_ADDRESS` | None | URL of the Pyroscope server, such as `http://pyroscope:4040`. Required when profiling is on | A switch on without its URL stops the platform at start. With a switch off, OpenCRQ does not check the other settings of that transport, so an empty URL beside it is fine. The data of each process carries its name in `process.name`: `http`, `worker` or `pm`, the process manager that supervises the other two. Pyroscope tags each profile with the same name and the process ID. When the OTLP collector does not answer, OpenCRQ logs the error once every 5 minutes, with the number of failures since. **Example: Send the traces and logs of OpenCRQ to the collector** Example CERT sends the traces and logs of its OpenCRQ to the OpenTelemetry collector of its monitoring stack, under a name that tells this platform apart: ```yaml services: opencrq: environment: - TELEMETRY__OBSERVABILITY__SERVICE_NAME=opencrq-example-cert - TELEMETRY__OBSERVABILITY__OTLP__TRACES__ENABLED=true - TELEMETRY__OBSERVABILITY__OTLP__TRACES__EXPORTER=http://otel-collector.example.com:4317 - TELEMETRY__OBSERVABILITY__OTLP__LOGS__ENABLED=true - TELEMETRY__OBSERVABILITY__OTLP__LOGS__EXPORTER=http://otel-collector.example.com:4317 ``` After `docker compose up -d opencrq`, the collector receives the traces and the logs of the `opencrq-example-cert` service, with one `process.name` for each process. ## Find OpenCTI's settings in OpenCRQ {#find-opencti-s-settings-in-opencrq} OpenCRQ's observability settings do the work of OpenCTI's under other names, with three differences on purpose: - One root, `TELEMETRY__`: `TELEMETRY__OBSERVABILITY__*` for your monitoring and `TELEMETRY__USAGE__*` for the usage telemetry ([Telemetry](https://filigran.io/docs/deploy/configure/opencrq/#telemetry)), where OpenCTI has `APP__TELEMETRY__*` and `TELEMETRY_MANAGER__*`. - One `ENABLED` switch for each transport of the metrics, the Prometheus endpoint and the OTLP push. OpenCTI has one switch for both, and turns each on by its port or its URL. - A log export to the OTLP collector, which OpenCTI does not have. | OpenCRQ | OpenCTI | What differs | | --- | --- | --- | | `TELEMETRY__OBSERVABILITY__PROMETHEUS__ENABLED` | `APP__TELEMETRY__METRICS__ENABLED` | OpenCTI's switch turns both transports on | | `TELEMETRY__OBSERVABILITY__PROMETHEUS__PORT` | `APP__TELEMETRY__METRICS__EXPORTER_PROMETHEUS` | Nothing: same default, `14269` | | `TELEMETRY__OBSERVABILITY__PROMETHEUS__HOST` | `APP__TELEMETRY__METRICS__EXPORTER_PROMETHEUS_HOST`, from OpenCTI 7.261119 | Nothing: same default, `0.0.0.0` | | `TELEMETRY__OBSERVABILITY__PROMETHEUS__COLLECT_TIMEOUT_MS`, `TELEMETRY__OBSERVABILITY__PROMETHEUS__ROUND_DEADLINE_MS`, `TELEMETRY__OBSERVABILITY__PROMETHEUS__MIN_INTERVAL_MS`, `TELEMETRY__OBSERVABILITY__PROMETHEUS__MAX_REPLY_BYTES`, `TELEMETRY__OBSERVABILITY__PROMETHEUS__PUBLIC_PORT` | None | OpenCTI serves the metrics of its own process, with nothing to collect from others | | `TELEMETRY__OBSERVABILITY__OTLP__METRICS__ENABLED` | `APP__TELEMETRY__METRICS__ENABLED` | OpenCTI's switch turns both transports on | | `TELEMETRY__OBSERVABILITY__OTLP__METRICS__EXPORTER` | `APP__TELEMETRY__METRICS__EXPORTER_OTLP` | OpenCRQ pushes over gRPC every 60 seconds, OpenCTI over HTTP every second | | `TELEMETRY__OBSERVABILITY__OTLP__TRACES__ENABLED` | `APP__TELEMETRY__TRACING__ENABLED` | Nothing | | `TELEMETRY__OBSERVABILITY__OTLP__TRACES__EXPORTER` | `APP__TELEMETRY__TRACING__EXPORTER_OTLP` | OpenCRQ sends over gRPC, to an address such as `http://otel-collector:4317`; OpenCTI over HTTP, to the full URL ending in `/v1/traces`. OpenCRQ has no Zipkin export | | `TELEMETRY__OBSERVABILITY__OTLP__LOGS__ENABLED`, `TELEMETRY__OBSERVABILITY__OTLP__LOGS__EXPORTER` | None | OpenCTI does not export its logs | | `TELEMETRY__OBSERVABILITY__PYROSCOPE__ENABLED` | `APP__TELEMETRY__PYROSCOPE__ENABLED` | Nothing | | `TELEMETRY__OBSERVABILITY__PYROSCOPE__SERVER_ADDRESS` | `APP__TELEMETRY__PYROSCOPE__EXPORTER` | Nothing | | `TELEMETRY__OBSERVABILITY__SERVICE_NAME` | `APP__TELEMETRY__PYROSCOPE__IDENTIFIER`, for Pyroscope | OpenCRQ's name also goes on its traces, logs and metrics. OpenCTI's traces always carry `opencti-platform` | ## OpenCRQ metrics {#opencrq-metrics} Every series carries the labels `process_name`, `service_name` and `service_version`. With the default `split` profile, `process_name` is `http`, `worker` or `pm`, the process manager, which sends the supervision metrics and the Node.js metrics of its own process. With the `monolith` profile, it is `main` or `pm`, and `main` sends what `http` and `worker` send. The endpoint names a family after its OpenTelemetry name, with `_` for each dot and `_total` after a counter; it never adds the unit, which the table gives. The OTLP push sends the dotted names, such as `db.client.connection.count`, every 60 seconds, with one more attribute, `service.instance.id`: the name and the process ID of the process, such as `worker-412`, new at every restart. The scraped series never carry it. To read a container as a whole, add up a counter or a count across its processes, with `sum by (instance)`, and keep `instance` in the grouping when Prometheus scrapes several containers, or their series are added together. Never add up a ratio or a delay, such as `nodejs_eventloop_utilization` or `nodejs_eventloop_delay_mean`: take its `max` or its `avg`. A percentile, such as `nodejs_eventloop_delay_p99`, cannot be combined across processes: take the worst one, with `max`. | Metrics | Type | Processes | What they measure | | --- | --- | --- | --- | | `opencrq_pm_processes` | Gauge | `pm` | Supervised processes in each state of their lifecycle, attribute `state`: `FORKING`, `BOOTING`, `STARTING`, `RUNNING`, `STOPPING`, `STOPPED`, `EXITED` or `ERROR` | | `opencrq_pm_collection_ok`, `opencrq_pm_collection_duration`, `opencrq_pm_collection_failures_total` | Gauge, histogram, counter | `pm` | For each process the endpoint collects (`supervised_process`, `pm` included): whether its last collection succeeded (`1`) or not (`0`), how long it took, in seconds, and its failures by `reason`: `timeout`, `error`, `not_connected`, `not_running`, `oversized`, `invalid`, `empty` or `send_error`. Only while the Prometheus endpoint runs: see [How the endpoint collects the processes](#how-the-endpoint-collects-the-processes) | | `db_client_connection_count`, `db_client_connection_limit`, `db_client_connection_pending_requests` | Gauge | `http`, `worker` | The connections of each database pool, `used` or `idle` (attribute `db_client_connection_state`), the limit of the pool and the callers waiting for one | | `db_client_connection_wait_time`, `db_client_connection_use_time`, `db_client_connection_timeouts_total` | Histogram, counter | `http`, `worker` | The time to get a connection and the time it was held, in seconds, and the requests that timed out | | `opencrq_db_client_connection_reconnection_attempts_total` | Counter | `http`, `worker` | Attempts to connect to the database again after an error of the pool | | `db_client_operation_duration` | Histogram | `http`, `worker` | Duration of the database queries, in seconds, by `db_operation_name`: `SELECT`, `INSERT`, `UPDATE`, `DELETE` or `_OTHER`. Also by `server_address`, `server_port`, `db_namespace` (the database), `db_system_name` and, when the PostgreSQL instrumentation reports it, `error_type`: a SQLSTATE of the classes `08`, `22`, `23`, `25`, `28`, `3D`, `40`, `42`, `53`, `55`, `57`, `58` or `XX`, any other as `_OTHER` | | `opencrq_trpc_server_duration` | Histogram | `http` | Duration of the API calls, in seconds, by `trpc_type` (`query` or `mutation`) and `error_type` (a tRPC error code, such as `NOT_FOUND`, or `_OTHER`). No procedure, on purpose: it is on the counter below. Subscriptions are not measured | | `opencrq_trpc_server_calls_total` | Counter | `http` | The API calls, by procedure (`trpc_procedure`), `trpc_type` and `error_type` | | `opencrq_recompute_asks_total` | Counter | `http`, `worker` | Requests to run a background job again, by `job_kind`, `path`, `already_existed` (`true` when the request joined a job already queued) and `reason`. The `path` is `dispatcher` (the dispatcher of background jobs), `followup` (asked by the platform after its own work), `manual` (asked from the interface) or `sweep` (a backfill). On the `dispatcher` path only, `reason` says why: `change` (the job's data changed), `reconnect` (catching up after a reconnection), `daily` (the daily run) or `followup` (its data changed during its last run). `manual` asks and some `followup` asks come from `http` | | `opencrq_recompute_unattributed_reads_total` | Counter | `worker` | Runs of a background job whose reads could not be tied to tables, so that any change of data asks for it again, by `job_kind`. An engineering signal | | `opencrq_recompute_feeding_cycles_total` | Counter | `worker` | Kinds of background job whose reads and writes feed each other, by `job_kind` and `cycle` (the kinds joined by ` -> `). They still run, and the log says `Recompute jobs feed each other: their reads and writes form a cycle`. An engineering signal | | `opencrq_opencti_mirror_rebuild_actors_total` | Counter | `worker` | Threats of the OpenCTI stream that a rebuild settled, by `outcome`: `rebuilt`, `retracted` (deleted in OpenCTI) or `failed` | | `opencrq_events_doorbells_total`, `opencrq_events_doorbell_procedures` | Counter, histogram | `http` | The data changes that make the open screens reload, by `resolution` (`named`, the queries it makes stale are known, or `all`), and how many queries each `named` one makes stale | | `opencrq_events_query_index_explains_total`, `opencrq_events_query_index_procedures` | Counter, gauge | `http` | The `EXPLAIN` statements run to learn which tables each query reads, by `outcome` (`ok` or `refused`), and the queries the index knows, by `state`: `observed`, `declared`, `widened` or `without_reads`. An engineering signal | | `nodejs_eventloop_utilization`, `nodejs_eventloop_delay_max`, `nodejs_eventloop_delay_mean`, `nodejs_eventloop_delay_p99` | Gauge | Every process | Load of the event loop, a ratio, and its delay, in seconds | | `nodejs_eventloop_time_total` | Counter | Every process | Time the event loop spent `active` or `idle` (attribute `nodejs_eventloop_state`), in seconds | | `v8js_gc_duration`, `v8js_memory_heap_used` | Histogram, gauge | Every process | Garbage collection time, in seconds, every kind of collection in one series, and the heap used, in bytes, one series for each heap space (`v8js_heap_space_name`): add them up | | `process_cpu_time_total`, `process_cpu_utilization`, `process_memory_usage` | Counter, gauge | Every process | CPU time, in seconds, and share of the CPU, by `cpu_mode` (`user` or `system`), and memory of each process, in bytes | The series of a pool carry its name, `db_client_connection_pool_name`: `host:port/database`, such as `pgsql:5432/opencrq` in xtm-docker. Each of `http` and `worker` has two pools: the main one, of `POSTGRES__POOL_MAX` connections, and the one of the background jobs' leases, `pgsql:5432/opencrq#control`, of 5 connections. A family appears only once it has something to report: a family that counts failures after the first one, such as `db_client_connection_timeouts_total`, and the wait and use times of a pool after its first connection. Write the panels and alerts so that a missing series counts as zero. `or vector(0)` gives a series without labels: it fills a total, not a series by process or by instance. ### Histogram buckets {#histogram-buckets} A panel or a `histogram_quantile` on `le` reads these bounds. A quantile never goes above the highest one. | Histogram | Bounds | | --- | --- | | `db_client_operation_duration`, `db_client_connection_wait_time` | 0.005, 0.025, 0.1, 0.5, 2, 10 and 60 seconds | | `db_client_connection_use_time` | The same, then 300 and 1800 seconds | | `opencrq_trpc_server_duration` | 0.05, 0.25, 1, 5, 30 and 120 seconds | | `v8js_gc_duration` | 0.001, 0.01, 0.1, 1, 5 and 10 seconds | | `opencrq_pm_collection_duration` | 0.05, 0.25, 1, 2.5 and 4.5 seconds | | `opencrq_events_doorbell_procedures` | 0, 1, 2, 5, 10, 20, 50 and 100 queries | ### Left out on purpose {#left-out-on-purpose} OpenCRQ drops these families before either transport, so do not look for them: - The event loop delays other than the maximum, the mean and the p99: `nodejs.eventloop.delay.min`, `nodejs.eventloop.delay.stddev`, `nodejs.eventloop.delay.p50` and `nodejs.eventloop.delay.p90`. - `v8js.memory.heap.space.*`, three families on the heap spaces `v8js_memory_heap_used` already reports, and `v8js.resource.active`, whose series would grow with what the process holds. - The HTTP and system metrics of the instrumentations: `http.server.*`, `http.client.*` and `system.*`. - The pool metrics of the PostgreSQL instrumentation, `db.client.connection.*`, including `db.client.connection.max`, the former name of the limit: OpenCRQ measures its pools itself, under the names of the table. `v8js.memory.heap.limit` is never sent. OpenCRQ ships no dashboard and no alert rule. ### Show OpenCRQ on OpenCTI's runtime dashboards {#show-opencrq-on-opencti-s-runtime-dashboards} OpenCTI exports its Node.js metrics with the package `opentelemetry-node-metrics` 3.0.0, under other names than OpenCRQ's. These recording rules write OpenCRQ's under OpenCTI's names, so that a panel built on OpenCTI's Node.js metrics shows OpenCRQ unchanged, as long as it selects no `job` of its own: the recorded series keep `job="opencrq"`. OpenCTI has no pool, query or supervision metrics, so only the Node.js metrics need a rule. | OpenCRQ | OpenCTI | Rule | | --- | --- | --- | | `nodejs_eventloop_delay_max`, `nodejs_eventloop_delay_mean`, `nodejs_eventloop_delay_p99` | `nodejs_eventloop_lag_max_seconds`, `nodejs_eventloop_lag_mean_seconds`, `nodejs_eventloop_lag_p99_seconds` | Rename. The p99 is the worst process's, not a percentile of the container | | `v8js_gc_duration` | `nodejs_gc_duration_seconds` | Rename. No `kind` label: the four kinds of collection are one series. OpenCTI's bounds are 0.001, 0.01, 0.1, 1, 2 and 5 seconds, so a panel on `le="2"` stays empty | | `v8js_memory_heap_used` | `nodejs_heap_space_size_used_bytes` | Rename of the metric and of its label, `space`, whose values lose their `_space` suffix | | `v8js_memory_heap_used`, added up over the spaces | `nodejs_heap_size_used_bytes` | Close, not equal: OpenCTI's is the heap used that Node.js reports for the whole process | | `process_memory_usage` | `process_resident_memory_bytes` | Rename | | `process_cpu_time_total`, `user`, `system` or both | `process_cpu_user_seconds_total`, `process_cpu_system_seconds_total`, `process_cpu_seconds_total` | Rename, and a sum for the total | | `nodejs_eventloop_utilization` | None: a ratio, where OpenCTI measures a lag | Point the panel at `nodejs_eventloop_lag_mean_seconds` | | `process_cpu_utilization` | None | Point the panel at `rate(process_cpu_seconds_total[5m])` | | `nodejs_eventloop_time_total` | None | Query it under its own name | Every rule selects `job="opencrq"`. OpenCTI serves `process_cpu_seconds_total`, `process_cpu_user_seconds_total`, `process_cpu_system_seconds_total` and `process_resident_memory_bytes` too, and without the selector the series of both modules would be added together. Change it when your job has another name; never remove it. ```yaml groups: - name: opencrq-opencti-runtime rules: - record: nodejs_eventloop_lag_max_seconds expr: max without (process_name) (nodejs_eventloop_delay_max{job="opencrq"}) - record: nodejs_eventloop_lag_mean_seconds expr: avg without (process_name) (nodejs_eventloop_delay_mean{job="opencrq"}) - record: nodejs_eventloop_lag_p99_seconds expr: max without (process_name) (nodejs_eventloop_delay_p99{job="opencrq"}) - record: process_resident_memory_bytes expr: sum without (process_name) (process_memory_usage{job="opencrq"}) - record: nodejs_heap_size_used_bytes expr: sum without (process_name, v8js_heap_space_name) (v8js_memory_heap_used{job="opencrq"}) - record: nodejs_heap_space_size_used_bytes expr: sum without (process_name, v8js_heap_space_name) (label_replace(v8js_memory_heap_used{job="opencrq"}, "space", "$1", "v8js_heap_space_name", "(.*)_space")) - record: process_cpu_user_seconds_total expr: sum without (process_name, cpu_mode) (process_cpu_time_total{job="opencrq", cpu_mode="user"}) - record: process_cpu_system_seconds_total expr: sum without (process_name, cpu_mode) (process_cpu_time_total{job="opencrq", cpu_mode="system"}) - record: process_cpu_seconds_total expr: sum without (process_name, cpu_mode) (process_cpu_time_total{job="opencrq"}) - record: nodejs_gc_duration_seconds_bucket expr: sum without (process_name) (v8js_gc_duration_bucket{job="opencrq"}) - record: nodejs_gc_duration_seconds_sum expr: sum without (process_name) (v8js_gc_duration_sum{job="opencrq"}) - record: nodejs_gc_duration_seconds_count expr: sum without (process_name) (v8js_gc_duration_count{job="opencrq"}) ``` The mean is exact only when every process measured as many delays. The heap space rule gives a `space` label to the spaces whose name ends in `_space`, which V8 gives all of them today. A panel on another runtime metric of OpenCTI, such as `nodejs_eventloop_lag_seconds`, stays empty. ### Alerts worth setting {#alerts-worth-setting} The pool of a process is saturated when all its connections are in use and callers wait for one, across several scrapes: ```promql ( db_client_connection_count{db_client_connection_state="used"} >= ignoring (db_client_connection_state) db_client_connection_limit ) and ignoring (db_client_connection_state) ( db_client_connection_pending_requests > 0 ) ``` On the main pool, raise `POSTGRES__POOL_MAX`, and `max_connections` on PostgreSQL with it: see [Database](https://filigran.io/docs/deploy/configure/opencrq/#database). The alert can also fire on the `#control` pool, at its limit of 5, which `POSTGRES__POOL_MAX` does not change. A threat that fails its rebuild fails again at every run, and the run still succeeds. Alert when `increase(opencrq_opencti_mirror_rebuild_actors_total{outcome="failed"}[1h]) > 0` stays true over several hours. The log line `OpenCTI actor rebuild failed, its rows stay marked` gives the STIX ID of the threat. ### How the endpoint collects the processes {#how-the-endpoint-collects-the-processes} At each scrape, the process manager asks every process for its metrics and merges them into one document. A process that answers too late, or sends too much, is left out of that document and counted in `opencrq_pm_collection_failures_total`. The scrape is neither delayed nor broken: it gets the metrics of the processes that answered in time. | Environment variable | Default | What it sets | | --- | --- | --- | | `TELEMETRY__OBSERVABILITY__PROMETHEUS__COLLECT_TIMEOUT_MS` | `2500` | How long the endpoint waits for each process, in milliseconds | | `TELEMETRY__OBSERVABILITY__PROMETHEUS__ROUND_DEADLINE_MS` | `4500` | How long a whole collection may take. Must be above `COLLECT_TIMEOUT_MS`, or OpenCRQ stops at start | | `TELEMETRY__OBSERVABILITY__PROMETHEUS__MIN_INTERVAL_MS` | `5000` | Within this time after a collection starts, a scrape gets the same document again, failures included | | `TELEMETRY__OBSERVABILITY__PROMETHEUS__MAX_REPLY_BYTES` | `2097152` | The largest share of one process, in bytes. A larger one is refused, with the reason `oversized` | | `TELEMETRY__OBSERVABILITY__PROMETHEUS__PUBLIC_PORT` | None | The port the endpoint is published on, when it differs. Written in the logs only | The process manager records the outcome of a collection after it has taken its own metrics, so the collection families show each outcome one scrape late, and are missing from the first scrape after a start. They exist only while the Prometheus endpoint runs; with the OTLP push on too, the process manager pushes them as well. The endpoint stays off, with an error in the logs, when it cannot start, when its port is the port of the health check (`Metrics scrape port is already the healthcheck port; metrics endpoint disabled`), or when a process of the profile takes the process manager's own name (`Process profile names a child after the process manager's own reserved name; metrics endpoint disabled`). The rest of the platform keeps running. When Prometheus cannot connect, look for these lines first. ## What's next {#what-s-next} - [Check that the platforms are healthy](https://filigran.io/docs/deploy/operate/health-probes/), to let an orchestrator or a load balancer check the platforms. - [OpenCTI configuration](https://filigran.io/docs/reference/opencti/configuration/) and [OpenAEV configuration](https://filigran.io/docs/reference/openaev/configuration/), every key. - [Configure OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/#telemetry), for its usage telemetry and the names its telemetry variables had in earlier builds. - The [OpenCTI metrics reference](https://filigran.io/docs/reference/opencti/metrics/), every metric of your version. - [Troubleshoot the XTM stack](https://filigran.io/docs/deploy/operate/troubleshoot/), to find the logs. --- # Manage Elasticsearch indices > How OpenCTI organizes its Elasticsearch or OpenSearch indices, the rollover policy that keeps their shards small, and the permissions its user needs. - URL: https://filigran.io/docs/deploy/operate/rollover/ - Products: OpenCTI 7.261119.0 - For: platform engineers - Type: How-to guide OpenCTI stores its knowledge in about fifteen Elasticsearch or OpenSearch indices and rolls them over so that no shard grows too big. This page says which indices exist, which policy rolls them over and how to change it, how to check that it works, and which permissions the OpenCTI user needs on a secured cluster. **Diagram: OpenCTI writes through an alias that the lifecycle policy moves to a new index generation, and reads every generation with a wildcard** - OpenCTI: OpenCTI (Writes and reads its indices) - Names: opencti_history (Write alias), opencti_history-* (Reads all generations), opencti-ilm-policy (50 GB primary shard or 75,000,000 documents) - Index generations: opencti_history-000001 (Created at the first start), opencti_history-000002 (Created at rollover) Connections: - OpenCTI → opencti_history: writes - OpenCTI → opencti_history-*: reads - opencti_history → opencti_history-000001: before rollover - opencti_history → opencti_history-000002: after rollover - opencti_history-* → opencti_history-000001 - opencti_history-* → opencti_history-000002 - opencti-ilm-policy → opencti_history-000002: creates ## How OpenCTI uses its indices {#how-opencti-uses-its-indices} OpenCTI writes to each index through an alias, and reads all its generations with a wildcard. At the first start, it creates each index with the suffix `-000001` (`elasticsearch:index_creation_pattern`), for example `opencti_history-000001`, and a lifecycle policy: | Engine | Policy | Rolls over when | | --- | --- | --- | | Elasticsearch | `opencti-ilm-policy`, index lifecycle management (ILM) | A primary shard reaches 50 GB, or the index reaches 75,000,000 documents | | OpenSearch | `opencti-ism-policy`, index state management (ISM) | The same thresholds | At rollover, the engine creates the next generation, `-000002`, and moves the write alias to it. The `opencti` prefix is `elasticsearch:index_prefix`. The indices are: `opencti_deleted_objects`, `opencti_draft_objects`, `opencti_files`, `opencti_history`, `opencti_inferred_entities`, `opencti_inferred_relationships`, `opencti_internal_objects`, `opencti_internal_relationships`, `opencti_stix_core_relationships`, `opencti_stix_cyber_observable_relationships`, `opencti_stix_cyber_observables`, `opencti_stix_domain_objects`, `opencti_stix_meta_objects`, `opencti_stix_meta_relationships`, `opencti_stix_sighting_relationships`. Four of them usually grow fastest: | Index | Holds | | --- | --- | | `opencti_stix_meta_relationships` | The links between objects and their labels, markings, external references and authors | | `opencti_history` | The history of every object | | `opencti_stix_cyber_observables` | The observables | | `opencti_stix_core_relationships` | The STIX relationships | ## Change the rollover thresholds {#change-the-rollover-thresholds} The thresholds are set in the OpenCTI configuration: | Key | Environment variable | Default | | --- | --- | --- | | `elasticsearch:max_primary_shard_size` | `ELASTICSEARCH__MAX_PRIMARY_SHARD_SIZE` | `50gb` | | `elasticsearch:max_docs` | `ELASTICSEARCH__MAX_DOCS` | `75000000` | OpenCTI writes the policy when it creates its indices, so set them before the first start. On OpenSearch, an existing `opencti-ism-policy` is never overwritten: to change the thresholds afterwards, edit the policy in OpenSearch. ## Check the rollover {#check-the-rollover} In xtm-docker, from the `xtm-docker` folder: ```bash docker compose exec elasticsearch curl -s "http://localhost:9200/_cat/aliases/opencti_*?v&s=alias" docker compose exec elasticsearch curl -s "http://localhost:9200/opencti_history-*/_ilm/explain?filter_path=indices.*.policy,indices.*.phase" ``` **Check that it worked** The first command lists each alias, such as `opencti_history`, with its index generations. The second shows `"policy":"opencti-ilm-policy"` for every `opencti_history` index. ## Permissions on a secured cluster {#permissions-on-a-secured-cluster} On a cluster with security on, the user OpenCTI connects with needs these permissions. They are given in the OpenSearch format. - On the indices that match `opencti*` (or your `elasticsearch:index_prefix`): `indices_all`. - On the cluster: - `cluster_composite_ops_ro` - `cluster_manage_index_templates` - `cluster:admin/ingest/pipeline/put` - `cluster:admin/opendistro/ism/policy/write` - `cluster:monitor/health` - `cluster:monitor/main` - `cluster:monitor/state` - `cluster:monitor/task/get` - `indices:admin/index_template/put` - `indices:data/read/scroll/clear` - `indices:data/read/scroll` - `indices:data/write/bulk` > **Warning: Keep the indices permissions in the cluster permissions** > > The `indices:` permissions must also be in the cluster permissions, even if the index permissions already include them. Without them, OpenCTI can fail to start. ## Platforms created before OpenCTI 5.9 {#platforms-created-before-opencti-5-9} A platform first started before OpenCTI 5.9 has no lifecycle policy on its indices. To add one: 1. Upgrade the platform to the latest version. 2. Check that the policy and the index templates exist after the migration. 3. Split every shard larger than 50 GB into new indices, with the tools of your engine. 4. Point the write alias to the latest index, and check that the policy runs. Ask on the [Filigran community Slack](https://community.filigran.io) if you need help with this migration. ## What's next {#what-s-next} - [Back up and restore](https://filigran.io/docs/deploy/operate/backup/), with Elasticsearch snapshots. - [Scale: workers, platforms and clusters](https://filigran.io/docs/deploy/operate/scale/), for an Elasticsearch cluster. - [OpenCTI configuration](https://filigran.io/docs/reference/opencti/configuration/), every `elasticsearch` key. --- # Scale: workers, platforms and clusters > Add OpenCTI workers in the XTM stack, run several OpenCTI nodes as a cluster, and put Elasticsearch, Redis, RabbitMQ and S3 storage in cluster mode. - URL: https://filigran.io/docs/deploy/operate/scale/ - Products: OpenCTI 7.261119.0 - For: platform engineers - Type: How-to guide OpenCTI scales horizontally: you add workers to write data faster, OpenCTI nodes to serve more users and more ingestion, and you put its shared services in cluster mode for capacity and high availability. This page goes from the first step, more workers in xtm-docker, to a full cluster. ## Before you start {#before-you-start} - A running OpenCTI: see [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/). - To size what you add, see [Sizing](https://filigran.io/docs/deploy/plan/sizing/). ## Add workers {#add-workers} Workers take the bundles that connectors put in RabbitMQ and write them through the OpenCTI API. More workers write more bundles in parallel. xtm-docker starts three, as the `worker` service with `replicas: 3`. 1. Set the number of workers in `docker-compose.override.yml`, as [Change the stack without editing docker-compose.yml](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml) describes. For four workers: ```yaml services: worker: deploy: replicas: 4 ``` 2. Apply it. ```bash docker compose up -d worker ``` **Check that it worked** ```bash docker compose ps worker --format '{{.Name}}' ``` It lists four containers. To try a number without changing a file, run `docker compose up -d --scale worker=4`. The next `docker compose up -d` without `--scale` goes back to the number in the files. Keep three or four workers for each OpenCTI node. Past that, workers wait for the platform and can fail with lock timeouts: add an OpenCTI node instead. ### Size what each worker does at once {#size-what-each-worker-does-at-once} A worker reads every connector queue at once, but writes one bundle at a time from each queue, in a pool of threads. The pools cap how many bundles a worker writes in parallel. Set these variables on the `worker` service; without containers, they can also go in the `config.yml` next to `worker.py`, under `opencti` or `worker` as their key says. | Variable | `config.yml` key | Default | Effect | | --- | --- | --- | --- | | `OPENCTI_EXECUTION_POOL_SIZE` | `opencti.execution_pool_size` | `2` | Threads that write the bundles of the connectors | | `OPENCTI_REALTIME_EXECUTION_POOL_SIZE` | `opencti.realtime_execution_pool_size` | `3` | Threads kept for the work users wait for: the validation of drafts, the form intakes and, with `PLAYBOOK_MANAGER__REALTIME_PRIORITY=true` on the platform, the playbooks. When one pool is full and the other has a free thread, the worker borrows it, so a quiet worker writes up to five bundles at once by default | | `WORKER_LISTEN_POOL_SIZE` | `worker.listen_pool_size` | `5` | Threads that call the connectors that receive their work over HTTP rather than from RabbitMQ: see [Run an integration by hand](https://filigran.io/docs/deploy/integrations/manual/) | Each thread holds a call to the platform, so a node counts threads, not workers: two workers with four threads load it as much as four workers with two. Raise the pools rather than the number of workers when the host of the workers has CPU left and the platform does not: the three or four workers per node of [Add workers](#add-workers) count with the default pools. The observability metrics of the workers show the threads: `opencti_running_ingestion_units` counts the threads the two pools have started, which stay once started, and `opencti_max_ingestion_units` the size of the connector pool only, so a busy worker shows more running units than its maximum. See [Observability metrics](https://filigran.io/docs/deploy/operate/metrics/). ### Shape the calls of the workers to the platform {#shape-the-calls-of-the-workers-to-the-platform} When the workers reach OpenCTI from another network, through a reverse proxy or an API gateway, these settings shape their calls to the API: | Variable | Default | Effect | | --- | --- | --- | | `OPENCTI_SSL_VERIFY` | `false` | Whether the worker checks the certificate of the platform. Set `true` as soon as `OPENCTI_URL` is an `https://` address: see [Trust your certificate authority and proxy](https://filigran.io/docs/deploy/configure/certificates/#trust-your-internal-certificate-authority) to trust your CA | | `OPENCTI_CUSTOM_HEADERS` | | Headers added to the calls of the worker, as `name:value` pairs separated by `;`, such as `X-Request-Source:opencti-worker;X-Region:eu-west-3`. A pair without `:` is ignored, with `Ignored invalid header pair` in the logs | | `OPENCTI_REQUESTS_TIMEOUT` | `300` | Seconds the worker waits for an answer of the API before it gives up on a call | | `WORKER_PROMETHEUS_TELEMETRY_HOST` | `0.0.0.0` | The address the metrics endpoint of the worker listens on, with `WORKER_TELEMETRY_ENABLED=true`. `0.0.0.0` listens on every interface, as a container needs. Without containers, `127.0.0.1` keeps the metrics on the host | > **Warning** > > In this version, the headers and the timeout apply only to the calls the worker makes for itself, such as the list of connectors it reads every minute. The bundles it writes go without the headers and wait 300 seconds: a gateway that requires a header refuses them, so let the workers reach the platform without it, for example on an ingestion node of [Run OpenCTI as a cluster](#run-opencti-as-a-cluster). Set the timeout in `config.yml`, as `opencti.requests_timeout`, rather than as `OPENCTI_REQUESTS_TIMEOUT`: the worker passes the variable on as text, which its HTTP client refuses, and the worker then never reads the list of connectors. **Example: Workers in another data center over HTTPS** Example CERT runs its workers in a second data center. They reach the ingestion node at `https://cti-ingest.example.com`, whose certificate the internal CA signed, and Prometheus scrapes each worker on the worker host: ```yaml services: worker: environment: - OPENCTI_URL=https://cti-ingest.example.com - OPENCTI_TOKEN=${OPENCTI_WORKER_TOKEN} - OPENCTI_SSL_VERIFY=true - HTTPS_CA_CERTIFICATES=/opt/certs/internal-ca.pem - OPENCTI_EXECUTION_POOL_SIZE=4 - OPENCTI_REALTIME_EXECUTION_POOL_SIZE=2 - WORKER_TELEMETRY_ENABLED=true - WORKER_PROMETHEUS_TELEMETRY_HOST=0.0.0.0 volumes: - ./certs:/opt/certs:ro deploy: replicas: 2 ``` Two workers with four threads for the connectors write as many bundles at once as four workers with the default two, with half the containers to watch. They refuse any server at `cti-ingest.example.com` whose certificate the internal CA did not sign. ### Tune what workers write {#tune-what-workers-write} Two behaviors of the workers change what reaches the knowledge base. Set their variables on the `worker` service. `WORKER_OBJECTS_MAX_REFS` (default `0`): when above 0, a worker does not write an object that has this many references or more, such as a report that contains 50,000 objects. It sets the object aside in the RabbitMQ queue `listen_too-large-bundle`, with the connector it came from. `0` writes every object. Without containers, it can also go in the `config.yml` next to `worker.py`, as `objects_max_refs` under `worker`. When OpenCTI refuses an object because an object it refers to is not written yet, a worker tries again up to 4 times, waiting 1 to 3 seconds before each try. *(OpenCTI 7.261030 and later)* `OPENCTI_MISSING_REF_RETRY_EXPONENTIAL=true` changes those waits to about 0.5, 1, 2, then 4 seconds, which suits a reference that arrives a moment later. `OPENCTI_MISSING_REF_RETRY_INITIAL_DELAY` (`0.5` seconds) sets the first wait and `OPENCTI_MISSING_REF_RETRY_FACTOR` (`2`) multiplies it at each try; each wait varies by up to half its value. These three are read from the environment only. The log level and the metrics of workers are in [Troubleshoot](https://filigran.io/docs/deploy/operate/troubleshoot/) and [Observability metrics](https://filigran.io/docs/deploy/operate/metrics/), and their TLS settings for RabbitMQ in [Configure the shared services](https://filigran.io/docs/deploy/configure/shared-services/#rabbitmq). ## Run OpenCTI as a cluster {#run-opencti-as-a-cluster} Several OpenCTI nodes form a cluster when they use the same Elasticsearch, Redis, RabbitMQ and S3 storage, with the same configuration. They share the work through Redis: you do not declare the nodes to each other. Once they run, **Settings > Parameters** shows the **Number of node(s)**. To avoid congestion, give the nodes two roles: **Diagram: An OpenCTI cluster splits the nodes for users from the nodes for ingestion, on shared clustered services** - Clients: Users (Browser and API clients), Connectors (Register and send data), Workers (3 to 4 per ingestion node) - OpenCTI: Load balancer (In front of the user nodes), User nodes (Interface, API, connector registration), Ingestion nodes (Never reached by users) - Shared services: Elasticsearch (Cluster, every node declared), Redis (Cluster mode), RabbitMQ (Behind a TCP load balancer), S3 storage (Any S3-compatible service) Connections: - Users → Load balancer - Connectors → Load balancer: register - Load balancer → User nodes - Workers → Ingestion nodes: write bundles - User nodes → Elasticsearch: shared stores - Ingestion nodes → Elasticsearch: shared stores - Workers → RabbitMQ: read queues - **User nodes**, behind a load balancer, serve the interface, the API and the registration of connectors. - **Ingestion nodes** receive the bundles of the workers. Point each worker at one of them with `OPENCTI_URL`, three or four workers per node. Users never reach these nodes. The rule engine, the task manager and the notification manager use resources in the process of a node. Turn them off on the user nodes; OpenCTI runs each manager on the nodes where it is still on. ```yaml - RULE_ENGINE__ENABLED=false - TASK_SCHEDULER__ENABLED=false - NOTIFICATION_MANAGER__ENABLED=false ``` What each manager does is in [How OpenCTI works](https://filigran.io/docs/opencti/concepts/architecture/#managers). Each node needs its health probes behind the load balancer: see [Check that the platforms are healthy](https://filigran.io/docs/deploy/operate/health-probes/). These settings shape each node: | Variable | Default | Set it to | | --- | --- | --- | | `APP__PORT` | `4000` | The port the node listens on. xtm-docker sets `8080`: the workers and the load balancer reach the nodes on it | | `APP__ENABLED_UI` | `true` | `false` on the ingestion nodes: they serve the API only, without the web interface and the GraphQL playground | | `APP__ENABLED` | `true` | `false` on a node that only runs managers. It starts no HTTP server, so it serves neither API nor health probes: watch its process or its logs instead | | `APP__NODE_IDENTIFIER` | A random UUID at each start | A name of its own for each node, such as `opencti-ingest-1`, so that it keeps the same identity in the cluster across restarts. Give each node a different one | Every node of the cluster runs the same platform: they share its identifier, kept in the platform settings. `PLATFORM_ID` forces that identifier, a UUID, when OpenCTI creates the platform or, on an existing one, at the next start. Use it to rebuild a platform with the identifier it had, such as for an Enterprise Edition license issued for that platform; leave it unset otherwise. ### Locks between the nodes {#locks-between-the-nodes} Before it writes an element, a node takes a lock on it in Redis, so that two nodes or two workers never write the same element at once. A node holds a lock for `APP__CONCURRENCY__MAX_TTL` and extends it while it works; a lock its node stops extending, after a crash, frees itself after that time. When the element is already locked, the node tries again `APP__CONCURRENCY__RETRY_COUNT` times, every `APP__CONCURRENCY__RETRY_DELAY` give or take a random `APP__CONCURRENCY__RETRY_JITTER`, then fails with a lock error. | Variable | Default | Effect | | --- | --- | --- | | `APP__CONCURRENCY__RETRY_COUNT`, `APP__CONCURRENCY__RETRY_DELAY`, `APP__CONCURRENCY__RETRY_JITTER` | `100`, `250` ms, `100` ms | How long a node waits for a locked element: about 25 seconds by default | | `APP__CONCURRENCY__MAX_TTL` | `60000` ms | The lifetime of a lock, and of each extension | | `APP__CONCURRENCY__EXTENSION_THRESHOLD` | `5000` ms | The node extends a lock when it is twice this time away from expiring. Raise it if locks expire while a busy node works | | `APP__CHILD_LOCKING_PROCESS__ENABLED` | `true` | Takes and extends the locks in a separate Node.js process, so that a busy node does not miss an extension. Keep `true` | | `APP__CHILD_LOCKING_PROCESS__MAX_MEMORY` | `256` MB | The heap of that process | Lock errors in the logs of the workers mean that they wait too long for the same elements: keep three or four workers per node, as [Add workers](#add-workers) says, and add an ingestion node rather than workers. *(OpenCTI 7.261030 and later)* Two [observability metrics](https://filigran.io/docs/deploy/operate/metrics/) show the contention before the errors: `opencti_lock_contentions` counts the locks that needed more than one attempt, and `opencti_lock_acquire_wait` measures the wait, in milliseconds. All settings: [Technical customization](https://filigran.io/docs/reference/opencti/configuration/#technical-customization). ## Put the shared services in cluster mode {#put-the-shared-services-in-cluster-mode} ### Elasticsearch {#elasticsearch} Declare every node of the cluster, as a JSON array: ```yaml - 'ELASTICSEARCH__URL=["https://user:pass@node1:9200","https://user:pass@node2:9200"]' ``` OpenCTI also works with OpenSearch and with the managed search services of AWS, Google Cloud and Azure that are based on Elasticsearch or OpenSearch. ### Redis {#redis} Turn on cluster mode and list the nodes: ```yaml - REDIS__MODE=cluster - 'REDIS__HOSTNAMES=["node1:6379","node2:6379"]' ``` *(OpenCTI 7.261030 and later)* With TLS (`REDIS__USE_SSL=true`), OpenCTI checks the certificate of every node against `REDIS__HOSTNAME` by default. Set `REDIS__TLS_SERVERNAME` when all the node certificates share one name, such as a cluster host name or a wildcard. Set `REDIS__TLS_CLUSTER_NODE_MODE=true` to check each node's certificate against that node's own name. OpenCTI also works with ElastiCache, Memorystore and the other managed services that speak the Redis protocol. ### RabbitMQ {#rabbitmq} OpenCTI connects to one RabbitMQ host. For a RabbitMQ cluster, put a TCP load balancer in front of its nodes and point OpenCTI at it: ```yaml - RABBITMQ__HOSTNAME=load-balancer-rabbitmq ``` OpenCTI also works with Amazon MQ, CloudAMQP and the other managed services that speak AMQP. ### S3 storage {#s3-storage} OpenCTI works with any storage that follows the S3 standard. [RustFS](https://github.com/rustfs/rustfs), the S3 server of xtm-docker, can itself run as a cluster of several nodes. ## What's next {#what-s-next} - [Sizing](https://filigran.io/docs/deploy/plan/sizing/), to choose the number of nodes and workers. - [Manage Elasticsearch indices](https://filigran.io/docs/deploy/operate/rollover/), to keep the Elasticsearch shards at a reasonable size. - [Observability metrics](https://filigran.io/docs/deploy/operate/metrics/), to watch the load of each node. --- # Collect logs for support > Generate and download an OpenCTI support package, a ZIP file with the recent application logs and usage statistics of every node, to troubleshoot or to send to support. - URL: https://filigran.io/docs/deploy/operate/support-package/ - Products: OpenCTI 7.261119.0 - For: platform engineers, administrators - Type: How-to guide A support package is a ZIP file with the recent application logs and usage statistics of every OpenCTI node of your platform. Each node adds its support log, a copy of its application log from the `info` level up (as far as `APP__APP_LOGS__LOGS_LEVEL` lets it through), kept in up to three files of 10 MB, and its usage statistics. Generate one to investigate a problem, or to send to Filigran support or to the community with your question: it gathers in one download what you would otherwise collect node by node. **Diagram: Every OpenCTI node uploads its support log and usage statistics, and OpenCTI gathers them into one ZIP file to download** - You: Generate Support Package (Settings > Filigran Experience) - OpenCTI nodes: OpenCTI node (Support log and usage statistics), Other OpenCTI nodes (The same files each) - Support package: Support package (IN_PROGRESS, then READY, or TIMEOUT after 5 minutes) - Download: ZIP file (Partial with Force download after 1 minute) Connections: - Generate Support Package → OpenCTI node: request - Generate Support Package → Other OpenCTI nodes: request - OpenCTI node → Support package: upload files - Other OpenCTI nodes → Support package: upload files - Support package → ZIP file: download ## Before you start {#before-you-start} - The capability **Access to support data**, which opens **Settings > Filigran Experience**. - Leave any draft first: a support package cannot be generated in draft mode. > **Warning: Check the content before you share it** > > OpenCTI avoids writing sensitive data to these logs, but a support package may still contain information you do not want to share with everyone. Open it and check it against your security policy before you attach it to a ticket. ## Generate and download a package {#generate-and-download-a-package} 1. Open **Settings > Filigran Experience** and, under **Support packages**, click **Generate Support Package**. Every OpenCTI node receives the request and uploads its files. The package shows the status `IN_PROGRESS`. 2. Wait for the status `READY`: once every node has answered, OpenCTI gathers their files in one ZIP file. Then click **Download this support package**. 3. Delete the package when you no longer need it, with **Delete this support package**. ## When a node does not answer {#when-a-node-does-not-answer} If the platform is unstable, some nodes may not send their files, and the package stays `IN_PROGRESS`. - After one minute, **Force download on this support package** turns on: it builds the ZIP file with the files received so far. This partial package lacks the logs of the nodes that did not answer. - After five minutes without reaching `READY`, the package shows `TIMEOUT`. A package that failed shows `IN_ERROR`: generate a new one. ## What's next {#what-s-next} - [Troubleshoot the XTM stack](https://filigran.io/docs/deploy/operate/troubleshoot/), to read the logs yourself first. - [Check that the platforms are healthy](https://filigran.io/docs/deploy/operate/health-probes/), to find a node or a dependency that is down. --- # Troubleshoot the XTM stack > Find the logs of each part of the XTM stack, raise their level, and fix the common startup, ingestion and Elasticsearch errors. - URL: https://filigran.io/docs/deploy/operate/troubleshoot/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers - Type: How-to guide This page helps you find why a part of the XTM stack fails: where its logs are, how to make them more detailed, and what the common errors mean, from a stack that does not start to data that OpenCTI rejects. For problems with integrations that XTM Composer runs, see [Troubleshoot integrations](https://filigran.io/docs/deploy/integrations/troubleshoot/). **Diagram: Each symptom has its place to look, the health and logs of the services, the works of the connectors or the health of the Elasticsearch cluster, before you ask for help** - Symptoms: Stack does not start (Or a platform stays unhealthy), Data rejected (Bundles OpenCTI could not write), Elasticsearch errors (Disk full, shards not available) - Where to look: docker compose ps (Services and their health), docker compose logs (JSON lines of each service), Connector works (Error codes of the bundles), Cluster health (_cluster/health) - Ask for help: Support package (Logs of every OpenCTI node), Community Slack (Or a GitHub issue) Connections: - Stack does not start → docker compose ps: health - Stack does not start → docker compose logs: why it fails - Data rejected → Connector works: error code - Elasticsearch errors → Cluster health: check - docker compose logs → Support package: still stuck - Support package → Community Slack: attach ## Find the logs {#find-the-logs} Every service of xtm-docker writes its logs to the console of its container. From the `xtm-docker` folder: ```bash docker compose ps docker compose logs --tail 200 opencti docker compose logs -f openaev xtm-one ``` `docker compose ps` shows the services that run and their health; `docker compose logs` takes the name of a service, such as `opencti`, `worker`, `openaev`, `xtm-one`, `xtm-one-worker`, `xtm-composer` or `connector-mitre`. The platforms, workers and connectors write JSON lines. ## Raise the log level {#raise-the-log-level} In production, keep the platforms at `error` or `warn` level. To investigate, raise the level of one service, then lower it again: debug logs are large. Set the variable in `docker-compose.override.yml`, as [Change the stack without editing docker-compose.yml](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml) describes, or in `.env` where the table says so, then run `docker compose up -d `. **OpenCTI** | Part | Variable | Values | | --- | --- | --- | | Platform | `APP__APP_LOGS__LOGS_LEVEL` | `error`, `warn`, `info`, `debug`. xtm-docker sets `error` | | Workers | `WORKER_LOG_LEVEL` | `error`, `warning`, `info` (default), `debug` | | Connectors | `CONNECTOR_LOG_LEVEL` | `error`, `warning`, `info`, `debug` | `APP__APP_LOGS__LOGS_CONSOLE=true` writes the platform logs to the console, the default. Workers and connectors write JSON while `OPENCTI_JSON_LOGGING` is `true`, the default for workers. ```yaml services: opencti: environment: - APP__APP_LOGS__LOGS_LEVEL=info ``` **OpenAEV** OpenAEV takes the logging settings of Spring Boot. To log its own code at debug level: ```yaml services: openaev: environment: - LOGGING_LEVEL_IO_OPENAEV=debug ``` **XTM One** `XTM_ONE_LOG_LEVEL` in `.env` sets the level of `xtm-one` and `xtm-one-worker` (default `info`), and `XTM_ONE_LOG_FORMAT` their format (default `json`). ## Control what OpenCTI logs {#control-what-opencti-logs} Besides the console, the platform writes two log files: `error.log`, errors only, and `opencti.log`, every entry at the configured level. They rotate daily. In a container, they stay inside it and are lost when it is recreated: collect the console output instead, and turn the files off. | Key | Default | What it does | | --- | --- | --- | | `app:app_logs:logs_files` | `true` | Writes the log files | | `app:app_logs:logs_directory` | `./logs` | Folder of the files, relative to the folder the platform runs from | | `app:app_logs:logs_max_files` | `7` | Daily files kept for each log | Each entry carries metadata, such as the data of an error. OpenCTI cuts it to keep log lines small: | Key | Default | What it does | | --- | --- | --- | | `app:app_logs:control:max_string_size` | `5000` | Longest string, in characters. A longer one is cut and ends with `...` | | `app:app_logs:control:max_array_size` | `50` | Elements kept from a list | | `app:app_logs:control:max_depth_size` | `10` | Nesting depth. Deeper objects are dropped | | `app:app_logs:control:max_depth_keys` | `100` | Keys written for one entry. The next ones are dropped | Two settings help an investigation, and are off by default because of what they write: - `app:app_logs:extended_error_message` adds the input data to error logs, and the GraphQL query and its variables to the logs of failed API calls. The logs then hold sensitive data. - `app:performance_logger` logs every API call at `info` level, with its duration, size and memory use. It writes a lot of logs. For example, to investigate a failing import from the console only: ```yaml services: opencti: environment: - APP__APP_LOGS__LOGS_LEVEL=info - APP__APP_LOGS__LOGS_FILES=false - APP__APP_LOGS__EXTENDED_ERROR_MESSAGE=true ``` Set `APP__APP_LOGS__EXTENDED_ERROR_MESSAGE` back to `false` once you have found the cause. The other log keys are in the [Errors](https://filigran.io/docs/reference/opencti/configuration/#errors), [Logging](https://filigran.io/docs/reference/opencti/configuration/#logging) and [Audit](https://filigran.io/docs/reference/opencti/configuration/#audit) sections of the configuration reference. ## The stack does not start {#the-stack-does-not-start} | Symptom | Cause and fix | | --- | --- | | Elasticsearch stops or restarts in a loop | Its logs say why. On Linux, it often needs more virtual memory areas: run `sudo sysctl -w vm.max_map_count=262144` on the host, and add `vm.max_map_count=262144` to `/etc/sysctl.conf` to keep it after a reboot | | OpenCTI stops at start with `You need to configure the environment vars`, `Email must be a valid email address` or `Token must be a valid UUID` | The bootstrap admin of `.env` is incomplete or invalid. `OPENCTI_ADMIN_EMAIL` must be an email address and `OPENCTI_ADMIN_TOKEN` a UUID, such as the output of `uuidgen`. Neither the password nor the token may be empty or `ChangeMe`. See [Sign in the first time and keep an emergency account](https://filigran.io/docs/deploy/configure/first-access/#the-bootstrap-admins) | | A platform stays `starting` or `unhealthy` | One of its dependencies is not healthy: check `docker compose ps`, then the logs of the platform and of the dependency. Check that every variable of `.env` has a value | | OpenAEV stops at start with `FATAL: password authentication failed for user` | The PostgreSQL credentials do not match. PostgreSQL takes `POSTGRES_USER` and `POSTGRES_PASSWORD` only when it creates its data volume, `pgsqlshareddata`: changing them in `.env` afterwards does not change the existing user. Set them back to the values the volume was created with, or change the password inside PostgreSQL with `ALTER USER`. On a manual installation, `spring.datasource.username` and `spring.datasource.password` must be those of the PostgreSQL user | | `xtm-one-db-init` fails | Its logs say why: `XTM_ONE_POSTGRES_USER` and `XTM_ONE_POSTGRES_PASSWORD` must be set, and `XTM_ONE_POSTGRES_USER` must differ from `POSTGRES_USER` | | The platforms run but do not see each other | Check the tokens. `PLATFORM_REGISTRATION_TOKEN` must be the same for XTM One, OpenCTI and OpenAEV, also when they run in separate deployments | ## OpenCTI ingestion errors {#opencti-ingestion-errors} OpenCTI reports the errors of the bundles it could not write in the works of each connector, with an error code. ### Technical errors {#technical-errors} | Error | Meaning and fix | | --- | --- | | `MISSING_REFERENCE_ERROR`, `Element(s) not found` | An object refers to another one that does not exist, such as a relationship whose target is missing. It is raised after several retries, in case the missing object arrives in the meantime. It usually comes from a connector that produces inconsistent STIX 2.1 bundles | | `Cant upsert inferred entity. Too many entities resolved` | An inference rule produced an entity that matches several existing entities, such as two entities that share a name or an alias, and OpenCTI does not choose which one to update. Data from connectors does not raise it: OpenCTI merges the matching entities. Merge the duplicates in the platform | | `LOCK_ERROR`, `Execution timeout, too many concurrent call on the same entities` | Several workers changed the same entities at the same time and waited too long for each other. It depends on the throughput of Elasticsearch, the number of workers, the dependencies between the data and the merges. Lower the number of workers, then find the balance between workers, connectors and Elasticsearch sizing. See [Scale](https://filigran.io/docs/deploy/operate/scale/) | ### Data errors {#data-errors} | Code | Meaning and fix | | --- | --- | | `INCORRECT_INDICATOR_FORMAT` | The pattern of an Indicator is not valid, such as a malformed YARA rule. Fix it at the source | | `INCORRECT_OBSERVABLE_FORMAT` | The value of an observable is not valid for its type, such as an IPv4 address that is not one | | `INDICATOR_PATTERN_EXCLUDED` | The pattern of an Indicator contains a value of one of your exclusion lists, so the Indicator is rejected on purpose; the rest of the bundle is imported. The error gives the value and the list. If the value should not be excluded, edit the list in **Settings > Customization > Exclusion lists** | ## Elasticsearch errors {#elasticsearch-errors} | Error | Meaning and fix | | --- | --- | | `TOO_MANY_REQUESTS/12/disk usage exceeded flood-stage watermark` | The disk of Elasticsearch is almost full, and Elasticsearch blocks writes to protect itself. Free or add disk space: Elasticsearch lifts the block once usage falls back under its high watermark | | `Engine execution fail, some shards are not available` | Some shards of an index cannot be read. Check the health of the cluster with `docker compose exec elasticsearch curl -s 'http://localhost:9200/_cluster/health?pretty'` | To look into the data that OpenCTI stores, connect Kibana or OpenSearch Dashboards to your cluster. ## Ask for help {#ask-for-help} Generate a [support package](https://filigran.io/docs/deploy/operate/support-package/) of OpenCTI, then ask on the [Filigran community Slack](https://community.filigran.io) or open an issue for [OpenCTI](https://github.com/OpenCTI-Platform/opencti/issues) or [OpenAEV](https://github.com/OpenAEV-Platform/openaev/issues). ## What's next {#what-s-next} - [Check that the platforms are healthy](https://filigran.io/docs/deploy/operate/health-probes/), to know which dependency is down. - [Observability metrics](https://filigran.io/docs/deploy/operate/metrics/), to see a problem coming. - [Collect logs for support](https://filigran.io/docs/deploy/operate/support-package/), to send the logs of every OpenCTI node at once. - [Errors](https://filigran.io/docs/reference/opencti/errors/): the functional errors OpenCTI returns, by area, and what to do for the most common ones. --- # Monitor and troubleshoot XTM One > Watch 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. - URL: https://filigran.io/docs/deploy/operate/xtm-one/ - Products: XTM One 1.261119.1 - For: platform engineers - Type: How-to guide This page tells a platform engineer how XTM One is doing and what to do when it is not. XTM One answers two health endpoints, exposes Prometheus metrics behind a token, writes one JSON line per request, and audits its own configuration; the second half of the page goes from a symptom to its cause. For the logs of the whole stack, see [Troubleshoot the XTM stack](https://filigran.io/docs/deploy/operate/troubleshoot/); for what agents did and what it cost, administrators read **Observability** in XTM One. **Diagram: XTM One tells how it runs through its health endpoints, its metrics, its logs and its security audit** - XTM One: xtm-one (Port 4000), xtm-one-worker (No HTTP port) - Signals: Health endpoints (/api/health, /api/health/ready), Metrics (/metrics, with a bearer token), Logs (JSON lines on stdout), Security audit (Settings > Security) - Your tools: Orchestrator (Docker, Kubernetes, load balancer), Monitoring (Prometheus, log aggregator) Connections: - xtm-one → Health endpoints: answers - xtm-one → Metrics: exposes - xtm-one → Logs: writes - xtm-one-worker → Logs: writes - Health endpoints → Orchestrator: probes - Metrics → Monitoring: scrape - Logs → Monitoring: collect ## Health endpoints {#health-endpoints} | Endpoint | Answers 200 when | Use it for | | --- | --- | --- | | `GET /api/health` | The server of `xtm-one` listens | Liveness: restart the container when it fails | | `GET /api/health/ready` | The start is complete, and PostgreSQL, Redis and the S3 bucket answer within 4 seconds each | Readiness: send traffic only when it passes | Neither needs authentication. Both answer on port 4000 of the container, at its root even when XTM One is served under a path. ```bash docker compose exec xtm-one curl -sS http://localhost:4000/api/health/ready ``` Ready, it prints `{"database":"ok","redis":"ok","s3":"ok","status":"ok"}`. Otherwise it answers HTTP 503: `"status": "starting"` while the platform migrates its database and creates its built-in content, with `startup_error` when that start failed; or `"status":"degraded"`, with the error of each service that did not answer, such as `"s3":"error: bucket not found"`. The healthcheck of xtm-docker asks `/api/health`, so `healthy` in `docker compose ps` says the server listens, not that it is ready: monitor `/api/health/ready` as well. Each web process answers for itself, and one that is still starting holds a request up to 8 seconds before it answers 503 with `Retry-After`. The worker has no HTTP port. It writes a heartbeat that `python -m app.healthcheck reconciler` checks: the command exits with 0 while the heartbeat is fresh, and 1 when it is stale or missing. xtm-docker runs no healthcheck on `xtm-one-worker`; to add one, put these lines under `services:` in `docker-compose.override.yml`: ```yaml xtm-one-worker: healthcheck: test: ["CMD", "python", "-m", "app.healthcheck", "reconciler"] interval: 30s timeout: 10s retries: 3 start_period: 60s ``` On Kubernetes, point the `livenessProbe` of the platform at `/api/health`, its `readinessProbe` at `/api/health/ready`, and the `livenessProbe` of the worker at that command. See [Health checks](https://filigran.io/docs/deploy/operate/health-probes/) for the other platforms. ## Metrics {#metrics} XTM One exposes Prometheus metrics on `/metrics`, port 4000, once both variables are set on `xtm-one`: | Variable | Default | What it sets | | --- | --- | --- | | `PROMETHEUS_ENABLED` | `false` | Turns `/metrics` on | | `PROMETHEUS_BEARER_TOKEN` | None | The token a scraper sends as `Authorization: Bearer`. 16 characters or more: without it, or shorter, XTM One logs a warning at start and keeps `/metrics` off | While off, `/metrics` answers 404; without the right token, 401. The metrics: | Metric | What it measures | | --- | --- | | `xtmone_quota_usage` | A gauge of quota consumption, by `user_id`, `usage_type`, `model`, `period` (`daily`, `monthly`, `yearly`) and `platform_id`. It is computed again at each scrape | | `csp_violation_reports_total` | The violations of the Content Security Policy that browsers reported, by `directive`, `disposition` (`report` or `enforce`) and `origin` (`page` or `extension`) | | `xtmone_sandbox_*`, `xtmone_turn_resume_results_total` | The code interpreter's workspaces, and the tool results an interrupted chat passed to the one that resumed it | | `process_*`, `python_*` | The runtime of the process | Each web process keeps its own counters, and a scrape reads the process that answers it. Apart from `xtmone_quota_usage`, a series is a sample of one process: do not read it with `rate()` or `increase()`. The logs are the exact record. **Example: Scrape XTM One from the Prometheus of Grand Meridian Hotels** Marc Dupuis, of IT operations at Grand Meridian Hotels, adds the scrape token to `.env` as `XTM_ONE_PROMETHEUS_TOKEN`, generated with `openssl rand -hex 32`, then sets on `xtm-one` in `docker-compose.override.yml`: ```yaml services: xtm-one: environment: - PROMETHEUS_ENABLED=true - PROMETHEUS_BEARER_TOKEN=${XTM_ONE_PROMETHEUS_TOKEN} ``` The Prometheus of the Paris datacenter scrapes XTM One through the reverse proxy, over HTTPS, and keeps the token in a file: ```yaml scrape_configs: - job_name: xtm-one scheme: https metrics_path: /metrics authorization: type: Bearer credentials_file: /etc/prometheus/secrets/xtm-one-token static_configs: - targets: ["xtm-one.grand-meridian.example"] ``` The `xtm-one` target turns up, and `xtmone_quota_usage{period="monthly"}` shows what the CTI team and the SOC spent this month. ## Logs {#logs} `xtm-one` and `xtm-one-worker` write to their standard output. `LOG_LEVEL` (`debug`, `info`, `warning`, `error`, `critical`) and `LOG_FORMAT` (`json` or `console`) set them; in xtm-docker, `XTM_ONE_LOG_LEVEL` and `XTM_ONE_LOG_FORMAT` in `.env` do, `info` and `json` by default. Keep `json` in production and ship the lines to your log aggregator. ```bash docker compose logs -f --since 10m xtm-one xtm-one-worker ``` Every request writes one `http_request` line, with `http_method`, `http_path`, `http_status`, `duration_ms` and `client_ip`. Successful requests to the health endpoints and to `/metrics` are logged at `debug` only, client errors at `warning`, server errors at `error`. Set `debug` for an investigation only, then go back to `info`. ## Security audit {#security-audit} **Settings** > **Access and security** > **Security audit** checks the configuration of XTM One and reports each finding with what to change: a published registration token, a reverse proxy XTM One does not trust, a Content Security Policy left in `report-only`, a missing `FORWARDED_ALLOW_IPS`. The same report is at `GET /api/v1/security-audit`, for an administrator. Read it after an installation, an upgrade or a change of the proxy. ![The Security audit of a new platform: its posture needs attention with 4 warnings and no critical finding, 20 of 24 checks pass, each category shows its findings and pass rate, and each warning ends on a recommendation that names the setting or the variable to change.](https://filigran.io/docs/shots/516f061062a22dc98e93aab97bf395d26f5fdaaf6684c4e25adefeaf46196f57.webp) ## What to watch {#what-to-watch} Alert on: - `/api/health/ready` failing for more than a few minutes: XTM One does not serve. - A rising rate of `http_status` 500 and above in the `http_request` lines. - `xtm-one-worker` restarting again and again: assignments and background work stop. - PostgreSQL connections close to `max_connections`: see [Size the platform and the worker](https://filigran.io/docs/deploy/configure/xtm-one/#size-the-platform-and-the-worker). - The disk of the `pgsqlshareddata` and `s3data` volumes, which grow with the knowledge bases, the attachments and the traces. ## Troubleshoot XTM One {#troubleshoot-xtm-one} Start with the state of the services, the readiness answer and the last lines of both logs: ```bash docker compose ps docker compose exec xtm-one curl -sS http://localhost:4000/api/health/ready docker compose logs --tail 100 xtm-one xtm-one-worker ``` | Symptom | Cause and fix | | --- | --- | | Readiness stays `"starting"` | The platform migrates its database: a large database takes longer at the first start of a new version. After `STARTUP_WATCHDOG_SECONDS` (300), the log names the step in progress and the sessions that block the migration. With several platform replicas, one migrates while the others wait | | Readiness says `"degraded"` | The service in error does not answer. Check it in `docker compose ps`, and the `DATABASE_URL`, `REDIS_URL` or `S3_*` values. `bucket not found`: the bucket was deleted; restart `xtm-one`, which creates it again | | The start fails in a migration | The log names the migration that failed. Never run the migrations by hand: keep the log, and restore the backup taken before the upgrade, as [Upgrade XTM One](https://filigran.io/docs/deploy/upgrade/xtm-one/#roll-back) describes | | Integrations fail and people are signed out after a restart | `SECRET_KEY` changed. Put the former value back: no other way recovers the credentials it encrypted | | The administrator cannot sign in | `ADMIN_EMAIL` (`admin@filigran.io` when unset) and `ADMIN_PASSWORD` in `.env` win at every start: check them, then restart `xtm-one`. The restart sets that password again, makes the account an administrator and enables it again if someone disabled it. A password changed in the interface lasts until the next restart | | An answer shows only once it is complete | The reverse proxy buffers the chat, which streams as server-sent events under `/api/v1/web/chat`. Turn response buffering off for `/api/`. Nginx honours the `X-Accel-Buffering: no` header XTM One sends; another proxy needs the setting. See [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/) | | The chat hangs or cuts off in the middle of an answer | The proxy closes the stream. An idle stream writes a keep-alive every 15 seconds, so the read timeout must stay above 15 seconds; an agent's answer can take minutes, so keep a request open 300 seconds (`proxy_read_timeout 300s;`). A tunnel with a short origin timeout cuts the chat too | | The app stops loading once a few tabs are open | The proxy speaks HTTP/1.1 to browsers. A browser opens 6 HTTP/1.1 connections per host at most, and every tab holds its streams. Turn HTTP/2 on between browsers and the proxy (`http2 on;` in Nginx 1.25.1 and later); the proxy may still reach XTM One over HTTP/1.1 | | The audit log shows the same address for every person | XTM One does not trust the proxy: the log says `A request carried X-Forwarded-For` and names its address. Set `FORWARDED_ALLOW_IPS` to it on `xtm-one`, and make the proxy send `X-Forwarded-For`: XTM One reads neither `X-Real-IP` nor `Forwarded` | | A platform is registered, but every action on its data fails with 401 | The log of `xtm-one` says why. `Untrusted JWT issuer`: the platform signs with another URL than the one it registered with. `Failed to resolve signing key for`: XTM One cannot reach the URL it names; set `OPENCTI_API_URL`, `OPENAEV_API_URL` or `OPENCRQ_API_URL`. `audience mismatch`: the platform addresses its tokens to another URL than `BASE_URL`; list that URL in `XTM_AUTH_ACCEPTED_AUDIENCES`. Background work fails alone: `BASE_URL` differs on `xtm-one-worker` | | A platform does not register | Its token differs from `PLATFORM_REGISTRATION_TOKEN`, or XTM One runs with the published default. See [Connect the modules to each other](https://filigran.io/docs/deploy/configure/connect-modules/#register-the-platforms-with-xtm-one) | | Agents answer nothing, or fail at once | No language model in **Settings** > **AI and models** > **Models**, a wrong key, or no outbound HTTPS from `xtm-one` and `xtm-one-worker` to the provider. "You have reached your agentic execution quota for the current period" means the person's quota is spent: see **Settings** > **Usage and quotas** > **Quotas**. The trace of the run, in **Observability** > **Traces**, names the call that failed | | Assignments do not run | `xtm-one-worker` is stopped or restarts, or Redis does not answer. A run whose owner is over quota fails with `Quota exceeded` | | Knowledge base uploads fail | The proxy refuses the body: allow 50 MB or more (`client_max_body_size 50m;`). Otherwise check the `S3_*` values on both containers | | PostgreSQL refuses connections | The pools of every process exceed `max_connections`. Count them again after a change of `WEB_WORKERS` or of the worker replicas | ## Ask for help {#ask-for-help} Give the version of XTM One (`docker compose images xtm-one xtm-one-worker`), the output of `docker compose ps` and of the readiness endpoint, and the lines of both logs around the problem, with the secrets removed. Customers of the Enterprise Edition ask Filigran support; others ask the [Filigran community on Slack](https://community.filigran.io). ## What's next {#what-s-next} - [Configure XTM One](https://filigran.io/docs/deploy/configure/xtm-one/), for the variables this page names. - [Upgrade XTM One](https://filigran.io/docs/deploy/upgrade/xtm-one/), before the next version. - [Troubleshoot the XTM stack](https://filigran.io/docs/deploy/operate/troubleshoot/), for the other services. - [Back up and restore](https://filigran.io/docs/deploy/operate/backup/). --- # 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. - URL: https://filigran.io/docs/deploy/plan/architecture/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers, evaluators - Type: Concept 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](https://github.com/FiligranHQ/xtm-docker), defines them. How each module works inside is on its own architecture page. ## What the stack is made of {#what-the-stack-is-made-of} | Part | What it is | In xtm-docker | | --- | --- | --- | | Modules | The XTM applications: XTM One, OpenCTI, OpenAEV, OpenCRQ, XTM Composer and the default integrations | One Compose file per module, in `modules/`. Every module always starts | | Shared services | The search engine, queue, cache, file storage and database the modules keep their data in | One instance of each, one Compose file per service, in `infra/` | | Init jobs | Short tasks that prepare something for a module, then stop or wait | `xtm-one-db-init`, `opencrq-db-init`, `opencrq-bucket-init` and `rsa-key-generator` | ## The modules {#the-modules} ### XTM One {#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](https://filigran.io/docs/xtm-one/). ### OpenCTI {#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](https://filigran.io/docs/opencti/concepts/architecture/). ### OpenAEV {#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](https://filigran.io/docs/openaev/concepts/architecture/). ### OpenCRQ {#opencrq} The cyber risk quantification platform, as the `opencrq` service. Its image is `filigran/opencrq`: see [What xtm-docker runs for OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/#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](https://filigran.io/docs/opencrq/concepts/architecture/). ### XTM Composer {#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](https://filigran.io/docs/deploy/integrations/composer/). ## The shared services {#the-shared-services} | Shared service | Compose service | What it holds | Compose file | | --- | --- | --- | --- | | Elasticsearch | `elasticsearch` | The knowledge of OpenCTI and OpenAEV, and its search indices | `infra/elasticsearch.yml` | | RabbitMQ | `rabbitmq` | The queues between the platforms, their workers and their integrations | `infra/rabbitmq.yml` | | Redis | `redis` | Cache, sessions and live events | `infra/redis.yml` | | S3 storage (RustFS) | `minio` | Files, imports and exports | `infra/rustfs.yml` | | PostgreSQL with pgvector | `pgsql` | The databases of OpenAEV, OpenCRQ and XTM One | `infra/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 {#which-module-uses-which-service} | Module | Elasticsearch | RabbitMQ | Redis | S3 storage | PostgreSQL | | --- | --- | --- | --- | --- | --- | | XTM One | No | No | Yes | Yes, bucket `xtm-one-files` | Yes, database `xtm_one` | | OpenCTI | Yes | Yes | Yes | Yes, bucket `opencti-bucket` | No | | OpenAEV | Yes | Yes | No | Yes, bucket `openaev` | Yes, database `openaev` | | OpenCRQ | No | No | No | Yes, bucket `opencrq` | Yes, database `opencrq` | | XTM Composer | No | No | No | No | No | | Default integrations | No | Connectors and injectors | No | No | No | 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 {#how-the-modules-connect} **Diagram: XTM One is at the center of the stack, OpenCTI, OpenAEV and OpenCRQ connect to it, and the integrations go through the platforms** - Integrations: Default integrations (Connectors, collectors, injectors), XTM Composer (Runs integrations as containers) - Platforms: OpenCTI (Platform and its worker), OpenAEV (Platform), OpenCRQ (Reads OpenCTI and OpenAEV) - At the center: XTM One (Web application and its worker) Connections: - Default integrations → OpenCTI: platform API - Default integrations → OpenAEV: platform API - XTM Composer → OpenCTI: manages integrations - XTM Composer → OpenAEV: manages integrations - OpenCTI ↔ OpenAEV: API calls - OpenCTI ↔ XTM One: registers - OpenAEV ↔ XTM One: registers - OpenCRQ ↔ XTM One: registers - **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](https://filigran.io/docs/deploy/plan/network/) lists every address, port and token. ## What's next {#what-s-next} - [What each XTM module brings](https://filigran.io/docs/deploy/plan/modules/): the services, shared services and settings of each module. - [Network and ports](https://filigran.io/docs/deploy/plan/network/): who talks to whom, on which port. - [Requirements](https://filigran.io/docs/deploy/plan/requirements/) and [Sizing](https://filigran.io/docs/deploy/plan/sizing/) for the machines. - [How OpenCTI processes data in the background](https://filigran.io/docs/opencti/concepts/architecture/#managers): the platform managers. --- # 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/deploy/plan/modules/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - 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/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/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/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/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/deploy/plan/architecture/): how the modules and shared services fit together. - [Requirements](https://filigran.io/docs/deploy/plan/requirements/) and [Sizing](https://filigran.io/docs/deploy/plan/sizing/) for the whole stack. - [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/), or [run the platform locally](https://filigran.io/docs/deploy/quick-start/) to try it first. - [Editions and licensing](https://filigran.io/docs/start/editions/). --- # 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. - URL: https://filigran.io/docs/deploy/plan/network/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers - Type: Reference This page lists the network side of the XTM stack as [FiligranHQ/xtm-docker](https://github.com/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. **Diagram: 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** - Integrations: Workers and integrations (Connectors, collectors, injectors, XTM Composer) - Platforms: OpenCTI (http://opencti:8080, host port 8080), OpenAEV (http://openaev:8080, host port 8081), OpenCRQ (http://opencrq:3002, host port 8082) - At the center: XTM One (http://xtm-one:4000, host port 8090) - Shared services: Shared services (elasticsearch:9200, rabbitmq:5672, redis:6379, minio:9000, pgsql:5432) Connections: - Workers and integrations → OpenCTI: OPENCTI_ADMIN_TOKEN - Workers and integrations → OpenAEV: OPENAEV_ADMIN_TOKEN - OpenCTI ↔ OpenAEV: admin tokens - OpenCTI ↔ XTM One: PLATFORM_REGISTRATION_TOKEN - OpenAEV ↔ XTM One: PLATFORM_REGISTRATION_TOKEN - OpenCRQ ↔ XTM One: PLATFORM_REGISTRATION_TOKEN - OpenCRQ → OpenCTI: token of each tenant - OpenCRQ → OpenAEV: token of each tenant - OpenCTI → Shared services: by service name - OpenAEV → Shared services: by service name - XTM One → Shared services: by service name - OpenCRQ → Shared services: by service name ## Ports published on the host {#ports-published-on-the-host} | Host port | Service | Container port | What it serves | Starts with | Set in | | --- | --- | --- | --- | --- | --- | | `OPENCTI_PORT`, `8080` by default | `opencti` | 8080 | OpenCTI web interface and GraphQL API | `opencti` | `.env` | | 8081 | `openaev` | 8080 | OpenAEV web interface and API | `openaev` | `docker-compose.yml`, with `OPENAEV_PORT` in `.env` | | `XTM_ONE_PORT`, `8090` by default | `xtm-one` | 4000 | XTM One web interface and API | Always | `.env` | | 8082 | `opencrq` | 3002 | OpenCRQ web interface and API | Always | `modules/opencrq.yml`, with `OPENCRQ_PORT` in `.env` for the public URL | | 9200 | `elasticsearch` | 9200 | Elasticsearch HTTP API | `opencti` or `openaev` | `docker-compose.yml` | | 5672 | `rabbitmq` | 5672 | RabbitMQ, Advanced Message Queuing Protocol (AMQP) | `opencti` or `openaev` | `docker-compose.yml` | | 15672 | `rabbitmq` | 15672 | RabbitMQ management interface and API | `opencti` or `openaev` | `docker-compose.yml` | | 6379 | `redis` | 6379 | Redis | Always | `docker-compose.yml` | | 9000 | `minio` | 9000 | S3 API of RustFS | Always | `docker-compose.yml` | | Not published | `pgsql` | 5432 | PostgreSQL | Always | | | Not published | `opencrq` | 8444 | OpenCRQ health check, which the healthcheck of the container calls | Always | `HEALTHCHECK_HTTP_SERVER__PORT` in `modules/opencrq.yml` | | Not published | `opencrq` | 14269 | OpenCRQ Prometheus endpoint, off by default | When you turn it on | The Prometheus variables of the `opencrq` service: see [Observability metrics](https://filigran.io/docs/deploy/operate/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](https://filigran.io/docs/deploy/install/docker-compose/#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: ```yaml 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. **Check that it worked: See what your stack publishes** ```bash 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. > **Warning: 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](https://filigran.io/docs/deploy/operate/harden/#close-elasticsearch-and-redis-to-the-network). ## Inside the stack {#inside-the-stack} Every service is on one Docker network, `_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. | Address | Reached by | | --- | --- | | `http://opencti:8080` | The OpenCTI worker and connectors, XTM Composer, XTM One, OpenAEV (on `/graphql`), and OpenCRQ once a tenant is connected to it | | `http://openaev:8080` | The OpenAEV collectors and injectors, XTM Composer, XTM One, OpenCTI, and OpenCRQ once a tenant is connected to it | | `http://xtm-one:4000` | OpenCTI, OpenAEV, OpenCRQ | | `http://opencrq:3002` | XTM One | | `elasticsearch:9200` | OpenCTI, OpenAEV | | `rabbitmq:5672` | OpenCTI, OpenAEV, and the integrations and workers they give the address to | | `rabbitmq:15672` | OpenCTI and OpenAEV, on the RabbitMQ management API | | `redis:6379` | OpenCTI, XTM One and its worker | | `minio:9000` | OpenCTI, 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:5432` | OpenAEV (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](https://filigran.io/docs/deploy/integrations/manual/). ## Who talks to whom {#who-talks-to-whom} | From | To | Address | Credential | | --- | --- | --- | --- | | OpenCTI | XTM One | `XTM__XTM_ONE_URL=http://xtm-one:4000` | `PLATFORM_REGISTRATION_TOKEN` | | OpenAEV | XTM One | `OPENAEV_XTM_ONE_URL=http://xtm-one:4000` | `PLATFORM_REGISTRATION_TOKEN` | | XTM One | OpenCTI | `OPENCTI_API_URL=http://opencti:8080` | | | XTM One | OpenAEV | `OPENAEV_API_URL=http://openaev:8080` | | | OpenCRQ | XTM One | `XTM_ONE__URL` | `PLATFORM_REGISTRATION_TOKEN` | | XTM One | OpenCRQ | `OPENCRQ_API_URL=http://opencrq:3002` | | | OpenCTI | OpenAEV | `XTM__OPENAEV_API_URL=http://openaev:8080` | `OPENAEV_ADMIN_TOKEN` | | OpenAEV | OpenCTI | `openaev.xtm.opencti.api-url`, `http://opencti:8080/graphql` | `OPENCTI_ADMIN_TOKEN` | | OpenCRQ | OpenCTI, for one tenant | `CONNECTORS__OPENCTI____URL`, such as `http://opencti:8080` | `CONNECTORS__OPENCTI____TOKEN` | | OpenCRQ | OpenAEV, for one tenant | `CONNECTORS__OPENAEV____URL`, such as `http://openaev:8080` | `CONNECTORS__OPENAEV____TOKEN` | | XTM Composer | OpenCTI and OpenAEV | `http://opencti:8080`, `http://openaev:8080` | `OPENCTI_ADMIN_TOKEN`, `OPENAEV_ADMIN_TOKEN` | | XTM Composer | Docker on the host | `/var/run/docker.sock`, mounted in the container | | | Worker and connectors | OpenCTI | `OPENCTI_URL=http://opencti:8080` | `OPENCTI_ADMIN_TOKEN` | | Collectors and injectors | OpenAEV | `OPENAEV_URL=http://openaev:8080` | `OPENAEV_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](https://filigran.io/docs/deploy/configure/opencrq/#connectors-of-each-tenant) 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](https://filigran.io/docs/deploy/configure/connect-modules/#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 {#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: | Platform | Variables | Default | Passed to the platform as | | --- | --- | --- | --- | | OpenCTI | `OPENCTI_EXTERNAL_SCHEME`, `OPENCTI_HOST`, `OPENCTI_PORT` | `http://localhost:8080` | `APP__BASE_URL`, and `OPENAEV_XTM_OPENCTI_URL` on OpenAEV | | OpenAEV | `OPENAEV_EXTERNAL_SCHEME`, `OPENAEV_HOST`, `OPENAEV_PORT` | `http://localhost:8081` | `OPENAEV_BASE-URL`, and `XTM__OPENAEV_URL` on OpenCTI | | XTM One | `XTM_ONE_EXTERNAL_SCHEME`, `XTM_ONE_HOST`, `XTM_ONE_PORT` | `http://localhost:8090` | `BASE_URL` and `FRONTEND_URL`, on `xtm-one` and `xtm-one-worker` | | OpenCRQ | `OPENCRQ_EXTERNAL_SCHEME`, `OPENCRQ_HOST`, `OPENCRQ_PORT` | `http://localhost:8082` | `XTM_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](https://filigran.io/docs/deploy/install/reverse-proxy/). ## Outbound connections {#outbound-connections} | From | To | Set by | | --- | --- | --- | | OpenCTI | Your mail server, on port 25 | `SMTP_HOST`. The port is written in `docker-compose.yml` (`SMTP__PORT=25`) | | OpenAEV | Your mail server | `SMTP_HOST` and `SMTP_PORT` | | OpenAEV | Your IMAP server, when `OPENAEV_MAIL_IMAP_ENABLED=true` | `IMAP_HOST` and `IMAP_PORT`, `993` in `.env.sample` | | Docker on the host | Docker Hub, and `docker.elastic.co` for Elasticsearch, to download the images | The `image` of each service | | XTM Composer | The registry of each integration image it deploys | See [Pull integrations from a private registry](https://filigran.io/docs/deploy/integrations/private-registry/) | | OpenCRQ | The 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 remediation | A tenant administrator, who turns each source on in **Integrations**: see [How CVE sources weigh your vulnerabilities](https://filigran.io/docs/opencrq/use/sources/vulnerability-sources/#turn-them-on) | | OpenCRQ | `raw.githubusercontent.com`, for the default threats it loads | `CONNECTORS__DEFAULT_THREATS__DATASET_URL` points it to a mirror, or, empty, turns the default threats off. See the [OpenCRQ configuration](https://filigran.io/docs/reference/opencrq/configuration/#connectors) | | OpenCRQ | `telemetry.ocrq.filigran.io`, for the anonymous usage telemetry | On by default. `TELEMETRY__USAGE__ENABLED=false` on the `opencrq` service turns it off | | OpenCRQ | `login.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 them | The variables of each tenant: see [Configure OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/#connectors-of-each-tenant) | | OpenCRQ | An OpenCTI or an OpenAEV outside the stack, for a tenant connected to it | `CONNECTORS__OPENCTI____URL`, `CONNECTORS__OPENAEV____URL` | | OpenCRQ | Your OpenTelemetry collector, over gRPC (port 4317 in the usual examples), and your Pyroscope server, over HTTP (port 4040), when you turn them on | The observability variables of the `opencrq` service: see [Observability metrics](https://filigran.io/docs/deploy/operate/metrics/) | Each integration also connects to the systems it works with. Its own documentation says which. ## What's next {#what-s-next} - [The XTM stack](https://filigran.io/docs/deploy/plan/architecture/): the modules and the shared services. - [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/). - [Connect the modules to each other](https://filigran.io/docs/deploy/configure/connect-modules/). - [Harden the deployment](https://filigran.io/docs/deploy/operate/harden/). --- # Requirements > What the host and the shared services must provide to run OpenCTI, OpenAEV, OpenCRQ and XTM One, with the versions each module supports. - URL: https://filigran.io/docs/deploy/plan/requirements/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0 - For: platform engineers - Type: Reference This page lists what a deployment of the XTM stack needs before you install it: the host for the Docker deployment, the versions of the shared services each module supports and the settings they need. For the amount of CPU, memory and disk, see [Sizing](https://filigran.io/docs/deploy/plan/sizing/). **Diagram: Each module needs its own set of shared services, and only S3 storage serves all three** - Platforms: OpenCTI (Elasticsearch, RabbitMQ, Redis, S3), OpenAEV (Elasticsearch, RabbitMQ, S3, PostgreSQL) - At the center: XTM One (linux/amd64 images only) - Shared services: Elasticsearch and RabbitMQ (xtm-docker runs 8.19.18 and 4.3), Redis (xtm-docker runs 8.8.0), S3-compatible storage (RustFS in xtm-docker), PostgreSQL (17, with pgvector) Connections: - OpenCTI → Elasticsearch and RabbitMQ - OpenAEV → Elasticsearch and RabbitMQ - OpenCTI → Redis: 7.1 or later - XTM One → Redis - OpenCTI → S3-compatible storage - OpenAEV → S3-compatible storage - XTM One → S3-compatible storage - OpenAEV → PostgreSQL: 17 or later - XTM One → PostgreSQL: with pgvector ## The host, for the Docker deployment {#the-host-for-the-docker-deployment} [FiligranHQ/xtm-docker](https://github.com/FiligranHQ/xtm-docker) needs: | Requirement | Value | | --- | --- | | Docker Engine | 20.10 or later | | Docker Compose | 2.24.4 or later: `docker compose version` prints it. The `docker-compose.yml` of xtm-docker uses `required: false` under `depends_on`, which needs 2.20, and the `!reset` and `!override` tags of the override files in this documentation need 2.24.4. An earlier v2 stops on the first of them | | Processor | `linux/amd64`. XTM One images exist for this platform only: on an ARM machine they run through emulation. On a Mac with an Apple chip, turn on **Use Rosetta for x86_64/amd64 emulation** in Docker Desktop | | Memory and disk | 16 GB of RAM and 50 GB of free disk at least: see [Sizing](https://filigran.io/docs/deploy/plan/sizing/) | | Free ports | The ports the stack publishes: see [Network and ports](https://filigran.io/docs/deploy/plan/network/) | | Kernel setting (Linux) | `vm.max_map_count` raised for Elasticsearch, below | ### Raise vm.max_map_count on Linux {#raise-vm-max-map-count-on-linux} Elasticsearch needs more memory map areas than Linux allows by default. The OpenCTI installation guide sets `vm.max_map_count` to 1048575; the xtm-docker troubleshooting section uses 262144. 1048575 covers both. 1. Set the value for the running system. ```bash sudo sysctl -w vm.max_map_count=1048575 ``` 2. Keep it after a restart. ```bash echo "vm.max_map_count=1048575" | sudo tee -a /etc/sysctl.conf ``` **Check that it worked** ```bash sysctl vm.max_map_count ``` It prints `vm.max_map_count = 1048575`. ## Shared services {#shared-services} The versions each module supports, and the version xtm-docker runs. A module marked "Not used" does not connect to that service. | Service | xtm-docker runs | OpenCTI | OpenAEV | XTM One | OpenCRQ | | --- | --- | --- | --- | --- | --- | | Elasticsearch or OpenSearch | Elasticsearch 8.19.18 | Elasticsearch 8.0 or later, or OpenSearch 2.9 or later | Elasticsearch 8.19 or later | Not used | Not used | | RabbitMQ | 4.3, with the management plugin | 3.11 or later | 4.1 or later | Not used | Not used | | Redis | 8.8.0 | 7.1 or later | Not used | Used, no minimum version documented | Not used | | S3-compatible storage | RustFS 1.0.4 | Any S3-compatible service; MinIO RELEASE.2023-02 or later | MinIO RELEASE.2025-06-13T11-33-47Z or later | Used, no minimum version documented | Any S3-compatible service, its bucket created beforehand | | PostgreSQL | 17, with the pgvector extension | Not used | 17 or later | With the pgvector extension | 17 recommended, 16 at least; it creates the `unaccent` extension | The OpenAEV versions are the recommended ones: OpenAEV may work with earlier versions, but they are not supported. OpenAEV 3.261029.0 detects the search engine from its URL and works with Elasticsearch 8, Elasticsearch 9 or OpenSearch. OpenCTI also works with search, cache and queue services that speak the same protocols, such as managed cloud services: see [Topologies](https://filigran.io/docs/deploy/plan/topologies/). ### Settings the shared services need {#settings-the-shared-services-need} xtm-docker already sets these. Set them yourself when you run the services another way. | Service | Setting | Why | | --- | --- | --- | | Elasticsearch | `thread_pool.search.queue_size=5000` | Filigran recommends it for OpenCTI on a new installation | | RabbitMQ | `max_message_size = 536870912` and `consumer_timeout = 86400000` in `rabbitmq.conf` | Filigran recommends them for OpenCTI on a new installation | | PostgreSQL | `max_connections=200` | OpenAEV opens up to 20 connections, XTM One up to 35 per process over its two web workers and its worker, and OpenCRQ about 50 at peak: more than the default of 100 | | PostgreSQL | The `vector` extension in the `xtm_one` database, created by a superuser | pgvector is not a trusted extension, and the XTM One role is not a superuser. In xtm-docker, `xtm-one-db-init` creates it | | PostgreSQL in a container | At least 1 GB of shared memory: `shm_size: 1gb` in Docker Compose, a memory `emptyDir` on Kubernetes | Parallel queries pass their rows through `/dev/shm`: with the 64 MB a container gets by default, the large queries of OpenCRQ fail with `could not resize shared memory segment`. See [Configure OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/#database) | ## What's next {#what-s-next} - [Sizing](https://filigran.io/docs/deploy/plan/sizing/): CPU, memory and disk for each component. - [Network and ports](https://filigran.io/docs/deploy/plan/network/): the ports to open. - [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/). --- # Sizing > How much CPU, memory and disk the XTM stack needs, on one host with xtm-docker and component by component for production. - URL: https://filigran.io/docs/deploy/plan/sizing/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0 - For: platform engineers - Type: Reference This page gives the CPU, memory and disk the XTM stack needs: first for the whole stack on one host with [FiligranHQ/xtm-docker](https://github.com/FiligranHQ/xtm-docker), then the minimum for each component when you run them on separate machines, and the settings that decide how much memory each process takes. **Diagram: Elasticsearch takes the largest share of memory, so set its Java heap, ELASTIC_MEMORY_SIZE, from the RAM of the host** - RAM of the host: 16 GB (The minimum), 32 GB (Recommended for production), 64 GB or more - .env: ELASTIC_MEMORY_SIZE=2G, ELASTIC_MEMORY_SIZE=4G (The value of .env.sample), ELASTIC_MEMORY_SIZE=8G - Elasticsearch: Java heap (ES_JAVA_OPTS: -Xms and -Xmx) Connections: - 16 GB → ELASTIC_MEMORY_SIZE=2G - 32 GB → ELASTIC_MEMORY_SIZE=4G - 64 GB or more → ELASTIC_MEMORY_SIZE=8G - ELASTIC_MEMORY_SIZE=2G → Java heap: sets - ELASTIC_MEMORY_SIZE=4G → Java heap: sets - ELASTIC_MEMORY_SIZE=8G → Java heap: sets ## One host with xtm-docker {#one-host-with-xtm-docker} | Resource | Minimum | Recommended | | --- | --- | --- | | RAM | 16 GB | 32 GB for production | | Free disk | 50 GB | | Elasticsearch takes the largest share. Its Java heap is `ELASTIC_MEMORY_SIZE` in `.env`, `4G` in `.env.sample`. Set it from the RAM of the host: | RAM of the host | `ELASTIC_MEMORY_SIZE` | | --- | --- | | 16 GB | `2G` | | 32 GB | `4G` | | 64 GB or more | `8G` | **Check that it worked: Check the heap Elasticsearch runs with** ```bash docker compose exec elasticsearch sh -c 'echo $ES_JAVA_OPTS' ``` It prints `-Xms2G -Xmx2G` for `ELASTIC_MEMORY_SIZE=2G`. ## Each component, for production {#each-component-for-production} The minimum for each component on its own machine or container, as the OpenCTI and OpenAEV documentation give them, and for OpenCRQ from the defaults of its image. A service shared by several modules holds the data of all of them. ### Shared services {#shared-services} | Service | Needed by | CPU | RAM | Disk type | Disk space | | --- | --- | --- | --- | --- | --- | | Elasticsearch or OpenSearch | OpenCTI, OpenAEV | 2 cores | 8 GB or more | SSD | 16 GB or more | | PostgreSQL | OpenAEV, OpenCRQ, XTM One | 2 cores | 8 GB or more | SSD | 16 GB or more | | Redis | OpenCTI | 1 core | 1 GB or more | SSD | 16 GB or more | | RabbitMQ | OpenCTI, OpenAEV | 1 core | 512 MB or more | Standard | 2 GB or more | | S3 storage | OpenCTI, OpenAEV, OpenCRQ | 1 core | 128 MB or more | SSD | 16 GB or more | ### Platforms and integrations {#platforms-and-integrations} The platforms, workers and integrations keep no data on disk: their state is in the shared services. **OpenCTI** | Component | CPU | RAM | | --- | --- | --- | | OpenCTI platform | 2 cores | 8 GB or more | | Each worker | 1 core | 128 MB or more | | Each connector | 1 core | 128 MB or more | | XTM Composer | 1 core | 128 MB or more | **OpenAEV** | Component | CPU | RAM | | --- | --- | --- | | OpenAEV platform | 2 cores | 8 GB or more | | Each injector | 1 core | 128 MB or more | | Each collector | 1 core | 128 MB or more | **OpenCRQ** | Component | CPU | RAM | | --- | --- | --- | | OpenCRQ, the `opencrq` container | Not documented | About 5 GB | The container runs two Node.js processes, the worker with a heap of 4,096 MB and the HTTP server with a heap of 512 MB, and a small process that supervises them. At peak, OpenCRQ opens about 50 PostgreSQL connections: count them in `max_connections`. See [Configure OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/#database). No figures are documented yet for XTM One and its worker, nor for the PostgreSQL and Redis load XTM One adds. ## What decides the memory of each process {#what-decides-the-memory-of-each-process} | Process | Setting | In xtm-docker | | --- | --- | --- | | OpenCTI platform | The Node.js heap limit, `NODE_OPTIONS=--max-old-space-size=`. Raise it if the platform stops with out-of-memory errors | `--max-old-space-size=8096`, about 8 GB | | Elasticsearch | The Java heap, `ES_JAVA_OPTS` | `-Xms` and `-Xmx` set to `ELASTIC_MEMORY_SIZE` | | Redis | The length of the OpenCTI event stream, `REDIS__TRIMMING`: 2,000,000 events by default, about 8 GB of memory | Default | | RabbitMQ | RabbitMQ takes memory up to its own threshold: set it together with the memory limit of its container | Default | | S3 storage | RustFS has no memory setting in xtm-docker: limit it with the memory limit of its container | Default | | OpenCRQ | The heaps of its two processes: 4,096 MB for the worker (`PROCESS_MANAGER__SPLIT__WORKER__MEMORY`) and 512 MB for the HTTP server (`PROCESS_MANAGER__SPLIT__HTTP__MEMORY`) | Default | | Workers, connectors, collectors, injectors | Python processes: limit their memory with the limits of their containers | No limit | | PostgreSQL | `max_connections`: OpenAEV opens up to 20 connections, XTM One up to 35 per process over its two web workers and its worker, OpenCRQ about 50 at peak | `200` | ## Workers {#workers} xtm-docker starts three OpenCTI workers. More workers write faster, until the throughput of Elasticsearch becomes the limit. Count one OpenCTI platform for every three workers, and no more than three to four workers per platform: nine workers are spread over three platforms. Why, and how the platform and its workers share the work, is in [OpenCTI architecture](https://filigran.io/docs/opencti/concepts/architecture/). To change the number of workers in xtm-docker, set `replicas` under `worker` > `deploy` in `docker-compose.override.yml`, as [Change the stack without editing docker-compose.yml](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml) describes, then run `docker compose up -d`. To add platforms, see [Scale: workers, platforms and clusters](https://filigran.io/docs/deploy/operate/scale/). ## What's next {#what-s-next} - [Requirements](https://filigran.io/docs/deploy/plan/requirements/): versions and settings of the shared services. - [Topologies](https://filigran.io/docs/deploy/plan/topologies/): one host, a cluster or Kubernetes. - [Scale: workers, platforms and clusters](https://filigran.io/docs/deploy/operate/scale/). --- # Topologies: one host, a cluster, Kubernetes > Where the modules and shared services of the XTM stack can run, from one host with Docker Compose to clusters and Kubernetes, and what each choice gives. - URL: https://filigran.io/docs/deploy/plan/topologies/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers - Type: Concept The modules and shared services of the XTM stack can all run on one host, or be spread over several machines, clusters and managed services. This page explains the topologies the XTM documentation covers today, what each gives and where to go next. It does not replace [Sizing](https://filigran.io/docs/deploy/plan/sizing/), which gives the resources of each component. **Diagram: Choose the topology from what you need, from one host with xtm-docker to separate shared services, a cluster or Kubernetes** - You need: Try or develop (Small deployments too), Production (Data outlives one machine), High availability (And higher throughput), Kubernetes (Your teams run it) - Topology: One host (xtm-docker with Docker Compose), Separate shared services (Clusters or managed services), Cluster (Several platforms behind a load balancer), Kubernetes (No installation guide yet) Connections: - Try or develop → One host: everything runs once - Production → Separate shared services: move the data out - High availability → Cluster: scale horizontally - Kubernetes → Kubernetes: same images ## The choices at a glance {#the-choices-at-a-glance} | Topology | What runs where | Good for | Covered by | | --- | --- | --- | --- | | One host | Every module and shared service in Docker Compose, on one machine | Trying the platform, development, small deployments | [FiligranHQ/xtm-docker](https://github.com/FiligranHQ/xtm-docker) | | Separate shared services | The modules in containers; the shared services in their own clusters or as managed cloud services | Production, when the data must outlive one machine | [Configure the shared services](https://filigran.io/docs/deploy/configure/shared-services/) | | Cluster | Several platform instances and workers behind a load balancer, on clustered shared services | High availability and higher throughput | [Scale: workers, platforms and clusters](https://filigran.io/docs/deploy/operate/scale/) | | Kubernetes | The containers of the stack on a Kubernetes cluster | Teams that run their services on Kubernetes | Not supported yet: [Install on Kubernetes](https://filigran.io/docs/deploy/install/kubernetes/) is coming soon | ## One host {#one-host} The official deployment, xtm-docker, runs the whole stack on one machine with Docker Compose: XTM One, OpenCTI, OpenAEV, their default integrations, XTM Composer and one instance of each shared service. It is the fastest way to start, and the [quick start](https://filigran.io/docs/deploy/quick-start/) uses it. Everything runs once. Elasticsearch runs as a single node, and OpenCTI creates its indices without replicas (`ELASTICSEARCH__NUMBER_OF_REPLICAS=0`). If the machine stops, the whole stack stops. The xtm-docker README asks for 16 GB of RAM at least and 32 GB for production. ## Separate shared services {#separate-shared-services} For production, Filigran recommends running OpenCTI and all its dependencies in containers, on native cloud services or an orchestrator such as Kubernetes. The shared services are the part to move first: they hold all the data, while the platforms, workers and integrations keep none on disk. Each shared service can be a cluster you run or a managed service: | Shared service | OpenCTI also works with | OpenAEV also works with | | --- | --- | --- | | Elasticsearch | OpenSearch, and the AWS, GCP and Azure search services based on the Elasticsearch query language | Elasticsearch 9 and OpenSearch, detected from the URL (3.261029.0) | | Redis | ElastiCache, Memorystore, and the AWS, GCP and Azure services based on the Redis protocol | Not used | | RabbitMQ | Amazon MQ, CloudAMQP, and the AWS, GCP and Azure services based on AMQP | No alternative documented | | S3 storage | Any service that follows the S3 standard | No alternative documented | | PostgreSQL | Not used | No alternative documented | XTM One needs PostgreSQL with the pgvector extension, Redis and S3 storage. No managed-service alternatives are documented for it yet. ## Cluster {#cluster} OpenCTI scales horizontally: several platform instances connected to the same shared services, behind a load balancer, with more workers. Elasticsearch, Redis, RabbitMQ and S3 storage can each run in cluster mode. How to configure each of them, and how to split the platforms between users and ingestion, is in [Scale: workers, platforms and clusters](https://filigran.io/docs/deploy/operate/scale/). Clustering of OpenAEV and XTM One is not documented yet. ## Kubernetes {#kubernetes} Installing the platform on Kubernetes is not supported yet: xtm-docker targets Docker Compose only, and [Install on Kubernetes](https://filigran.io/docs/deploy/install/kubernetes/) is coming soon. XTM Composer can start integrations on Kubernetes as well as on Docker: its daemon selector accepts `kubernetes`, `docker`, `podman`, `swarm` or `portainer`. xtm-docker sets `docker`. See [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/). For OpenCTI and OpenAEV, Helm charts are available as community contributions: [devops-ia/helm-opencti](https://github.com/devops-ia/helm-opencti) and [devops-ia/helm-openaev](https://github.com/devops-ia/helm-openaev). Filigran does not maintain them, and they are not part of xtm-docker. ## What's next {#what-s-next} - [Sizing](https://filigran.io/docs/deploy/plan/sizing/): the resources of each component. - [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/). - [Scale: workers, platforms and clusters](https://filigran.io/docs/deploy/operate/scale/). --- # Run the XTM platform locally > Start the whole XTM platform, XTM One, OpenCTI, OpenAEV, OpenCRQ and XTM Composer, on one machine with Docker Compose. - URL: https://filigran.io/docs/deploy/quick-start/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers, evaluators - Type: Tutorial This tutorial starts the XTM platform on one machine with the official Docker deployment, [FiligranHQ/xtm-docker](https://github.com/FiligranHQ/xtm-docker), in about fifteen minutes. Two commands configure and start the whole stack: XTM One, at the center of the platform, with OpenCTI, OpenAEV, OpenCRQ, XTM Composer, their default integrations and the shared services. No module is optional. It is meant to try the platform or to develop against it, not for production. **Diagram: You clone xtm-docker, create .env with one command and start the whole stack with another, then sign in to each platform on localhost** - Get: git clone (FiligranHQ/xtm-docker) - Configure: .env (docker compose -f init.yml run --rm init) - Start: docker compose up -d (--pull always) - Platforms: XTM One (localhost:8090), OpenCTI (localhost:8080), OpenAEV (localhost:8081), OpenCRQ (localhost:8082) - You: Sign in (Admins of .env, OpenCRQ through XTM One) Connections: - git clone → .env: random secrets - .env → docker compose up -d - docker compose up -d → XTM One: starts - docker compose up -d → OpenCTI: starts - docker compose up -d → OpenAEV: starts - docker compose up -d → OpenCRQ: starts - XTM One → Sign in: healthy - OpenCTI → Sign in: healthy - OpenAEV → Sign in: healthy - OpenCRQ → Sign in: healthy > **Tip: Let an AI agent do it** > > Every step below has a command and a check, so a coding agent such as Claude Code can follow it on its own. See [Deploy with an AI agent](https://filigran.io/docs/deploy/quick-start/with-an-ai-agent/). ## What you need {#what-you-need} - Docker Engine 20.10 or later with Docker Compose 2.20.2 or later (the stack is split into included files): `docker compose version` answers. - On a Mac with an Apple chip: Docker Desktop with **Use Rosetta for x86_64/amd64 emulation** on. XTM One is published for Intel processors only and runs through emulation. - 16 GB of RAM for the whole platform, 32 GB recommended, and 50 GB of free disk. - Git, to get the deployment. Nothing else: the configuration is generated in a container, and the same commands work on Linux, macOS and Windows. - Free ports on the machine: 8080 (OpenCTI), 8081 (OpenAEV), 8082 (OpenCRQ), 8090 (XTM One), and 9200, 9000, 5672, 15672 and 6379 for the shared services. ## What the stack runs {#what-the-stack-runs} Every module starts, with the shared services they use, and each platform answers on its own address. | 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). ## Start the platform {#start-the-platform} 1. Get the deployment. ```bash git clone https://github.com/FiligranHQ/xtm-docker.git cd xtm-docker ``` 2. Create the configuration. ```bash docker compose -f init.yml run --rm init ``` A temporary container creates `.env` from `.env.sample`: a random value for every password, key and token, the users of the shared services, and mail sent to the local machine. It prints the address and the admin password of each platform. Every secret stays in `.env`, which only you can read; the command never overwrites an existing `.env`. **Check that it worked** ```bash docker compose config --quiet ``` It prints nothing: the stack's configuration is complete. On a machine with 16 GB of RAM, give Elasticsearch 2 GB instead of 4: set `ELASTIC_MEMORY_SIZE=2G` in `.env`. If another program uses one of the ports above, change `OPENCTI_PORT` or `XTM_ONE_PORT` in `.env`. The ports of OpenAEV, OpenCRQ and the shared services move in `docker-compose.override.yml`, with `OPENAEV_PORT` and `OPENCRQ_PORT` set to match, as [Network and ports](https://filigran.io/docs/deploy/plan/network/#ports-published-on-the-host) shows. 3. Start the platform. ```bash docker compose up -d --pull always ``` `--pull always` downloads the current images first, even if you have run XTM before: Docker Compose would otherwise start an older image kept under the same `latest` tag. The first start creates the databases: allow a few minutes. **Check that it worked** ```bash docker compose ps opencti openaev xtm-one opencrq ``` The four platforms say `(healthy)` in their status. Run it again until they do. 4. Sign in at the addresses the second step printed, with the admin email and password of each platform. They are in `.env` too: `OPENCTI_ADMIN_PASSWORD`, `OPENAEV_ADMIN_PASSWORD` and `XTM_ONE_ADMIN_PASSWORD`. OpenCRQ has no password: **Sign in with XTM One**, as the admin of XTM One. You land in its first tenant, `Default`, which OpenCRQ creates at its first start and xtm-docker already connects to OpenCTI and OpenAEV. ## Stop and start over {#stop-and-start-over} | To | Run | Your data | | --- | --- | --- | | Stop the platform | `docker compose stop` | Kept | | Remove the containers | `docker compose down` | Kept in the volumes | | Start from scratch | `docker compose down -v` | Deleted, with every volume | ## What's next {#what-s-next} - [Deploy with an AI agent](https://filigran.io/docs/deploy/quick-start/with-an-ai-agent/), to repeat this without typing. - [The XTM platform](https://filigran.io/docs/start/), what each module does and how they work together. --- # Deploy with an AI agent > Let Claude Code or another coding agent deploy the XTM platform on your machine, from a prompt and steps it can check. - URL: https://filigran.io/docs/deploy/quick-start/with-an-ai-agent/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers, evaluators, developers - Type: How-to guide A coding agent such as Claude Code can deploy the XTM platform on your machine by following [Run the XTM platform locally](https://filigran.io/docs/deploy/quick-start/). That page is written for it as much as for you: every step is a command, and every step ends with a check whose expected result is written down. **Diagram: You give a coding agent one prompt, it reads the quick start and runs each step and its check on your machine, then gives you the platform URLs without any secret** - You: Your prompt (The modules you want) - Agent: Coding agent (Such as Claude Code) - What it works from: Quick start in Markdown (Commands and checks), stack.json (Modules, services, ports), llms.txt (Map of the documentation) - Your machine: XTM platform in Docker (XTM One and the modules you chose) Connections: - Your prompt → Coding agent: prompt - Coding agent → Quick start in Markdown: follows step by step - Coding agent → stack.json: reads - Coding agent → llms.txt: reads - Coding agent → XTM platform in Docker: commands and checks - Coding agent → Your prompt: URLs, no secrets ## Before you start {#before-you-start} - Run the agent on a machine you can reset, or a virtual machine: it runs `docker` and `git` with your rights. - Have Docker Compose 2.20.2 or later and 16 GB of RAM on it. ## Give it this prompt {#give-it-this-prompt} The deployment starts the whole stack: XTM One, OpenCTI, OpenAEV, XTM Composer and the default integrations of each platform. The prompt has no module to choose. ```text Deploy the XTM platform on this machine with Docker, following https://filigran.io/docs/deploy/quick-start/index.md step by step. It starts the whole stack: do not try to leave a module out. Before you start, check Docker Compose 2.20.2 or later, the free RAM and the ports the page lists, and tell me what is missing instead of working around it. Create .env with the page's command. It prints the admin passwords: never repeat a password, key or token. After each step, run its check and stop if it does not give the expected result. At the end, give me the URL of each platform and tell me the credentials are in .env. ``` **Check that it worked: What a good run ends with** The agent reports each check it ran, OpenCTI, OpenAEV, XTM One and OpenCRQ say `healthy`, and it gives you the addresses, such as `http://localhost:8080` for OpenCTI, without any secret in its answer. ## What the agent works from {#what-the-agent-works-from} | Source | What it gives | | --- | --- | | [The quick start in Markdown](https://filigran.io/docs/deploy/quick-start/index.md) | Every command, every check, and the table of modules and the services each one starts | | [stack.json](https://filigran.io/docs/deploy/stack.json) | The same stack as data: modules, services, dependencies, ports, health checks | | [llms.txt](https://filigran.io/docs/llms.txt) | The map of the whole documentation | The module table and `stack.json` are generated from the `docker-compose.yml` of FiligranHQ/xtm-docker, so they match what Docker Compose will start. ## What's next {#what-s-next} - [Run the XTM platform locally](https://filigran.io/docs/deploy/quick-start/), the steps the agent follows. --- # Upgrade > Upgrade an XTM stack deployed with Docker Compose to new images, after a backup, and know what each platform migrates on its own. - URL: https://filigran.io/docs/deploy/upgrade/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers - Type: How-to guide This page upgrades an XTM stack deployed with the official Docker deployment, [FiligranHQ/xtm-docker](https://github.com/FiligranHQ/xtm-docker): back up, get the new deployment files, download the new images and start them. OpenCTI and OpenAEV migrate their databases when they start, so you can upgrade from any version to the latest one, even across several major releases. **Diagram: An upgrade backs up the stack, gets the new files and pulls and starts the new images, which migrate their data as they start, and ends with the actions the breaking changes ask for** - Before: 1. Stop, back up (docker compose stop, then the volumes) - Upgrade: 2. Get new files (git pull, then clean .env), 3. Pull and start (The platforms migrate their data) - After: 4. Wait until healthy (docker compose ps), 5. Apply breaking changes (Actions after the upgrade) Connections: - 1. Stop, back up → 2. Get new files - 2. Get new files → 3. Pull and start - 3. Pull and start → 4. Wait until healthy - 4. Wait until healthy → 5. Apply breaking changes ## Before you start {#before-you-start} - Read the [breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/) between your version and the new one. Some need an action before or after the upgrade. - Check the [compatibility matrix](https://filigran.io/docs/deploy/upgrade/compatibility/) when you upgrade one module and not the others. - Plan a maintenance window: the platforms are stopped during the backup and while they migrate their data. The first start after an upgrade can take longer than usual. - Run the commands from the `xtm-docker` folder that holds your `.env`. ## What migrates on its own {#what-migrates-on-its-own} | What | When | | --- | --- | | OpenCTI database schema and data | When the new OpenCTI starts | | OpenAEV database schema and data | When the new OpenAEV starts | | XTM One database schema and data | When the new XTM One starts, as [Upgrade XTM One](https://filigran.io/docs/deploy/upgrade/xtm-one/) describes | | Changes that need you | Listed per version in [Breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/), with a guide for each | To go back to the version you had, restore the backup you take in step 1: the older images alone are not enough. XTM One refuses to start on a database that a newer version migrated: its log says `The database is ahead of this image`, and names the revision it does not know. Do not re-stamp the database to get past it: restore the backup, or deploy an XTM One image that contains that revision. ## Upgrade the stack {#upgrade-the-stack} 1. Take a snapshot of Elasticsearch, as in [Back up the stack](https://filigran.io/docs/deploy/operate/backup/#back-up-the-stack): Elasticsearch cannot be restored from a copy of its volume. Then stop the stack and back up the other volumes. The volume names start with `COMPOSE_PROJECT_NAME` from `.env` (`xtm` by default). ```bash docker compose stop P=$(grep -E '^COMPOSE_PROJECT_NAME=' .env | cut -d= -f2) mkdir -p backup for v in pgsqlshareddata pgsqldata pgsqlxtmonedata s3data redisdata amqpdata rsakeys; do docker volume inspect "${P}_$v" >/dev/null 2>&1 || continue docker run --rm -v "${P}_$v":/data:ro -v "$PWD/backup":/backup alpine tar czf "/backup/$v.tgz" -C /data . done ``` This copy suits a single machine. For a production deployment, see [Back up and restore](https://filigran.io/docs/deploy/operate/backup/). **Check that it worked** ```bash ls -lh backup ``` It lists one `.tgz` file for each volume of your deployment but `esdata`, none of them empty. 2. Get the new deployment files. ```bash git pull ``` The new files split the stack: `docker-compose.yml` includes one file per shared service, in `infra/`, and one per module, in `modules/`. The services, their settings and the volume names stay the same, so your data is kept. If `git pull` refuses because you changed `docker-compose.yml`, move your changes to `docker-compose.override.yml` first: see [Stay on a version or an LTS line](#stay-on-a-version-or-an-lts-line). If you pinned the versions, set the new ones now, as that section describes. If `docker volume ls` lists a volume whose name ends in `pgsqlxtmonedata`, your deployment still has two PostgreSQL containers: follow [Move to the shared PostgreSQL instance](#move-to-the-shared-postgresql-instance) instead of steps 2 and 3. The whole stack always starts, and XTM Composer always manages both OpenCTI and OpenAEV. A `COMPOSE_PROFILES` line, `XTM_COMPOSER_OPENCTI_ENABLE` or `XTM_COMPOSER_OPENAEV_ENABLE` left in `.env` does nothing: remove them. ```bash sed -i.bak -E '/^(COMPOSE_PROFILES|XTM_COMPOSER_OPENCTI_ENABLE|XTM_COMPOSER_OPENAEV_ENABLE)=/d' .env ``` A service of `docker-compose.override.yml` with a `profiles:` line starts only while one of its profiles is turned on. Without `COMPOSE_PROFILES`, a service you added with a line such as `profiles: ["opencti-connectors"]` no longer starts: remove that line from it. **Check that it worked** ```bash docker compose config --quiet && echo "configuration OK" ``` It prints `configuration OK`. 3. Download the new images, then start the stack. ```bash docker compose pull docker compose up -d ``` Download first: Docker Compose would otherwise start the older image kept under the same `latest` tag. The platforms migrate their data as they start: allow several minutes. 4. Wait until the platforms are healthy. ```bash docker compose ps --format '{{.Service}} {{.Health}}' | grep -E '^(opencti|openaev|xtm-one|opencrq) ' ``` **Check that it worked** Each platform says `healthy`. From the host, each one answers its health check: ```bash set -a; . ./.env; set +a curl -fsS "http://localhost:$OPENCTI_PORT/health?health_access_key=$OPENCTI_HEALTHCHECK_ACCESS_KEY" >/dev/null && echo "OpenCTI OK" curl -fsS "http://localhost:8081/api/health?health_access_key=$OPENAEV_HEALTHCHECK_KEY" >/dev/null && echo "OpenAEV OK" curl -fsS "http://localhost:$XTM_ONE_PORT/api/health/ready" >/dev/null && echo "XTM One OK" ``` The container of XTM One stays `healthy` even when its start fails, so its line checks readiness instead, which succeeds only once the migrations and the start are complete. Until then, `curl -sS "http://localhost:$XTM_ONE_PORT/api/health/ready"` answers `"status":"starting"`, with a `startup_error` that gives the reason when the start failed, such as `The database is ahead of this image` after a rollback without the backup. 5. Apply the actions the [breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/) of your new version ask for after the upgrade. If a platform does not become healthy, read its logs, for example `docker compose logs opencti`, and see [Troubleshoot the XTM stack](https://filigran.io/docs/deploy/operate/troubleshoot/). ## Tune the OpenCTI migrations {#tune-the-opencti-migrations} OpenCTI logs each data migration with the `[MIGRATION]` prefix, and runs each one once. Two of them read your configuration. ### Re-index of the targets relationships {#re-index-of-the-targets-relationships} On a platform that has not run it yet, a migration re-indexes the `targets` relationships of every region, country and sector. Its logs start with `Re-indexing targets for region / countries / sectors`. On a large platform, its bulk requests to Elasticsearch can time out and stop the start. Three keys set them; they are read only while this migration runs. | Key | Default | What it does | | --- | --- | --- | | `migrations:reindex_targets_rel:max_bulk_operations` | `1000` | Lines of each bulk request, two for each location. Lower it if the migration fails on timeouts | | `migrations:reindex_targets_rel:bulk_timeout` | `30m` | Timeout of each bulk request, as an Elasticsearch duration | | `migrations:reindex_targets_rel:max_concurrency` | `2` | Bulk requests sent in parallel. Lower it to `1` on a loaded cluster | For example, in `docker-compose.override.yml`, before you start the new version again: ```yaml services: opencti: environment: - MIGRATIONS__REINDEX_TARGETS_REL__MAX_BULK_OPERATIONS=200 - MIGRATIONS__REINDEX_TARGETS_REL__BULK_TIMEOUT=60m - MIGRATIONS__REINDEX_TARGETS_REL__MAX_CONCURRENCY=1 ``` Remove these lines once the platform is healthy. The other migration keys are in the [Technical](https://filigran.io/docs/reference/opencti/configuration/#technical) section of the configuration reference. ### AI switch {#ai-switch} When you upgrade from a version released before September 2025, a migration sets the **Generative AI (AI Insight, NLQ)** switch of **Settings > Filigran Experience** from `ai:enabled` (`AI__ENABLED`): on when the key is unset or `true`, off when it is `false`. After that, you change the switch in the interface, and `ai:enabled` must still be `true` for OpenCTI to reach its model. The model itself is set as [Connect OpenCTI to your own language model](https://filigran.io/docs/deploy/configure/ai-extraction/#connect-opencti-to-your-own-language-model) describes. ## Move to the shared PostgreSQL instance {#move-to-the-shared-postgresql-instance} Earlier versions of xtm-docker ran two PostgreSQL containers: `pgsql` for OpenAEV and `pgsql-xtm-one` for XTM One. OpenAEV and XTM One now share one pgvector instance, on a new `pgsqlshareddata` volume. The old volumes are left untouched, so the new version starts with empty databases unless you move the data. 1. Before you get the new files, dump both databases. ```bash docker compose start pgsql pgsql-xtm-one docker compose stop openaev xtm-one xtm-one-worker docker compose exec -T pgsql sh -c 'pg_dump -U "$POSTGRES_USER" -Fc openaev' > openaev.dump docker compose exec -T pgsql-xtm-one sh -c 'pg_dump -U "$POSTGRES_USER" -Fc xtm_one' > xtm_one.dump docker compose down ``` **Check that it worked** `ls -lh openaev.dump xtm_one.dump` lists two files, none of them empty. 2. Get the new files, prepare the shared instance and restore both databases. The `xtm-one-db-init` service creates the XTM One role, its database and the pgvector extension. ```bash git pull docker compose run --rm xtm-one-db-init docker compose exec -T pgsql sh -c 'pg_restore -U "$POSTGRES_USER" -d openaev' < openaev.dump docker compose exec -T pgsql sh -c 'pg_restore -U "$POSTGRES_USER" -d xtm_one' < xtm_one.dump ``` 3. Download the new images and start the stack, then continue at step 4 of [Upgrade the stack](#upgrade-the-stack). ```bash docker compose pull docker compose up -d ``` 4. Once OpenAEV and XTM One show your data, remove the old volumes. Their names start with your `COMPOSE_PROJECT_NAME`. ```bash docker volume rm xtm_pgsqldata xtm_pgsqlxtmonedata ``` > **Warning: Started the new version before the dump?** > > Your data is still in the old volumes. The `xtm_pgsqlshareddata` volume holds the databases the platforms created on that start, with everything written to them since: removing it deletes those writes. If you need them, dump both databases from `pgsql` first with the `pg_dump` commands above. Then run `docker compose down`, remove the `xtm_pgsqlshareddata` volume, check out the previous version of xtm-docker, and start this procedure again. ## Stay on a version or an LTS line {#stay-on-a-version-or-an-lts-line} xtm-docker starts every image with the `latest` tag, so each upgrade moves to the latest release. To stay on a version, for example an [LTS line](https://filigran.io/docs/deploy/upgrade/lifecycle/) of OpenCTI, set the image tags in `docker-compose.override.yml` with the commands of [Pin the image versions](https://filigran.io/docs/deploy/install/docker-compose/#pin-the-image-versions). With `OPENCTI_VERSION=7.260811.0-lts.1` in them, every OpenCTI image (platform, worker and default connectors) uses `7.260811.0-lts.1`. Give `OPENAEV_VERSION` and `XTM_ONE_VERSION` the releases you run, or `latest`. **Check that it worked** ```bash docker compose config --images | grep '^opencti/' ``` Every OpenCTI image ends in `:7.260811.0-lts.1`. An LTS release needs an LTS license key: see [Versioning and LTS](https://filigran.io/docs/deploy/upgrade/lifecycle/#get-an-lts-release). The lines the documentation describes today: | OpenCTI line | Release documented | Supported until | | --- | --- | --- | | Latest | 7.261030.1 | Replaced by each new release | | 7.260811-lts | 7.260811.0-lts.1 | September 2027 | | 7.260309-lts | 7.260309.0-lts.8 | April 2027 | To upgrade later, run the same commands with the release you upgrade to, such as `OPENCTI_VERSION=7.260811.0-lts.2`, then download the images and start the stack as in [Upgrade the stack](#upgrade-the-stack). A changed `docker-compose.yml`, or a changed file of `infra/` or `modules/`, makes `git pull` refuse to merge. List your changes with `git diff`, and write each one in `docker-compose.override.yml`, as [Change the stack without editing docker-compose.yml](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml) describes: pin image tags with the commands of [Pin the image versions](https://filigran.io/docs/deploy/install/docker-compose/#pin-the-image-versions). Then put the files of xtm-docker back and pull: ```bash git checkout -- . git pull ``` ## Docker Swarm {#docker-swarm} Set the new image tags in your stack file, then force each service to restart on its new image: ```bash docker service update --force ``` ## What's next {#what-s-next} - [Breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/), the actions each version asks for. - [Upgrade XTM One](https://filigran.io/docs/deploy/upgrade/xtm-one/), to upgrade XTM One alone or on its own host. - [Versioning and LTS](https://filigran.io/docs/deploy/upgrade/lifecycle/), to choose between the latest release and an LTS line. - [Compatibility matrix](https://filigran.io/docs/deploy/upgrade/compatibility/), the versions tested together. - [Back up and restore](https://filigran.io/docs/deploy/operate/backup/), for production backups. --- # Breaking changes > The changes of OpenCTI, OpenAEV, XTM One and the XTM Docker deployment that need an action when you upgrade, per version, with the guide for each. - URL: https://filigran.io/docs/deploy/upgrade/breaking-changes/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers, developers - Type: Reference This page lists, per module and version, the changes that need an action when you upgrade: a setting to add, a script to update, a module to upgrade at the same time. Read the entries between your current version and the one you upgrade to, newest first, before you follow [Upgrade](https://filigran.io/docs/deploy/upgrade/). **Diagram: Before you upgrade, read the breaking changes of each part between your version and the new one, newest first, and do what each asks** - You run: Your current version (The entries after it apply) - Breaking changes: XTM Docker deployment (Split compose, shared PostgreSQL), OpenCTI (From 5.12 to 7.260401.0), OpenAEV (From 2.0.0 to 2.3.4), XTM One (From 1.261110.2 to 1.261112.0) - Then: Upgrade (Follow the procedure) Connections: - Your current version → XTM Docker deployment: read - Your current version → OpenCTI: read newest first - Your current version → OpenAEV: read newest first - Your current version → XTM One: read newest first - XTM Docker deployment → Upgrade: act - OpenCTI → Upgrade: act - OpenAEV → Upgrade: act - XTM One → Upgrade: act A change is **deprecated** in the version that announces it, while the old behavior still works, and **changed** in the version where the old behavior stops. ## XTM Docker deployment {#xtm-docker-deployment} | Change | What to do | | --- | --- | | `docker-compose.yml` includes one file per shared service, in `infra/`, and one per module, in `modules/`. The services, their settings and the volume names do not change, and the data is kept. A `git pull` over a changed `docker-compose.yml` refuses to merge | Move your changes to `docker-compose.override.yml` before you pull: [Stay on a version or an LTS line](https://filigran.io/docs/deploy/upgrade/#stay-on-a-version-or-an-lts-line) | | The whole stack always starts, and XTM Composer always manages both OpenCTI and OpenAEV. A `COMPOSE_PROFILES` line, `XTM_COMPOSER_OPENCTI_ENABLE` or `XTM_COMPOSER_OPENAEV_ENABLE` left in `.env` does nothing | Remove these lines from `.env`: step 2 of [Upgrade the stack](https://filigran.io/docs/deploy/upgrade/#upgrade-the-stack) | | OpenAEV and XTM One share one PostgreSQL instance, on a new volume. The new version starts with empty OpenAEV and XTM One databases unless you move the data | Dump both databases before you pull the new version: [Move to the shared PostgreSQL instance](https://filigran.io/docs/deploy/upgrade/#move-to-the-shared-postgresql-instance) | ## OpenCTI {#opencti} | Change | Deprecated in | Changed in | | --- | --- | --- | | [Removal of the filter script](#opencti-7-260401-0) | | 7.260401.0 | | [SSO in the Enterprise Edition, configured in the UI](https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/7-260224-sso-migration/) | | 7.260224.0 | | [Encryption key, tokens, XTM Composer and OpenAEV versions](#opencti-7-260224-0) | | 7.260224.0 | | [Metrics renamed in client-python](https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/6-8-client-python-metrics/) | | 6.8 | | [Scenario generation placeholders](https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/6-5-scenario-generation/) | 6.5 | 6.8 | | [Promote to indicator](https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/6-2-promote-to-indicator/) | 6.2 | 6.8 | | [Stream connectors data import](https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/6-3-stream-connectors/) | 6.3 | 6.6 | | [Functions allowed in webhook templates](#opencti-6-4-11) | | 6.4.11 | | [SAML authentication](https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/6-2-saml-authentication/) | | 6.2 | | [New filter API](https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/5-12-filters/) | | 5.12 | ### OpenCTI 7.260401.0 {#opencti-7-260401-0} **Removal of the filter script.** The GraphQL API refuses the filter script option by default, for security. A script that uses it gets the error `Filter script is not allowed`. To allow it again, at your own risk, set `elasticsearch:unsecure_script_filter_enabled` to `true`: `ELASTICSEARCH__UNSECURE_SCRIPT_FILTER_ENABLED=true` as an environment variable. ### OpenCTI 7.260224.0 {#opencti-7-260224-0} **SSO needs the Enterprise Edition and moves to the UI.** A Community Edition platform can no longer sign in with an SSO configured in the configuration file. Local authentication, with password policies and two-factor authentication, stays available. OpenCTI converts the authentications of the configuration file into authentications managed in the UI. See [SSO migration from environment variables to UI](https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/7-260224-sso-migration/). **OpenAEV and XTM Composer versions.** OpenCTI 7.260224.0 needs OpenAEV 2.2 or later and XTM Composer 2 or later. XTM Composer 2 supports the new token management and the JSON Web Token (JWT) authentication of OpenCTI 7. See the [compatibility matrix](https://filigran.io/docs/deploy/upgrade/compatibility/). **An encryption key is mandatory.** Set `app:encryption_key` to a random key of at least 32 bytes, encoded in base64, and keep it secret. Generate one with `openssl rand -base64 32` and set it as `APP__ENCRYPTION_KEY`. xtm-docker sets it from `OPENCTI_ENCRYPTION_KEY` in `.env`. **Tokens.** Each user can have several API tokens, stored hashed (HMAC), with expiration and usage tracking. Connectors authenticate to the platform with JSON Web Tokens signed by keys the platform derives (Ed25519). OpenCTI migrates the existing tokens; after the migration, a user can no longer read their token back. Update the scripts that read or renew tokens: | Before | Now | | --- | --- | | GraphQL `User.api_token` (`String!`) | `User.api_tokens` (`[ApiToken!]!`) | | GraphQL `MeUser.api_token` | `MeUser.api_tokens` | | GraphQL `meTokenRenew` and `UserEditMutations.tokenRenew` | Removed | | Python client `MeUser.api_token` | `MeUser.api_tokens` | | Python client `token_renew()` | `create_token()` and `remove_token()` | **Python 3.9.** Python 3.9 is no longer supported. Review the scripts that still run with it. ### OpenCTI 6.4.11 {#opencti-6-4-11} **Functions allowed in webhook templates.** A webhook template can only use the functions of an allowed list. You cannot create a template that uses another function, or update an existing template with one. In the versions this documentation describes, templates run in a sandbox whose list is fixed: the standard JavaScript objects and functions, such as `Date`, `JSON`, `Math`, `String`, `Array`, `parseInt` and `encodeURIComponent`. The `APP__NOTIFIER_AUTHORIZED_FUNCTIONS` setting of 6.4.11 no longer exists: remove it from your configuration. A template that uses another name fails with `Forbidden variable access`. See [Write a template](https://filigran.io/docs/opencti/configure/notifiers/#write-a-template). ## OpenAEV {#openaev} | Change | Deprecated in | Changed in | | --- | --- | --- | | [CSRF token enforcement](https://filigran.io/docs/deploy/upgrade/breaking-changes/openaev/2-3-4-csrf-token-enforcement/) | | 2.3.4 | | [Scenario generation from OpenCTI security coverage](https://filigran.io/docs/deploy/upgrade/breaking-changes/openaev/2-2-0-security-coverage/) | | 2.2.0, fixed in 2.2.1 | | [Password encryption](https://filigran.io/docs/deploy/upgrade/breaking-changes/openaev/2-1-0-password-encryption/) | | 2.1.0 | | [OpenAEV renaming](https://filigran.io/docs/deploy/upgrade/breaking-changes/openaev/2-0-0-openaev-renaming/) | OpenBAS 1.18.20 | 2.0.0 | - **2.3.4**: API calls from the OpenAEV interface carry a Cross-Site Request Forgery (CSRF) token. Upgrade the collectors, injectors, OpenAEV agents and custom integrations together with the platform. - **2.2.0**: OpenAEV 2.2.0 works only with OpenCTI 7, and OpenCTI 7 only with OpenAEV 2.2.0 or later. OpenAEV 2.2.1 works with older OpenCTI versions again. - **2.1.0**: two settings become mandatory, `openaev.admin.encryption_key` and `openaev.admin.encryption_salt`, to encrypt the secrets of the integrations stored in the database. - **2.0.0**: OpenBAS becomes OpenAEV. Images, configuration variables, the default bucket, queues and indices are renamed. ## XTM One {#xtm-one} | Change | Deprecated in | Changed in | | --- | --- | --- | | [Built-in web search on Brave Search](#xtm-one-1-261116-0) | 1.261116.0 | | | [Shared state limits lowered](#xtm-one-1-261114-0) | | 1.261114.0 | | [OpenSandbox images 0.6](#xtm-one-1-261114-0) | | 1.261114.0 | | [Chat over HTTP: HTTP/2 at the reverse proxy](#xtm-one-1-261112-0) | | 1.261112.0 | | [Chat WebSocket removed from the API](#xtm-one-1-261112-0) | | 1.261112.0 | | [GitHub Copilot and Cursor removed from AI adoption](#xtm-one-1-261112-0) | | 1.261112.0 | | [On/off switches of `.env` reach the containers](#xtm-one-1-261110-2) | | 1.261110.2 | | [Custom tool sandbox of `.env.sample` takes effect](#xtm-one-1-261110-2) | | 1.261110.2 | | [New OpenSandbox images](#xtm-one-1-261110-2) | | 1.261110.2 | | [Sign-in through platform registration only](#xtm-one-1-261110-2) | | 1.261110.2 | | [Slack senders identified by their own member ID](#xtm-one-1-261110-2) | | 1.261110.2 | ### XTM One 1.261116.0 {#xtm-one-1-261116-0} **Built-in web search on Brave Search.** Google Custom Search, the built-in web search that `BUILTIN_GOOGLE_SEARCH_API_KEY` turns on, is closed to new customers and stops on 1 January 2027. Before that date, create a key in the Brave Search API dashboard, and set it as `BUILTIN_BRAVE_SEARCH_API_KEY` on the platform and the worker. XTM One sets up one built-in web search: Brave Search when this key is set, otherwise Google. With both keys set, it removes the built-in Google Search integration at the next start. The web and image tools of Brave Search also answer to the names of the Google tools, `search_google_web` and `search_google_images`, so the instructions that name them keep working. ### XTM One 1.261114.0 {#xtm-one-1-261114-0} **Shared state limits lowered.** No migration, but the platform trims the entries already past the new limits. The size of a shared state value counts the characters of its JSON. Agents now get a warning when they read back a value past 32,768 characters (was 65,536). A write that leaves a value past 65,536 characters (was 524,288) is refused, unless it makes the value smaller. A write that makes a top-level list longer than 500 items is refused too, while there was no cap before. A write to an archive entry drops its oldest items instead of being refused. The scheduler compacts the entries already past either limit: it drops the oldest items of their lists, and adds a note to the entry with the count. The items an archive write moved are deleted after 14 days (was 30). To keep the previous limits, set these variables on the platform and the worker before you upgrade, `0` turning the list cap off: ```bash SHARED_STATE_VALUE_SOFT_LIMIT_CHARS=65536 SHARED_STATE_VALUE_HARD_LIMIT_CHARS=524288 SHARED_STATE_LIST_MAX_ITEMS=0 SHARED_STATE_ARCHIVE_RETENTION_DAYS=30 ``` See [Review what agents did](https://filigran.io/docs/xtm-one/use/work-history/) for what shared state holds. **OpenSandbox images 0.6.** By default, XTM One now asks the OpenSandbox server for `sandbox-python:0.6` and `sandbox-nodejs:0.6`, instead of `sandbox-python:0.5` and `sandbox-nodejs:0.4`. `sandbox-python:0.6` adds PyAV, which decodes the frames of a video in the code interpreter. Before you upgrade, check that the server can pull or find them: they are published as `xtmone/sandbox-python` and `xtmone/sandbox-nodejs`, or built with `backend/sandbox/build-image.sh`. Otherwise, sandbox creation fails. To keep the previous images, set `OPENSANDBOX_IMAGES=python:sandbox-python:0.5,nodejs:sandbox-nodejs:0.4` on the platform and the worker: both stay published. On Kubernetes, a pool's image is set on the pool, not by `OPENSANDBOX_IMAGES`: move it to the new image with the default. ### XTM One 1.261112.0 {#xtm-one-1-261112-0} **Chat over HTTP: HTTP/2 at the reverse proxy.** No migration. The web chat, the rails of the deck and video studios, voice mode and the Office add-in no longer use a WebSocket: they stream over HTTP, as server-sent events, under `/api/v1/web/chat`. Every open tab holds its own streams, and a browser opens 6 HTTP/1.1 connections per host at most. Behind a proxy that speaks only HTTP/1.1 to browsers, a few open tabs use them all up and the app stops loading. Before you upgrade, check three settings of the proxy in front of XTM One: - HTTP/2 between browsers and the proxy. The proxy may still reach XTM One over HTTP/1.1. - No response buffering for `/api/`, or an answer shows only once it is complete. Nginx honours the `X-Accel-Buffering: no` header XTM One sends on the chat streams; another proxy needs the setting. - A read timeout above 15 seconds: an idle stream writes a keep-alive every 15 seconds. An agent's answer can take minutes, so keep 300 seconds. In Nginx 1.25.1 and later, the server block of XTM One in [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/) becomes: ```nginx server { listen 443 ssl; http2 on; server_name xtm-one.example.com; # certificates, client_max_body_size and location / as before, with: # proxy_buffering off; # proxy_read_timeout 300s; } ``` Before Nginx 1.25.1, write `listen 443 ssl http2;` instead of the `http2 on;` line. The proxy keeps forwarding the WebSocket upgrade: XTM One Desktop, runners and relays still connect over WebSocket, and fall back to slower HTTP polling without it. **Chat WebSocket removed from the API.** A script that opened `WS /api/v1/chat/conversations/{id}/ws` must move to the HTTP routes: | Before | Now | | --- | --- | | Open the WebSocket with the session token in `?token=` | Send the session token as `Authorization: Bearer`. These routes accept a web session only, and refuse an API key or a platform token with `403` | | Send a message frame on the socket | `POST /api/v1/web/chat/messages`, with `content` and `conversation_id`. The response streams the same frames as server-sent events | | Keep the socket open to follow the conversation | `GET /api/v1/web/chat/conversations/{id}/events` | | Stop, Continue now, steering and approvals as frames | A `POST` each, under `/api/v1/web/chat/messages/`: `cancel`, `skip-wait`, `steer` and `approve` | | `ping` and `pong` frames | None. An idle stream writes a keep-alive comment every 15 seconds | | Close code `4003` | HTTP `403`, with `code` `chat_unavailable` or `terms_required` | | An `error` frame for a send refused before it starts | An HTTP error with `detail` | | The session ends while the socket is open | A `session_expired` frame, then the end of the stream | A script that authenticates with an API key keeps `POST /api/v1/chat/conversations/{id}/messages`, which is unchanged. See the [XTM One chat API](https://filigran.io/docs/develop/apis/chat/). **GitHub Copilot and Cursor removed from AI adoption.** **AI Adoption** now follows the agentic AI of XTM One alone: it keeps its **Overview** and **Adoption Gaps** tabs, and its configuration card leaves **Settings** > **Usage and quotas** > **Observability**. The migration `x11380devadopt1` deletes the GitHub Copilot and Cursor keys, the mapping of people to their GitHub logins and Cursor emails, and the metrics collected from both. The routes under `/api/v1/ai-external-keys` are removed. A rollback with the downgrade does not bring the data back: only the database backup taken before the upgrade does. The same release removes focus mode: the focus mode choices of people and groups are no longer used, and `x11380focdrop1` drops them. No action is needed for either. ### XTM One 1.261110.2 {#xtm-one-1-261110-2} **On/off switches of `.env` reach the containers.** This concerns the Docker Compose file of the module, which runs XTM One on its own host. xtm-docker and Kubernetes deployments are unchanged. Before, that file passed a fixed list of variables, so most on/off switches of `.env.sample` did nothing in `.env`. It now passes them all to `platform`, `worker` and `worker-preview`: `DISABLE_CUSTOM_TOOLS`, `MCP_DCR_ENABLED`, `PROMETHEUS_ENABLED`, `ASSIGNMENT_QUEUE_ENABLED` and the others. Only `DEBUG`, `A2A_ALLOW_INSECURE_LOOPBACK` and `TRUST_PROXY_HEADERS` stay out. A switch your `.env` sets applies at the next `docker compose up -d`. A switch that is also in **Administration** > **Settings** > **Access and security** of XTM One then shows read-only there: the variable wins until you remove it. A blank value counts as unset, and no longer stops the startup. Before you upgrade, list the switches your `.env` sets, and remove those you do not want applied: ```bash grep -E '^[A-Z_]+=(true|false)' .env ``` **The custom tool sandbox of `.env.sample` takes effect.** The same file now also passes `CUSTOM_TOOL_SANDBOX` and the `OPENSANDBOX_*` variables. `.env.sample` sets `CUSTOM_TOOL_SANDBOX=opensandbox`, which had no effect in 1.261030.0. Once you turn them on, the code interpreter and custom tools fail unless the `opensandbox` service runs: `Custom tool sandbox is set to 'opensandbox' but the OpenSandbox server is not reachable`. Run that service with its profile, or set `CUSTOM_TOOL_SANDBOX=auto`: see the [OpenSandbox](https://filigran.io/docs/reference/xtm-one/configuration/#opensandbox) settings. A `docker-compose.override.yml` that passed these variables to `platform`, `worker` and `worker-preview` can drop them. **New OpenSandbox images.** By default, XTM One now asks the OpenSandbox server for `sandbox-python:0.5` and `sandbox-nodejs:0.4`, instead of `0.3` for both. The server must pull or find them. They are published as `xtmone/sandbox-python` and `xtmone/sandbox-nodejs`, or built with `backend/sandbox/build-image.sh`. Otherwise, sandbox creation fails. To keep the previous images, set `OPENSANDBOX_IMAGES=python:sandbox-python:0.3,nodejs:sandbox-nodejs:0.3` on the platform and the worker: `0.3` stays published. On Kubernetes, a pool's image is set on the pool, not by `OPENSANDBOX_IMAGES`. **Sign-in through platform registration only.** In 1.261030.0, an application registered at `/mcp/oauth/register` with the `openid` scope got ID tokens, and could sign people in with their XTM One account. It no longer gets them: only the sign-in client of a registered platform, `xtm-platform-`, gets OpenID Connect. Register such an application as a platform instead, with `POST /api/v1/platform/register`: - Authenticate with `PLATFORM_REGISTRATION_TOKEN`. The published default token gets no sign-in client. - Send its callbacks in `sign_in_redirect_uris`, on the origin of its own `platform_url`. The answer gives its client ID in `sign_in_client_id`. - Sending `[]` removes the client, and so does unregistering or purging the platform. A platform whose registration is not active signs nobody in. Such a sign-in shows no consent page, and the audit log records it with `"consent": false`. Its token answer has no `refresh_token`. Its `access_token` is bound to the client, and no Model Context Protocol (MCP) endpoint accepts it: rely on the ID token only. An administrator who impersonates someone is never signed in to a module as them. MCP clients have nothing to change. **Slack senders identified by their own member ID.** No action is needed. Before, the Slack bot identified a sender by the channel they wrote in, and could answer a member as another account. The migration `s5811slackid01` removes the identities that name a channel (`slack:C…`, `slack:G…`, `slack:D…`) from the users' linked identities. The member IDs an administrator linked (`slack:U…`, `slack:W…`) stay. XTM One links a member again on their next message whose email matches an account. A member whose email matches none is unidentified, or anonymous where the bot allows it. See [How the bot knows who is talking](https://filigran.io/docs/xtm-one/administer/channels/#how-the-bot-knows-who-is-talking). ## What's next {#what-s-next} - [Upgrade](https://filigran.io/docs/deploy/upgrade/), the procedure itself. - [Compatibility matrix](https://filigran.io/docs/deploy/upgrade/compatibility/), the versions that must move together. - [Versioning and LTS](https://filigran.io/docs/deploy/upgrade/lifecycle/), how versions are numbered. --- # OpenAEV renaming > Upgrade from OpenBAS to OpenAEV 2.0.0, with the renamed images, variables, bucket, queues and indices, and the OpenAEV agents to reinstall. - URL: https://filigran.io/docs/deploy/upgrade/breaking-changes/openaev/2-0-0-openaev-renaming/ - Products: OpenAEV 3.261118.0 - For: platform engineers - Type: How-to guide OpenBAS (Open Breach and Attack Simulation) became OpenAEV (Open Adversarial Exposure Validation) in version 2.0.0. The upgrade renames images, configuration variables and storage names. Most of it is automatic; this page lists what you check or change by hand. **Diagram: OpenAEV 2.0.0 renames each OpenBAS name to OpenAEV, migrates most of them on its own, and leaves a few steps to you** - Before 2.0.0 (OpenBAS): Docker images (openbas/*), Configuration (OPENBAS_* variables), S3 bucket (openbas), RabbitMQ queues (Prefix openbas), Search indices (Prefix openbas), Agents as user services (OpenBAS agent) - From 2.0.0 (OpenAEV): Docker images (openaev/*, such as openaev/platform), Configuration (OPENAEV_* variables), S3 bucket (openaev, or MINIO_BUCKET=openbas), RabbitMQ queues (Prefix openaev), Search indices (Prefix openaev), Agents as user services (OpenAEV agent) Connections: - Docker images → Docker images: pull from openaev - Configuration → Configuration: migrated on its own - S3 bucket → S3 bucket: move or keep - RabbitMQ queues → RabbitMQ queues: finish simulations first - Search indices → Search indices: delete old indices - Agents as user services → Agents as user services: uninstall and reinstall | | Version | | --- | --- | | Deprecated in | OpenBAS 1.18.20 | | Removed in | OpenAEV 2.0.0 | The first start of OpenAEV 2.0.0 takes longer than usual: it applies every change. ## Before you start {#before-you-start} - Let the running simulations finish: the RabbitMQ queues are renamed, and a simulation in progress during the upgrade can be affected. ## What to change {#what-to-change} | What | Before | From 2.0.0 | What to do | | --- | --- | --- | --- | | Docker images | `openbas/*` | `openaev/*`, for example `openaev/platform` | Pull the images from the [OpenAEV namespace on Docker Hub](https://hub.docker.com/u/openaev). xtm-docker already uses it | | Configuration | `OPENBAS_*` variables, such as `OPENBAS_PROVIDER_XXX` for SAML | `OPENAEV_*`, such as `OPENAEV_PROVIDER_XXX` | Migrated on its own. If OpenAEV does not start, compare your variables with the [OpenAEV configuration reference](https://filigran.io/docs/reference/openaev/configuration/), SAML ones first | | CrowdStrike response scripts | `OpenBAS Subprocessor (XXX)` | `OpenAEV Subprocessor (XXX)` | Check the response script names in the CrowdStrike settings of your platform properties or environment variables: see [How integrations run](https://filigran.io/docs/deploy/integrations/how-they-run/) | | S3 bucket (`minio.bucket`) | `openbas` | `openaev` | If you used the default bucket, move its content to `openaev`, or set `MINIO_BUCKET=openbas` to keep it | | RabbitMQ queue prefix (`openaev.rabbitmq.prefix`) | `openbas` | `openaev` | Let running simulations finish before the upgrade | | Elasticsearch or OpenSearch index prefix (`engine.index-prefix`) | `openbas` | `openaev` | After the migration, delete the `openbas` indices to free space | ## Reinstall the OpenAEV agents installed as user services {#reinstall-the-openaev-agents-installed-as-user-services} OpenAEV moves the agent folders on the assets from OpenBAS to OpenAEV, except for agents installed as user services through the advanced installation. The old folder keeps the attack logs and execution files, so no data is lost. 1. On each endpoint whose agent runs as a user service, uninstall the OpenBAS agent, with the command for its operating system in [OpenAEV agents](https://filigran.io/docs/openaev/use/agents/). 2. Install the OpenAEV agent on it. **Check that it worked** The endpoint shows a new OpenAEV agent. The old OpenBAS agent is obsolete. ## What's next {#what-s-next} - [Upgrade](https://filigran.io/docs/deploy/upgrade/), the upgrade procedure. - [OpenAEV agents](https://filigran.io/docs/openaev/use/agents/), to install and manage agents. - [Breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/), the other changes per version. --- # Password encryption > OpenAEV 2.1.0 encrypts the secrets of integrations stored in its database and needs two new mandatory settings, an encryption key and a salt. - URL: https://filigran.io/docs/deploy/upgrade/breaking-changes/openaev/2-1-0-password-encryption/ - Products: OpenAEV 3.261118.0 - For: platform engineers - Type: How-to guide From OpenAEV 2.1.0, the integrations of the catalog are managed from the OpenAEV interface, and their configuration is stored in the database. OpenAEV encrypts the passwords and secrets of that configuration, which needs two new mandatory settings. This page gives them and how to set them. **Diagram: From OpenAEV 2.1.0, a key and a salt set before the start let OpenAEV encrypt the secrets of integrations in its database, so keep both with your backups** - Configuration (.env): Encryption key (OPENAEV_ADMIN_ENCRYPTION_KEY), Encryption salt (OPENAEV_ADMIN_ENCRYPTION_SALT, at least 8 bytes) - OpenAEV 2.1.0 and later: OpenAEV (Derives a 256-bit key) - Storage: Integration configuration (Passwords and secrets encrypted), Your backups (A copy of the key and the salt) Connections: - Encryption key → OpenAEV: set before start - Encryption salt → OpenAEV: set before start - OpenAEV ↔ Integration configuration: encrypts and reads - Encryption key → Your backups: keep a copy - Encryption salt → Your backups: keep a copy | | Version | | --- | --- | | Introduced in | OpenAEV 2.1.0 | ## The two settings {#the-two-settings} | Parameter | Environment variable | Default | Description | | --- | --- | --- | --- | | `openaev.admin.encryption_key` | `OPENAEV_ADMIN_ENCRYPTION_KEY` | None, mandatory | Key used with the salt to derive the 256-bit key that encrypts sensitive data in the database | | `openaev.admin.encryption_salt` | `OPENAEV_ADMIN_ENCRYPTION_SALT` | None, mandatory | Salt used with the key. At least 8 bytes long | ## Set them {#set-them} Set both before you start OpenAEV 2.1.0 or later. With xtm-docker, they are in `.env`. 1. Check whether `.env` already gives them a value. ```bash grep -E '^OPENAEV_ADMIN_ENCRYPTION_(KEY|SALT)=[^ #]' .env ``` If it prints both lines, keep them and stop here: OpenAEV needs the same values to read the secrets it has already encrypted. 2. Otherwise, generate a key and a salt and write them to `.env`. ```bash sed -i.bak -e "s|^OPENAEV_ADMIN_ENCRYPTION_KEY=.*|OPENAEV_ADMIN_ENCRYPTION_KEY=$(openssl rand -hex 32)|" \ -e "s|^OPENAEV_ADMIN_ENCRYPTION_SALT=.*|OPENAEV_ADMIN_ENCRYPTION_SALT=$(openssl rand -hex 16)|" .env ``` **Check that it worked** ```bash grep -E '^OPENAEV_ADMIN_ENCRYPTION_(KEY|SALT)=[^ #]' .env ``` It prints both lines, each with a value. 3. Start OpenAEV again: `docker compose up -d openaev`. Keep a copy of both values with your backups: without them, OpenAEV cannot read the secrets it has encrypted. ## What's next {#what-s-next} - [OpenAEV configuration reference](https://filigran.io/docs/reference/openaev/configuration/), every OpenAEV setting. - [Breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/), the other changes per version. --- # Scenario generation from OpenCTI security coverage > OpenAEV 2.2.0 works only with OpenCTI 7 and the reverse. Upgrade both together, or move to OpenAEV 2.2.1, which works with older OpenCTI again. - URL: https://filigran.io/docs/deploy/upgrade/breaking-changes/openaev/2-2-0-security-coverage/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0 - For: platform engineers - Type: How-to guide OpenCTI 7 changed the API that OpenCTI and OpenAEV use to work together, for example to generate scenarios from the security coverage of OpenCTI. As a result, OpenAEV 2.2.0 works only with OpenCTI 7, and OpenCTI 7 only with OpenAEV 2.2.0 or later. This page says how to upgrade a connected pair without breaking the connection. **Diagram: OpenAEV 2.2.0 connects only to OpenCTI 7, while OpenAEV 2.2.1 and later connect to OpenCTI 6 and 7, so upgrade to 2.2.1 rather than 2.2.0** - OpenAEV: Earlier than 2.2.0 (OpenCTI 6 only), OpenAEV 2.2.0 (OpenCTI 7 only), OpenAEV 2.2.1 and later (Works with both) - OpenCTI: OpenCTI 6 (Earlier API), OpenCTI 7 (Changed API) Connections: - Earlier than 2.2.0 ↔ OpenCTI 6: works - OpenAEV 2.2.0 ↔ OpenCTI 7: works - OpenAEV 2.2.1 and later ↔ OpenCTI 6: works - OpenAEV 2.2.1 and later ↔ OpenCTI 7: works | | Version | | --- | --- | | Introduced in | OpenAEV 2.2.0 | | Resolved in | OpenAEV 2.2.1 | ## Which versions work together {#which-versions-work-together} | OpenAEV | OpenCTI 6 | OpenCTI 7 | | --- | --- | --- | | Earlier than 2.2.0 | Yes | No | | 2.2.0 | No | Yes | | 2.2.1 and later | Yes | Yes | ## What to do {#what-to-do} - Upgrade OpenAEV to 2.2.1 or later rather than 2.2.0: it works with OpenCTI 6 and 7. - If you must run OpenAEV 2.2.0, upgrade OpenCTI to version 7 at the same time. Upgrading one without the other breaks the connection between them. - Before you upgrade OpenCTI to version 7, upgrade OpenAEV to 2.2.1 or later. With xtm-docker, one `docker compose pull` moves every module to its latest release together: see [Upgrade](https://filigran.io/docs/deploy/upgrade/). ## What's next {#what-s-next} - [Threat-informed validation](https://filigran.io/docs/workflows/threat-informed-validation/), the workflow that generates scenarios from OpenCTI. - [Compatibility matrix](https://filigran.io/docs/deploy/upgrade/compatibility/), the other constraints between modules. - [Breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/), the other changes per version. --- # CSRF token enforcement > From OpenAEV 2.3.4, API calls from the interface carry a CSRF token. Upgrade the integrations and agents together with the platform to avoid 401 and 403 errors. - URL: https://filigran.io/docs/deploy/upgrade/breaking-changes/openaev/2-3-4-csrf-token-enforcement/ - Products: OpenAEV 3.261118.0 - For: platform engineers - Type: How-to guide From OpenAEV 2.3.4, every API call that the OpenAEV interface makes must carry a valid Cross-Site Request Forgery (CSRF) token. It protects signed-in sessions, and every component that calls the OpenAEV API through a signed-in web session must support it. This page says what to upgrade together and how to check the result. **Diagram: From OpenAEV 2.3.4, API calls from signed-in sessions carry a CSRF token, so upgrade every component that calls the API in the same window as the platform** - Upgraded with the platform: OpenAEV interface (Signed-in web session), Injectors and collectors (Released for 2.3.4 or later), OpenAEV agents (Released for 2.3.4 or later), Your integrations (Updated for 2.3.4 or later) - OpenAEV 2.3.4 and later: OpenAEV API (Expects a valid CSRF token) - Left on older versions: Older components (Mixed versions) Connections: - OpenAEV interface → OpenAEV API: with CSRF token - Injectors and collectors → OpenAEV API: API calls - OpenAEV agents → OpenAEV API: API calls - Your integrations → OpenAEV API: API calls - OpenAEV API → Older components: 401 or 403 errors | | Version | | --- | --- | | Introduced in | OpenAEV 2.3.4 | ## What breaks with mixed versions {#what-breaks-with-mixed-versions} When the platform is on 2.3.4 or later and some components are older, API calls can fail at sign-in or when they change data: - `401 Unauthorized` responses. - `403 Forbidden` responses, for a missing or invalid CSRF token. - Integrations that fail to create, update or trigger operations through the OpenAEV API. ## Upgrade together {#upgrade-together} In the same maintenance window, upgrade the platform and every component that calls it, to versions released for OpenAEV 2.3.4 or later: - injectors - collectors - OpenAEV agents - other integrations - your own integrations that use the API > **Warning** > > Do not run mixed versions in production, for example OpenAEV 2.3.4 with older injectors or collectors. With xtm-docker, the default collectors and injectors (the `openaev-integrations` profile) use the `latest` tag: `docker compose pull` and `docker compose up -d` upgrade them with the platform. See [Upgrade](https://filigran.io/docs/deploy/upgrade/). ## Check that it works {#check-that-it-works} 1. Sign in to OpenAEV and run a standard action, such as launching an inject. **Check that it worked** The action succeeds, with no authentication error. 2. Look for `401` and `403` responses in the logs of the platform and of the integrations. ```bash docker compose logs --since 1h | grep -wE '401|403' ``` **Check that it worked** None of the lines it prints is an OpenAEV API call that failed, and no component reports a failed API connection. ## What's next {#what-s-next} - [Upgrade](https://filigran.io/docs/deploy/upgrade/), the upgrade procedure. - [How integrations run](https://filigran.io/docs/deploy/integrations/how-they-run/), to upgrade integrations you deployed yourself. - [Breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/), the other changes per version. --- # New filter API > Convert the filters of your scripts, connectors and API calls to the recursive filter format that OpenCTI 5.12 introduced, with the renamed filter keys. - URL: https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/5-12-filters/ - Products: OpenCTI 7.261119.0 - For: platform engineers, developers - Type: How-to guide OpenCTI 5.12 replaced the [filter format](https://filigran.io/docs/develop/apis/filters/) of its API with a recursive one that combines filters with `and` and `or`, nests groups, and tests empty fields. OpenCTI converts the filters it stores, but not those of your own scripts, connectors and API calls. This page shows how to convert them. **Diagram: OpenCTI 5.12 converts its stored filters to the recursive filter group on its own, while you convert the filters of your code and build the view filters again** - Filters before 5.12: Stored filters (Saved in the database), Your code (Connectors, GraphQL queries, Python scripts), View filters (In the URL and local storage, lost) - Conversion: First start of 5.12 (Migrates them on its own), Your conversion (Rename keys, filterMode to mode, split null values, wrap in a group) - OpenCTI 5.12 and later: FilterGroup (mode, filters, nested filterGroups) Connections: - Stored filters → First start of 5.12: at first start - First start of 5.12 → FilterGroup: converted - Your code → Your conversion: convert by hand - Your conversion → FilterGroup: new format - View filters → FilterGroup: build again | | Version | | --- | --- | | Changed in | OpenCTI 5.12 | ## Why the format changed {#why-the-format-changed} The old format could not express complex combinations: no filters within filters, one fixed combination (`and` between filters, `or` between the values of a filter), and the operator was part of the key, as in `entity_type_not_eq`. The frontend and backend formats differed, and the keys were static lists maintained by hand. The [Filigran blog post on advanced filtering](https://blog.filigran.io/introducing-advanced-filtering-possibilities-in-opencti-552147565faf) tells the full story. ```ts // OpenCTI < 5.12: a flat list type Filter = { key: string, // one of the filter keys of the entity type values: string[], operator: string, filterMode: 'and' | 'or', } ``` The new format is a recursive group of filters: ```ts // OpenCTI >= 5.12 type FilterGroup = { mode: 'and' | 'or' filters: Filter[] filterGroups: FilterGroup[] // nested groups } type Filter = { key: string[] values: string[] operator: 'eq' | 'not_eq' | 'gt' // and more mode: 'and' | 'or', } // Reports and RFIs, not marked TLP:RED, with labelX or no label const filters = { mode: 'and', filters: [ { key: 'entity_type', values: ['Report', 'Case-Rfi'], operator: 'eq', mode: 'or' }, { key: 'objectMarking', values: [''], operator: 'not_eq', mode: 'or' }, ], filterGroups: [{ mode: 'or', filters: [ { key: 'objectLabel', values: [''], operator: 'eq', mode: 'or' }, { key: 'objectLabel', values: [], operator: 'nil', mode: 'or' }, ], filterGroups: [], }], }; ``` ## What changed {#what-changed} - Each filter has its own operator and mode, and groups nest through `filterGroups`. - Keys are strings, no longer a fixed list per entity type. - `values` can no longer contain `null`: the new operators `nil` and `not_nil` test whether a field is empty. - Some keys were renamed to match the entity schema: see [Renamed filter keys](#renamed-filter-keys). ## What migrates on its own {#what-migrates-on-its-own} | Filters | Migrated | | --- | --- | | [Stored filters](https://filigran.io/docs/develop/apis/filters/), saved in the database | Yes, when OpenCTI 5.12 first starts | | Filters in your connectors, GraphQL queries and Python scripts | No: convert them below | | Filters of the views, kept in the URL and the browser's local storage | No: they are lost. Build them again in the interface | A URL with filters in the old format shows a warning, and OpenCTI removes its filters. Build the filters again and share the new URL. ## Convert a filter {#convert-a-filter} 1. Rename the `key` if it is in the [renamed filter keys](#renamed-filter-keys). 2. Rename `filterMode` to `mode`. 3. If `values` contains `null`, split the filter in two, as shown below. 4. Put the converted filters in a group: `{ mode: 'and', filters: [ ... ], filterGroups: [] }`. ```ts const oldFilter = { key: 'old_key', values: ['value1', 'value2'], operator: 'XX', filterMode: 'XX', } const convertedFilter = { key: 'converted_key_if_necessary', values: ['value1', 'value2'], operator: 'XX', mode: 'XX', } const newFilters = { mode: 'and', filters: [convertedFilter1, convertedFilter2], // every converted filter filterGroups: [], } ``` ### Filters with a null value {#filters-with-a-null-value} Split a filter whose `values` contain `null` in two: - A filter for `null`, with `values: []` and the operator `nil` (if it was `eq`) or `not_nil` (if it was `not_eq`). - A filter with the other values. ```ts // Must have a label, and not Label1 or Label2 const oldFilter = { key: 'labelledBy', values: [null, 'id-for-Label1', 'id-for-Label2'], operator: 'not_eq', filterMode: 'and', } const newFilters = { mode: 'and', filters: [ { key: 'objectLabel', values: ['id-for-Label1', 'id-for-Label2'], operator: 'not_eq', mode: 'and' }, { key: 'objectLabel', values: [], operator: 'not_nil', mode: 'and' }, ], filterGroups: [], } ``` > **Tip: Nest a group to keep the logic** > > An `eq` filter with a `null` value, combined in `and` mode with other filters, needs a nested group to mean the same thing: see the second example below. ## Renamed filter keys {#renamed-filter-keys} | Key before 5.12 | Key from 5.12 | | --- | --- | | `labelledBy` | `objectLabel` | | `markedBy` | `objectMarking` | | `objectContains` | `objects` | | `killChainPhase` | `killChainPhases` | | `assigneeTo` | `objectAssignee` | | `participant` | `objectParticipant` | | `creator` | `creator_id` | | `hasExternalReference` | `externalReferences` | | `hashes_MD5` | `hashes.MD5` | | `hashes_SHA1` | `hashes.SHA-1` | | `hashes_SHA256` | `hashes.SHA-256` | | `hashes_SHA512` | `hashes.SHA-512` | ## Examples {#examples} ### Reports with label1 or label2 {#reports-with-label1-or-label2} `(entity_type = Report) AND (label = label1 OR label2)` ```ts const oldBackendFilter = [ { key: 'entity_type', values: ['Report'], operator: 'eq', filterMode: 'or' }, { key: 'labelledBy', values: [label1_id, label2_id], operator: 'eq', filterMode: 'or' }, ]; const newFilters = { mode: 'and', filters: [ { key: 'entity_type', values: ['Report'], operator: 'eq', mode: 'or' }, { key: 'objectLabel', values: [label1_id, label2_id], operator: 'eq', mode: 'or' }, ], filterGroups: [], }; ``` ### Reports with label1, label2 or no label {#reports-with-label1-label2-or-no-label} `(entity_type = Report) AND (label = "No label" OR label1 OR label2)` ```ts const oldBackendFilter = [ { key: 'labelledBy', values: [label1_id, label2_id, null], operator: 'eq', filterMode: 'or' }, { key: 'entity_type', values: ['Report'], operator: 'eq', filterMode: 'or' }, ]; const newFilters = { mode: 'and', filters: [ { key: 'entity_type', values: ['Report'], operator: 'eq', mode: 'or' }, ], // this combination of mode and operator needs a nested group filterGroups: [ { mode: 'or', filters: [ { key: 'objectLabel', values: [label1_id, label2_id], operator: 'eq', mode: 'or' }, { key: 'objectLabel', values: [], operator: 'nil', mode: 'or' }, // values and mode do not matter ], filterGroups: [], }, ], }; ``` ## What's next {#what-s-next} - [Filters](https://filigran.io/docs/develop/apis/filters/), the filter format and its operators. - [Breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/), the other changes per version. --- # Promote to indicator > The OpenCTI API calls that promote an observable now return the created Indicator, through a new GraphQL mutation and a new Python client method. - URL: https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/6-2-promote-to-indicator/ - Products: OpenCTI 7.261119.0 - For: platform engineers, developers - Type: How-to guide From OpenCTI 6.2, the API calls that promote an observable to an Indicator return the Indicator they create, instead of the observable. The old calls were removed in 6.8. This page lists the replacements, for scripts that call the GraphQL API or the Python client. **Diagram: From OpenCTI 6.2, new promote calls of the GraphQL API and the Python client return the created Indicator instead of the observable, and the old calls are gone in 6.8** - Removed in OpenCTI 6.8: promote (GraphQL mutation), promote_to_indicator (Python client method) - From OpenCTI 6.2: promoteToIndicator (GraphQL mutation), promote_to_indicator_v2 (Python client method) - What the call returns: The observable (Returned by the old calls), The new Indicator (Adapt the fields you read) Connections: - promote → promoteToIndicator: replace with - promote_to_indicator → promote_to_indicator_v2: replace with - promoteToIndicator → The new Indicator: returns - promote_to_indicator_v2 → The new Indicator: returns - promote → The observable: returned - promote_to_indicator → The observable: returned | | Version | | --- | --- | | Deprecated in | OpenCTI 6.2 | | Removed in | OpenCTI 6.8 | ## Replaced calls {#replaced-calls} | API | Removed | Replaced by | | --- | --- | --- | | GraphQL | `StixCyberObservableEditMutations.promote` | `StixCyberObservableEditMutations.promoteToIndicator` | | Python client | `client.stix_cyber_observable.promote_to_indicator` | `client.stix_cyber_observable.promote_to_indicator_v2` | ## What to do {#what-to-do} Call the new mutation or method in your scripts. If a script uses the value it returns, expect the new Indicator instead of the promoted observable, and adapt the fields it reads. ## What's next {#what-s-next} - [Script OpenCTI in Python](https://filigran.io/docs/develop/build/python-client/), the methods of the client. - [Breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/), the other changes per version. --- # SAML authentication > In OpenCTI 6.2, SAML requires signed responses and assertions by default. Set two parameters to false if sign-in fails after the upgrade. - URL: https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/6-2-saml-authentication/ - Products: OpenCTI 7.261119.0 - For: platform engineers, administrators - Type: How-to guide OpenCTI 6.2 upgraded the `passport-saml` library, which changed two SAML defaults: responses and assertions must now be signed. If SAML sign-in fails after you upgrade from an earlier version, this page says what to change in your identity provider, and which parameter to set when it cannot sign. **Diagram: From OpenCTI 6.2, SAML expects signed responses and assertions by default, so the identity provider signs both, and a parameter is set to false only for what it cannot sign** - OpenCTI before 6.2: Signatures not required (want_assertions_signed and want_authn_response_signed default to false) - OpenCTI 6.2 and later: Signatures required (Both parameters default to true) - If sign-in fails: Identity provider signs both (Responses and assertions), False for unsigned parts (Only the parameter of what the provider cannot sign; from 7.260224.0, a switch of the provider) Connections: - Signatures not required → Signatures required: upgrade - Signatures required → Identity provider signs both: sign-in fails - Signatures required → False for unsigned parts: if it cannot sign | | Version | | --- | --- | | Changed in | OpenCTI 6.2 | ## What changed {#what-changed} | SAML parameter | Default before 6.2 | Default from 6.2 | | --- | --- | --- | | `want_assertions_signed` | `false` | `true` | | `want_authn_response_signed` | `false` | `true` | The new defaults apply when your configuration does not set the parameter. ## What to do {#what-to-do} If users cannot sign in with SAML after the upgrade, your identity provider does not sign its responses, its assertions, or both. Turn signing on for both in the identity provider, then try again: the signatures are what lets OpenCTI trust who signs in. Set a parameter to `false` only for what your identity provider cannot sign, for example `want_authn_response_signed` when it signs only its assertions: OpenCTI then accepts that part unsigned. From OpenCTI 7.260224.0, SAML is configured in the interface, where the two parameters are the switches **Want assertion signed** and **Want authn response signed** of the provider: see [SSO migration from environment variables to UI](https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/7-260224-sso-migration/) and [Add a SAML provider](https://filigran.io/docs/opencti/administer/authentications/#add-a-saml-provider). > **Warning: Check the two switches after the SSO migration** > > After the SSO migration of OpenCTI 7.260224.0, open the provider in **Settings > Security > Authentications** and check **Want assertion signed** and **Want authn response signed**: turn them on if your identity provider signs its responses and assertions. ## What's next {#what-s-next} - [Configure single sign-on](https://filigran.io/docs/opencti/administer/sso/), the SAML parameters. - [Breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/), the other changes per version. --- # Stream connectors data import > The two-way OpenCTI stream connectors for Tanium, HarfangLab and Microsoft Sentinel, split in 6.3 into an import connector and a stream connector each. - URL: https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/6-3-stream-connectors/ - Products: OpenCTI 7.261119.0 - For: platform engineers - Type: How-to guide Three OpenCTI stream connectors used to work both ways: they sent OpenCTI data to a security tool and imported its incidents. From OpenCTI 6.3, each is split into an external import connector, which brings data into OpenCTI, and a stream connector, which sends OpenCTI data out. The old connectors were removed in 6.6. This page lists the replacements. **Diagram: From OpenCTI 6.3, each two-way stream connector is split into an external import connector for the incidents and a stream connector for the data OpenCTI sends** - Security tool: Security tool (Tanium, HarfangLab, Microsoft Sentinel) - Connectors: Two-way connector (tanium, harfang-lab, sentinel: removed in 6.6), External import connector (tanium-incidents, harfang-lab-incidents, sentinel-incidents), Stream connector (tanium-intel, harfang-lab-intel, sentinel-intel) - OpenCTI: OpenCTI (Platform) Connections: - Security tool ↔ Two-way connector: both ways - Two-way connector ↔ OpenCTI: both ways - Security tool → External import connector: incidents - External import connector → OpenCTI: imports - OpenCTI → Stream connector: stream - Stream connector → Security tool: sends data | | Version | | --- | --- | | Deprecated in | OpenCTI 6.3 | | Removed in | OpenCTI 6.6 | ## Replaced connectors {#replaced-connectors} | Removed connector | External import connector | Stream connector | | --- | --- | --- | | `tanium` (Tanium) | `tanium-incidents` | `tanium-intel` | | `harfang-lab` (HarfangLab) | `harfang-lab-incidents` | `harfang-lab-intel` | | `sentinel` (Microsoft Sentinel) | `sentinel-incidents` | `sentinel-intel` | ## What to do {#what-to-do} 1. Deploy the stream connector that replaces yours, to keep sending OpenCTI data to the tool. 2. Deploy the external import connector too if you imported incidents from the tool. 3. Remove the old connector. ## What's next {#what-s-next} - [Import with connectors](https://filigran.io/docs/opencti/use/ingest/connectors/), how import connectors work. - [How integrations run](https://filigran.io/docs/deploy/integrations/how-they-run/), to deploy a connector. - [Breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/), the other changes per version. --- # Scenario generation placeholders > The OpenCTI GraphQL mutations that generate OpenAEV scenarios, replaced in 6.5 by versions that return inject placeholders and missing attack patterns. - URL: https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/6-5-scenario-generation/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0 - For: platform engineers, developers - Type: How-to guide OpenCTI generates simulation scenarios in OpenAEV (formerly OpenBAS) from a container, a threat or a victim. In OpenCTI 6.5, the three GraphQL mutations that do it were replaced by new ones with a different signature and a more detailed response; the old ones were removed in 6.8. This page lists the replacements, for scripts that call the API. **Diagram: On OpenCTI 6.5 to 6.x, scripts call the WithInjectPlaceholders mutations with a SimulationConfig, and from OpenCTI 7 OpenAEV generates the scenarios from the security coverage instead** - Your script: Script (Calls the GraphQL API) - OpenCTI GraphQL API: obas...GenerateScenario (Container, threat, victim: removed in 6.8), ...WithInjectPlaceholders (OpenCTI 6.5 to 6.x, returns a GenerationResponse), OpenCTI 7.260309 and later (Has neither mutation) - OpenAEV: Scenario (Its URL in urlResponse) Connections: - Script → obas...GenerateScenario: replace the call - Script → ...WithInjectPlaceholders: SimulationConfig - ...WithInjectPlaceholders → Scenario: generates - OpenCTI 7.260309 and later → Scenario: security coverage | | Version | | --- | --- | | Deprecated in | OpenCTI 6.5 | | Removed in | OpenCTI 6.8 | ## Replaced mutations {#replaced-mutations} | Removed | Replaced by | | --- | --- | | `obasContainerGenerateScenario` | `obasContainerGenerateScenarioWithInjectPlaceholders` | | `obasThreatGenerateScenario` | `obasThreatGenerateScenarioWithInjectPlaceholders` | | `obasVictimGenerateScenario` | `obasVictimGenerateScenarioWithInjectPlaceholders` | The new mutations take a `SimulationConfig` object: | Field | Meaning | | --- | --- | | `simulationType` | The type of simulation: technical or simulated | | `selection` | The number of injects generated per attack pattern and platform | | `interval` | The interval between injects, in minutes | They return a `GenerationResponse` object: | Field | Meaning | | --- | --- | | `urlResponse` | The URL of the generated scenario in OpenAEV | | `attackPatternNotAvailableInOpenBAS` | The attack patterns the OpenAEV catalog does not cover | | `hasInjectPlaceholders` | Whether OpenAEV created inject placeholders | ## What to do {#what-to-do} On OpenCTI 6.5 to 6.x, if a script of yours calls one of the removed mutations, call its replacement with a `SimulationConfig`, and read the scenario URL from `urlResponse`. The OpenCTI versions this documentation describes, 7.260309 and later, have neither the old nor the new mutations: the GraphQL API refuses a call to any of them. Remove these calls from your scripts when you upgrade to OpenCTI 7. In OpenCTI 7, OpenAEV generates the scenarios from the security coverage of OpenCTI: see [Scenario generation from OpenCTI security coverage](https://filigran.io/docs/deploy/upgrade/breaking-changes/openaev/2-2-0-security-coverage/). ## What's next {#what-s-next} - [Threat-informed validation](https://filigran.io/docs/workflows/threat-informed-validation/), the workflow that generates scenarios from threat intelligence. - [Breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/), the other changes per version. --- # Metrics renamed in client-python > The Prometheus metrics of OpenCTI connectors renamed in client-python for OpenCTI 6.8, old name to new name, and the two variables that set their prefix. - URL: https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/6-8-client-python-metrics/ - Products: OpenCTI 7.261119.0 - For: platform engineers, developers - Type: Reference With OpenCTI 6.8, the Prometheus metrics that connectors expose through the Python client library (client-python) follow the [Prometheus naming practices](https://prometheus.io/docs/practices/naming/). This page lists the renamed metrics, so you can update the dashboards and alerts that use them, for example in Grafana. **Diagram: From OpenCTI 6.8, connectors expose their Prometheus metrics under new names, with an optional prefix, so the dashboards and alerts that read them need the new names** - Connector: Namespace and subsystem (CONNECTOR_METRICS_NAMESPACE and CONNECTOR_METRICS_SUBSYSTEM, empty by default), client-python (For OpenCTI 6.8) - Prometheus: Renamed metrics (bundle_send becomes bundles_sent_total, run_count becomes runs_total) - Your monitoring: Dashboards and alerts (Grafana, recording rules) Connections: - Namespace and subsystem → client-python: optional prefix - client-python → Renamed metrics: exposes - Renamed metrics → Dashboards and alerts: update the names | | Version | | --- | --- | | Changed in | OpenCTI 6.8 | ## Renamed metrics {#renamed-metrics} | Old name | New name | | --- | --- | | `bundle_send` | `bundles_sent_total` | | `record_send` | `records_sent_total` | | `run_count` | `runs_total` | | `ping_api_count` | `ping_api_total` | | `ping_api_error` | `ping_api_errors_total` | | `error_count` | `errors_total` | | `client_error_count` | `client_errors_total` | The `state` metric keeps its name. ## Namespace and subsystem {#namespace-and-subsystem} Two new settings add a prefix to the metric names, as Prometheus builds them: `__`. Both are empty by default. | Environment variable | Configuration key | | --- | --- | | `CONNECTOR_METRICS_NAMESPACE` | `connector.metrics_namespace` | | `CONNECTOR_METRICS_SUBSYSTEM` | `connector.metrics_subsystem` | ## What to do {#what-to-do} Replace the old names in your dashboards, alerts and recording rules. If you set a namespace or a subsystem, add the prefix they create. ## What's next {#what-s-next} - [Observability metrics](https://filigran.io/docs/deploy/operate/metrics/), to collect the metrics of the stack. - [Breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/), the other changes per version. --- # SSO migration from environment variables to UI > What OpenCTI 7.260224.0 does with the SSO configured in environment variables, and how to keep external secrets and sign-in access through the migration. - URL: https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/7-260224-sso-migration/ - Products: OpenCTI 7.261119.0 - For: platform engineers, administrators - Type: How-to guide From OpenCTI 7.260224.0, single sign-on (SSO) is configured in the interface and is an Enterprise Edition feature. On its first start, the new version copies the authentications of the configuration file into the database. This page explains what is migrated, and how to keep secrets outside the database and keep a way to sign in. **Diagram: At its first start, OpenCTI 7.260224.0 copies the authentications of the configuration into the database, and you then manage the providers in the UI, signed in with local authentication** - Configuration: Configuration file (Or environment variables, kept until you remove them), Secrets registry (An environment variable or CyberArk) - OpenCTI 7.260224.0: Migration at first start (LDAP, SAML, OpenID Connect and the others), Local authentication (An administrator whose password you know), Authentications (Settings > Security > Authentications) - Database: Login providers (Secret fields encrypted) Connections: - Configuration file → Migration at first start: read at start - Migration at first start → Login providers: stores - Local authentication → Authentications: sign in first - Authentications ↔ Login providers: manage providers - Secrets registry → Authentications: use external secret | | Version | | --- | --- | | Changed in | OpenCTI 7.260224.0 | ## What the migration does {#what-the-migration-does} When the platform starts, it reads the authentications of the configuration file, or of the environment variables, and stores them in the database. They stay in the configuration file. The platform then loads the authentications of the database, and users sign in with them as before. | Configured before | Managed in the UI as | | --- | --- | | LDAP | LDAP | | SAML | SAML | | OpenID Connect | OpenID Connect | | Auth0, Google, Facebook, GitHub | OpenID Connect | | Client certificate | Client certificate | | HTTP headers | HTTP headers | Secret fields, such as an OpenID Connect client secret, a SAML private key or LDAP bind credentials, are read at migration time and stored in the database, encrypted. A SAML configuration that did not set `want_assertions_signed` or `want_authn_response_signed` is migrated with both switches off: see [SAML authentication](https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/6-2-saml-authentication/) to turn them back on. > **Note: No platform is locked out** > > If no other authentication is enabled before the migration, the migration enables local authentication. A Community Edition platform that had turned local authentication off still has a way to sign in. ## Before you start {#before-you-start} - Plan to sign in with local authentication right after the upgrade: keep it enabled, with an administrator account whose password you know. - On a Community Edition platform, SSO stops working: sign in with local authentication, or request a trial license from [XTM Hub](https://hub.filigran.io/cybersecurity-solutions/opencti-free-trial). See [Editions and licensing](https://filigran.io/docs/start/editions/). ## Keep secrets outside the database {#keep-secrets-outside-the-database} Follow these steps if a secret must keep coming from an environment variable or a credentials provider such as CyberArk, instead of the database. 1. Before the upgrade, declare each secret in the secrets registry of the configuration. - From an environment variable: `SECRETS____VALUE`. - From CyberArk: `SECRETS____CREDENTIALS_PROVIDER__SELECTOR=cyberark` and the CyberArk variables of that secret. See [Manage login providers in the UI](https://filigran.io/docs/opencti/administer/authentications/) for the variables of each provider. 2. Optional: to never store the secret in the database, remove it from the provider configuration before the upgrade, for example `PROVIDERS__OIC__CONFIG__CLIENT_SECRET`. The migration then creates the provider with a placeholder. 3. Upgrade and start the platform. The migration runs. 4. Sign in with local authentication and go to **Settings > Security > Authentications**. 5. Open each migrated provider that should use an external secret. For each secret field, choose **Use external secret**, select the name you declared in step 1, and save. The platform now reads the value from the environment or from CyberArk when it loads the provider. 6. Sign in through each provider you changed. **Check that it worked** The SSO sign-in succeeds, and the provider shows no error in **Settings > Security > Authentications**. 7. Turn local authentication off in **Settings > Security > Authentications** if you no longer need it. ## Remove the old configuration {#remove-the-old-configuration} After the upgrade, the configuration file still holds the authentications. If you delete a migrated authentication in the UI, the next start migrates it again and it reappears. Once every user signs in as before, remove the authentications from the configuration file or the environment variables. Delete them in the UI only after that. ## If the migration fails {#if-the-migration-fails} If SSO worked before the upgrade and fails since, set `app:authentication:force_env` to `true` (`APP__AUTHENTICATION__FORCE_ENV=true`) and restart: OpenCTI signs users in with the providers of the configuration file again, deletes the providers stored in the database, and migrates them again at the next start without the setting. See [If you are locked out](https://filigran.io/docs/opencti/administer/authentications/#if-you-are-locked-out) for this and the other ways back in. ## What's next {#what-s-next} - [Manage login providers in the UI](https://filigran.io/docs/opencti/administer/authentications/), to manage the migrated authentications. - [Breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/#opencti-7-260224-0), the other changes of OpenCTI 7.260224.0. - [Upgrade](https://filigran.io/docs/deploy/upgrade/), the upgrade procedure. --- # Compatibility matrix > The OpenCTI, OpenAEV, XTM One and XTM Composer versions documented together, the version constraints between them, and the minimum versions of the shared services. - URL: https://filigran.io/docs/deploy/upgrade/compatibility/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers - Type: Reference This page ties the versions of the XTM modules together: the releases the documentation describes as one platform, the constraints that the [breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/) set between modules, and the versions of the shared services each platform needs. It lists only what has been checked: a pair of versions that is not here is not known to be incompatible, only not documented. ## Versions documented together {#versions-documented-together} The documentation, and the stack its screenshots are taken from, run these versions together: | Module | Version | Image | | --- | --- | --- | | OpenCTI | 7.261030.1 | `opencti/platform:7.261030.1` | | OpenAEV | 3.261029.0 | `openaev/platform:3.261029.0` | | XTM One | 1.261112.0 | `xtmone/platform:1.261112.0` | | XTM Composer | 3.261121.0 | `filigran/xtm-composer:3.261121.0`, or `filigran/xtm-composer:3.261121.0-fips` for FIPS 140-3 | The OpenCTI LTS lines, [7.260811-lts and 7.260309-lts](https://filigran.io/docs/deploy/upgrade/lifecycle/#supported-lts-lines), are documented for OpenCTI alone: no OpenAEV or XTM One version is documented with them. ## Constraints between modules {#constraints-between-modules} **Diagram: From OpenCTI 7.260224.0, OpenCTI needs XTM Composer 2 and OpenAEV 2.2 or later, and OpenAEV 2.3.4 needs integrations released for it** - Integrations: XTM Composer (2 or later), OpenAEV integrations (Collectors, injectors, agents) - Platforms documented together: OpenCTI (7.261030.1), OpenAEV (3.261029.0) - At the center: XTM One (1.261112.0) Connections: - XTM Composer → OpenCTI: 2+ from 7.260224.0 - OpenCTI ↔ OpenAEV: 2.2+ from 7.260224.0 - OpenAEV integrations → OpenAEV: released for 2.3.4+ | When you run | You need | Source | | --- | --- | --- | | OpenCTI 7.260224.0 or later | XTM Composer 2 or later, for the new token management and the JSON Web Token (JWT) authentication of OpenCTI 7 | [OpenCTI 7.260224.0](https://filigran.io/docs/deploy/upgrade/breaking-changes/#opencti-7-260224-0) | | OpenCTI 7.260224.0 or later, connected to OpenAEV | OpenAEV 2.2 or later | [OpenCTI 7.260224.0](https://filigran.io/docs/deploy/upgrade/breaking-changes/#opencti-7-260224-0) | | OpenAEV 2.2.0, connected to OpenCTI | OpenCTI 7. OpenAEV 2.2.1 and later work with older OpenCTI versions again | [Scenario generation from OpenCTI security coverage](https://filigran.io/docs/deploy/upgrade/breaking-changes/openaev/2-2-0-security-coverage/) | | OpenAEV 2.3.4 or later | Collectors, injectors, OpenAEV agents and custom integrations released for OpenAEV 2.3.4 or later | [CSRF token enforcement](https://filigran.io/docs/deploy/upgrade/breaking-changes/openaev/2-3-4-csrf-token-enforcement/) | | XTM Composer 3.261120.0 or later, with `MANAGER__IMAGE_TAG_SUFFIX` set, as in its FIPS image (`-fips`) | Integrations published with that tag, for every platform XTM Composer serves. OpenAEV publishes no FIPS images: an integration without the tag is not deployed | [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/) | | XTM Composer 3.261120.0 or later, serving OpenAEV on Kubernetes, Docker Swarm or Portainer from a private registry | The registry in the `openaev` block, `OPENAEV__DAEMON__REGISTRY__*`: these engines no longer read the `opencti` block for OpenAEV | [Pull integrations from a private registry](https://filigran.io/docs/deploy/integrations/private-registry/) | | XTM Composer 3.261021.1 or earlier, after a rollback from 3.261120.0 | Nothing more: 3.261120.0 keeps the `opencti-manager`, `opencti-connector-id` and `opencti-platform` labels and `OPENCTI_CONFIG_HASH` next to its `xtm-*` keys, so an older XTM Composer still recognizes the integrations | [XTM Composer architecture](https://filigran.io/docs/deploy/integrations/architecture/) | | XTM Composer 3.261120.0 or earlier on Kubernetes or Docker Swarm, after a rollback from 3.261121.0 | Integration names that are valid Kubernetes names, 63 characters at most. 3.261121.0 shortens longer names and adds a hash; an older XTM Composer removes those Deployments and services, then fails to create them under the full name | [Troubleshoot XTM Composer](https://filigran.io/docs/deploy/integrations/troubleshoot/#an-integration-starts-then-fails) | | XTM One 1.261112.0 or later, behind a reverse proxy | A proxy that serves HTTP/2 to browsers, buffers no response under `/api/` and keeps a read timeout above 15 seconds: the chat streams over HTTP | [XTM One 1.261112.0](https://filigran.io/docs/deploy/upgrade/breaking-changes/#xtm-one-1-261112-0) | | OpenCRQ 0.261123.0 | XTM One 1.261110.0 or later, upgraded before OpenCRQ. XTM One must return the XTM license at registration (1.261001.0 and later): an older one leaves OpenCRQ in the Community Edition, and OpenCRQ logs a warning when that XTM One reports the Enterprise Edition. It must also create the sign-in client of OpenCRQ at registration (1.261109.0 and later) and send the `xtm_super_admin` claim (1.261110.0 and later): without the client nobody can sign in, and without the claim nobody is super administrator | [Configure OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/#xtm-one) | | xtm-docker with public and internal URLs that differ | XTM One, OpenCTI and OpenAEV releases that include [xtm-one#4883](https://github.com/XTM-One-Platform/xtm-one/pull/4883), [opencti#18585](https://github.com/OpenCTI-Platform/opencti/pull/18585) and [openaev#8143](https://github.com/OpenAEV-Platform/openaev/pull/8143) | [xtm-docker README](https://github.com/FiligranHQ/xtm-docker#readme) | ## Shared services {#shared-services} **Diagram: OpenCTI and OpenAEV each set their own minimum version for the shared services they use** - Platforms: OpenCTI (Minimum versions it needs), OpenAEV (Versions it recommends) - Shared services: Elasticsearch (Or OpenSearch 2.9+ for OpenCTI; image 8.19.18), RabbitMQ (Image 4.3-management), Redis (Image 8.8.0), S3 storage (RustFS or MinIO; image rustfs/rustfs), PostgreSQL (pgvector pg17, shared with XTM One) Connections: - OpenCTI → Elasticsearch: 8.0 or later - OpenAEV → Elasticsearch: 8.19 or later - OpenCTI → RabbitMQ: 3.11 or later - OpenAEV → RabbitMQ: 4.1 or later - OpenCTI → Redis: 7.1 or later - OpenCTI → S3 storage: MinIO 2023-02 or later - OpenAEV → S3 storage: MinIO 2025-06-13 or later - OpenAEV → PostgreSQL: 17.0 or later The minimum versions each platform needs, and the images xtm-docker runs. xtm-docker starts Elasticsearch and RabbitMQ only with OpenCTI or OpenAEV; XTM One uses PostgreSQL, Redis and the S3 storage. | Service | OpenCTI needs | OpenAEV recommends | xtm-docker image | | --- | --- | --- | --- | | Elasticsearch | 8.0 or later | 8.19 or later | `docker.elastic.co/elasticsearch/elasticsearch:8.19.18` | | OpenSearch, instead of Elasticsearch | 2.9 or later | Not documented | Not used | | Redis | 7.1 or later | Not used | `redis:8.8.0` | | RabbitMQ | 3.11 or later | 4.1 or later | `rabbitmq:4.3-management` | | S3 storage (RustFS, MinIO) | MinIO RELEASE.2023-02 or later | MinIO RELEASE.2025-06-13T11-33-47Z or later | `rustfs/rustfs:1.0.4` | | PostgreSQL | Not used | 17.0 or later | `pgvector/pgvector:pg17`, shared by OpenAEV, OpenCRQ and XTM One | OpenAEV may work with older versions than those it recommends, but older versions are not supported. Sizing for each service is in [Requirements](https://filigran.io/docs/deploy/plan/requirements/). ## Images of xtm-docker {#images-of-xtm-docker} xtm-docker starts every XTM image with the `latest` tag, so one `docker compose pull` brings all modules to their latest releases together: | Module | Images | | --- | --- | | XTM One | `xtmone/platform`, `xtmone/worker` | | OpenCTI | `opencti/platform`, `opencti/worker` | | OpenCTI default connectors | `opencti/connector-*` | | OpenAEV | `openaev/platform` | | OpenAEV default integrations | `openaev/collector-*`, `openaev/injector-*` | | XTM Composer | `filigran/xtm-composer` | To stay on given versions, set the tags yourself: see [Stay on a version or an LTS line](https://filigran.io/docs/deploy/upgrade/#stay-on-a-version-or-an-lts-line). ## What's next {#what-s-next} - [Upgrade](https://filigran.io/docs/deploy/upgrade/), to move the stack to new versions. - [Breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/), the details behind each constraint. - [Requirements](https://filigran.io/docs/deploy/plan/requirements/), the resources each service needs. --- # Versioning and LTS > How XTM releases are numbered, how the OpenCTI Long-Term Support (LTS) program works, and which LTS lines are supported until when. - URL: https://filigran.io/docs/deploy/upgrade/lifecycle/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: platform engineers, administrators - Type: Concept XTM releases are numbered by date and published when they are ready. OpenCTI also offers Long-Term Support (LTS) lines: a release that receives only critical and security fixes for one year, for organizations that cannot upgrade often. This page explains the version numbers, the LTS program and how to choose between the two paths. **Diagram: An OpenCTI LTS line is branched from the latest release, released after one month of stabilization, and supported for one year, overlapping the next line** - Regular releases: Latest release (x.dddddd.z, daily to weekly) - Branched: 7.260309-lts (9 March 2026), 7.260811-lts (11 August 2026) - Released: 7.260309-lts released (After stabilization, March to April 2026), 7.260811-lts released (September 2026) - End of support: 7.260309-lts ends (April 2027), 7.260811-lts ends (September 2027) Connections: - Latest release → 7.260309-lts: branched - Latest release → 7.260811-lts: branched - 7.260309-lts → 7.260309-lts released: 1 month stabilization - 7.260811-lts → 7.260811-lts released: 1 month stabilization - 7.260309-lts released → 7.260309-lts ends: critical and security fixes - 7.260811-lts released → 7.260811-lts ends: critical and security fixes ## Version numbers {#version-numbers} OpenCTI, OpenAEV, XTM One and XTM Composer use the same date-based format, `x.dddddd.z`: OpenCTI 7.261030.1, OpenAEV 3.261029.0, XTM One 1.261030.0, XTM Composer 3.261021.1. | Format | Release | Parts | | --- | --- | --- | | `x.dddddd.z` | Regular release | `x` major version, `dddddd` release date (YYMMDD), `z` sequence number for releases of the same day | | `x.dddddd.z-lts.n` | OpenCTI LTS release | `x` major version, `dddddd` date the LTS line was branched (YYMMDD), `z` sequence number for releases of the same day, `n` hotfix number of the line, from 1 | For example, `7.260811.0-lts.1` is the first release of the OpenCTI LTS line branched on 11 August 2026, which the documentation calls `7.260811-lts`. `7.261030.1` is the second OpenCTI release of 30 October 2026. Regular releases come out when they are ready, from daily to weekly. A security fix or a bug fix is not held back for a release date, and new features arrive continuously. ## The LTS program {#the-lts-program} An LTS line evolves slowly: it receives only critical bug fixes and security fixes, never new features. LTS is an option, not a required path. | Rule | Value | | --- | --- | | A new LTS line | About every 6 months | | Stabilization before release | 1 month after the line is branched | | Support | 1 year from the release of the line | | Overlap with the next line | 6 months, to validate the next line while the current one is supported | | Fixes | Critical bugs and security issues, released when needed | A bug is critical when it makes a feature unusable for its users: a core feature or workflow fails, data is lost or corrupted, performance drops enough to block normal work, or a regression appears. ### Supported LTS lines {#supported-lts-lines} | Line | Latest release documented | Supported until | | --- | --- | --- | | 7.260811-lts | 7.260811.0-lts.1 | September 2027 | | 7.260309-lts | 7.260309.0-lts.8 | April 2027 | The documentation is built for the latest release and for each supported LTS line: choose your version in the header to read the pages as they apply to it. ### The life of an LTS line {#the-life-of-an-lts-line} The 7.260309-lts line follows the rules above: | When | What happens | | --- | --- | | 9 March 2026 | 7.260309-lts is branched from the latest release | | March to April 2026 | One month of stabilization, then the first release | | 11 August 2026 | The next line, 7.260811-lts, is branched | | September 2026 | 7.260811-lts is released: the two lines overlap | | April 2027 | 7.260309-lts reaches its end of support | ## LTS or the latest release {#lts-or-the-latest-release} | Choose | When your organization | | --- | --- | | An LTS line | Tests and validates every update at length, works under strict change management (regulated industries), wants few functional changes in production, or has little time for frequent upgrades | | The latest release | Wants new features and fixes as soon as they exist, can deploy and test often, has a flexible change process, or runs a development or test environment | ## Get an LTS release {#get-an-lts-release} LTS releases are container images, published like regular releases, for example `opencti/platform:7.260811.0-lts.1`. Running one needs an LTS license key: 1. Contact your Account Executive or Customer Success Manager. 2. Request an LTS license for your deployment. 3. Set the license key and the image tags you receive in your deployment. With xtm-docker, see [Stay on a version or an LTS line](https://filigran.io/docs/deploy/upgrade/#stay-on-a-version-or-an-lts-line). Until an LTS license is applied, an LTS release opens on the **OpenCTI LTS license agreement** dialog and refuses the other API requests, with the error `LTS_REQUIRED_ACTIVATION`, connectors included: a standard or trial license does not open it. Plan the license before you switch the images. See [Long-term support versions](https://filigran.io/docs/start/editions/#long-term-support-versions). ## What's next {#what-s-next} - [Upgrade](https://filigran.io/docs/deploy/upgrade/), to move to a new release or a new LTS line. - [Breaking changes](https://filigran.io/docs/deploy/upgrade/breaking-changes/), what each version asks of you. - [Compatibility matrix](https://filigran.io/docs/deploy/upgrade/compatibility/), the versions tested together. --- # Upgrade XTM One > Move XTM One to a new version in the XTM stack: serve it over HTTP/2 for 1.261112.0, follow its migrations, rename retired variables, and roll back from a backup. - URL: https://filigran.io/docs/deploy/upgrade/xtm-one/ - Products: XTM One 1.261119.1 - For: platform engineers - Type: How-to guide This page moves XTM One to a new version. XTM One migrates its database on its own when the new platform starts, so an upgrade is a backup, new images and a check; going back means restoring that backup. In an XTM stack, [Upgrade the XTM stack](https://filigran.io/docs/deploy/upgrade/) upgrades XTM One with the other platforms: read this page for what XTM One does during it, or to upgrade XTM One alone. **Diagram: An upgrade of XTM One backs up its data, pulls the new images, lets the platform migrate its database at start, then checks it before people sign in** - Before: Release notes (Renamed variables, notes), Back up (xtm_one database, bucket, .env) - Upgrade: New images (Platform and worker, same version), Migrations (Run by the platform at start) - After: Ready (/api/health/ready), Checks (Platforms, security audit) Connections: - Release notes → Back up: then - Back up → New images: then - New images → Migrations: docker compose up -d - Migrations → Ready: worker waits - Ready → Checks: then - Checks → Back up: roll back by restoring ## What happens during an upgrade {#what-happens-during-an-upgrade} - **The platform migrates.** The first `xtm-one` process to start on the new version applies the migrations of the database, then creates or updates the built-in agents and content. Other processes and replicas wait for it, and run the steps that are left. `/api/health/ready` answers 503 until the start is complete. - **The worker waits.** `xtm-one-worker` waits for the migrations before it takes jobs. xtm-docker starts it once `xtm-one` is healthy. - **No step back.** A migration can change the schema in a way the previous version does not read. To go back, restore the database and the bucket from before the upgrade: see [Roll back](#roll-back). - **Same version on both containers.** Run `xtmone/platform` and `xtmone/worker` at the same tag. A version reads `1.YYMMDD.patch`, such as `1.261112.0`: the date of the release, then its patch number. Docker Hub lists the tags of [xtmone/platform](https://hub.docker.com/r/xtmone/platform/tags). Check which versions of OpenCTI and OpenAEV go with it in [Compatibility between modules](https://filigran.io/docs/deploy/upgrade/compatibility/). ## Before you start {#before-you-start} - Read the [breaking changes of XTM One](https://filigran.io/docs/deploy/upgrade/breaking-changes/#xtm-one) between your version and the new one, and the [renamed variables](#renamed-variables). - From a version before 1.261112.0, behind a reverse proxy, [prepare the proxy](#prepare-the-reverse-proxy-for-1-261112-0) first: the chat needs HTTP/2. - Pin the version you run today, if you have not, so that a `docker compose pull` changes nothing you did not choose: see [Pin the image versions](https://filigran.io/docs/deploy/install/docker-compose/#pin-the-image-versions). - Plan a few minutes without XTM One: chats and running assignments stop while `xtm-one` restarts. ## Prepare the reverse proxy for 1.261112.0 {#prepare-the-reverse-proxy-for-1-261112-0} From 1.261112.0, the chat of XTM One streams over HTTP, as server-sent events, instead of a WebSocket: the **Chat** page, the rails of the deck and video studios, voice mode and the Office add-in. Every open tab holds some of these streams, and a browser opens at most 6 HTTP/1.1 connections per host. Behind a proxy that speaks HTTP/1.1 to browsers, a few open tabs use them all, and XTM One stops loading. Nothing migrates: change the proxy before you upgrade. [XTM One 1.261112.0](https://filigran.io/docs/deploy/upgrade/breaking-changes/#xtm-one-1-261112-0) lists the whole change. 1. In the server block of XTM One, turn HTTP/2 on, and keep the two settings the streams need: no response buffering, and a read timeout above 15 seconds, the interval of their keep-alive. With Nginx 1.25.1 or later: ```nginx server { listen 443 ssl; http2 on; server_name xtm-one.example.com; # certificates and client_max_body_size as before location / { # proxy_pass and the headers as before, with: proxy_buffering off; proxy_read_timeout 300s; } } ``` Before Nginx 1.25.1, write `listen 443 ssl http2;` instead of the `listen` and `http2` lines. An answer can take minutes, hence the 300 seconds. Nginx also follows the `X-Accel-Buffering: no` header the streams send; another proxy needs response buffering turned off for `/api/`. Keep forwarding the `Upgrade` and `Connection` headers: XTM One Desktop, the runners and the relays still connect over a WebSocket. [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/) gives the whole block. 2. Check the configuration and load it. ```bash sudo nginx -t sudo systemctl reload nginx ``` **Check that it worked** ```bash curl -sS --http2 -o /dev/null -w '%{http_version}\n' https://xtm-one.example.com/api/health ``` It prints `2`. `1.1` means the proxy does not serve HTTP/2 yet. A script that opens the chat WebSocket, `/api/v1/chat/conversations/{id}/ws`, stops working with the upgrade: move it to the [XTM One chat API](https://filigran.io/docs/develop/apis/chat/). A script that sends messages with `POST /api/v1/chat/conversations/{id}/messages` keeps working. ## Upgrade XTM One in the XTM stack {#upgrade-xtm-one-in-the-xtm-stack} 1. Back up the database and the files of XTM One, and keep `.env` with them: the backup is useless without the same `XTM_ONE_SECRET_KEY`. ```bash mkdir -p backup docker compose exec -T pgsql sh -c 'pg_dump -U "$POSTGRES_USER" -Fc xtm_one' > backup/xtm_one.dump cp .env backup/ ``` The bucket of XTM One is in the `s3data` volume, shared with the other platforms: back it up as [Back up and restore](https://filigran.io/docs/deploy/operate/backup/) describes. **Check that it worked** `ls -lh backup/xtm_one.dump` shows a file that is not empty. 2. Set the new version. Run the pinning commands of [Pin the image versions](https://filigran.io/docs/deploy/install/docker-compose/#pin-the-image-versions) with the new `XTM_ONE_VERSION`, here `1.261112.0`, and the versions of OpenCTI and OpenAEV you keep. **Check that it worked** ```bash docker compose config --images | grep '^xtmone/' ``` It prints `xtmone/platform:1.261112.0` and `xtmone/worker:1.261112.0`. 3. Download the images and restart XTM One. ```bash docker compose pull xtm-one xtm-one-worker docker compose up -d xtm-one xtm-one-worker ``` 4. Follow the start until it is complete. ```bash docker compose logs -f xtm-one ``` `Database migrations applied`, then the creation of the built-in content, then the requests. A large database takes longer to migrate: after 300 seconds without the end of its start, the platform logs which step runs and which database sessions block it, then again every 300 seconds. **Check that it worked** ```bash docker compose exec xtm-one curl -sS http://localhost:4000/api/health/ready docker compose images xtm-one xtm-one-worker ``` The answer ends with `"status":"ok"`, and both images show the new tag. 5. Check the links and the configuration. In XTM One, **My Profile** > **MCP Endpoint** shows each registered platform as `Connected`; OpenCTI, OpenAEV and OpenCRQ register again within 5 minutes. Then run the **Security audit** in **Administration > Settings > Access and security > Security audit**: a release can add checks on settings you have not set. If the start fails in a migration, the log names it. Do not run migrations by hand and do not start the previous version on the migrated database: [roll back](#roll-back), and keep the log for Filigran support. On a very large database, two settings bound the migrations, both in seconds: `MIGRATION_LOCK_TIMEOUT_SECONDS` (`300`), the longest a statement waits for a lock, and `MIGRATION_STATEMENT_TIMEOUT_SECONDS` (`1800`), the longest a statement runs. Past either, the migration is tried again, then the start fails with a message that names the setting. Raise the one it names on `xtm-one`, in `docker-compose.override.yml`. ## Renamed variables {#renamed-variables} A release that renames a variable keeps reading the old name for a while, and logs a warning that names the new one. Rename them in your override file and your secrets before the date: | Old name | New name | Read until | | --- | --- | --- | | `OPENGRC_API_URL` | `OPENCRQ_API_URL` | 31 December 2026. When both are set, `OPENCRQ_API_URL` wins | ## Leave the published registration token {#leave-the-published-registration-token} An XTM One whose `PLATFORM_REGISTRATION_TOKEN` is `xtm-default-registration-token` runs with a published value, and so does one installed with the module's Compose file and an empty `PLATFORM_REGISTRATION_TOKEN`, which falls back to it. That value keeps the registered platforms connected, but registers no new one and changes no registered address, and XTM One sends the platforms no license certificate: a platform whose Enterprise Edition comes from the license of XTM One cannot prove it. In xtm-docker, an empty token refuses every registration instead, and the secrets script of [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/) sets one of your own. 1. Generate a token: `openssl rand -hex 32`. 2. Set it as `PLATFORM_REGISTRATION_TOKEN` on XTM One and as the registration token of every OpenCTI, OpenAEV and OpenCRQ connected to it: `XTM__XTM_ONE_TOKEN`, `OPENAEV_XTM_ONE_TOKEN`, `XTM_ONE__TOKEN`. A platform that keeps the old value is refused. 3. Restart XTM One, then the platforms. 4. Run the **Security audit**: the finding on the registration token passes. Then review the registered platforms in **Administration > Settings > Integrations > Catalog**: a new token does not end a registration made with the published value, and the audit names any registration it does not expect. ## Roll back {#roll-back} 1. Stop XTM One. ```bash docker compose stop xtm-one xtm-one-worker ``` 2. Restore the `xtm_one` database from the backup of step 1, and the bucket from the same moment, as [Back up and restore](https://filigran.io/docs/deploy/operate/backup/) describes. A database and a bucket from two different moments leave files without records, or records without files. 3. Pin the previous version again with the pinning commands, then start XTM One. ```bash docker compose up -d xtm-one xtm-one-worker ``` **Example: Upgrade XTM One at Grand Meridian Hotels** On Sunday night, before the Monday 08:00 run of the "Weekly Velvet Harbor brief", Marc Dupuis moves the XTM One of Grand Meridian Hotels from `1.261110.2` to `1.261112.0`. The Nginx in front of it speaks HTTP/1.1 to browsers, so he first adds one line under `listen 443 ssl;` in its server block, `xtm-one.grand-meridian.example`, which already turns buffering off and waits 300 seconds: ```nginx http2 on; ``` After `sudo nginx -t` and `sudo systemctl reload nginx`, the `curl` check prints `2`. He dumps `xtm_one` to `backup/xtm_one.dump`, copies `.env`, and pins the versions: ```bash OPENCTI_VERSION=7.261030.1 OPENAEV_VERSION=3.261029.0 XTM_ONE_VERSION=1.261112.0 ``` After the pinning commands, `docker compose pull xtm-one xtm-one-worker` and `docker compose up -d xtm-one xtm-one-worker`, the log shows `Database migrations applied`, and the readiness answer is `"status":"ok"` two minutes later. His override file still sets `OPENGRC_API_URL=http://opencrq:3002`: the log warns about it, and he renames it `OPENCRQ_API_URL` before the end of December. ## What's next {#what-s-next} - [Upgrade the XTM stack](https://filigran.io/docs/deploy/upgrade/), to upgrade the other platforms with it. - [Compatibility between modules](https://filigran.io/docs/deploy/upgrade/compatibility/), for the versions that work together. - [Monitor and troubleshoot XTM One](https://filigran.io/docs/deploy/operate/xtm-one/), when the new version does not start. --- # Integrate and extend > Build connectors, injectors and collectors, use the GraphQL, REST and MCP APIs, and contribute to the XTM modules. - URL: https://filigran.io/docs/develop/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - Type: Overview Everything the interfaces do, your code can do: read and write knowledge in OpenCTI, script the simulations of OpenAEV, talk to the agents of XTM One. These pages explain the integration model the modules share, how to build an integration, how to call each API, and how to contribute to the modules. ## Start here {#start-here} Pick what you build: each tab gives your goal and the pages to read first, in order. **A script or an app** You read or change data from your own code, at the pace of your script. 1. [APIs and integration options](https://filigran.io/docs/develop/apis/): what each way in is for, how they authenticate, and which to choose. 2. [Query OpenCTI with GraphQL](https://filigran.io/docs/develop/apis/graphql/): a token, then queries, mutations, pages of results and errors. 3. [Script OpenCTI in Python](https://filigran.io/docs/develop/build/python-client/): the same with pycti, with helpers per entity type. 4. [Script OpenAEV and XTM One with their REST APIs](https://filigran.io/docs/develop/apis/rest/): a token of your user, the endpoints, the errors. **An AI agent or assistant** You let an assistant or your own agent work with the modules. 1. [MCP servers](https://filigran.io/docs/develop/apis/mcp/): the Model Context Protocol servers XTM One exposes for OpenCTI, OpenAEV, OpenCRQ and itself, and every tool they offer. 2. [XTM One chat API](https://filigran.io/docs/develop/apis/chat/): send a message to an agent over HTTP and read its answer as it comes. 3. [XTM One emergency stop API](https://filigran.io/docs/develop/apis/emergency-stop/): stop what the agents do, from your own tooling. **An integration** You bring a source, a security tool or an attack technique to the platforms. 1. [Integration model](https://filigran.io/docs/develop/integration-model/): connectors, collectors, injectors and executors, and what every integration shares. 2. [Build an OpenCTI connector](https://filigran.io/docs/develop/build/connector/): from an empty folder to reports and indicators in OpenCTI, then a Docker image. 3. [Build an OpenAEV injector](https://filigran.io/docs/develop/build/injector/): from its contract to the result of each inject. 4. [Build an OpenAEV collector](https://filigran.io/docs/develop/build/collector/): match the expectations of your simulations with the alerts of your security tool. 5. [Integration manifest](https://filigran.io/docs/develop/build/manifest/): what the catalog shows and XTM Composer deploys from. **A contribution** You change a module or its documentation, and open a pull request. 1. [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/): OpenCTI or OpenAEV from a clone, with the checks of the CI. 2. [Add or change a translation in OpenCTI or OpenAEV](https://filigran.io/docs/develop/contribute/translations/): a new text of the interface, in every language. 3. [Develop XTM Composer](https://filigran.io/docs/develop/contribute/xtm-composer/): build it in Rust and run it against a local OpenCTI. 4. [Write a page of the XTM documentation](https://filigran.io/docs/develop/contribute/docs/): from a template to a page checked as the CI does. ## Pull, listen or push {#pull-listen-or-push} The ways into OpenCTI differ in who drives the exchange. Your code pulls with the GraphQL API; a consumer listens to a live stream that sends every change, deletions included; a device downloads a feed on a schedule. Choosing the right one saves you polling, and saves your tools stale data. **Diagram: Code reaches OpenCTI through the GraphQL API to read and write, and through live streams and feeds to receive what changes** - Your code: Script or app (curl, Python, TypeScript), Connector (Python client), Stream consumer (SIEM, EDR, SOAR), Feed reader (Firewall, TAXII client) - OpenCTI: GraphQL API (/graphql), Live streams (/stream), CSV and TAXII feeds (/feeds, /taxii2) - Storage: Knowledge base (Filtered by user rights) Connections: - Script or app → GraphQL API: queries and mutations - Connector → GraphQL API: queries and mutations - GraphQL API ↔ Knowledge base: reads and writes - Knowledge base → Live streams: every change - Knowledge base → CSV and TAXII feeds: on request - Live streams → Stream consumer: pushes events - CSV and TAXII feeds → Feed reader: downloaded > **With XTM One: Agents use the same doors** > > The AI agents of XTM One reach OpenCTI, OpenAEV and OpenCRQ through the MCP servers XTM One exposes, with the rights of the user they work for. An assistant of your own can use the same servers. See [MCP servers](https://filigran.io/docs/develop/apis/mcp/). ## Browse Develop {#browse-develop} **Contribute** - [Write an OpenAEV database migration](https://filigran.io/docs/develop/contribute/database-migrations/): Add a Flyway migration to OpenAEV that changes the PostgreSQL schema or its data safely, name it so it runs in order, test it, and pass the migrations guard of the CI. - [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/): Clone OpenCTI or OpenAEV, start their development services, run the back end and the front end from source, and run the checks and tests of the CI. - [Develop XTM Composer](https://filigran.io/docs/develop/contribute/xtm-composer/): Build XTM Composer from source in Rust, run it against an OpenCTI you run locally, test it, and open a pull request. - [Add or change a translation in OpenCTI or OpenAEV](https://filigran.io/docs/develop/contribute/translations/): Wrap a new text of the OpenCTI or OpenAEV interface for translation, add its English key, fill the other eight languages with DeepL, and pass the checks of the CI. - [Write a page of the XTM documentation](https://filigran.io/docs/develop/contribute/docs/): Set up the documentation repository, write a page from its template with facts taken from the module code, declare its screenshots, check it as the CI does, and see it built. - [Prepare a macOS development environment](https://filigran.io/docs/develop/contribute/environment/macos/): Install on macOS, Apple silicon or Intel, the container engine, Node.js, Yarn, Python and Java versions that the OpenCTI and OpenAEV source code requires. - [Prepare an Ubuntu development environment](https://filigran.io/docs/develop/contribute/environment/ubuntu/): Install on Ubuntu the container engine, Node.js, Yarn, Python and Java versions that the OpenCTI and OpenAEV source code requires. - [Prepare a Windows development environment](https://filigran.io/docs/develop/contribute/environment/windows/): Set up Windows to run OpenCTI from source in WSL 2, and OpenAEV natively or in WSL 2, with the tool versions their code requires. **Integration model** - [Integration model](https://filigran.io/docs/develop/integration-model/): How the XTM modules connect to other systems through connectors, collectors, injectors and executors, and what every integration shares, OpenCTI first. - [Connectors](https://filigran.io/docs/develop/integration-model/connectors/): The six connector types of OpenCTI, what each receives and returns, which user and confidence level its data gets, and how connectors are deployed and scaled. - [Injectors](https://filigran.io/docs/develop/integration-model/injectors/): How an external OpenAEV injector registers its contracts, receives each inject from its RabbitMQ queue and reports the result, as the platform implements it in 3.261029.0. - [Collectors](https://filigran.io/docs/develop/integration-model/collectors/): How an OpenAEV collector registers with its security platform, reads the expectations it has not answered, and writes verdicts and alert traces, as of OpenAEV 3.261029.0. - [Executors](https://filigran.io/docs/develop/integration-model/executors/): How an OpenAEV executor starts the implant on each targeted endpoint, the parts an executor has in the platform code, and what a contributor writes to add one, as of 3.261029.0. - [Community resources](https://filigran.io/docs/develop/integration-model/resources/): Where the integrations of the XTM platform live - catalogs, XTM Composer, connector repositories, libraries and images - and where to learn and ask questions. **Build** - [Build an OpenCTI connector](https://filigran.io/docs/develop/build/connector/): Write an external import connector with pycti, from an empty folder to a run that creates reports, intrusion sets and indicators in OpenCTI, then package it with Docker. - [Build an OpenAEV injector](https://filigran.io/docs/develop/build/injector/): Write an external OpenAEV injector in Python, from its contract to the result of each inject, run it against your platform, see its inject type in an atomic test, and package it with Docker. - [Build an OpenAEV collector](https://filigran.io/docs/develop/build/collector/): Write an OpenAEV collector in Python that matches the detection and prevention expectations of your simulations with the alerts of your security tool, run it, and read its verdicts. - [Integration manifest](https://filigran.io/docs/develop/build/manifest/): The connector manifest and configuration schema that the OpenCTI catalog shows and XTM Composer deploys from, field by field, and how to build a catalog of your own connectors. - [Script OpenCTI in Python](https://filigran.io/docs/develop/build/python-client/): Script the OpenCTI API in Python with pycti - connect, read with filters, create objects with markings and relationships, import a STIX bundle, and run your own GraphQL queries. **APIs** - [APIs and integration options](https://filigran.io/docs/develop/apis/): The ways code reaches OpenCTI, from the GraphQL API to live streams, feeds, connectors and MCP, what each one is for, how they authenticate, and which to choose. - [Query OpenCTI with GraphQL](https://filigran.io/docs/develop/apis/graphql/): Authenticate with an API token, then read and write OpenCTI knowledge with GraphQL queries and mutations, page through results and handle errors. - [Script OpenAEV and XTM One with their REST APIs](https://filigran.io/docs/develop/apis/rest/): Authenticate to the REST APIs of OpenAEV and XTM One with a token of your user, find every endpoint in their API reference, page through results and read the errors. - [Filters](https://filigran.io/docs/develop/apis/filters/): The filter group format that OpenCTI list queries, feeds, live streams, triggers and playbooks share, its operators and special keys, and the simpler format of the OpenAEV API. - [Data streaming](https://filigran.io/docs/develop/apis/streams/): The live streams and the raw stream of OpenCTI over server-sent events, the events they send, how to resume after a cut, how to write a consumer, and the settings that tune them. - [XTM One chat API](https://filigran.io/docs/develop/apis/chat/): Talk to an XTM One agent from your code over HTTP: send a message and read its answer as server-sent events, follow, stop, steer or approve a request, and know how every request ends. - [MCP servers](https://filigran.io/docs/develop/apis/mcp/): The Model Context Protocol servers XTM One exposes for OpenCTI, OpenAEV, OpenCRQ and itself, their endpoints, protocol versions, authentication, answers and every tool they offer. - [Connect your AI assistant to the documentation](https://filigran.io/docs/develop/apis/docs-mcp/): Add the documentation's MCP server to Claude, ChatGPT, Cursor, VS Code or XTM One, so your assistant answers from the published pages, for your version, with links. - [XTM One emergency stop API](https://filigran.io/docs/develop/apis/emergency-stop/): The REST routes of the XTM One emergency stop - press it, record why, lift it, read its state, manage the emergency token - with their fields, answers and errors. --- # APIs and integration options > The ways code reaches OpenCTI, from the GraphQL API to live streams, feeds, connectors and MCP, what each one is for, how they authenticate, and which to choose. - URL: https://filigran.io/docs/develop/apis/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0 - For: developers, SOC managers, platform engineers - Type: Concept OpenCTI offers several ways in for code, and they do not do the same job. The GraphQL API reads and writes anything, at the pace of your script. Live streams push every change to a consumer as it happens. CSV feeds and TAXII collections hand a filtered list to tools that poll. Connectors are programs that run beside the platform. This page explains what each way is for, what they share, and how to pick one for an integration, such as sending Velvet Harbor indicators to a SIEM or importing a hotel-sector feed. **Diagram: Code reaches OpenCTI through the GraphQL API to read and write, and through live streams and feeds to receive what changes** - Your code: Script or app (curl, Python, TypeScript), Connector (Python client), Stream consumer (SIEM, EDR, SOAR), Feed reader (Firewall, TAXII client) - OpenCTI: GraphQL API (/graphql), Live streams (/stream), CSV and TAXII feeds (/feeds, /taxii2) - Storage: Knowledge base (Filtered by user rights) Connections: - Script or app → GraphQL API: queries and mutations - Connector → GraphQL API: queries and mutations - GraphQL API ↔ Knowledge base: reads and writes - Knowledge base → Live streams: every change - Knowledge base → CSV and TAXII feeds: on request - Live streams → Stream consumer: pushes events - CSV and TAXII feeds → Feed reader: downloaded ## Choose a way in {#choose-a-way-in} | You want to | Use | Endpoint | Page | | --- | --- | --- | --- | | Query or change knowledge from a script, an app or a notebook | GraphQL API | `/graphql` | [Query OpenCTI with GraphQL](https://filigran.io/docs/develop/apis/graphql/) | | Do the same from Python, with helpers per entity type | Python client (`pycti`), on top of the GraphQL API | `/graphql` | [Python client](https://filigran.io/docs/develop/build/python-client/) | | Keep a SIEM, an EDR, a SOAR or another platform in step with the knowledge base, deletions included | Live stream | `/stream/{id}` | [Data streaming](https://filigran.io/docs/develop/apis/streams/) | | Give a device a list it downloads on a schedule | CSV feed | `/feeds/{id}` | [Share knowledge with your security tools](https://filigran.io/docs/opencti/use/share/feeds/#create-a-csv-feed) | | Serve a tool that speaks Trusted Automated Exchange of Intelligence Information (TAXII) 2.1 | TAXII collection | `/taxii2/root/collections/{id}/objects/` | [Share knowledge with your security tools](https://filigran.io/docs/opencti/use/share/feeds/#create-a-taxii-collection) | | Let a partner push STIX objects into OpenCTI | TAXII push | `/taxii2/root/collections/{id}/objects/` (`POST`) | [Let partners push intelligence to you](https://filigran.io/docs/opencti/use/ingest/taxii-push/) | | Import, enrich or export data continuously, as a component of the platform | Connector | Queues and `/graphql` | [Connectors](https://filigran.io/docs/develop/integration-model/connectors/) | | Let an AI assistant or an AI agent query OpenCTI | Model Context Protocol (MCP) server of XTM One | `/mcp/opencti` on XTM One | [MCP servers](https://filigran.io/docs/develop/apis/mcp/) | | Script OpenAEV scenarios, simulations and results | OpenAEV REST API | `/api` | [REST API](https://filigran.io/docs/develop/apis/rest/) | When a ready-made integration exists, start there: the [connector catalog](https://filigran.io/docs/opencti/use/ingest/connectors/) lists the connectors of the XTM Hub, among them stream connectors for the main SIEMs and EDRs. ## Pull, listen or push {#pull-listen-or-push} The ways in differ in who drives the exchange, and so in what the other side has to do. - **You pull, with the GraphQL API.** Your code asks, the platform answers, page by page. Nothing tells your code that something changed: to follow changes, it polls with a date filter, or it listens to a stream instead. Use it for reads on demand, writes, and anything a stream or a feed does not cover. - **You listen, with a live stream.** The platform sends each creation, update, deletion and merge within seconds, with the objects each one depends on. Your consumer keeps its position and resumes after a cut. Use it when a copy of the knowledge must stay in step, removals included, such as indicators an EDR blocks. - **The tool pulls, with a feed.** A CSV feed or a TAXII collection is computed at each request from its filters. The tool learns nothing about removals beyond what disappears from the list. Use it for devices that only download. - **A partner pushes, with TAXII push.** OpenCTI receives STIX bundles from a client and imports them. A connector can combine these: a stream connector listens to a live stream and writes to a SIEM; an import connector reads a feed and sends STIX bundles to OpenCTI through its queues. ## What every way shares {#what-every-way-shares} **One identity per integration.** Every request runs as a user: its markings, its organizations and its confidence level decide what it reads and what it may write, and its name shows in the history of what it changes. Give each integration its own user: see [Create accounts for integrations](https://filigran.io/docs/opencti/administer/service-accounts/) explains, rather than a person's account. **The same credentials.** The GraphQL API, live streams, CSV feeds and TAXII collections accept: | Credential | Header | Capability the user needs | | --- | --- | --- | | API token | `Authorization: Bearer` followed by the token | **Allow token usage** | | Login and password | `Authorization: Basic` followed by `login:password` in Base64 | **Allow basic auth usage** | Both capabilities sit under **API usage with authorization header** in the role editor. A user creates tokens in the **API access** card of their profile, with a duration from 30 days to unlimited: see [Get an API token](https://filigran.io/docs/develop/apis/graphql/#get-an-api-token). On top of that, feeds and live streams need **Access data sharing**, and a feed or a live stream made public needs no credential at all. **The same filters.** List queries, feeds, live streams, triggers and playbooks select objects with the same filter group format. See [Filters](https://filigran.io/docs/develop/apis/filters/). **The same data model.** What goes out is STIX 2.1, with the OpenCTI properties in an extension; what the API returns follows the same types. The [data model reference](https://filigran.io/docs/reference/opencti/data-model/) lists the entity types and their attributes. *(OpenCTI 7.261030 and later)* > **With XTM One: XTM One and the APIs** > > XTM One exposes OpenCTI to any MCP client, such as Cursor or an AI agent your team builds: the client searches, reads and creates knowledge with the rights of its user, with nothing to code against the GraphQL API. The **XTM One MCP server** card of your OpenCTI profile gives the endpoint URL. See [XTM One in OpenCTI](https://filigran.io/docs/xtm-one/use/in-opencti/). ## Limits to plan for {#limits-to-plan-for} | Limit | Default | Where it is set | | --- | --- | --- | | Items in one page of a GraphQL list | 500 when `first` is left out, 5,000 at most | `elasticsearch:default_pagination_result`, `elasticsearch:max_pagination_result` | | Requests per client, by address and user agent | 10,000 a second, then HTTP `429` | `app:rate_protection:max_requests`, `app:rate_protection:time_window` | | Size of one JSON request body: GraphQL, TAXII, REST | 50 MB | `app:max_payload_body_size` | | Events a live stream consumer can resume from | The last 2,000,000 events of the platform | `redis:trimming` | | Objects in one answer of a CSV feed | 5,000 | `data_sharing:max_csv_feed_result` | | Objects in one page of a TAXII collection | 500 | `app:data_sharing:taxii:max_pagination_result` | *(OpenCTI 7.261119 and later)* A platform that turns on the secure HTTP defaults (`app:http:secure_by_default` set to `true`) applies stricter limits to the keys it leaves unset: 30,000 requests a minute per client, and 10 MB per request body. Ask the platform engineer which values your platform runs with before you size a bulk import. See [Rate limiting](https://filigran.io/docs/deploy/operate/harden/#rate-limiting). A platform engineer changes them in the configuration: see the [configuration reference](https://filigran.io/docs/reference/opencti/configuration/). ## What's next {#what-s-next} - [Query OpenCTI with GraphQL](https://filigran.io/docs/develop/apis/graphql/): a token, a first request, queries, mutations, pagination and errors. - [Data streaming](https://filigran.io/docs/develop/apis/streams/): the events of live streams, and how to write a consumer. - [Filters](https://filigran.io/docs/develop/apis/filters/): the filter group format. - [HTTP endpoints](https://filigran.io/docs/reference/opencti/http-endpoints/): every endpoint of the platform and how it authenticates. --- # XTM One chat API > Talk to an XTM One agent from your code over HTTP: send a message and read its answer as server-sent events, follow, stop, steer or approve a request, and know how every request ends. - URL: https://filigran.io/docs/develop/apis/chat/ - Products: XTM One 1.261119.1 - Edition: requires an Enterprise Edition license - For: developers, platform engineers - Type: Reference The web interface of XTM One, its Office add-in and your own scripts talk to a conversation over HTTP. A message goes in a `POST` whose response streams the request back as server-sent events (SSE), and a second stream follows the rest of the conversation. This page is the reference of those routes, under `/api/v1/web/chat`. It covers how to sign in and open a conversation, what to send, and the frames you receive while an AI agent works. It also covers how to stop, steer or approve a request, and what you can count on when a request ends. The REST routes under `/api/v1/chat/conversations`, listed at the end, serve the same conversations without a stream. > **Note: The WebSocket is gone** > > From XTM One 1.261112.0, these routes replace the WebSocket of a conversation, `/api/v1/chat/conversations/{conversation_id}/ws`, and its close codes. [XTM One 1.261112.0](https://filigran.io/docs/deploy/upgrade/breaking-changes/#xtm-one-1-261112-0) maps each WebSocket message to its route. **Diagram: A script sends a message over HTTP and reads the frames of its request as server-sent events until it ends** - Your script: Sign in (POST /api/v1/auth/login), Send (POST …/web/chat/messages), Follow (GET …/conversations/{id}/events) - XTM One: Conversation (One request at a time), Agent (Tools, models) - Frames: Progress (turn_started, status, stream), End (done, error or cancelled) Connections: - Sign in → Send: access_token - Send → Conversation: {"content": …} - Conversation → Agent: runs the request - Agent → Progress: as it works - Agent → End: once - Progress → Send: SSE response - Conversation → Follow: other requests ## Before you start {#before-you-start} - **The Enterprise Edition, with AI on.** Without them, the routes that start or feed a request answer 403: see [Refusals](#refusals) and [What each edition of XTM One brings](https://filigran.io/docs/xtm-one/administer/editions/). - **A session token.** `POST /api/v1/auth/login` with `{"email": ..., "password": ...}` returns it as `access_token`. When the account has two-factor authentication, the answer carries `"mfa_required": true` and an `mfa_token` instead, which only `POST /api/v1/auth/mfa/verify` accepts. When local sign-in is turned off for single sign-on, the route answers 403. Send the token on every request as `Authorization: Bearer {access_token}`. The routes under `/api/v1/web` refuse a personal API key or a platform token with a 403, `The web chat needs a web session`; the REST routes accept a personal API key, `Authorization: Bearer fcp-...`. - **A conversation you own.** Only its owner sends to it, follows it, and stops, steers or approves its requests. A conversation shared with you can be opened and paged, read-only. Every message, streamed or over REST, counts against a limit of 30 a minute per person, and one agent run against the person's quota. ## Read a stream {#read-a-stream} Both streams are `text/event-stream` responses. Each event is one `data:` line that holds a JSON frame with a `type`, followed by a blank line: ```text data: {"type": "stream", "content": "The loader of ", "turn_id": "c41f0e8a2b7d4c96a3e15f8d0b7c2e49"} : keepalive ``` Once a stream has started, it writes a `: keepalive` comment at most 15 seconds after the last thing it wrote, so that proxies keep it open: skip it. Skip any frame `type` you do not know, too. Name your client with an `X-Chat-Client-Id` header on every route that sends or acts on a request, up to 128 printable characters. Pass the same value as `client_id` when you [follow the conversation](#requests-you-did-not-send): your own requests are then never repeated there. XTM One replaces a missing or invalid value with a random one. ### Refusals {#refusals} A refusal is an HTTP error with a readable `detail`. Where a client may need to branch on it, a `code` sits beside it: | Status | Body | When | | --- | --- | --- | | 403 | `{"detail": "...", "code": "terms_required"}` | The person has not accepted the terms of use yet: they sign in once in the interface to accept them. Every route | | 403 | `{"detail": "...", "code": "chat_unavailable"}` | The deployment is in the Community Edition. Only the routes that start or feed a request: send, steer, approve, upload, and open a new conversation. Restoring a conversation stays open | | 403 | `{"detail": {"code": "ai_disabled", "message": "..."}}` | An administrator switched AI off. The same routes as `chat_unavailable` | | 401 | `detail.code` is `session_expired` | The session ended. Sign in again | Without chat, everything else keeps working: listing, reading, renaming and deleting conversations, the events stream, the pending approvals, stop and continue. A stream still open when its session ends sends `{"type": "session_expired", "reason": "lifetime"}`, or `"idle"`, and ends. XTM One checks the session every 15 seconds. On the mobile app, a stream still open when the app locks behind its PIN sends `{"type": "app_locked"}` and ends. ## Open a conversation {#open-a-conversation} `POST /api/v1/web/chat/sessions` with `{"agent_slug": "night-shift-triage"}`, or `agent_id`, creates a conversation and answers its `conversation_id`. Add `workspace_id` to file it into a workspace. Without an agent, the General Assistant answers it. An unknown slug answers 404, `Agent not found`. With `{"conversation_id": ...}`, the same route restores that conversation instead; one you cannot read starts a new one. A restore answers: | Field | What it holds | | --- | --- | | `messages`, `has_more` | The latest messages, oldest first; `has_more` is `true` when older ones exist | | `agent_id`, `agent_name`, `workspace_id` | The conversation's agent and workspace. Without an agent, `agent_name` names who answers: the agent standing in for the General Assistant, or the General Assistant | | `is_processing` | `true` while a request runs | | `pending_approvals` | The tool calls a running request waits for you to [approve](#approve-a-tool-call), or `null` | | `interrupted_turn` | The last request stopped before its answer, with `started_at` and `interrupted_at`, or `null`: see [How a request ends](#how-a-request-ends) | The other routes of a conversation: | Route | What it does | | --- | --- | | `GET /api/v1/web/chat/agents` | The agents you can chat with: `id`, `name`, `slug`, `icon`, `description`, `group`, `badges` and `disable_chat`. The General Assistant comes first, unless an agent stands in for it | | `GET /api/v1/web/chat/sessions` | Your conversations, as `{"conversations": [...]}`. `limit` from 1 to 200, 50 by default, `offset`, `workspace_id`, and `scope=shared` for those shared with you | | `GET /api/v1/web/chat/sessions/{conversation_id}/messages` | The messages older than the message `before`, as `{"messages": [...], "has_more": ...}`. `limit` up to 500, 50 by default | | `PATCH /api/v1/web/chat/sessions/{conversation_id}` | `{"title": ...}` renames the conversation, `{"workspace_id": ...}` files it into a workspace | | `DELETE /api/v1/web/chat/sessions/{conversation_id}` | Archives the conversation. Answers 204 | | `DELETE /api/v1/web/chat/sessions` | Archives every conversation `GET /api/v1/web/chat/sessions` lists. Answers 204 | | `POST /api/v1/web/chat/upload` | A multipart form with `conversation_id` and `file`: stores the file for the next message and answers `{"file_ids": [...]}` | ## Send a message {#send-a-message} `POST /api/v1/web/chat/messages` sends a message and streams its request back: ```bash curl -N https://xtm-one.grand-meridian.example/api/v1/web/chat/messages \ -H "Authorization: Bearer $XTM_ONE_TOKEN" \ -H "Content-Type: application/json" \ -H "X-Chat-Client-Id: soc-siem-script" \ -d '{"conversation_id": "9a7f2e1d-4c3b-4e5a-8f6d-1b2c3d4e5f60", "content": "Summarize the alerts of FD-PAR-03 since 22:00"}' ``` | Field | What it holds | | --- | --- | | `conversation_id` | The conversation, which must be yours | | `content` | The message | | `file_ids` | Files stored beforehand with `POST /api/v1/web/chat/upload` | | `mentioned_agent_ids` | Agents that answer after the conversation's agent, in order: see [Mention several agents](#mention-several-agents) | | `referenced_conversation_ids` | Other conversations the agent reads: see [Reference other conversations](#reference-other-conversations) | | `supports_tool_approval` | `true` when your client [answers approvals](#approve-a-tool-call) | A message refused before its request starts gets an HTTP error with `{"detail": ...}` instead of a stream: | Status | Why | | --- | --- | | 400 | The message is empty, or it adds a tool, knowledge base or integration you may not use | | 401 | The account may no longer chat, for example because it was deactivated | | 404 | `Conversation not found`: no such conversation of yours | | 409 | The conversation does not take a message from here: a group channel thread, or a request a channel message runs | | 422 | The Deep Investigation choices could not be read | | 429 | Too many messages: `Retry-After` says when to send again. A platform set to fail closed answers 503 while its rate limiter cannot be reached | That is why the status and headers of the response arrive with its first frame past `thinking`: nothing is written before them, not even a keepalive. Once the request has started, a failure is an `error` frame. The response ends once the request, and the new title of the conversation if any, is delivered. Closing it early does not stop the request, nor does reading nothing for about 10 seconds, after which XTM One ends the response. The request runs on and stores its answer. ## Frames {#frames} | `type` | Meaning | | --- | --- | | `thinking` | Your message was received. It comes before the request runs | | `turn_started` | Your message started a request of its own; `turn_id` names it. A message folded into a running request receives `folded_into_active_turn` instead: see [Messages folded into a running request](#messages-folded-into-a-running-request) | | `status` | Progress: `status` names the step, such as `preparing`, `tool_start`, `thinking_text` or `streaming`. `wait_start` announces a pause of the agent | | `stream` | The next piece of the answer as it is written, in `content` | | `done` | The answer: `content`, and `message_id`, the stored assistant message. With `"intermediate": true`, it is a part of the answer already delivered while the agent keeps working: the request is not over | | `agentic_action` | The request was charged `actions` agentic actions, counted in the quota `period` it names | | `approval_required` | The request waits for you to [approve](#approve-a-tool-call) tool calls, in `proposals`. `approval_resolved` says the wait is over | | `conversation_title` | The conversation was given a title, in `title` | | `error` | The request ended without an answer; `content` says why | | `cancelled` | The request was stopped | Every frame of the request carries its `turn_id`, `thinking` included; `conversation_title` belongs to no request and carries none. An `error` or `cancelled` with `"provisional": true` ends the request, but its stored end follows on the same stream. That end is a `done` or `cancelled` with `message_id`, or an `error` when the reply could not be stored. Any other `error` or `cancelled` is the last frame of the request. ## Stop, continue or steer a request {#stop-continue-or-steer-a-request} The other actions on a running request are `POST` routes with the same headers. Each takes `{"conversation_id": ...}`: | Route | What it does | | --- | --- | | `/api/v1/web/chat/messages/cancel` | Stops the request and the background work it started. Answers 202, `{"status": "cancelled", "turn": ...}` | | `/api/v1/web/chat/messages/skip-wait` | Ends the pause a `wait_start` status announced; the request carries on. Answers 202, `{"status": "wait_skipped", "turn": ...}` | | `/api/v1/web/chat/messages/steer` | Also takes `content` and `file_ids`: stores the message and hands it to the running request, which reads it at its next step. Answers `{"status": "steered", "turn_id": ...}` | `turn` says where XTM One reached the request: `local`, `remote` on another server of the platform, or `none` when nothing ran. Add `"awaiting_send": true` to a stop sent while your own message is on its way: answered `none`, the stop is kept for about 30 seconds, and that request ends `cancelled` as soon as it starts. A stop or a skip answers 503 when the request runs on another server and the message broker of XTM One cannot be reached: nothing reached it, so try again. A steered message that no request takes answers 409: none runs, it was stopped, or it ended on the way. Nothing is stored and the message does not count against the limit: send it as a new message. An empty message answers 400, and too many messages 429 with `Retry-After`. `{"status": "stored", "turn_id": null}` means that the message is stored but no request is known to have taken it. With `"answered": false`, no request took it and no reply answers it. Either way, it stays in the conversation and shapes the next request: do not send it again. A 503 means nothing was stored: try again. ## Approve a tool call {#approve-a-tool-call} An agent set to ask before some tools pauses on them when your message carried `"supports_tool_approval": true`. It sends `approval_required`, whose `proposals` each name a `tool_call_id`. Answer with `POST /api/v1/web/chat/messages/approve`: ```json {"conversation_id": "9a7f2e1d-4c3b-4e5a-8f6d-1b2c3d4e5f60", "decisions": [{"tool_call_id": "call_5b1e0c7d", "decision": "approve"}]} ``` `decision` is `approve`, `approve_always` or `reject`, with an optional `rejection_reason`. XTM One answers `{"status": "accepted", "decided": 1}`, with the number of decisions it applied. It answers 400 without any decision, 404 for an unknown conversation, and 409 when nothing waits for an approval. After a restart of your client, `GET /api/v1/web/chat/conversations/{conversation_id}/pending-approvals` returns what still waits, as `{"proposals": [...], "turn": "running"}`, or `"idle"`. It answers 503 when the message broker cannot say, rather than an `idle` that would drop a prompt the request still waits on. ## Mention several agents {#mention-several-agents} To have several agents answer one message, add their ids in the order they answer: ```json {"content": "@crisis-briefer @night-shift-triage what do we tell the crisis cell?", "mentioned_agent_ids": ["7c0e5d2a-1b7f-4a51-9c1e-2f4d8a6b3e90", "0f3b9a64-5d2c-4e8b-8a17-6c9e1d2f4a73"]} ``` The conversation's agent answers first, then each mentioned agent, in the same request: every frame carries the same `turn_id`. Each reply but the last arrives as a `done` with `"intermediate": true`, and a `status` frame with `"status": "mention_answering"`, `agent_name`, `position` and `total` announces the next agent. Every reply of such a request carries `answered_by`, with `agent_id`, `agent_name` and, when the agent has one, `agent_icon`; the General Assistant's own replies carry none. A note written in place of an agent that did not answer carries `"mention_failed": true`. Over REST, the replies after the first are in `mention_messages`. A request can become such a request without your mentioning anyone: a message folded into it from elsewhere may mention agents. To tell your agent's reply from theirs, compare `answered_by.agent_id` with the conversation's agent. ## Reference other conversations {#reference-other-conversations} To have the agent read other conversations, add their ids, in the streamed message and over REST alike: ```json {"content": "@weekly-velvet-harbor-brief what did we decide there?", "referenced_conversation_ids": ["3e8d1c52-7a49-4f06-b2d1-9c5e0a7f6b18"]} ``` `GET /api/v1/chat/conversation-references` lists the conversations you can reference. Every word of `q`, separated by spaces, hyphens or underscores, must appear in the title; `limit`, from 1 to 20, defaults to 8, and `exclude` leaves one conversation out. Each entry has `id`, `title`, `key` (what the interface writes after `@`), `updated_at`, `is_own` and, for a conversation shared with you, `owner_name`. XTM One keeps at most 5 references, only to conversations you can open, never the conversation the message is sent in. The stored user message lists them in `conversation_refs`, with `conversation_id`, `title` and `key`. ## Requests you did not send {#requests-you-did-not-send} A conversation can be open in several places: another tab, another device, voice mode, a script, a background task that reports back. To see what the others do as it happens, follow the conversation: ```text GET /api/v1/web/chat/conversations/{conversation_id}/events?client_id=soc-siem-script ``` This stream receives every request of the conversation that your client did not send, so that each place shows the answer as it is written. It also receives `user_message` frames, a user message stored from another place in `message`, and `conversation_title` and `approval_resolved` frames. It ends after 15 minutes, or when your client reads nothing for about 10 seconds: open it again. Two fields tell the frames apart: | Field | Where | Meaning | | --- | --- | --- | | `relayed` | Every frame of a request your client did not send, and `user_message` frames | `true`: the request was sent elsewhere. Frames of your own requests never carry it | | `turn_id` | Every frame of a request, from `turn_started` or `folded_into_active_turn` to its end | Names the request. Your frames and the copies other clients receive carry the same value. `user_message`, `conversation_title` and `session_expired` carry none | An events stream opened while a request runs first receives a `thinking` frame with `"resumed": true`. Then come the steps, the reasoning and the answer written so far, then the rest as it comes. A request your client sent is not repeated when it opens the stream again with the same `client_id`. A script that cares only about its own messages ignores every frame with `relayed`, except those of the request its message was folded into. ## Messages folded into a running request {#messages-folded-into-a-running-request} A conversation runs one request at a time. A message sent while another request runs is folded into it: that request takes your message into account, and you receive: ```json {"type": "folded_into_active_turn", "conversation_id": "9a7f2e1d-4c3b-4e5a-8f6d-1b2c3d4e5f60", "folded": true, "turn_id": "c41f0e8a2b7d4c96a3e15f8d0b7c2e49"} ``` The frames of that request then follow on the same response, with `relayed` and that `turn_id`, up to its end. The agents your message mentions answer in that request, after its own agents, or in the next one when it ends first. Rarely, the message waits for the next request instead: `"folded": false`, with a `turn_id` only when a request is running, which picks the message up. Over REST, the same cases answer HTTP 202 with `"status": "folded_into_active_turn"` or `"status": "queued_for_next_turn"`. ## How a request ends {#how-a-request-ends} Every request you are shown ends with a `done`, `cancelled` or `error` frame, also one sent elsewhere, and also when the message broker of XTM One was briefly lost or the process that ran the request stopped. When XTM One ends a request itself, the `error` frame carries a `reason`: | `reason` | Meaning | | --- | --- | | `interrupted` | The request stopped before its answer, during a restart of the server for example | | `lost` | The request is over, but how it ended could not be delivered. Read the conversation to see what it stored | A request still running when a restart stops waiting for it stores an assistant message before that `error`: it says the request was interrupted and names the tool calls that completed, those still running and the last action completed. Read back, that message has `"interrupted": true` and the completed calls in `tool_call_trace`. The REST request that started it answers 503 with `Retry-After`: read the conversation before you send the message again. When the restart was the platform's own, a rolling update or a recycled worker, XTM One resumes the request by itself, unless you sent another message or stopped it since. The events streams of the conversation then receive a `turn_resuming` frame, followed by the frames of the resumed request. A request that ended before storing its answer, or whose agent failed, leaves its tool work to the next message of the conversation, for 24 hours: the agent receives the calls it made and their results, and continues instead of calling the same tools again. On the stream that runs it, a stopped request can end with two `cancelled` frames: the acknowledgement, then, once the stop is stored, a second one with `message_id`. In the same way, a failed agent can end with an `error` without `reason`, then a `done` with `message_id` once its reply is stored. Either frame means the request is over; the second says what to read back. If your script waits for an answer that does not come, read `GET /api/v1/chat/conversations/{conversation_id}`: `is_processing` is `false` once no request runs, and the messages hold the answer. XTM One guarantees the end frame; this check covers a network that drops frames on your side. ## REST routes {#rest-routes} | Route | What it does | | --- | --- | | `POST /api/v1/chat/conversations` | Creates a conversation, answers 201. Body: `agent_id`, the agent that answers, `title`, `workspace_id` | | `GET /api/v1/chat/conversations` | Your conversations | | `GET /api/v1/chat/conversations/{conversation_id}` | A conversation with its latest messages (`limit`) and `is_processing` | | `GET /api/v1/chat/conversations/{conversation_id}/messages` | Older messages, before the message `before` | | `POST /api/v1/chat/conversations/{conversation_id}/messages` | Sends a message and waits for the answer: `user_message`, `assistant_message`, `mention_messages`. The same fields as `POST /api/v1/web/chat/messages`, and it accepts a personal API key | | `POST /api/v1/chat/conversations/{conversation_id}/upload` | Uploads a file. With `create_message=false`, it only stores the file and returns its `file_id` for the next message | | `GET /api/v1/agents` | The agents you can use, with their `id` and `name` | **Example: Ask the night shift triage agent from a SOC script** Paul Garnier, SOC analyst on the night shift at Grand Meridian Hotels, wants the **Night shift triage** agent to summarize an alert from the script that already reads the SIEM. The script signs in with an account without two-factor authentication, kept in the environment as `XTM_ONE_URL`, `XTM_ONE_EMAIL` and `XTM_ONE_PASSWORD`, and prints the answer as it is written: ```python import json, os import requests BASE = os.environ["XTM_ONE_URL"] # https://xtm-one.grand-meridian.example token = requests.post(f"{BASE}/api/v1/auth/login", json={ "email": os.environ["XTM_ONE_EMAIL"], "password": os.environ["XTM_ONE_PASSWORD"], }).json()["access_token"] headers = {"Authorization": f"Bearer {token}", "X-Chat-Client-Id": "soc-siem-script"} session = requests.post(f"{BASE}/api/v1/web/chat/sessions", headers=headers, json={"agent_slug": "night-shift-triage"}) session.raise_for_status() conversation_id = session.json()["conversation_id"] def ask(question: str) -> str: with requests.post(f"{BASE}/api/v1/web/chat/messages", headers=headers, stream=True, timeout=(10, 60), json={"conversation_id": conversation_id, "content": question}) as response: response.raise_for_status() # refused before the request started for line in response.iter_lines(decode_unicode=True): if not line.startswith("data: "): continue # blank lines and ": keepalive" frame = json.loads(line[len("data: "):]) if frame["type"] == "stream": print(frame["content"], end="", flush=True) elif frame["type"] == "done" and not frame.get("intermediate"): return frame["message_id"] elif frame["type"] in ("error", "cancelled") and not frame.get("provisional"): raise RuntimeError(frame.get("content") or frame["type"]) raise RuntimeError("The stream ended without an answer: read the conversation") ask("PowerShell started from Outlook on FD-PAR-03 at 23:12. " "Is it linked to Velvet Harbor, and what should I check first?") ``` The read timeout of 60 seconds is well above the 15 seconds between keepalives. The script keeps the frames flagged `relayed`: on its own response, they belong to the request its message was folded into. The agent reads OpenCTI and OpenAEV as Paul, and the answer prints piece by piece: the loader of Velvet Harbor's January intrusion started the same way, with the checks to run on the workstation. ## What's next {#what-s-next} - [Ask an agent in the chat](https://filigran.io/docs/xtm-one/use/chat/), the same conversation in the interface. - [MCP servers](https://filigran.io/docs/develop/apis/mcp/), to give your AI client the tools of the platform. - [XTM One emergency stop API](https://filigran.io/docs/develop/apis/emergency-stop/), to stop every agent at once. --- # Connect your AI assistant to the documentation > Add the documentation's MCP server to Claude, ChatGPT, Cursor, VS Code or XTM One, so your assistant answers from the published pages, for your version, with links. - URL: https://filigran.io/docs/develop/apis/docs-mcp/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: developers, platform engineers, administrators - Type: How-to guide The XTM documentation has a Model Context Protocol (MCP) server, `https://filigran.io/docs/mcp`. Add it to your AI assistant once, and the assistant answers your questions about OpenCTI, OpenAEV, OpenCRQ, XTM One and XTM Composer from the documentation as it is published, for the version you run, with a link to the section behind each answer. It needs no account and no key, and it only reads. **Diagram: Your assistant calls the documentation's MCP server, which reads the published pages at the version you run** - Your assistant: AI assistant (Claude, ChatGPT, Cursor, VS Code), XTM One agent (Your own XTM One) - filigran.io/docs: MCP server (search, read, look up) - The documentation: Latest (Every product), OpenCTI LTS lines (/lts//), Earlier versions (/v///) Connections: - AI assistant → MCP server: no sign-in - XTM One agent → MCP server: no sign-in - MCP server → Latest: reads - MCP server → OpenCTI LTS lines: reads - MCP server → Earlier versions: reads ## What the documentation's server gives your assistant {#what-the-documentation-s-server-gives-your-assistant} The documentation's MCP server gives an assistant three tools, which read the pages of the site and nothing else: | Tool | What it does | | --- | --- | | `search_docs` | Finds the sections that best answer a question, for a product and a version: each with its title, its address with its anchor, and its first lines | | `read_page` | Reads a page, or one of its sections by its address with its anchor, as Markdown: its products and versions, its edition and its readers first | | `lookup_reference` | Gives exact values from the references generated from the products' code: a configuration key with its environment variable and default, a capability, a filter key, a metric, an error | The version is what you run: an OpenCTI LTS line (`7.260811-lts`), a version of another product (`3.261116.1`), or the latest when you give none. An earlier version of a product is prepared the first time someone asks for it: the tool then says to ask again in about a minute. When your assistant connects, the server also gives it the rules of a good answer: answer from the tools only, cite each section, answer for your version, and say when the documentation does not say something. The server is public and read-only: it serves the published pages and keeps nothing of what you ask. One address may call it 120 times a minute; past that, it answers with an error for the rest of the minute. ## Before you start {#before-you-start} - An assistant that connects to remote MCP servers over HTTP (Streamable HTTP): Claude, ChatGPT in developer mode, Cursor, VS Code, XTM One, or your own MCP client. - Nothing on the XTM side: no account, no key, no setting. ## Connect your assistant {#connect-your-assistant} **Claude** Claude adds the server as a custom connector, in claude.ai and in the Claude desktop app alike: see [Anthropic's guide to custom connectors](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp). 1. Open **Customize > Connectors**, then **Add custom connector**. 2. Name it `XTM documentation` and enter the server's address, `https://filigran.io/docs/mcp`. 3. Leave authentication empty (no sign-in, no header), then **Add**. 4. In a conversation, turn the connector on from the tools menu. On a Team or Enterprise plan, an owner adds the connector for the organization, and members turn it on. **Claude Code** Run this command once, in a terminal: ```bash claude mcp add --transport http xtm-docs https://filigran.io/docs/mcp ``` Add `--scope user` to have it in every project, rather than in the current one. **ChatGPT** ChatGPT connects to an MCP server in developer mode: see [OpenAI's guide to developer mode](https://developers.openai.com/api/docs/guides/developer-mode). 1. Turn on developer mode in ChatGPT's settings, under the connectors' advanced settings. 2. Create a connector with the server's address, `https://filigran.io/docs/mcp`, and no authentication. 3. In a conversation, choose the connector from the tools menu. **Cursor** Open this link on the computer where Cursor runs: [Add the XTM documentation to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=xtm-docs&config=eyJ1cmwiOiJodHRwczovL2ZpbGlncmFuLmlvL2RvY3MvbWNwIn0=). Cursor asks you to confirm. Or add it to `~/.cursor/mcp.json` yourself: ```json { "mcpServers": { "xtm-docs": {"url": "https://filigran.io/docs/mcp"} } } ``` **VS Code** Open this link on the computer where VS Code runs: [Add the XTM documentation to VS Code](vscode:mcp/install?%7B%22name%22%3A%22xtm-docs%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Ffiligran.io%2Fdocs%2Fmcp%22%7D). VS Code asks you to confirm. Or add it to the `mcp.json` of your user profile or of a workspace (`.vscode/mcp.json`): ```json { "servers": { "xtm-docs": {"type": "http", "url": "https://filigran.io/docs/mcp"} } } ``` **XTM One** Add it as a remote MCP server of your XTM One, as [Connect an MCP server](https://filigran.io/docs/xtm-one/build/mcp-servers/) describes: **Custom Server**, the **Streamable HTTP** transport, the address `https://filigran.io/docs/mcp`, no header. Then attach its three tools to the agents that should answer from the documentation. They only read, so they can run without asking. ## Ask your first question {#ask-your-first-question} Ask with your version in the question, or say it once at the start of the conversation: the answer differs between versions for some features, and the assistant asks when it matters and you did not say. **Example: A platform engineer checks how to turn email off on an LTS line** Example CERT runs OpenCTI 7.260811 LTS for its hotel chains, and a test copy of it must send no email. Its platform engineer asks Claude Code, with the documentation's server added: > We run OpenCTI 7.260811 LTS. Which environment variable turns email sending off, and what happens to password resets? The assistant looks the setting up in the configuration reference of 7.260811, and answers that `SMTP__ENABLED` set to `false` turns email sending off, with OpenCTI sending no email at all, password resets included, and links the section of the reference and the page on email it read, both at `/lts/7.260811-lts/`. ## Check that it works {#check-that-it-works} - Your assistant lists the three tools of the server: `search_docs`, `read_page` and `lookup_reference`. - An answer links pages of `https://filigran.io/docs/`, at your version: under `/lts//` for an OpenCTI LTS line, under `/v///` for an earlier version of another product. - A question the documentation does not answer gets "the documentation does not say", and an offer to report the gap, rather than a guess. ## What's next {#what-s-next} - On any page, **Ask Claude about this page** and **Ask ChatGPT** send the page to an assistant, with nothing to add first. - To work with the products themselves from an assistant, their data rather than their documentation, use [XTM One's MCP servers](https://filigran.io/docs/develop/apis/mcp/). - When an answer shows a gap or an error in the documentation, [tell us](https://github.com/FiligranHQ/xtm-docs/issues/new?template=page-feedback.md). --- # XTM One emergency stop API > The REST routes of the XTM One emergency stop - press it, record why, lift it, read its state, manage the emergency token - with their fields, answers and errors. - URL: https://filigran.io/docs/develop/apis/emergency-stop/ - Products: XTM One 1.261119.1 - For: developers, platform engineers, administrators - Type: Reference Everything the [emergency stop](https://filigran.io/docs/xtm-one/administer/emergency-stop/) does in the XTM One interface is available over REST, plus one route that needs no session: the one a printed runbook or a monitoring hook uses to stop the whole platform. This page is the reference of the routes under `/api/v1/panic`: who may call each one, its fields, its answer and its errors. None of them depends on the edition or on the AI switch: the stop is what switches AI off, so it keeps answering while AI is off. **Diagram: A user's key reaches every route of /api/v1/panic in their scope; the emergency token reaches one route, which stops the whole platform** - Callers: User or script (Session or fcp- API key), Runbook or monitoring (xes- emergency token) - /api/v1/panic: Session routes (stop, reason, resume, status, token), POST /emergency (No session needed) - XTM One: Your activity (scope self), Whole platform (scope platform, AI off) Connections: - User or script → Session routes: Bearer fcp- - Runbook or monitoring → POST /emergency: Bearer xes- - Session routes → Your activity: any user - Session routes → Whole platform: administrators - POST /emergency → Whole platform: always In the examples, the platform is `https://xtm-one.grand-meridian.example`. When a reverse proxy serves XTM One under a path (`BASE_PATH`), that path is part of the address, as in `https://intranet.example.com/xtm-one/api/v1/panic/emergency`; the command shown in **Administration > Settings > Access and security** and on the printed procedure already includes it. ## Authentication {#authentication} | Credential | Header | Accepted by | Allows | | --- | --- | --- | --- | | A session token, or a personal API key `fcp-...` created in the profile ([Set up your profile and API keys](https://filigran.io/docs/xtm-one/use/profile/)) | `Authorization: Bearer fcp-...` | Every route except `POST /api/v1/panic/emergency` | What the user may do: their own scope for every user; the platform scope and the token routes for administrators | | The emergency stop token `xes-...`, generated in **Administration > Settings > Access and security**, section **Emergency stop** | `Authorization: Bearer xes-...` | `POST /api/v1/panic/emergency` only | Stop the whole platform, nothing else | ## Routes {#routes} | Method and path | Who | Purpose | | --- | --- | --- | | `POST /api/v1/panic/stop` | Any user; scope `platform` needs an administrator | Press the stop | | `POST /api/v1/panic/stop/{audit_id}/reason` | The user who pressed that stop | Record why, after the stop | | `POST /api/v1/panic/resume` | Any user; scope `platform` needs an administrator | Lift the stop, with a reason | | `GET /api/v1/panic/status` | Any user | Whether a stop is in effect, what a resume would re-enable, who pressed the last stop | | `GET /api/v1/panic/token` | Administrators | Whether an emergency token exists, never the token itself | | `POST /api/v1/panic/token` | Administrators | Generate or rotate the emergency token, returned once | | `DELETE /api/v1/panic/token` | Administrators | Revoke the emergency token | | `POST /api/v1/panic/emergency` | The emergency token | Stop the whole platform without a session | ## Press the stop {#press-the-stop} ```bash curl -X POST https://xtm-one.grand-meridian.example/api/v1/panic/stop \ -H "Authorization: Bearer ${XTM_ONE_API_KEY}" \ -H "Content-Type: application/json" \ -d '{"scope": "platform"}' ``` | Field | Values | Meaning | | --- | --- | --- | | `scope` | `self` (default), `platform` | `self` stops everything that runs for you. `platform` stops every user's activity and the runs that belong to no user, and switches AI off; it answers `403` to a user who is not an administrator | The interface asks for a typed code before it calls this route; the route itself does not: it is a safeguard of the interface, not a check of the server. The stop runs at once and the answer says what it did: ```json { "scope": "platform", "runs_cancelled": 3, "executions_cancelled": 4, "sub_agent_tasks_cancelled": 1, "chat_turns_cancelled": 0, "flow_runs_cancelled": 0, "runner_commands_cancelled": 0, "evaluation_runs_cancelled": 0, "autonomous_runs_cancelled": 0, "assignments_paused": 12, "ai_disabled": true, "late_admissions_cancelled": 0, "completed": true, "audit_id": "5f0c6d0a-2c8f-4a4e-9a35-1a6c9d2e7b10", "stopped_at": "2026-04-12T00:43:04.628632+00:00" } ``` | Field | Meaning | | --- | --- | | `runs_cancelled` | Runs stopped: in progress, queued or waiting for a person, the runs they handed work to, and any run admitted while the stop was being applied | | `executions_cancelled` | Background executions released, so that no worker resumes them | | `sub_agent_tasks_cancelled` | Background tasks delegated to other agents | | `chat_turns_cancelled` | Chat answers being written that were asked to stop | | `flow_runs_cancelled` | Flow runs in progress | | `runner_commands_cancelled` | Commands for a computer not yet dispatched to it. One already dispatched cannot be called back, but it is never sent again | | `evaluation_runs_cancelled`, `autonomous_runs_cancelled` | Runs that belong to no user, such as the autonomous attack paths driven for OpenAEV. Scope `platform` only | | `assignments_paused` | Assignments whose schedules and triggers no longer fire | | `ai_disabled` | `true` when the stop switched AI off (scope `platform`) | | `late_admissions_cancelled` | Runs another server admitted while the stop was being applied, cancelled by the follow-up pass. Already counted in `runs_cancelled`, reported apart so you know a second wave happened | | `completed` | `false` when cancelling the running work failed after the assignments were paused (and AI switched off, for the platform). The follow-up passes cancelled what they reach, and the counts are what was really halted. Read the server log and press the stop again if work still runs | | `audit_id` | The log entry of this stop: pass it to record the reason | | `stopped_at` | When the stop took effect | Pressing the stop twice is safe: the second press finds nothing left to cancel and answers zeros. ## Record why {#record-why} The stop never waits for a reason. Once it has run, attach the reason to the entry it returned: ```bash curl -X POST https://xtm-one.grand-meridian.example/api/v1/panic/stop/5f0c6d0a-2c8f-4a4e-9a35-1a6c9d2e7b10/reason \ -H "Authorization: Bearer ${XTM_ONE_API_KEY}" \ -H "Content-Type: application/json" \ -d '{"reason": "Night shift triage creating Jira tickets in a loop"}' ``` ```json {"audit_id": "5f0c6d0a-2c8f-4a4e-9a35-1a6c9d2e7b10", "assignments_annotated": 12} ``` The reason, 1 to 2,000 characters, is written on the stop's log entry and on every assignment that stop paused, where the banner and the assignment's page show it. Only the user who pressed the stop may record it: anyone else gets `404`. A blank reason gets `422`. ## Lift the stop {#lift-the-stop} ```bash curl -X POST https://xtm-one.grand-meridian.example/api/v1/panic/resume \ -H "Authorization: Bearer ${XTM_ONE_API_KEY}" \ -H "Content-Type: application/json" \ -d '{"scope": "platform", "reason": "Triage loop fixed in the agent instructions"}' ``` | Field | Values | Meaning | | --- | --- | --- | | `scope` | `self` (default), `platform` | The same rules as the stop | | `reason` | Text, 1 to 2,000 characters, required | Recorded on the resume entry and on every assignment re-enabled | ```json {"scope": "platform", "assignments_resumed": 12, "ai_enabled": true} ``` Only the assignments the emergency stop paused are re-enabled; one paused by hand stays paused. For the scope `platform`, the AI switch goes back to what it was before the stop (on, off, or following the deployment default), and only if it still reads as the stop left it: a change made in the settings during the stop is kept. `ai_enabled` is the state that results: on a platform started with AI off, or where AI was off before the stop, it stays `false`. A `self` resume while a stop of the whole platform is in effect answers `409` with the code `platform_stop_active`: only an administrator lifting the platform stop resumes anything then. ## Read the state {#read-the-state} ```bash curl https://xtm-one.grand-meridian.example/api/v1/panic/status \ -H "Authorization: Bearer ${XTM_ONE_API_KEY}" ``` ```json { "self_paused_assignments": 0, "self_stop_active": false, "platform_paused_assignments": 12, "ai_disabled": true, "platform_stop_active": true, "active": true, "last_stop": { "at": "2026-04-12T00:43:04.628632+00:00", "by": "Hélène Marchetti", "scope": "platform", "reason": "Night shift triage creating Jira tickets in a loop" } } ``` | Field | Meaning | | --- | --- | | `self_paused_assignments` | The assignments of your scope a `self` resume would re-enable. One that another person's stop still covers, such as an assignment you own that runs as them, is not counted: it comes back once their stop is lifted too | | `self_stop_active` | Your own stop is in effect and still covers a paused assignment. Your resume stays available while it is `true`, even when it would re-enable nothing yet | | `platform_paused_assignments` | The assignments a `platform` resume would re-enable. `null` for a user who is not an administrator | | `ai_disabled` | AI is off because of a stop of the whole platform. AI switched off by hand in the settings is not reported here, and a resume does not touch it. `null` for a user who is not an administrator | | `platform_stop_active` | A stop of the whole platform is in effect. Visible to every user | | `active` | A stop is in effect for you: the platform's or your own | | `last_stop` | The latest stop that concerns you: when, who (their display name), the scope, and the reason (`null` until it is recorded) | The interface reads this route every 15 seconds to show the banner. ## Manage the emergency token {#manage-the-emergency-token} Administrators only. There is one token per platform. | Call | Answer | | --- | --- | | `GET /api/v1/panic/token` | `configured`, and when it is: `prefix` (`xes-` and its first 8 characters), `created_at`, `created_by` (an email address), `last_used_at` | | `POST /api/v1/panic/token` | Generates a token, or replaces the current one at once: `token` (`xes-` and 48 hexadecimal characters), returned this once, with `prefix`, `created_at` and `created_by`. Only a hash is stored: a lost token cannot be recovered, rotate it | | `DELETE /api/v1/panic/token` | Revokes it: `204`, or `404` when none exists | Generating, rotating and revoking are recorded in the logs. ## Stop without a session {#stop-without-a-session} The command the printed procedure carries: ```bash curl -X POST https://xtm-one.grand-meridian.example/api/v1/panic/emergency \ -H "Authorization: Bearer ${XTM_ONE_EMERGENCY_TOKEN}" \ -H "Content-Type: application/json" \ -d '{"reason": "Runbook step 3: agent looping on the ticket queue"}' ``` | Field | Meaning | | --- | --- | | `reason` | Optional, up to 2,000 characters: a runbook usually states the cause, a monitoring hook may not. Recorded on the stop's log entry and on the paused assignments when given | The answer is the one of `POST /api/v1/panic/stop`. The stop always covers the whole platform and is attributed to the administrator who generated the token. If that account is no longer an active administrator, it is attributed to the oldest active administrator; a valid token still works when no active administrator is left. The token's `last_used_at` is updated. A missing or wrong token gets `401`, and the attempt is recorded in the logs as a security event, filed under the administrator who owns the token. The token is refused by every other route. The route is limited per client address: 10 attempts per 600 seconds by default, counted before the token is checked, set by `PANIC_EMERGENCY_RATE_LIMIT` and `PANIC_EMERGENCY_RATE_WINDOW_SECONDS` (see the [XTM One configuration](https://filigran.io/docs/reference/xtm-one/configuration/#advanced-tuning)). Past the limit it answers `429` with a `Retry-After` header. If the limiter cannot be reached, it answers `503` rather than becoming unlimited. Neither refusal applies to a request carrying the prefix of the current token, so whoever spent the limit from the same address cannot lock the holder of the real token out. ## Errors {#errors} | Status | When | | --- | --- | | `401` | No credential or an invalid one; on `POST /api/v1/panic/emergency`, a missing or wrong emergency token | | `403` | Scope `platform`, or a token route, called by a user who is not an administrator | | `404` | Recording the reason of a stop that is not yours; revoking a token when none exists | | `409` | Re-enabling through `PUT /api/v1/assignments/{id}` an assignment the emergency stop paused (`code: "emergency_stop"`): lift the stop instead. A `self` resume while a stop of the whole platform is in effect (`code: "platform_stop_active"`) | | `422` | An unknown `scope`, or a missing or blank `reason` where one is required | | `429` | Too many attempts on `POST /api/v1/panic/emergency` from one address: wait for `Retry-After` | | `503` | The limiter of `POST /api/v1/panic/emergency` cannot be reached | ## What "at once" means {#what-at-once-means} The stop is two steps, in this order. First it closes the door: every assignment in scope is paused and, for the platform, AI is switched off, in a transaction of its own, so every server sees a paused assignment and refused AI from then on. Then it cancels what is live. A run inside a model or tool call notices within about two seconds; a chat answer being written, within one second. A scheduler on another server that read the previous state just before the door closed can still create one last run. A follow-up pass right after the stop cancels those and reports them in `late_admissions_cancelled`; a second pass a few seconds later, once no server can still believe AI is on, counts into the log entry only. For a `self` stop, that second pass cancels only the runs that existed before the stop, the runs of the assignments it paused and the runs started by a run it cancelled: what you start after your stop is yours. ## What's next {#what-s-next} - [Stop every agent at once](https://filigran.io/docs/xtm-one/administer/emergency-stop/): the interface, the printed procedure, what users see. - [Run XTM One with AI switched off](https://filigran.io/docs/xtm-one/administer/running-without-ai/) - [XTM One configuration](https://filigran.io/docs/reference/xtm-one/configuration/) --- # Filters > The filter group format that OpenCTI list queries, feeds, live streams, triggers and playbooks share, its operators and special keys, and the simpler format of the OpenAEV API. - URL: https://filigran.io/docs/develop/apis/filters/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0 - For: developers - Type: Reference A filter group selects objects by their attributes and relationships. In OpenCTI, the same structure filters a list in the GraphQL API, a dashboard widget, a CSV feed, a TAXII collection, a live stream, a trigger and a playbook; the filter menu of the interface builds it for you. This page describes the structure, how the operators behave, the special keys that follow relationships, and what changes when the filter runs on stream events. The [filter keys reference](https://filigran.io/docs/reference/opencti/filter-keys/) lists, for this version, every key, the entity types it applies to and the operators it accepts. Every request below was run on the demo data of OpenCTI 7.261030. ## Structure {#structure} A filter group has a `mode` and two lists, both required even when empty: `filters` and nested `filterGroups`. ```ts type FilterGroup = { mode: 'and' | 'or' // how the members of the group combine filters: Filter[] filterGroups: FilterGroup[] // nested groups, each with its own mode } type Filter = { key: string[] // one key; a plain string is accepted values: any[] // strings, except for the special keys below operator?: string // default: 'eq' mode?: 'and' | 'or' // how the values combine, default: 'or' } ``` - **The group `mode`** combines its filters and its nested groups: with `and`, every member must match; with `or`, one is enough. - **The filter `mode`** combines the values of one filter: with `eq` and `or`, the attribute equals one of the values; with `and`, it holds all of them. - **One key per filter.** `key` is a list for historical reasons. Give it one key: filters with several keys are reserved to internal cases. - **Values are strings**, numbers included: `["80"]` for a confidence above 80. A group missing `filterGroups` is refused before it runs: `Expected value of type "FilterGroup" to include required field "filterGroups"`. **Diagram: A filter group combines its filters and its nested groups with one mode, and each nested group has a mode of its own** - Filter group: mode: and (Every member must match) - Members: entity_type eq Report (Filter), createdBy eq Example CERT (Filter), mode: or (Nested group) - Nested members: confidence gt 80 (Filter), objectMarking nil (Filter) Connections: - mode: and → entity_type eq Report: filters - mode: and → createdBy eq Example CERT: filters - mode: and → mode: or: filterGroups - mode: or → confidence gt 80: filters - mode: or → objectMarking nil: filters **Example: Reports of Example CERT to review** The CTI lead of Example CERT wants the reports the team authored that are either highly confident or not marked yet. The condition is "type is Report, author is Example CERT, and (confidence above 80 or no marking)": ```json { "mode": "and", "filters": [ {"key": "entity_type", "values": ["Report"]}, {"key": "createdBy", "values": ["13a8c72c-08b2-4262-bfac-82ecd17bad4c"]} ], "filterGroups": [ { "mode": "or", "filters": [ {"key": "confidence", "values": ["80"], "operator": "gt"}, {"key": "objectMarking", "values": [], "operator": "nil"} ], "filterGroups": [] } ] } ``` Passed as the `filters` variable of `stixCoreObjects(first: 20, filters: $filters)`, it returns 11 reports, among them: ```json {"entity_type":"Report","representative":{"main":"Velvet Harbor infrastructure moves to new hosting"},"confidence":100,"objectMarking":[]} {"entity_type":"Report","representative":{"main":"Velvet Harbor targets hotel booking systems"},"confidence":60,"objectMarking":[]} ``` The second report has a confidence of 60 but no marking, so the nested `or` group keeps it. The reports of Example CERT marked TLP:GREEN with a confidence of 60 or 70 are left out. ## Where filters go {#where-filters-go} | Where | How the filter group is passed | | --- | --- | | List queries of the GraphQL API (`reports`, `indicators`, `stixCoreObjects`...) | The `filters` argument, of type `FilterGroup`. See [Query OpenCTI with GraphQL](https://filigran.io/docs/develop/apis/graphql/) | | Live streams, CSV feeds, TAXII collections, triggers, playbooks, dashboard widgets | Stored with the object, as a JSON string in its `filters` field | A stored filter is the same structure, serialized. The live stream of the demo that feeds a SIEM stores this, read from `streamCollections { edges { node { name filters } } }`: ```json {"name":"Hospitality indicators for the SIEM","filters":"{\"mode\":\"and\",\"filterGroups\":[],\"filters\":[{\"key\":[\"entity_type\"],\"values\":[\"Indicator\"],\"operator\":\"eq\",\"mode\":\"or\"},{\"key\":[\"objectLabel\"],\"values\":[\"8a316f32-14e5-49ab-a685-62f7718a1a2d\"],\"operator\":\"eq\",\"mode\":\"or\"},{\"key\":[\"x_opencti_score\"],\"values\":[\"60\"],\"operator\":\"gte\",\"mode\":\"or\"}]}"} ``` To create or change such an object through the API, send the filter group with `JSON.stringify` (or `json.dumps`) in the `filters` field of its input. The filters of a live stream, a trigger or a playbook run on events, not on the database: see [Filters on stream events](#filters-on-stream-events). ## Keys and values {#keys-and-values} The platform checks every key before it runs a query. A key that does not exist fails the query instead of returning an empty list, so a typo cannot pass for "no result": ```json {"errors":[{"message":"Incorrect filter keys not existing in any schema definition","path":["reports"],"extensions":{"code":"BAD_USER_INPUT_ERROR","data":{"http_status":400,"genre":"BUSINESS","keys":["object-label"]}}}],"data":{"reports":null}} ``` Values are checked less. Keys that point to other objects, such as `createdBy`, `objectMarking`, `objects` or `creator_id`, take the **internal ID** of those objects. A name or a STIX ID matches nothing, without an error: `createdBy` with `Example CERT`, or with the STIX ID `identity--ac6f7b3a-7aa5-558d-a1bd-4a4f52840f9e`, returns no report, while the internal ID `13a8c72c-08b2-4262-bfac-82ecd17bad4c` returns 13. Labels are the exception: `objectLabel` matches the label ID or its value, such as `hotel-sector`. Keys come in three kinds, all in the [filter keys reference](https://filigran.io/docs/reference/opencti/filter-keys/): - **Attributes**, such as `name`, `published`, `confidence`, `x_opencti_score`. - **Relationships stored on the object**, such as `objectLabel`, `objectMarking`, `createdBy`, `objects` (the content of a container). - **Special keys**, which the platform resolves into other filters: `regardingOf`, `dynamicRegardingOf`, `dynamicFrom`, `dynamicTo`, `ids` (any ID of the object), `alias` (`aliases` and `x_opencti_aliases` together), `computed_reliability` (the reliability of the object, or of its author when it has none), `sightedBy`, `workflow_id` and more. Some of them have their own value format, described in [Keys that follow relationships](#keys-that-follow-relationships). ## Operators {#operators} `eq` applies when `operator` is left out. The [filter keys reference](https://filigran.io/docs/reference/opencti/filter-keys/#operators) lists the 23 operators, their label in the filter menu, and the value types each one applies to. The rules that are easy to miss: | Operator | Rule | | --- | --- | | `eq`, `not_eq` | With several values, `mode` decides: `or` matches one of them, `and` all of them. `eq` with an empty `values` means "has no value", `not_eq` with an empty `values` "has a value" | | `nil`, `not_nil` | The key has no value, or has one. Send `"values": []` | | `only_eq_to`, `not_only_eq_to` | For keys with several values, such as labels: the object holds exactly the values given and no other. `objectLabel` `only_eq_to` `hotel-sector` keeps the reports whose only label is `hotel-sector` | | `gt`, `gte`, `lt`, `lte` | Numbers and dates. A date is an ISO 8601 date, such as `2025-12-01T00:00:00Z`, or a relative date, such as `now-1d` | | `within` | Exactly two values, the start and the end. Each is a relative date (`now`, `now-7d`, `now-1M/M`) or a full ISO 8601 date with milliseconds, as `2026-01-01T00:00:00.000Z`. Without the milliseconds, the query fails: `The values for filter with "within" operator are not valid` | | `contains`, `starts_with`, `ends_with` and their `not_` forms | Short texts. `contains` looks for the exact sequence of words given | | `search` | Full-text search on the words of the value, in any order. On the demo data, `name` `search` `booking hotel` returns 8 reports, `name` `contains` `hotel booking` returns 3 | | `has_changed`, `not_has_changed` | Only in filters that run on events: see [Filters on stream events](#filters-on-stream-events) | | `match`, `wildcard`, `script` | API only, for search engine queries. `script` is refused unless the platform allows script filters | The reports published in January 2026, with `within`: ```json {"mode":"and","filters":[{"key":"published","values":["2026-01-01T00:00:00.000Z","2026-01-31T23:59:59.999Z"],"operator":"within"}],"filterGroups":[]} ``` ```json {"data":{"reports":{"pageInfo":{"globalCount":4},"edges":[ {"node":{"name":"Night-time exports from a hotel booking platform","published":"2026-01-09T09:00:00.000Z"}}, {"node":{"name":"Velvet Harbor targets hotel booking systems","published":"2026-01-12T09:00:00.000Z"}}, {"node":{"name":"Velvet Harbor phishing kit mimics hotel booking confirmations","published":"2026-01-14T08:00:00.000Z"}}, {"node":{"name":"Velvet Harbor reuses guest Wi-Fi portal infrastructure","published":"2026-01-15T07:30:00.000Z"}}]}}} ``` ## Keys that follow relationships {#keys-that-follow-relationships} ### regardingOf {#regardingof} `regardingOf`, **In regards of** in the filter menu, keeps the objects that have a relationship of the given types with the given objects, whichever side they are on. Its `values` are two sub-filters, `id` and `relationship_type`; leave one out to accept any: ```json {"mode":"and","filters":[{"key":"regardingOf","values":[ {"key":"id","values":["cd92e87a-28a6-4817-81a1-b3305df36c8c"]}, {"key":"relationship_type","values":["uses"]}]}],"filterGroups":[]} ``` On `stixCoreObjects`, this returns the 9 objects Velvet Harbor uses: 5 attack patterns, such as `[T1566.001] Spearphishing Attachment`, the infrastructure `Velvet Harbor C2`, and the malware `HarborGate backdoor`, `Harbor Stealer` and `Velvet Loader`. `regardingOf` reads the IDs that each object stores of its related objects. For performance, some relationships are stored on one side only, and `regardingOf` misses them from the other side: | Relationship | Found from | Missed from | | --- | --- | --- | | `related-to` from an observable | The observable: the observables related to a malware | The other end: the objects related to an IP address | | `located-at` from an IPv4 or IPv6 address, or a city, to a country or a region | The address or the city | The country or the region | | `indicates` | The indicator: the indicators of Velvet Harbor (7 on the demo data) | The indicated object: the objects an indicator indicates (none found) | To list relationships of these kinds from the side that does not store them, query `stixCoreRelationships` with `fromId` or `toId` instead. The filter menu shows a warning icon on a **In regards of** filter whose values involve one of these cases. ### dynamicRegardingOf {#dynamicregardingof} `dynamicRegardingOf`, **In regards of (dynamic)** in the filter menu, does the same with the related objects chosen by a filter instead of by ID. Its `values` are a `relationship_type` sub-filter and a `dynamic` sub-filter that holds a filter group. The intrusion sets that target the hospitality sector: ```json {"mode":"and","filters":[ {"key":"entity_type","values":["Intrusion-Set"]}, {"key":"dynamicRegardingOf","values":[ {"key":"relationship_type","values":["targets"]}, {"key":"dynamic","values":[{"mode":"and","filters":[ {"key":"entity_type","values":["Sector"]}, {"key":"name","values":["Hospitality"]}],"filterGroups":[]}]}]}], "filterGroups":[]} ``` ```json {"data":{"stixCoreObjects":{"pageInfo":{"globalCount":1},"edges":[{"node":{"entity_type":"Intrusion-Set","representative":{"main":"Velvet Harbor"}}}]}}} ``` The platform first runs the `dynamic` filter, then applies `regardingOf` to the IDs it found. It keeps the first 5,000 of them (`elasticsearch:max_pagination_result`): with a broader `dynamic` filter, results can be missing, and the filter menu warns about it. ### dynamicFrom and dynamicTo {#dynamicfrom-and-dynamicto} On relationships, `dynamicFrom` and `dynamicTo` apply a filter group to the source or the target. Their `values` hold the filter group itself. The `uses` relationships whose source is a malware: ```json {"mode":"and","filters":[ {"key":"relationship_type","values":["uses"]}, {"key":"dynamicFrom","values":[{"mode":"and","filters":[{"key":"entity_type","values":["Malware"]}],"filterGroups":[]}]}], "filterGroups":[]} ``` ```json {"data":{"stixCoreRelationships":{"pageInfo":{"globalCount":2},"edges":[ {"node":{"relationship_type":"uses","from":{"representative":{"main":"Velvet Loader"}},"to":{"representative":{"main":"[T1059.001] PowerShell"}}}}, {"node":{"relationship_type":"uses","from":{"representative":{"main":"Harbor Stealer"}},"to":{"representative":{"main":"[T1071.001] Web Protocols"}}}}]}}} ``` ## Filters on stream events {#filters-on-stream-events} Live streams, triggers and playbooks do not query the database: they test each event against the filter, on the STIX object the event carries. Only these keys work there: `entity_type`, `ids`, `representative`, `description`, `confidence`, `createdBy`, `creator_id`, `objectLabel`, `objectMarking`, `objectAssignee`, `objectParticipant`, `objectAuthorized`, `objects`, `workflow_id`, `revoked`, `priority`, `severity`, `indicator_types`, `pattern`, `pattern_type`, `x_opencti_score`, `x_opencti_detection`, `x_opencti_main_observable_type`, `report_types`, `response_types`, `information_types`, `takedown_types`, `note_types`, `incident_type`, `x_opencti_cisa_kev`, `x_opencti_epss_score`, `x_opencti_epss_percentile`, `x_opencti_cvss_base_score`, `x_opencti_cvss_base_severity`, `x_opencti_ssvc_exploitation`, `x_opencti_ssvc_automatable`, `x_opencti_ssvc_technical_impact`, `pir_score`, `fromId`, `fromTypes`, `toId`, `toTypes`, `connectedToId`, `connectedToId_sideEvents`. Saving a live stream, a trigger or a playbook with another key fails with `Stix filtering is not compatible with the provided filter key`, and the error data lists the keys allowed. `regardingOf` and the dynamic keys do not work on events. *(OpenCTI 7.260811 and later)* On events, every key also accepts `has_changed` and `not_has_changed`, without values. On an update, `has_changed` matches when the event changed the key; on a creation, when the key has a value. For example, `x_opencti_score` `has_changed` keeps the updates that change the score of an indicator and leaves out a label added to it. ## OpenAEV filters {#openaev-filters} The search endpoints of the OpenAEV API, such as `POST /api/scenarios/search`, take a filter group in the `filterGroup` field of their body, beside the pagination: ```json { "page": 0, "size": 20, "textSearch": "", "filterGroup": { "mode": "and", "filters": [ {"key": "scenario_name", "operator": "contains", "mode": "or", "values": ["Velvet Harbor"]} ] } } ``` The OpenAEV format differs from the OpenCTI one: - **No nested groups.** A filter group has `mode` and `filters` only. - **`key` is a string.** - **The operators** are `eq`, `not_eq`, `contains`, `not_contains`, `starts_with`, `not_starts_with`, `gt`, `gte`, `lt`, `lte`, `empty` and `not_empty`. `empty` and `not_empty` take the place of `nil` and `not_nil`. - **`size`** is 1,000 at most. The keys are the attributes of the object the endpoint searches, such as `scenario_name` or `scenario_tags`. See [REST API](https://filigran.io/docs/develop/apis/rest/) for the endpoints. ## What's next {#what-s-next} - [Filter keys](https://filigran.io/docs/reference/opencti/filter-keys/): every key and operator of this version of OpenCTI. - [Query OpenCTI with GraphQL](https://filigran.io/docs/develop/apis/graphql/): pass filters to list queries. - [Data streaming](https://filigran.io/docs/develop/apis/streams/): how a live stream applies its filters to events. - [Share knowledge with your security tools](https://filigran.io/docs/opencti/use/share/feeds/): build feed and stream filters in the interface. --- # Query OpenCTI with GraphQL > Authenticate with an API token, then read and write OpenCTI knowledge with GraphQL queries and mutations, page through results and handle errors. - URL: https://filigran.io/docs/develop/apis/graphql/ - Products: OpenCTI 7.261119.0 - For: developers, platform engineers - Type: How-to guide Everything the OpenCTI interface does goes through one GraphQL API, at `/graphql`, and your scripts and integrations can use it the same way. This page takes you from an API token to working requests on the demo data: list the reports that mention the Velvet Harbor intrusion set, create an indicator, page through long results and read the errors the API returns. Every request and response below was run against OpenCTI 7.261030, with only the long parts trimmed. To choose between this API, the live streams and the feeds, read [APIs and integration options](https://filigran.io/docs/develop/apis/) first. ## Before you start {#before-you-start} - A user account whose role has the **Allow token usage** capability, under **API usage with authorization header**. Without it, the API refuses the token as if it were wrong. - The capabilities of the operations you call: **Access knowledge** to read, **Create / Update knowledge** to create and change, **Delete knowledge** to delete. The [GraphQL schema reference](https://filigran.io/docs/reference/opencti/graphql-schema/) gives the capability of every query and mutation. - `curl` and `jq` for the examples. Any HTTP client works: the API takes a JSON body over `POST`. A request sees only what its user sees: the markings, organizations and confidence level of the user apply to every query and mutation. For an integration, create a dedicated user: see [Create accounts for integrations](https://filigran.io/docs/opencti/administer/service-accounts/) explains, and use its token. ## Get an API token {#get-an-api-token} 1. Open your profile from the account icon at the top right of OpenCTI, then **Profile**. 2. In the **API access** card, click **Generate Token**. ![The API access card with the OpenCTI version, the Playground and Generate Token buttons, and a token list giving the name, the last four characters, the last use and the expiry date of each token.](https://filigran.io/docs/shots/22d430f8aeee487fab46401176026fe750e6a28979d9a0e69499598c6d34de97.webp) 3. In **Generate a new token**, enter a **Name** that says where the token is used, such as `hotel-feed-importer`. 4. Choose a **Duration**: **30 days**, **60 days**, **90 days**, **1 year** or **Unlimited**. After its duration, the API refuses the token. ![The Generate a new token panel with the Name field, the Duration list and the Generate button.](https://filigran.io/docs/shots/7ecdc9340cd1ad030027f5d751c23cc417a7d3f6755f5c8eca69d319944b266e.webp) 5. Click **Generate**, then copy the token from **Token details**. OpenCTI keeps only a fingerprint of it: once the panel is closed, nobody can read it again. A token starts with `flgrn_octi_tkn_`. To follow its last use, revoke it or renew it, see [Create and manage API tokens](https://filigran.io/docs/opencti/use/profile/#create-and-manage-api-tokens). For a service account, an administrator generates the token from its user account: see [API tokens](https://filigran.io/docs/opencti/administer/users/#api-tokens). Keep the token in a secret store, and pass it to your scripts in an environment variable. The examples below read it from `OPENCTI_TOKEN` and the platform address from `OPENCTI_URL`. In a shell, `read -rs` reads the token without showing it or writing it in the history: ```bash export OPENCTI_URL=https://opencti.example.com read -rs OPENCTI_TOKEN && export OPENCTI_TOKEN ``` ## Send a first request {#send-a-first-request} A GraphQL request is a `POST` to `/graphql` with a JSON body: `query` holds the operation, `variables` its arguments. The token goes in the `Authorization` header with the `Bearer` scheme. ```bash curl -s "$OPENCTI_URL/graphql" \ -H "Authorization: Bearer $OPENCTI_TOKEN" \ -H "Content-Type: application/json" \ -d '{"query": "{ about { version } me { name user_email } }"}' ``` **Check that it worked: The platform answers with its version and your user** ```json {"data":{"about":{"version":"7.261030.1"},"me":{"name":"admin","user_email":"docs-admin@example.com"}}} ``` The API accepts only `POST`. A `GET` answers `405` with `{"name":"MethodNotAllowedError","message":"Method Not Allowed. Use POST for GraphQL requests."}`. Other ways to authenticate exist for other cases: | Credential | Header | When | | --- | --- | --- | | API token | `Authorization: Bearer` followed by the token | Scripts, connectors, integrations. Needs **Allow token usage** | | Login and password | `Authorization: Basic` followed by `login:password` in Base64 | Tools that only speak basic authentication. Needs **Allow basic auth usage**. An account that logs in through single sign-on has no local password | | Browser session | The session cookie of the interface | The playground, and GraphQL subscriptions over WebSocket on `/graphql` | ## Query the reports on Velvet Harbor {#query-the-reports-on-velvet-harbor} Most entity types have a list query named after the type in the plural (`reports`, `indicators`, `intrusionSets`) and a single-item query (`report`, `indicator`, `intrusionSet`). Lists are connections: the items are in `edges[].node`, and `pageInfo` describes the page. 1. Find the internal ID of the intrusion set. `search` matches close names too, so read the names that come back: ```bash curl -s "$OPENCTI_URL/graphql" \ -H "Authorization: Bearer $OPENCTI_TOKEN" -H "Content-Type: application/json" \ -d '{"query": "{ intrusionSets(search: \"Velvet Harbor\", first: 5) { edges { node { id standard_id name } } } }"}' ``` ```json {"data":{"intrusionSets":{"edges":[ {"node":{"id":"cd92e87a-28a6-4817-81a1-b3305df36c8c","standard_id":"intrusion-set--4e78bb64-59c9-51e3-b1b9-ac8133e1c8e0","name":"Velvet Harbor"}}, {"node":{"id":"1dfb9b04-ac79-45a9-baba-68777009378f","standard_id":"intrusion-set--0dc7beb8-23f1-5220-ae5b-6d520f761ade","name":"Velvet Harbor Group"}}, {"node":{"id":"a4763e42-83a3-4dca-9b8d-7870c0bdae3d","standard_id":"intrusion-set--f4c1499d-23a6-5c75-94d5-dd19b39bf509","name":"Velvet Harbour"}}]}}} ``` `id` is the internal ID of OpenCTI; `standard_id` is the STIX ID, computed from the properties that identify the object, so it is the same on every platform. The `id` argument of a single-object query, such as `intrusionSet(id:)`, accepts either. Filter values take the internal ID. 2. List the reports that contain it, newest first. The `objects` filter key matches containers by the objects they hold; [Filters](https://filigran.io/docs/develop/apis/filters/) explains the syntax. ```bash cat > reports-on-velvet-harbor.json <<'EOF' { "query": "query ReportsOnVelvetHarbor($filters: FilterGroup, $first: Int, $after: ID) { reports(filters: $filters, first: $first, after: $after, orderBy: published, orderMode: desc) { pageInfo { hasNextPage endCursor globalCount } edges { node { id name published report_types confidence createdBy { name } objectMarking { definition } } } } }", "variables": { "first": 2, "filters": {"mode": "and", "filters": [{"key": "objects", "values": ["cd92e87a-28a6-4817-81a1-b3305df36c8c"]}], "filterGroups": []} } } EOF curl -s "$OPENCTI_URL/graphql" \ -H "Authorization: Bearer $OPENCTI_TOKEN" -H "Content-Type: application/json" \ -d @reports-on-velvet-harbor.json | jq ``` ```json { "data": { "reports": { "pageInfo": { "hasNextPage": true, "endCursor": "WzE3NjgzNzc2MDAwMDAsInJlcG9ydC0tMzdhNmEyOTEtYjhjYi01YTAxLThiMTgtNzc3Y2ZhYzgxMWI1Il0=", "globalCount": 10 }, "edges": [ {"node": {"id": "abe88acd-916d-49ba-a01c-3e564ba5e10f", "name": "Velvet Harbor reuses guest Wi-Fi portal infrastructure", "published": "2026-01-15T07:30:00.000Z", "report_types": ["threat-report"], "confidence": 60, "createdBy": {"name": "Example CERT"}, "objectMarking": [{"definition": "TLP:GREEN"}]}}, {"node": {"id": "0156c67a-c04b-4a9c-a9a2-86b5e5e1aea5", "name": "Velvet Harbor phishing kit mimics hotel booking confirmations", "published": "2026-01-14T08:00:00.000Z", "report_types": ["threat-report"], "confidence": 70, "createdBy": {"name": "Example CERT"}, "objectMarking": [{"definition": "TLP:GREEN"}]}} ] } } } ``` The list queries share these arguments: | Argument | Effect | | --- | --- | | `first` | Number of items in the page. Without it, a page holds 500 items (`elasticsearch:default_pagination_result`). A larger value than 5,000 is silently cut to 5,000 (`elasticsearch:max_pagination_result`) | | `after` | The `endCursor` of the previous page | | `orderBy`, `orderMode` | Sort field, from the ordering enumeration of the type (`ReportsOrdering` for reports), and `asc` or `desc` | | `search` | Full-text search on the main text fields | | `filters` | A filter group, described in [Filters](https://filigran.io/docs/develop/apis/filters/) | Ask only for the fields you use: nested fields, such as `createdBy` or `objectMarking`, load other objects. To get an object as STIX 2.1, ask for its `toStix` field, a JSON string. The [GraphQL schema reference](https://filigran.io/docs/reference/opencti/graphql-schema/) lists the fields of every type. To generate a typed client, download the schema in Schema Definition Language (SDL) from `/schema`, which any authenticated user can read: ```bash curl -s "$OPENCTI_URL/schema" -H "Authorization: Bearer $OPENCTI_TOKEN" | jq -r .schema > opencti.graphql ``` ## Page through long results {#page-through-long-results} Pass the `endCursor` of a page as `after` to get the next one, until `hasNextPage` is `false`. `globalCount` gives the total number of matches from the first page. This loop prints every report on Velvet Harbor, two per page: ```bash QUERY='query ReportsOnVelvetHarbor($filters: FilterGroup, $first: Int, $after: ID) { reports(filters: $filters, first: $first, after: $after, orderBy: published, orderMode: desc) { pageInfo { hasNextPage endCursor globalCount } edges { node { name published } } } }' VELVET_HARBOR_ID=cd92e87a-28a6-4817-81a1-b3305df36c8c AFTER=null while : ; do BODY=$(jq -n --arg q "$QUERY" --arg id "$VELVET_HARBOR_ID" --argjson after "$AFTER" \ '{query: $q, variables: {first: 2, after: $after, filters: {mode: "and", filters: [{key: "objects", values: [$id]}], filterGroups: []}}}') PAGE=$(curl -s "$OPENCTI_URL/graphql" \ -H "Authorization: Bearer $OPENCTI_TOKEN" -H "Content-Type: application/json" -d "$BODY") echo "$PAGE" | jq -r '.data.reports.edges[].node | "\(.published[:10]) \(.name)"' [ "$(echo "$PAGE" | jq '.data.reports.pageInfo.hasNextPage')" = "true" ] || break AFTER=$(echo "$PAGE" | jq '.data.reports.pageInfo.endCursor') done ``` ```text 2026-01-15 Velvet Harbor reuses guest Wi-Fi portal infrastructure 2026-01-14 Velvet Harbor phishing kit mimics hotel booking confirmations 2026-01-12 Velvet Harbor targets hotel booking systems 2026-01-09 Night-time exports from a hotel booking platform 2025-12-23 Velvet Harbor infrastructure moves to new hosting 2025-12-16 Look-alike booking domains registered in bulk 2025-12-02 Edge gateways exploited before the holiday season 2025-11-25 HarborGate backdoor on booking servers 2025-10-28 Velvet Loader delivered through booking attachments 2025-10-21 Fake booking requests reach hotel front desks ``` Keep the same `orderBy` and `filters` on every page: the cursor holds the sort values of the last item, and only means something for the same query. To follow changes over time rather than read a full list, listen to a [live stream](https://filigran.io/docs/develop/apis/streams/) instead of polling. ## Create an indicator {#create-an-indicator} Mutations take an `input` object. Relationships to other objects, such as the author, the markings and the labels, take the IDs of those objects. **Example: Record a Velvet Harbor phishing domain** The CTI team at Example CERT finds `guest-wifi-velvet.example`, a look-alike guest Wi-Fi portal that Velvet Harbor uses against hotels. A script records it as an indicator, authored by Example CERT, marked TLP:GREEN and labelled `hotel-sector`, so that the SIEM live stream of the SOC picks it up. First, the script reads the IDs it needs: ```bash curl -s "$OPENCTI_URL/graphql" \ -H "Authorization: Bearer $OPENCTI_TOKEN" -H "Content-Type: application/json" \ -d '{"query": "{ labels(search: \"hotel-sector\") { edges { node { id value } } } identities(search: \"Example CERT\", first: 1) { edges { node { id name } } } markingDefinitions(search: \"TLP:GREEN\") { edges { node { id definition } } } }"}' ``` ```json {"data":{"labels":{"edges":[{"node":{"id":"8a316f32-14e5-49ab-a685-62f7718a1a2d","value":"hotel-sector"}}]},"identities":{"edges":[{"node":{"id":"13a8c72c-08b2-4262-bfac-82ecd17bad4c","name":"Example CERT"}}]},"markingDefinitions":{"edges":[{"node":{"id":"50e381ba-e609-449b-a2ed-c69881cd28d2","definition":"TLP:GREEN"}}]}}} ``` Then it sends the mutation, with the IDs it read: ```bash cat > create-indicator.json <<'EOF' { "query": "mutation CreateIndicator($input: IndicatorAddInput!) { indicatorAdd(input: $input) { id standard_id name pattern x_opencti_score valid_from valid_until objectLabel { value } createdBy { name } objectMarking { definition } } }", "variables": { "input": { "name": "guest-wifi-velvet.example", "description": "Look-alike guest Wi-Fi portal used by Velvet Harbor.", "pattern": "[domain-name:value = 'guest-wifi-velvet.example']", "pattern_type": "stix", "x_opencti_main_observable_type": "Domain-Name", "x_opencti_score": 75, "createdBy": "13a8c72c-08b2-4262-bfac-82ecd17bad4c", "objectMarking": ["50e381ba-e609-449b-a2ed-c69881cd28d2"], "objectLabel": ["8a316f32-14e5-49ab-a685-62f7718a1a2d"] } } } EOF curl -s "$OPENCTI_URL/graphql" \ -H "Authorization: Bearer $OPENCTI_TOKEN" -H "Content-Type: application/json" \ -d @create-indicator.json | jq ``` ```json { "data": { "indicatorAdd": { "id": "3ed349ba-f227-4fb2-8203-e9683b328a9d", "standard_id": "indicator--a6b80844-c4b6-5dc7-aee8-3a0af2933801", "name": "guest-wifi-velvet.example", "pattern": "[domain-name:value = 'guest-wifi-velvet.example']", "x_opencti_score": 75, "valid_from": "2026-11-01T22:45:58.340Z", "valid_until": "2027-04-07T08:31:02.884Z", "objectLabel": [{"value": "hotel-sector"}], "createdBy": {"name": "Example CERT"}, "objectMarking": [{"definition": "TLP:GREEN"}] } } } ``` The script did not send `valid_from` nor `valid_until`: OpenCTI set them, the end of validity from the decay rule that applies to the indicator. The indicator matches the filters of the SIEM stream, so its consumers receive it within seconds. Creation is idempotent on the STIX ID. The STIX ID of an indicator is computed from its pattern: sending the same pattern again updates the existing indicator, with the same `id`, instead of creating a second one. The values the second call sends, such as a new `x_opencti_score`, replace the stored ones as far as the confidence level of the user allows. To change fields of an existing object, send the field name and its new values: ```bash curl -s "$OPENCTI_URL/graphql" \ -H "Authorization: Bearer $OPENCTI_TOKEN" -H "Content-Type: application/json" \ -d '{"query": "mutation UpdateIndicator($id: ID!, $input: [EditInput!]!) { indicatorFieldPatch(id: $id, input: $input) { id x_opencti_score } }", "variables": {"id": "3ed349ba-f227-4fb2-8203-e9683b328a9d", "input": [{"key": "x_opencti_score", "value": ["65"]}]}}' ``` ```json {"data":{"indicatorFieldPatch":{"id":"3ed349ba-f227-4fb2-8203-e9683b328a9d","x_opencti_score":65}}} ``` `value` is always a list, even for a single value. `operation` is `replace` when you leave it out; `add` and `remove` change multiple-value fields. `indicatorDelete(id:)` deletes the indicator: with the trash turned on, the default, it goes to the trash, from which an administrator can restore it. Some request headers change how a mutation runs: | Header | Effect | | --- | --- | | `opencti-draft-id` | Runs the request inside this draft workspace instead of the live knowledge base. See [Prepare changes in a draft](https://filigran.io/docs/opencti/use/ingest/drafts/) | | `opencti-applicant-id` | Recorded in the origin of the change, as the user the request acts for. Connectors and playbooks set it | ## Read the errors {#read-the-errors} The API answers HTTP `200` even when a request fails. Read the `errors` array of the body: `message` says what happened, `extensions.code` gives the error type, and `extensions.data` the details, with the HTTP status the error stands for in `http_status`. When the failure is in one field, `data` holds `null` for that field and the rest of the answer is still there. Without a valid token: ```json {"errors":[{"message":"You must be logged in to do this.","locations":[{"line":1,"column":3}],"path":["reports"],"extensions":{"code":"AUTH_REQUIRED","data":{"http_status":401,"genre":"TECHNICAL"}},"name":"AUTH_REQUIRED"}],"data":{"reports":null}} ``` With a filter key that does not exist, `object-label` instead of `objectLabel`: ```json {"errors":[{"message":"Incorrect filter keys not existing in any schema definition","locations":[{"line":1,"column":3}],"path":["reports"],"extensions":{"code":"BAD_USER_INPUT_ERROR","data":{"http_status":400,"genre":"BUSINESS","keys":["object-label"]}},"name":"BAD_USER_INPUT_ERROR"}],"data":{"reports":null}} ``` The errors you meet first: | `extensions.code` | Cause | What to do | | --- | --- | --- | | `AUTH_REQUIRED` | No token, a wrong or expired token, or a user without **Allow token usage** | Check the header, the expiry of the token, and the role of its user | | `FORBIDDEN_ACCESS` | The user lacks the capability of the operation, or cannot access the object | Give the user a role with the capability, or check the markings of the object | | `GRAPHQL_VALIDATION_FAILED` | The query does not match the schema, such as `Cannot query field "title" on type "Report"`, or calls one query too many times through aliases | Check the field names in the schema reference. A request can call the same query twice and the same mutation once (`app:graphql:batching_protection:query_default`, `app:graphql:batching_protection:mutation_default`) | | `BAD_USER_INPUT_ERROR` | An argument is wrong, such as an unknown filter key, listed in `extensions.data.keys` | Fix the key, using the [filter keys reference](https://filigran.io/docs/reference/opencti/filter-keys/) | | `VALIDATION_ERROR` | A value breaks a rule, such as `The score should be an integer between 0 and 100`; `extensions.data.field` names the field | Fix the value | | `RESOURCE_NOT_FOUND` | An introspection query while introspection is turned off: `GraphQL introspection not authorized!`. Up to 7.260811, a query with `__schema`; from 7.261109.0, `__type` too, such as `__type(name: "Connector")` to test whether a field exists | Read the schema from `/schema` or from the schema reference, or decide from the version (`about { version }`) | The platform also limits each client, by address and user agent, to 10,000 requests a second by default (`app:rate_protection:max_requests`, `app:rate_protection:time_window`). Beyond it, the answer is HTTP `429` with `{"message":"Too many requests, please try again later."}`. The [errors reference](https://filigran.io/docs/reference/opencti/errors/#common-errors-and-what-to-do) lists every message and what to do. *(OpenCTI 7.261119 and later)* A platform with the [secure HTTP defaults](https://filigran.io/docs/deploy/operate/harden/#secure-http-defaults) on allows 30,000 requests per 60 seconds instead, unless its platform engineer sets these two keys. It also refuses a request body over 10 MB unless `app:max_payload_body_size` is set: split a large STIX bundle sent to `stixBundlePush` into smaller ones. ## Use the playground {#use-the-playground} The playground is a GraphiQL editor at `/public/graphql`, also opened by **Playground** in the **API access** card of your profile. It sends requests with the session of your browser, so it runs with your own rights; to try another user's token, add an `Authorization` header in its **Headers** panel. It opens with two example operations, one of them with a filter in its variables. Two settings of the platform decide what the playground can do. A platform engineer sets them in the configuration, as [Configuration](https://filigran.io/docs/reference/opencti/configuration/#technical-customization) describes: | Key | Environment variable | Default | Effect | | --- | --- | --- | --- | | `app:graphql:playground:enabled` | `APP__GRAPHQL__PLAYGROUND__ENABLED` | `true` | Serves the playground and shows its button in the profile | | `app:graphql:playground:force_disabled_introspection` | `APP__GRAPHQL__PLAYGROUND__FORCE_DISABLED_INTROSPECTION` | `true` | Refuses introspection queries. The documentation explorer and the autocompletion of the playground need introspection, so they stay empty while it is `true` | *(OpenCTI 7.261109 and later)* When `app:graphql:playground:enabled` is not set, it follows `app:graphql:secure_by_default` (`APP__GRAPHQL__SECURE_BY_DEFAULT`): a platform that turns the secure GraphQL defaults on serves no playground unless the platform engineer sets `APP__GRAPHQL__PLAYGROUND__ENABLED=true`. The same setting makes the WebSocket endpoint accept subscriptions only: send your queries and mutations over HTTP. See [Secure GraphQL defaults](https://filigran.io/docs/deploy/operate/harden/#secure-graphql-defaults). To browse the schema in the playground on a development platform, turn introspection on for authenticated users: ```bash APP__GRAPHQL__PLAYGROUND__FORCE_DISABLED_INTROSPECTION=false ``` On a production platform, leave it refused and read the schema from `/schema` or from the [GraphQL schema reference](https://filigran.io/docs/reference/opencti/graphql-schema/). [Harden the deployment](https://filigran.io/docs/deploy/operate/harden/#graphql-playground) discusses turning the playground off. ## What's next {#what-s-next} - [Filters](https://filigran.io/docs/develop/apis/filters/): the filter group syntax every list query, feed and stream uses. - [Data streaming](https://filigran.io/docs/develop/apis/streams/): receive changes as they happen instead of polling. - [Python client](https://filigran.io/docs/develop/build/python-client/): the same API from Python, with helpers for each entity type. - [GraphQL schema](https://filigran.io/docs/reference/opencti/graphql-schema/) and [Errors](https://filigran.io/docs/reference/opencti/errors/): every operation, field, capability and error message of this version. --- # MCP servers > The Model Context Protocol servers XTM One exposes for OpenCTI, OpenAEV, OpenCRQ and itself, their endpoints, protocol versions, authentication, answers and every tool they offer. - URL: https://filigran.io/docs/develop/apis/mcp/ - Products: XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0 - For: developers, AI agent builders - Type: Reference The modules of the XTM platform reach Model Context Protocol (MCP) clients through XTM One. XTM One serves one MCP server per registered module, OpenCTI, OpenAEV and OpenCRQ, and its own servers for its agents and its configuration. A client such as Claude, Cursor, VS Code or an agent you write calls their tools with the identity of a user, and each module applies that user's rights. This page is the reference of these servers in XTM One 1.261119: endpoints, protocol, authentication, answers and tools. To connect a client step by step, see [Use XTM One's own MCP servers from other clients](https://filigran.io/docs/xtm-one/build/platform-mcp-servers/). **Diagram: An MCP client calls the MCP servers of XTM One, which call OpenCTI, OpenAEV and OpenCRQ as the signed-in user** - MCP clients: MCP client (Claude, Cursor, VS Code) - XTM One: Platform servers (/mcp/opencti, /mcp/openaev, /mcp/opencrq), XTM One servers (/mcp/xtm, /mcp/user) - The modules: OpenCTI (GraphQL API), OpenAEV (REST API), OpenCRQ (API) Connections: - MCP client → Platform servers: JSON-RPC over HTTP - MCP client → XTM One servers: JSON-RPC over HTTP - Platform servers → OpenCTI: as the user - Platform servers → OpenAEV: as the user - Platform servers → OpenCRQ: as the user ## Endpoints {#endpoints} Every endpoint is on the address of XTM One, such as `https://xtm-one.example.com/mcp/opencti`. | Endpoint | Server name | What its tools reach | Available when | Edition | | --- | --- | --- | --- | --- | | `/mcp/opencti` | OpenCTI (via XTM One) | OpenCTI knowledge: entities, observables, indicators, relationships, containers, notes, labels, markings | An OpenCTI is registered with XTM One | Community | | `/mcp/openaev` | OpenAEV (via XTM One) | OpenAEV scenarios, simulations, injects, payloads, atomic tests, expectations, findings, assets, content | An OpenAEV is registered | Community | | `/mcp/opencrq` | OpenCRQ (via XTM One) | OpenCRQ frameworks, controls, assessments, risk scenarios, prices, assets, findings, threats, treatment plans | An OpenCRQ is registered | Community | | `/mcp/user` | | The agents the user selected in their profile, or every agent they can see; one tool per agent | AI is on | Enterprise | | `/mcp/global` | | The agents an administrator exposes in **Administration > Settings > Integrations > MCP Endpoint**; one tool per agent | AI is on | Enterprise | | `/mcp/xtm` | | XTM One itself: agents, assignments, runs and their traces, knowledge bases, prompts, skills, custom tools, integrations, MCP servers, variables | An administrator turns it on | Enterprise | The server name carries the platform name of your branding in place of XTM One. The three module servers, the platform MCP servers, call the APIs of the modules and no language model. A module registered under its former identifier, `openbas` for OpenAEV or `opengrc` for OpenCRQ, is served at `/mcp/openaev` and `/mcp/opencrq` all the same. An administrator turns the platform MCP servers off with **Platform MCP Servers**, and `/mcp/xtm` on with **Platform Tools MCP Server**, in **Administration > Settings > Integrations > MCP Endpoint**. With AI switched off, every endpoint refuses. ![The Platform MCP Servers card of the MCP Endpoint tab of a profile, 3 connected: OpenCTI with 28 tools and OpenAEV with 52, each with its address under /mcp/, a copy button and Config.](https://filigran.io/docs/shots/ad158784332678f091649ea8263fe26205b7b9b2d1174f64d7a20a32536a1653.webp) ## Protocol {#protocol} | Item | Value | | --- | --- | | Transport | Streamable HTTP: JSON-RPC 2.0 over `POST`, answered in JSON. No session, no change notifications, no stdio: `GET` and `DELETE` answer `405` | | Protocol versions | `2026-07-28`, without handshake; `2025-11-25`, `2025-06-18` and `2025-03-26`, negotiated by `initialize`. A request without `MCP-Protocol-Version` is read as `2025-03-26` | | Methods | `tools/list` and `tools/call`; `initialize` and `ping` up to `2025-11-25`; `server/discover` and `subscriptions/listen` in `2026-07-28` | | Batches | Accepted for a request in `2025-03-26` only | | Tool annotations | Reads are marked read-only, writes that only add are marked not destructive, writes that change or remove are marked destructive | A call to a tool the server does not list is a JSON-RPC error `-32602`, `Unknown tool`. A tool that runs and fails answers a result with `isError` set and a message the model can read. ## Authentication {#authentication} | Credential | Header | Endpoints | | --- | --- | --- | | A personal API key, `fcp-...`, created in **My Profile** > **API Keys** with the **MCP endpoints** surface | `Authorization: Bearer fcp-...` | All but `/mcp/global` | | An OAuth 2.1 access token, issued to a client the user approves in XTM One | `Authorization: Bearer` followed by the token | All, each token bound to one endpoint | | The platform MCP key, `mcp-...`, set by an administrator | `Authorization: Bearer mcp-...` | `/mcp/global` | A request without a valid credential answers `401` with a `WWW-Authenticate` header that points to the protected resource metadata (RFC 9728), from which an OAuth client finds the sign-in by itself. A module server never holds a token of the module. For each call, XTM One signs a short-lived token for the user, matched by email in OpenCTI and OpenAEV. OpenCRQ matches it to the account tied to the user's XTM One account (the token's `sub`), never to an email address. The module applies that account's capabilities, markings and audit trail. Changes made through `/mcp/opencti` go straight to the knowledge, not to a draft. | API key setting | Effect on the MCP servers | | --- | --- | | **Read-only** | `initialize`, `tools/list`, and `tools/call` on the tools marked read below. On `/mcp/user`, every tool runs an agent, so a read-only key calls none | | **Limit to specific agents** | The key reaches the `/mcp/user` tools of those agents only; the module servers and `/mcp/xtm` refuse it | A web page is accepted only from the address of XTM One or an origin of `CORS_ORIGINS`. Desktop, command-line and hosted clients send no `Origin` and are not concerned. ## Answers {#answers} | Code | Meaning | | --- | --- | | `202` | A notification or a client response, with nothing to answer | | `400` | A malformed request, an unsupported protocol version, or a batch outside `2025-03-26` | | `401` | No key, or an invalid, expired or revoked one | | `403` | AI is switched off, the server is turned off, the key does not cover the endpoint, the edition does not include it, or a web origin is not allowed. The `detail` says which | | `404` | The module of the endpoint is not registered with XTM One | | `429` | The key or its user reached a rate limit or a quota | ## Tools of the OpenCTI server {#tools-of-the-opencti-server} The sections below group the tools of each server. The [MCP tools reference](https://filigran.io/docs/reference/xtm-one/mcp-tools/) lists each one with what it does. The 28 tools of `/mcp/opencti`. Platform administration is never exposed: no users, groups, roles, playbooks, dashboards, notifications, ingestion, data sharing or connector settings. | Group | Tools | Read-only key | | --- | --- | --- | | Read and search | `search_opencti`, `get_opencti_entity`, `get_opencti_relationship`, `list_opencti_entities`, `list_opencti_observables`, `list_opencti_relationships`, `get_opencti_container_full`, `get_opencti_entity_stats`, `get_opencti_top_related`, `get_opencti_entity_history`, `validate_nlq_filter` | Yes | | Create | `create_opencti_entity`, `create_opencti_relationship`, `create_opencti_observable`, `create_opencti_indicator`, `create_opencti_container`, `create_opencti_note` | No | | Update and delete | `update_opencti_field`, `update_opencti_relationship_field`, `delete_opencti_entity`, `delete_opencti_relationship` | No | | Labels, markings and containers | `add_opencti_label`, `remove_opencti_label`, `add_opencti_marking`, `remove_opencti_marking`, `add_opencti_to_container`, `remove_opencti_from_container` | No | | Observables | `promote_opencti_observable` | No | ## Tools of the OpenAEV server {#tools-of-the-openaev-server} The 50 tools of `/mcp/openaev`. People and group management, taxonomy changes and platform administration stay out. The `manage_*` tools take an action that reads or writes, so a read-only key calls none of them. | Group | Tools | Read-only key | | --- | --- | --- | | Read and search | `search_openaev_assets`, `get_openaev_asset`, `search_openaev_asset_groups`, `get_openaev_asset_group`, `search_openaev_teams`, `get_openaev_team`, `search_openaev_players`, `search_openaev_attack_patterns`, `get_openaev_attack_pattern`, `search_openaev_scenarios`, `get_openaev_scenario`, `search_openaev_exercises`, `get_openaev_exercise`, `search_openaev_payloads`, `get_openaev_payload`, `search_openaev_injector_contracts`, `get_openaev_injector_contract`, `search_openaev_findings`, `get_openaev_vulnerability`, `full_text_search_openaev`, `list_openaev_kill_chain_phases`, `list_openaev_tags`, `list_openaev_domains` | Yes | | Analytics | `query_openaev_analytics` | Yes | | Create and change | `create_openaev_scenario`, `update_openaev_scenario`, `delete_openaev_scenario`, `create_openaev_payload`, `add_openaev_inject_to_scenario`, `create_openaev_atomic_testing` | No | | Manage by domain | `manage_openaev_simulation`, `manage_openaev_scenario`, `manage_openaev_inject`, `manage_openaev_expectation`, `manage_openaev_atomic_testing`, `manage_openaev_payload`, `manage_openaev_threat_arsenal`, `manage_openaev_finding`, `manage_openaev_vulnerability`, `manage_openaev_asset`, `manage_openaev_asset_group`, `manage_openaev_document`, `manage_openaev_channel`, `manage_openaev_article`, `manage_openaev_challenge`, `manage_openaev_lessons`, `manage_openaev_reporting`, `manage_openaev_phishing`, `manage_openaev_dashboard`, `manage_openaev_variable` | No | `manage_openaev_phishing` covers landing pages and email templates; OpenAEV checks the phishing capabilities of the user on each call. ## Tools of the OpenCRQ server {#tools-of-the-opencrq-server} The 85 tools of `/mcp/opencrq`. Tenant and user administration, service accounts, engine settings and connectors stay out. | Group | Tools | Read-only key | | --- | --- | --- | | Tenancy and frameworks | `list_opencrq_tenants`, `list_opencrq_organizations`, `list_opencrq_frameworks`, `get_opencrq_framework`, `list_opencrq_framework_requirements`, `list_opencrq_drata_controls` | Yes | | Controls, read | `list_opencrq_control_capabilities`, `get_opencrq_control_capability`, `get_opencrq_control_capability_history` | Yes | | Controls, write | `update_opencrq_control_capability_assessment`, `manage_opencrq_scope_control_posture`, `manage_opencrq_capability_techniques` | No | | Assessments, read | `list_opencrq_compliance_assessments`, `get_opencrq_compliance_assessment` | Yes | | Assessments, write | `create_opencrq_compliance_assessment`, `manage_opencrq_compliance_assessment`, `update_opencrq_requirement_answer` | No | | Risk, read | `list_opencrq_risk_scenarios`, `get_opencrq_risk_scenario`, `get_opencrq_scenario_exposure`, `list_opencrq_attack_outcomes`, `get_opencrq_attack_outcome` | Yes | | Risk, write | `create_opencrq_risk_scenario`, `update_opencrq_risk_scenario`, `delete_opencrq_risk_scenarios`, `update_opencrq_risk_tolerance` | No | | Quantification, read | `get_opencrq_financial_summary`, `get_opencrq_crq_run`, `list_opencrq_crq_run_history`, `get_opencrq_crq_what_if`, `get_opencrq_tef_input`, `list_opencrq_loss_drivers`, `get_opencrq_loss_driver`, `get_opencrq_financial_profile` | Yes | | Quantification, write | `run_opencrq_crq_simulation`, `update_opencrq_tef_input`, `update_opencrq_loss_estimates`, `update_opencrq_financial_profile` | No | | Assets and CVEs, read | `list_opencrq_primary_assets`, `list_opencrq_business_value_categories`, `list_opencrq_supporting_assets`, `get_opencrq_supporting_asset`, `list_opencrq_asset_dependencies`, `get_opencrq_evidence`, `list_opencrq_cve_evidences`, `list_opencrq_unique_findings`, `search_opencrq_cves`, `list_opencrq_cves`, `get_opencrq_cve` | Yes | | Assets and CVEs, write | `create_opencrq_primary_asset`, `update_opencrq_primary_asset`, `delete_opencrq_primary_assets`, `create_opencrq_supporting_asset`, `update_opencrq_supporting_asset`, `delete_opencrq_supporting_assets`, `reset_opencrq_supporting_asset_to_connectors`, `create_opencrq_asset_dependency`, `update_opencrq_asset_dependency_roles`, `delete_opencrq_asset_dependencies`, `create_opencrq_asset_evidence`, `update_opencrq_evidence_state`, `delete_opencrq_asset_evidence`, `reset_opencrq_evidence_state` | No | | MITRE ATT&CK | `list_opencrq_mitre_tactics`, `search_opencrq_mitre_techniques`, `get_opencrq_mitre_technique`, `list_opencrq_mitre_mitigations` | Yes | | Jobs | `list_opencrq_jobs`, `get_opencrq_job`, to follow a simulation started by `run_opencrq_crq_simulation` | Yes | | Findings, threats, treatment and dashboard | `get_opencrq_findings_summary`, `get_opencrq_top_vulnerabilities`, `list_opencrq_findings`, `get_opencrq_cve_finding`, `get_opencrq_asset_posture`, `get_opencrq_technique_test_posture`, `list_opencrq_threats`, `get_opencrq_threat`, `list_opencrq_scenario_threats`, `list_opencrq_cve_threats`, `list_opencrq_treatment_plans`, `get_opencrq_treatment_plan`, `list_opencrq_budget_reviews`, `get_opencrq_budget_review`, `get_opencrq_control_validation`, `get_opencrq_risk_dashboard` | Yes | ## Example: list the tools of the OpenCTI server {#example-list-the-tools-of-the-opencti-server} A client speaking `2025-06-18` opens with `initialize`, then lists the tools. Each request is one `POST`, with the key in `XTM_ONE_API_KEY`: ```bash curl -s https://xtm-one.example.com/mcp/opencti \ -H "Authorization: Bearer $XTM_ONE_API_KEY" \ -H "Content-Type: application/json" \ -H "Accept: application/json, text/event-stream" \ -H "MCP-Protocol-Version: 2025-06-18" \ -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}' | jq -r '.result.tools[].name' ``` With a read-only key, the answer lists the 11 read and search tools only. A call runs as the key's user: asking `search_opencti` for Velvet Harbor returns only the knowledge that user's groups and markings let them see. ## What's next {#what-s-next} - [Use XTM One's own MCP servers from other clients](https://filigran.io/docs/xtm-one/build/platform-mcp-servers/), to connect Claude, Cursor or VS Code with a package or by hand. - [Set up your profile and API keys](https://filigran.io/docs/xtm-one/use/profile/), to create a key with the MCP endpoints surface. - [Connect an MCP server](https://filigran.io/docs/xtm-one/build/mcp-servers/), for the other direction: giving XTM One agents the tools of another server. --- # Script OpenAEV and XTM One with their REST APIs > Authenticate to the REST APIs of OpenAEV and XTM One with a token of your user, find every endpoint in their API reference, page through results and read the errors. - URL: https://filigran.io/docs/develop/apis/rest/ - Products: XTM One 1.261119.1, OpenAEV 3.261118.0 - For: developers, platform engineers - Type: How-to guide Two modules of the XTM platform have a REST API: OpenAEV, under `/api`, and XTM One, under `/api/v1`. Their interfaces call the same endpoints, so a script can do what a person does on screen, with the rights of the user whose token it sends. This page gets a token for each, sends a first request, and covers what both APIs share: the API reference, pagination, tenants and errors. OpenCTI has a GraphQL API instead: see [Query OpenCTI with GraphQL](https://filigran.io/docs/develop/apis/graphql/). OpenCRQ exposes its procedures through its own API: see the [OpenCRQ API reference](https://filigran.io/docs/reference/opencrq/api/). **Diagram: A script calls the REST API of OpenAEV or XTM One with a token of its user, and each module checks that user's rights** - Your code: Script or integration (curl, Python, CI job) - REST APIs: OpenAEV API (/api, Swagger UI), XTM One API (/api/v1, API reference) - Checked as the user: User rights (Capabilities, grants, key scope) Connections: - Script or integration → OpenAEV API: Bearer API token - Script or integration → XTM One API: Bearer API key - OpenAEV API → User rights: checks - XTM One API → User rights: checks | Module | Base path | Credential | API reference | | --- | --- | --- | --- | | OpenAEV | `/api`, and `/api/tenants/{tenantId}` for one tenant | The API token of a user, from **Profile** > **API access** | Swagger UI at `/swagger-ui/index.html`, OpenAPI document at `/api-docs` | | XTM One | `/api/v1` | A personal API key (`fcp-...`), from **My Profile** > **API Keys** | `/api/reference`, OpenAPI document at `/api/openapi.json` | ## Before you start {#before-you-start} - A user account for the script, with the rights of the operations it calls. A token never does more than its user: give an integration its own account, not a person's. - `curl` and `jq` for the examples. Any HTTP client works: both APIs take and return JSON. - The examples read the addresses and tokens from environment variables. In a shell, `read -rs` reads a token without showing it or writing it in the history: ```bash export OPENAEV_URL=https://openaev.example.com export XTM_ONE_URL=https://xtm-one.example.com read -rs OPENAEV_TOKEN && export OPENAEV_TOKEN read -rs XTM_ONE_API_KEY && export XTM_ONE_API_KEY ``` ## Call the OpenAEV API {#call-the-openaev-api} ### Get a token {#get-a-token} Each OpenAEV user has one API token. Open the profile from the account menu at the top right, then **Profile**: the **API access** section shows the **Token key**, and **API specifications** opens the Swagger UI. **RENEW** deletes the token and creates a new one at once: every script that used the old one stops working until you give it the new one. See [Set up your profile](https://filigran.io/docs/openaev/use/profile/#use-your-api-token). ![The API access section of the OpenAEV profile: the Token key, the RENEW button, an example request to /api/exercises that passes the token in its Authorization header, and API specifications.](https://filigran.io/docs/shots/37235f1a0db0f36e3bb8dcab6a3299794a755b4ab0b89c2cf5c8ba8105f2b7af.webp) ### Send a first request to OpenAEV {#send-a-first-request-to-openaev} Send the token in the `Authorization` header, with the `Bearer` scheme. A request with a token is stateless: OpenAEV keeps no session for it. ```bash curl -s "$OPENAEV_URL/api/exercises" \ -H "Authorization: Bearer $OPENAEV_TOKEN" \ -H "Content-Type: application/json" | jq '.[0] | {exercise_id, exercise_name, exercise_status}' ``` Send only the `Authorization` header from a script. A request that also carries the session cookie of the interface is checked like a browser request, and its `POST`, `PUT` and `DELETE` need the cross-site request forgery (CSRF) token the interface sends. ### Work in one tenant {#work-in-one-tenant} A platform can hold several tenants, each with its scenarios, simulations, assets and teams. Most resource endpoints exist twice: under `/api/...`, and under `/api/tenants/{tenantId}/...` for one tenant. The tenant identifier is the segment after the host in the address of the tenant in your browser. A user who does not belong to the tenant gets `403`. See [Give each organization its own tenant](https://filigran.io/docs/openaev/administer/multi-tenancy/). ### Search and page through results {#search-and-page-through-results} Search endpoints take a `POST` with the page, the sort and the filters in the body, such as `POST /api/scenarios/search`: | Field | Effect | | --- | --- | | `page` | Page number, from `0`. Default `0` | | `size` | Items per page. Default `20`, at most `1000` | | `textSearch` | Free text matched on the searchable attributes | | `sorts` | A list of `{"property": ..., "direction": "asc"}`; `asc` when the direction is left out | | `filterGroup` | A filter group: see [Filters](https://filigran.io/docs/develop/apis/filters/) | The answer is a page: the items in `content`, the total in `totalElements`, and `totalPages`, `number` and `size`. **Example: List the Velvet Harbor scenarios of Grand Meridian Hotels** For the weekly report to Hélène Marchetti, the CISO, a script of the validation team lists the scenarios of the Grand Meridian Hotels tenant that mention Velvet Harbor, by name. The tenant's identifier, read from its address, is in `GRAND_MERIDIAN_TENANT_ID`: ```bash curl -s "$OPENAEV_URL/api/tenants/$GRAND_MERIDIAN_TENANT_ID/scenarios/search" \ -H "Authorization: Bearer $OPENAEV_TOKEN" \ -H "Content-Type: application/json" \ -d '{"page": 0, "size": 20, "textSearch": "Velvet Harbor", "sorts": [{"property": "scenario_name", "direction": "asc"}]}' \ | jq '{total: .totalElements, scenarios: [.content[] | {scenario_name, scenario_severity, scenario_recurrence}]}' ``` The same script creates the scenario for the next replay. Only `scenario_name` is required; `scenario_severity` takes `low`, `medium`, `high` or `critical`: ```bash curl -s "$OPENAEV_URL/api/tenants/$GRAND_MERIDIAN_TENANT_ID/scenarios" \ -H "Authorization: Bearer $OPENAEV_TOKEN" \ -H "Content-Type: application/json" \ -d '{"scenario_name": "Velvet Harbor booking lure, May 2026", "scenario_description": "Replays the fake booking request of the European Hospitality Summit 2026 on the front desks.", "scenario_severity": "high"}' | jq '{scenario_id, scenario_name}' ``` The scenario appears in the tenant's list, owned by the user of the token, ready for its injects. ### Read the errors of OpenAEV {#read-the-errors-of-openaev} | Code | Meaning | | --- | --- | | `400` | The input is invalid: a validation error lists the fields at fault, other errors carry a `message` | | `401` | No token, or an unknown one | | `403` | The user lacks the capability or the grant, or does not belong to the tenant | | `404` | The resource does not exist, or the user cannot see it | | `409` | The change conflicts with the data, such as a duplicate | ## Call the XTM One API {#call-the-xtm-one-api} ### Get an API key {#get-an-api-key} In XTM One, open **My Profile** from the user menu, then the **API Keys** tab, and click **Create Key**. Keep **Platform API** in **Surfaces**, choose **Read-only** for a script that only reads, and an **Expiry**. Copy the key when it shows: it is never shown again. See [Set up your profile and API keys](https://filigran.io/docs/xtm-one/use/profile/#create-an-api-key). ![The top of the New API key dialog: the Name of the key, and its two Surfaces, Platform API for the REST API under /api/v1 and MCP endpoints, both on.](https://filigran.io/docs/shots/891f19a15b877ea66fa36083b453331e51b46d22a04e29adeff4a6790fe4c9a5.webp) A read-only key sends only `GET`, `HEAD` and `OPTIONS` requests: any other method is refused, even a `POST` that only searches. A key limited to agents reaches only the routes of those agents and their conversations. Its own **Requests per minute** and **Quota** count on top of the quotas of its user. ### Send a first request to XTM One {#send-a-first-request-to-xtm-one} ```bash curl -s "$XTM_ONE_URL/api/v1/agents" \ -H "Authorization: Bearer $XTM_ONE_API_KEY" | jq '.[] | {name, slug, enabled}' ``` The answer lists the agents the key's user can see: their own, those shared with them or their groups, and those of the company. The [XTM One API reference](https://filigran.io/docs/reference/xtm-one/api/) lists every route; your platform serves them with their fields at `/api/reference`, generated from the code of your version. To talk to an agent with an API key, create a conversation with `POST /api/v1/chat/conversations`, then send each message with `POST /api/v1/chat/conversations/{conversation_id}/messages`, which answers once the agent has replied. The routes under `/api/v1/web/chat`, which stream the answer as server-sent events to the chat screen, take a signed-in session only and refuse an API key with `403`: see [XTM One chat API](https://filigran.io/docs/develop/apis/chat/). ### Read the errors of XTM One {#read-the-errors-of-xtm-one} XTM One answers an error with a JSON body whose `detail` says why. | Code | Meaning | | --- | --- | | `401` | No key, or a revoked or expired one, or a deactivated user | | `403` | The key does not cover this surface or method, or the user lacks the permission | | `429` | The key or its user reached a rate limit or a quota | ## What's next {#what-s-next} - [APIs and integration options](https://filigran.io/docs/develop/apis/), to choose between the APIs, the streams and the MCP servers. - [MCP servers](https://filigran.io/docs/develop/apis/mcp/), to let an AI client call the modules. - [Filters](https://filigran.io/docs/develop/apis/filters/), the filter group format of OpenAEV searches. --- # Data streaming > The live streams and the raw stream of OpenCTI over server-sent events, the events they send, how to resume after a cut, how to write a consumer, and the settings that tune them. - URL: https://filigran.io/docs/develop/apis/streams/ - Products: OpenCTI 7.261119.0 - For: developers, SOC managers, platform engineers - Type: Reference OpenCTI sends every change of its knowledge base as a stream of events, over server-sent events (SSE): a long HTTP response that the platform keeps writing to. A consumer, such as the stream connector of a SIEM or another OpenCTI instance, stays connected and applies each creation, update, deletion and merge as it happens, and resumes where it stopped after a cut. This page is the reference of the protocol: the endpoints, the events and their fields, the parameters, the rules a live stream follows to keep a consumer consistent, and the settings a platform engineer tunes. To create a live stream and watch its consumers in the interface, see [Share knowledge with your security tools](https://filigran.io/docs/opencti/use/share/feeds/#create-a-live-stream). Every event below was received from OpenCTI 7.261030 on the demo data, and trimmed. **Diagram: Every change goes into one Redis stream, which the raw stream relays as is and each live stream filters and completes before sending it over server-sent events** - Changes: API, connectors, interface (Create, update, delete, merge) - Storage: Redis stream (Last 2,000,000 events), Knowledge base (Current state) - OpenCTI: Raw stream (/stream), Live stream (/stream/{id}) - Consumers: Backup or replica (Every event), Stream connector (Filtered events) Connections: - API, connectors, interface → Redis stream: one event each - Redis stream → Raw stream: as is - Redis stream → Live stream: filtered - Knowledge base → Live stream: dependencies, recover - Raw stream → Backup or replica: SSE - Live stream → Stream connector: SSE ## Endpoints {#endpoints} Every change the platform makes, through the API, a connector, a playbook or the interface, adds one event to a Redis stream that all the endpoints read. | Endpoint | What it sends | Who can connect | | --- | --- | --- | | `/stream/{id}` | A **live stream** created in **Data > Data sharing > Live streams**: the events that match its filters, completed with the objects they depend on, as the user is allowed to see them | A user with the **Access data sharing** capability, among the members the stream allows; anyone when the stream is public | | `/stream/live` | The same processing as a live stream, with no filter: every change, with its dependencies | A user with the **Bypass all capabilities** capability | | `/stream` | The **raw stream**: every event as the platform stored it, with no filter, no dependency and no recovery. For replication and backup tools | A user with the **Bypass all capabilities** capability | A consumer authenticates like any API client, with `Authorization: Bearer` followed by an API token, and its user also needs **Allow token usage**. See [Query OpenCTI with GraphQL](https://filigran.io/docs/develop/apis/graphql/#get-an-api-token) to get a token. Give each consumer its own user: what it receives follows the markings and organizations of that user, and its connections show under its name in **Stream consumers**. ## Connect {#connect} ```bash curl -N "https://opencti.example.com/stream/d6ac3e7d-a29c-4c88-92b6-00c43ef2c7bf" \ -H "Authorization: Bearer ${OPENCTI_TOKEN}" ``` `-N` turns off the buffering of `curl`, so that events show as they arrive. The platform answers `200` with `Content-Type: text/event-stream; charset=utf-8`, then sends a `connected` event: ```text event: connected data: {"lastEventId":"1793572800397-0","firstEventId":"1793572725744-0","firstEventDate":"2026-11-01T22:38:45.744Z","lastEventDate":"2026-11-01T22:40:00.397Z","streamSize":548,"connectionId":"33002d43-6b3b-400f-8f67-3c6dd8b00d38"} ``` `firstEventId` and `lastEventId` bound the events the platform still holds, `streamSize` counts them, and `connectionId` identifies this connection in **Stream consumers**. Without a start point, the stream then sends the events that happen from now on. A connection that fails gets an HTTP status, with the reason in the status line: | Status | Reason | | --- | --- | | `401` | `You are not authenticated, please check your credentials`: no token, a wrong or expired one, or a user without **Allow token usage** | | `401` | `You are not authorized, please check your credentials`: the stream does not exist, the user is not among its members, or lacks **Access data sharing** (**Bypass all capabilities** for `/stream/live`) | | `401` | `Consume generic stream is only authorized for bypass user`: the user of a `/stream` connection lacks **Bypass all capabilities** | | `401` | `You need to have access to specific markings for this live stream`: the stream filters on markings the user cannot see | | `410` | `This live stream is stopped`: start it in **Data > Data sharing > Live streams** | A connection authenticates when it opens. To cut a consumer off at once, stop or delete its live stream: the platform checks the stream between two batches of events, every 5 seconds at most, and ends the response. ## Events {#events} Each event is a block of `id`, `event` and `data` lines, ended by an empty line. `id` is the ID of the event in the Redis stream: the time in milliseconds, a dash and a sequence number, such as `1793573158396-0`. `event` is the event name, and `data` a JSON object on one line. | `event` | Sent when | `id` | | --- | --- | --- | | `connected` | The connection opens | None | | `create` | An object is created, or starts to match the filters, or is sent as a dependency or by a recovery | The event that caused it | | `update` | An object that matches the filters changes | The event | | `delete` | An object is deleted, or stops matching the filters | The event | | `merge` | Objects are merged into one that matches the filters | The event | | `heartbeat` | Every 5 seconds, when nothing else is waiting to be written | The last event read | | `consumer_metrics` | After each `heartbeat` | The last event read | | `error` | The stream cannot go on, such as a recovery asked without a start date | None | | `no-recover` | A recovery is asked on a stream with origin filters (see [Resume after a cut](#resume-after-a-cut)) | Now | ### The data of an event {#the-data-of-an-event} The `data` of `create`, `update`, `delete` and `merge` events holds: | Field | Content | | --- | --- | | `version` | `"4"`, the version of the event format. Live streams send only version 4 events | | `type` | The type of change the platform recorded: `create`, `update`, `delete` or `merge` | | `scope` | `external` for knowledge. Internal objects are not sent | | `message` | A sentence for people, such as ``creates a Indicator `guest-wifi-velvet.example` `` | | `origin` | Who made the change, or why the stream sent the event ([The origin of an event](#the-origin-of-an-event)) | | `data` | The object as STIX 2.1, with the OpenCTI properties in the extension `extension-definition--ea279b3e-5c71-4632-ac08-831c66a786ba`: internal `id`, `type`, `created_at`, `updated_at`, `score`, `labels_ids`, `created_by_ref_id`... | | `context` | The details of an update or a merge: [Updates](#updates), [Merges](#merges) | | `event_id` | The ID the platform gave the change when it made it | > **Warning** > > On a live stream, act on the **`event` name**, not on `data.type`. When an update makes an object stop matching the filters, the stream sends it as a `delete` event whose `data.type` is still `update`, and when an update makes it match, as a `create` event whose `data.type` is `update`. A creation, as the SIEM live stream of the demo received it when a script created the indicator `guest-wifi-velvet.example`: ```text id: 1793573158396-0 event: create data: {"version":"4","type":"create","scope":"external","message":"creates a Indicator `guest-wifi-velvet.example`","origin":{"socket":"query","user_id":"88ec0c6a-13ce-5e39-b486-354fe4a7084f","group_ids":["337534e7-30f8-4bc8-9c54-782693914905"],"organization_ids":[]},"data":{"id":"indicator--a6b80844-c4b6-5dc7-aee8-3a0af2933801","spec_version":"2.1","type":"indicator","extensions":{"extension-definition--ea279b3e-5c71-4632-ac08-831c66a786ba":{"extension_type":"property-extension","id":"3ed349ba-f227-4fb2-8203-e9683b328a9d","type":"Indicator","created_at":"2026-11-01T22:45:58.356Z","updated_at":"2026-11-01T22:45:58.356Z","is_inferred":false,"labels_ids":["8a316f32-14e5-49ab-a685-62f7718a1a2d"],"created_by_ref_id":"13a8c72c-08b2-4262-bfac-82ecd17bad4c","detection":false,"score":75,"main_observable_type":"Domain-Name"}},"created":"2026-11-01T22:45:58.356Z","modified":"2026-11-01T22:45:58.356Z","revoked":false,"confidence":100,"labels":["hotel-sector"],"object_marking_refs":["marking-definition--34098fce-860f-48ae-8e50-ebd3cc5e41da"],"created_by_ref":"identity--ac6f7b3a-7aa5-558d-a1bd-4a4f52840f9e","name":"guest-wifi-velvet.example","pattern":"[domain-name:value = 'guest-wifi-velvet.example']","pattern_type":"stix","valid_from":"2026-11-01T22:45:58.340Z","valid_until":"2027-04-07T08:31:02.884Z"},"event_id":"1793573158356-0"} ``` Before it, with the same `id`, the stream sent the author `Example CERT` and the marking `TLP:GREEN` as two `create` events with `"origin":{"referer":"init-dependencies"}`: the consumer had not received them yet on this connection. ### Updates {#updates} An `update` carries the whole object after the change, and in `context` what changed: - `patch`: the JSON Patch operations ([RFC 6902](https://www.rfc-editor.org/rfc/rfc6902)) that turn the previous object into this one. - `reverse_patch`: the operations that turn this object back into the previous one. - `changes`: the changed fields as the history of the object shows them, with the values removed and added. The update of the score from 75 to 65, which also moved the end of validity, abridged: ```text id: 1793573165501-0 event: update data: {"version":"4","type":"update","scope":"external","message":"Update 2 elements","origin":{"socket":"query","user_id":"88ec0c6a-13ce-5e39-b486-354fe4a7084f","group_ids":["337534e7-30f8-4bc8-9c54-782693914905"],"organization_ids":[]},"data":{"id":"indicator--a6b80844-c4b6-5dc7-aee8-3a0af2933801","type":"indicator","name":"guest-wifi-velvet.example","valid_until":"2027-08-28T22:46:05.435Z","extensions":{"extension-definition--ea279b3e-5c71-4632-ac08-831c66a786ba":{"score":65}}},"context":{"patch":[{"op":"replace","path":"/valid_until","value":"2027-08-28T22:46:05.435Z"},{"op":"replace","path":"/modified","value":"2026-11-01T22:46:05.465Z"},{"op":"replace","path":"/extensions/extension-definition--ea279b3e-5c71-4632-ac08-831c66a786ba/score","value":65},{"op":"replace","path":"/extensions/extension-definition--ea279b3e-5c71-4632-ac08-831c66a786ba/updated_at","value":"2026-11-01T22:46:05.465Z"}],"reverse_patch":[{"op":"replace","path":"/valid_until","value":"2027-04-07T08:31:02.884Z"},{"op":"replace","path":"/extensions/extension-definition--ea279b3e-5c71-4632-ac08-831c66a786ba/score","value":75}],"changes":[{"field":"Indicator--valid_until","changes_removed":[{"raw":"2027-04-07T08:31:02.884Z"}],"changes_added":[{"raw":"2027-08-28T22:46:05.435Z"}]},{"field":"Indicator--x_opencti_score","changes_removed":[{"raw":"75"}],"changes_added":[{"raw":"65"}]}]},"event_id":"1793573165465-0"} ``` ### Deletions {#deletions} A `delete` carries the object as it was before the change. When an update makes the object leave the filters, as when its score drops from 65 to 40 below the `60` of the SIEM stream, the stream sends the previous state of the object with an empty `context`, so that the consumer learns nothing about what it can no longer see: ```text id: 1793573168595-0 event: delete data: {"version":"4","type":"update","scope":"external","message":"Update 2 elements","data":{"id":"indicator--a6b80844-c4b6-5dc7-aee8-3a0af2933801","type":"indicator","name":"guest-wifi-velvet.example","extensions":{"extension-definition--ea279b3e-5c71-4632-ac08-831c66a786ba":{"score":65}}},"context":{},"event_id":"1793573168569-0"} ``` When the object itself is deleted, `data.type` is `delete` and the event has no `context`. ### Merges {#merges} A `merge` carries the object that remains, with `context.patch` and `context.reverse_patch` as for an update, and `context.sources`: the objects merged into it, as STIX. On a live stream, `sources` only lists the merged objects the user can see, and `message` names only them. The consumer replaces the sources by the target and deletes the sources on its side. ### The origin of an event {#the-origin-of-an-event} `origin` tells who made the change, or flags the events the stream adds itself: *(OpenCTI 7.261030 and later)* | Field | Content | | --- | --- | | `socket` | How the change came: `query` for the API and the interface | | `user_id`, `group_ids`, `organization_ids` | The user who made the change, their groups and organizations | | `applicant_id` | The user a connector or a playbook acted for | | `playbook_id` | The playbook that made the change | | `referer` | Only on events the stream adds: `init-dependencies` for a dependency, `init-create` for an object sent by a recovery | Other attributes of the origin, such as the IP address of the client, stay in the platform. ### Heartbeats and consumer metrics {#heartbeats-and-consumer-metrics} Every 5 seconds (`app:live_stream:heartbeat_period`), when nothing else waits in the connection, the stream sends a `heartbeat` and a `consumer_metrics` event. Both carry as `id` the last event the stream read for this connection, including the events its filters left out. ```text id: 1793573165501-0 event: heartbeat data: "2026-11-01T22:46:05.501Z" id: 1793573165501-0 event: consumer_metrics data: {"deliveryRate":0.51,"processingRate":0.21,"resolutionRate":2,"productionRate":0,"timeLag":0,"estimatedOutOfDepth":0} ``` On the SIEM stream of the demo, the heartbeat after the indicator was deleted carried the ID `1793573171749-0`: the deletion itself was not sent, since the indicator had already left the filters, but the stream had read it. The `heartbeat` data is the date of that last event. The rates are events per second: `productionRate` written to the platform stream, `processingRate` read by this connection, `deliveryRate` sent to it after filtering, `resolutionRate` sent as dependencies. `timeLag` is how many seconds the connection is behind the newest event, and `estimatedOutOfDepth` how many seconds remain, at these rates, before its position leaves the events the platform holds (`0` when it is not falling behind). **Stream consumers** in the interface shows the same figures. ## Resume after a cut {#resume-after-a-cut} A consumer that records the `id` of the last event it processed can resume from it. It sends the ID in one of these, in this order of precedence: | Where | Example | | --- | --- | | `from` query parameter | `/stream/d6ac3e7d-a29c-4c88-92b6-00c43ef2c7bf?from=1793573158000-0` | | `from` header | `from: 1793573158000-0` | | `Last-Event-ID` header, which SSE clients send on their own when they reconnect | `Last-Event-ID: 1793573158000-0` | `from` takes an event ID, a date such as `2026-11-01T22:45:00Z`, or `0` to start from the oldest event the platform holds. Record the `id` of `heartbeat` events too: it moves past the events the filters left out, so a resume does not read them again. Reconnected with `from=1793573158000-0`, the SIEM stream sent again, in order, the author and the marking as dependencies, then the creation, the update and the deletion of the indicator, with their original IDs. The platform holds the last 2,000,000 events by default (`redis:trimming`). On a busy platform this covers days, not weeks. A consumer whose last ID left this window cannot resume from it: it needs a recovery. ### Recover from the database {#recover-from-the-database} `recover`, a date, asks the stream to rebuild the current state from the database before going live. With `from`, the stream first sends, as `create` events with `"origin":{"referer":"init-create"}`, the objects that match the filters and were updated between `from` and `recover`, with their dependencies. Then it sends the live events from the `recover` date on. `recover` is also read from the `recover` or `recover-date` header. ```bash curl -N "https://opencti.example.com/stream/d6ac3e7d-a29c-4c88-92b6-00c43ef2c7bf?from=2026-01-01T00:00:00Z&recover=2026-11-01T22:47:30Z" \ -H "Authorization: Bearer ${OPENCTI_TOKEN}" ``` On the demo data, the SIEM stream answered with the author `Example CERT` as a dependency, then the four indicators that match its filters, `203.0.113.31`, `reservations-velvet.example`, `guest-wifi-login.example` and `checkin-velvet.example`, then the live events. - Without `from`, the stream sends an `error` event, `Recovery mode is only possible with a start date.`, and nothing else. - During a recovery, the `id` of each event is the update date of the object it carries, so IDs follow the update dates rather than the stream. If a recovery is cut, start it again with the same `from` and `recover`, and make the consumer apply events by STIX ID, so that objects received twice change nothing. *(OpenCTI 7.260811 and later)* A live stream with origin filters cannot recover: the database does not keep the origin of each change. Asked for a recovery, such a stream sends a `no-recover` event, with the `resume_from` ID it starts from, then the live events. ## Options {#options} Each option is a query parameter of the stream URL, or a header of the same name. | Option | Default | Effect | | --- | --- | --- | | `listen-delete=false` | `true` | No `delete` events: neither deletions nor objects that leave the filters | | `no-dependencies=true` | `false` | The stream still sends the objects an event refers to, such as the author, the markings, the content of a container or the two ends of a relationship. It no longer sends the relationships of a matching object, nor the relationships that only touch a matching object. `no-relationships` is a former name of the same option | | `with-inferences=true` | `false` | Adds the objects and relationships created by the rules engine, and searches them during a recovery | These options apply to `/stream/{id}` and `/stream/live`. The raw stream only reads `from`. ## What a live stream sends {#what-a-live-stream-sends} A live stream does more than filter the raw stream. These rules keep the copy of a consumer consistent with what its user can see: 1. **The filters decide.** An event is sent when its object matches the filters. An update that makes an object match is sent as `create`; one that makes it stop matching, as `delete`. Only some filter keys work on events: see [Filters on stream events](https://filigran.io/docs/develop/apis/filters/#filters-on-stream-events). Filter changes apply from the next batch of events. 2. **Dependencies come first.** Before an object, the stream sends the objects it refers to that the connection has not received yet: author, markings, the objects of a container, the source and target of a relationship. Then it sends the relationships of the object, unless `no-dependencies=true`. 3. **Each dependency is sent once per connection.** The stream remembers what it sent, by default the last 5,000 objects for 2 hours (`app:live_stream:cache_max_size`, `app:live_stream:cache_max_time`). A consumer must keep the dependencies it receives. A new connection starts with an empty memory. 4. **Relationships follow their ends.** A relationship that does not match the filters is still sent when its source or its target matches, as a dependency. 5. **Containers carry their content.** When an object that does not match the filters changes, and a container that matches holds it, such as a report on Velvet Harbor, the stream sends the change. 6. **Access rules apply.** The stream sends only what the user can see: markings, organizations, authorized members. It removes from `object_refs` the objects the user cannot see. It removes the organizations an object is shared with (`granted_refs`) unless the user has the **Restrict organization access** capability. A relationship is sent only when the user can see both its ends. 7. **Inferences stay out** unless `with-inferences=true`. ## Write a consumer {#write-a-consumer} The stream connectors of the [connector catalog](https://filigran.io/docs/opencti/use/ingest/connectors/) already consume live streams for SIEMs, EDRs and SOARs, and another OpenCTI instance consumes them as described in [Import from another OpenCTI instance](https://filigran.io/docs/opencti/use/ingest/streams/). For your own tool, a consumer needs four things: read the events, act on the `event` name, record the last ID, and reconnect from it. **Example: Keep a blocklist in step with the SIEM stream** The SOC of Example CERT feeds an in-house blocklist service from the live stream `Hospitality indicators for the SIEM`, which publishes the indicators labelled `hotel-sector` with a score of 60 or more. This consumer, in Python with the standard library only, upserts or removes each indicator by its STIX ID, records the last event ID in `last-event-id.txt`, and resumes from it after a cut: ```python import json import os import pathlib import time import urllib.request OPENCTI_URL = os.environ["OPENCTI_URL"] # https://opencti.example.com TOKEN = os.environ["OPENCTI_TOKEN"] # token of the consumer's own user STREAM_ID = os.environ["STREAM_ID"] # d6ac3e7d-a29c-4c88-92b6-00c43ef2c7bf STATE = pathlib.Path("last-event-id.txt") def handle(event, data): stix = data["data"] if event in ("create", "update"): print(f"upsert {stix['type']} {stix['id']} {stix.get('name', '')}") elif event == "delete": print(f"remove {stix['type']} {stix['id']}") elif event == "merge": print(f"merge into {stix['id']}: {[s['id'] for s in data['context']['sources']]}") def listen(): headers = {"Authorization": f"Bearer {TOKEN}", "Accept": "text/event-stream"} if STATE.exists(): headers["Last-Event-ID"] = STATE.read_text().strip() request = urllib.request.Request(f"{OPENCTI_URL}/stream/{STREAM_ID}", headers=headers) with urllib.request.urlopen(request, timeout=60) as response: event, event_id, data = None, None, [] for raw in response: line = raw.decode("utf-8").rstrip("\n") if line.startswith("id: "): event_id = line[4:] elif line.startswith("event: "): event = line[7:] elif line.startswith("data: "): data.append(line[6:]) elif line == "": if event in ("create", "update", "delete", "merge"): handle(event, json.loads("\n".join(data))) if event_id and event != "connected": STATE.write_text(event_id) event, event_id, data = None, None, [] while True: try: listen() except Exception as error: print(f"connection lost ({error}), resuming in 10 seconds") time.sleep(10) ``` Started with `1793573158000-0` in `last-event-id.txt`, it printed: ```text upsert identity identity--ac6f7b3a-7aa5-558d-a1bd-4a4f52840f9e Example CERT upsert marking-definition marking-definition--34098fce-860f-48ae-8e50-ebd3cc5e41da TLP:GREEN upsert indicator indicator--a6b80844-c4b6-5dc7-aee8-3a0af2933801 guest-wifi-velvet.example upsert indicator indicator--a6b80844-c4b6-5dc7-aee8-3a0af2933801 guest-wifi-velvet.example remove indicator indicator--a6b80844-c4b6-5dc7-aee8-3a0af2933801 ``` The read timeout of 60 seconds is safe because a heartbeat arrives every 5 seconds: a silence of a minute means the connection is gone. A real consumer would write the blocklist where this one prints, and keep the identities and markings it receives to resolve `created_by_ref` and `object_marking_refs`. ## Configuration {#configuration} These settings apply to every stream of the platform. A platform engineer sets them in the configuration file or as environment variables (the key in upper case, with `__` between levels), as [Configuration](https://filigran.io/docs/reference/opencti/configuration/#technical-customization) describes. | Key | Environment variable | Default | Effect | | --- | --- | --- | --- | | `app:live_stream:cache_max_size` | `APP__LIVE_STREAM__CACHE_MAX_SIZE` | `5000` | Objects one live stream connection remembers as sent, so as not to send them again as dependencies. Raise it when consumers receive the same authors and markings again and again on large streams; each connection holds its own memory | | `app:live_stream:cache_max_time` | `APP__LIVE_STREAM__CACHE_MAX_TIME` | `2` | Hours an object stays in that memory | | `app:live_stream:heartbeat_period` | `APP__LIVE_STREAM__HEARTBEAT_PERIOD` | `5000` | Milliseconds between two heartbeats. Raise it when the proxies between the platform and its consumers allow long silences; keep it below their idle timeout, or they close the connections | | `redis:trimming` | `REDIS__TRIMMING` | `2000000` | Events the platform holds for streams to resume from, approximately. `0` keeps them all. More events cost Redis memory. See [Redis](https://filigran.io/docs/reference/opencti/configuration/#redis) | *(OpenCTI 7.261030 and later)* | Key | Environment variable | Default | Effect | | --- | --- | --- | --- | | `app:live_stream:resolution_batch_size` | `APP__LIVE_STREAM__RESOLUTION_BATCH_SIZE` | `500` | Dependencies a live stream loads at once when an object refers to many others, such as a report with tens of thousands of objects. The stream sends them in batches of this size as they are ready, instead of loading them all first. Lower it to use less memory per connection, raise it to send large containers faster | *(OpenCTI 7.260811 and later)* | Key | Environment variable | Default | Effect | | --- | --- | --- | --- | | `app:stream_full_debug_mode` | `APP__STREAM_FULL_DEBUG_MODE` | `false` | Logs every event written to the stream, with its full content, at the `info` level. For debugging only: it writes a log line per change, with the data of the change. See [Logging](https://filigran.io/docs/reference/opencti/configuration/#logging) | For a platform whose consumers sit behind a proxy that closes idle connections after 30 seconds, and which keeps a week of events at about 500,000 events a day, with Docker Compose: ```yaml services: opencti: environment: - APP__LIVE_STREAM__HEARTBEAT_PERIOD=15000 - REDIS__TRIMMING=3500000 ``` ## What's next {#what-s-next} - [Share knowledge with your security tools](https://filigran.io/docs/opencti/use/share/feeds/): create a live stream, choose its filters and watch its consumers. - [Filters](https://filigran.io/docs/develop/apis/filters/): the filter format, and the keys that work on events. - [Import from another OpenCTI instance](https://filigran.io/docs/opencti/use/ingest/streams/): consume a live stream on another OpenCTI instance. - [HTTP endpoints](https://filigran.io/docs/reference/opencti/http-endpoints/): every endpoint of the platform and how it authenticates. --- # Build an OpenAEV collector > Write an OpenAEV collector in Python that matches the detection and prevention expectations of your simulations with the alerts of your security tool, run it, and read its verdicts. - URL: https://filigran.io/docs/develop/build/collector/ - Products: OpenAEV 3.261118.0 - For: developers, platform engineers - Type: How-to guide This page builds a collector for a security tool OpenAEV has no collector for: the alert store of the Grand Meridian Hotels security operations center (SOC), **Meridian SOC**, which gathers the alerts of the endpoints with their process tree. At each run, the collector reads the detection and prevention expectations nobody answered for it, looks for the alerts of each one, and marks it **Detected** or **Prevented**, with the alerts as evidence. It calls the REST API of the platform only, in about 140 lines of Python. Read [Collectors](https://filigran.io/docs/develop/integration-model/collectors/) first for the protocol it follows. **Diagram: The Meridian SOC collector, from the pending expectations to the verdicts** - OpenAEV: REST API (Expectations and traces), Security platform (Meridian SOC) - Collector: main.py (Register, then one run a minute) - Grand Meridian Hotels: Alerts API (alerts.example.com) Connections: - main.py → Security platform: upsert once - REST API → main.py: pending expectations - main.py → Alerts API: alerts by parent process - main.py → REST API: verdicts and traces ## Before you start {#before-you-start} - An OpenAEV 3.261029.0 platform, here at `https://openaev.example.com`, and the identifier of the tenant the collector serves: the address of the interface shows it after the host, and a platform with one tenant has the default tenant, `2cffad3a-0001-4078-b0e2-ef74274022c3`. - A user for the collector, with a role that grants **Manage tenant settings**, **Manage security platforms** and **Manage assessment**, and its API token from its profile. - Injects that run through an implant, with the OpenAEV agent or an executor of your EDR, and that carry **Detection** or **Prevention** expectations: the collector matches the name of the implant's process. - The API of your tool. Here, `https://alerts.example.com/api/alerts?parent_process=` returns the alerts whose process tree holds that name, each with `id`, `title`, `action` (`blocked` or `detected`), `created_at` and `url`. - Python 3.10 or later. ## Lay out the project {#lay-out-the-project} ```text meridian-soc-collector/ ├── src/ │ ├── main.py │ └── requirements.txt └── Dockerfile ``` `src/requirements.txt`: ```text requests~=2.33 ``` ## Register with a security platform {#register-with-a-security-platform} The verdicts carry the name of a security platform. The collector creates its own once, keyed on the collector's identifier, then registers with it at every run: each registration is also its heartbeat, and the interface shows it as stopped after two minutes without one. `src/main.py`, first part: ```python import json import os import time from datetime import datetime, timezone import requests OPENAEV_URL = os.environ["OPENAEV_URL"].rstrip("/") OPENAEV_TOKEN = os.environ["OPENAEV_TOKEN"] OPENAEV_TENANT_ID = os.environ["OPENAEV_TENANT_ID"] COLLECTOR_ID = os.environ["COLLECTOR_ID"] COLLECTOR_NAME = os.environ.get("COLLECTOR_NAME", "Meridian SOC") ALERTS_API_URL = os.environ["ALERTS_API_URL"].rstrip("/") ALERTS_API_TOKEN = os.environ["ALERTS_API_TOKEN"] API = f"{OPENAEV_URL}/api/tenants/{OPENAEV_TENANT_ID}" HEADERS = {"Authorization": f"Bearer {OPENAEV_TOKEN}"} PERIOD_SECONDS = 60 LOOKBACK_MINUTES = 360 # the default expiration of detection and prevention: 6 hours def upsert_security_platform() -> str: response = requests.post( f"{API}/security_platforms/upsert", headers=HEADERS, json={ "asset_name": "Meridian SOC", "asset_description": "The alert store of the Grand Meridian Hotels SOC.", "asset_external_reference": COLLECTOR_ID, "security_platform_type": "SIEM", }, timeout=30, ) response.raise_for_status() return response.json()["asset_id"] def register(security_platform_id: str) -> None: registration = { "collector_id": COLLECTOR_ID, "collector_name": COLLECTOR_NAME, "collector_type": "grand_meridian_soc", "collector_period": PERIOD_SECONDS, "collector_security_platform": security_platform_id, } response = requests.post( f"{API}/collectors", headers=HEADERS, files={"input": (None, json.dumps(registration), "application/json")}, timeout=30, ) response.raise_for_status() ``` ## Match the expectations with the alerts {#match-the-expectations-with-the-alerts} Each pending expectation carries signatures. `parent_process_name` is the name of the implant's process for this inject and this agent, `oaev-implant--agent-`: an alert whose process tree holds it belongs to this inject on this endpoint. A detection expectation is met by any such alert; a prevention expectation by an alert whose action was blocked, and missed when the alerts show the action ran unblocked. An expectation without alerts stays pending: the platform closes it as **Not Detected** or **Not Prevented** when it expires. `src/main.py`, second part: ```python def pending_expectations() -> list[dict]: response = requests.get( f"{API}/injects/expectations/assets/{COLLECTOR_ID}", headers=HEADERS, params={"expiration_time": LOOKBACK_MINUTES}, timeout=60, ) response.raise_for_status() return response.json() def implant_process(expectation: dict) -> str | None: for signature in expectation["inject_expectation_signatures"]: if signature["type"] == "parent_process_name": return signature["value"] return None def alerts_for(process_name: str) -> list[dict]: response = requests.get( f"{ALERTS_API_URL}/alerts", headers={"Authorization": f"Bearer {ALERTS_API_TOKEN}"}, params={"parent_process": process_name}, timeout=30, ) response.raise_for_status() return response.json()["alerts"] def run_once() -> None: verdicts, traces = {}, [] for expectation in pending_expectations(): process_name = implant_process(expectation) alerts = alerts_for(process_name) if process_name else [] if not alerts: continue expectation_id = expectation["inject_expectation_id"] if expectation["inject_expectation_type"] == "PREVENTION": evidence = [alert for alert in alerts if alert["action"] == "blocked"] success = bool(evidence) evidence = evidence or alerts else: evidence, success = alerts, True verdicts[expectation_id] = { "collector_id": COLLECTOR_ID, "is_success": success, "metadata": {"alert_id": evidence[0]["id"]}, } traces += [ { "inject_expectation_trace_expectation": expectation_id, "inject_expectation_trace_source_id": COLLECTOR_ID, "inject_expectation_trace_alert_name": alert["title"], "inject_expectation_trace_alert_link": alert["url"], "inject_expectation_trace_date": alert["created_at"], } for alert in evidence ] if verdicts: requests.put( f"{API}/injects/expectations/bulk", headers=HEADERS, json={"inputs": verdicts}, timeout=60 ).raise_for_status() if traces: requests.post( f"{API}/inject-expectations-traces/bulk", headers=HEADERS, json={"expectation_traces": traces}, timeout=60, ).raise_for_status() requests.put( f"{API}/collectors/{COLLECTOR_ID}", headers=HEADERS, json={"collector_last_execution": datetime.now(timezone.utc).isoformat()}, timeout=30, ).raise_for_status() print(f"{len(verdicts)} verdict(s), {len(traces)} alert(s)") if __name__ == "__main__": security_platform_id = upsert_security_platform() while True: try: register(security_platform_id) run_once() except requests.RequestException as error: print(f"Run failed, next try in {PERIOD_SECONDS} s: {error}") time.sleep(PERIOD_SECONDS) ``` ## Run it {#run-it} 1. Generate the collector's identifier once, and keep it: `python3 -c 'import uuid; print(uuid.uuid4())'`. 2. Set the variables and start the collector, as in the example below. It prints the number of verdicts at each run. 3. In OpenAEV, open **Integrations**, **Deployed** tab. The collector shows under its name, **Started**, with the time of its last run. ![The Deployed tab of Integrations filtered on collectors lists each collector with its status and the time the platform last heard from it, next to the built-in expectation managers.](https://filigran.io/docs/shots/16b0580ae3c1555934458ae1b3a58b053d03063d2bf4775d3955f0997e3805fe.webp) 4. Open **Security platforms**: **Meridian SOC** is there, of type SIEM. **Example: Score the front-desk simulation with Meridian SOC** The SOC of Grand Meridian Hotels wants its alert store to answer the expectations of the Velvet Harbor simulation on the front-desk workstations. A developer runs the collector next to the alert store: ```bash cd meridian-soc-collector/src python3 -m venv .venv && . .venv/bin/activate pip install -r requirements.txt export OPENAEV_URL=https://openaev.example.com export OPENAEV_TOKEN="$MERIDIAN_SOC_OPENAEV_TOKEN" export OPENAEV_TENANT_ID=2cffad3a-0001-4078-b0e2-ef74274022c3 export COLLECTOR_ID=3c7e1a52-8d4f-4b19-a6e0-5f2b9c8d7e61 export COLLECTOR_NAME="Meridian SOC" export ALERTS_API_URL=https://alerts.example.com/api export ALERTS_API_TOKEN="$MERIDIAN_SOC_ALERTS_TOKEN" python3 main.py ``` The PowerShell loader of the simulation (T1059.001) runs on `fd-paris-01` and `fd-paris-02`. The alert store holds an alert **Suspicious PowerShell from a booking attachment** on `fd-paris-01`, action `blocked`, and the same alert on `fd-paris-02`, action `detected`. At its next run, the collector writes four verdicts: `fd-paris-01` reads **Detected** and **Prevented**, `fd-paris-02` **Detected** and **Not Prevented**, each with the alert and its link to the alert store, under the security platform **Meridian SOC**. ## Check that it works {#check-that-it-works} - On the inject's result, the **Detection** and **Prevention** results of each endpoint name **Meridian SOC**, and the alerts open in the alert store from their link. - A run that prints `0 verdict(s)` while injects ran: check that the injects ran through an implant, and that the alert store finds alerts by the process name the expectation carries. - An HTTP 404 on a call that exists means the user's role lacks the capability it needs: OpenAEV answers a missing right with 404, not 403, so as not to reveal what exists. A 403 `TENANT_ACCESS_DENIED` means the user is not a member of the tenant in the path. ## Package it {#package-it} `Dockerfile`: ```dockerfile FROM python:3.12-slim WORKDIR /opt/meridian-soc-collector COPY src/requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY src/ . CMD ["python", "main.py"] ``` Pass the same variables to the container. The collector only opens outbound connections, to OpenAEV and to the alert store, so it can run next to the alert store, on another network than the platform. [Run an integration without XTM Composer](https://filigran.io/docs/deploy/integrations/manual/) covers running it next to the platform. ## Go further {#go-further} - Answer the expectations of other injectors: their process name is `-agent-`. - Match without a process tree: a SIEM can match the addresses of the endpoint (`source_ipv4_address`) and the time window (`start_date`, `end_date`) instead. - Use `pyoaev`, Filigran's Python library, which wraps the registration and the run loop for the collectors of [OpenAEV-Platform/collectors](https://github.com/OpenAEV-Platform/collectors). ## What's next {#what-s-next} - [Collectors](https://filigran.io/docs/develop/integration-model/collectors/), every field of the protocol. - [Build an OpenAEV injector](https://filigran.io/docs/develop/build/injector/), to add the inject a collector then scores. - [Expectations](https://filigran.io/docs/openaev/use/expectations/), how the verdicts show to the validation engineer. --- # Build an OpenCTI connector > Write an external import connector with pycti, from an empty folder to a run that creates reports, intrusion sets and indicators in OpenCTI, then package it with Docker. - URL: https://filigran.io/docs/develop/build/connector/ - Products: OpenCTI 7.261119.0 - For: developers, platform engineers - Type: Tutorial In this tutorial, you write the connector that imports the hospitality threat feed of Example CERT into OpenCTI: each feed item becomes a report, with the intrusion set it names, its indicators, and the relationships between them. It takes about 45 minutes. At the end, you know how a connector registers, builds STIX 2.1 objects that never duplicate, reports its runs as works, saves its state, and runs on a schedule in Docker. The connector is an `EXTERNAL_IMPORT` connector: read [Connectors](https://filigran.io/docs/develop/integration-model/connectors/) for the other types. **Diagram: The hospitality threat feed connector** - Source: Hospitality feed (JSON over HTTPS) - Connector: client.py (Fetches new items), converter.py (Items to STIX 2.1), main.py (Schedule, work, state) - OpenCTI: RabbitMQ (push_ queue), OpenCTI (Workers write the bundle) Connections: - Hospitality feed → client.py: items - client.py → converter.py: new items - converter.py → main.py: bundle - main.py → RabbitMQ: send bundle - RabbitMQ → OpenCTI: import - main.py → OpenCTI: work and state ## What you need {#what-you-need} - An OpenCTI 7.261030 platform, such as the [XTM stack](https://filigran.io/docs/start/quick-start/) at `http://localhost:8080`. - The API token of the user the connector will write as, in the `OPENCTI_TOKEN` variable of your shell. For a test, an administrator's token works; in production, give the connector its own user in the `Connectors` group ([Run an integration without XTM Composer](https://filigran.io/docs/deploy/integrations/manual/#create-a-token)). - Python 3.10 or later, and Docker for the last step. The connector uses `pycti`, the Python library of OpenCTI, which holds the connector helper (`OpenCTIConnectorHelper`) and the API client. Use the `pycti` version of your platform: both are released together. ## Step 1: Lay out the project {#step-1-lay-out-the-project} Create this tree. The connector code lives in `src/`; the catalog metadata in `__metadata__/` comes at the end. ```text hospitality-feed/ ├── __metadata__/ │ ├── connector_manifest.json │ └── connector_config_schema.json ├── sample-feed/ │ └── feed.json ├── src/ │ ├── client.py │ ├── converter.py │ ├── main.py │ ├── config.yml.sample │ └── requirements.txt ├── Dockerfile └── docker-compose.yml ``` Pin the libraries in `src/requirements.txt`, then install them in a virtual environment: `src/requirements.txt`: ```text pycti==7.261030.1 requests~=2.33 ``` ```bash cd hospitality-feed python3 -m venv .venv . .venv/bin/activate pip install -r src/requirements.txt ``` ## Step 2: Read the feed {#step-2-read-the-feed} The feed returns JSON items. Each item names an intrusion set and lists indicators. Save this sample as `sample-feed/feed.json`, to test without the real feed: `sample-feed/feed.json`: ```json { "generated": "2026-01-15T10:00:00Z", "items": [ { "id": "HTF-2026-0007", "title": "Velvet Harbor phishing kit mimics hotel booking confirmations", "published": "2026-01-14T08:00:00Z", "summary": "Phishing emails sent to front-desk staff link to look-alike booking pages that collect property-management credentials.", "actor": "Velvet Harbor", "confidence": 70, "indicators": [ {"type": "domain", "value": "booking-confirm-velvet.example.net"}, {"type": "ipv4", "value": "203.0.113.24"} ] }, { "id": "HTF-2026-0008", "title": "Velvet Harbor reuses guest Wi-Fi portal infrastructure", "published": "2026-01-15T07:30:00Z", "summary": "A guest Wi-Fi captive portal clone hosted on a new server redirects guests to a credential harvesting page.", "actor": "Velvet Harbor", "confidence": 60, "indicators": [ {"type": "url", "value": "https://wifi-portal-velvet.example.net/login"}, {"type": "ipv4", "value": "198.51.100.77"} ] } ] } ``` `client.py` fetches the items and keeps the ones published after a date, oldest first. It knows nothing about OpenCTI: `src/client.py`: ```python """Reads the hospitality threat feed.""" import requests class FeedClient: def __init__(self, url: str, api_key: str): self.url = url self.session = requests.Session() self.session.headers["Authorization"] = f"Bearer {api_key}" def items_since(self, since: str | None) -> list[dict]: """Return the feed items published after `since` (ISO 8601), oldest first.""" response = self.session.get(self.url, timeout=60) response.raise_for_status() items = response.json()["items"] if since: items = [item for item in items if item["published"] > since] return sorted(items, key=lambda item: item["published"]) ``` ## Step 3: Turn items into STIX 2.1 {#step-3-turn-items-into-stix-2-1} `converter.py` builds the STIX objects with the `stix2` library, which `pycti` installs. Three rules make a connector a good citizen: - **Deterministic identifiers.** Each object gets the identifier OpenCTI would compute itself, from `pycti`'s `generate_id` functions: `IntrusionSet.generate_id(name)`, `Indicator.generate_id(pattern)`, `Report.generate_id(name, published)`. Sent twice, the same object updates the existing one instead of creating a duplicate, and the `Hospitality` sector merges with the one the platform already has. - **An author and a marking on every object.** `created_by_ref` points to the `Example CERT` organization, and `object_marking_refs` to TLP:GREEN. Analysts can then filter by source, and markings restrict who sees the data. - **A confidence on every object.** The feed rates each item; the worker caps it at the confidence level of the connector's user. Two OpenCTI properties extend the STIX indicator: `x_opencti_main_observable_type`, the observable type the pattern detects, and `x_opencti_create_observables`, which makes the worker also create the observable. `src/converter.py`: ```python """Turns feed items into STIX 2.1 objects that OpenCTI understands.""" import stix2 from pycti import ( Identity, Indicator, IntrusionSet, Report, StixCoreRelationship, ) # How each indicator type of the feed becomes a STIX pattern and an OpenCTI observable type PATTERNS = { "domain": ("[domain-name:value = '{}']", "Domain-Name"), "ipv4": ("[ipv4-addr:value = '{}']", "IPv4-Addr"), "url": ("[url:value = '{}']", "Url"), } class Converter: def __init__(self, author_name: str): # Every object carries its author and a TLP marking self.author = stix2.Identity( id=Identity.generate_id(author_name, "organization"), name=author_name, identity_class="organization", ) self.marking = stix2.TLP_GREEN self.sector = stix2.Identity( id=Identity.generate_id("Hospitality", "class"), name="Hospitality", identity_class="class", created_by_ref=self.author.id, object_marking_refs=[self.marking.id], ) def _common(self, confidence: int) -> dict: return { "created_by_ref": self.author.id, "object_marking_refs": [self.marking.id], "confidence": confidence, } def to_stix(self, item: dict) -> list: common = self._common(item["confidence"]) intrusion_set = stix2.IntrusionSet( id=IntrusionSet.generate_id(item["actor"]), name=item["actor"], **common, ) objects = [intrusion_set] targets = stix2.Relationship( id=StixCoreRelationship.generate_id( "targets", intrusion_set.id, self.sector.id ), relationship_type="targets", source_ref=intrusion_set.id, target_ref=self.sector.id, **common, ) objects.append(targets) for entry in item["indicators"]: template, observable_type = PATTERNS[entry["type"]] pattern = template.format(entry["value"]) indicator = stix2.Indicator( id=Indicator.generate_id(pattern), name=entry["value"], pattern=pattern, pattern_type="stix", valid_from=item["published"], custom_properties={ "x_opencti_main_observable_type": observable_type, "x_opencti_create_observables": True, }, **common, ) indicates = stix2.Relationship( id=StixCoreRelationship.generate_id( "indicates", indicator.id, intrusion_set.id ), relationship_type="indicates", source_ref=indicator.id, target_ref=intrusion_set.id, **common, ) objects += [indicator, indicates] report = stix2.Report( id=Report.generate_id(item["title"], item["published"]), name=item["title"], description=item["summary"], published=item["published"], report_types=["threat-report"], object_refs=[obj.id for obj in objects] + [self.sector.id], external_references=[ {"source_name": "Hospitality threat feed", "external_id": item["id"]} ], **common, ) return objects + [report] def bundle(self, items: list[dict]) -> str: objects = [self.author, self.marking, self.sector] for item in items: objects += self.to_stix(item) return stix2.Bundle(objects=objects, allow_custom=True).serialize() ``` ## Step 4: Write the connector {#step-4-write-the-connector} `main.py` ties the pieces together with the connector helper: - `OpenCTIConnectorHelper(config)` reads every `OPENCTI_*` and `CONNECTOR_*` setting, environment variable first, then `config.yml`, then default. It registers the connector and starts its heartbeat. - `get_config_variable()` reads the connector's own settings the same way. - `helper.get_state()` and `helper.set_state()` read and save a dictionary on the platform. The connector keeps the date of the last item it imported, so a restart does not import everything again. - `helper.api.work.initiate_work()` opens a work, the record of one run that the **Works** tab of the connector shows; `send_stix2_bundle(bundle, work_id=...)` attaches the bundle to it; `to_processed()` closes it with a message. - `helper.schedule_iso()` runs `process()` at once, then every `CONNECTOR_DURATION_PERIOD`, an ISO 8601 duration. Before each run, it checks the connector's queue: when more than `CONNECTOR_QUEUE_THRESHOLD` megabytes (500) wait for the workers, it skips the run. `src/main.py`: ```python """Hospitality threat feed connector for OpenCTI.""" import os import sys from datetime import datetime, timezone import yaml from pycti import OpenCTIConnectorHelper, get_config_variable from client import FeedClient from converter import Converter def load_config() -> dict: path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "config.yml") if not os.path.isfile(path): return {} with open(path, encoding="utf-8") as file: return yaml.safe_load(file) class HospitalityFeedConnector: def __init__(self): config = load_config() # Reads every OPENCTI_* and CONNECTOR_* setting and registers the connector self.helper = OpenCTIConnectorHelper(config) # Settings of this connector: environment variable, then config.yml, then default def setting(name, key, **kwargs): return get_config_variable(name, ["hospitality_feed", key], config, **kwargs) self.feed = FeedClient( url=setting("HOSPITALITY_FEED_URL", "url", required=True), api_key=setting("HOSPITALITY_FEED_API_KEY", "api_key", required=True), ) self.converter = Converter( setting("HOSPITALITY_FEED_AUTHOR", "author", default="Example CERT") ) self.duration_period = get_config_variable( "CONNECTOR_DURATION_PERIOD", ["connector", "duration_period"], config, default="PT1H", ) def process(self): state = self.helper.get_state() or {} since = state.get("last_published") items = self.feed.items_since(since) if not items: self.helper.connector_logger.info("No new item", {"since": since}) return # A work groups what one run sends: the Works tab of the connector shows it now = datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S") work_id = self.helper.api.work.initiate_work( self.helper.connect_id, f"Hospitality threat feed run @ {now}" ) try: bundle = self.converter.bundle(items) sent = self.helper.send_stix2_bundle(bundle, work_id=work_id) message = f"{len(items)} feed items sent in {len(sent)} bundles" self.helper.api.work.to_processed(work_id, message) self.helper.connector_logger.info(message) # Saved on the platform: the next run starts from here, even after a restart self.helper.set_state({"last_published": items[-1]["published"]}) except Exception as error: self.helper.api.work.to_processed(work_id, str(error), in_error=True) raise def run(self): # Runs process() now, then every CONNECTOR_DURATION_PERIOD self.helper.schedule_iso( message_callback=self.process, duration_period=self.duration_period ) if __name__ == "__main__": try: HospitalityFeedConnector().run() except Exception as error: print(error, file=sys.stderr) sys.exit(1) ``` The connector never creates objects through the API. `send_stix2_bundle()` splits the bundle and sends it to the connector's queue, and the workers write it in the background, in the right order, with retries: a connector can send thousands of objects without waiting. ## Step 5: Run it once {#step-5-run-it-once} Copy `src/config.yml.sample` to `src/config.yml`. It holds the settings that are not secret; the token and the feed key come from the environment. `src/config.yml.sample`: ```yaml # Secrets (OPENCTI_TOKEN, HOSPITALITY_FEED_API_KEY) come from the environment opencti: url: 'http://localhost:8080' connector: id: '0e5a7f8c-2b4d-4c1e-9f3a-6d8b1c2e4f70' type: 'EXTERNAL_IMPORT' name: 'Hospitality threat feed' scope: 'report,indicator,intrusion-set' log_level: 'info' duration_period: 'PT1H' hospitality_feed: url: 'https://feeds.example.com/hospitality/v1/items.json' author: 'Example CERT' ``` `CONNECTOR_ID` must be a UUIDv4 of its own: generate one with `python3 -c 'import uuid; print(uuid.uuid4())'` and keep it. The platform stores the connector's state and works under it. 1. Serve the sample feed in a second terminal: ```bash cd hospitality-feed/sample-feed python3 -m http.server 8791 --bind 127.0.0.1 ``` 2. Run the connector once, with the token of your user already in `OPENCTI_TOKEN`: ```bash cd hospitality-feed/src export HOSPITALITY_FEED_URL=http://127.0.0.1:8791/feed.json export HOSPITALITY_FEED_API_KEY=local-test-key export CONNECTOR_RUN_AND_TERMINATE=true export CONNECTOR_QUEUE_PROTOCOL=api export OPENCTI_JSON_LOGGING=false python main.py ``` `CONNECTOR_RUN_AND_TERMINATE=true` runs `process()` once and exits. `CONNECTOR_QUEUE_PROTOCOL=api` sends the bundles through the platform API, because RabbitMQ is usually not reachable from your workstation. `OPENCTI_JSON_LOGGING=false` prints plain logs instead of JSON lines. **Check that it worked: The connector registers, sends, and exits** ```text INFO:Hospitality threat feed:Connector registered with ID INFO:Hospitality threat feed:Starting run and terminate INFO:api:Initiate work INFO:api:Pushing a bundle to queue through API INFO:api:Reporting work update_processed INFO:Hospitality threat feed:2 feed items sent in 15 bundles INFO:Hospitality threat feed:Closing run and terminate ``` The helper splits the bundle into one bundle per object, in the order the workers need: 15 distinct objects here, because the intrusion set and its `targets` relationship appear in both items. ## Step 6: Check what OpenCTI created {#step-6-check-what-opencti-created} In OpenCTI, open **Integrations** and the **Hospitality threat feed** connector in the **Deployed** tab. Its **Works** tab shows the run, its 15 operations, and any object the platform refused. ![The Works tab of the Hospitality threat feed connector lists a completed work with its operations completed out of the total and a button counting its errors.](https://filigran.io/docs/shots/8fa82c79bf5d0a7ac11e1e90fa845856b0a5f7237a1860f23a92b3936ab63376.webp) The reports are in **Analyses > Reports**. To check from code, list the reports published after January 13, 2026: `verify.py`: ```python import os from pycti import OpenCTIApiClient client = OpenCTIApiClient(os.environ["OPENCTI_URL"], os.environ["OPENCTI_TOKEN"], log_level="error") reports = client.report.list( filters={ "mode": "and", "filters": [{"key": "published", "values": ["2026-01-13T00:00:00Z"], "operator": "gt"}], "filterGroups": [], }, orderBy="published", orderMode="asc", ) for report in reports: print( report["published"][:10], report["name"], "| author:", report["createdBy"]["name"], "| confidence:", report["confidence"], "| objects:", len(report["objectsIds"]), ) ``` ```text 2026-01-14 Velvet Harbor phishing kit mimics hotel booking confirmations | author: Example CERT | confidence: 70 | objects: 5 2026-01-15 Velvet Harbor reuses guest Wi-Fi portal infrastructure | author: Example CERT | confidence: 60 | objects: 7 ``` Each report keeps the confidence of its feed item, because the administrator's maximum confidence level is 100. With a connector user capped at 50, both reports would show 50. When the **Works** tab counts errors, open them. A common one on a first run is `INDICATOR_PATTERN_EXCLUDED`: an indicator matches an exclusion list of **Settings > Customization > Exclusion lists**, and the platform refuses it, then refuses the relationships that point to it with `ELEMENT_NOT_FOUND`. The fix is in the data or in the list, not in the connector. Run `python main.py` again: the connector logs `No new item`, because its state holds the date of the last item. To import again, reset the connector from its page: **Reset the connector state** forgets the state and purges its queue. ## Step 7: Describe it for the catalog {#step-7-describe-it-for-the-catalog} XTM Composer deploys connectors from the catalog of the platform. To be listed there, a connector ships two files in `__metadata__/`: `connector_manifest.json`, which describes it, and `connector_config_schema.json`, which lists its settings and becomes the form an administrator fills. pycti also reads the manifest at start: the connector reports its `container_version` and `slug` when it registers. `__metadata__/connector_manifest.json`: ```json { "title": "Hospitality threat feed", "slug": "hospitality-feed", "description": "Imports the reports of the Example CERT hospitality threat feed: the intrusion sets that target hotel chains, their indicators, and the report that ties them together.", "short_description": "Reports, intrusion sets and indicators on threats to the hospitality sector.", "logo": null, "use_cases": ["Market Vertical & Mission-Specific Intelligence"], "solution_categories": ["Threat Intelligence Feed"], "license_type": "Free", "contact": "cti@example.com", "verified": false, "last_verified_date": null, "playbook_supported": false, "max_confidence_level": 70, "support_version": ">=7.261030", "subscription_link": "https://feeds.example.com/hospitality", "source_code": "https://git.example.com/example-cert/connector-hospitality-feed", "manager_supported": true, "container_version": "1.0.0", "container_image": "registry.example.com/example-cert/connector-hospitality-feed", "container_type": "EXTERNAL_IMPORT" } ``` [Integration manifest](https://filigran.io/docs/develop/build/manifest/) explains every field, writes the configuration schema of this connector, and builds a catalog that OpenCTI can load. ## Step 8: Run it in Docker on a schedule {#step-8-run-it-in-docker-on-a-schedule} Package the connector as an image. The `Dockerfile` installs the dependencies, copies the code, and copies the manifest of step 7, from which pycti reads the version and the slug the connector reports when it registers: `Dockerfile`: ```dockerfile FROM python:3.12-slim ENV PYTHONUNBUFFERED=1 WORKDIR /opt/connector-hospitality-feed COPY src/requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY src . # pycti reports the version and slug of the manifest when the connector registers COPY __metadata__/connector_manifest.json __metadata__/ ENTRYPOINT ["python", "main.py"] ``` Add a `.dockerignore` with `src/config.yml`, so that your local configuration stays out of the image. In Docker, every setting is an environment variable. The service joins the network of the XTM stack, `xtm_default`, where OpenCTI is `http://opencti:8080` and RabbitMQ is reachable, so the connector uses RabbitMQ, the default. **Example: Import the Example CERT hospitality feed every hour** Example CERT runs the connector next to its XTM stack. The feed is at `https://feeds.example.com/hospitality/v1/items.json`; its key and the connector's token are in the `.env` file of the deployment, as `HOSPITALITY_FEED_API_KEY` and `OPENCTI_TOKEN`. `docker-compose.yml`: ```yaml services: connector-hospitality-feed: build: . image: example-cert/connector-hospitality-feed:1.0.0 environment: - OPENCTI_URL=http://opencti:8080 - OPENCTI_TOKEN=${OPENCTI_TOKEN} - CONNECTOR_ID=0e5a7f8c-2b4d-4c1e-9f3a-6d8b1c2e4f70 - CONNECTOR_TYPE=EXTERNAL_IMPORT - CONNECTOR_NAME=Hospitality threat feed - CONNECTOR_SCOPE=report,indicator,intrusion-set - CONNECTOR_LOG_LEVEL=info - CONNECTOR_DURATION_PERIOD=PT1H - HOSPITALITY_FEED_URL=https://feeds.example.com/hospitality/v1/items.json - HOSPITALITY_FEED_API_KEY=${HOSPITALITY_FEED_API_KEY} restart: always networks: - xtm networks: xtm: external: true name: xtm_default ``` ```bash docker compose up -d --build docker compose logs connector-hospitality-feed ``` In Docker, the logs are JSON lines. After the first run, the connector waits for the next one: ```text {"timestamp": "2026-11-01T22:57:41.169417Z", "level": "INFO", "name": "Hospitality threat feed", "message": "Connector registered with ID", "attributes": {"id": "0e5a7f8c-2b4d-4c1e-9f3a-6d8b1c2e4f70"}} {"timestamp": "2026-11-01T22:57:41.175210Z", "level": "INFO", "name": "Hospitality threat feed", "message": "No new item", "attributes": {"since": "2026-01-15T07:30:00Z"}} {"timestamp": "2026-11-01T22:57:41.192690Z", "level": "INFO", "name": "Hospitality threat feed", "message": "Schedule next run of connector", "attributes": {"next_run_datetime": "2026-11-01T23:57:41Z"}} ``` Every hour, the connector imports the items published since its last run. Analysts find them in **Analyses > Reports**, authored by `Example CERT`, and the **Works** tab of the connector records each run. ## Share it {#share-it} To publish the connector to the community, contribute it to [OpenCTI-Platform/connectors](https://github.com/OpenCTI-Platform/connectors). Its templates and guidelines build on `connectors-sdk`, a layer over the same helper that adds typed settings and a ready-made scheduling loop. ## What you learned {#what-you-learned} - A connector registers with its token and writes as that token's user, with its confidence level: [Connectors](https://filigran.io/docs/develop/integration-model/connectors/). - Deterministic identifiers, authors, markings and confidence make imported data merge cleanly: [Script OpenCTI in Python](https://filigran.io/docs/develop/build/python-client/) shows the same identifiers from the API side. - Works and state make each run visible and resumable, and a manifest makes the connector deployable from the interface: [Integration manifest](https://filigran.io/docs/develop/build/manifest/). --- # Build an OpenAEV injector > Write an external OpenAEV injector in Python, from its contract to the result of each inject, run it against your platform, see its inject type in an atomic test, and package it with Docker. - URL: https://filigran.io/docs/develop/build/injector/ - Products: OpenAEV 3.261118.0 - For: developers, platform engineers - Type: How-to guide This page builds an external injector that adds a new inject type to OpenAEV: **Send a fake booking request**, which posts a booking request carrying a suspicious link to the booking API of Grand Meridian Hotels, the way Velvet Harbor lures front-desk staff. It talks to the platform directly, with the REST API and RabbitMQ, in under 200 lines of Python, so you see every exchange and can port it to another language. Read [Injectors](https://filigran.io/docs/develop/integration-model/injectors/) first for the protocol it follows. **Diagram: The booking probe injector, from its registration to the result of each inject** - Injector: contract.py (Fields of the form), main.py (Register, ping, consume) - OpenAEV: REST API (Registration and status), RabbitMQ (Queue of the injector) - Grand Meridian Hotels: Booking API (booking.example.com) Connections: - contract.py → main.py: contract - main.py → REST API: register every 40 s - RabbitMQ → main.py: inject - main.py → Booking API: fake booking request - main.py → REST API: reception and result ## Before you start {#before-you-start} - An OpenAEV 3.261029.0 platform, here at `https://openaev.example.com`, and the identifier of the tenant the injector serves. The address of the interface shows it after the host; a platform with one tenant has the default tenant, `2cffad3a-0001-4078-b0e2-ef74274022c3`. - A user for the injector, with a role that grants **Manage tenant settings** (to register) and **Manage assessment** (to report results), and its API token from its profile. - RabbitMQ reachable from where the injector runs, under the host name and port of the platform's `openaev.rabbitmq.hostname` and `openaev.rabbitmq.port` ([`openaev.rabbitmq` block](https://filigran.io/docs/reference/openaev/configuration/#openaev-rabbitmq)): the platform hands these to the injector. - Python 3.10 or later, and Docker for the last step. ## Lay out the project {#lay-out-the-project} ```text booking-probe/ ├── src/ │ ├── contract.py │ ├── main.py │ └── requirements.txt └── Dockerfile ``` `src/requirements.txt`: ```text requests~=2.33 pika~=1.3 ``` ## Describe the contract {#describe-the-contract} The contract is what the user sees: the inject type in the list, and the form with its fields. Its `contract_id` must never change once scenarios use it: a contract that disappears from the registration is deleted with its injects. The MITRE ATT&CK identifier links the contract to the technique, when the tenant has the MITRE ATT&CK knowledge base. `src/contract.py`: ```python import json INJECTOR_TYPE = "grand_meridian_booking_probe" CONTRACT_ID = "5d0c3a8e-2f4b-4c39-9a51-7f2e8c1b6d40" def contract_content() -> dict: """The contract as the interface reads it: the form of the inject.""" return { "contract_id": CONTRACT_ID, "config": { "type": INJECTOR_TYPE, "label": {"en": "Booking probe", "fr": "Sonde de réservation"}, "color_dark": "#7e57c2", "color_light": "#5e35b1", }, "label": { "en": "Send a fake booking request", "fr": "Envoyer une fausse demande de réservation", }, "manual": False, "fields": [ { "key": "booking_url", "label": "Booking API URL", "type": "text", "mandatory": True, "readOnly": False, "defaultValue": "https://booking.example.com/api/requests", }, { "key": "attachment_url", "label": "Link in the request", "type": "text", "mandatory": True, "readOnly": False, "defaultValue": "https://reservations-confirm.example.com/booking-4821.pdf", }, ], "variables": [], "context": {}, } def registration_contracts() -> list[dict]: """The contracts as the registration sends them.""" content = contract_content() return [ { "contract_id": CONTRACT_ID, "contract_labels": content["label"], "contract_attack_patterns_external_ids": ["T1566.002"], "contract_content": json.dumps(content), "contract_platforms": ["Service"], "is_atomic_testing": True, } ] ``` ## Register, then keep registering {#register-then-keep-registering} The injector registers at start, and again every 40 seconds: the interface shows it as stopped when its last registration is more than two minutes old. The answer carries the RabbitMQ credentials of the platform; never log it. `src/main.py`, first part: ```python import json import os import ssl import threading import time import pika import requests from contract import INJECTOR_TYPE, registration_contracts OPENAEV_URL = os.environ["OPENAEV_URL"].rstrip("/") OPENAEV_TOKEN = os.environ["OPENAEV_TOKEN"] OPENAEV_TENANT_ID = os.environ["OPENAEV_TENANT_ID"] INJECTOR_ID = os.environ["INJECTOR_ID"] INJECTOR_NAME = os.environ.get("INJECTOR_NAME", "Booking probe") API = f"{OPENAEV_URL}/api/tenants/{OPENAEV_TENANT_ID}" HEADERS = {"Authorization": f"Bearer {OPENAEV_TOKEN}"} PING_SECONDS = 40 def register() -> dict: registration = { "injector_id": INJECTOR_ID, "injector_name": INJECTOR_NAME, "injector_type": INJECTOR_TYPE, "injector_contracts": registration_contracts(), "injector_author": "Grand Meridian Hotels", } response = requests.post( f"{API}/injectors", headers=HEADERS, files={"input": (None, json.dumps(registration), "application/json")}, timeout=30, ) response.raise_for_status() return response.json() def keep_registering() -> None: while True: time.sleep(PING_SECONDS) try: register() except requests.RequestException as error: print(f"Registration failed, next try in {PING_SECONDS} s: {error}") ``` ## Run each inject and report it {#run-each-inject-and-report-it} Each message of the queue is one inject. `inject_content` holds the values the user entered, by the `key` of each field. The injector tells the platform it received the inject, which moves it to **Pending**, does the work, then posts the result with `complete`, which closes it. It acknowledges the message last, so an inject is not lost if the injector stops halfway. `src/main.py`, second part: ```python def report(inject_id: str, step: str, body: dict) -> None: response = requests.post( f"{API}/injects/execution/{step}/{inject_id}", headers=HEADERS, json=body, timeout=30 ) response.raise_for_status() def handle(channel, method, properties, body) -> None: inject = json.loads(body)["injection"] inject_id = inject["inject_id"] values = inject.get("inject_content") or {} report(inject_id, "reception", {"tracking_total_count": 1}) started = time.monotonic() try: answer = requests.post( values["booking_url"], json={ "guest_name": "Laurent Diaz", "arrival": "2026-01-23", "nights": 2, "message": "Please confirm my booking with the attached document.", "attachment": values["attachment_url"], }, timeout=20, ) status, message = "SUCCESS", f"The booking API answered HTTP {answer.status_code}." except requests.RequestException as error: status, message = "ERROR", f"The booking API could not be reached: {error}" report( inject_id, "callback", { "execution_message": message, "execution_status": status, "execution_duration": int((time.monotonic() - started) * 1000), "execution_action": "complete", }, ) channel.basic_ack(delivery_tag=method.delivery_tag) def connect(info: dict) -> pika.BlockingConnection: tls = pika.SSLOptions(ssl.create_default_context(), info["host"]) if info["use_ssl"] else None return pika.BlockingConnection( pika.ConnectionParameters( host=info["host"], port=info["port"], virtual_host=info["vhost"], credentials=pika.PlainCredentials(info["user"], info["pass"]), ssl_options=tls, ) ) if __name__ == "__main__": registration = register() threading.Thread(target=keep_registering, daemon=True).start() channel = connect(registration["connection"]).channel() channel.basic_qos(prefetch_count=1) channel.basic_consume(queue=registration["listen"], on_message_callback=handle) print(f"{INJECTOR_NAME} waits for injects on {registration['listen']}") channel.start_consuming() ``` ## Run it {#run-it} 1. Generate the injector's identifier once, and keep it: `python3 -c 'import uuid; print(uuid.uuid4())'`. 2. Set the variables and start the injector, as in the example below. It prints the queue it listens to. 3. In OpenAEV, open **Integrations**, **Deployed** tab. The injector shows under its name, **Started**, with the time the platform last heard from it. ![The Deployed tab of Integrations filtered on injectors lists each injector with its status, the built-in ones marked Built-in; a registered external injector joins the list under its name.](https://filigran.io/docs/shots/fb6b7e9f8ed5c2cebaf5e611de86fe1416bc53018e1613f30de0494fab9fc270.webp) 4. Open **Atomic testings** and click **Create**. Search for **Send a fake booking request**, choose it, check the two fields and launch the test. **Example: Probe the booking API with a Velvet Harbor lure** The red team of Grand Meridian Hotels wants to know whether the web application firewall in front of the booking API stops a booking request that carries a link to a look-alike confirmation page, as Velvet Harbor sent to the Paris front desk in January 2026. A developer runs the injector next to the staging booking API: ```bash cd booking-probe/src python3 -m venv .venv && . .venv/bin/activate pip install -r requirements.txt export OPENAEV_URL=https://openaev.example.com export OPENAEV_TOKEN="$BOOKING_PROBE_OPENAEV_TOKEN" export OPENAEV_TENANT_ID=2cffad3a-0001-4078-b0e2-ef74274022c3 export INJECTOR_ID=9f2d6c1e-4b7a-4e0c-8d5f-3a1b2c4d5e6f export INJECTOR_NAME="Booking probe" python3 main.py ``` The atomic test **Send a fake booking request** keeps the default URL `https://booking.example.com/api/requests` and the link `https://reservations-confirm.example.com/booking-4821.pdf`. Its **Execution details** tab reads `The booking API answered HTTP 403.`: the firewall blocked the request. An answer `HTTP 201` would mean the lure reached the booking system. ## Check that it works {#check-that-it-works} - The atomic test ends **Executed** when the request was sent, or **Error** when the booking API could not be reached, and its **Execution details** tab shows the message of the callback. - An inject that stays **Pending** for more than 10 minutes, `inject.execution.threshold.minutes`, times out: the injector received it but never posted `complete`. Look at the injector's output for an error of the callback. - The registration fails with HTTP 404: the user's role lacks **Manage tenant settings**. OpenAEV answers a missing right with 404, not 403. A 403 `TENANT_ACCESS_DENIED` means the user is not a member of the tenant in the path. - An inject that stays **On-going** without moving to **Pending** never reached the injector: check that the injector is **Started** and that it reaches RabbitMQ under the host name the registration returned. ## Package it {#package-it} `Dockerfile`: ```dockerfile FROM python:3.12-slim WORKDIR /opt/booking-probe COPY src/requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY src/ . CMD ["python", "main.py"] ``` ```bash docker build -t grand-meridian/injector-booking-probe:1.0.0 . docker run -d --name booking-probe \ -e OPENAEV_URL -e OPENAEV_TOKEN -e OPENAEV_TENANT_ID -e INJECTOR_ID -e INJECTOR_NAME \ grand-meridian/injector-booking-probe:1.0.0 ``` The variables are the names the Filigran injectors use, so the same image can later be described in a catalog and deployed by [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/). [Run an integration without XTM Composer](https://filigran.io/docs/deploy/integrations/manual/) covers running it next to the platform. ## Go further {#go-further} - Let the user choose expectations: add a field of type `expectation`, and collectors answer them. See [Collectors](https://filigran.io/docs/develop/integration-model/collectors/). - Report targets: when an inject targets assets, put their identifiers in `execution_context_identifiers`, so each trace shows on its target. - Return findings: post a JSON document in `execution_output_structured` for the contract's outputs. - Use `pyoaev`, Filigran's Python library, which wraps the registration, the heartbeat and the queue for the injectors of [OpenAEV-Platform/injectors](https://github.com/OpenAEV-Platform/injectors). ## What's next {#what-s-next} - [Injectors](https://filigran.io/docs/develop/integration-model/injectors/), every field of the protocol. - [Build an OpenAEV collector](https://filigran.io/docs/develop/build/collector/), to read what the security tools saw of the inject. --- # Integration manifest > The connector manifest and configuration schema that the OpenCTI catalog shows and XTM Composer deploys from, field by field, and how to build a catalog of your own connectors. - URL: https://filigran.io/docs/develop/build/manifest/ - Products: OpenCTI 7.261119.0, XTM Composer 3.261121.0 - For: developers, platform engineers - Type: Reference The manifest describes a connector to the OpenCTI catalog: its name and description on the catalog card, the Docker image XTM Composer deploys, and the settings the deployment form asks for. A connector ships it as two files in its `__metadata__/` folder; a catalog gathers the manifests of many connectors in one JSON file that OpenCTI loads. This page lists every field as OpenCTI 7.261030 reads it, then builds the catalog of the [hospitality threat feed connector](https://filigran.io/docs/develop/build/connector/). ![The connector catalog shows one card per manifest, with its logo, title, short description, use cases and a Deploy button for the connectors XTM Composer can run.](https://filigran.io/docs/shots/92ce4000bd858b51ec9c48b3fa93f88c0fdbcba12b1b7cdbf9facd7fa43ca9f8.webp) ## The files {#the-files} | File | Holds | Read by | | --- | --- | --- | | `__metadata__/connector_manifest.json` | What the catalog shows and what XTM Composer deploys | The catalog build; pycti, which reports `container_version` and `slug` when the connector registers | | `__metadata__/connector_config_schema.json` | The connector's settings, as a JSON Schema | The catalog build, which copies it into the manifest as `config_schema` | | `__metadata__/logo.png` | The logo of the card (any `logo.*` file) | The catalog build, which embeds it as a `data:` URL in `logo` | | A catalog, such as `manifest.json` | `id`, `name`, `description`, `version`, and the `contracts`: one manifest per connector | OpenCTI, at start and every `catalog_manager:interval` | The [OpenCTI-Platform/connectors](https://github.com/OpenCTI-Platform/connectors) repository builds its catalog, `manifest.json`, from the `__metadata__/` folders of its connectors, and each OpenCTI release embeds it. Your own catalogs come on top of it: see [Load your catalog](#load-your-catalog). ## connector_manifest.json {#connector-manifest-json} | Field | Type | What OpenCTI does with it | | --- | --- | --- | | `title` | String | The name on the card and the default display name of a deployment | | `slug` | String, lowercase words joined by `-` | The identifier of the connector across versions. A deployed connector follows the latest compatible version of its slug | | `description` | String | The description on the connector's page in the catalog | | `short_description` | String | The text of the card | | `logo` | `data:` URL, URL or `null` | The logo of the card. The catalog build fills it from `logo.*` | | `use_cases` | Strings | Facets of the catalog, such as `Market Vertical & Mission-Specific Intelligence` or `Vulnerability & Exploit Awareness` | | `solution_categories` | Strings | Facets of the catalog, such as `Threat Intelligence Feed` or `Enrichment & Reputation` | | `license_type` | `Free`, `Commercial` or `null` | Shown on the card | | `contact` | String | Who supports the connector | | `verified`, `last_verified_date` | Boolean, date or `null` | Whether Filigran verified the connector, and when. Deploying a connector that is not verified asks the administrator to acknowledge that Filigran does not support it | | `playbook_supported` | Boolean | Whether the connector can run as a playbook step. Match it with `playbook_compatible=True` in the connector code | | `max_confidence_level` | Integer, 0 to 100 | The confidence level the deployment form proposes for the service account it creates. 100 when absent | | `support_version` | Semantic version range, such as `>=7.261030.0` | The platform versions the connector works with. The catalog marks the connector incompatible on other versions | | `subscription_link` | URL or `null` | Where to subscribe to the data source | | `source_code` | URL | Where the code lives | | `manager_supported` | Boolean | `true`: the card has a **Deploy** button and XTM Composer can run the connector. With a `config_schema`, `container_image` and `container_type` are required, or OpenCTI refuses the whole catalog; without one, OpenCTI logs a warning | | `container_image` | String, without tag | The Docker image XTM Composer pulls | | `container_version` | String | The image tag, `rolling` or a version. XTM Composer runs `container_image:container_version`, plus its `manager.image_tag_suffix` when set (`1.0.0-fips`); pycti reports it as the connector's version | | `container_type` | Connector type | `EXTERNAL_IMPORT`, `INTERNAL_ENRICHMENT`, `INTERNAL_IMPORT_FILE`, `INTERNAL_EXPORT_FILE`, `INTERNAL_ANALYSIS` or `STREAM` | | `config_schema` | JSON Schema | Filled from `connector_config_schema.json` by the catalog build | The manifest of the hospitality threat feed connector: ```json { "title": "Hospitality threat feed", "slug": "hospitality-feed", "description": "Imports the reports of the Example CERT hospitality threat feed: the intrusion sets that target hotel chains, their indicators, and the report that ties them together.", "short_description": "Reports, intrusion sets and indicators on threats to the hospitality sector.", "logo": null, "use_cases": ["Market Vertical & Mission-Specific Intelligence"], "solution_categories": ["Threat Intelligence Feed"], "license_type": "Free", "contact": "cti@example.com", "verified": false, "last_verified_date": null, "playbook_supported": false, "max_confidence_level": 70, "support_version": ">=7.261030", "subscription_link": "https://feeds.example.com/hospitality", "source_code": "https://git.example.com/example-cert/connector-hospitality-feed", "manager_supported": true, "container_version": "1.0.0", "container_image": "registry.example.com/example-cert/connector-hospitality-feed", "container_type": "EXTERNAL_IMPORT" } ``` ## connector_config_schema.json {#connector-config-schema-json} A JSON Schema (draft 2020-12) of type `object`. Each property is a setting, named after its environment variable, because XTM Composer passes the values to the container as environment variables. | Keyword | Effect in the deployment form and in XTM Composer | | --- | --- | | `type` | `string`, `integer`, `boolean`, `array` (of strings) or `dict` | | `description` | The help text of the field | | `default` | The value the form proposes. A field left empty takes it | | `enum` | A choice list | | `format: password` | A secret: the form hides it, OpenCTI stores it encrypted with the public key of XTM Composer, never returns it, and keeps the stored value when an update leaves the field empty. Mark every key and password this way | | `required` | The fields the form asks for first; the others are under the optional settings | | `deprecated: true` | Hidden from the form | | `additionalProperties` | Keep `true`: a deployment can carry settings the schema does not list | OpenCTI validates every deployment against the schema and shows the errors in the form. A few settings never appear in the form, because the platform and XTM Composer set them: `OPENCTI_URL`, `OPENCTI_TOKEN`, `CONNECTOR_TYPE` and `CONNECTOR_RUN_AND_TERMINATE`. `CONNECTOR_ID` comes from the deployment, and the default of `CONNECTOR_NAME` becomes the default display name. `OPENCTI_TOKEN` is a token of the deployment's service account, which OpenCTI creates and encrypts for XTM Composer. The schema of the hospitality threat feed connector: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://example.com/connectors/hospitality-feed_config.schema.json", "type": "object", "properties": { "OPENCTI_URL": { "description": "The base URL of the OpenCTI instance.", "format": "uri", "type": "string" }, "OPENCTI_TOKEN": { "description": "The API token to connect to OpenCTI.", "format": "password", "type": "string", "writeOnly": true }, "CONNECTOR_NAME": { "default": "Hospitality threat feed", "description": "The name of the connector.", "type": "string" }, "CONNECTOR_SCOPE": { "default": ["report", "indicator", "intrusion-set"], "description": "The types of objects the connector imports.", "items": {"type": "string"}, "type": "array" }, "CONNECTOR_LOG_LEVEL": { "default": "error", "description": "The minimum level of logs to display.", "enum": ["debug", "info", "warn", "warning", "error"], "type": "string" }, "CONNECTOR_DURATION_PERIOD": { "default": "PT1H", "description": "Time between two runs, as an ISO 8601 duration.", "format": "duration", "type": "string" }, "HOSPITALITY_FEED_URL": { "default": "https://feeds.example.com/hospitality/v1/items.json", "description": "URL of the feed.", "format": "uri", "type": "string" }, "HOSPITALITY_FEED_API_KEY": { "description": "API key of the feed.", "format": "password", "type": "string", "writeOnly": true }, "HOSPITALITY_FEED_AUTHOR": { "default": "Example CERT", "description": "Organization set as the author of every imported object.", "type": "string" } }, "required": ["OPENCTI_URL", "OPENCTI_TOKEN", "HOSPITALITY_FEED_API_KEY"], "additionalProperties": true } ``` ## Build a catalog {#build-a-catalog} A catalog is a JSON object with an `id`, a `name`, a `description`, a `version` and the list of manifests in `contracts`. This script builds one from every `__metadata__/` folder under the current directory, and runs the checks OpenCTI runs when it loads the catalog. It is stricter on one point: OpenCTI only logs a warning for a `manager_supported` connector without `config_schema`, while the script stops, because the deployment form needs the schema: ```python """Builds a custom OpenCTI catalog from the __metadata__ folder of each connector.""" import json import sys from pathlib import Path from jsonschema import Draft202012Validator contracts = [] for metadata in sorted(Path(".").glob("**/__metadata__")): contract = json.loads((metadata / "connector_manifest.json").read_text()) schema_file = metadata / "connector_config_schema.json" if schema_file.is_file(): contract["config_schema"] = json.loads(schema_file.read_text()) # What OpenCTI checks when it loads the catalog (it only warns when config_schema is missing) if contract["manager_supported"]: for field in ("container_image", "container_type", "config_schema"): if not contract.get(field): sys.exit(f"{contract['slug']}: {field} is required for XTM Composer") Draft202012Validator.check_schema(contract["config_schema"]) contracts.append(contract) print(f"{contract['slug']} {contract['container_version']}: ok") catalog = { "id": "example-cert-catalog", "name": "Example CERT connectors", "description": "Connectors built by Example CERT for its member hotel chains", "version": "7.261030.1", "contracts": contracts, } Path("example-cert-catalog.json").write_text(json.dumps(catalog, indent=2)) ``` It needs `jsonschema` (`pip install jsonschema`). Run it from the folder that holds your connectors: ```bash python build_catalog.py ``` ```text hospitality-feed 1.0.0: ok ``` The result, `example-cert-catalog.json`, starts like this: ```json { "id": "example-cert-catalog", "name": "Example CERT connectors", "description": "Connectors built by Example CERT for its member hotel chains", "version": "7.261030.1", "contracts": [ { "title": "Hospitality threat feed", "slug": "hospitality-feed", ... "config_schema": { "$schema": "https://json-schema.org/draft/2020-12/schema", ... ``` OpenCTI also reads a newer catalog format, marked with `"manifest_schema_version": "1"`, where each contract carries `version`, `image_name`, `image_type`, `min_version` and `max_version`, and puts `playbook_supported` and `max_confidence_level` under `additional_properties`. Write the format above unless you generate catalogs with the tools of the connectors repository. ## Load your catalog {#load-your-catalog} List your catalogs in `app:custom_catalogs` (`APP__CUSTOM_CATALOGS`) of the platform, as a JSON array of file paths the platform can read or `http(s)://` URLs. The catalog manager loads them next to the built-in catalog; their connectors appear in **Integrations**, **Available** tab, and XTM Composer deploys the ones with `manager_supported: true`. [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/#add-your-own-connectors-to-the-opencti-catalog) shows the Docker Compose block. Filigran may remove this setting in a later version. Push the image to a registry XTM Composer can pull from: [Pull integrations from a private registry](https://filigran.io/docs/deploy/integrations/private-registry/) covers a registry that needs credentials. An XTM Composer that sets `manager.image_tag_suffix`, as its FIPS image does with `-fips`, pulls the suffixed tag, such as `connector-hospitality-feed:1.0.0-fips`: push that tag too, or it deploys nothing and logs the failed pull on the connector. See [Configure XTM Composer](https://filigran.io/docs/deploy/integrations/configure-composer/#xtm-composer-itself) for the values it accepts. ## What's next {#what-s-next} - [Build an OpenCTI connector](https://filigran.io/docs/develop/build/connector/), the connector this manifest describes. - [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/), what it does with the catalog. - [Community resources](https://filigran.io/docs/develop/integration-model/resources/), where the catalogs and repositories live. --- # Script OpenCTI in Python > Script the OpenCTI API in Python with pycti - connect, read with filters, create objects with markings and relationships, import a STIX bundle, and run your own GraphQL queries. - URL: https://filigran.io/docs/develop/build/python-client/ - Products: OpenCTI 7.261119.0 - For: developers - Type: How-to guide `pycti` is the official Python library of OpenCTI. Its `OpenCTIApiClient` wraps the GraphQL API: one attribute per entity type (`client.report`, `client.indicator`, `client.intrusion_set`...) with `list`, `read` and `create` methods, plus raw queries and STIX bundle import. This page does the common operations with examples that ran against OpenCTI 7.261030.1. To build a connector, which sends bundles to the workers instead of calling the API for each object, follow [Build an OpenCTI connector](https://filigran.io/docs/develop/build/connector/). **Diagram: Two ways pycti writes to OpenCTI** - Your code: Script or service (OpenCTIApiClient), Connector (OpenCTIConnectorHelper) - Queues: RabbitMQ (The connector's push_ queue) - OpenCTI: GraphQL API (Reads and writes at once), Workers (Write bundles in the background) Connections: - Script or service ↔ GraphQL API: query and mutate - Connector → RabbitMQ: send_stix2_bundle - RabbitMQ → Workers: consume - Workers → GraphQL API: write - Connector → GraphQL API: register, read, state ## Before you start {#before-you-start} - Install the `pycti` version of your platform: `pip install pycti==7.261030.1`. The library and the platform are released together, with the same version number. - Put the platform URL and an API token in `OPENCTI_URL` and `OPENCTI_TOKEN`. Every call runs as the token's user: their capabilities, markings and confidence level apply, as in the interface. ## Connect {#connect} `OpenCTIApiClient` checks the URL and the token when you create it, and raises an error when the platform is unreachable or refuses the token. ```python import os from pycti import OpenCTIApiClient # Checks the URL and the token at once: raises an error if either is wrong client = OpenCTIApiClient( url=os.environ["OPENCTI_URL"], token=os.environ["OPENCTI_TOKEN"], log_level="error", ) me = client.query("query { me { name user_email } about { version } }")["data"] print(f"Connected to OpenCTI {me['about']['version']} as {me['me']['name']}") ``` ```text Connected to OpenCTI 7.261030.1 as admin ``` The constructor also takes `ssl_verify` (`False` by default: pass `True`, or the path of a CA bundle, for an HTTPS platform), `proxies`, `custom_headers` and `requests_timeout`, in seconds (300 by default). `log_level="error"` keeps the client quiet; its default, `info`, logs each call. ## Read with filters {#read-with-filters} `list()` takes a filter group: a `mode` (`and` or `or`), a list of `filters`, each with a `key`, `values` and an `operator` (`eq` by default), and nested `filterGroups`. The keys are the ones of the interface: the [filter keys reference](https://filigran.io/docs/reference/opencti/filter-keys/) lists them per entity type. `read()` returns the first match, or `None`. This example finds the intrusion set Velvet Harbor, then the reports that contain it, published since January 1, 2026: ```python import os from pycti import OpenCTIApiClient client = OpenCTIApiClient(os.environ["OPENCTI_URL"], os.environ["OPENCTI_TOKEN"], log_level="error") velvet_harbor = client.intrusion_set.read( filters={ "mode": "and", "filters": [{"key": "name", "values": ["Velvet Harbor"]}], "filterGroups": [], } ) print("Intrusion set:", velvet_harbor["name"], velvet_harbor["standard_id"]) # The reports that contain Velvet Harbor, published since January 1, 2026 reports = client.report.list( filters={ "mode": "and", "filters": [ {"key": "objects", "values": [velvet_harbor["id"]]}, {"key": "published", "values": ["2026-01-01T00:00:00Z"], "operator": "gte"}, ], "filterGroups": [], }, orderBy="published", orderMode="desc", getAll=True, ) for report in reports: author = (report["createdBy"] or {}).get("name", "no author") print(f"{report['published'][:10]} {report['name']} ({author})") ``` ```text Intrusion set: Velvet Harbor intrusion-set--4e78bb64-59c9-51e3-b1b9-ac8133e1c8e0 2026-01-15 Velvet Harbor reuses guest Wi-Fi portal infrastructure (Example CERT) 2026-01-14 Velvet Harbor phishing kit mimics hotel booking confirmations (Example CERT) 2026-01-12 Velvet Harbor targets hotel booking systems (Example CERT) 2026-01-09 Night-time exports from a hotel booking platform (Grand Meridian Hotels) ``` `list()` returns 100 objects by default (`first`). `getAll=True` follows the pages for you; `withPagination=True` returns the page information too, for your own paging with `after`. ## Create objects {#create-objects} Each `create()` returns the object with its `id`, the internal identifier, and its `standard_id`, the STIX identifier. OpenCTI computes the `standard_id` from the identifying properties of the object, such as the pattern of an indicator or the name of an intrusion set: create the same object twice and the second call updates the first, with the same identifiers. This example creates an indicator authored by Example CERT, marked TLP:GREEN, and the relationship that says it indicates Velvet Harbor: ```python import os from pycti import OpenCTIApiClient from stix2 import TLP_GREEN client = OpenCTIApiClient(os.environ["OPENCTI_URL"], os.environ["OPENCTI_TOKEN"], log_level="error") author = client.identity.create(type="Organization", name="Example CERT") tlp_green = client.marking_definition.read(id=TLP_GREEN["id"]) velvet_harbor = client.intrusion_set.read( filters={"mode": "and", "filters": [{"key": "name", "values": ["Velvet Harbor"]}], "filterGroups": []} ) indicator = client.indicator.create( name="checkin-velvet.example.net", description="Look-alike check-in page sent to hotel guests.", pattern_type="stix", pattern="[domain-name:value = 'checkin-velvet.example.net']", x_opencti_main_observable_type="Domain-Name", valid_from="2026-01-15T10:00:00Z", confidence=70, createdBy=author["id"], objectMarking=[tlp_green["id"]], ) relationship = client.stix_core_relationship.create( fromId=indicator["id"], toId=velvet_harbor["id"], relationship_type="indicates", createdBy=author["id"], objectMarking=[tlp_green["id"]], ) print("Indicator:", indicator["standard_id"]) print("Relationship:", relationship["standard_id"]) ``` ```text Indicator: indicator--5bc47565-1eed-5022-9d7d-2892cceae172 Relationship: relationship--fb4d3042-a0dd-5079-9526-4d3ab0ed96e5 ``` `x_opencti_main_observable_type` is required for an indicator: it is the observable type the pattern detects. The indicator then shows in **Observations > Indicators**, with Velvet Harbor in its relationships. The `confidence` you pass is capped at the user's maximum confidence level. ## Import a STIX bundle {#import-a-stix-bundle} `client.stix2.import_bundle_from_json()` writes a whole STIX 2.1 bundle through the API, object by object, referenced objects first. It returns the imported objects, and the objects left out because they have more references than its `objects_max_refs` argument allows (no limit by default). It runs in your process, as the token's user: use it for a few hundred objects. For more, or on a schedule, a connector sends the bundle to the workers instead. This example adds a note to the report "Velvet Harbor targets hotel booking systems": ```python import os import stix2 from pycti import Identity, Note, OpenCTIApiClient client = OpenCTIApiClient(os.environ["OPENCTI_URL"], os.environ["OPENCTI_TOKEN"], log_level="error") author = stix2.Identity( id=Identity.generate_id("Example CERT", "organization"), name="Example CERT", identity_class="organization", ) report = client.report.read( filters={ "mode": "and", "filters": [{"key": "name", "values": ["Velvet Harbor targets hotel booking systems"]}], "filterGroups": [], } ) note_text = "Three member hotels confirmed the phishing pages on January 15, 2026." note = stix2.Note( id=Note.generate_id(created="2026-01-15T12:00:00Z", content=note_text), created="2026-01-15T12:00:00Z", content=note_text, object_refs=[report["standard_id"]], created_by_ref=author.id, object_marking_refs=[stix2.TLP_GREEN.id], ) bundle = stix2.Bundle(objects=[author, stix2.TLP_GREEN, note], allow_custom=True) # Written at once by the platform, as the token's user: no queue, no worker imported, too_many_refs = client.stix2.import_bundle_from_json(bundle.serialize()) for obj in imported: print("Imported", obj["type"], obj["id"]) ``` ```text Imported identity identity--ac6f7b3a-7aa5-558d-a1bd-4a4f52840f9e Imported marking-definition marking-definition--34098fce-860f-48ae-8e50-ebd3cc5e41da Imported note note--2d4b50aa-e314-56b9-b221-92e4ceadcf41 ``` The `generate_id` functions of `pycti` (`Note.generate_id`, `Identity.generate_id`, `Indicator.generate_id`...) compute the identifier OpenCTI would give the object, so a bundle sent twice merges instead of duplicating. ## Run your own GraphQL query {#run-your-own-graphql-query} `client.query(query, variables)` sends any GraphQL query or mutation and returns the JSON response. Use it for a field or an operation the entity classes do not cover. The [GraphQL schema reference](https://filigran.io/docs/reference/opencti/graphql-schema/) lists the types and fields. This example pages through the indicators whose name contains "velvet", two at a time, with the cursor of each page: ```python import os from pycti import OpenCTIApiClient client = OpenCTIApiClient(os.environ["OPENCTI_URL"], os.environ["OPENCTI_TOKEN"], log_level="error") query = """ query Indicators($filters: FilterGroup, $first: Int, $after: ID) { indicators(filters: $filters, first: $first, after: $after, orderBy: name, orderMode: asc) { pageInfo { globalCount hasNextPage endCursor } edges { node { name x_opencti_score } } } } """ # The indicators whose name contains "velvet", two per page filters = { "mode": "and", "filters": [{"key": "name", "values": ["velvet"], "operator": "contains"}], "filterGroups": [], } after = None while True: page = client.query(query, {"filters": filters, "first": 2, "after": after}) indicators = page["data"]["indicators"] for edge in indicators["edges"]: print(edge["node"]["name"], edge["node"]["x_opencti_score"]) if not indicators["pageInfo"]["hasNextPage"]: break after = indicators["pageInfo"]["endCursor"] print("Total:", indicators["pageInfo"]["globalCount"]) ``` ```text booking-confirm-velvet.example.net 20 booking-velvetharbor.example 90 checkin-velvet.example 85 checkin-velvet.example.net 20 https://booking-velvetharbor.example/login 100 https://wifi-portal-velvet.example.net/login 50 reservations-velvet.example 70 Total: 7 ``` ## Check that it works {#check-that-it-works} Each example prints what the platform returned. In the interface, the objects appear where analysts look for them: the reports in **Analyses > Reports**, the indicator in **Observations > Indicators**, the note under **Notes about this entity** on its report. Their history shows the token's user as creator. **Example: Add an indicator to the Velvet Harbor case** An Example CERT analyst receives a look-alike check-in domain from a member hotel and records it from a script, as in [Create objects](#create-objects): `name` and `pattern` with `checkin-velvet.example.net`, `x_opencti_main_observable_type` `Domain-Name`, `confidence` 70, author `Example CERT`, marking TLP:GREEN, and an `indicates` relationship to the intrusion set Velvet Harbor. The script reads its connection from the environment, where the analyst's token is already in `OPENCTI_TOKEN`: ```bash export OPENCTI_URL=https://cti.example.com python create_indicator.py ``` The indicator appears in **Observations > Indicators** and in the knowledge of Velvet Harbor. Running the script again changes nothing: the indicator and the relationship keep their identifiers. ## What's next {#what-s-next} - [Build an OpenCTI connector](https://filigran.io/docs/develop/build/connector/), to import a feed on a schedule. - [Connectors](https://filigran.io/docs/develop/integration-model/connectors/), the types of connectors and the users they write as. - [GraphQL schema reference](https://filigran.io/docs/reference/opencti/graphql-schema/), every type and field of the API. - More examples are in the [client-python/examples](https://github.com/OpenCTI-Platform/opencti/tree/master/client-python/examples) folder of the OpenCTI repository. --- # Build and run from source > Clone OpenCTI or OpenAEV, start their development services, run the back end and the front end from source, and run the checks and tests of the CI. - URL: https://filigran.io/docs/develop/contribute/build-from-source/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0 - For: developers - Type: How-to guide This page gets OpenCTI or OpenAEV running from its source code on your machine. You change the code, see the change at once, and run the checks of the continuous integration (CI) before your pull request. The services a platform needs (search engine, broker, storage) run in containers; the platform itself runs from source. Install the tools first: [Ubuntu](https://filigran.io/docs/develop/contribute/environment/ubuntu/) or [Windows](https://filigran.io/docs/develop/contribute/environment/windows/). **Diagram: In development, the platform runs from source on your machine and its services run in containers** - Your machine: Browser (localhost:3000) - From source: Front end (Vite dev server, port 3000), Back end (GraphQL API, port 4000), Worker (Python, imports bundles) - opencti-dev containers: Elasticsearch (Port 9200), Redis (Port 6379), RabbitMQ (Port 5672), Silo (S3 storage, port 9000) Connections: - Browser → Front end: opens - Front end → Back end: proxies API calls - Worker → Back end: API calls - Back end → Elasticsearch: indexes - Back end → Redis: streams and cache - Back end → RabbitMQ: queues bundles - Worker → RabbitMQ: consumes - Back end → Silo: stores files ## Before you start {#before-you-start} - The tools of your environment page: Node.js, Yarn through Corepack, a container engine with Compose, and Python 3.12 for OpenCTI or Java 21 and Maven for OpenAEV. - A GitHub account. To propose a change, fork the repository and open the pull request from your fork. - This page follows the default branches: `master` for OpenCTI, `main` for OpenAEV. Commands run from the root of the clone unless a step says otherwise. ## Build and run OpenCTI {#build-and-run-opencti} ### What the repository holds {#what-the-repository-holds} The root `package.json` declares a Yarn workspace (`opencti-platform/opencti-front`, `opencti-platform/opencti-graphql` and the custom ESLint rules) and drives every part with Nx (`nx run-many`). | Folder | What it is | Language | | --- | --- | --- | | `opencti-platform/opencti-graphql` | The back end: GraphQL API, managers, Python bridge | TypeScript and JavaScript on Node.js, Python 3 | | `opencti-platform/opencti-front` | The front end, served by Vite in development | React, TypeScript, Relay | | `opencti-platform/opencti-dev` | The Compose file of the development services, IntelliJ IDEA run configurations | YAML | | `opencti-worker` | The worker, which imports the bundles queued in RabbitMQ | Python | | `client-python` | The Python client `pycti`, used by the worker and the connectors | Python | ### Clone and install the dependencies {#clone-and-install-the-dependencies} 1. Clone the repository: ```bash git clone https://github.com/OpenCTI-Platform/opencti.git cd opencti ``` 2. Create the Python virtual environment next to the clone, in `../.python-venv`: ```bash python3 -m venv ../.python-venv ``` The repository expects it there. The `*:venv` scripts of the root `package.json` activate `../.python-venv` (or the folder in `VENV_PATH`). The back end adds `../.python-venv/lib/python3.12/site-packages` to the import path of its embedded Python, the default of `app:python_execution_venv`. With another Python version, set that key to your `site-packages` folder. 3. Install the JavaScript workspace, then every Python dependency inside the virtual environment: ```bash yarn install yarn deps:venv ``` `yarn deps:venv` runs the `install` target of each part: `client-python` in editable mode, the Python libraries of the back end (`src/python/requirements.txt`) and those of the worker. Yarn runs no install script except for the packages `package.json` allows (`enableScripts: false`), and ignores packages published less than three days ago (`npmMinimalAgeGate`). ### Configure the back end {#configure-the-back-end} The back end reads `config/default.json`, then a file named after its environment over it. `yarn start` builds it in development mode, so it reads `opencti-platform/opencti-graphql/config/development.json`. That file is ignored by Git: put your local values in it. `default.json` already points to the development services on `localhost` with their credentials. Three values have no usable default, and the platform refuses to start without them: | Key | Variable | What it needs | | --- | --- | --- | | `app:admin:password` | `APP__ADMIN__PASSWORD` | Any value except `ChangeMe` | | `app:admin:token` | `APP__ADMIN__TOKEN` | A UUID, and not `ChangeMe`: it is the API token of the admin user | | `app:encryption_key` | `APP__ENCRYPTION_KEY` | At least 32 bytes, base64-encoded: `openssl rand -base64 32` | Write them with a short `development.json`: the other keys keep the values of `default.json`. ```bash OPENCTI_ADMIN_TOKEN=$(python3 -c 'import uuid; print(uuid.uuid4())') OPENCTI_ENCRYPTION_KEY=$(openssl rand -base64 32) cat > opencti-platform/opencti-graphql/config/development.json < opencti-worker/src/config.yml < opencti-platform/opencti-graphql/config/development.json < Add a Flyway migration to OpenAEV that changes the PostgreSQL schema or its data safely, name it so it runs in order, test it, and pass the migrations guard of the CI. - URL: https://filigran.io/docs/develop/contribute/database-migrations/ - Products: OpenAEV 3.261118.0 - For: developers - Type: How-to guide OpenAEV keeps its schema in PostgreSQL and changes it with migrations: Java classes that [Flyway](https://www.red-gate.com/products/flyway/) runs once, in order, when the platform starts. When your change to OpenAEV needs a new table, a new column or a data fix, you add a migration. This page creates one with the right name, writes it so that it is safe on a database in production, tests it, and gets it past the checks of the continuous integration (CI). Set up the code first: [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/#build-and-run-openaev). **Diagram: A migration is a Java class that Flyway runs once, at the next start of the platform, in the order of its version** - Your branch: mvn openaev:migration (Names the class), Migration class (V6___) - Checks: Migration test (Seeds rows, runs it twice), Migrations guard (New ones sort last) - OpenAEV: Flyway at start (Runs what is new) - PostgreSQL: Schema and data (History in migrations) Connections: - mvn openaev:migration → Migration class: creates - Migration class → Migration test: tested - Migration class → Migrations guard: pull request - Migrations guard → Flyway at start: release - Flyway at start → Schema and data: migrate and record ## How OpenAEV runs migrations {#how-openaev-runs-migrations} - The migrations are Java classes in `openaev-api/src/main/java/io/openaev/migration/`, never SQL files. Each extends `BaseJavaMigration` and is a Spring `@Component`. - At every start, Flyway compares them with the `migrations` table of the database, the history of what it applied, and runs the new ones in the order of their version: the part of the class name before `__`, read as numbers separated by `_`. - A migration runs once. Flyway keeps a checksum of each: never edit, rename or delete a migration that is part of a release, write a new one. - Flyway refuses by default a new migration whose version sorts before one already applied. `OPENAEV_FLYWAY_OUT_OF_ORDER=true` (`spring.flyway.out-of-order`) lets it run them anyway, which helps when you switch between branches in development. Applied migrations that no longer exist in the code are ignored (`spring.flyway.ignore-migration-patterns`, `*:missing`). The keys are in the [`spring.flyway` block](https://filigran.io/docs/reference/openaev/configuration/#spring-flyway). The name has the form `V6___`: the major version 6, then the UTC time of its creation to the millisecond, so a new migration sorts after every existing one. ## Create the migration {#create-the-migration} 1. Build the repository once, which also installs the OpenAEV Maven plugin in your local repository: ```bash mvn clean install -DskipTests ``` 2. From the `openaev-api` module, create the class. `reason` gives its description; characters other than letters, digits and `_` become `_`: ```bash cd openaev-api mvn openaev:migration -Dreason="Add collector console url" ``` The plugin writes `src/main/java/io/openaev/migration/V6___Add_collector_console_url.java`, with a `migrate` method that runs `SELECT 1;`. 3. Replace `SELECT 1;` with your change, following the rules below. ## Write it safely {#write-it-safely} A migration runs on databases you will never see, some with millions of rows, during a rolling update where pods of the previous version still run. The rules of the repository: | Rule | Why | How | | --- | --- | --- | | Idempotent | A migration interrupted halfway, or replayed on a database restored from a backup, must not fail | `CREATE TABLE IF NOT EXISTS`, `ADD COLUMN IF NOT EXISTS`, `CREATE INDEX IF NOT EXISTS`, `DROP ... IF EXISTS`; a constraint in a `DO $$ BEGIN IF NOT EXISTS (...) THEN ... END IF; END $$` block | | A default for every new `NOT NULL` column | The table already has rows | `ADD COLUMN IF NOT EXISTS ... NOT NULL DEFAULT ...` | | No drop without a deprecation first | Pods of the previous version still read the column during the update | Stop using it in one release, drop it in a later one | | Tenant isolation for a table of tenant data | OpenAEV separates its tenants in the database | `tenant_id VARCHAR(255) NOT NULL`, a foreign key to `tenants(tenant_id)` with `ON DELETE CASCADE`, an index on `tenant_id`, and every unique constraint on `(field, tenant_id)` | | Batches for large data changes | A single update locks the table for the whole run | Batches of 1,000 rows, walking the primary key; override `canExecuteInTransaction()` to return `false` so each batch commits on its own | | A re-feed of the search index when indexed data changes | The search engine keeps a copy of what it indexes | Move the model's `indexing_status` cursor back and call `EsIndexingUtils.requestRefeedAtStartup("")`, never `DELETE FROM indexing_status`. A new field on an indexed model needs nothing | `V6_20261026151200000__Add_finding_value_display` shows a batched backfill outside a transaction, and `V6_20261022140626000__Request_finding_refeed_after_sensitive_value_masking` a re-feed of the search index. **Example: Store the console address of each collector** A developer adds to OpenAEV the address of the console of each collector's tool, so that the alerts of Meridian SOC, the alert store of Grand Meridian Hotels, link to `https://alerts.example.com`. The column is nullable, so the existing rows need no value: ```java package io.openaev.migration; import java.sql.Statement; import org.flywaydb.core.api.migration.BaseJavaMigration; import org.flywaydb.core.api.migration.Context; import org.springframework.stereotype.Component; /** Adds the address of the console of a collector's tool, to build links to its alerts. */ @Component public class V6_20261109143015201__Add_collector_console_url extends BaseJavaMigration { @Override public void migrate(Context context) throws Exception { try (Statement statement = context.getConnection().createStatement()) { statement.execute( "ALTER TABLE collectors ADD COLUMN IF NOT EXISTS collector_console_url TEXT"); } } } ``` At the next start of the back end, Flyway applies it once, and `collectors` has the new column. The `Collector` entity then maps it with `@Column(name = "collector_console_url")`. ## Run it {#run-it} 1. Start the back end with the `dev` profile, as in [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/#build-and-run-openaev): ```bash mvn spring-boot:run -pl openaev-api -Dspring-boot.run.profiles=dev ``` Flyway runs the new migration before the platform serves requests. An exception in it stops the start. 2. Check that Flyway recorded it: ```bash docker exec openaev-dev-pgsql psql -U openaev -d openaev \ -c "SELECT version, description, success FROM migrations ORDER BY installed_rank DESC LIMIT 3;" ``` The first line is your migration, with `success` at `t`. ## Test it {#test-it} A migration that changes data gets a test in `openaev-api/src/test/java/io/openaev/migration/`. The tests of the repository extend `IntegrationTest`, inject the migration with `@Autowired`, seed rows over JDBC, call `migrate` with a `Context` that returns the test's connection, and check the rows. Run it twice in one test to prove it is idempotent. `SanitizeDocumentNamesMigrationTest` is a complete example. Run one test class with the services of the development environment started: ```bash mvn test -pl openaev-api -Dtest=AddCollectorConsoleUrlMigrationTest ``` ## Pass the migrations guard {#pass-the-migrations-guard} The CI of every pull request compares the migration files of your branch with those of the last release. It fails when the block of released migrations changed: a released migration renamed or deleted, or a new migration that does not sort after all of them. It does not see edits inside a released file, which Flyway's checksum would then refuse on every database that already applied it. Two migrations not released yet may sort in either order: the guard only checks that they come after the released ones. A development database that already applied the later one refuses the earlier one until you start the platform with `OPENAEV_FLYWAY_OUT_OF_ORDER=true`. ## What's next {#what-s-next} - [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/), to run the platform and the tests. - [Executors](https://filigran.io/docs/develop/integration-model/executors/), a part of the platform you may extend with a migration. --- # Write a page of the XTM documentation > Set up the documentation repository, write a page from its template with facts taken from the module code, declare its screenshots, check it as the CI does, and see it built. - URL: https://filigran.io/docs/develop/contribute/docs/ - Products (the whole suite): XTM One 1.261119.1, OpenCTI 7.261119.0, OpenAEV 3.261118.0, OpenCRQ 0.261123.0, XTM Composer 3.261121.0 - For: developers - Type: How-to guide The XTM documentation is plain Markdown in one repository, checked against the code of the modules and built by a static engine for every documented version. This page sets up the repository, writes a page the way its readers and its checks expect, declares the screens it shows, and takes it through the checks of the continuous integration (CI). It is for anyone who changes a page: a writer, a developer documenting their feature, a reviewer. **Diagram: A page is Markdown in docs/, checked against the module code by the factory, illustrated by screens xtm-capture takes, and built by the engine for every version** - You write: Page (docs/, Markdown), Screen spec (capture/shots.yml) - From the module code: xtm-atlas (Labels, keys, routes), xtm-capture (Stacks, seed, screens) - Checked and built: factory:check and Vale (Style, labels, links), Engine (Every documented version) Connections: - Page → factory:check and Vale: checked - xtm-atlas → factory:check and Vale: reference data - Screen spec → xtm-capture: captured - xtm-capture → Engine: screenshots - factory:check and Vale → Engine: pull request ## What the repository holds {#what-the-repository-holds} The repository is the ground truth of the XTM modules, taken from their code and from the running modules. Four parts share it: | Part | Folders | What it does for a page | | --- | --- | --- | | xtm-docs | `docs/content/`, `docs/static/`, `docs/server/`, `engine/`, `factory/` | The pages, the engine that builds them, the checks, the templates and the style guide, and the server that hosts the site and its drafts | | xtm-atlas | `atlas/` | Reads each module's code at each documented version: routes, screen labels, configuration keys, capabilities. The checks and the generated reference pages come from it | | xtm-capture | `capture/` | Starts each module at its version, seeds the demo story, and captures every screenshot in both themes | | xtm-lens | `lens/` | Compares two captures screen by screen, to see what a release changed | The files a writer touches most: | File | What it holds | | --- | --- | | `factory/STYLE.md` | The style guide: one reader per page, titles, names, versions, examples, visuals | | `factory/templates/` | One template per page type: tutorial, how-to, reference, explanation | | `engine/README.md` | Every directive a page can use, such as `:menu`, `:::steps` or `:::only` | | `docs/content/personas.yml` | The readers: what each one knows, what a page must explain to them, the situations of their examples | | `factory/migration-map.yml` | Every page of the site, planned or written, with its title, section and type | | `docs/content/versions.yml` | The versions the site describes: the latest release of each module and the supported OpenCTI LTS lines | | `capture/shots.yml` | The specification of every screenshot | | `capture/stories/hospitality/` | The demo story: Velvet Harbor against hotels, Example CERT, Grand Meridian Hotels | ## Before you start {#before-you-start} - Node.js 20 or later, the Rust toolchain (`cargo`, for the engine), Python 3, and [Vale](https://vale.sh/) for the style check. - GitHub credentials that read the repositories of the XTM platform. The internal ones are skipped without them, and the checks of their pages then do less. ## Set up the repository {#set-up-the-repository} 1. Install the dependencies and fetch the code of the modules: ```bash npm ci npm run atlas:sources npm run atlas:versions ``` `atlas:sources` takes a sparse checkout of each module into `.factory-cache/`, at the refs `atlas/sources.yml` names. `atlas:versions` generates the reference data of every version of `docs/content/versions.yml` into `docs/generated/`. 2. Serve the site while you write: ```bash npm run dev ``` The site answers at `http://localhost:3220` and rebuilds a page a few seconds after you save it. ## Write the page {#write-the-page} 1. Find the page in `factory/migration-map.yml`: its title, its section and its type. Copy the template of its type from `factory/templates/`. 2. Fill the frontmatter: `title`, a `description` of 50 to 200 characters, `doc_type`, `products`, `personas` with the main reader first, `owner` and `last_reviewed`. `factory/schemas/frontmatter.schema.json` lists every field. 3. Title a how-to or a tutorial by what it lets the reader do, starting with a verb: **Share knowledge with your security tools**, not "Native feeds". 4. Take every fact from the code in `.factory-cache/`, never from memory: the label of a button from the module's translation file, a default from its configuration, a capability from the role editor. Name a label in **bold** exactly as the screen shows it, and a menu path with `**Data > Processing > Automation**`. 5. Mark what differs between versions with a block, `:::only{opencti=">=7.261030"}`, bounded on a documented version line. Describe a feature behind a feature flag nowhere: the reader gets what the module does by default. 6. Show the idea: a `::screenshot` of the screen the task happens in, or a `::diagram` drawn from a file of `docs/content/diagrams/`. 7. Give an `:::example[...]` from the demo story, with realistic values: hosts under `example.com`, secrets in named variables, never `foo` or ``. Never write a reference page by hand: the pages under `/reference/` are generated from the code of each version. When the code shows a module defect, write it in `issues//`, in the format of `issues/README.md`. A security weakness is never described in a page: its file is marked `visibility: private`, and the page gives the reader the safe step only. ## Declare a screenshot {#declare-a-screenshot} A screenshot is never an image file you add by hand. It is a specification the factory captures from every documented version, in both themes. 1. Add an entry to `capture/shots.yml`: an `id`, the `product`, and a `capture` block with the seeded account, the route, the steps by accessible role and name, and the part of the screen to keep. The header of the file explains every field. 2. Find the accessible names of a screen on a running stack: ```bash npm run capture:inspect -- opencti /dashboard/data/processing/automation ``` 3. When the screen needs data the story lacks, add it to `capture/stories/hospitality//demo.yml`. A screen that shows "No data has been found." teaches nothing. 4. Place it in the page with the `::screenshot` directive, its `id` and its `alt` text. The alternative text is a full sentence on what the reader should notice. 5. Capture what is missing, for one version: ```bash npm run capture:refresh -- 7.261030.1 --missing ``` ## Check the page {#check-the-page} Run the checks of the CI before you push: ```bash npm run factory:check vale --minAlertLevel=error docs/content/develop/contribute/docs.md ``` `factory:check` reads every page and fails on: | Check | Fails when | | --- | --- | | `frontmatter` | A field is missing or out of the schema | | `images` | A screenshot is not declared, not captured for a version it applies to, or its alternative text is too short | | `labels` | A segment of a `:menu` path is not a label of the module's interface | | `links` | A link reads "here", "click here" or "this page" | | `diagrams` | A diagram file is missing, an arrow joins no card, an icon is unknown, or a page holds a Mermaid block | | `practice` | A page of a product space lacks its screenshot or its example, or its example holds a placeholder | | `visuals` | A page shows neither a screenshot nor a diagram | | `personas` | A persona is unknown, or does not read about the page's products | | `markup` | A directive block is not closed | | `flags` | A page names a feature flag | | `versions` | An `:::only` bound is not a documented version line | | `titles` | A how-to or a tutorial title does not start with a verb | `npm run factory:check -- anchors` checks the links to sections on the built site: build it first with `npm run build`. ## Propose the change {#propose-the-change} Push a branch and open a pull request. The CI fetches the module code, regenerates the reference data, runs `factory:check` and Vale, builds every version and checks accessibility (WCAG 2.2 AA) in both themes. The documentation server builds every branch as a draft for signed-in Filigran people, under `/preview//`, with a band that links to its pull request: reviewers read the page as it will be published, from the **Drafts** menu of the site. **Example: Document a new playbook component** A developer at Example CERT adds a component to OpenCTI playbooks and documents it on the branch `contrib/ana/playbook-hotel-label`. They open `docs/content/opencti/use/automate/playbooks/choose-a-component.md`, add a row for the component with its label read from `en.json`, and add a `:::only{opencti=">=7.261030"}` block around the sentence that describes it. They then run: ```bash npm run dev npm run factory:check vale --minAlertLevel=error docs/content/opencti/use/automate/playbooks/choose-a-component.md git push -u origin contrib/ana/playbook-hotel-label ``` The page shows the row at `http://localhost:3220`, the checks pass, and the reviewers read the draft at `/preview/contrib--ana--playbook-hotel-label/` before they merge. The generated [playbook components reference](https://filigran.io/docs/reference/opencti/playbook-components/) lists the component on its own, from the code. ## What's next {#what-s-next} - The style guide, `factory/STYLE.md`, and the directives, `engine/README.md`, in the repository. - [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/), to run a module and see the screen you document. - [Add or change a translation in OpenCTI or OpenAEV](https://filigran.io/docs/develop/contribute/translations/), when your change adds a text to an interface. --- # Prepare a macOS development environment > Install on macOS, Apple silicon or Intel, the container engine, Node.js, Yarn, Python and Java versions that the OpenCTI and OpenAEV source code requires. - URL: https://filigran.io/docs/develop/contribute/environment/macos/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0 - For: developers - Type: How-to guide This page installs on macOS the tools you need to run OpenCTI or OpenAEV from source: a container engine for their services, and the exact Node.js, Yarn, Python and Java versions their code requires. It works on Apple silicon and on Intel Macs, with [Homebrew](https://brew.sh/). When the tools are in place, continue with [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/). **Diagram: In development, the platform runs from source on your machine and its services run in containers** - Your machine: Browser (localhost:3000) - From source: Front end (Vite dev server, port 3000), Back end (GraphQL API, port 4000), Worker (Python, imports bundles) - opencti-dev containers: Elasticsearch (Port 9200), Redis (Port 6379), RabbitMQ (Port 5672), Silo (S3 storage, port 9000) Connections: - Browser → Front end: opens - Front end → Back end: proxies API calls - Worker → Back end: API calls - Back end → Elasticsearch: indexes - Back end → Redis: streams and cache - Back end → RabbitMQ: queues bundles - Worker → RabbitMQ: consumes - Back end → Silo: stores files ## Before you start {#before-you-start} - A recent macOS, with administrator rights, and Homebrew installed. - Enough memory to give the Linux virtual machine of the container engine 8 GB: the development services run in it, and Elasticsearch alone starts with a 2 GB Java heap in both modules. - The versions below come from the code of OpenCTI 7.261030 and OpenAEV 3.261029. Contributions go to the default branches, `master` for OpenCTI and `main` for OpenAEV. | Tool | OpenCTI | OpenAEV | Where the code sets it | | --- | --- | --- | --- | | Node.js | 22.18.0 or later; the images and CI run Node.js 22 | 24.11.0 or later | `engines` in `package.json` | | Yarn | 4.18.1, through Corepack | 4.18.1, through Corepack | `packageManager` in `package.json` | | Python | 3.12 | Not needed | Images `node:22-alpine3.23` and `python:3.12-alpine` | | Java | Not needed | 21 | `java.version` in `pom.xml` | | Maven | Not needed | 3.9 or later | OpenAEV development guide | | Container engine | Docker Desktop or Colima, with Compose | Docker Desktop or Colima, with Compose | `opencti-dev` and `openaev-dev` | ## Install the shared tools {#install-the-shared-tools} 1. Install the Xcode Command Line Tools, which bring Git and the C and C++ compiler: ```bash xcode-select --install ``` OpenCTI compiles two native Node.js modules at install time, `re2` and `node-calls-python`: they need the compiler. 2. Install a container engine with Compose. Pick one. **Docker Desktop** Install [Docker Desktop for Mac](https://docs.docker.com/desktop/setup/install/mac-install/), start it and wait until the engine runs. In **Settings** > **Resources**, give its virtual machine at least 8 GB of memory. Docker Desktop is free for personal use, education and small businesses; larger organizations need a paid subscription. **Colima** Install Colima, the Docker command line and Compose, then start a virtual machine large enough for Elasticsearch: ```bash brew install colima docker docker-compose colima start --cpu 4 --memory 8 --disk 40 ``` Homebrew installs Compose as a plugin of the Docker command line. Add its folder to `~/.docker/config.json` so that `docker compose` finds it: ```json { "cliPluginsExtraDirs": ["/opt/homebrew/lib/docker/cli-plugins"] } ``` On an Intel Mac, the folder is `/usr/local/lib/docker/cli-plugins`. If `docker compose pull` then fails on `docker-credential-desktop`, remove the `"credsStore": "desktop"` line that Docker Desktop left in the same file. 3. Check the memory map limit of the virtual machine, which Elasticsearch needs at 262144 or more: ```bash docker run --rm alpine cat /proc/sys/vm/max_map_count ``` With Colima, raise it when it is lower, after each start of the virtual machine: ```bash colima ssh -- sudo sysctl -w vm.max_map_count=262144 ``` 4. Install nvm, the Node.js version manager, with the install script of [its README](https://github.com/nvm-sh/nvm/blob/master/README.md#installing-and-updating), then open a new terminal. ## Install the tools for OpenCTI {#install-the-tools-for-opencti} 1. Install Python 3.12: ```bash brew install python@3.12 ``` Create the virtual environment of [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/) with this version, `python3.12 -m venv ../.python-venv`: the back end reads its packages from the `python3.12` folder of the environment. 2. Install Node.js 22 and make it the default: ```bash nvm install 22 nvm alias default 22 ``` 3. Install Corepack, which fetches the Yarn version that `package.json` pins when you run `yarn` in the repository: ```bash npm install -g corepack ``` nvm keeps global packages per Node.js version: install Corepack again for each version you add. **Check that it worked** ```bash node --version python3.12 --version docker compose version ``` Node.js prints `v22.18.0` or later, Python prints `Python 3.12`, and Compose prints its version. In your OpenCTI clone, `yarn --version` prints `4.18.1`. The Elasticsearch service of `opencti-platform/opencti-dev/docker-compose.yml` sets `ES_JAVA_OPTS=-Xms2G -Xmx2G` and nothing for Apple silicon. If it stops at start on an Apple silicon Mac, add `-XX:+IgnoreUnrecognizedVMOptions -XX:UseSVE=0` to `ES_JAVA_OPTS` in a Compose override file of your own, as OpenAEV's development stack does. ## Install the tools for OpenAEV {#install-the-tools-for-openaev} 1. Install Java 21 and Maven: ```bash brew install openjdk@21 maven ``` 2. `openjdk@21` is not linked into your path by Homebrew. Add it to `~/.zshrc`, then open a new terminal: ```bash export JAVA_HOME="$(brew --prefix openjdk@21)" export PATH="$JAVA_HOME/bin:$PATH" ``` Without it, `java -version` answers `Unable to locate a Java Runtime`. 3. Install Node.js 24 and Corepack for it: ```bash nvm install 24 nvm use 24 npm install -g corepack corepack enable ``` Node.js 24 also meets the OpenCTI requirement, but OpenCTI is built and tested on Node.js 22. Switch with `nvm use 22` and `nvm use 24` when you move from one repository to the other. **Check that it worked** ```bash java -version mvn -version node --version ``` Java and Maven report Java 21, Maven reports 3.9 or later, and Node.js prints `v24.11.0` or later. The Elasticsearch and OpenSearch services of `openaev-dev/docker-compose.yml` already pass `-XX:UseSVE=0` for Apple silicon: you change nothing there. **Example: A MacBook for an OpenAEV fix** A developer at Example CERT gets a MacBook with Apple silicon to fix how OpenAEV shows the results of the Velvet Harbor simulation on the front desks of Grand Meridian Hotels. They only need the OpenAEV tools, with Colima: ```bash xcode-select --install brew install colima docker docker-compose openjdk@21 maven colima start --cpu 4 --memory 8 --disk 40 colima ssh -- sudo sysctl -w vm.max_map_count=262144 echo 'export JAVA_HOME="$(brew --prefix openjdk@21)"' >> ~/.zshrc echo 'export PATH="$JAVA_HOME/bin:$PATH"' >> ~/.zshrc # after installing nvm and opening a new terminal nvm install 24 npm install -g corepack corepack enable ``` `java -version` reports Java 21 and `docker compose version` answers, and they continue with [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/). ## Choose an editor {#choose-an-editor} The repositories carry run configurations for IntelliJ IDEA: `opencti-platform/opencti-dev/*.run.xml` for OpenCTI, `openaev-dev/*.run.xml` for OpenAEV. IntelliJ IDEA detects them when you open the repository root. Visual Studio Code works too, without these configurations. ## What's next {#what-s-next} - [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/): clone, configure, start the services and the platform, run the tests. - [Prepare an Ubuntu development environment](https://filigran.io/docs/develop/contribute/environment/ubuntu/), for a Linux workstation. - [Prepare a Windows development environment](https://filigran.io/docs/develop/contribute/environment/windows/), for a Windows workstation. --- # Prepare an Ubuntu development environment > Install on Ubuntu the container engine, Node.js, Yarn, Python and Java versions that the OpenCTI and OpenAEV source code requires. - URL: https://filigran.io/docs/develop/contribute/environment/ubuntu/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0 - For: developers - Type: How-to guide This page installs on Ubuntu the tools you need to run OpenCTI or OpenAEV from source: a container engine for their services, and the exact Node.js, Yarn, Python and Java versions their code requires. It is written for Ubuntu 24.04 LTS. When the tools are in place, continue with [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/). **Diagram: In development, the platform runs from source on your machine and its services run in containers** - Your machine: Browser (localhost:3000) - From source: Front end (Vite dev server, port 3000), Back end (GraphQL API, port 4000), Worker (Python, imports bundles) - opencti-dev containers: Elasticsearch (Port 9200), Redis (Port 6379), RabbitMQ (Port 5672), Silo (S3 storage, port 9000) Connections: - Browser → Front end: opens - Front end → Back end: proxies API calls - Worker → Back end: API calls - Back end → Elasticsearch: indexes - Back end → Redis: streams and cache - Back end → RabbitMQ: queues bundles - Worker → RabbitMQ: consumes - Back end → Silo: stores files ## Before you start {#before-you-start} - Ubuntu 24.04 LTS, with `sudo` rights. Ubuntu 24.04 ships Python 3.12, the version the OpenCTI images and its continuous integration (CI) use. - At least 8 GB of memory for OpenCTI: its development Elasticsearch alone starts with a 2 GB Java heap (`ES_JAVA_OPTS=-Xms2G -Xmx2G` in `opencti-platform/opencti-dev/docker-compose.yml`). - The versions below come from the code of OpenCTI 7.261030 and OpenAEV 3.261029. Contributions go to the default branches, `master` for OpenCTI and `main` for OpenAEV. The LTS branches of OpenCTI use older tools. | Tool | OpenCTI | OpenAEV | Where the code sets it | | --- | --- | --- | --- | | Node.js | 22.18.0 or later; the images and CI run Node.js 22 | 24.11.0 or later | `engines` in `package.json` | | Yarn | 4.18.1, through Corepack | 4.18.1, through Corepack | `packageManager` in `package.json` | | Python | 3.12 | Not needed | Images `node:22-alpine3.23` and `python:3.12-alpine` | | Java | Not needed | 21 | `java.version` in `pom.xml` | | Maven | Not needed | 3.9 or later | OpenAEV development guide | | Container engine | Docker or Podman, with Compose | Docker or Podman, with Compose | `opencti-dev` and `openaev-dev` | ## Install the shared tools {#install-the-shared-tools} 1. Install Git, the C and C++ toolchain, and Python with its `venv` and header packages: ```bash sudo apt-get update sudo apt-get install -y git curl build-essential python3 python3-venv python3-dev ``` OpenCTI compiles two native Node.js modules at install time, `re2` and `node-calls-python`: they need `build-essential` and `python3-dev`. Ubuntu 24.04 refuses `pip install` outside a virtual environment, so you need `python3-venv`. 2. Install a container engine with Compose. Pick one. **Docker** Install Docker Engine and its Compose plugin from the Ubuntu archive, then let your user run Docker without `sudo`: ```bash sudo apt-get install -y docker.io docker-compose-v2 sudo usermod -aG docker "$USER" ``` Log out and back in for the group to apply. Docker's own repository, described in [Install Docker Engine on Ubuntu](https://docs.docker.com/engine/install/ubuntu/), gives more recent versions. **Podman** Install Podman and a Compose provider: ```bash sudo apt-get install -y podman podman-compose ``` The development stacks then start with `podman compose up -d`. 3. Raise the memory map limit that Elasticsearch needs, now and at every boot: ```bash echo 'vm.max_map_count=262144' | sudo tee /etc/sysctl.d/99-elasticsearch.conf sudo sysctl --system ``` Without it, the Elasticsearch container of the development stack can fail to start or stop under load. 4. Install nvm, the Node.js version manager, with the install script of [its README](https://github.com/nvm-sh/nvm/blob/master/README.md#installing-and-updating), then open a new terminal. ## Install the tools for OpenCTI {#install-the-tools-for-opencti} 1. Install Node.js 22 and make it the default: ```bash nvm install 22 nvm alias default 22 ``` 2. Remove Yarn 1 if a global one is installed, then install Corepack. Corepack fetches the Yarn version that `package.json` pins when you run `yarn` in the repository: ```bash npm uninstall -g yarn npm install -g corepack ``` nvm keeps global packages per Node.js version: install Corepack again for each version you add. **Check that it worked** ```bash node --version python3 --version docker compose version ``` Node.js prints `v22.18.0` or later, Python prints `Python 3.12`, and Compose prints its version. In your OpenCTI clone, `yarn --version` prints `4.18.1`. ## Install the tools for OpenAEV {#install-the-tools-for-openaev} 1. Install Java 21 and Maven: ```bash sudo apt-get install -y openjdk-21-jdk maven ``` Ubuntu 24.04 ships Maven 3.8. If `mvn -version` reports a version older than 3.9, install Maven from [maven.apache.org](https://maven.apache.org/download.cgi). 2. Install Node.js 24 and Corepack for it: ```bash nvm install 24 nvm use 24 npm install -g corepack corepack enable ``` Node.js 24 also meets the OpenCTI requirement (22.18.0 or later), but OpenCTI is built and tested on Node.js 22. Switch with `nvm use 22` and `nvm use 24` when you move from one repository to the other. **Check that it worked** ```bash java -version mvn -version node --version ``` Java and Maven report Java 21, Maven reports 3.9 or later, and Node.js prints `v24.11.0` or later. **Example: A new laptop for an OpenCTI fix** A developer at Example CERT gets a fresh Ubuntu 24.04 laptop to fix how OpenCTI displays the reports on Velvet Harbor. They only need the OpenCTI tools, with Docker: ```bash sudo apt-get update sudo apt-get install -y git curl build-essential python3 python3-venv python3-dev docker.io docker-compose-v2 sudo usermod -aG docker "$USER" echo 'vm.max_map_count=262144' | sudo tee /etc/sysctl.d/99-elasticsearch.conf sudo sysctl --system # after installing nvm and opening a new terminal nvm install 22 nvm alias default 22 npm install -g corepack ``` After logging out and back in, `docker compose version` answers without `sudo`, and they continue with [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/). ## Choose an editor {#choose-an-editor} The repositories carry run configurations for IntelliJ IDEA: `opencti-platform/opencti-dev/*.run.xml` for OpenCTI (**1 - Backend start**, **1 - Frontend start**, **Backend docker compose**), `openaev-dev/*.run.xml` for OpenAEV (**Backend start**, **Frontend start**). IntelliJ IDEA detects them when you open the repository root. Visual Studio Code works too, without these configurations. ## What's next {#what-s-next} - [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/): clone, configure, start the services and the platform, run the tests. - [Prepare a Windows development environment](https://filigran.io/docs/develop/contribute/environment/windows/), for a Windows workstation. - [Develop XTM Composer](https://filigran.io/docs/develop/contribute/xtm-composer/), for the Rust component that runs integrations. --- # Prepare a Windows development environment > Set up Windows to run OpenCTI from source in WSL 2, and OpenAEV natively or in WSL 2, with the tool versions their code requires. - URL: https://filigran.io/docs/develop/contribute/environment/windows/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0 - For: developers - Type: How-to guide This page prepares a Windows workstation to run OpenCTI or OpenAEV from source. For OpenCTI, you work in Windows Subsystem for Linux (WSL) 2 with Ubuntu, because its development scripts expect a Linux shell. OpenAEV runs natively on Windows or in WSL 2. When the tools are in place, continue with [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/). **Diagram: In development, the platform runs from source on your machine and its services run in containers** - Your machine: Browser (localhost:3000) - From source: Front end (Vite dev server, port 3000), Back end (GraphQL API, port 4000), Worker (Python, imports bundles) - opencti-dev containers: Elasticsearch (Port 9200), Redis (Port 6379), RabbitMQ (Port 5672), Silo (S3 storage, port 9000) Connections: - Browser → Front end: opens - Front end → Back end: proxies API calls - Worker → Back end: API calls - Back end → Elasticsearch: indexes - Back end → Redis: streams and cache - Back end → RabbitMQ: queues bundles - Worker → RabbitMQ: consumes - Back end → Silo: stores files ## Before you start {#before-you-start} - Windows 10 version 2004 or later, or Windows 11, with administrator rights. - At least 8 GB of memory for OpenCTI: its development Elasticsearch starts with a 2 GB Java heap. - Docker Desktop is free for personal use, education and small businesses; larger organizations need a paid subscription. Check its license terms for your organization, or run Docker Engine inside WSL 2 instead. ## Why OpenCTI needs WSL 2 {#why-opencti-needs-wsl-2} The OpenCTI code assumes Linux in three places: - `scripts/with_python_virtual_env.mjs`, behind the `deps:venv`, `dev:venv` and `test:venv` scripts, runs `sh` and sources `/bin/activate`. A Windows virtual environment has `Scripts\activate` instead. - The native modules `re2` and `node-calls-python` compile at install time. On Windows, they would need Visual Studio Build Tools with the **Desktop development with C++** workload, and Python headers. - The release images and the CI build on Linux (`node:22-alpine3.23`), so a Linux environment behaves like them. The repository forces LF line endings (`* text=auto eol=lf` in `.gitattributes`), so a clone works the same on both sides. ## Set up WSL 2 for OpenCTI {#set-up-wsl-2-for-opencti} 1. In PowerShell run as administrator, install WSL 2 with Ubuntu 24.04, then restart Windows: ```powershell wsl --install -d Ubuntu-24.04 ``` At the first start, Ubuntu asks for a user name and a password for your Linux account. 2. Raise the memory map limit that Elasticsearch needs. Create or edit `%USERPROFILE%\.wslconfig` with: ```ini [wsl2] kernelCommandLine = "sysctl.vm.max_map_count=262144" ``` Then restart WSL from PowerShell with `wsl --shutdown`. The setting applies to every WSL 2 distribution, Docker Desktop's included. 3. Install a container engine. Pick one. **Docker Desktop** Install [Docker Desktop for Windows](https://docs.docker.com/desktop/setup/install/windows-install/) with the WSL 2 backend. In Docker Desktop, open **Settings** > **Resources** > **WSL integration** and turn on **Ubuntu-24.04**. The `docker` command then works inside Ubuntu. **Docker Engine in WSL 2** Install Docker Engine inside Ubuntu, as [Prepare an Ubuntu development environment](https://filigran.io/docs/develop/contribute/environment/ubuntu/#install-the-shared-tools) describes. Skip its `vm.max_map_count` step: `.wslconfig` sets it. 4. Open the Ubuntu terminal and install the rest of the tools as [Prepare an Ubuntu development environment](https://filigran.io/docs/develop/contribute/environment/ubuntu/) describes: Git, `build-essential`, Python 3.12 with `python3-venv` and `python3-dev`, nvm, Node.js 22 and Corepack. 5. Clone the repository inside the Linux file system, in your Linux home folder, not under `/mnt/c`. The file watchers of the front end and the back end are slow and can miss changes on the Windows file system. **Check that it worked** In the Ubuntu terminal: ```bash node --version python3 --version docker compose version cat /proc/sys/vm/max_map_count ``` Node.js prints `v22.18.0` or later, Python prints `Python 3.12`, Compose prints its version, and the last command prints `262144`. A browser on Windows reaches the servers you start in WSL 2 at `http://localhost:`. Visual Studio Code with its WSL extension, or IntelliJ IDEA with its WSL support, opens a project stored in WSL 2. ## Set up Windows for OpenAEV {#set-up-windows-for-openaev} OpenAEV builds with Maven and Node.js, which run natively on Windows. The repository gives Windows variants of its setup commands, such as `setup-auto-db.ps1`. You can also follow the Ubuntu page inside WSL 2. 1. Install Java 21, Maven 3.9 or later and Git: ```powershell winget install EclipseAdoptium.Temurin.21.JDK winget install Apache.Maven winget install Git.Git ``` 2. Install [Docker Desktop for Windows](https://docs.docker.com/desktop/setup/install/windows-install/) with the WSL 2 backend. Elasticsearch needs the `.wslconfig` setting of [Set up WSL 2 for OpenCTI](#set-up-wsl-2-for-opencti). 3. Install [nvm-windows](https://github.com/coreybutler/nvm-windows/releases), then Node.js 24 and Corepack: ```powershell nvm install 24 nvm use 24 npm install -g corepack corepack enable ``` 4. Run the commands of [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/) in Git Bash, installed with Git for Windows: they use bash syntax. **Check that it worked** ```powershell java -version mvn -version node --version docker compose version ``` Java and Maven report Java 21, Maven reports 3.9 or later, Node.js prints `v24.11.0` or later, and Compose prints its version. **Example: A Windows laptop for OpenCTI work** A developer at Example CERT works on a Windows 11 laptop with Docker Desktop. They want to write a connector that imports a hotel-sector feed and test it against OpenCTI built from source: ```powershell wsl --install -d Ubuntu-24.04 # after the restart, in %USERPROFILE%\.wslconfig: # [wsl2] # kernelCommandLine = "sysctl.vm.max_map_count=262144" wsl --shutdown ``` They turn on **Ubuntu-24.04** in **Settings** > **Resources** > **WSL integration** of Docker Desktop, install the OpenCTI tools in the Ubuntu terminal, and clone OpenCTI into `~/opencti`. The platform they start there answers at `http://localhost:3000` in their Windows browser. ## What's next {#what-s-next} - [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/): clone, configure, start the services and the platform, run the tests. - [Prepare an Ubuntu development environment](https://filigran.io/docs/develop/contribute/environment/ubuntu/), the commands to run inside WSL 2. - [Develop XTM Composer](https://filigran.io/docs/develop/contribute/xtm-composer/), for the Rust component that runs integrations. --- # Add or change a translation in OpenCTI or OpenAEV > Wrap a new text of the OpenCTI or OpenAEV interface for translation, add its English key, fill the other eight languages with DeepL, and pass the checks of the CI. - URL: https://filigran.io/docs/develop/contribute/translations/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0 - For: developers - Type: How-to guide The interfaces of OpenCTI and OpenAEV are translated into nine languages: English, German, Spanish, French, Italian, Japanese, Korean, Russian and Chinese. A text on screen is a key, the English text itself, looked up in one JSON file per language. This page takes a new text from your component to every language file, and through the checks the continuous integration (CI) runs on your pull request. Set up the repository first: see [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/). **Diagram: A text wrapped in the translation function becomes a key of en.json, DeepL fills the other languages, and the CI checks every file** - Your change: Component (t('...') or t_i18n('...')) - Translation files: en.json (The reference), Eight languages (de, es, fr, it, ja, ko, ru, zh) - Checks: CI job (Keys, placeholders, terms) Connections: - Component → en.json: extract-translation - en.json → Eight languages: auto-translation:all - Component → CI job: pull request - Eight languages → CI job: checked ## How translation works {#how-translation-works} | | OpenCTI | OpenAEV | | --- | --- | --- | | Translation function | `t_i18n('Add tags')` | `t('Add tags')` | | Interface texts | `opencti-platform/opencti-front/lang/front/.json` | `openaev-front/src/utils/lang/.json` | | Other texts | `lang/back/.json`: the labels of attributes and relationships the back end declares, as `label: '...'` in `opencti-graphql/src` | The messages the back end returns with a `400` or `409`, which the interface passes to `t()`: they must match a key of `en.json` exactly | | Languages | `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `ru`, `zh` | `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, `ru`, `zh` | | Scripts run from | `opencti-platform/opencti-front` | `openaev-front` | The key is the English text: `en.json` maps `"Add tags"` to `"Add tags"`, and `fr.json` maps it to its French. A text built by concatenation, such as `'Unknown scenario: ' + id`, cannot be translated: use a placeholder, `t('Unknown scenario: {id}', { id })`. ## Before you start {#before-you-start} - A clone of the repository with its dependencies installed (`yarn install`). - A DeepL API Free key, to translate the new keys into the eight other languages. The scripts read it from `SUBSCRIPTION_KEY` and stop without it. ## Add a text {#add-a-text} 1. Wrap the text in the translation function of the module: `t_i18n('Replay on the front desks')` in OpenCTI, `t('Replay on the front desks')` in OpenAEV. 2. Add the new keys to `en.json`: ```bash yarn extract-translation ``` The script appends the keys it finds and never removes one. What it finds differs: | | OpenCTI | OpenAEV | | --- | --- | --- | | Files read | `.jsx` and `.tsx` of the front end, and the `label: '...'` of the back end | `.js`, `.jsx` and `.tsx` of the front end | | Calls found | `t_i18n('...')` and `t_i18n("...")`, with or without options | `t('...')` with single quotes and no other argument | Add the others to `en.json` by hand: in OpenAEV, a call with placeholder values, double quotes, an escaped quote, or in a `.ts` file; in both modules, a text passed as a property that a component translates later, such as `label: 'Seen'`. 3. Translate the new keys into the other languages, with your DeepL key in `SUBSCRIPTION_KEY`: ```bash SUBSCRIPTION_KEY="$DEEPL_API_KEY" yarn auto-translation:all ``` The script translates the keys missing from each language file, then sorts the files. OpenCTI translates the `front` and `back` files; OpenAEV also brings the first letter of each new translation to the case of the English source. 4. Read the diff of every language file. DeepL can translate a word out of context, translate a field name or add quotes. Fix them by hand, as [Translation rules](#translation-rules) says. 5. Run the check of the CI: ```bash yarn verify-translation # OpenCTI yarn i18n-checker # OpenAEV ``` To change an existing translation, edit its value in the language file and run the check. To change an English text, change the call in the component and add the new key: the old key stays in the files until someone removes it. ## The checks the CI runs {#the-checks-the-ci-runs} A pull request fails when its check fails. | Module | Job and command | Fails when | | --- | --- | --- | | OpenCTI | **Frontend verify translation**, `yarn verify-translation` | A `t_i18n('...')` of the front end, or a `label: '...'` of the back end, has no key in the matching `en.json` | | OpenAEV | **Frontend Quality & Unit Tests**, `yarn i18n-checker` | See the table below | OpenAEV checks every language file: | Check | Fails when | | --- | --- | | Missing key | A `t()` call uses a key absent from a language file, placeholders, double quotes and escaped quotes included | | Missing or untranslated value | A key of `en.json` is absent from another language file, or its value is the English one, unless it only holds protected terms or is a listed loanword | | Placeholders | A translation does not keep the placeholders (`{x}`, `{{x}}`, `${x}`) and tags of the English value, or contains a literal `undefined` | | Protected terms | A term of the glossary present in the English value is missing from the translation | Two files of `openaev-front/scripts/` configure it: `i18n-glossary.json` lists in `globalTerms` the brand names, acronyms and standards never translated, such as `ATT&CK`; `i18n-loanwords.json` lists the values that are rightly the same as in English, under `all` or under one language. ## Translation rules {#translation-rules} | Rule | Right | Wrong | | --- | --- | --- | | The first letter keeps the case of the English source, in every language | `breached` → `compromis` | `Compromis` | | Protected terms stay as they are | `Kubernetes 클러스터` | `쿠버네티스 클러스터` | | Field names, enumeration values and code identifiers stay in English | `Au moins un élément parmi exercise ou scenario` | `Au moins un élément parmi exercice ou scénario` | | No quotes the source does not have | `action_execution_arch ist erforderlich` | `„action_execution_arch“ ist erforderlich` | | Placeholders and tags unchanged | `{count} injects` | `{nombre} injects` | When a value is rightly the same as in English, such as `Dashboard` in German, add it to `i18n-loanwords.json` under its language in OpenAEV, rather than changing the translation. **Example: A new button in the OpenAEV scenario screen** A developer at Example CERT adds a button to replay a scenario on the front-desk workstations of Grand Meridian Hotels. In the component, the label is `t('Replay on the front desks')`. From `openaev-front`, with the team's DeepL key in the secret store variable `DEEPL_API_KEY`: ```bash yarn extract-translation SUBSCRIPTION_KEY="$DEEPL_API_KEY" yarn auto-translation:all git diff --stat src/utils/lang/ yarn i18n-checker ``` `en.json` gains `"Replay on the front desks"`, and each of the eight other files gains its translation. The French reads `Rejouer sur les postes d'accueil`; the developer checks the German and Japanese values with colleagues, and `yarn i18n-checker` exits without an error before the pull request. ## What's next {#what-s-next} - [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/), to see the change in the interface. - [Prepare an Ubuntu development environment](https://filigran.io/docs/develop/contribute/environment/ubuntu/), [Windows](https://filigran.io/docs/develop/contribute/environment/windows/) or [macOS](https://filigran.io/docs/develop/contribute/environment/macos/), for the Node.js version each repository needs. --- # Develop XTM Composer > Build XTM Composer from source in Rust, run it against an OpenCTI you run locally, test it, and open a pull request. - URL: https://filigran.io/docs/develop/contribute/xtm-composer/ - Products: OpenCTI 7.261119.0, XTM Composer 3.261121.0 - For: developers - Type: How-to guide This page sets up XTM Composer for development. You build it from source and run it against an OpenCTI you run locally. You watch it start connectors on your container engine, and you run the tests of the continuous integration (CI). XTM Composer is written in Rust. To install it for real use, see [Install XTM Composer](https://filigran.io/docs/deploy/integrations/install-composer/) instead; to understand what it does, read [XTM Composer architecture](https://filigran.io/docs/deploy/integrations/architecture/). **Diagram: In development, XTM Composer runs from source and starts connectors next to an OpenCTI you run locally** - From source: XTM Composer (cargo run) - Your local OpenCTI: OpenCTI back end (Port 4000) - Container engine: Connectors (One container each) - opencti-dev containers: RabbitMQ (Port 5672) Connections: - XTM Composer → OpenCTI back end: registers and polls - XTM Composer → Connectors: starts and stops - Connectors → OpenCTI back end: OPENCTI_URL - Connectors → RabbitMQ: queues ## Before you start {#before-you-start} - Rust, through [rustup](https://rustup.rs). The crate uses the 2024 edition, so it needs Rust 1.85 or later. The CI tests with the current stable toolchain, and the release image builds with Rust 1.96.0. - Git, OpenSSL to generate the key, and Docker or Podman to run the connectors. - An OpenCTI running from source, as [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/) describes, and the admin token of its `development.json`. - To deploy connectors from the OpenCTI catalog, an Enterprise Edition license on that platform: without it, the catalog is read-only. - For the FIPS 140-3 build only (`--features fips`): Go, CMake, Perl, clang and the Linux headers, which the AWS-LC FIPS module needs to build. ## Find your way in the code {#find-your-way-in-the-code} | Path | What it holds | | --- | --- | | `src/main.rs` | Start: logger, RSA key, one orchestration loop and one ping loop per platform | | `src/config/settings.rs` | The configuration structures and how they load | | `src/api/opencti`, `src/api/openaev` | The clients of the platforms: GraphQL for OpenCTI, REST for OpenAEV | | `src/engine/opencti.rs`, `src/engine/openaev.rs` | The loops that reconcile the integrations of a platform with the containers | | `src/orchestrator/` | One folder per engine (`docker`, `podman`, `kubernetes`, `swarm`, `portainer`), each implementing the `Orchestrator` trait | | `api/opencti/opencti.graphql` | The OpenCTI schema that `build.rs` registers with `cynic` to type the queries. `api/opencti/README.md` lists the queries | | `config/default.yaml` | Every key with its default value | | `dev/` | IntelliJ IDEA run configurations, and examples for Podman and Kubernetes | A new container engine implements the `Orchestrator` trait of `src/orchestrator/mod.rs`: `get`, `list`, `start`, `stop`, `remove`, `refresh`, `deploy` and `logs`, and `pull` when XTM Composer pulls the image itself. `src/orchestrator/composer.rs` calls `pull` before every deploy and refresh: when it fails, nothing is deployed and the running workload is kept. Docker, Podman, Swarm and Portainer implement it; Kubernetes keeps the default, which does nothing, because its nodes pull the image, and reports a pod stuck on its image through the `image_pull_error` of the container `get` returns. `workload_name` returns the name the engine knows the workload by: `container_name()` by default, the instance name in lower case with every other character replaced by `-`. An engine that caps names at a Request for Comments (RFC) 1123 label overrides it with `dns_label_name()`, as Kubernetes and Swarm do. That function keeps the `container_name()` that is already a valid label of 63 characters at most. Any other name is mapped to ASCII, cut to 54 characters, and followed by `-` and 8 hexadecimal characters of the SHA-256 of the full name. `composer.rs` compares this name with the workloads `list` returns, to detect a collision and to remove a workload left under an old name. Name the workload with the same function everywhere in your engine, or every cycle removes and deploys it again. Tag every workload with `self.labels(workload)`, which writes the `xtm-manager`, `xtm-workload-id` and `xtm-platform` labels next to their legacy keys, `opencti-manager`, `opencti-connector-id` and `opencti-platform`. The environment of the workload already holds the configuration hash under `XTM_CONFIG_HASH` and `OPENCTI_CONFIG_HASH` (`config_hash_entries`). The legacy keys let an older XTM Composer recognize the workloads after a rollback. `list` runs one query per filter of `manager_label_filters` and merges the results with `dedup_containers`. ## Build and run it {#build-and-run-it} 1. Clone the repository and build it: ```bash git clone https://github.com/FiligranHQ/xtm-composer.git cd xtm-composer cargo build ``` 2. Generate the RSA private key. XTM Composer reads it in PKCS#8 PEM (`-----BEGIN PRIVATE KEY-----`), which `openssl genpkey` writes, and refuses to start with any other format. Make it 4096 bits: a smaller key loads, but the connector secrets OpenCTI encrypts for XTM Composer then fail to decrypt. ```bash openssl genpkey -algorithm RSA -out private_key_4096.pem -pkeyopt rsa_keygen_bits:4096 ``` Keep the key out of your commits. 3. Write `config/development.yaml`, ignored by Git. XTM Composer reads `config/default.yaml`, then `config/.yaml` over it, then the environment variables (`MANAGER__ID`, `OPENCTI__TOKEN`...). Your file only holds what differs from the defaults: ```yaml manager: id: 2b7f0c4e-9a1d-4e8b-b3f6-5c2d8e1a7f90 credentials_key_filepath: ./private_key_4096.pem logger: level: debug format: pretty directory: true console: true opencti: enable: true url: http://localhost:4000 token: a4c97db6-ba8a-4377-b6f3-77ca5b48928f daemon: selector: docker docker: network_mode: host ``` - `manager.id`: generate it once (`python3 -c 'import uuid; print(uuid.uuid4())'`) and keep it. OpenCTI accepts one XTM Composer per platform and refuses the registration of a second identifier. - `opencti.token`: the `app:admin:token` of your OpenCTI `development.json`. - `opencti.daemon.selector`: `docker` or `podman`. The default is `kubernetes`. - `network_mode: host`, on Linux: XTM Composer gives each connector its own `opencti.url` as `OPENCTI_URL`, and OpenCTI gives it the RabbitMQ host of its configuration, `localhost` in development. On the host network, a connector reaches both. Without it, `localhost` in a container is the container itself. 4. Run it from the root of the clone, with the development configuration: ```bash COMPOSER_ENV=development cargo run ``` The run configurations of `dev/` for IntelliJ IDEA and `.vscode/launch.json` for Visual Studio Code set `COMPOSER_ENV=development` too. **Check that it worked** The console prints `Starting XTM composer`, then `Successfully loaded RSA private key (PKCS#8 format)` and `Manager registered`. In OpenCTI, at `http://localhost:3000`, deploy a connector from the catalog: XTM Composer starts its container, and `docker ps` lists it. To see more, set `manager.logger.level` to `trace`, and `manager.debug.show_env_vars` to `true` to print the environment variables at start (`show_sensitive_env_vars` also prints the secrets). Run with `RUST_BACKTRACE=1` to get the backtrace of a panic. Log files go to `logs/` next to the binary, `target/debug/logs/` for `cargo run`. ## Test it {#test-it} 1. Run the unit tests, in the default mode and in FIPS mode, as the CI does: ```bash cargo test --workspace cargo test --workspace --features fips ``` 2. Run the integration tests of the Docker and Podman orchestrators when you change them. They are ignored by default: they need a container engine and a registry with authentication, described by environment variables at the top of `src/orchestrator/docker/integration_tests.rs`. For Docker, with a local registry holding a test image: ```bash export XTM_IT_ENGINE=docker export XTM_IT_REGISTRY=localhost:5000 export XTM_IT_REGISTRY_USERNAME=xtm-it export XTM_IT_REGISTRY_PASSWORD="$REGISTRY_PASSWORD" export XTM_IT_IMAGE=xtm-composer-it/connector:1.0 cargo test orchestrator::docker::integration_tests -- --ignored --test-threads=1 --skip delegated ``` `.github/workflows/integration.yml` shows how the CI starts the registry and builds the test image, on Docker, rootful Podman and rootless Podman. 3. Format and lint before you push: ```bash cargo fmt cargo clippy -- -D warnings ``` When you change a query to OpenCTI, update `api/opencti/opencti.graphql` from the OpenCTI schema: `build.rs` compiles the queries against it, so a query that does not match the schema fails the build. ## Open a pull request {#open-a-pull-request} - The title follows Conventional Commits and ends with the issue: `type(scope): description (#issue)`. The `validate-pr-title` workflow checks it; the old `[composer]` prefix is discontinued. - The pull request is linked to an issue: write `Fixes #212` (your issue number) in its description. Every commit is signed. Two more workflows check both. - Releases are cut by Filigran: the version in `Cargo.toml` and `Cargo.lock` is bumped, and a GitHub release publishes the `filigran/xtm-composer` images. **Example: A Docker fix tested on Velvet Harbor data** A developer at Example CERT fixes how XTM Composer restarts a crashed connector on Docker. Their OpenCTI runs from source on the same Ubuntu laptop, in `~/opencti`, with an Enterprise Edition license. They clone XTM Composer next to it and write its configuration with the values of their platform: ```bash cd ~/xtm-composer openssl genpkey -algorithm RSA -out private_key_4096.pem -pkeyopt rsa_keygen_bits:4096 COMPOSER_ID=$(python3 -c 'import uuid; print(uuid.uuid4())') OPENCTI_ADMIN_TOKEN=$(python3 -c "import json; print(json.load(open('../opencti/opencti-platform/opencti-graphql/config/development.json'))['app']['admin']['token'])") cat > config/development.yaml < How the XTM modules connect to other systems through connectors, collectors, injectors and executors, and what every integration shares, OpenCTI first. - URL: https://filigran.io/docs/develop/integration-model/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0, XTM Composer 3.261121.0 - For: developers, platform engineers - Type: Concept An integration is a program that connects an XTM module to another system: a threat feed, a SIEM, a sandbox, an endpoint security tool. OpenCTI has connectors; OpenAEV has collectors, injectors and executors. This page explains what the four kinds share and where they differ, so you can pick the kind to build, the library to build it with, and how it will be deployed. **Diagram: Where integrations sit in the platform** - Your tools: Feeds and tools (Vendors, SIEM, EDR, sandboxes), Endpoints (Where OpenAEV agents run) - Integrations: Connectors (Import, enrich, stream, export), Collectors, injectors (Results in, actions out), Executors (Deploy OpenAEV agents) - Platforms: OpenCTI (STIX 2.1 knowledge), OpenAEV (Simulations and results), XTM Composer (Runs integrations from the catalog) Connections: - Feeds and tools ↔ Connectors: data - Connectors ↔ OpenCTI: STIX bundles - Feeds and tools ↔ Collectors, injectors: results and actions - Collectors, injectors ↔ OpenAEV: register and report - Endpoints → Executors: agents - Executors → OpenAEV: register - XTM Composer → Connectors: deploys ## The four kinds {#the-four-kinds} | Kind | Module | Direction | What it does | Library | Source repository | | --- | --- | --- | --- | --- | --- | | [Connector](https://filigran.io/docs/develop/integration-model/connectors/) | OpenCTI | In and out | Imports, enriches, analyzes, streams or exports threat intelligence as STIX 2.1 | [pycti](https://filigran.io/docs/develop/build/python-client/), and `connectors-sdk` on top of it | [OpenCTI-Platform/connectors](https://github.com/OpenCTI-Platform/connectors) | | [Collector](https://filigran.io/docs/develop/integration-model/collectors/) | OpenAEV | In | Reads detection and prevention results, or reference data, from a security tool or a source | `pyoaev` | [OpenAEV-Platform/collectors](https://github.com/OpenAEV-Platform/collectors) | | [Injector](https://filigran.io/docs/develop/integration-model/injectors/) | OpenAEV | Out | Runs the injects of a simulation: sends emails, runs scans, calls other tools | `pyoaev` | [OpenAEV-Platform/injectors](https://github.com/OpenAEV-Platform/injectors) | | [Executor](https://filigran.io/docs/develop/integration-model/executors/) | OpenAEV | Out | Deploys and runs OpenAEV agents on endpoints, natively or through an endpoint security product | Built into OpenAEV | [OpenAEV-Platform/openaev](https://github.com/OpenAEV-Platform/openaev) | To get data into OpenCTI or out of it, build a connector. To measure what your defenses saw during a simulation, build a collector; to make a simulation act on a system, build an injector. ## What every integration shares {#what-every-integration-shares} The kinds differ in what they exchange, not in how they live next to their platform: - **A process of its own.** An external integration runs as its own container or Python process, never inside the platform. It can crash, restart or scale without touching the platform. - **An identity.** It has a unique identifier, a UUIDv4 (`CONNECTOR_ID`, `COLLECTOR_ID` or `INJECTOR_ID`), and a display name. The platform keeps its state and its history under that identifier, so keep it across restarts and redeployments. - **A user and a token.** It calls the platform API with the token of a user (`OPENCTI_TOKEN`, `OPENAEV_TOKEN`). In OpenCTI, that user decides what the connector may read and write and with which confidence level: give each connector its own user. - **A registration.** At start, it registers with the platform through the API. The registration returns what it needs next: for an OpenCTI connector, the RabbitMQ connection and the names of its queues, and the state it saved at its last run. - **A heartbeat.** While it runs, it reports to the platform, which shows it as active. An OpenCTI connector pings every 40 seconds and sends its state with each ping; after 5 minutes without a heartbeat, OpenCTI shows it as inactive. - **The same configuration rule.** An environment variable wins over the key of `config.yml`, which wins over the default of the code. In Docker, you set environment variables; in development, `config.yml` is often easier. ## OpenCTI connectors in one paragraph {#opencti-connectors-in-one-paragraph} A connector speaks STIX 2.1. An import or enrichment connector does not write objects one by one: it builds a STIX bundle and sends it to its RabbitMQ queue, and the OpenCTI workers write it, with the rights and the confidence level of the connector's user. Work that the platform asks for, such as an enrichment, a file import or an export, reaches the connector through a second queue. A stream connector follows a live stream of the platform instead. [Connectors](https://filigran.io/docs/develop/integration-model/connectors/) details each type: what it receives, what it returns, as which user. ## How integrations are deployed {#how-integrations-are-deployed} | Way | Who runs the container | What the integration must provide | | --- | --- | --- | | [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/) | XTM Composer, on Docker, Podman, Kubernetes, Docker Swarm or Portainer, from the catalog of the platform. Requires the Enterprise Edition | A Docker image, and an entry in a catalog with a configuration schema: see [Integration manifest](https://filigran.io/docs/develop/build/manifest/). An XTM Composer that sets a tag suffix, `-fips` in its FIPS image, pulls the `-fips` or `-ubi9` tag of that image | | [By hand](https://filigran.io/docs/deploy/integrations/manual/) | You, with Docker Compose, Kubernetes or Python | A Docker image or the Python sources, and a `README.md` listing its settings | XTM Composer reads what it deploys from the catalog: the image, its version, and the settings to ask for in the form. A connector that should be deployable from the interface therefore ships a manifest next to its code. [Community resources](https://filigran.io/docs/develop/integration-model/resources/) lists where the catalogs, the repositories and the SDKs live. ## What's next {#what-s-next} - [Connectors](https://filigran.io/docs/develop/integration-model/connectors/), the connector types of OpenCTI. - [Build an OpenCTI connector](https://filigran.io/docs/develop/build/connector/), a tutorial from an empty folder to objects in OpenCTI. - [Script OpenCTI in Python](https://filigran.io/docs/develop/build/python-client/), to script the OpenCTI API. - [How integrations run](https://filigran.io/docs/deploy/integrations/how-they-run/), the deployment side. --- # Collectors > How an OpenAEV collector registers with its security platform, reads the expectations it has not answered, and writes verdicts and alert traces, as of OpenAEV 3.261029.0. - URL: https://filigran.io/docs/develop/integration-model/collectors/ - Products: OpenAEV 3.261118.0 - For: developers, platform engineers - Type: Concept A collector is the OpenAEV integration that reads another system for the platform. Most collectors read a security tool, such as an endpoint detection and response (EDR) tool or a security information and event management (SIEM) system, to tell whether each attack of a simulation was detected or prevented. A collector is a program of its own, in any language, that only calls the REST API of the platform. This page explains that protocol as OpenAEV 3.261029.0 implements it: the registration and the security platform, the expectations a collector reads, the signatures it matches, and the verdicts it writes. To write one step by step, follow [Build an OpenAEV collector](https://filigran.io/docs/develop/build/collector/); to choose among the existing collectors, read [How collectors measure what your security tools saw](https://filigran.io/docs/openaev/use/collectors/). **Diagram: A collector reads the pending expectations, looks for matching alerts in its security tool, and writes the verdicts back** - OpenAEV: Expectations (Detection and prevention), REST API (/api/collectors, /api/injects/expectations) - Collector: Your collector (Runs every period) - Security tool: EDR or SIEM (Alerts with process tree) Connections: - Your collector → REST API: register and ping - Expectations → Your collector: pending for this source - Your collector → EDR or SIEM: search alerts - Your collector → Expectations: verdicts and traces ## What a collector does {#what-a-collector-does} A collector of a security tool runs in a loop, every period it chooses: 1. **It registers**, with the security platform it speaks for. Each registration is also its heartbeat. 2. **It reads the expectations it has not answered yet**: the detection and prevention expectations of the injects that ran on endpoints. 3. **It searches its tool** for the alerts that match each expectation's signatures, such as the name of the implant's process. 4. **It writes a verdict** on each expectation it can answer, and the alerts it relied on as traces. 5. **It stamps its last execution**, which the interface shows. Everything goes from the collector to OpenAEV: the platform never calls a collector, and no RabbitMQ queue is involved. Filigran's `pyoaev` Python library implements this loop for the collectors of the [OpenAEV-Platform/collectors](https://github.com/OpenAEV-Platform/collectors) repository; the sections below describe it from the platform side. Other collectors import reference data instead, such as MITRE ATT&CK, Atomic Red Team payloads, vulnerabilities, assets or players. They register the same way, then write through the API of what they import, and read no expectation. ## The security platform {#the-security-platform} A verdict carries the name of a security platform, the tool that saw the attack, listed in **Security platforms**. A collector creates or finds its own with `POST /api/tenants//security_platforms/upsert`: | Field | What it does | | --- | --- | | `asset_name` | The name results show, such as `Meridian SOC` | | `security_platform_type` | `EDR`, `XDR`, `SIEM`, `SOAR`, `NDR`, `ISPM`, `EMAIL_SECURITY`, `LLM_FIREWALL`, `AI_GATEWAY` or `VULNERABILITY_SCANNER` | | `asset_external_reference` | The collector's identifier, by convention: the upsert finds the platform by this reference first | | `asset_description`, `asset_tags` | Optional | The upsert looks for a platform with the same external reference, then with the same name and type, and creates one only when neither exists. So a collector redeployed with a new identifier takes over the platform of its predecessor. The answer is the security platform; its `asset_id` goes into the registration. ## Registration {#registration} The collector posts a multipart request to `POST /api/tenants//collectors`, with the token of its user in `Authorization: Bearer `. The `input` part is a JSON document with the content type `application/json`; an optional `icon` part, a PNG image, becomes its icon. Without the tenant in the path, the platform needs the user to reach a single tenant, and refuses the registration otherwise. | Field of `input` | Required | What it does | | --- | --- | --- | | `collector_id` | Yes | The identifier of this collector, a UUIDv4 you choose once and keep. It is the `source` of its verdicts | | `collector_name` | Yes | The name the interface and the results show | | `collector_type` | Yes | A stable technical name, such as `openaev_crowdstrike`. The platform creates the collector type the first time it sees it, and names the icon after it | | `collector_period` | No | The time between two runs. The platform stores it at the first registration and never changes it afterwards | | `collector_security_platform` | No | The `asset_id` of its security platform. Without it, the results carry no security platform | | `collector_author` | No | The organization the payloads and contracts it imports are attributed to. Without it, the collector's name | A registration with a known `collector_id` in the same tenant updates the name, the type and the security platform. The platform recognizes a registration that changes nothing and keeps it out of the audit log, so register at every run: the interface shows an external collector as running while its last registration or its last execution is less than two minutes old. ## Reading the expectations {#reading-the-expectations} The collector reads the expectations no source has answered for it yet, the ones without a result from its `collector_id`: | Route, under `/api/tenants//injects/expectations/` | Returns | | --- | --- | | `assets/` | The detection and prevention expectations of agents. With `?expiration_time=`, only those created in the last minutes | | `detection/`, `prevention/` | One type only | | `ai/` | The detection and prevention expectations of AI targets, which have no agent, for the collectors of AI defense tools | Each route returns at most 10,000 expectations, the oldest first. An expectation another collector answered stays in the list of yours until yours answers it too: each source gives its own result, and the platform combines them. Each expectation is a JSON object; the keys a collector needs: | Key | What it holds | | --- | --- | | `inject_expectation_id` | The identifier to write the verdict on | | `inject_expectation_type` | `DETECTION` or `PREVENTION` | | `inject_expectation_signatures` | What to look for: a list of `{"type": ..., "value": ...}` | | `inject_expectation_inject`, `inject_expectation_agent`, `inject_expectation_asset` | The inject, the agent and the endpoint it is about | | `inject_expectation_created_at`, `inject_expiration_time` | When it was created, and how long it waits for a result, in seconds | | `inject_expectation_expected_security_platforms` | The types of security platform expected to answer, such as `EDR`. Empty: any | ### The signatures of an expectation {#the-signatures-of-an-expectation} | Type | Value | | --- | --- | | `parent_process_name` | The name of the process that ran the attack on the endpoint: `oaev-implant--agent-` for the OpenAEV implant, `-agent-` for an external injector. No other process has this name, so an alert whose process tree holds it belongs to this inject on this endpoint | | `source_ipv4_address`, `source_ipv6_address` | The addresses of the endpoint that ran the attack | | `target_ipv4_address`, `target_ipv6_address`, `target_hostname_address` | The address or host name the attack targeted, when the inject has one | | `start_date`, `end_date` | When the implant started and ended on this agent, added as it reports | | `ai_request_marker`, `ai_target_endpoint` | The marker of an AI inject's request and the AI endpoint it called | An EDR collector looks for alerts on that host whose parent process is the implant's. A SIEM collector can match addresses and the time window instead. ## Writing the verdicts {#writing-the-verdicts} One verdict, with `PUT .../injects/expectations/`, or many at once, with `PUT .../injects/expectations/bulk` and `{"inputs": {"": {...}, ...}}`. Each verdict is: | Field | Required | What it does | | --- | --- | --- | | `collector_id` | Yes | The collector that answers. The bulk route reads the collector of the first verdict for all of them | | `is_success` | Yes | `true`: detected, or prevented for a prevention expectation. `false`: not detected, or not prevented | | `metadata` | No | Text values kept with the result, such as the alert's identifier | The platform turns `is_success` into the result the interface shows and into a score against the expected score, writes it on the agent's expectation, then recomputes the endpoint's and the asset group's. Only technical expectations, detection, prevention and vulnerability, accept a collector's verdict; the bulk route skips the others and the identifiers it does not know. The alerts go to `POST .../inject-expectations-traces/bulk`, as `{"expectation_traces": [...]}`, each with `inject_expectation_trace_expectation`, `inject_expectation_trace_source_id` (the collector), `inject_expectation_trace_alert_name`, `inject_expectation_trace_alert_link` and `inject_expectation_trace_date`. The link lets an analyst open the alert in the tool from the inject's result. Last, `PUT /api/tenants//collectors/` with `{"collector_last_execution": ""}` stamps the run. ## What no collector answers {#what-no-collector-answers} A collector does not need to write a negative verdict for an attack it never saw. The built-in **Expectations Expiration Manager** closes every expectation still without a result when its expiration time is over: 6 hours by default for detection and prevention, the `openaev.expectation.technical.expiration-time` key of the [`openaev.expectation` block](https://filigran.io/docs/reference/openaev/configuration/#openaev-expectation). The attack then reads **Not Detected** or **Not Prevented**. Write `is_success: false` only when the tool tells you something definite, such as an alert that shows the action ran and was not blocked. ## The user of a collector {#the-user-of-a-collector} | Call | Capability | | --- | --- | | Register and stamp the last execution | **Manage tenant settings**, which allows creating and writing collectors | | Create its security platform | **Manage security platforms** | | Read expectations, write verdicts and traces | **Access assessment** to read, **Manage assessment** to write | Give each collector a user of its own; the capabilities are in the [OpenAEV capabilities reference](https://filigran.io/docs/reference/openaev/capabilities/). A call the user has no right to make answers 404, not 403. ## How collectors are deployed {#how-collectors-are-deployed} A collector runs as a container or a Python process, next to the tool it reads if needed: it only opens outbound connections, to OpenAEV and to the tool. Deploy it with [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/) from **Integrations**, from a Docker image and an entry in the catalog, or [by hand](https://filigran.io/docs/deploy/integrations/manual/). The Filigran collectors take `OPENAEV_URL`, `OPENAEV_TOKEN`, `OPENAEV_TENANT_ID`, `COLLECTOR_ID`, `COLLECTOR_NAME`, `COLLECTOR_PLATFORM` (the type of security platform), `COLLECTOR_PERIOD` (an ISO 8601 duration such as `PT1M`) and `COLLECTOR_LOG_LEVEL`, plus the settings of the tool. ## What's next {#what-s-next} - [Build an OpenAEV collector](https://filigran.io/docs/develop/build/collector/), a collector step by step. - [Injectors](https://filigran.io/docs/develop/integration-model/injectors/), what produces the expectations a collector answers. - [Expectations](https://filigran.io/docs/openaev/use/expectations/), how the results show to the validation engineer. --- # Connectors > The six connector types of OpenCTI, what each receives and returns, which user and confidence level its data gets, and how connectors are deployed and scaled. - URL: https://filigran.io/docs/develop/integration-model/connectors/ - Products: OpenCTI 7.261119.0 - For: developers, platform engineers - Type: Concept A connector is a process that runs next to OpenCTI and exchanges STIX 2.1 data with it. OpenCTI knows six connector types: each one is started differently, receives different input, and writes as a different user. This page explains the types as the connector helper of pycti (`OpenCTIConnectorHelper`) and the platform implement them in OpenCTI 7.261030, so you can choose the type of the connector you build and know what its code will receive. To run an existing connector, read [How integrations run](https://filigran.io/docs/deploy/integrations/how-they-run/) instead. **Diagram: What each kind of OpenCTI connector receives and sends** - Connectors: External import (Runs on its own schedule), Enrichment, file import, export (Runs on a request), Stream (Follows a live stream) - Queues: push_ queue (Bundles to import), listen_ queue (Jobs for the connector) - OpenCTI: Workers (Write bundles as a user), Platform (GraphQL API and streams) Connections: - External import → push_ queue: send bundles - Enrichment, file import, export → push_ queue: send results - push_ queue → Workers: consume - Workers → Platform: write - Platform → listen_ queue: post jobs - listen_ queue → Enrichment, file import, export: deliver jobs - Platform → Stream: live events ## The six types {#the-six-types} `CONNECTOR_TYPE` sets the type. The connector's own configuration fixes it: a deployment never changes it. | Type | Started by | Receives | Returns | `CONNECTOR_SCOPE` | Example | | --- | --- | --- | --- | --- | --- | | `EXTERNAL_IMPORT` | Its own schedule | Nothing: it fetches from its source | STIX bundles | The types it imports, informative | MITRE ATT&CK, MISP, a vendor feed | | `INTERNAL_ENRICHMENT` | A user, a playbook, or the platform on each new entity in scope | One entity and the objects around it | A STIX bundle that adds to the entity | Entity types, such as `IPv4-Addr,Domain-Name` | IP reputation, passive DNS | | `INTERNAL_IMPORT_FILE` | A file uploaded to the platform | The file and its context | A STIX bundle, written directly or kept in a workbench or a draft | MIME types, such as `application/pdf` | Import document, import STIX file | | `INTERNAL_ANALYSIS` | A user who asks for an analysis of a container | The fields or the file to analyze | An analysis file attached to the entity | MIME types | Import document | | `INTERNAL_EXPORT_FILE` | A user who asks for an export | The export request: format, scope, filters | A file in the platform storage | MIME types it produces, such as `text/csv` | Export STIX, CSV, TXT | | `STREAM` | Its own start, then each event | The events of a live stream | Whatever it does in the target system; it can also send bundles back | Informative | A SIEM or EDR synchronization | The first and the last types run on their own; the others wait for the platform. In the code, the difference is one call: - A self-triggered connector calls `helper.schedule_iso(message_callback, duration_period)`: the helper runs the callback now, then every `CONNECTOR_DURATION_PERIOD`. A stream connector calls `helper.listen_stream(message_callback)`. - A platform-triggered connector calls `helper.listen(message_callback)`: the helper calls `message_callback(data)` for each job and reports the string it returns as the result of the job. ## What the callback receives {#what-the-callback-receives} The platform posts a job as a message with two parts: `internal`, which the helper consumes (the work to report on, the user who asked, the draft), and `event`, which becomes the `data` dictionary of your callback. The keys below come from the platform code of 7.261030. **Enrichment** ```python { "event_type": "INTERNAL_ENRICHMENT", "entity_id": "indicator--5bc47565-1eed-5022-9d7d-2892cceae172", # standard id "entity_type": "Indicator", "stix_entity": {...}, # the entity, in STIX 2.1 "stix_objects": [...], # the entity and the objects around it, in STIX 2.1 "enrichment_entity": {...}, # the entity as the OpenCTI API returns it, with its files } ``` `CONNECTOR_ENRICHMENT_RESOLUTION` decides who builds `stix_objects`: with `none`, the default of pycti, the platform sends the entity alone and the helper reads the bundle through the API; with `stix_bundle`, the platform sends the bundle with the job. The callback receives both keys either way. When a playbook runs the connector, `stix_objects` holds the bundle of the playbook, and the bundle you send goes back to the playbook instead of the workers. Pass `playbook_compatible=True` to `OpenCTIConnectorHelper` to offer the connector in playbooks. **File import** ```python { "file_id": "import/Report/f1e2.../velvet-harbor-iocs.pdf", "file_mime": "application/pdf", "file_markings": [...], # marking ids of the file "file_fetch": "/storage/get/import/Report/f1e2.../velvet-harbor-iocs.pdf", "entity_id": "...", # the entity the file was uploaded on, if any "validation_mode": "workbench", # or "draft" "bypass_validation": False, # True: write directly, without a workbench or a draft "force_validation": False, } ``` Read the file with `helper.api.fetch_opencti_file(helper.opencti_url + data["file_fetch"])`. **Analysis** ```python { "event_type": "INTERNAL_ANALYSIS", "entity_id": "report--...", "entity_type": "Report", "content_type": "FIELDS", # or "FILE" "content_source": "content_mapping", "content_fields": "description content", # with FIELDS "file_id": "...", "file_mime": "...", "file_fetch": "...", # with FILE "analysis_name": "FIELDS_analysis_content_mapping.analysis", } ``` **Export** ```python { "event_type": "INTERNAL_EXPORT_FILE", "export_scope": "single", # "single", "query" or "selection" "export_type": "simple", # "simple" or "full" "format": "text/csv", "file_name": "2026-01-15T10:00:00.000Z_TLP:GREEN_(Export CSV)_Report-....csv", "entity_id": "...", "entity_name": "...", "entity_type": "Report", "file_markings": [...], "main_filter": {...}, "access_filter": {...}, "list_params": {...}, # with "query" and "selection" "selected_ids": [...], # with "selection" } ``` **Stream** The callback receives each server-sent event as a message object: `msg.event` is the event type (`create`, `update`, `delete`, `merge`), `msg.data` a JSON string with the STIX object in `data`, and `msg.id` the position in the stream. After each event, the helper saves `msg.id` in the connector's state, so a restart resumes where it stopped. ## As which user, with which confidence {#as-which-user-with-which-confidence} A connector registers with the token in `OPENCTI_TOKEN`, and the platform records that token's user as the connector's user. Everything else follows from it: | Type | Writes or reads as | | --- | --- | | `EXTERNAL_IMPORT`, `STREAM` | The connector's user | | `INTERNAL_ENRICHMENT`, `INTERNAL_ANALYSIS` | The connector's user: the platform sends the job without the user who asked | | `INTERNAL_IMPORT_FILE` | The user who uploaded the file: the helper sends the bundle on their behalf | | `INTERNAL_EXPORT_FILE` | The user who asked for the export: the helper reads through `helper.api_impersonate`, with that user's markings, so an export never leaks what they cannot see | OpenCTI honors a request on behalf of another user only from a user that bypasses capabilities, and silently ignores it otherwise. An export connector whose user does not bypass capabilities therefore reads with its own rights, and its exports can hold what the requester may not see. Run export connectors with a user of a group whose role bypasses capabilities, such as an Administrator role. The other types run with a user of the `Connectors` group: for file imports, the workers write on behalf of the uploader themselves. The worker writes each object with the confidence level of the user it writes as: - A new object gets the confidence of the bundle, capped at the user's maximum confidence level. An object without `confidence` gets the user's maximum. - An existing object takes the new values only when the new confidence is at least the one it has. With a lower confidence, the worker still fills the fields that are empty and adds the labels and external references, but changes nothing else. So the confidence of the connector's user is the ceiling of everything it imports. With `CONNECTOR_AUTO_CREATE_SERVICE_ACCOUNT=true`, the connector creates its own user at start: `[C] `, in the `Connectors` group, with the maximum confidence level `CONNECTOR_AUTO_CREATE_SERVICE_ACCOUNT_CONFIDENCE_LEVEL` (50 by default). XTM Composer does the same from the catalog: its form proposes the `max_confidence_level` of the [manifest](https://filigran.io/docs/develop/build/manifest/). ## The settings that depend on the type {#the-settings-that-depend-on-the-type} pycti reads these settings for every connector; each one matters to some types only. Their types and defaults are in the [connector settings reference](https://filigran.io/docs/reference/opencti/integration-settings/#connectors-connector-settings). | Setting | Types | What it changes | | --- | --- | --- | | `CONNECTOR_AUTO` | Enrichment, file import | `true`: the platform sends every new entity or file in scope, not only what a user asks for | | `CONNECTOR_AUTO_UPDATE` | Enrichment | `true`: also the entities in scope that are updated | | `CONNECTOR_ENRICHMENT_RESOLUTION` | Enrichment | `none` or `stix_bundle`: see the **Enrichment** tab above | | `CONNECTOR_ONLY_CONTEXTUAL` | File import | `true`: only files uploaded on an entity, never files imported on their own | | `CONNECTOR_VALIDATE_BEFORE_IMPORT` | File import, external import | `true`: what the connector sends waits in a workbench or a draft for a user to validate it | | `CONNECTOR_DURATION_PERIOD` | External import | Time between two runs, as an ISO 8601 duration (`PT1H`); `0` runs once | | `CONNECTOR_RUN_AND_TERMINATE` | External import | `true`: run once and exit, for a connector started by cron or a Kubernetes job | | `CONNECTOR_QUEUE_THRESHOLD` | External import | Size of the connector's queue, in megabytes, above which a scheduled run is skipped until the workers catch up. 500 by default | | `CONNECTOR_LIVE_STREAM_ID` | Stream | The live stream to follow, from **Data > Data sharing > Live streams**; unset, the raw stream of all events | | `CONNECTOR_LIVE_STREAM_LISTEN_DELETE` | Stream | `false`: skip deletion events | | `CONNECTOR_LIVE_STREAM_NO_DEPENDENCIES` | Stream | `false`: also send the objects each event depends on | | `CONNECTOR_LIVE_STREAM_WITH_INFERENCES` | Stream | `true`: also send what the inference rules created | | `CONNECTOR_LIVE_STREAM_START_TIMESTAMP` | Stream | First run only: the stream position to start from, in milliseconds | | `CONNECTOR_LIVE_STREAM_RECOVER_ISO_DATE` | Stream | First run only: replay the existing data up to this date before live events | ## How a connector reaches the platform {#how-a-connector-reaches-the-platform} By default, a connector sends its bundles to RabbitMQ and receives its jobs from RabbitMQ, at the address the platform returns at registration. When the connector cannot reach RabbitMQ, use HTTP instead: | Setting | Effect | | --- | --- | | `CONNECTOR_QUEUE_PROTOCOL=api` | Sends bundles through the platform API instead of RabbitMQ. A bundle cannot exceed the platform's `app:max_payload_body_size` (`APP__MAX_PAYLOAD_BODY_SIZE`), 50 MB by default. `QUEUE_PROTOCOL` is its former name, read only when `CONNECTOR_QUEUE_PROTOCOL` is unset | | `CONNECTOR_LISTEN_PROTOCOL=API` | Starts an HTTP server in the connector, and the workers post the jobs to it at `CONNECTOR_LISTEN_PROTOCOL_API_URI` followed by `CONNECTOR_LISTEN_PROTOCOL_API_PATH`. For enrichment, file import, analysis and export connectors | *(OpenCTI 7.261119 and later)* When the platform turns on the secure HTTP defaults (`app:http:secure_by_default` set to `true`) and leaves `app:max_payload_body_size` unset, the limit drops to 10 MB. A connector that sends large bundles over the API then has its larger bundles refused: send smaller bundles, or ask the platform engineer to set `APP__MAX_PAYLOAD_BODY_SIZE` explicitly. With both, an enrichment connector never connects to RabbitMQ. The `MQ_*` settings override the RabbitMQ address the platform returns; [Run an integration without XTM Composer](https://filigran.io/docs/deploy/integrations/manual/) shows them in a deployment. Three more settings shape the connection to the platform: - `OPENCTI_SSL_VERIFY=true` checks the platform's TLS certificate, off by default. Turn it on whenever `OPENCTI_URL` is HTTPS. - `OPENCTI_CUSTOM_HEADERS` adds HTTP headers to every API call, as `name:value` pairs separated by `;`, for a gateway in front of the platform. - `CONNECTOR_EXPOSE_METRICS=true` exposes Prometheus metrics of the connector on `CONNECTOR_METRICS_PORT` (9095 by default): bundles sent, runs, errors. ## Keep a copy of what the connector sends {#keep-a-copy-of-what-the-connector-sends} A connector can also write each bundle elsewhere, for an audit or to move data by other means: - `CONNECTOR_SEND_TO_DIRECTORY=true` writes each bundle as a JSON file in `CONNECTOR_SEND_TO_DIRECTORY_PATH`, and deletes the files after `CONNECTOR_SEND_TO_DIRECTORY_RETENTION` days (7; `0` keeps them). - `CONNECTOR_SEND_TO_S3=true` uploads each bundle to S3, by default to the bucket of the platform, under `CONNECTOR_SEND_TO_S3_FOLDER` (`connectors`), and deletes them after `CONNECTOR_SEND_TO_S3_RETENTION` days (7). `CONNECTOR_SEND_TO_S3_BUCKET` and the `S3_*` settings, such as `S3_ENDPOINT`, `S3_PORT` and `S3_BUCKET_REGION`, replace what the platform returns at registration. - `CONNECTOR_SEND_TO_QUEUE=false` stops sending bundles to the platform: only the copies remain. ## Deploy and scale {#deploy-and-scale} | Type | Instances per `CONNECTOR_ID` | To go faster | | --- | --- | --- | | `EXTERNAL_IMPORT` | One. Two copies would run twice and overwrite each other's state | Add workers: the import speed is the speed at which workers empty the queue | | `INTERNAL_ENRICHMENT`, `INTERNAL_IMPORT_FILE`, `INTERNAL_ANALYSIS`, `INTERNAL_EXPORT_FILE` | One or more. Each process handles one job at a time; copies with the same ID share the `listen_` queue | Run more replicas of the same connector | | `STREAM` | One. The state holds its position in the stream | One connector per target system or per live stream | A process takes a job off the queue before it handles it: a job that a crash interrupts is not delivered again, and its work stays in progress. The [Scale](https://filigran.io/docs/deploy/operate/scale/) page sizes the workers. Each connector has two RabbitMQ queues named after its ID, `push_` for what it sends and `listen_` for its jobs, created at its first registration. The **Deployed** tab of **Integrations** shows the messages waiting in them. Removing a connector from the interface deletes its queues and its works. ## What's next {#what-s-next} - [Build an OpenCTI connector](https://filigran.io/docs/develop/build/connector/), an external import connector step by step. - [Integration manifest](https://filigran.io/docs/develop/build/manifest/), to make it deployable from the catalog. - [OpenCTI integration settings](https://filigran.io/docs/reference/opencti/integration-settings/), every setting with its default. - [Import with connectors](https://filigran.io/docs/opencti/use/ingest/connectors/), what a connector's screens show. --- # Executors > How an OpenAEV executor starts the implant on each targeted endpoint, the parts an executor has in the platform code, and what a contributor writes to add one, as of 3.261029.0. - URL: https://filigran.io/docs/develop/integration-model/executors/ - Products: OpenAEV 3.261118.0 - For: developers, platform engineers - Type: Concept An executor is the OpenAEV integration that runs attack actions on endpoints: for each targeted agent, it starts the implant, and the implant runs the payload and reports to the platform. Unlike injectors and collectors, executors are not separate programs: they live in the code of the platform and run inside it, whether you deploy them from the catalog or not. This page explains, as OpenAEV 3.261029.0 implements it, how an inject reaches an executor, what an executor is made of, and what you write to add one to the [OpenAEV repository](https://github.com/OpenAEV-Platform/openaev). To choose and set up an executor, read [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/). **Diagram: An executor runs inside the platform, imports the endpoints of a vendor, and has the vendor start the implant on each target** - OpenAEV: Integration factory (Catalog entry and form), Executor integration (Started per deployment), Executor context (Launches the implants) - Vendor: EDR API (Hosts, groups, scripts) - Endpoints: Implant (Runs the payload) Connections: - Integration factory → Executor integration: spawns - Executor integration → EDR API: import endpoints - Executor context → EDR API: run command - EDR API → Implant: starts - Implant → Executor context: report to the API ## The executors of the platform {#the-executors-of-the-platform} | Executor | Type | How it starts the implant | | --- | --- | --- | | OpenAEV agent | `openaev_agent` | It saves a job; the OpenAEV agent of the endpoint fetches its jobs from the API and runs them | | Caldera | `openaev_caldera_executor` | Through the Caldera agents of the endpoints | | CrowdStrike Falcon | `openaev_crowdstrike_executor` | A Real Time Response script, in batches | | Microsoft Defender for Endpoint | `openaev_mde_executor` | A Live Response script | | Palo Alto Cortex | `openaev_paloaltocortex_executor` | A script of the agent script library, in batches | | SentinelOne | `openaev_sentinelone_executor` | A Remote Ops script, in batches | | Tanium | `openaev_tanium` | A Tanium package, in batches | The code of each one is in `openaev-api/src/main/java/io/openaev/executors//`, and its integration in `openaev-api/src/main/java/io/openaev/integration/impl/executors//`. ## How an inject reaches an executor {#how-an-inject-reaches-an-executor} A contract that acts on endpoints needs an executor: the payloads of the Threat Arsenal, and the contracts of injectors registered with `injector_payloads`. When such an inject runs, the platform: 1. Resolves the agents of the targeted endpoints, and leaves out, each with a trace on the inject, the agents that are inactive (unseen for one hour), that have no executor, that are overloaded, or whose endpoint the inject's markings do not reach. 2. Groups the remaining agents by executor. 3. Asks each executor to launch the inject on its agents, first in one batch, then one by one for the agents the batch did not handle. 4. Records an error trace on each agent of an executor that fails, so no agent waits for a result that will not come. The executor builds, for each agent, the command that downloads and starts the implant: the injector's command for the endpoint's platform and architecture, from its `injector_executor_commands` (`Windows.x86_64`, `Linux.arm64`, `MacOS.arm64`...). Before running it, the executor replaces its placeholders: | Placeholder | Replaced by | | --- | --- | | `#{inject}`, `#{agent}`, `#{tenant}` | The identifiers of the inject, the agent and the tenant | | `#{token}` | A token the implant uses to call the API | | `#{baseUrl}` | The address of OpenAEV the endpoint reaches, `openaev.agent-url` or `openaev.base-url` | | `#{location}`, `#{payload_location}` | The folder of the implant and of the payloads on the endpoint | | `#{maxSize}`, `#{unsecuredCertificate}`, `#{withProxy}` | Settings of the implant | The implant reports to `POST /api/tenants//injects/execution//callback/`; the inject is closed when every agent has completed or timed out. ## What an executor is made of {#what-an-executor-is-made-of} An executor is a set of Spring classes of the platform: | Part | Base class | What it does | | --- | --- | --- | | Integration factory | `IntegrationFactory` | A `@Service`. Creates the executor's entry in the catalog, with its description, logo and form (`insertCatalogEntry`), migrates its old configuration keys (`runMigrations`), and creates an integration for each deployment (`spawn`) | | Integration | `Integration` | One per deployment. `innerStart` registers the executor with `ExecutorService.register` (identifier, type, name, documentation link, color, icon, banner, platforms) and schedules its tasks; `innerStop` cancels them; `refresh` reads its configuration | | Configuration | `BaseIntegrationConfiguration` | One field per setting, each with `@IntegrationConfigKey`: its key in the deployment form (`EXECUTOR_ID`, `EXECUTOR_NAME`, `EXECUTOR__API_URL`...), its description, its type, whether it is required. `@ConfigurationProperties(prefix = "executor.")` also reads the keys of the platform configuration, the first time | | Executor context | `ExecutorContextService` | Launches the implant: `launchBatchExecutorSubprocess` for many agents at once, which returns the agents it handled, and `launchExecutorSubprocess` for one agent | | Endpoint import | A `Runnable` the integration schedules | Reads the hosts and groups of the vendor and turns them into endpoints, agents of the executor and asset groups (`EndpointService.syncAgentsEndpoints`, `AssetGroupService`) | | Cleanup | A `Runnable` the integration schedules | Deletes the old implant and payload folders on the endpoints | The CrowdStrike executor shows every part: `CrowdStrikeExecutorIntegrationFactory`, `CrowdStrikeExecutorIntegration`, `CrowdStrikeExecutorConfig`, `CrowdStrikeExecutorContextService`, `CrowdStrikeExecutorService` and `CrowdStrikeGarbageCollectorService`. Its integration registers the executor for Windows, Linux and macOS, imports the endpoints every `EXECUTOR_CROWDSTRIKE_API_REGISTER_INTERVAL` seconds (1,200 by default) and cleans them every `EXECUTOR_CROWDSTRIKE_CLEAN_IMPLANT_INTERVAL` hours (8 by default). The EDR executors check the Enterprise Edition license before they launch anything, and record a `LICENSE RESTRICTION` trace without it. Deploying one requires the **Manage tenant settings** capability. ## The executor registration route {#the-executor-registration-route} `POST /api/tenants//executors` registers an executor from outside, with `executor_id`, `executor_name`, `executor_type` and `executor_platforms`, and the platform refuses a second executor of the same type with another identifier. But the platform only dispatches injects to executors it has code for: it looks up the executor context of an executor by its name, or by its deployment, inside its own process, and records an error trace on every agent when it finds none. So a new executor is a contribution to the platform, built and tested like the rest of it: see [Build and run from source](https://filigran.io/docs/develop/contribute/build-from-source/). ## What's next {#what-s-next} - [Injectors](https://filigran.io/docs/develop/integration-model/injectors/), whose commands the executors run. - [Collectors](https://filigran.io/docs/develop/integration-model/collectors/), to read what the endpoint's security tools saw. - [Write an OpenAEV database migration](https://filigran.io/docs/develop/contribute/database-migrations/), when your executor stores something new. --- # Injectors > How an external OpenAEV injector registers its contracts, receives each inject from its RabbitMQ queue and reports the result, as the platform implements it in 3.261029.0. - URL: https://filigran.io/docs/develop/integration-model/injectors/ - Products: OpenAEV 3.261118.0 - For: developers, platform engineers - Type: Concept An injector is the OpenAEV integration that carries out an inject: it sends the message, calls the API, runs the scan. An external injector is a program of its own, in any language, that talks to the platform through its REST API and a RabbitMQ queue. This page explains that protocol as OpenAEV 3.261029.0 implements it: what the injector declares when it registers, what each inject message holds, how the injector reports a result, and what keeps it shown as running. To write one step by step, follow [Build an OpenAEV injector](https://filigran.io/docs/develop/build/injector/); to choose between the injectors that exist, read [How injectors deliver your injects](https://filigran.io/docs/openaev/use/injectors/). **Diagram: An external injector registers over the API, takes its injects from its own RabbitMQ queue and reports each result over the API** - Injector: Your injector (Container or Python process) - OpenAEV: REST API (/api/injectors, /api/injects), Inject execution (Runs each inject when due) - Queues: Injector queue (openaev_injector_) - Targets: Target system (Mailbox, API, network) Connections: - Your injector → REST API: register with contracts - Inject execution → Injector queue: publish inject - Injector queue → Your injector: consume - Your injector → Target system: act - Your injector → REST API: report status ## The life of an external injector {#the-life-of-an-external-injector} 1. **It registers.** At start, it posts its identity and its contracts to the platform. The platform stores the injector and its contracts, declares the injector's RabbitMQ queue, and answers with the connection details of RabbitMQ and the name of that queue. 2. **It waits for injects.** When an inject of one of its contracts is due, in a simulation or an atomic test, the platform computes the inject's expectations, then publishes the inject to the injector's queue once the transaction commits. 3. **It acts and reports.** The injector consumes the message, tells the platform it received the inject, does the work, and posts the result. The last result closes the inject. 4. **It registers again, and again.** Each registration is an upsert and a heartbeat. An injector that stops registering shows as stopped after two minutes. Filigran's `pyoaev` Python library implements this protocol for the injectors of the [OpenAEV-Platform/injectors](https://github.com/OpenAEV-Platform/injectors) repository. The sections below describe it from the platform side, so you can write an injector in another language or check what a library does. ## Registration {#registration} The injector posts a multipart request to `POST /api/tenants//injectors`, with the token of its user in `Authorization: Bearer `. The `input` part is a JSON document with the content type `application/json`; an optional `icon` part, a PNG image, becomes the injector's icon. The `/api/injectors` route without a tenant works only when the user reaches a single tenant: with several, the platform refuses the registration (400) because it cannot tell which tenant the injector belongs to. | Field of `input` | Required | What it does | | --- | --- | --- | | `injector_id` | Yes | The identifier of this injector, a UUIDv4 you choose once and keep across restarts. It names the queue and is the key of the upsert | | `injector_name` | Yes | The name the interface shows | | `injector_type` | Yes | A stable technical name, such as `openaev_http_query`. It names the icon file and the prefix of the process-name signature of agent expectations (see [Collectors](https://filigran.io/docs/develop/integration-model/collectors/#the-signatures-of-an-expectation)) | | `injector_contracts` | Yes, may be empty | The contracts, below | | `injector_custom_contracts` | No, `false` | Whether users may create custom contracts on this injector | | `injector_category` | No | Free text the platform stores | | `injector_payloads` | No, `false` | Whether the payloads of the Threat Arsenal run through this injector, on endpoints (see [Injectors that run on endpoints](#injectors-that-run-on-endpoints)) | | `injector_executor_commands` | No | The command that starts the injector on an endpoint, per platform and architecture | | `injector_executor_clear_commands` | No | The command that cleans up after it, per platform and architecture | | `injector_author` | No | The organization the contracts are attributed to. Without it, the platform attributes them to an organization named after the injector | The answer is the injector's connection to RabbitMQ: ```json { "connection": {"host": "rabbitmq", "vhost": "/", "use_ssl": false, "port": 5672, "user": "openaev", "pass": "..."}, "listen": "openaev_injector_9f2d6c1e-4b7a-4e0c-8d5f-3a1b2c4d5e6f" } ``` `connection` holds the RabbitMQ settings of the platform itself, the `openaev.rabbitmq.*` keys of its [configuration](https://filigran.io/docs/reference/openaev/configuration/#openaev-rabbitmq), credentials included: treat the answer as a secret and never log it. The injector must reach RabbitMQ under that host name and port, so set `openaev.rabbitmq.hostname` to a name every injector resolves, not `localhost`. ### What a new registration changes {#what-a-new-registration-changes} A registration with a known `injector_id` updates the injector: its name, its type, its flags, its commands, and its contracts. The contracts follow the list you send: - A contract of the list that exists is updated: labels, content, platforms, attack patterns, atomic testing. - A contract of the list that does not exist is created. - A contract that the injector had and that the list no longer holds is deleted, unless a user created it as a custom contract. **The injects built on it are deleted with it**, and so are the attack chaining step templates that use it. So never drop a contract from the list to hide it: keep its `contract_id` stable for as long as scenarios may use it. ## Contracts {#contracts} A contract is one kind of inject the injector offers: its label in the inject type list, the form the user fills in, and what the injector receives. Each element of `injector_contracts` is: | Field | Required | What it does | | --- | --- | --- | | `contract_id` | Yes | A stable UUID. An inject refers to its contract by this identifier | | `contract_labels` | No | The label, per language: `{"en": "...", "fr": "..."}` | | `contract_content` | Yes | The contract itself, as a JSON document serialized in a string | | `contract_manual` | No, `false` | A manual contract: a person carries it out, not the injector | | `contract_attack_patterns_external_ids` | No | MITRE ATT&CK identifiers, such as `T1566.002`. The platform links the attack patterns of the tenant with these identifiers and ignores the ones it does not have | | `contract_platforms` | No | The platforms the contract applies to: `Windows`, `Linux`, `MacOS`, `Service`, `Generic`, `Internal`... A contract that acts on a remote service, not on an endpoint, takes `Service` | | `is_atomic_testing` | No, `true` | Whether the contract is offered in atomic tests | | `contract_domains` | No | Security domains, each with `domain_id`, `domain_name` and `domain_color` | `contract_content` is what the interface reads to draw the form. Its keys: ```json { "contract_id": "5d0c3a8e-2f4b-4c39-9a51-7f2e8c1b6d40", "config": {"type": "openaev_http_query", "label": {"en": "HTTP query"}, "color_dark": "#7e57c2", "color_light": "#5e35b1"}, "label": {"en": "Send a GET request"}, "manual": false, "fields": [ {"key": "uri", "label": "URL", "type": "text", "mandatory": true, "readOnly": false, "defaultValue": ""} ], "variables": [], "context": {} } ``` Each field has a `key`, which becomes the key of its value in the inject, a `label`, a `type`, and `mandatory` and `readOnly`. The types are `text`, `number`, `checkbox`, `textarea`, `select`, `choice`, `dependency-select`, `attachment`, `team`, `expectation`, `asset`, `asset-group`, `ai-target`, `payload`, `targeted-asset`, `credential-reference`, `article` and `challenge`. Conditions between fields use `mandatoryGroups`, `mandatoryConditionFields` and `mandatoryConditionValues`, `visibleConditionFields` and `visibleConditionValues`. An `expectation` field lets the user choose the expectations of the inject, such as **Detection** and **Prevention**, which collectors then answer. ## The queue {#the-queue} The platform declares one durable queue per injector, at each registration: | Object | Name, with the default prefix `openaev` | | --- | --- | | Exchange | `openaev_amqp.connector.exchange`, of type direct, shared by every injector | | Queue | `openaev_injector_` | | Routing key | `openaev_push_routing_` | The prefix is `openaev.rabbitmq.prefix`, and the queue type is `openaev.rabbitmq.queue-type` (`classic` by default, or `quorum`). The injector only consumes: use the queue name the registration returns, never one you build. Each message is a JSON document with four keys: | Key | What it holds | | --- | --- | | `injection` | The inject: `inject_id`, `inject_title`, `inject_content` (the values of the contract's fields, by their `key`), `inject_injector_contract` (the contract, with its `injector_contract_id`), `inject_expectations`, `inject_teams`, `inject_assets`, `inject_asset_groups`... | | `assets` | The endpoints the inject targets, among those the inject's markings let it reach | | `assetGroups` | The asset groups the inject targets | | `attachments` | When the inject uses credentials: their references and an authorization code to resolve them. Absent otherwise | The platform publishes an inject only once. Acknowledge the message after you report the result: an injector that dies before acknowledging gets the message again from RabbitMQ when it reconnects. ## Reporting the result {#reporting-the-result} The injector reports with two routes, both under `/api/tenants//injects/execution/`: 1. `POST .../reception/`, with `{"tracking_total_count": 1}`: the inject moves to **Pending**. 2. `POST .../callback/`, once or more, with the result: | Field | Required | What it does | | --- | --- | --- | | `execution_message` | Yes | The message of the trace, shown in the inject's execution details | | `execution_status` | Yes | `SUCCESS` (stored as `EXECUTED`), `WARNING`, `ERROR`, `TIMEOUT`, `INFO`... A success or an error counts in the inject's status; `INFO` does not | | `execution_action` | No | `complete` closes the inject. `data` adds a trace and leaves it open, for an injector that reports in several steps | | `execution_duration` | No | Duration of the execution, in milliseconds | | `execution_output_structured` | No | A JSON document the platform parses into findings, for the contract's outputs | | `execution_output_raw` | No | The raw output | | `execution_context_identifiers` | No | The identifiers of the assets or AI targets the trace is about, up to 1,000: the trace then shows in the per-target view instead of the inject's timeline | The platform accepts `complete` only on an inject in **Pending**, so post the reception first. An inject still in **Pending** 10 minutes after it was sent, the default of `inject.execution.threshold.minutes` in the [`inject` block](https://filigran.io/docs/reference/openaev/configuration/#inject), is closed as a timeout, except in a running attack chaining workflow. A callback that arrives after the inject is closed is kept as information and changes nothing. The callbacks go through a queue of the platform and are written in batches, so a result can take a few seconds to show. ## Staying shown as running {#staying-shown-as-running} The interface shows an external injector as running while its last registration is less than two minutes old, and as stopped after that. Register again every 40 seconds or so: the platform recognizes a registration that changes nothing and does not write it to the audit log. A stopped injector keeps its contracts and its injects; the injects published meanwhile wait in its queue until it comes back. To remove an injector for good, stop it, then delete it from **Integrations**. The platform also refuses to run an inject when the injector was deployed by XTM Composer and its deployment is not started, with the trace `No started connector instance found for injector type`. An injector you run yourself has no deployment, and the platform runs its injects. ## Injectors that run on endpoints {#injectors-that-run-on-endpoints} Some injectors do their work on the targeted endpoints rather than from where they run. They register with `injector_payloads: true`: the platform then attaches the payloads of the Threat Arsenal to them, as contracts that need an executor. When such an inject runs, the platform does not use the queue alone: it asks the executor of each targeted agent, the OpenAEV agent or an endpoint detection and response (EDR) tool, to run the injector's command on the endpoint. `injector_executor_commands` gives that command, keyed by platform and architecture: `Windows.x86_64`, `Windows.arm64`, `Linux.x86_64`, `Linux.arm64`, `MacOS.x86_64`, `MacOS.arm64`. The executor replaces placeholders in it before running it, among them `#{inject}`, `#{agent}`, `#{tenant}`, `#{token}` and `#{location}`. `injector_executor_clear_commands` has the same keys and cleans up. [Executors](https://filigran.io/docs/develop/integration-model/executors/) explains how an executor runs these commands. ## The user of an injector {#the-user-of-an-injector} An injector acts with the rights of the user whose token it holds. Give it a user of its own, with a role that grants: | Call | Capability | | --- | --- | | Register | **Manage tenant settings**, which allows creating and writing injectors | | Post the reception and the results | **Manage assessment**, or a grant on each scenario, simulation or atomic test the injector serves: the platform checks the right on the inject's parent | The capabilities are in the [OpenAEV capabilities reference](https://filigran.io/docs/reference/openaev/capabilities/). A call the user has no right to make answers 404, not 403, so as not to reveal what exists. ## How injectors are deployed {#how-injectors-are-deployed} An external injector runs as a container or a Python process that only opens outbound connections: to the OpenAEV API and to RabbitMQ. | Way | What the injector must provide | | --- | --- | | [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/), from **Integrations** | A Docker image and an entry in the catalog of the platform, with the settings the form asks for. The settings of the Filigran injectors are `OPENAEV_URL`, `OPENAEV_TOKEN`, `OPENAEV_TENANT_ID`, `INJECTOR_ID`, `INJECTOR_NAME` and `INJECTOR_LOG_LEVEL`, plus their own | | [By hand](https://filigran.io/docs/deploy/integrations/manual/) | A Docker image or the sources, and a `README.md` listing its settings | ## What's next {#what-s-next} - [Build an OpenAEV injector](https://filigran.io/docs/develop/build/injector/), an injector step by step. - [Collectors](https://filigran.io/docs/develop/integration-model/collectors/), to read what the security tools saw of the injects. - [Executors](https://filigran.io/docs/develop/integration-model/executors/), to understand how injects reach endpoints. - [Integration model](https://filigran.io/docs/develop/integration-model/), what every integration shares. --- # Community resources > Where the integrations of the XTM platform live - catalogs, XTM Composer, connector repositories, libraries and images - and where to learn and ask questions. - URL: https://filigran.io/docs/develop/integration-model/resources/ - Products: OpenCTI 7.261119.0 - For: developers, platform engineers - Type: Reference Filigran and the community publish hundreds of integrations for OpenCTI and OpenAEV. This page lists where each piece of that ecosystem lives: the catalogs where you find an integration, XTM Composer that runs it, the repositories that hold its code, the libraries you build with, and the places to learn and ask. Each entry says what you go there for. ![The Available tab of Integrations lists the connectors of the catalog as cards, with filters by use case and solution category on the side.](https://filigran.io/docs/shots/2429ae8317019ecc41dc53ed070bc18064e4e3758d82bc0ece6e883c99a41475.webp) ## Catalogs {#catalogs} | Resource | What you find there | | --- | --- | | The catalog of the platform: **Integrations**, **Available** tab in OpenCTI (**Data > Ingestion > Connectors catalog** before 7.260811); **Integrations** > **Catalog** in OpenAEV | The integrations your platform version can run, with their description, their settings and, with XTM Composer, a **Deploy** button. OpenCTI builds it from the catalog embedded in each release and from your own catalogs ([Integration manifest](https://filigran.io/docs/develop/build/manifest/)) | | [XTM Hub integrations library](https://hub.filigran.io/cybersecurity-solutions/open-cti-integrations) | The same integrations, to browse without a platform, with the use cases they serve | ## XTM Composer {#xtm-composer} | Resource | What you find there | | --- | --- | | [FiligranHQ/xtm-composer](https://github.com/FiligranHQ/xtm-composer) | The source of XTM Composer, the component that deploys integrations from the catalog on Docker, Podman or Kubernetes | | [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/) and [Install XTM Composer](https://filigran.io/docs/deploy/integrations/install-composer/) | What it does, what it needs, how to install and configure it | ## Repositories {#repositories} | Repository | Content | | --- | --- | | [OpenCTI-Platform/connectors](https://github.com/OpenCTI-Platform/connectors) | The connectors of OpenCTI, one folder each under `external-import/`, `internal-enrichment/`, `internal-import-file/`, `internal-export-file/` and `stream/`. Also `templates/` (a starting point per connector type), `connectors-sdk/`, `shared/tools/composer/` (the scripts that build the manifests and the catalog) and `docs/` (the implementation guidelines a contribution must follow) | | [OpenCTI-Platform/opencti](https://github.com/OpenCTI-Platform/opencti) | The platform, the worker (`opencti-worker/`) and, since version 7, the Python library (`client-python/`) with its `examples/` | | [OpenAEV-Platform/collectors](https://github.com/OpenAEV-Platform/collectors) | The collectors of OpenAEV | | [OpenAEV-Platform/injectors](https://github.com/OpenAEV-Platform/injectors) | The injectors of OpenAEV | | [FiligranHQ/xtm-docker](https://github.com/FiligranHQ/xtm-docker) | The Docker Compose deployment of the platform, with its default integrations | Each connector folder has the same layout: `src/` for the code, `__metadata__/` for the manifest and the configuration schema, a `Dockerfile`, a `docker-compose.yml`, and a `README.md` that lists its settings. ## Libraries {#libraries} | Library | Language | Use it to | Install | | --- | --- | --- | --- | | `pycti` | Python | Call the OpenCTI API, and write connectors with its `OpenCTIConnectorHelper`: [Script OpenCTI in Python](https://filigran.io/docs/develop/build/python-client/) | From [PyPI](https://pypi.org/project/pycti/), at the version of your platform: `pip install pycti==7.261030.1` for OpenCTI 7.261030.1 | | `connectors-sdk` | Python | Write connectors with typed settings, STIX models and a ready-made run loop, on top of `pycti`. The connectors repository templates use it | From the `connectors-sdk/` folder of the connectors repository, with `pip install "connectors-sdk @ git+https://github.com/OpenCTI-Platform/connectors.git@master#subdirectory=connectors-sdk"` | | `pyoaev` | Python | Call the OpenAEV API, and write collectors and injectors | From [PyPI](https://pypi.org/project/pyoaev/) | ## Images {#images} The integrations built by Filigran are published on Docker Hub, one image per integration: `opencti/connector-*` for OpenCTI, such as [opencti/connector-export-file-stix](https://hub.docker.com/r/opencti/connector-export-file-stix/tags), and `openaev/collector-*` and `openaev/injector-*` for OpenAEV. Their tags follow the platform versions; XTM Composer pulls the tag of the catalog version. ## Learn and ask {#learn-and-ask} | Resource | What you find there | | --- | --- | | [Filigran Community on Slack](https://community.filigran.io) | Questions to the community and the Filigran teams | | [Filigran Academy](https://academy.filigran.io) | Training courses for analysts and administrators, with certificates | | [YouTube channel](https://www.youtube.com/@Filigran) | Demonstrations, use cases, webinars | | [Filigran blog](https://blog.filigran.io) | Articles by Filigran and the community on features and use cases | | [Content library](https://filigran.io/content-library/) | Briefs, reports, white papers and recorded webinars | | [Customer stories](https://filigran.io/customer-story-library/) | How organizations use the platform | ## What's next {#what-s-next} - [Integration model](https://filigran.io/docs/develop/integration-model/), the kinds of integration and what they share. - [Build an OpenCTI connector](https://filigran.io/docs/develop/build/connector/), your first connector. --- # OpenAEV > Use OpenAEV to replay real attacks against your endpoints and your people, see what your defenses prevented, detected and answered, and follow that posture from run to run. - URL: https://filigran.io/docs/openaev/ - Products: OpenAEV 3.261118.0 - Type: Overview OpenAEV plays a real attack, the one a threat group ran last month or the one your threat intelligence expects, against your own endpoints and your own people. An agent runs the attacker's commands, emails and fake press articles reach your teams, and your security tools report what they saw. Every action is scored: prevented, detected, answered in time. Run the same scenario every week and the scores show whether your defenses get better or worse. ## Start here {#start-here} Pick your role: each tab gives your goal and the pages to read first, in order. **Validation engineers** You test whether your security tools stop and see the techniques of the threats you face. 1. [How you validate your defenses in OpenAEV](https://filigran.io/docs/openaev/concepts/validation/): the steps of a validation, from the first agent to the trend on the home dashboard. 2. [Install the OpenAEV agent on your endpoints](https://filigran.io/docs/openaev/use/agents/): the agent that runs the attacker's commands on the hosts you test. 3. [Build a scenario that replays an attack](https://filigran.io/docs/openaev/use/scenarios/build/): the injects, their timeline, their targets and their expectations. 4. [Run a simulation and read its results](https://filigran.io/docs/openaev/use/simulations/): launch the scenario and read what was prevented and detected. 5. [How collectors measure what your security tools saw](https://filigran.io/docs/openaev/use/collectors/): how an alert of your EDR or SIEM becomes a score. **Exercise planners** You rehearse a crisis or a phishing campaign with the people who would live it. 1. [How a scenario becomes a simulation](https://filigran.io/docs/openaev/concepts/scenarios-simulations/): one scenario written once, played as many times as you need. 2. [Organize the people your injects target](https://filigran.io/docs/openaev/use/targets/people/): the players, their teams and their organizations. 3. [Publish fake press articles during an exercise](https://filigran.io/docs/openaev/use/components/media-pressure/): the media pressure a crisis cell faces. 4. [Give your players challenges to solve](https://filigran.io/docs/openaev/use/components/challenges/): questions scored as players answer them. 5. [How a phishing exercise works](https://filigran.io/docs/openaev/use/phishing/): the lure, the landing page and who opened, clicked and submitted. 6. [Collect lessons learned after an exercise](https://filigran.io/docs/openaev/use/components/lessons/): the questionnaire that closes the exercise. **SOC managers** You want to know whether your detection holds against the threats of the moment, and show it. 1. [How expectations score an inject](https://filigran.io/docs/openaev/use/expectations/): prevention, detection and human response, and how each is decided. 2. [Turn an OpenCTI security coverage into a scenario](https://filigran.io/docs/openaev/use/scenarios/from-opencti/): test the threats your CTI team tracks. 3. [Build dashboards of your validation results](https://filigran.io/docs/openaev/use/dashboards/): the trend of your scores over runs. 4. [Share simulation results in a report](https://filigran.io/docs/openaev/use/simulations/reports/): a run summed up for the people who were not there. **Administrators** You give people access, connect the security tools and set the platform up for your organization. 1. [How access works in OpenAEV](https://filigran.io/docs/openaev/concepts/access/): users, groups, roles and the grants on each scenario. 2. [Configure single sign-on](https://filigran.io/docs/openaev/administer/sso/): sign in with your identity provider. 3. [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/): run the attacks through CrowdStrike, Defender, SentinelOne and others (Enterprise Edition, except Caldera). 4. [Give each organization its own tenant](https://filigran.io/docs/openaev/administer/multi-tenancy/): separate subsidiaries or customers on one platform. **Platform engineers** You deploy the XTM platform, which always runs OpenAEV with the other modules, and keep OpenAEV healthy and up to date. 1. [How OpenAEV works](https://filigran.io/docs/openaev/concepts/architecture/): the platform, the agents, the collectors and the injectors, and what each one needs. 2. [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/): the whole XTM platform, OpenAEV with every other module, behind your reverse proxy. 3. [Connect the modules to each other](https://filigran.io/docs/deploy/configure/connect-modules/): OpenAEV with OpenCTI, OpenCRQ and XTM One. 4. [OpenAEV configuration](https://filigran.io/docs/reference/openaev/configuration/): every key, its variable and its default. ## Start from the starter pack {#start-from-the-starter-pack} A new tenant is not empty. OpenAEV loads a starter pack into it, so you can launch a first simulation before you build anything: | What | In the starter pack | | --- | --- | | Scenarios | **Tabletop Exercise - Akira Ransomware Crisis**, a crisis exercise by email; **[SALT TYPHOON] CVE & TTPs validation**, the techniques and vulnerabilities of an intrusion set, on endpoints; **EASM Scenario**, a discovery of internet-facing services | | Assets | The agentless endpoint `honey.scanme.sh`, an internet host offered for scanner tests, which the EASM scenario scans; the dynamic asset group **All endpoints**, every endpoint of the tenant | | Dashboards | **Technical home**, **Technical scenario** and **Technical simulation**, set as the tenant's defaults, and their **Tabletop Exercice** counterparts | The first time you sign in from a browser, OpenAEV opens **Getting Started**, at the bottom of the left menu. Its scenarios come from the starter pack: **Try this scenario** opens one, and **Launch** in its header runs it. Every inject of the starter pack that targets asset groups targets **All endpoints**, and those that take assets only target `honey.scanme.sh`. Before you launch a technical scenario, aim its injects at your own test endpoints, and replace `honey.scanme.sh` with your own internet-facing assets: a simulation plays real attacker behavior, and should reach production endpoints only once your security team has approved it. The platform engineer can turn the starter pack off with `openaev.starterpack.enabled`: see the [configuration reference](https://filigran.io/docs/reference/openaev/configuration/#openaev-starterpack). ## How a validation runs {#how-a-validation-runs} You describe once what you test and what the attacker can do: the assets and agents, the people and their teams, the actions of the Threat Arsenal. A scenario chains those actions on a timeline, each with the result you expect from your defenses. Each launch is a simulation, scored action by action, and the scores of every run build the trend of your posture. **Diagram: A validation prepares the targets and the attack once, then builds, runs, reads and follows each scenario** - Prepare: Targets (Assets, agents, teams), Threat Arsenal (Actions and payloads) - Build: Scenario (Injects and expectations) - Run: Simulation (One run of the scenario), Atomic test (One inject alone) - Read: Expectations (Prevented, detected, answered) - Follow: Dashboards (Trend over runs) Connections: - Targets → Scenario: targeted by - Threat Arsenal → Scenario: injects - Scenario → Simulation: launch - Threat Arsenal → Atomic test: test alone - Simulation → Expectations: scored - Atomic test → Expectations: scored - Expectations → Dashboards: aggregated [How you validate your defenses in OpenAEV](https://filigran.io/docs/openaev/concepts/validation/) gives the page that covers each step, and [How an attack becomes injects and expectations](https://filigran.io/docs/openaev/concepts/injects-expectations/) explains the scoring. ## Rehearse a crisis with your people {#rehearse-a-crisis-with-your-people} The same scenarios reach people instead of endpoints: emails to the crisis cell, articles in a fake newspaper, documents to read, challenges to solve. Players answer from their own mailbox and from the player interface, and each reaction you expect is scored like a detection. A [phishing campaign](https://filigran.io/docs/openaev/use/phishing/) works the same way, with a lure, a landing page and the results of each person; the [media pressure](https://filigran.io/docs/openaev/use/components/media-pressure/) of an exercise is its press articles and its media outlets. ![The injects of the Velvet Harbor crisis night: the email that calls the crisis cell to the bridge at 40 minutes, the challenge Which account was used? at 50, and the Hotel Business Daily article at 1 hour 30.](https://filigran.io/docs/shots/cfbdd3efdced6ebd13150e147e510b56af7d16c287d98634235dcb800499d01f.webp) ## Let the attack find its own path {#let-the-attack-find-its-own-path} A [chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/) does not follow a fixed timeline: each action reads what the previous one found, such as a user name, a host or an open port, and the next one aims at it. You set the targets it may reach and the limits it must keep, and the attack path map shows how far it got. With XTM One, an agent can choose the next action itself and [run an autonomous penetration test](https://filigran.io/docs/openaev/use/attack-chaining/autonomous/). Chained scenarios are part of the Enterprise Edition. **Diagram: A chained scenario runs an action, records what it found, and lets events decide which actions run next, inside the scope you set** - Scope: Allow and deny lists (What the run may touch), Time and rate limits (How long and how fast) - Logic: Action (A Threat Arsenal action), Event (Conditions on outputs), Next actions (Gated by the event) - Run: Outputs (Ports, hosts, accounts...), Attack path (Endpoints, findings) Connections: - Allow and deny lists → Action: first targets - Action → Outputs: records - Outputs → Event: evaluated by - Event → Next actions: triggers - Next actions → Outputs: adds to - Time and rate limits → Next actions: bounds - Outputs → Attack path: drawn as > **With XTM One: AI agents in OpenAEV** > > **Ask Ariane** in the top bar answers questions on your scenarios and results. XTM One agents also generate the commands of an action from a technique, the detection rule that would have caught it, a phishing landing page from a brand, and drive autonomous attacks. See [XTM One in OpenAEV](https://filigran.io/docs/xtm-one/use/in-openaev/). ## Find anything {#find-anything} **Search the platform**, in the top bar, looks for a word in the names and descriptions of scenarios, simulations, assets (security platforms included), asset groups, teams and organizations, and in the email addresses of persons. Press Enter to open **Search across OpenAEV**, its results grouped by **Categories**. It lists only what your role lets you access. ## Browse OpenAEV {#browse-openaev} **Concepts** - [How OpenAEV works: platform, agents, collectors and injectors](https://filigran.io/docs/openaev/concepts/architecture/): What OpenAEV is made of, what its platform, agents, executors, injectors and collectors each do, and the path an inject takes from a simulation to a score. - [How a scenario becomes a simulation](https://filigran.io/docs/openaev/concepts/scenarios-simulations/): What a scenario holds, the two kinds of scenarios, what a simulation copies when it starts, and how runs of the same scenario show your posture over time. - [How an attack becomes injects and expectations](https://filigran.io/docs/openaev/concepts/injects-expectations/): How OpenAEV turns each step of a threat into an inject, what an inject is made of, the three families of expectations it carries, and how their results become your security posture. - [How OpenAEV keeps what you test and what it finds](https://filigran.io/docs/openaev/concepts/data-model/): The objects behind every OpenAEV screen - scenarios, simulations, injects, targets, the Threat Arsenal, expectations and findings - which ones a tenant shares, and what a change reaches. - [How OpenAEV recognizes what it already has](https://filigran.io/docs/openaev/concepts/deduplication/): When OpenAEV matches an incoming endpoint, finding, payload, tag, person or STIX bundle to an object it already has, by which properties, and what it then updates, merges or refuses. - [How security domains group your results](https://filigran.io/docs/openaev/concepts/security-domains/): The ten security domains of OpenAEV, how an action or an injector gives an inject its domains, and how the Security Domains widget scores each kind of control. - [How you validate your defenses in OpenAEV](https://filigran.io/docs/openaev/concepts/validation/): The steps of a security validation in OpenAEV, from the targets and the attack to the results on the home dashboard, and the page that covers each step. - [How access works in OpenAEV](https://filigran.io/docs/openaev/concepts/access/): How OpenAEV decides who can do what, through tenants, users, groups, roles, capabilities and grants, and where an administrator sets each of them. **Use** - [Connect OpenAEV to OpenCTI to test security coverages](https://filigran.io/docs/openaev/use/coverage-enrichment/): Register an OpenAEV tenant in OpenCTI as the OpenAEV Coverage connector, so that security coverages become scenarios and their results come back to OpenCTI. - [Run a simulation and read its results](https://filigran.io/docs/openaev/use/simulations/): Start a simulation from a scenario or on its own, follow it while it runs, and read which attacks your defenses prevented and detected and how your teams responded. - [Check one attack technique with an atomic test](https://filigran.io/docs/openaev/use/atomic-testing/): Run a single action of the Threat Arsenal on chosen endpoints, read at once whether it was prevented and detected, and replay it on a schedule to check that a defense keeps working. - [Add injects to scenarios and simulations](https://filigran.io/docs/openaev/use/injects/): Create the injects of a scenario or simulation from the Threat Arsenal, set when they run, whom or what they target and what they expect, then manage them in the Injects tab. - [Build the actions of your threat arsenal](https://filigran.io/docs/openaev/use/threat-arsenal/): Create, import and manage the actions OpenAEV runs in injects, understand where they come from, and turn a selection into a scenario or an atomic test. - [How injects reach assets and people](https://filigran.io/docs/openaev/use/targets/): The targets of an inject, assets, asset groups, persons and teams, how a scenario makes them available, and why each target gets its own expectations. - [How expectations score an inject](https://filigran.io/docs/openaev/use/expectations/): What each expectation type measures, who answers it, how OpenAEV combines the answers of agents, assets, persons and groups into a score, and when an unanswered expectation expires. - [Review what your injects discovered](https://filigran.io/docs/openaev/use/findings/): Find the vulnerabilities, open ports, accounts and credentials your injects extracted from their output, see which assets carry them and since when, and read a CVE's context. - [Build dashboards of your validation results](https://filigran.io/docs/openaev/use/dashboards/): Create a custom dashboard of your OpenAEV results, scope it to a scenario or a simulation, filter it by period, and make it the dashboard of Home or of the Statistics tab. - [How injectors deliver your injects](https://filigran.io/docs/openaev/use/injectors/): What an OpenAEV injector does, the built-in, catalog and external injectors, how they get their injects, and where to see each injector and its inject types. - [How collectors measure what your security tools saw](https://filigran.io/docs/openaev/use/collectors/): How OpenAEV collectors read the alerts of your EDR, SIEM and other tools to score detection and prevention, the reference data other collectors import, and how to run them. - [Install the OpenAEV agent on your endpoints](https://filigran.io/docs/openaev/use/agents/): Install the OpenAEV agent on Windows, Linux and macOS endpoints, choose how it runs, add its antivirus exclusion, and check that the endpoint enrolls. - [How a phishing exercise works](https://filigran.io/docs/openaev/use/phishing/): What an OpenAEV phishing exercise measures, the landing pages and lure emails it is built from, how each person's open, click and submission is scored, and what it needs. - [How a chained scenario works](https://filigran.io/docs/openaev/use/attack-chaining/): How a chained scenario runs each step only when the results of the earlier ones allow it, inside the targets and limits you set, and draws the attack path it took. - [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/): Compare the executors that run attack actions on your endpoints, the OpenAEV agent or the EDR you already run, and learn how they enroll endpoints and run implants. - [Set up your profile](https://filigran.io/docs/openaev/use/profile/): Set your name, theme, language and home dashboard in OpenAEV, the phone and PGP key injects use, change your password or email address, and renew your API token. - [Build a scenario that replays an attack](https://filigran.io/docs/openaev/use/scenarios/build/): Create a scenario, fill it with injects by hand or with the scenario assistant, aim it at your assets and teams, then launch it or schedule it to follow your posture. - [Import a timeline of injects from a spreadsheet](https://filigran.io/docs/openaev/use/scenarios/import/): Describe your spreadsheet once in an XLS mapper, test it, then import a crisis exercise timeline into a scenario as emails and SMS with their delays and teams. - [Turn an OpenCTI security coverage into a scenario](https://filigran.io/docs/openaev/use/scenarios/from-opencti/): Let OpenAEV build a scenario from a threat's security coverage in OpenCTI, aim it at the right assets, fill its gaps, and send the scores of every run back to OpenCTI. - [Share files with your players](https://filigran.io/docs/openaev/use/components/documents/): Upload the files of an exercise once in OpenAEV, then attach them to emails, press articles, challenges and channel logos, or drop them on endpoints. - [Send each player their own email with variables](https://filigran.io/docs/openaev/use/components/variables/): Write an email or SMS inject once and let OpenAEV fill in each player's name, the exercise and your own values, such as the crisis bridge link. - [Create the media outlets of an exercise](https://filigran.io/docs/openaev/use/components/channels/): Create the newspaper, social network or TV channel your players read during a crisis exercise, with its name, colors and logos, before you write its articles. - [Publish fake press articles during an exercise](https://filigran.io/docs/openaev/use/components/media-pressure/): Write the press articles and social posts of a crisis exercise, publish them to the players at a set time, and see who read them. - [Give your players challenges to solve](https://filigran.io/docs/openaev/use/components/challenges/): Ask your players a question they must answer from the evidence of the exercise, check their answer against flags, and score it in the simulation's results. - [Collect lessons learned after an exercise](https://filigran.io/docs/openaev/use/components/lessons/): Build the debrief questionnaire of a crisis exercise from a template, send it to the teams that played, and read their answers and your objectives in one place. **Configure** - [Configure autonomous attack chaining](https://filigran.io/docs/openaev/configure/autonomous-attack/): Set the specialist agents an autonomous attack may consult by default and how far each may go, understand objective scope modes, and steer a live run. - [Set default asset groups by scenario tag](https://filigran.io/docs/openaev/configure/asset-rules/): Link a tag to asset groups so that every inject of a tagged scenario or simulation targets them, and set the groups of the rules that scenarios from OpenCTI use. - [Get notified of score drops and changes](https://filigran.io/docs/openaev/configure/notifications/): Set triggers that alert you in OpenAEV, by email or through a webhook when a scenario's score drops or a simulation, finding or asset changes, alone or as a digest. **Administer** - [Start the platform in safe mode](https://filigran.io/docs/openaev/administer/run-modes/): Start OpenAEV with its scheduled jobs stopped, to inspect or repair the platform while no inject, purge or synchronization runs, then return to normal mode. - [Protect the links in player emails](https://filigran.io/docs/openaev/administer/url-access-token/): How OpenAEV protects the links of media pressure, challenge and lessons learned emails with short-lived tokens, how long they last, and how to set their expiry and retention. - [Turn on the debug mode to find slow requests](https://filigran.io/docs/openaev/administer/debug-mode/): Turn on the debug mode of OpenAEV to trace each request with its SQL, find N+1 queries and record the JVM, safely in production, then read the output and turn it off. - [Troubleshoot OpenAEV](https://filigran.io/docs/openaev/administer/troubleshoot/): Fix the common problems of an OpenAEV instance, from a refused tenant or login to injects that do not run, and find the page that covers each part. - [Configure single sign-on](https://filigran.io/docs/openaev/administer/sso/): Let people log in to OpenAEV with your identity provider through OpenID Connect or SAML, send them to their tenant, map their groups and keep an emergency access. - [Keep an audit log of who changed what](https://filigran.io/docs/openaev/administer/audit-log/): Turn on the audit log of OpenAEV to record every login, change and refused access with who did it and from where, to the console or to rotated files, and choose what happens when it cannot be written. - [Set the login message and the consent box](https://filigran.io/docs/openaev/administer/policies/): Show a message on the OpenAEV login page and make users accept your terms before they log in, with the three login messages of the Policies screen. - [Set the name, look and home page of a tenant](https://filigran.io/docs/openaev/administer/parameters/): Name a tenant, set its default theme, language and dashboards, apply your colors and logos, and read the version, edition and services of the platform. - [Give each organization its own tenant](https://filigran.io/docs/openaev/administer/multi-tenancy/): Create a tenant for each organization you serve on one OpenAEV instance, give people access to it, connect its integrations, and delete or reactivate it. - [Manage the tags, attack patterns and vulnerabilities](https://filigran.io/docs/openaev/administer/taxonomies/): Keep the reference data of a tenant in order, its tags, attack patterns, kill chain phases and vulnerabilities, that classify scenarios, actions and assets. - [Connect a tenant to XTM Hub](https://filigran.io/docs/openaev/administer/xtm-hub/): Connect a tenant of OpenAEV to your organization in XTM Hub to deploy ready-made scenarios and threat arsenal actions in one click, and keep the connection alive. - [Check or stop the usage telemetry sent to Filigran](https://filigran.io/docs/openaev/administer/telemetry/): What anonymous usage data OpenAEV sends to Filigran, how and how often, what it never contains, how to see whether it is on, and how to stop it. --- # Keep an audit log of who changed what > Turn on the audit log of OpenAEV to record every login, change and refused access with who did it and from where, to the console or to rotated files, and choose what happens when it cannot be written. - URL: https://filigran.io/docs/openaev/administer/audit-log/ - Products: OpenAEV 3.261118.0 - Edition: requires an Enterprise Edition license - For: platform engineers, administrators - Type: How-to guide The audit log of OpenAEV records who did what on the platform: every login and logout, every creation, change, deletion and launch, and every access a role refused. Each event says who acted, from which address, in which tenant, on which object, and what changed. Send it to your log collector or keep it in files, to answer an auditor or investigate a change. It is off by default. This page turns it on, says what it records, and chooses what happens when an event cannot be written. ## Before you start {#before-you-start} - The platform has an Enterprise Edition license. Without it, a configured audit log stays inactive: the platform shows the banner **Audit logging is inactive: an Enterprise Edition license is required to enable this feature.**, and the platform logs the same warning once. It starts recording as soon as a valid license is applied, without a restart. See [Editions and licensing](https://filigran.io/docs/start/editions/). - You can change the environment of the `openaev` service and restart it. For the `file` transport, you can mount a volume on it. ## What it records {#what-it-records} **Diagram: OpenAEV writes one audit event per login, change, denied access or simulation step, to the console, a file or both** - What happens: Logins (Success, failure, logout), Changes (Create, update, delete, launch), Denied access (Refused by a role), Simulation runs (Injects and results) - OpenAEV: Audit logger (Who, what, from where) - Transports: console (JSON lines in the log), file (audit.log, rolled daily) Connections: - Logins → Audit logger - Changes → Audit logger - Denied access → Audit logger - Simulation runs → Audit logger - Audit logger → console: writes - Audit logger → file: writes | Event | `event_type` and `event_scope` | Recorded | | --- | --- | --- | | Logins | `authentication`: `login`, `logout`, `session_expired` | Each login, successful or not, with the login method (`local`, or the identifier of the single sign-on provider), each logout and each session that expires | | Changes | `mutation`: `create`, `update`, `delete`, `duplicate`, `status_change` | Each change made through the interface or the API, such as a scenario updated or a simulation launched. Reads that succeed are not recorded | | Refused access | `event_scope` `unauthorized`, `event_status` `error` | Each request a role refused, reads included | | Execution | `execution`: `scheduled_launch`, `inject_queued`, `inject_status_transition`, `target_resolution`, `agent_trace_step`, `expectation_result`, `coverage_gap` | What the platform does on its own while a simulation runs: injects launched on schedule, sent to their targets, their status, and the expectation results | Each event is one JSON document with its `timestamp`, `event_status` (`success` or `error`), the `user_id` and `tenant_id`, the `user_metadata` of the request (`user_email`, `ip`, `x_forwarded_for`, `user_agent`, `session_id`) and its `context_data`. For a change, `context_data` names the `entity_type` and the `resource_id`, with the input of the request, the result and the fields that changed. Secrets never reach the log: a field whose name contains `password`, `secret` or `token`, and the cloud credentials of integrations, are hidden before the event is written. A very large change is cut to `openaev.audit.normalization.max-event-size-bytes`, 32 KB by default, its long texts ending with `...[TRUNCATED]`. Under heavy load, OpenAEV skips this size reduction but still hides the secrets. The keys are in the [openaev.audit block](https://filigran.io/docs/reference/openaev/configuration/#openaev-audit). ## Turn it on {#turn-it-on} `OPENAEV_AUDIT-LOGS_TRANSPORTS` turns the audit log on. It takes a list of transports, separated by commas: | Transport | Where the events go | | --- | --- | | `console` | The output of the platform, as JSON lines next to the other logs, for a log collector that reads the containers' output | | `file` | A file in `OPENAEV_AUDIT-LOGS_FILE_DIR`, `logs` by default, relative to the folder the platform runs in. Give an absolute path on a volume, so the files survive the container | Empty, the default, records nothing. `engine` is accepted, but no version sends the audit log to the search engine yet. The `file` transport writes `audit.log`, named after `OPENAEV_AUDIT-LOGS_FILE_FILENAME`, and rolls it every day, or sooner when it reaches `OPENAEV_AUDIT-LOGS_FILE_ROLLOVER-MAX-SIZE`, `100MB`. Rolled files are named after their date, such as `audit.2026-01-14.0.log`. OpenAEV deletes them after `OPENAEV_AUDIT-LOGS_FILE_RETENTION-DAYS`, 365 days, or earlier when all of them together exceed `OPENAEV_AUDIT-LOGS_FILE_ROLLOVER-TOTAL-SIZE-CAP`, `20GB`: the oldest go first. Set the retention your audit policy asks for, and a size cap large enough to hold it. `AUDIT_LOG_DIR` and `AUDIT_LOG_FILENAME`, read by older versions, still take precedence when they are set. All the keys are in the [openaev.audit-logs block](https://filigran.io/docs/reference/openaev/configuration/#openaev-audit-logs). ## Choose what happens when an event cannot be written {#choose-what-happens-when-an-event-cannot-be-written} By default, a write that fails is logged as a warning and the platform goes on: the action is done, but missing from the audit log. With `OPENAEV_AUDIT-LOGS_HALT-ON-FAILURE` set to `true`, nothing changes without its audit event. OpenAEV waits for each event to be written before it confirms the change. When the write fails, it cancels the change, signs the user out and stops the platform. Turn it on when your rules forbid any unrecorded change, and watch the disk of the audit folder: a full disk then stops the platform. Each change also takes a little longer, the time of its write. **Example: Keep a year of audit for Example CERT's platform** Example CERT hosts the simulations of several hotel chains, and its contracts require a record of every change and every login, kept for 400 days. Its SIEM already collects the output of the containers. The platform engineer turns on both transports, keeps the files on the host, and forbids unrecorded changes: ```yaml services: openaev: environment: OPENAEV_AUDIT-LOGS_TRANSPORTS: "console,file" OPENAEV_AUDIT-LOGS_FILE_DIR: /var/log/openaev-audit OPENAEV_AUDIT-LOGS_FILE_RETENTION-DAYS: "400" OPENAEV_AUDIT-LOGS_FILE_ROLLOVER-TOTAL-SIZE-CAP: 50GB OPENAEV_AUDIT-LOGS_HALT-ON-FAILURE: "true" volumes: - ./openaev-audit:/var/log/openaev-audit ``` After `docker compose up -d openaev`, the SIEM receives an event when the security engineer of Grand Meridian Hotels updates the **Velvet Harbor replay** scenario, with his email address, his IP address, the tenant of Grand Meridian and the fields he changed. The same event is in `./openaev-audit/audit.log` on the host. ## Check that it works {#check-that-it-works} Log in to OpenAEV, then read the last events: ```bash docker compose exec openaev tail -n 2 /var/log/openaev-audit/audit.log ``` The last line is your login, with `"event_type":"authentication"`, `"event_scope":"login"` and `"event_status":"success"`. Without any line, check that the platform has an Enterprise Edition license: the banner says so when it has none. ## What's next {#what-s-next} - [How access works in OpenAEV](https://filigran.io/docs/openaev/concepts/access/), for the roles whose refusals the log records. - [Configure single sign-on](https://filigran.io/docs/openaev/administer/sso/), whose logins the log records with the provider. - [Troubleshoot the XTM stack](https://filigran.io/docs/deploy/operate/troubleshoot/), to read the other logs of the platform. --- # Turn on the debug mode to find slow requests > Turn on the debug mode of OpenAEV to trace each request with its SQL, find N+1 queries and record the JVM, safely in production, then read the output and turn it off. - URL: https://filigran.io/docs/openaev/administer/debug-mode/ - Products: OpenAEV 3.261118.0 - For: platform engineers - Type: How-to guide The debug mode of OpenAEV traces what the platform does, to diagnose a bug or a slow screen on your own installation. It ties the log lines of a request to a trace identifier and logs every SQL statement with its time and its masked values. It flags the requests that repeat the same query, and records the Java virtual machine (JVM) with Java Flight Recorder (JFR). It is off by default and costs nothing then. This page turns it on safely, reads what it writes, and turns it off. Raising the log level only is in [Troubleshoot the XTM stack](https://filigran.io/docs/deploy/operate/troubleshoot/#raise-the-log-level). ## Before you start {#before-you-start} - You can change the environment of the `openaev` service, restart it, and read the files it writes. - The output folder is writable and, in a container, on a volume. On a shared platform, restrict access to it: the SQL log mixes the queries of every tenant, with their tenant identifiers in clear. - The JFR recording with the default `profile` settings has a real cost on a busy platform. Plan a window, or use the lighter settings below. ## What it produces {#what-it-produces} **Diagram: The debug mode writes a request trace, the SQL it ran and a JVM recording to a folder you choose** - Platform: Request (trace id, tenant, user) - Debug mode: SQL detail (Time and masked values), ORM summary (Flags N+1 queries), JFR recording (CPU and memory) - Output folder: openaev.debug.output-dir (Rotated files, size caps), Console log (ORM summary by default) Connections: - Request → SQL detail: each statement - Request → ORM summary: one per request - SQL detail → openaev.debug.output-dir: writes - ORM summary → Console log: writes - JFR recording → openaev.debug.output-dir: dumps | Output | Where | What it holds | | --- | --- | --- | | Trace identifier | Every console log line, as `[traceId-spanId]` | Groups the lines of one request. No tracing backend is needed | | SQL detail | `openaev-debug-sql.log` in the output folder, rotated | Every SQL statement, with its time, its parameters masked, and the trace, tenant and user of the request | | ORM summary | The console, or `openaev-debug-orm.log` | One line per request: its number of queries and their time, its user, and an `N+1 SUSPECTED` warning when the same `SELECT` repeats | | JFR recording | `.jfr` files in the output folder | CPU, memory and threads of the JVM, dumped every 10 minutes and at shutdown | A request seen on the console: ```text WARN [OpenAEV API] [http-nio-exec-3] [6a3c4dea…0b-7bd42e33…] ...debug.orm : ORM GET /api/scenarios/sc-42: 13 queries (2 distinct), 7ms user=8f2b-user-helene N+1 SUSPECTED: 'select team_name from teams where team_id = ?' executed 12x (6ms total) ``` The same request in the SQL log: ```text 2026-04-12 23:36:42.179 INFO [trace=6a3c4dea... tenant=0e7c2f1a-tenant-grand-meridian user=8f2b-user-helene] sql success=true time=5ms statement=select team_name from teams where team_id = ? params=[{team_id=team-0}] ``` ## Turn it on {#turn-it-on} 1. Set the debug mode in the environment of the `openaev` service. A platform runs in production when no `dev`, `test` or `ci` profile is active: there, the mode starts only with the production override too. ```yaml services: openaev: environment: OPENAEV_DEBUG_ENABLED: "true" OPENAEV_DEBUG_ALLOW-IN-PRODUCTION: "true" OPENAEV_DEBUG_AUTO-DISABLE-AFTER: 30m OPENAEV_DEBUG_OUTPUT-DIR: /var/debug volumes: - debug-data:/var/debug volumes: debug-data: ``` 2. Recreate the container: `docker compose up -d openaev`. **Check that it worked** The log of the platform shows a banner saying that the debug mode is active, repeated every 5 minutes. Without the production override, it shows an error saying why the mode refused to start, and the platform runs as usual. 3. Reproduce the problem, and note the time and the page. `OPENAEV_DEBUG_AUTO-DISABLE-AFTER` stops the tracing by itself after 30 minutes, so it cannot be left on by mistake; until a restart, the platform keeps a small inactive hook on its database connections. ## Read the output {#read-the-output} The SQL log is a stream to filter, not a file to read: it holds every statement of the platform, scheduled jobs included, which carry no trace (`[trace= tenant=]`). 1. Find the request in the console log, with its time and its path, and copy its trace identifier. 2. Extract its statements, without folding the long lines: ```bash grep "trace=6a3c4dea" /var/debug/openaev-debug-sql.log | less -S ``` 3. Look for the slowest `time=` and for the statements the ORM summary flagged as `N+1 SUSPECTED`. 4. Open the `.jfr` files with JDK Mission Control or `jfr print` to see where the CPU went. To keep only the statements of requests, without the scheduled jobs: `grep -E "trace=[0-9a-f]" openaev-debug-sql.log`. To check the masking: `grep MASKED openaev-debug-sql.log`. ## Turn it off {#turn-it-off} Remove `OPENAEV_DEBUG_ENABLED`, or set it to `false`, and recreate the container. The files stay in the output folder: send them to Filigran support if it asked for them, then delete them. ## Keep secrets out of the logs {#keep-secrets-out-of-the-logs} Masking is on by default, `openaev.debug.masking.enabled`. A value is replaced by `***MASKED***` when its column or field is named like a secret, such as `password`, `token` or `client_secret`. It is also masked wherever it looks like a JSON Web Token, a `Bearer` or `Basic` authorization, a PEM private key or an email address. Both are best effort: a secret in a column with an unusual name and no known shape would still show. For a guarantee, set `openaev.debug.masking.mask-all-parameters` (`OPENAEV_DEBUG_MASKING_MASK-ALL-PARAMETERS`) to `true`: every value is masked, only the column name and type stay, and the quoted strings of native queries are blanked too. Extend the lists with `openaev.debug.masking.sensitive-keys` and `openaev.debug.masking.value-patterns`. ## Every setting {#every-setting} All keys start with `openaev.debug.` and work only while `openaev.debug.enabled` is `true`. The [openaev.debug block](https://filigran.io/docs/reference/openaev/configuration/#openaev-debug) of the configuration reference gives their environment variables. | Key | Default | What it sets | | --- | --- | --- | | `enabled` | `false` | Turns the debug mode on | | `allow-in-production` | `false` | Lets the mode start in production | | `auto-disable-after` | `0`, never | Stops the tracing after this duration, such as `30m` | | `warning-interval` | `5m` | How often the log repeats that the mode is active | | `output-dir` | `./logs/debug` | The folder of the files. A read-only container needs a mounted volume here | | `sql.enabled` | `true` | Logs the SQL statements | | `sql.slow-query-threshold` | `0ms`, all | Logs only the statements slower than this, such as `50ms` | | `sql.max-parameter-length` | `200` | Cuts longer values, after masking | | `sql.max-file-size` | `500MB` | Size at which the SQL log rolls over | | `sql.max-history` | `7` | Days of SQL logs kept | | `sql.total-size-cap` | `2GB` | Total size of SQL logs kept | | `orm.summary-to-file` | `false` | Writes the ORM summary to `openaev-debug-orm.log` instead of the console, to keep it out of a centralized log pipeline | | `jfr.enabled` | `true` | Records the JVM. Skipped when the Pyroscope agent is on (`pyroscope.agent.enabled`) | | `jfr.settings` | `profile` | `profile`, detailed, or `default`, lighter | | `jfr.duration` | `10m` | Interval between two dumps | | `jfr.max-size` | `100MB` | Size cap of one recording | | `jfr.max-age` | `1h` | Age of the oldest event kept | | `jfr.max-dump-files` | `12` | Dumps kept | | `jfr.max-total-dump-size` | `500MB` | Total size of the dumps kept | | `masking.enabled` | `true` | Masks secrets and personal data | | `masking.mask-all-parameters` | `false` | Masks every value | | `masking.mask` | `***MASKED***` | The replacement text | When the output folder is not writable, the platform keeps running. The JFR recording fails with `Debug mode: failed to start JFR recording`, and the SQL detail goes to the console with `Debug mode: log directory is not writable`. **Example: Find why the scenario list of Grand Meridian is slow** The security engineer of Grand Meridian Hotels reports that the list of scenarios of his tenant takes ten seconds to open since Example CERT imported the Velvet Harbor replays. The platform engineer of Example CERT turns the debug mode on for half an hour, on the production platform, keeping only slow statements and leaving the JVM alone: ```yaml services: openaev: environment: OPENAEV_DEBUG_ENABLED: "true" OPENAEV_DEBUG_ALLOW-IN-PRODUCTION: "true" OPENAEV_DEBUG_AUTO-DISABLE-AFTER: 30m OPENAEV_DEBUG_OUTPUT-DIR: /var/debug OPENAEV_DEBUG_SQL_SLOW-QUERY-THRESHOLD: 50ms OPENAEV_DEBUG_JFR_ENABLED: "false" volumes: - debug-data:/var/debug volumes: debug-data: ``` The engineer opens the list again. The console shows `N+1 SUSPECTED` on the request of the list, with one `SELECT` on the tags repeated for each scenario. The platform engineer sends the console lines and the statements of that trace to Filigran support, then removes the variables. ## What's next {#what-s-next} - [Troubleshoot OpenAEV](https://filigran.io/docs/openaev/administer/troubleshoot/). - [Troubleshoot the XTM stack](https://filigran.io/docs/deploy/operate/troubleshoot/), for the logs and their level. - [Start the platform in safe mode](https://filigran.io/docs/openaev/administer/run-modes/), to rule out the scheduled jobs. --- # Give each organization its own tenant > Create a tenant for each organization you serve on one OpenAEV instance, give people access to it, connect its integrations, and delete or reactivate it. - URL: https://filigran.io/docs/openaev/administer/multi-tenancy/ - Products: OpenAEV 3.261118.0 - Edition: requires an Enterprise Edition license - For: administrators, platform engineers - Type: How-to guide A tenant is an isolated workspace of OpenAEV: its own scenarios, simulations, atomic testings, assets, teams, findings, integrations, settings, users, groups and roles. One platform can hold many tenants, so a CERT or a managed security service provider (MSSP) runs a single deployment for all its customers, and a large company keeps its subsidiaries apart. This page creates a tenant, gives people access to it and connects its integrations. Read [How access works in OpenAEV](https://filigran.io/docs/openaev/concepts/access/) first if roles and groups are new to you. ## Before you start {#before-you-start} - The platform has an Enterprise Edition license. Without it, the platform has a single tenant, the default one, and the **Platform** scope of the Security menu is not shown. See [Editions and licensing](https://filigran.io/docs/start/editions/). - Your role is a platform role with **Manage tenants**, and **Delete tenants** to delete one. The bootstrap admin has them. - To attach users to tenants from the platform, your role also has **Manage platform users, groups and roles**. ## What a tenant separates {#what-a-tenant-separates} **Diagram: One OpenAEV instance holds several tenants, each with its own data, people and integrations** - Platform: Platform scope (Tenants, platform users, groups, roles) - Tenants: Example CERT (The default tenant, renamed), Grand Meridian Hotels (Scenarios, assets, teams, findings), Another member chain (Sees nothing of the others) - In each tenant: Own content (Users, groups, roles, integrations) Connections: - Platform scope → Example CERT: creates - Platform scope → Grand Meridian Hotels: creates - Platform scope → Another member chain: creates - Grand Meridian Hotels → Own content: holds | In each tenant | Shared by the whole platform | | --- | --- | | Scenarios, simulations, atomic testings, findings, dashboards and reportings | The deployment: configuration, database, search indices, queues and storage | | Assets, asset groups, teams, persons and organizations | The login page and its [login messages](https://filigran.io/docs/openaev/administer/policies/) | | Injectors, collectors and executors, each registered for the tenant | The Enterprise Edition license | | Tags, attack patterns, kill chain phases and vulnerabilities | The platform users, groups and roles | | Its users, groups, roles and grants, and its [parameters](https://filigran.io/docs/openaev/administer/parameters/) | The [usage telemetry](https://filigran.io/docs/openaev/administer/telemetry/) | | Its connection to [XTM Hub](https://filigran.io/docs/openaev/administer/xtm-hub/) and to OpenCTI | | A user of one tenant sees nothing of the others. One account can belong to several tenants: its rights are worked out in each tenant separately, from the groups of that tenant and from its platform groups. ## Rename the default tenant {#rename-the-default-tenant} Every platform starts with a default tenant named **First default tenant auto created to rename**. It holds what existed before multi-tenancy, it cannot be deleted, and the integrations that set no tenant work in it. 1. Open **Settings > Security**, then choose **Platform** in the switch at the top of the right menu. 2. Click **Tenants**. The list shows each tenant's **Name** and **Status**; the default tenant carries a **Danger Zone** tag. 3. Open the menu of the default tenant, choose **Update**, enter your organization's name in **Name**, and click **Update**. ![The Tenants management page under the Platform scope: the tenant Grand Meridian Hotels, Active, with its Danger Zone and the Create button.](https://filigran.io/docs/shots/7fd75d50b7338e38240cc5ce18210afdec783f303b2779e59689e1d70277bbb7.webp) ## Create a tenant {#create-a-tenant} 1. In **Settings > Security > Tenants**, with the **Platform** scope, click **Create**. 2. In **Create a new tenant**, enter a **Name**, unique on the platform, and a **Description**. 3. Click **Create**. OpenAEV shows **Creating tenant…** while it sets the tenant up. The tenant shows in the list as **Active**. It already holds its **Admin**, **Manager** and **Observer** groups and roles, described in [What a new tenant starts with](https://filigran.io/docs/openaev/concepts/access/#what-a-new-tenant-starts-with), a few sample vulnerabilities, and its built-in injectors and collectors. You are a member of the tenant and of its **Admin** group, so it appears in your tenant switcher. ## Give people access {#give-people-access} A user works in a tenant once they are attached to it and belong to one of its groups. Two ways lead there: - **From the tenant.** Switch to the tenant, open **Settings > Security > Users** with **This tenant**, and click **Create**. An email address that already has an account attaches that account to the tenant; a new one creates the account and sends a reset code by email. This needs **Manage tenant users, groups and roles** in the tenant, not a platform role. - **From the platform.** With the **Platform** scope, open **Users**, open a user's menu, choose **Update**, and add the tenant to **Tenants**. Removing a tenant from the list detaches the user and removes them from that tenant's groups. Then open **Settings > Security > Groups** in the tenant and use **Manage users** on the group that fits. Single sign-on can do both at each login: see [Configure single sign-on](https://filigran.io/docs/openaev/administer/sso/#send-users-to-the-right-tenant). ## Open a tenant {#open-a-tenant} The left menu shows the current tenant above the navigation when you belong to more than one: click it and choose another. Each tenant has its own address, with the tenant identifier after the host, so you can open two tenants in two browser tabs. When the address names no tenant, OpenAEV opens the last tenant you used in this browser, or else the first one you belong to. A user who opens the address of a tenant they do not belong to sees **Tenant access denied**: an administrator must attach them. A user attached to no tenant at all is told that their account is not attached to any tenant. ## Connect the integrations of a tenant {#connect-the-integrations-of-a-tenant} Each tenant has its own integrations, and its **Tenant identifier**, under **Settings > Parameters**, is what they need: - **Built-in injectors and collectors** are registered for every new tenant: nothing to do. - **Integrations deployed by XTM Composer** from the tenant's **Integrations** screen get the tenant identifier automatically. - **Integrations you run yourself** need `OPENAEV_TENANT_ID` next to `OPENAEV_URL` and `OPENAEV_TOKEN`. Without it they work in the default tenant, like the collectors xtm-docker starts: a new tenant gets no MITRE ATT&CK attack patterns and no NVD vulnerabilities until a collector runs for it. See [Run an integration without XTM Composer](https://filigran.io/docs/deploy/integrations/manual/). - **The link to OpenCTI** is configured per tenant, with the keys `openaev.xtm.opencti..*`. See [Link OpenCTI and OpenAEV](https://filigran.io/docs/deploy/configure/connect-modules/#link-opencti-and-openaev). ## Delete or reactivate a tenant {#delete-or-reactivate-a-tenant} **Delete**, in the menu of a tenant, is a soft delete. The tenant turns **Deleted**, its members lose access at once, and its data is kept for 30 days. During those 30 days, **Reactivate** in the same menu brings it back as it was. After them, a job that runs every night at 2:00 removes the tenant and all its data, documents and search entries included, for good. The default tenant cannot be deleted: its **Delete** is greyed out. > **Warning** > > A platform started in [safe mode](https://filigran.io/docs/openaev/administer/run-modes/) runs no purge: tenants deleted more than 30 days ago stay until the platform runs in normal mode again, and cannot be reactivated any more. **Example: Open a tenant for Grand Meridian Hotels** Example CERT runs one OpenAEV instance for the hotel chains it serves. Its administrator gives the default tenant to its first member chain, then creates a tenant for each other chain, and one, **Example CERT**, for its own analysts. The default tenant gets: | Field | Value | | --- | --- | | **Name** | `Grand Meridian Hotels` | | **Description** | `Member hotel chain of Example CERT: Paris head office, hotels in France and Spain. CISO: Hélène Marchetti.` | In that tenant, under **This tenant**, he creates `helene.marchetti@grand-meridian.example` and the security engineer of Grand Meridian, then puts Hélène in **Observer** and the engineer in **Manager**. He reads the **Tenant identifier** in **Settings > Parameters**, `7c1e4b2a-5d3f-4e8b-9a61-2f0c8d4e6b13`, and gives it to the platform engineer, who sets it as `OPENAEV_TENANT_ID` on the collector of Meridian EDR. Grand Meridian's people now replay Velvet Harbor against their front-desk workstations without seeing the other chains, and Example CERT's analysts see Grand Meridian only once they are attached to it. ## What's next {#what-s-next} - [Configure single sign-on](https://filigran.io/docs/openaev/administer/sso/), to attach each chain's staff to its tenant at login. - [Set the name, look and home page of a tenant](https://filigran.io/docs/openaev/administer/parameters/). - [How access works in OpenAEV](https://filigran.io/docs/openaev/concepts/access/), for the groups and roles of each tenant. --- # Set the name, look and home page of a tenant > Name a tenant, set its default theme, language and dashboards, apply your colors and logos, and read the version, edition and services of the platform. - URL: https://filigran.io/docs/openaev/administer/parameters/ - Products: OpenAEV 3.261118.0 - For: administrators - Type: How-to guide **Settings > Parameters** sets how a tenant looks to its users. It holds the name in the browser tab, the theme and language new users get, the dashboards that open by default, and the colors and logos of the two themes. It also shows the version, edition and services of the platform, which support asks for first. Each tenant has its own parameters, and changes apply at once, without a restart. ## Before you start {#before-you-start} - Your role has **Access tenant settings** to open the screen, and **Manage tenant settings** to change it. The **Admin** group of a tenant has both. - **Remove Filigran logos** needs an Enterprise Edition license and **Manage platform settings**: it applies to the whole platform. - You work in the tenant to set up: its name shows in the left menu when you belong to several. ## How a value is chosen {#how-a-value-is-chosen} **Diagram: A tenant parameter left empty takes the platform value, then the module default** - What a user sees: User preference (Theme, language, home dashboard) - Tenant: Tenant parameters (Settings > Parameters) - Platform: Platform value (Name, theme, language), Module default (OpenAEV name, dark theme, automatic language) Connections: - User preference → Tenant parameters: else - Tenant parameters → Platform value: else - Platform value → Module default: else A parameter left empty in a tenant takes the value of the platform, then the default of OpenAEV. A user's own theme, language or home dashboard, chosen in their profile, comes before the tenant's. ## Set the configuration {#set-the-configuration} 1. Open **Settings > Parameters**. 2. In the **Configuration** card, set the fields: | Field | What it sets | Default | | --- | --- | --- | | **Platform name** | The name in the browser tab and the navigation. Required | `OpenAEV - Open Adversarial Exposure Validation Platform` | | **Default theme** | The theme of users who chose none: **Default**, **Dark** or **Light** | Dark | | **Default language** | The language of users who chose none: **Automatic** follows the browser, or one of the nine languages | **Automatic** | | **Home dashboard** | The custom dashboard of the home page | **Platform default**, the home page of OpenAEV | | **Default scenario dashboard** | The custom dashboard of the **Statistics** tab of every scenario | **Technical scenario**, from the starter pack | | **Default simulation dashboard** | The custom dashboard of the **Statistics** tab of every simulation | **Technical simulation**, from the starter pack | 3. Click **Update**. ![The Configuration card of the default tenant, with its platform name, Dark theme, Automatic language and the Technical scenario and Technical simulation dashboards, next to the OpenAEV platform card with the tenant identifier, the version 3.261029.0 and the Enterprise Edition.](https://filigran.io/docs/shots/101e73e9f332dc1233e6654ecaa3e1f0a47c2bcb0fc9c648a12e67e3ca5dc987.webp) The dashboards must exist in the tenant: build them first in **Dashboards**. The starter pack, which OpenAEV loads into each new tenant unless `openaev.starterpack.enabled` is `false` (see the [openaev.starterpack block](https://filigran.io/docs/reference/openaev/configuration/#openaev-starterpack)), brings the **Technical scenario** and **Technical simulation** dashboards and sets them as the defaults. ## Brand the themes {#brand-the-themes} The **Dark theme** and **Light theme** cards customize each theme separately. Leave a field empty to keep the default of OpenAEV. 1. In the card of the theme, enter the colors as `#RRGGBB`, such as `#4CAF50`: **Background color**, **Paper color** (cards and dialogs), **Navigation color**, **Primary color** (buttons and links), **Secondary color**, **Accent color** and **Text color**. 2. Enter the addresses of your logos: **Logo URL** for the open menu, **Logo URL (collapsed)** for the folded menu, **Logo URL (login)** for the login page. 3. Click **Update**. **Reset** empties the card again, until you click **Update**. ![The Light theme card with the primary color #8C1D40 and the two logo addresses of Grand Meridian Hotels filled in, the other colors left on Default.](https://filigran.io/docs/shots/12b4bf6b6399a66a40cec06b58d67cf73b11a80d1ec6b6fc705a1fd1ecaec082.webp) When the **Primary color** is too close to the background or paper color, or the **Text color** to either of them, the card warns **Contrast below the accessibility floor**: the ratio is under 4.5 to 1. It saves anyway: choose another color so that every user can read the screens. Logo and image addresses must use `https` and point to a public address: OpenAEV refuses the others when you save. On a closed network with no public place for your logos, the platform engineer turns on `openaev.theme.asset-allow-internal-targets`, off by default (see the [openaev.theme block](https://filigran.io/docs/reference/openaev/configuration/#openaev-theme)). It also lets reports load images from internal addresses. The login page comes before any tenant: it keeps the platform's own theme. The **Login aside color**, **Login aside gradient start color**, **Login aside gradient end color** and **Login aside image URL** fields of a tenant's theme do not change it. ## Read the platform information {#read-the-platform-information} The **OpenAEV platform** card describes the deployment: | Field | What it shows | | --- | --- | | **Tenant identifier** | The identifier of this tenant, to copy into an integration or a single sign-on provider | | **Platform identifier** | The identifier of the platform | | **Version** | The version of the platform. When the image was built with a commit (`OPENAEV_COMMIT`), hover it to see the **Commit hash**, and click it to copy both | | **Edition** | **Enterprise** or **Community** | | **AI Powered** | The AI provider of the platform, or **Disabled**. The row is hidden when OpenAEV is registered with XTM One | | **Remove Filigran logos** | Hides the Filigran logos of the interface, for the whole platform | The **Tools** card lists the **JAVA Virtual Machine**, **PostgreSQL**, **RabbitMQ** and search engine versions, and whether the **Telemetry manager**, **SMTP** and **IMAP** are on. Only administrators see the versions: the bootstrap admin and the users single sign-on maps to administrators. **SMTP** reads **Disabled** when the platform cannot connect to its outgoing mail server (the [spring.mail block](https://filigran.io/docs/reference/openaev/configuration/#spring-mail)), and **IMAP** when incoming mail is off or unreachable (the [openaev.mail block](https://filigran.io/docs/reference/openaev/configuration/#openaev-mail)). **Example: Brand the tenant of Grand Meridian Hotels** Grand Meridian Hotels wants its people to recognize their own workspace on Example CERT's platform. In the **Grand Meridian Hotels** tenant, its administrator sets: | Field | Value | | --- | --- | | **Platform name** | `Grand Meridian validation` | | **Default theme** | **Light** | | **Default language** | **French** | | **Home dashboard** | `Velvet Harbor replay`, the dashboard of the last simulation of Velvet Harbor against the front-desk workstations | | **Primary color** (**Light theme**) | `#8C1D40` | | **Logo URL** (**Light theme**) | `https://static.grand-meridian.example/brand/logo-wide.svg` | | **Logo URL (collapsed)** (**Light theme**) | `https://static.grand-meridian.example/brand/logo-square.svg` | New users of the tenant open OpenAEV in French, in the light theme, on the Velvet Harbor dashboard, with Grand Meridian's logo and color. The other tenants of the platform keep their own look. > **With XTM One: The name XTM One shows** > > When OpenAEV is registered with XTM One, XTM One names it with the **Platform name** of the default tenant. Rename the default tenant's platform to tell your OpenAEV instances apart in XTM One. ## What's next {#what-s-next} - [Set the login message and the consent box](https://filigran.io/docs/openaev/administer/policies/). - [Give each organization its own tenant](https://filigran.io/docs/openaev/administer/multi-tenancy/). - [Troubleshoot OpenAEV](https://filigran.io/docs/openaev/administer/troubleshoot/), where the version and the services of this screen help. --- # Set the login message and the consent box > Show a message on the OpenAEV login page and make users accept your terms before they log in, with the three login messages of the Policies screen. - URL: https://filigran.io/docs/openaev/administer/policies/ - Products: OpenAEV 3.261118.0 - For: administrators - Type: How-to guide The **Policies** screen holds the three login messages of OpenAEV: a message shown above the login form, and a consent text that keeps the form hidden until the user checks a box. Use them to announce maintenance, or to make every user accept your acceptable use terms before they log in. The login page comes before any tenant, so these messages are the same for every tenant of the platform. ## Before you start {#before-you-start} - Your role has **Manage platform settings**: the messages belong to the whole platform. The bootstrap admin has it. - The screen is in the **This tenant** scope of the Security menu, shown to users with **Access tenant settings**. A user who has the tenant settings capabilities but not **Manage platform settings** sees the fields, but OpenAEV refuses the update. ## Write the messages {#write-the-messages} **Diagram: The three login messages decide what the login page shows before anyone signs in** - Policies: Platform login message (Shown above the form), Platform consent message (Hides the form until accepted), Platform consent confirm text (Text of the checkbox) - Login page: Login page (Same for every tenant), Form and SSO buttons (Once the box is checked) Connections: - Platform login message → Login page: shows - Platform consent message → Login page: shows - Platform consent confirm text → Login page: labels the box - Login page → Form and SSO buttons: unlocks 1. Open **Settings > Security > Policies**. If the right menu shows the **Platform** scope, switch to **This tenant** first: **Policies** is listed there. 2. In the **Login messages** card, fill in the fields you need. Each one takes Markdown. | Field | What it does | Empty | | --- | --- | --- | | **Platform login message** | Shows above the login form, for an announcement | Nothing is shown | | **Platform consent message** | Shows above the form and hides the form and the SSO buttons until the user checks the box below it | No consent is asked | | **Platform consent confirm text** | The text next to the box | **I have read and comply with the above statement** | 3. Click **Update**. ![The Login messages card of Policies, filled with the maintenance notice, the rules of the Example CERT validation platform and the text next to the consent box, above the Update button.](https://filigran.io/docs/shots/0ff6dbe482a5a1b5771c6015ba1dc3a44e8de83a8d00999e801d36c4a3b56070.webp) The consent is asked again at every visit of the login page: OpenAEV keeps no record of who accepted it. **Example: Ask the hotel chains to accept the platform rules** Example CERT hosts the simulations of several hotel chains on one OpenAEV instance, and every user must accept its rules before logging in. | Field | Value | | --- | --- | | **Platform login message** | `Example CERT validation platform. Maintenance on Sunday 18 January 2026, 06:00 to 08:00 CET.` | | **Platform consent message** | `This platform runs attack simulations against the systems of Example CERT's members. Launch a simulation only on the assets your organization owns, and report any unexpected effect to Example CERT.` | | **Platform consent confirm text** | `I accept the rules of the Example CERT validation platform` | The login page shows the rules with a box to check, then the maintenance notice. The form, and the **Log in with Grand Meridian** button of the chain's single sign-on, show only once the box is checked. ## Check that it works {#check-that-it-works} Open the login page in a private browser window. The login message shows above the form; with a consent message, the form stays hidden until you check the box. ## What's next {#what-s-next} - [Configure single sign-on](https://filigran.io/docs/openaev/administer/sso/), for the buttons shown under the form. - [Set the name, look and home page of a tenant](https://filigran.io/docs/openaev/administer/parameters/). - [How access works in OpenAEV](https://filigran.io/docs/openaev/concepts/access/). --- # Start the platform in safe mode > Start OpenAEV with its scheduled jobs stopped, to inspect or repair the platform while no inject, purge or synchronization runs, then return to normal mode. - URL: https://filigran.io/docs/openaev/administer/run-modes/ - Products: OpenAEV 3.261118.0 - For: platform engineers, administrators - Type: How-to guide Safe mode starts OpenAEV without its scheduled jobs: the interface and the API answer, but no inject is sent, no scheduled scenario starts, and no purge or synchronization runs. Use it to look at a platform without letting it act. For example, stop a simulation that would fire against production endpoints, check the data after an upgrade, or find which job puts a load on the database. The run mode is set by `openaev.run-mode` (`OPENAEV_RUN-MODE`): `normal`, the default, or `safe`. ## Before you start {#before-you-start} - You can change the environment of the `openaev` service and restart it. With xtm-docker, see [Change the stack without editing docker-compose.yml](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml). - Tell the users of every tenant: in safe mode, no simulation of any tenant runs. ## What stops, what keeps running {#what-stops-what-keeps-running} **Diagram: In safe mode, the interface and the API keep answering while every background job stays stopped** - Configuration: openaev.run-mode (normal (default) or safe) - Still running: Interface and API (With a safe mode banner) - Stopped: Inject execution (Simulations, atomic tests), Integrations and indexing (Search, coverage, XTM Composer), Retention and purges (Tenants, tokens, traces) Connections: - openaev.run-mode → Interface and API: safe - openaev.run-mode → Inject execution: not started - openaev.run-mode → Integrations and indexing: not started - openaev.run-mode → Retention and purges: not started | Stopped in safe mode | What you notice | | --- | --- | | Execution of injects, scheduled scenarios, atomic testings and communication checks, and the closing of finished injects | Simulations stay where they are: their next injects are not sent | | Synchronization with XTM Composer, processing of the security coverage requests of OpenCTI, and the registration of OpenAEV in OpenCTI | Integrations deployed or changed in the interface are not started; coverage requests wait | | Attack chaining queues, workflow timeouts and the timeouts of autonomous runs | Attack chains stop at their current step | | Agent inactivity monitor | Agents that stop reporting keep their last status | | Notification digests and scheduled reportings | No digest and no scheduled report is sent | | Copy of the data to Elasticsearch or OpenSearch | Search results and lists that read the search engine miss the latest changes | | Retention and purges: user events, execution traces, notification events, URL access tokens, and the tenants deleted more than 30 days ago | Old data stays; a deleted tenant is not purged | The rest keeps running: the interface and the API, the health probes, the usage telemetry, the registration with XTM One and the XTM Hub checks. The expectations keep expiring, and the injectors and executors that work on their own keep working, such as the polling of an EDR executor. > **Warning** > > Expectations keep expiring in safe mode. A simulation that was running when you switched mode sees its detection and prevention expectations fail when their time is up, because its injects never ran. Pause the simulations that matter before you switch, and launch them again once back in normal mode. ## Switch to safe mode {#switch-to-safe-mode} 1. Set the run mode in the environment of the `openaev` service: ```yaml services: openaev: environment: OPENAEV_RUN-MODE: safe ``` 2. Recreate the container so that it reads the new value. ```bash docker compose up -d openaev ``` **Check that it worked** Every page of OpenAEV, the login page included, shows the banner **Safe mode is active: background processing is disabled.** ## Return to normal mode {#return-to-normal-mode} Remove `OPENAEV_RUN-MODE` from the environment, or set it to `normal`, and recreate the container. The banner disappears and the jobs start again. Every inject whose time came while the platform was in safe mode is sent within the next minute, all at once: pause the simulations that must not catch up before you switch back. The copy to the search engine catches up with the changes made in between. **Example: Hold a simulation that targets the wrong hotels** On a Friday evening, the security engineer of Grand Meridian Hotels sees a mistake. The simulation replaying Velvet Harbor targets the booking database servers of every hotel, not only the Paris test site. He asks Example CERT to stop the platform from acting while he fixes the targets. The platform engineer of Example CERT adds `OPENAEV_RUN-MODE: safe` to the `openaev` service and runs `docker compose up -d openaev`. The banner shows on every page, no inject leaves the platform, and the engineer moves the simulation to the right asset group. The platform engineer then removes the variable and recreates the container: the platform is back in normal mode, and the injects of the other tenants that fell due over the evening are sent at once. ## What's next {#what-s-next} - [Troubleshoot OpenAEV](https://filigran.io/docs/openaev/administer/troubleshoot/), to find the cause of the problem. - [Turn on the debug mode to find slow requests](https://filigran.io/docs/openaev/administer/debug-mode/), when a job slows the database down. - The [openaev block](https://filigran.io/docs/reference/openaev/configuration/#openaev) of the configuration reference. --- # Configure single sign-on > Let people log in to OpenAEV with your identity provider through OpenID Connect or SAML, send them to their tenant, map their groups and keep an emergency access. - URL: https://filigran.io/docs/openaev/administer/sso/ - Products: OpenAEV 3.261118.0 - For: administrators, platform engineers - Type: How-to guide Single sign-on (SSO) lets people log in to OpenAEV with their account in your identity provider (IdP), through OpenID Connect (OIDC) or SAML 2.0, instead of a password stored in OpenAEV. OpenAEV creates the account at the first login, attaches it to a tenant and keeps its groups in line with the IdP at every login. Providers are set in the configuration of the platform, not in the interface. This page explains what a login does, then configures a provider, its tenant and its group mapping. ## Before you start {#before-you-start} - You can change the configuration of the `openaev` service and restart it. With xtm-docker, see [Change the stack without editing docker-compose.yml](https://filigran.io/docs/deploy/install/docker-compose/#change-the-stack-without-editing-docker-compose-yml). - `openaev.base-url` (`OPENAEV_BASE-URL`) is the public address of OpenAEV: the addresses your IdP calls back are built from it. See the [openaev block](https://filigran.io/docs/reference/openaev/configuration/#openaev) of the configuration reference. - You have administrator access to your IdP, to register OpenAEV as an application. - The groups that logins will map to exist, each with a name used by no other group of its tenant, or of the platform for a platform group. See [Map groups](#map-groups). - Local login stays on for an emergency access. See [Keep an emergency access](#keep-an-emergency-access). ## Choose a strategy {#choose-a-strategy} | Strategy | Key and default | How the user logs in | How many | | --- | --- | --- | --- | | Local | `openaev.auth-local-enable`, `true` | Email and password form | One | | OpenID Connect | `openaev.auth-openid-enable`, `false` | A button, then the login page of the IdP | Several providers | | SAML 2.0 | `openaev.auth-saml2-enable`, `false` | A button, then the login page of the IdP | Several providers | The three switches are independent. With local login and SSO both on, the login page shows the form, with one button per provider below it. Prefer OIDC or SAML in production, and keep local login for the emergency account. ## What a login does {#what-a-login-does} **Diagram: A single sign-on login creates or updates the account, attaches it to a tenant and syncs its mapped groups** - Identity provider: Identity provider (OpenID Connect or SAML 2.0) - OpenAEV login: Account (Found or created by email), Tenant (tenant_id, else the default tenant), Mapped groups (Added or removed at each login), Admin group (Of the provider's tenant, with roles_admin or all_admin) Connections: - Identity provider → Account: email, names - Account → Tenant: attached - Identity provider → Mapped groups: group claim - Identity provider → Admin group: role claim OpenAEV trusts the IdP: it asks for no password, and creates the account the first time someone logs in. Five rules explain what you will see: 1. **The email identifies the user.** With OIDC, OpenAEV reads the `email` claim and refuses the login without one; it takes the names from `given_name` and `family_name`. With SAML, the email is the `NameID` of the assertion, and the names come from the attributes you name. A new account has no password. The names are refreshed at every login. 2. **The account joins one tenant.** When it logs in through a provider and is not a member of its tenant, the account is attached to the tenant of that provider, `tenant_id`, or to the default tenant without it. It then joins the groups of that tenant that have **Auto assign** on. 3. **Mapped groups follow the IdP.** At every login, OpenAEV reads the groups of the user from the claims or attributes in `groups_path`. A group of the mapping is added when its IdP value is there, and removed when it is not any more. Groups outside the mapping, added by hand or by **Auto assign**, are never touched. 4. **A missing group is skipped.** When the mapped group does not exist, the login goes on without it, unless the rule has `autoCreate`. A group created that way belongs to the tenant of the rule's `tenantId`, or to the platform without it, and has no role: it gives nothing until you give it one. 5. **Administrators join the Admin group of the tenant, only if you ask.** With `roles_admin`, a user whose roles, read from `roles_path`, contain one of its values is put in the **Admin** group of the provider's tenant, `tenant_id` or the default tenant. They leave it at the next login when their roles no longer do. With `all_admin` set to `true`, every user of the provider joins it. Without either, the **Admin** group is never touched. When the tenant has no group named **Admin**, the role is ignored, with a warning in the log. Single sign-on never makes an account a platform administrator. An account that carries the administrator flag from an earlier version loses it at its first login without an administrator role, when `roles_admin` or `all_admin` is set; the bootstrap admin keeps it. > **Warning** > > A rule with a `tenantId` looks its group up by name in that tenant only. A rule without one looks it up among the platform groups only, never in a tenant. Every tenant has groups named **Admin**, **Manager** and **Observer**: a rule that names `Manager` without a `tenantId` looks for a platform group called `Manager`, and skips it, or creates it with `autoCreate`. Set `tenantId` on every rule that maps to a tenant group. ## Configure a provider {#configure-a-provider} Each provider has an identifier you choose, the `` of its keys, in lower case. Set the keys as environment variables of the `openaev` service: the key in upper case, each dot replaced by an underscore, dashes kept. `openaev.provider.grandmeridian.tenant_id` becomes `OPENAEV_PROVIDER_GRANDMERIDIAN_TENANT_ID`. **OpenID Connect** Turn on `openaev.auth-openid-enable` (`OPENAEV_AUTH-OPENID-ENABLE`), then declare the provider with the Spring Security keys: | Key | Value | | --- | --- | | `spring.security.oauth2.client.provider..issuer-uri` | The issuer of the IdP. OpenAEV reads its discovery document | | `spring.security.oauth2.client.registration..client-id` | The client ID of the application registered in the IdP | | `spring.security.oauth2.client.registration..client-secret` | Its secret | | `spring.security.oauth2.client.registration..scope` | `openid,profile,email` | | `spring.security.oauth2.client.registration..redirect-uri` | `/login/oauth2/code/`, the address to register in the IdP | | `openaev.provider..audience` | Optional. Sent as the `audience` parameter, for an IdP such as Auth0 that needs it to issue an access token for an API | The button sends the user to `/oauth2/authorization/`. Spring Security already knows the addresses of GitHub, Google, Facebook and Okta: give the provider the identifier `github`, `google`, `facebook` or `okta`, and set only its `client-id` and `client-secret`. GitHub speaks plain OAuth 2.0, not OpenID Connect: OpenAEV reads the email from the GitHub profile, so a user whose email is not public there cannot log in, with the message `You probably need a public email in your github account`. **SAML 2.0** Turn on `openaev.auth-saml2-enable` (`OPENAEV_AUTH-SAML2-ENABLE`), then declare the provider: | Key | Value | | --- | --- | | `spring.security.saml2.relyingparty.registration..entity-id` | The identifier of OpenAEV in the IdP | | `spring.security.saml2.relyingparty.registration..assertingparty.metadata-uri` | The address of the metadata XML of the IdP | | `openaev.provider..firstname_attribute_key` | The attribute that holds the first name | | `openaev.provider..lastname_attribute_key` | The attribute that holds the last name | In the IdP, set the reply address, where assertions go, to `/login/saml2/sso/`, and the `NameID` to the email address. OpenAEV publishes its own metadata at `/saml2/service-provider-metadata/`, which most IdPs import. Both strategies then read these keys: | Key | What it sets | Default | | --- | --- | --- | | `openaev.provider..login` | The text of the button | `Login with ` | | `openaev.provider..tenant_id` | The tenant the account joins, and whose **Admin** group administrators join. It does not apply to the rules of `groups_management` | The default tenant | | `openaev.provider..groups_path` | The claims or attributes that hold the groups, separated by commas | None: no group is read | | `openaev.provider..groups_management` | The group mapping, a JSON array of rules | None | | `openaev.provider..roles_path` | The claims or attributes that hold the roles | None | | `openaev.provider..roles_admin` | The role values that put a user in the **Admin** group of the provider's tenant, separated by commas | None | | `openaev.provider..all_admin` | Every user of the provider joins the **Admin** group of its tenant | `false` | These keys carry the identifier of your provider, so the [configuration reference](https://filigran.io/docs/reference/openaev/configuration/) does not list them. ## Map groups {#map-groups} Each rule of `groups_management` has four fields: | Field | Value | | --- | --- | | `idpGroup` | The group value as the IdP sends it: a name, or an object ID with Microsoft Entra ID. Case counts | | `userGroup` | The name of the OpenAEV group | | `autoCreate` | `true` to create the group when it does not exist, in the tenant of `tenantId` or on the platform. Keep `false` and create the group in its tenant first, with its role | | `tenantId` | The **Tenant identifier** of the tenant that holds `userGroup`. When the rule applies, OpenAEV also attaches the user to this tenant. Without it, `userGroup` names a platform group. The provider's `tenant_id` does not stand in for it | The rule removes the user from the same group it adds: the group of that name in the tenant of `tenantId`, or the platform group of that name without it. A `tenantId` that names no tenant skips the rule, with a warning in the log. Without `groups_path`, OpenAEV reads no group, so every mapped group is removed at the next login. ## Send users to the right tenant {#send-users-to-the-right-tenant} With [one tenant per organization](https://filigran.io/docs/openaev/administer/multi-tenancy/), each login must reach its tenant. Two ways: - **One provider per organization.** Each organization logs in through its own IdP, or its own application in a shared IdP. Set `tenant_id` on each provider: the button of the provider leads to its tenant. Its rules still need their `tenantId` to map to the groups of that tenant. - **One provider for all.** Set `tenantId` on each rule of the mapping: a user in the IdP group of an organization is attached to its tenant and put in its group. The **Tenant identifier** of a tenant is in **Settings > Parameters**, while you work in it. A `tenant_id` that names no tenant is ignored, with a warning in the log, and the account joins no tenant. Removing a user from a tenant is done in OpenAEV: a login never detaches an account. **Example: Log the staff of Grand Meridian in with Microsoft Entra ID** Example CERT hosts a tenant for each member hotel chain. Grand Meridian Hotels signs its staff in with Microsoft Entra ID, and wants its security engineers to build simulations and its CISO, Hélène Marchetti, to read them. In the **Grand Meridian Hotels** tenant, the administrator creates two groups, `Grand Meridian managers` with the **Manager** role and `Grand Meridian observers` with the **Observer** role. In the Entra admin center, Grand Meridian registers an application with the web redirect URI `https://openaev.example.com/login/oauth2/code/grandmeridian` and creates a client secret. It adds the `email`, `given_name` and `family_name` optional claims to the ID token, and a groups claim that emits group IDs. The platform engineer of Example CERT adds to the `openaev` service: ```yaml services: openaev: environment: OPENAEV_AUTH-LOCAL-ENABLE: "true" OPENAEV_AUTH-OPENID-ENABLE: "true" SPRING_SECURITY_OAUTH2_CLIENT_PROVIDER_GRANDMERIDIAN_ISSUER-URI: https://login.microsoftonline.com/3f6c2a1e-8b4d-4e2a-9c71-5d0e8f2b7a14/v2.0 SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_GRANDMERIDIAN_CLIENT-ID: 0b7e5c9d-2f41-4a8e-b6d3-91c4e7a20f55 SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_GRANDMERIDIAN_CLIENT-SECRET: ${GRANDMERIDIAN_CLIENT_SECRET} SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_GRANDMERIDIAN_SCOPE: openid,profile,email SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_GRANDMERIDIAN_REDIRECT-URI: https://openaev.example.com/login/oauth2/code/grandmeridian OPENAEV_PROVIDER_GRANDMERIDIAN_LOGIN: Log in with Grand Meridian OPENAEV_PROVIDER_GRANDMERIDIAN_TENANT_ID: 7c1e4b2a-5d3f-4e8b-9a61-2f0c8d4e6b13 OPENAEV_PROVIDER_GRANDMERIDIAN_GROUPS_PATH: groups OPENAEV_PROVIDER_GRANDMERIDIAN_GROUPS_MANAGEMENT: '[{"idpGroup":"8d2f4c1a-6b3e-4f7d-9a21-0c5e7b9d3f48","userGroup":"Grand Meridian managers","autoCreate":false,"tenantId":"7c1e4b2a-5d3f-4e8b-9a61-2f0c8d4e6b13"},{"idpGroup":"c41e9a07-3d5b-4b62-8f1e-2a7d6c90b3e5","userGroup":"Grand Meridian observers","autoCreate":false,"tenantId":"7c1e4b2a-5d3f-4e8b-9a61-2f0c8d4e6b13"}]' ``` `GRANDMERIDIAN_CLIENT_SECRET` is in the `.env` file. Both rules carry the **Tenant identifier** of the Grand Meridian Hotels tenant, because their groups belong to that tenant: without it, OpenAEV would look for platform groups of those names. After a restart, the login page shows **Log in with Grand Meridian** under the form. Hélène's first login creates `helene.marchetti@grand-meridian.example`, attaches it to the Grand Meridian Hotels tenant, and puts it in `Grand Meridian observers`, because her Entra account is in the second group. When Entra ID drops her from that group, her next login removes her from it. When a user belongs to more than 200 groups, Entra ID leaves the groups claim out of the token. Emit only the groups assigned to the application to avoid it. ## Keep an emergency access {#keep-an-emergency-access} When everyone logs in through SSO, an outage, a wrong setting or an expired certificate of the IdP locks everyone out. Keep `openaev.auth-local-enable` at `true`: the bootstrap admin, whose email and password come from `OPENAEV_ADMIN_EMAIL` and `OPENAEV_ADMIN_PASSWORD`, can then still log in with the form. [Sign in the first time and keep an emergency account](https://filigran.io/docs/deploy/configure/first-access/#keep-a-break-glass-account) explains how to keep that account safe and how to turn local login back on. ## Check that it works {#check-that-it-works} Open the login page in a private browser window: it shows the button of each provider, with the text of its `login` key. Log in through it, then, as an administrator, open **Settings > Security > Users** in the tenant of the provider: the account is listed, and its groups are those of the mapping. An unknown or misspelled group leaves an error naming it in the log of the platform. ## What's next {#what-s-next} - [How access works in OpenAEV](https://filigran.io/docs/openaev/concepts/access/), for the roles to give the mapped groups. - [Give each organization its own tenant](https://filigran.io/docs/openaev/administer/multi-tenancy/). - [Set the login message and the consent box](https://filigran.io/docs/openaev/administer/policies/), shown above the buttons. --- # Manage the tags, attack patterns and vulnerabilities > Keep the reference data of a tenant in order, its tags, attack patterns, kill chain phases and vulnerabilities, that classify scenarios, actions and assets. - URL: https://filigran.io/docs/openaev/administer/taxonomies/ - Products: OpenAEV 3.261118.0 - For: administrators, security validation engineers - Type: How-to guide Taxonomies are the reference data a tenant classifies its work with: tags on scenarios, assets and teams, attack patterns and kill chain phases on actions and injects, vulnerabilities on actions. Most of them come from collectors, MITRE ATT&CK for the attack patterns and the NVD for the vulnerabilities; you add your own tags and fix or complete the rest. This page shows what each taxonomy is for and how to keep it in order. Each tenant has its own taxonomies. ## Before you start {#before-you-start} - To manage tags, your role has **Manage tags**, and **Delete tags** to delete one. The **Manager** group of a tenant has both. - To manage attack patterns, kill chain phases and vulnerabilities, your role has **Manage tenant settings**, and **Delete tenant settings** to delete. The **Admin** group has them. - The **Remediation** tab of a vulnerability needs an Enterprise Edition license. ## Where the taxonomies come from {#where-the-taxonomies-come-from} **Diagram: The taxonomies of a tenant come from collectors and from your own entries, and classify what you build** - Sources: MITRE ATT&CK collector (Attack patterns and phases), Administrator (Tags, custom entries, CVEs) - Taxonomies: Tags (Filter and route), Attack patterns (Techniques by kill chain phase), Vulnerabilities (CVE identifiers) - Used by: Scenarios and actions (Injects, threat arsenal, assets) Connections: - MITRE ATT&CK collector → Attack patterns: imports - Administrator → Tags: creates - Administrator → Vulnerabilities: adds - Tags → Scenarios and actions: classify - Attack patterns → Scenarios and actions: classify - Vulnerabilities → Scenarios and actions: classify | Taxonomy | What it classifies | Where it comes from | | --- | --- | --- | | **Tags** | Scenarios, simulations, injects, assets, asset groups, teams, persons, organizations, documents, challenges and findings, to filter them and drive the [default asset rules](https://filigran.io/docs/openaev/configure/asset-rules/) | You | | **Attack patterns** | Threat arsenal actions, and through them the injects and the coverage of a scenario, by technique of the MITRE ATT&CK matrices: Enterprise, PRE, Mobile and ICS | The MITRE ATT&CK collector, and your own entries | | **Kill chain phases** | The attack patterns, by stage of the attack, such as Initial Access or Execution | The MITRE ATT&CK collector, and your own entries | | **Vulnerabilities** | Threat arsenal actions, by Common Vulnerabilities and Exposures (CVE) identifier, with their score and their entry in the CISA catalog | The NVD CVE collector, and your own entries | Collectors fill the tenant they work for. In xtm-docker, the MITRE ATT&CK and NVD CVE collectors fill the default tenant: a new tenant starts with seven sample vulnerabilities and no attack pattern until a collector runs for it. See [Connect the integrations of a tenant](https://filigran.io/docs/openaev/administer/multi-tenancy/#connect-the-integrations-of-a-tenant). ## Add a tag {#add-a-tag} 1. Open **Settings > Taxonomies > Tags** and click **Create**. 2. Enter the **Value**, the text of the tag, and its **Color** as `#RRGGBB`. 3. Click **Create**. Use tags for what the other taxonomies do not hold: an organization, a site, a campaign, a regulation. Keep one spelling per idea: two tags that differ only by their case or an accent split your filters in two. ## Add or fix an attack pattern {#add-or-fix-an-attack-pattern} 1. Open **Settings > Taxonomies > Attack patterns**. Search by name or identifier to check that the technique is not there already. 2. Click **Create**, or open the menu of an existing attack pattern and choose **Update**. 3. Fill in the **External ID**, such as `T1566.001`, the **Kill chain phases** it belongs to, the **Name** and the **Description**. 4. Click **Create** or **Update**. ![The Attack patterns of the tenant sorted by External ID, PowerShell T1059.001 under the [mitre-attack] Execution phase and Valid Accounts T1078 under Persistence, with the Create button at the top right.](https://filigran.io/docs/shots/9bcb274d75d9d3116829b8c15c7dff4927cc73526c7947ed69673c6c1f3779c0.webp) A kill chain phase, under **Settings > Taxonomies > Kill chain phases**, has a **Phase name**, a **Phase short name**, the **Kill chain name** it belongs to, such as `mitre-attack`, an **External Id** and an **Order**, its position in the chain. The **Order** is required, and is a whole number, 0 or more: the form refuses another value with **Must be a whole number** or **Must be greater than or equal to 0**. The MITRE ATT&CK collector creates or updates the attack patterns of its tenant by their **External ID** at each run: a change you make to one of its techniques lasts until the next run. Give the techniques you add yourself identifiers MITRE ATT&CK does not use. ## Add a vulnerability {#add-a-vulnerability} 1. Open **Settings > Taxonomies > Vulnerabilities** and click **Create**. 2. On the **General** tab, enter the **VULNERABILITY ID**, such as `CVE-2024-3400`, and its **CVSS Version 3.1** score. Both are fixed once the vulnerability exists. Add the **Description**, the dates and the status from the NVD, the entry of **CISA's Known Exploited Vulnerabilities Catalog**, the weaknesses (CWE) and the references. 3. With the Enterprise Edition, on the **Remediation** tab, write the **Vulnerability Remediation**: what fixes it. 4. Click **Create**. ![The Add a new vulnerability panel on its General tab, with the required VULNERABILITY ID and CVSS Version 3.1 fields, then the Description, Quick Info and CISA's Known Exploited Vulnerabilities Catalog sections, and the Remediation tab next to General.](https://filigran.io/docs/shots/3efa1fad6d596c46c647b134507c61e1d66c2c08f43e64da173042ab9c673fd4.webp) Click a vulnerability in the list to read its details. **Example: Classify the Velvet Harbor replay** The security engineer of Grand Meridian Hotels builds the scenario that replays Velvet Harbor against the front-desk workstations, and the administrator of the tenant prepares its taxonomies first: | Taxonomy | Entry | | --- | --- | | **Tags** | **Value** `velvet-harbor`, **Color** `#8C1D40`; **Value** `front-desk`, **Color** `#1E88E5` | | **Attack patterns** | The MITRE ATT&CK collector, deployed for the tenant from its **Integrations** screen, has loaded Spearphishing Attachment (`T1566.001`), PowerShell (`T1059.001`), Valid Accounts (`T1078`), Data from Local System (`T1005`) and Web Protocols (`T1071.001`) | The scenario and the front-desk assets carry the two tags, so a filter on `velvet-harbor` finds every simulation of the replay, and the actions of each inject show their technique in the coverage of the scenario. ## What's next {#what-s-next} - [Set the default asset rules](https://filigran.io/docs/openaev/configure/asset-rules/), which use the tags of a scenario. - [Give each organization its own tenant](https://filigran.io/docs/openaev/administer/multi-tenancy/), and connect its collectors. - [How access works in OpenAEV](https://filigran.io/docs/openaev/concepts/access/). --- # Check or stop the usage telemetry sent to Filigran > What anonymous usage data OpenAEV sends to Filigran, how and how often, what it never contains, how to see whether it is on, and how to stop it. - URL: https://filigran.io/docs/openaev/administer/telemetry/ - Products: OpenAEV 3.261118.0 - For: administrators, platform engineers - Type: How-to guide OpenAEV sends anonymous usage telemetry to Filigran: counts and on/off flags that show how the platform is used, so that Filigran can decide what to improve. No content of your scenarios, findings or payloads leaves the platform. This page explains what is sent, how and how often, how to see whether it is on, and how to stop it. It is not about observability metrics, the OpenTelemetry metrics you collect to watch your own deployment: see [Observability metrics](https://filigran.io/docs/deploy/operate/metrics/) for those. ## Before you start {#before-you-start} - To read whether telemetry is on, your role has **Access tenant settings**. - To stop it, you control the outbound network of the platform and can restart it. ## How it is sent {#how-it-is-sent} **Diagram: How OpenAEV sends usage telemetry to Filigran** - Platform: Platform (Collects counts every hour) - Start-up check: Reachability test (Once, at start; off if it fails) - Filigran: telemetry.oaev.filigran.io (OTLP over HTTPS) Connections: - Platform → Reachability test: at start - Reachability test → telemetry.oaev.filigran.io: every 6 hours | | | | --- | --- | | Destination | `https://telemetry.oaev.filigran.io/v1/metrics`, over HTTPS | | Format | OpenTelemetry metrics (OTLP over HTTP, protobuf) | | Frequency | Counts collected every hour, sent every 6 hours. The first sending comes about 5 hours after the platform starts | | Start-up check | When the platform starts, it sends one test request to the destination. If the destination does not answer, telemetry stays off until the next restart | Telemetry is sent for the whole platform, once, with the counts of every tenant together. ## What is sent {#what-is-sent} Counts and flags, by area: - **The platform**: its version, unique identifier and creation date, the IP address of the host it runs on, and the deployment tags of `telemetry.tags`, when set. - **Use**: whether the Enterprise Edition is on, the numbers of users, logins, active tenants, assets, deployed integrations, scenarios, simulations and injects played. - **AI and the XTM platform**: how often the AI features are used, never what they wrote; whether AI and XTM One are configured; whether a tenant is connected to XTM Hub; which login strategies are on. - **Content**: the numbers of payloads, teams, assets, findings, vulnerabilities, dashboards and other objects. - **Results and automation**: expectation traces, security coverage processing, workflow runs, payloads created and emails sent. A few labels go with the counts. They are the names of the security platforms that AI detection rules were generated for, as your users entered them, and the identifiers of the XTM One agents called, cut to 64 characters. The values of the safety policies of attack chaining go too. ## What is never sent {#what-is-never-sent} - No content: no scenario, inject, finding, vulnerability, payload or document, only their numbers. - No personal data: no user names, email addresses, nor the IP addresses of users. - No secrets and no configuration values, beyond the on and off flags above. Filigran uses the data, aggregated, to improve OpenAEV and its user experience, and for internal and external statistics. ## See whether it is on {#see-whether-it-is-on} Open **Settings > Parameters**. In the **Tools** card, the **Telemetry manager** reads **Enable** when the start-up check reached the destination, and **Disabled** when it did not. ## Stop it {#stop-it} No setting turns usage telemetry off. To stop it, block the platform's outbound access to `telemetry.oaev.filigran.io`, at your firewall or by DNS, then restart the platform: its start-up check fails, and it sends nothing until the next restart. Blocking without a restart only makes the sendings fail. A platform without internet access never sends telemetry. **Example: Tag Example CERT's platform, then stop its telemetry** Example CERT runs one OpenAEV instance for its member hotel chains. The platform engineer first tags it, so that Filigran can tell it apart from a test platform: ```yaml services: openaev: environment: TELEMETRY_TAGS: "production,eu-west" ``` The security policy of a member chain later forbids any outbound flow to a vendor. The platform engineer adds `telemetry.oaev.filigran.io` to the deny list of the outbound proxy and runs `docker compose up -d --force-recreate openaev`. After the restart, the **Telemetry manager** of **Settings > Parameters** reads **Disabled**. ## What's next {#what-s-next} - [Observability metrics](https://filigran.io/docs/deploy/operate/metrics/), to watch your own deployment. - The [telemetry block](https://filigran.io/docs/reference/openaev/configuration/#telemetry) of the configuration reference. - [Install offline or with FIPS 140-3](https://filigran.io/docs/deploy/install/air-gapped/), for a platform without internet access. --- # Troubleshoot OpenAEV > Fix the common problems of an OpenAEV instance, from a refused tenant or login to injects that do not run, and find the page that covers each part. - URL: https://filigran.io/docs/openaev/administer/troubleshoot/ - Products: OpenAEV 3.261118.0 - For: platform engineers, administrators - Type: How-to guide This page helps you find why OpenAEV does not do what you expect. It covers a user who cannot open a tenant, a single sign-on login without rights, simulations that do not move, a refused player link and a slow screen. Each problem gives its likely cause and the fix. For the logs of the platform and of the other services of the stack, start with [Troubleshoot the XTM stack](https://filigran.io/docs/deploy/operate/troubleshoot/). ## Before you start {#before-you-start} - For the access problems, your role has **Access tenant users, groups and roles** in the tenant, or the platform capabilities for the **Platform** scope. - For the platform problems, you can read the logs of the `openaev` service: `docker compose logs --tail 200 openaev`. - Note the version of the platform, in the **OpenAEV platform** card of **Settings > Parameters**: support asks for it first. Click it to copy the version and its commit hash. ## Where to look first {#where-to-look-first} **Diagram: Where to look first when OpenAEV misbehaves** - Symptom: Access refused (Tenant, login, rights), Nothing runs (Injects, search, purges), Slow or failing (Pages and API) - First check: Tenant and groups (Settings > Security), Safe mode banner (openaev.run-mode), Logs and debug mode (docker compose logs) Connections: - Access refused → Tenant and groups: check - Nothing runs → Safe mode banner: check - Slow or failing → Logs and debug mode: check ## Access problems {#access-problems} | What the user sees | Likely cause | Fix | | --- | --- | --- | | **Tenant access denied**, with **You are not a member of this tenant** | The account is not attached to the tenant of the address. Administrators are no exception | Attach it: in the tenant, **Settings > Security > Users** and **Create** with the same email, or, with the **Platform** scope, add the tenant to the **Tenants** of the user. See [Give each organization its own tenant](https://filigran.io/docs/openaev/administer/multi-tenancy/#give-people-access) | | A message that the account is not attached to any tenant | A single sign-on login whose `tenant_id` names no tenant, or a user removed from all their tenants | Fix `tenant_id`, or attach the user to a tenant | | The user logs in but sees almost no menu | The user belongs to no group of the tenant, or to groups without roles | Add the user to a group with a role, such as **Observer** | | After a single sign-on login, the mapped groups are missing | `groups_path` is not set, the IdP sends another value than `idpGroup`, or the group does not exist | Read the error the log gives for each missing group, then fix the mapping. See [Configure single sign-on](https://filigran.io/docs/openaev/administer/sso/#map-groups) | | A single sign-on login fails for everyone of a provider | A mapping names a group whose name is used by two groups, such as **Manager** | Rename the target groups so that their names are unique on the platform | | A user cannot add a capability to a role, or a user to a group | The administrator does not hold the capability, or a role of the group holds one they do not have | Ask an administrator who holds it. See [How access works in OpenAEV](https://filigran.io/docs/openaev/concepts/access/#how-it-works), rule 5 | | A form says that a capability is missing | The action needs a second capability, such as **Access channels** to write an article | Add the capability to a role of the user | | **Tenants** or the **Platform** scope do not show | The platform has no Enterprise Edition license, or the user has no platform role | See [Editions and licensing](https://filigran.io/docs/start/editions/) | ## Platform problems {#platform-problems} | Symptom | Likely cause | Fix | | --- | --- | --- | | The banner **Safe mode is active: background processing is disabled.** shows, and nothing runs | The platform runs with `OPENAEV_RUN-MODE: safe` | Return to normal mode: see [Start the platform in safe mode](https://filigran.io/docs/openaev/administer/run-modes/#return-to-normal-mode) | | Injects stay pending on endpoints | No executor reaches the endpoints, or the agent is not running | See [How integrations run](https://filigran.io/docs/deploy/integrations/how-they-run/) and [OpenAEV agents](https://filigran.io/docs/openaev/use/agents/) | | An integration deployed from the **Integrations** screen does not start | XTM Composer is not registered or cannot pull the image | See [Troubleshoot XTM Composer](https://filigran.io/docs/deploy/integrations/troubleshoot/), [Run integrations behind a proxy](https://filigran.io/docs/deploy/integrations/proxy/) and [Pull integrations from a private registry](https://filigran.io/docs/deploy/integrations/private-registry/) | | A collector or injector you run yourself fills the wrong tenant | `OPENAEV_TENANT_ID` is missing: it works in the default tenant | Set it to the **Tenant identifier**. See [Run an integration without XTM Composer](https://filigran.io/docs/deploy/integrations/manual/) | | A new tenant has no attack patterns | The MITRE ATT&CK collector works for another tenant | Deploy it for the new tenant. See [Manage the tags, attack patterns and vulnerabilities](https://filigran.io/docs/openaev/administer/taxonomies/#where-the-taxonomies-come-from) | | A player's link to an article or a challenge is refused | The token expired, 7 days after it was sent while the simulation runs | Send the email again, or lengthen the margin. See [Protect the links in player emails](https://filigran.io/docs/openaev/administer/url-access-token/#how-long-a-link-lasts) | | **SMTP** reads **Disabled** in the **Tools** card | The platform cannot connect to its mail server | Check the [spring.mail block](https://filigran.io/docs/reference/openaev/configuration/#spring-mail) and the network to the server | | The XTM Hub card reads **Connectivity lost** | The platform no longer reaches XTM Hub, or the connection was removed on the XTM Hub side | See [Connect a tenant to XTM Hub](https://filigran.io/docs/openaev/administer/xtm-hub/#keep-the-connection-alive) | | A screen is slow, or a request fails without a clear error | A slow or repeated SQL query, or a load on the JVM | Trace it: see [Turn on the debug mode to find slow requests](https://filigran.io/docs/openaev/administer/debug-mode/) | **Example: Find why Grand Meridian's CISO reaches no tenant** Hélène Marchetti, CISO of Grand Meridian Hotels, logs in with **Log in with Grand Meridian** and is told that her account is not attached to any tenant. The administrator of Example CERT checks: 1. With the **Platform** scope, in **Users**, her account exists, but its **Tenants** list is empty: her first login did not attach it. 2. The log of the `openaev` service shows `SSO tenant ID '7c1e4b2a-5d3f-4e8b-9a61-2f0c8d4e6b31' configured but not found in database`: two characters of `OPENAEV_PROVIDER_GRANDMERIDIAN_TENANT_ID` are swapped. 3. He copies the **Tenant identifier** from **Settings > Parameters** in the Grand Meridian Hotels tenant, `7c1e4b2a-5d3f-4e8b-9a61-2f0c8d4e6b13`, and the platform engineer fixes the variable and recreates the container. Hélène's next login attaches her account to the Grand Meridian Hotels tenant, puts it in the groups of that tenant that have **Auto assign** on, and opens the tenant. ## Ask for help {#ask-for-help} When you open a ticket with Filigran support, give the version and commit hash of the platform, the time of the problem, its tenant and its page, and the log lines around it. For a slow or failing request, add the output of the [debug mode](https://filigran.io/docs/openaev/administer/debug-mode/). ## What's next {#what-s-next} - [Troubleshoot the XTM stack](https://filigran.io/docs/deploy/operate/troubleshoot/), for the logs of every service and their level. - [Turn on the debug mode to find slow requests](https://filigran.io/docs/openaev/administer/debug-mode/). - [How access works in OpenAEV](https://filigran.io/docs/openaev/concepts/access/). --- # Protect the links in player emails > How OpenAEV protects the links of media pressure, challenge and lessons learned emails with short-lived tokens, how long they last, and how to set their expiry and retention. - URL: https://filigran.io/docs/openaev/administer/url-access-token/ - Products: OpenAEV 3.261118.0 - For: platform engineers, administrators, crisis exercise planners - Type: How-to guide The emails OpenAEV sends to players during a simulation carry links: to an article of media pressure, to a challenge, to the lessons learned questionnaire. Each link holds a URL access token, an opaque value that opens that page for that player in that simulation only, and expires after the simulation. This page explains how the tokens work, how long they last, and the two settings that tune them. ## Before you start {#before-you-start} - You can change the environment of the `openaev` service and restart it. - `openaev.base-url` (`OPENAEV_BASE-URL`) is the public address players reach OpenAEV at: the links are built from it. See the [openaev block](https://filigran.io/docs/reference/openaev/configuration/#openaev). ## How a link works {#how-a-link-works} **Diagram: A player email carries a short-lived token that OpenAEV swaps for a cookie before it opens the page** - Email: Player email (/url/access?token=...) - OpenAEV: Token check (Hash, expiry, revocation), Cookie (HttpOnly, SameSite Strict) - Player page: Article or challenge (URL without the token) Connections: - Player email → Token check: player clicks - Token check → Cookie: sets - Cookie → Article or challenge: redirects 1. When an inject sends a media pressure, challenge or lessons learned email, OpenAEV creates a token for the player and the simulation, and puts a link `/url/access?token=…` in the email. It keeps only a SHA-256 hash of the token. 2. The player clicks. OpenAEV checks the token: known, not expired, not revoked. 3. OpenAEV sets the token in an `HttpOnly` cookie with `SameSite=Strict`, and redirects the player to the page, at an address without the token. The token never stays in the browser history, in the logs of a proxy, or in the `Referer` sent to another site. A token that is expired or revoked is refused, and deleted at once. ## How long a link lasts {#how-long-a-link-lasts} A token expires a number of days after the end of its simulation, 7 by default. A simulation that has not ended yet when the email is sent has no end date: the token then expires 7 days after it is sent. In a simulation that lasts more than a week, a player who opens an old email after that is refused, and needs a new email. Revoked and expired tokens stay in the database for audit, then a job deletes them every Sunday at 2:00, once they are older than the retention period, 30 days by default. | Key | Environment variable | Default | What it sets | | --- | --- | --- | --- | | `openaev.url.access.token.expiry-margin-days` | `OPENAEV_URL_ACCESS_TOKEN_EXPIRY-MARGIN-DAYS` | `7` | The days a token lasts after the end of its simulation | | `openaev.url.access.token.retention-days` | `OPENAEV_URL_ACCESS_TOKEN_RETENTION-DAYS` | `30` | The days an expired or revoked token is kept before the purge | Both are in the [openaev.url block](https://filigran.io/docs/reference/openaev/configuration/#openaev-url) of the configuration reference. ## Mark the cookie secure {#mark-the-cookie-secure} The cookie carries the `Secure` flag, which keeps the browser from sending it over plain HTTP, only when `openaev.cookie-secure` (`OPENAEV_COOKIE-SECURE`) is `true`. It is `false` by default. Serve OpenAEV over HTTPS, as [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/) describes, and turn it on: the session cookie of OpenAEV follows the same key. **Example: Keep the links of a long crisis exercise working** Example CERT runs a two-week crisis exercise for Grand Meridian Hotels: the fake booking request for the European Hospitality Summit 2026 reaches the night auditors, then media pressure articles follow for ten days. Links sent on day one would expire on day eight, while the exercise still runs. The platform engineer lengthens the margin, and keeps the tokens three months for the audit of the exercise: ```yaml services: openaev: environment: OPENAEV_URL_ACCESS_TOKEN_EXPIRY-MARGIN-DAYS: "21" OPENAEV_URL_ACCESS_TOKEN_RETENTION-DAYS: "90" OPENAEV_COOKIE-SECURE: "true" ``` After a restart, the links of every new email of the running exercise last 21 days after they are sent. Links already sent keep the expiry they had. ## Check that it works {#check-that-it-works} Send a media pressure email to a test player and open it. The link has the form `https://openaev.example.com/url/access?token=…`. Opening it shows the article, at an address without the token. Opened again after the token has expired, the link is refused. ## What's next {#what-s-next} - [Publish the platforms over HTTPS](https://filigran.io/docs/deploy/install/reverse-proxy/). - [Harden the deployment](https://filigran.io/docs/deploy/operate/harden/). - The [openaev block](https://filigran.io/docs/reference/openaev/configuration/#openaev), for `openaev.cookie-secure` and the session cookie. --- # Connect a tenant to XTM Hub > Connect a tenant of OpenAEV to your organization in XTM Hub to deploy ready-made scenarios and threat arsenal actions in one click, and keep the connection alive. - URL: https://filigran.io/docs/openaev/administer/xtm-hub/ - Products: OpenAEV 3.261118.0, XTM Hub - For: administrators - Type: How-to guide XTM Hub is Filigran's place for ready-made content, trials and resources of the XTM platform. Once a tenant of OpenAEV is connected to your organization in XTM Hub, you deploy its scenarios and threat arsenal actions into that tenant in one click. This page connects a tenant, checks the connection and disconnects it. Each tenant connects on its own, to the XTM Hub organization you choose. ## Before you start {#before-you-start} - Your role has **Manage tenant settings** in the tenant. The **Admin** group of a tenant has it. - You have an account in XTM Hub, in the organization to connect to. - Both your browser and the platform reach XTM Hub, `https://hub.filigran.io` unless `openaev.xtm.hub.url` says otherwise. The integration is on by default, `openaev.xtm.hub.enable`. See the [openaev.xtm block](https://filigran.io/docs/reference/openaev/configuration/#openaev-xtm) of the configuration reference. ## Connect the tenant {#connect-the-tenant} **Diagram: Each tenant connects to an organization of XTM Hub, then deploys its content in one click** - OpenAEV: Tenant (Settings > Filigran Experience) - XTM Hub: Hub organization (Chosen at connection), Content library (Scenarios, threat arsenal actions) Connections: - Tenant → Hub organization: connect, then checks - Content library → Tenant: deploy in one click 1. In the tenant to connect, open **Settings > Filigran Experience**. The **XTM Hub** card reads **Not connected**. 2. Click **Connect to XTM Hub**. A dialog explains the steps; click **Continue**. XTM Hub opens in a new browser tab. 3. In XTM Hub, log in and choose the organization to connect the tenant to. 4. Confirm. Back in OpenAEV, a message says **Your OpenAEV platform is successfully connected**. ![The XTM Hub card of Filigran Experience, Not connected, with its four links to the free trial, the pre-built content, the roadmap and the Academy, and the Explore XTM Hub and Connect to XTM Hub buttons.](https://filigran.io/docs/shots/36f0423e173c9466dfd91cdc315a421565cca490250ac5c4800fc768bd8fc979.webp) Keep the dialog open while you work in XTM Hub: closing it stops the connection. The card now reads **Connected**, with the **Connection status**, the **Connection date** and who it was **Connected by**, and offers **Go to the Hub**. **Connect to XTM Hub** stays greyed out while the platform or your browser cannot reach XTM Hub, and for users without **Manage tenant settings**. ## Keep the connection alive {#keep-the-connection-alive} OpenAEV checks the connection when an administrator of the tenant opens **Settings > Filigran Experience**. Each check also sends the edition of the platform, Community or Enterprise, so XTM Hub shows the right one after a license change, without connecting again. To check every connection in the background, the platform engineer turns on `openaev.xtm.hub.collector.enable`, off by default. OpenAEV then checks every connected tenant every hour, `openaev.xtm.hub.collector.connectivity-check-interval` in seconds. A failed check turns the card to **Connectivity lost**. When the connection stays lost for more than 24 hours, OpenAEV emails the administrators of the tenant once, unless `openaev.xtm.hub.connectivity-email-enable` is `false`. If the connection does not come back by itself, disconnect the tenant and connect it again. ## See the plan and usage of a cloud platform {#see-the-plan-and-usage-of-a-cloud-platform} When Filigran runs your platform in its cloud (SaaS), each connection check tells OpenAEV so. The **XTM Hub** card of a connected tenant then adds a block, **Your OpenAEV, by the numbers**, that points to the figures XTM Hub keeps for the platform: | Item | What XTM Hub shows | | --- | --- | | **Your plan** | What you subscribed to | | **Contract countdown** | The days left before renewal | | **Storage & uptime** | The database space your data takes, and the uptime your service level agreement (SLA) guarantees | **See my OpenAEV metrics** opens, in a new browser tab, the page of this tenant's registration on XTM Hub, or the home page of XTM Hub when it cannot find the registration. The figures stay in XTM Hub: OpenAEV shows none of them. A self-hosted platform does not show the block. When XTM Hub cannot be reached, the card keeps what the last check said. ## Disconnect the tenant {#disconnect-the-tenant} In **Settings > Filigran Experience**, click **Disconnect XTM Hub** and confirm in XTM Hub. The content you deployed stays in the tenant. You can connect again at any time. **Example: Connect Grand Meridian's tenant to its XTM Hub organization** Grand Meridian Hotels wants the ready-made phishing and ransomware scenarios of XTM Hub in its own tenant of Example CERT's platform. The administrator of the tenant, working in the Grand Meridian Hotels tenant, opens **Settings > Filigran Experience** and clicks **Connect to XTM Hub**, then **Continue**. In XTM Hub, she logs in with her Grand Meridian account and chooses the organization `Grand Meridian Hotels`. The card reads **Connected**. A scenario deployed from XTM Hub now lands in the Grand Meridian Hotels tenant only: Example CERT's own tenant, connected to Example CERT's organization, does not see it. The platform engineer of Example CERT adds, so that a lost connection does not go unnoticed: ```yaml services: openaev: environment: OPENAEV_XTM_HUB_COLLECTOR_ENABLE: "true" ``` ## What's next {#what-s-next} - [Build a scenario](https://filigran.io/docs/openaev/use/scenarios/build/), from scratch or from XTM Hub. - [Give each organization its own tenant](https://filigran.io/docs/openaev/administer/multi-tenancy/). - [Editions and licensing](https://filigran.io/docs/start/editions/). --- # How access works in OpenAEV > How OpenAEV decides who can do what, through tenants, users, groups, roles, capabilities and grants, and where an administrator sets each of them. - URL: https://filigran.io/docs/openaev/concepts/access/ - Products: OpenAEV 3.261118.0 - For: administrators, platform engineers - Type: Concept OpenAEV decides, for every user, which tenants they can open and what they can do in each of them. It uses role-based access control (RBAC): a user belongs to groups, each group holds roles, and each role is a list of capabilities. Grants then open a single scenario or simulation to a group. You set all of it under **Settings > Security**, and the rest of the platform under **Settings**. This page explains the model, the roles a new tenant starts with, and the choices that keep the platform safe. The pages of the Administer tab then cover each task. ## What administration covers {#what-administration-covers} | Menu | What you set there | Who sees it | | --- | --- | --- | | **Settings > Parameters** | The name, theme, language and default dashboards of the tenant, and the version and services of the platform | **Access tenant settings** | | **Settings > Security** | Users, groups, roles, organizations, sessions and the login messages of the tenant; with the **Platform** scope, the users, groups and roles of the whole platform and its tenants | Any capability of the security group, **Access tenant settings** or **Access tenants** | | **Settings > Customization** | Default asset rules, custom domains, notifiers, lessons learned templates and autonomous attack | **Access tenant settings**, or **Access lessons learned** for the templates | | **Settings > Taxonomies** | Tags, attack patterns, kill chain phases and vulnerabilities | **Access tenant settings**, or **Access tags** for the tags | | **Settings > Data ingestion** | The XLS mappers that import injects into scenarios | **Access tenant settings** | | **Settings > Filigran Experience** | The Enterprise Edition license and the connection to XTM Hub | **Access platform settings** for the license, **Access tenant settings** for XTM Hub | Deploying the platform, its configuration file and its shared services are in [Deploy & operate](https://filigran.io/docs/deploy/). ## How it works {#how-it-works} **Diagram: A user acts in a tenant through the roles of their groups, once they are a member of that tenant** - People: User (One account, several tenants) - Platform scope: Platform group (Counts in every tenant), Platform role (Tenants, platform settings) - Tenant scope: Tenant membership (Required to open a tenant), Tenant group (Counts in its tenant only), Tenant role (Scenarios, assets, settings), Grant (One scenario or simulation) Connections: - User → Platform group: member of - User → Tenant membership: attached to - User → Tenant group: member of - Platform group → Platform role: holds - Tenant group → Tenant role: holds - Tenant group → Grant: receives | Element | What it is | Where you set it | | --- | --- | --- | | Tenant | An isolated workspace: its own scenarios, simulations, assets, teams, findings, integrations and settings. A platform without the Enterprise Edition has one, the default tenant | **Settings > Security > Tenants**, with the **Platform** scope. See [Give each organization its own tenant](https://filigran.io/docs/openaev/administer/multi-tenancy/) | | User | A person, or the account of an integration. One account can belong to several tenants | **Settings > Security > Users** | | Group | A set of users that receives roles and grants. A tenant group counts in its tenant only; a platform group counts in every tenant its members belong to | **Settings > Security > Groups** | | Role | A named set of capabilities. A tenant role holds tenant capabilities, a platform role holds platform capabilities | **Settings > Security > Roles** | | Capability | The right to do one kind of action, such as **Launch assessment** or **Manage tenants** | On the **Capabilities** tab of a role. The [capabilities reference](https://filigran.io/docs/reference/openaev/capabilities/) lists them all | | Grant | The right of a group on one scenario, simulation, atomic testing or threat arsenal action | **Manage grants** on a group | Six rules explain most of what you will see: 1. **Membership comes first.** A user opens a tenant only when they are a member of it, whatever their roles, administrators included. Without it, OpenAEV shows **Tenant access denied**. 2. **Capabilities add up, and include the level below.** A user gets every capability of every role of the groups that count in the tenant they work in: the groups of that tenant and their platform groups. **Delete assessment** includes **Manage assessment**, which includes **Access assessment**. No capability removes another. 3. **The scope decides where a capability works.** A tenant role grants rights on the content of its tenant: scenarios, assets, the tenant's settings, its users and groups. A platform role grants the platform rights: **Manage tenants**, **Manage platform settings**, and the users, groups and roles of the platform. **Bypass (user has all rights)** in a tenant role gives every tenant right in that tenant only. In a platform role, it gives every right, in every tenant the user belongs to. 4. **A grant opens one object, a capability opens them all.** A group with **Access assessment** sees every scenario, simulation and atomic testing of the tenant, and a group with **Access threat arsenal** every threat arsenal action. A group without them sees only the objects it has a grant on. A grant on a single threat arsenal action is enough to show the **Threat Arsenal** menu to the group's members. 5. **You give only what you hold.** In a role, a capability you do not hold shows with a padlock: you can remove it from a role that has it, but never add it back. A role that holds such a capability is locked in the role picker of a group, and the members of a group whose roles you do not fully hold cannot be changed. The API enforces the same rule. A user with **Bypass (user has all rights)** in that scope holds everything, so nothing is locked for them. 6. **The administrator flag bypasses every check.** The bootstrap admin, set by `OPENAEV_ADMIN_EMAIL`, carries it. It cannot be set in the interface, and single sign-on does not set it: it puts the administrators of your identity provider in the **Admin** group of their tenant. To make someone a platform administrator, give them a platform role with **Bypass (user has all rights)**. Some reference data is readable by every member of a tenant, whatever their roles: teams and persons, organizations, tags, attack patterns, kill chain phases, vulnerabilities, security domains, injectors, XLS mappers and notifiers. The forms of a scenario need them, to pick a team or a tag. Creating, changing or deleting them still needs the capability, such as **Manage teams & persons** or **Manage tags**. Do not count on roles to keep the names, email addresses or phone numbers of the persons of a tenant from its other members. ## What a new tenant starts with {#what-a-new-tenant-starts-with} Each tenant you create gets three roles, each with a group of the same name. You, its creator, become a member of the tenant and of its **Admin** group. | Group and role | Capabilities | For | | --- | --- | --- | | **Admin** | **Bypass (user has all rights)**, in this tenant | The administrators of the tenant | | **Manager** | Access, manage and delete scenarios, simulations, atomic testings, teams and persons, assets, threat arsenal, findings, dashboards, reportings, documents, channels, phishing, challenges, lessons learned, security platforms and tags; **Launch assessment** | The people who build and run simulations | | **Observer** | Access only, to the same content except teams, persons and tags | The people who read the results | Neither **Manager** nor **Observer** holds the tenant settings or the tenant's users, groups and roles: only **Admin** manages the tenant itself. The default tenant has the same three groups, one of each: the bootstrap admin is a member of its **Admin** group, with the **Admin** role. A platform **Administrators** group, with a platform **Admin** role, holds the bootstrap admin too. An upgrade renames and deletes no group: a platform installed with an earlier release keeps the **Administrators** group of its default tenant, beside **Admin**, and the bootstrap admin stays in it. ## Users, groups and roles in a tenant {#users-groups-and-roles-in-a-tenant} The Security menu opens on **This tenant**. With the Enterprise Edition and a platform capability, a switch at its top moves to **Platform**, where the same **Users**, **Groups** and **Roles** entries list the platform's own. - **Users.** **Create** asks for an **Email address**, a **Firstname** and a **Lastname**, and optionally the **Organization**, **Tags**, phone numbers and **PGP public key** used by email injects. A new address gets an account, and OpenAEV emails a reset code so the person chooses a password. An address that already has an account is attached to the tenant and keeps its password. **Delete**, in **This tenant**, only detaches the user from the tenant and removes them from its groups; the account stays. In **Platform**, **Delete** removes the account and ends its sessions, and the **Tenants** field of a user sets the tenants it belongs to. - **Groups.** A group has a name, a description and **Auto assign**: on, every user who joins the tenant joins the group, including users created by single sign-on. Its menu holds **Manage users**, **Manage roles** and **Manage grants**. - **Grants.** **Manage grants** opens a tab per kind of object: **Scenarios**, **Simulations**, **Atomic testings** and **Threat Arsenal**. Check **Access** to read the object, **Manage+Delete** to change and delete it, and **Launch** to run it. Each level includes the one before it; threat arsenal actions have no **Launch**. - **Roles.** A role has an **Overview** tab, its name and description, and a **Capabilities** tab, a tree where checking a capability checks the ones it includes. - **Organizations.** The organizations of the tenant, such as a member company or a department, that users and teams belong to. They need **Access tenant settings**. - **Sessions.** The open sessions, grouped by user, with their **Last activity** and when they were **Created**. **Kill session** signs one session out; **Kill all sessions**, shown for a user with several, signs that user out everywhere. It needs **Manage tenant sessions**, or **Manage platform sessions** with the **Platform** scope. Some actions need two capabilities. To write a media pressure article in a scenario, a user needs **Manage assessment** and **Access channels**; without the second, the form says which capability is missing. **Example: Work out what Grand Meridian's people can do** Example CERT runs one OpenAEV instance for its member hotel chains, with a tenant for each. In the **Grand Meridian Hotels** tenant: - Hélène Marchetti, the CISO, is in **Observer**. She reads the results of every simulation, but cannot change or launch anything. - The security engineer of Grand Meridian is in **Manager**. He builds the scenario that replays Velvet Harbor against the front-desk workstations, launches it and reads its expectations. - A front-desk supervisor of the Paris hotel must run one simulation on the night shift without seeing the others. He joins a new group, **Paris night shift**, with no role. In **Manage grants**, **Simulations**, the group gets **Launch** on the simulation of the fake booking request for the European Hospitality Summit 2026. He sees that simulation, and nothing else. - Example CERT's own analysts belong to the **Example CERT** tenant only. They see nothing of Grand Meridian until an administrator attaches them to that tenant and puts them in one of its groups. ## Secure choices first {#secure-choices-first} | Choice | Why | | --- | --- | | Keep **Bypass (user has all rights)** to the **Admin** groups, and the platform one to a few named people | In a platform role it opens every tenant the user belongs to, with every right | | Keep the bootstrap admin for emergencies | Its password comes from `OPENAEV_ADMIN_PASSWORD` and is applied at every start. See [Sign in the first time and keep an emergency account](https://filigran.io/docs/deploy/configure/first-access/) | | Turn **Auto assign** on only for a group with a narrow role, such as **Observer** | Every user who joins the tenant gets it, including every single sign-on login | | Prefer grants to a broad capability for occasional users | A grant opens one simulation; **Launch assessment** opens them all | | Map groups from your identity provider | Group memberships then follow the directory at each login. See [Configure single sign-on](https://filigran.io/docs/openaev/administer/sso/) | | Give integrations their own account | Its token then carries the rights of its own groups, not those of a person. See [Run an integration without XTM Composer](https://filigran.io/docs/deploy/integrations/manual/) | ## The administration tasks {#the-administration-tasks} | To | Read | | --- | --- | | Separate the organizations you serve | [Give each organization its own tenant](https://filigran.io/docs/openaev/administer/multi-tenancy/) | | Log users in with your identity provider | [Configure single sign-on](https://filigran.io/docs/openaev/administer/sso/) | | Show a message and ask for consent on the login page | [Set the login message and the consent box](https://filigran.io/docs/openaev/administer/policies/) | | Name and brand a tenant, choose its dashboards | [Set the name, look and home page of a tenant](https://filigran.io/docs/openaev/administer/parameters/) | | Keep tags, attack patterns and vulnerabilities in order | [Manage the tags, attack patterns and vulnerabilities](https://filigran.io/docs/openaev/administer/taxonomies/) | | Deploy content from XTM Hub | [Connect a tenant to XTM Hub](https://filigran.io/docs/openaev/administer/xtm-hub/) | | Protect the links sent to players | [Protect the links in player emails](https://filigran.io/docs/openaev/administer/url-access-token/) | | Start the platform without background work | [Start the platform in safe mode](https://filigran.io/docs/openaev/administer/run-modes/) | | Record who logged in and who changed what | [Keep an audit log of who changed what](https://filigran.io/docs/openaev/administer/audit-log/) | | Find what slows the platform down | [Turn on the debug mode to find slow requests](https://filigran.io/docs/openaev/administer/debug-mode/) | | See what is sent to Filigran | [Check or stop the usage telemetry sent to Filigran](https://filigran.io/docs/openaev/administer/telemetry/) | | Fix a problem | [Troubleshoot OpenAEV](https://filigran.io/docs/openaev/administer/troubleshoot/) | ## What's next {#what-s-next} - [Give each organization its own tenant](https://filigran.io/docs/openaev/administer/multi-tenancy/), to set up the tenants first. - [Configure single sign-on](https://filigran.io/docs/openaev/administer/sso/), so that accounts and groups follow your directory. - The [capabilities reference](https://filigran.io/docs/reference/openaev/capabilities/), every capability a role can grant, by scope. --- # How OpenAEV works: platform, agents, collectors and injectors > What OpenAEV is made of, what its platform, agents, executors, injectors and collectors each do, and the path an inject takes from a simulation to a score. - URL: https://filigran.io/docs/openaev/concepts/architecture/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, platform engineers, administrators - Type: Concept OpenAEV is made of a platform, where you build scenarios and run simulations, and of integrations that act on your environment and measure its response. Agents and executors run actions on endpoints, injectors deliver injects to people and systems, and collectors read what your security tools saw. This page explains what each part does and the path an inject takes. With it, you know what to deploy and where to look when a result is missing. How OpenAEV fits in the XTM stack, next to XTM One and OpenCTI, is in [The XTM stack](https://filigran.io/docs/deploy/plan/architecture/). ## What OpenAEV is made of {#what-openaev-is-made-of} **Diagram: OpenAEV is a platform that agents and integrations talk to, with four shared services behind it** - Endpoints: Agents (OpenAEV or third-party agents) - Integrations: Injectors (Run injects on other systems), Collectors (Read results from security tools) - OpenAEV: Platform (Interface, API, built-in integrations) - Shared services: PostgreSQL (Main database and sessions), Elasticsearch (Search indices), RabbitMQ (Queues for injectors), S3 storage (Files) Connections: - Agents → Platform: fetch jobs - Injectors → Platform: API - Collectors → Platform: API - Platform → PostgreSQL: read and write - Platform → Elasticsearch: index - Platform → RabbitMQ: queue injects - Platform → S3 storage: files | Part | What it is | Keeps data | | --- | --- | --- | | Platform | A Java application: the web interface, the API under `/api`, the scheduler and the built-in integrations | No | | OpenAEV agents | Programs installed on your endpoints that run the actions of injects | No | | Executors | The integrations that run work on endpoints: the OpenAEV agent, or a third-party agent driven through its vendor's API | No | | Injectors | The integrations that deliver injects: built into the platform, or standalone Python processes | No | | Collectors | Standalone Python processes that read data from your security tools and other sources | No | | PostgreSQL | The main database, including user sessions, in the database `openaev` by default | Yes | | Elasticsearch or OpenSearch | Search indices that the platform builds from PostgreSQL, under the prefix `openaev` by default | Yes, rebuilt from PostgreSQL | | RabbitMQ | The queues between the platform and its injectors | Messages in transit | | S3 storage (MinIO, or RustFS in xtm-docker) | Files uploaded to the platform, in the bucket `openaev` by default | Yes | OpenAEV does not use Redis. Sessions are stored in PostgreSQL, so they survive a restart of the platform. ## The platform {#the-platform} The platform is the center of OpenAEV. You configure scenarios, simulations, atomic tests and integrations there, and it schedules each inject at its time. Agents, injectors and collectors connect to its API with a URL and a token, `OPENAEV_URL` and `OPENAEV_TOKEN` for the Python integrations. The platform writes to PostgreSQL first. It then copies the data to Elasticsearch in the background, for search. A change can take a short while to appear in search results, and the indices can be rebuilt from PostgreSQL. ## Agents and executors {#agents-and-executors} To act on an endpoint, OpenAEV needs an executor on it: a program that starts the actions of an inject as separate processes. - **The OpenAEV agent** is the default executor, for Windows, Linux and macOS, on x64 and ARM64 processors. It enrolls the endpoint as an asset in the platform, fetches the jobs to run and starts an implant for each one. The implant runs the actions; the agent itself does nothing on the endpoint, so it stays neutral toward antivirus software. See [OpenAEV agents](https://filigran.io/docs/openaev/use/agents/). - **A third-party agent** already on your endpoints can play the same role: CrowdStrike Falcon, SentinelOne, Tanium or Caldera. The platform asks the vendor's API to start the implant. Each is turned on in the platform configuration with its own key, such as `executor.crowdstrike.enable`. Each implant works in its own folder, under `runtimes/` in the agent's folder, one per inject execution. Antivirus exclusions apply to `runtimes/` only, so the actions themselves can still be detected and blocked: that is what the simulation measures. An OpenAEV agent runs at most 5 jobs at a time by default (`executor.openaev.agent.max-simultaneous-jobs`). Installing executors on endpoints is in [How integrations run](https://filigran.io/docs/deploy/integrations/how-they-run/). ## Injectors {#injectors} Injectors deliver injects: they push the actions of a simulation to people and systems. Two kinds exist: - **Built-in injectors** run inside the platform and are configured in its configuration: email, SMS, media pressure, challenges, manual action reminders and Caldera, among others. - **External injectors** are standalone Python processes, such as the HTTP query injector. Each one registers with the platform, which gives it the connection details of RabbitMQ. The injector then takes its injects from its own queue. It must be able to reach RabbitMQ under the host name the platform knows it by. Some injectors run actions on endpoints. When they register, they tell the executors how to start them on Windows, Linux and macOS, and the executors do the rest. See [Injectors](https://filigran.io/docs/openaev/use/injectors/). ## Collectors {#collectors} Collectors are standalone Python processes that pull data from other systems, for two purposes: - **Measure the response to injects.** Collectors for security tools look for the alerts and logs an inject caused. They fill the detection and prevention expectations. An endpoint detection and response (EDR) collector matches on the host name and on the name of the parent process, the implant, which contains the inject's ID. A security information and event management (SIEM) collector relies on the EDR: it confirms what the EDR collector has already matched. - **Feed the platform.** Other collectors import assets, identities, and threat intelligence such as attack patterns and kill chains, used to build scenarios. See [Collectors](https://filigran.io/docs/openaev/use/collectors/). ## The path of an inject {#the-path-of-an-inject} **Diagram: The platform hands an inject to an injector or an agent, it acts on your environment, and collectors read what your security tools saw to score the expectations** - Plans: Platform (Runs the simulation) - Executes: Injector (Email, HTTP, Caldera and more), Agent (Starts an implant per inject) - Your environment: Targets (People, systems, endpoints), Security tools (SIEM, EDR, XDR, gateways) - Measures: Collector (Matches alerts to injects) - Scores: Expectations (Detected, prevented or not) Connections: - Platform → Injector: inject - Platform → Agent: job - Injector → Targets: acts on - Agent → Targets: runs actions - Targets → Security tools: seen by - Security tools → Collector: alerts and logs - Collector → Expectations: results Take a simulation that runs an attack technique on a group of endpoints: 1. At the time set in the simulation, the platform starts the inject and creates its expectations: for example, that the attack is detected and prevented. 2. For an action on endpoints, the platform hands a job to the executor. An OpenAEV agent fetches the job from the platform. For a third-party agent, the platform calls the vendor's API. 3. On each endpoint, the agent starts an implant, which runs the actions. For an inject to people or systems, an injector delivers it instead: an email, an HTTP request, a message. 4. Your security tools see the actions, or not, and raise alerts. 5. Collectors read the alerts and logs of those tools and match them to the inject. 6. Each match fills an expectation. An expectation that nothing has filled when it expires stays unmet: the attack counts as not detected or not prevented. Expectations expire after a delay set in the platform configuration, in seconds. By default, detection and prevention expectations expire after 6 hours (`openaev.expectation.technical.expiration-time`), and expectations of people after 24 hours (`openaev.expectation.human.expiration-time`). ## Background work {#background-work} Background components of the platform, its managers, keep some features working without anyone asking. The telemetry manager counts how the platform is used every hour and sends that [usage telemetry](https://filigran.io/docs/openaev/administer/telemetry/) to Filigran every 6 hours. The platform runs other background work, set by configuration keys: | Work | What it does | When it runs | | --- | --- | --- | | Indexing | Copies the data of PostgreSQL to the Elasticsearch indices | Continuously | | Agent inactivity monitor | Checks which agents have stopped reporting | Every 5 minutes (`openaev.cron.config.agent.inactivity.monitor.interval`, in minutes) | | Implant cleanup | Asks each agent to remove the folders of implants and payloads older than 24 hours | Every 8 hours (`clean-implant-interval` of each executor, in hours) | | Health probes | Checks the connection to PostgreSQL, RabbitMQ and S3 storage, for the health endpoint | Every 10 seconds (`openaev.healthcheck.connectivity-probe-interval`) | Every key is in the [OpenAEV configuration reference](https://filigran.io/docs/reference/openaev/configuration/). > **With XTM One: Registration with XTM One** > > OpenAEV registers with XTM One when both `openaev.xtm.one.url` and `openaev.xtm.one.token` are set. How to connect OpenAEV to XTM One and to OpenCTI is in [Connect the modules](https://filigran.io/docs/deploy/configure/connect-modules/). ## What's next {#what-s-next} - [The XTM stack](https://filigran.io/docs/deploy/plan/architecture/): OpenAEV next to XTM One, OpenCTI and XTM Composer, and the services they share. - [Sizing](https://filigran.io/docs/deploy/plan/sizing/): the machines the platform and its services need. - [How integrations run](https://filigran.io/docs/deploy/integrations/how-they-run/): deploy executors, injectors and collectors. - [Scenarios and simulations](https://filigran.io/docs/openaev/concepts/scenarios-simulations/) and [Injects and expectations](https://filigran.io/docs/openaev/concepts/injects-expectations/): what you build on this architecture. --- # How OpenAEV keeps what you test and what it finds > The objects behind every OpenAEV screen - scenarios, simulations, injects, targets, the Threat Arsenal, expectations and findings - which ones a tenant shares, and what a change reaches. - URL: https://filigran.io/docs/openaev/concepts/data-model/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, crisis exercise planners, administrators - Type: Concept OpenAEV keeps a small set of connected objects, and every screen is a view of them. A **scenario** holds the attack you test, as **injects** aimed at **assets** and **teams**, and each inject runs an action of the **Threat Arsenal** or an inject type of an injector. Each launch copies the scenario into a **simulation**, and each run leaves **expectations**, scored per target, and **findings**, what the injects found. Some objects belong to one scenario; others are shared by the whole tenant, so a change to them reaches every scenario that uses them. This page describes each object, where it lives in the menu, and what a change to it affects. **Diagram: A scenario uses the targets and the arsenal of its tenant, each launch copies it into a simulation, and every run leaves expectations and findings** - Shared in the tenant: Assets and groups (Endpoints, security platforms), Teams and persons (Global, or one scenario's), Threat Arsenal (Actions and their payloads) - What you test: Scenario (Injects, variables, articles) - Each run: Simulation (Copy made at launch), Atomic testing (One inject, no scenario) - What it leaves: Expectations (One per target), Findings (What injects found) Connections: - Assets and groups → Scenario: targeted by - Teams and persons → Scenario: targeted by - Threat Arsenal → Scenario: its injects run - Scenario → Simulation: copied at launch - Simulation → Expectations: scored by - Atomic testing → Expectations: scored by - Simulation → Findings: produces - Atomic testing → Findings: produces ## What OpenAEV stores {#what-openaev-stores} | What you work with | Object | Where in the menu | Belongs to | | --- | --- | --- | --- | | The attack you test, written once | Scenario: its injects, teams, variables, media pressure articles, objectives and lessons learned questions | **Scenarios** | The tenant | | One run of it | Simulation: a copy of the scenario, with its status, dates and results | **Simulations** | The tenant, linked to its scenario if it has one | | One action tested on its own | Atomic testing: an inject that belongs to no scenario and no simulation | **Atomic testings** | The tenant | | A step of the attack | Inject: its type, its targets, its delay or the inject it depends on, its expectations | The **Injects** tab of a scenario or a simulation | One scenario or one simulation, never both | | What an inject can do | An action of the Threat Arsenal, with the payload it runs on endpoints; or an inject type of an injector, such as an email or a media article | **Threat Arsenal**; the injectors under **Integrations** | The tenant | | The machines and services you test | Assets: endpoints with their agents, other targets such as web applications or cloud accounts, and your security platforms | **Assets**, **Security platforms** | The tenant | | Machines tested together | Asset group: assets chosen by hand, and those a filter selects | **Asset groups** | The tenant | | The people you test | Persons, their teams and their organizations | **Persons**, **Teams**, **Organizations** | The tenant; a contextual team, one scenario | | What makes an exercise believable | Documents, channels and challenges | **Components** | The tenant | | What must happen for an inject to succeed | Expectation, one per target: prevention, detection, vulnerability, manual, challenge or article | The results of an inject | Its simulation or its atomic testing | | What the injects found | Finding: a value an inject reported, such as an open port, a user name or a CVE, linked to the assets, teams or persons it concerns | **Findings**, and the **Findings** tab of a scenario or a simulation | The tenant | | How things are classified | Tags, attack patterns, kill chain phases, vulnerabilities | **Settings > Taxonomies** | The tenant | Every object belongs to one tenant: a platform with several tenants keeps each one's scenarios, assets and results apart. Persons are the exception: a person is an account of the platform, a member of the tenants it can open. See [Give each organization its own tenant](https://filigran.io/docs/openaev/administer/multi-tenancy/). ## Owned or shared: what a change reaches {#owned-or-shared-what-a-change-reaches} A scenario owns some of its parts and points to the others, and the difference decides how far an edit reaches: - **Owned by the scenario**: its injects, its variables, its media pressure articles, its objectives, its lessons learned questions, and the persons enabled in each of its teams. Changing them changes that scenario only. - **Shared by the tenant**: assets and asset groups, teams and persons, the actions of the Threat Arsenal and their payloads, documents, channels, challenges and tags. A scenario points to them. Renaming an asset, adding a person to a team or changing a payload reaches every scenario that uses it, and the next run of each. An asset group is resolved when an inject runs, not when you build the scenario: an endpoint that joins the group, by hand or because it now matches the group's filter, is targeted by the next run. See [Add the assets your simulations target](https://filigran.io/docs/openaev/use/targets/assets/). A team is global or contextual. A global team, listed in **Teams**, is shared by every scenario it is added to. A contextual team exists only in the scenario it was created in, carries the **Contextual** chip, and does not show in **Teams**. See [Organize the people your injects target](https://filigran.io/docs/openaev/use/targets/people/). ## What a launch copies {#what-a-launch-copies} Launching a scenario creates a simulation that copies what the scenario owns and points to what it shares: | Copied into the simulation | Shared with the scenario | | --- | --- | | The injects, with their content, targets, delays and the links between them | The assets and asset groups the injects target | | The variables, the articles, the objectives and the lessons learned questions | The global teams and their persons | | The contextual teams, with the same persons | The documents, channels and challenges | | The persons enabled in each team | The actions of the Threat Arsenal and their payloads | The simulation also keeps a link to its scenario, which is how the scenario's **Statistics** compare its runs. So a change to the scenario's injects reaches only the next runs, while a change to a shared asset or team reaches the runs to come of every scenario. Expectations are not copied: an inject creates them when it runs. See [How a scenario becomes a simulation](https://filigran.io/docs/openaev/concepts/scenarios-simulations/). ## Expectations and findings: what a run leaves {#expectations-and-findings-what-a-run-leaves} When an inject runs, it creates its expectations, one per target, and they form a tree: - **For endpoints**: one expectation per agent of each targeted asset, one per asset, and one per asset group. An agent's result rolls up to its asset, and the assets' results to their group. - **For people**: one expectation per enabled person of each targeted team, and one per team. The persons' results roll up to their team. The **Validation mode** of an expectation decides how a group rolls up: **All assets (per group) must validate the expectation**, or **At least one asset (per group) must validate the expectation**, and the same choice for the persons of a team. How each expectation is answered is in [How an attack becomes injects and expectations](https://filigran.io/docs/openaev/concepts/injects-expectations/). A finding is a value an inject reported in its output: an open port, a share, a user name, a password policy, a CVE. It points to the inject that reported it and to the assets, teams or persons it concerns. OpenAEV records it per inject: the same value reported again by the same inject updates it, while the next run, whose injects are copies, records its own. **Findings** and the **Findings** tab of a scenario or a simulation show one line per type and value, and the page of a finding gathers every finding of that type and value in the tenant: its **Occurrences**, **First seen** and **Last seen**, and the assets, teams and persons it impacts. See [How OpenAEV recognizes what it already has](https://filigran.io/docs/openaev/concepts/deduplication/). A finding of the CVE kind holds the CVE's identifier: the vulnerability itself, with its score and its remediation, is in **Settings > Taxonomies > Vulnerabilities**. **Example: One change, seen from three screens** The validation engineer of Grand Meridian Hotels runs the scenario `Velvet Harbor replay` every week. Its inject **PowerShell loader** targets the asset group **Front desk workstations**, and its email **Fake summit booking request** the team **Front desk France**. - On 13 January 2026, she adds the endpoint `fd-barcelona-03` to **Front desk workstations**. The asset group is shared: the simulation of 14 January targets the new endpoint, and so does any other scenario that targets the group. - On 15 January, she changes the delay of **PowerShell loader** in the scenario from 15 to 10 minutes. The inject is owned: the simulation of 14 January keeps 15 minutes, the simulation of 21 January plays 10. - The simulations of 14 and 21 January both report the user name `night.audit` on `fd-paris-07`. Each run records its own finding; **Findings** shows one line for `night.audit`, whose page counts 2 **Occurrences**, first seen on 14 January and last seen on 21 January. ## What's next {#what-s-next} - [How a scenario becomes a simulation](https://filigran.io/docs/openaev/concepts/scenarios-simulations/) - [How an attack becomes injects and expectations](https://filigran.io/docs/openaev/concepts/injects-expectations/) - [How injects reach assets and people](https://filigran.io/docs/openaev/use/targets/) - [How OpenAEV recognizes what it already has](https://filigran.io/docs/openaev/concepts/deduplication/) - [How access works in OpenAEV](https://filigran.io/docs/openaev/concepts/access/): who may see and change each object --- # How OpenAEV recognizes what it already has > When OpenAEV matches an incoming endpoint, finding, payload, tag, person or STIX bundle to an object it already has, by which properties, and what it then updates, merges or refuses. - URL: https://filigran.io/docs/openaev/concepts/deduplication/ - Products: OpenAEV 3.261118.0 - For: administrators, security validation engineers - Type: Concept OpenAEV has no single rule that makes two objects one. Each kind of object is recognized by properties of its own, and only some ways in look for an existing object: agents and executors that report machines, collectors that bring payloads and vulnerabilities, imports of scenarios, the security coverages of OpenCTI. Most of what you create by hand, an endpoint, an organization, a scenario, is a new object, and some names the platform refuses twice. Knowing which way in matches what tells you why a machine shows once with two agents, why a tag you typed in capitals is lowercase, and why an imported scenario reuses your teams but brings new injects. Every match stays inside one tenant. **Diagram: An agent or an EDR host joins the endpoint it already belongs to, by its own reference first, then by a MAC address the endpoint already has** - What arrives: OpenAEV agent (Registers when it starts), EDR executor (Syncs the hosts it manages) - How OpenAEV matches: Same agent reference (The ID it was installed with), Shared MAC address (One is enough; hostname not compared) - The result: Existing endpoint (Addresses merged, agent added or updated), New endpoint (When nothing matches) Connections: - OpenAEV agent → Same agent reference: checked first - EDR executor → Same agent reference: checked first - Same agent reference → Existing endpoint: found - Same agent reference → Shared MAC address: not found - Shared MAC address → Existing endpoint: found - Shared MAC address → New endpoint: not found ## Endpoints: one machine, one endpoint {#endpoints-one-machine-one-endpoint} A machine reaches OpenAEV through the OpenAEV agent installed on it, through the EDR that manages it, or both. OpenAEV keeps one endpoint per machine, with one agent per way it is reached: - **An agent it already knows.** Each agent reports the identifier it was installed with. When an agent with that identifier exists, with the same user, the same mode (service or session) and the same privilege (administrator or standard), it is that agent, and it is updated. With another user, mode or privilege, it is a new agent on the same endpoint: the OpenAEV agent installed as a service and as a user session shows twice on one endpoint. - **A machine it already knows.** A new agent joins the endpoint that has at least one of its MAC addresses. The hostname is not compared, so two machines with the same hostname stay two endpoints. MAC addresses are compared in lowercase, without separators, and the addresses no network card has, such as all zeros or the broadcast address, are ignored. - **An EDR's hosts.** The CrowdStrike Falcon, SentinelOne, Tanium, Microsoft Defender for Endpoint and Palo Alto Cortex executors sync the hosts they manage: a host is matched by its device identifier among the executor's own agents, then by a shared MAC address. An endpoint where the OpenAEV agent already runs gets the EDR's agent as a second agent. Each host group of CrowdStrike Falcon becomes an asset group, recognized by the group's identifier. See [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/). - **Caldera's agents** are recognized by their identifier, then by the same hostname and at least one IP address in common, when exactly one endpoint has them. When an endpoint is matched, its hostname and architecture take the reported values, its IP and MAC addresses gain the new ones, and its agent gets its last seen date. CrowdStrike Falcon never changes the hostname, which it cuts at 15 characters, and Palo Alto Cortex never changes the architecture. The endpoint gets the tag `source:` followed by the name of the executor, in lowercase. An endpoint you create in **Assets**, or import from a CSV file, is always a new one, even with the hostname of another. To feed endpoints from a script without duplicates, use the API's upsert, which matches by external reference, then by the same hostname and an IP address, then by the same hostname and a MAC address: see [REST API](https://filigran.io/docs/develop/apis/rest/). ## Findings: once per inject {#findings-once-per-inject} A finding is recorded per inject: the same field, type and value reported again by the same inject updates the finding, its name and its date, and adds the asset it was found on. The same value reported by another inject, or by the next run of the scenario, whose injects are copies, is another finding. **Findings**, the **Findings** tab of a scenario or a simulation and the **Findings** section of an endpoint show one line per type and value. The page of a finding gathers every finding of that type and value in the tenant: its **Occurrences**, **First seen** and **Last seen**, and the assets, teams and persons it impacts. So a credential found on the same workstation every week is one line, with one occurrence per run. ## What collectors and connectors bring {#what-collectors-and-connectors-bring} | Object | Recognized by | When it comes again | | --- | --- | --- | | Payload of a collector | Its external identifier, given by the collector | Its properties, tags and attack patterns are replaced; its domains are added up | | Vulnerability | Its CVE identifier, in any case | Every attribute is replaced, its weaknesses (CWE) too | | Attack pattern | Its external identifier, such as `T1059.001` | Its name, description, platforms, kill chain phases and parent are replaced | | Kill chain phase | Its STIX identifier, then its kill chain and short name | Its name, description and short name are replaced | | Inject type of an injector | Its identifier, when the injector registers | Its labels, form and attack patterns are replaced; a type the injector no longer declares is deleted | | Security platform | Its external reference, then its name in any case and its type | Updated. Two platforms of one type cannot share a name | The author of a collector's payloads is an organization, recognized by its name in any case. See [How collectors measure what your security tools saw](https://filigran.io/docs/openaev/use/collectors/). ## Names the platform keeps unique {#names-the-platform-keeps-unique} | Object | What makes it the same | What happens | | --- | --- | --- | | Tag | Its name, always stored in lowercase | An import, a CSV file or a collector that brings `Hotel-Sector` reuses `hotel-sector` and keeps its color. Creating a tag of that name again is refused | | Person | Their email address, in any case | Adding a person with an email that exists adds that person to the tenant, unchanged: an account is one person across tenants | | Team | Its name, in any case | A second global team with the name of another is refused, and so is a contextual team with the name of another of the same scenario or simulation | | Document | Its content | Uploading a file whose content exists reuses the document and adds the new tags to it | | Organization | Nothing, when you create one | Two organizations may share a name; an import or a collector reuses the one of the same name, in any case | ## What an import or a duplicate creates {#what-an-import-or-a-duplicate-creates} Importing a scenario or a simulation, deploying one from XTM Hub, or loading the starter pack always creates a new scenario or simulation, with new injects and articles. An import is named after the original followed by ` (Import)`; the starter pack keeps its names. What they point to is reused when the tenant has it: tags by name, attack patterns and kill chain phases by identifier, organizations, channels and challenges by name, persons by email, global teams by name, payloads by identifier or by content. Importing the same file twice gives two scenarios that share the same teams and assets. See [Import a scenario or injects from a file](https://filigran.io/docs/openaev/use/scenarios/import/). **Duplicate**, on a scenario, an inject or a payload, creates a new object named after the original followed by ` (duplicate)`. A duplicated scenario gets its own copies of its injects, contextual teams, articles and variables, and shares the rest. A duplicated payload loses the identifier of its collector, so the collector never updates the copy. ## Security coverages from OpenCTI {#security-coverages-from-opencti} A security coverage that OpenCTI sends is recognized by its STIX identifier, and is the same scenario from one update to the next. OpenAEV ignores a bundle identical to the last one, and a bundle not newer than the last it processed: OpenCTI's enrichment shows the request and its message. A newer bundle updates the scenario: its name, description, severity and tags take the coverage's values, the injects that still test a technique of the coverage on a platform it names are kept with their targets, the others are deleted, and only the missing ones are built. See [Turn an OpenCTI security coverage into a scenario](https://filigran.io/docs/openaev/use/scenarios/from-opencti/). **Example: One front-desk workstation, two agents** The platform engineer of Grand Meridian Hotels installs the OpenAEV agent as a service on `fd-paris-07` on 8 January 2026. The next day, Meridian EDR, a CrowdStrike Falcon tenant, syncs its host group `Front desk - Paris`, which holds `fd-paris-07`. - The Falcon host has a MAC address of the endpoint the OpenAEV agent created: the endpoint gets a second agent, of the CrowdStrike executor, and the tag `source:` followed by the executor's name in lowercase. **Assets** shows `fd-paris-07` once. - The asset group `Front desk - Paris` is created; the next sync updates its members instead of creating another. - A night auditor's laptop, renamed `fd-paris-07` by mistake, has none of these MAC addresses: it stays an endpoint of its own, and the injects aimed at the asset group reach the right machine. ## What's next {#what-s-next} - [How OpenAEV keeps what you test and what it finds](https://filigran.io/docs/openaev/concepts/data-model/) - [Install the OpenAEV agent on your endpoints](https://filigran.io/docs/openaev/use/agents/) - [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/) - [Add the assets your simulations target](https://filigran.io/docs/openaev/use/targets/assets/) --- # How an attack becomes injects and expectations > How OpenAEV turns each step of a threat into an inject, what an inject is made of, the three families of expectations it carries, and how their results become your security posture. - URL: https://filigran.io/docs/openaev/concepts/injects-expectations/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, SOC analysts, crisis exercise planners - Type: Concept A threat is a series of actions: an intrusion set sends a phishing email, runs a script, steals an account, takes data away. OpenAEV replays each action as an inject: a command on an endpoint, an email to a team, a media article, a request to the SOC. Each inject carries expectations, the reactions you expect from your defenses and your people: block the command, raise an alert, report the email. OpenAEV plays the injects, collects what happened, and scores each expectation. The scores, added up, are your security posture against that threat. This page explains the model; how the answers are combined into a score is detailed in [How expectations score an inject](https://filigran.io/docs/openaev/use/expectations/). ## From an action to a score {#from-an-action-to-a-score} **Diagram: An inject acts on its targets, results come back from your tools and your people, and each expectation compares its score with its success score** - Inject: Inject (Type, targets, time) - Targets: Assets (Hosts and their agents), Persons (Enabled in each team) - Results: Collectors (Alerts of EDR, SIEM, gateways), Findings (CVEs found on the target), Answers (Manual score, flag, article read) - Score: Expectations (Success once the score is reached) Connections: - Inject → Assets: acts on - Inject → Persons: reaches - Assets → Collectors: seen by your tools - Assets → Findings: scanned - Persons → Answers: react - Collectors → Expectations: prevention, detection - Findings → Expectations: vulnerability - Answers → Expectations: human response ## What an inject is made of {#what-an-inject-is-made-of} | Part | What it decides | Read | | --- | --- | --- | | **Type** | What the inject does: an action of the Threat Arsenal run on endpoints, or an inject type of an injector, such as an email, an SMS, an HTTP request, a media article, a challenge or a manual action. The type also decides which targets the inject accepts and which expectations it proposes | [Build the actions of your threat arsenal](https://filigran.io/docs/openaev/use/threat-arsenal/), [How injectors deliver your injects](https://filigran.io/docs/openaev/use/injectors/) | | **Targets** | Who or what it acts on: assets and asset groups for an action on endpoints, teams for an inject that reaches people | [How injects reach assets and people](https://filigran.io/docs/openaev/use/targets/) | | **Time** | When it runs: at a delay after the start of the simulation, or once its parent inject meets a condition, such as being executed or one of its expectations failing | [Run injects on conditions and move them between scenarios](https://filigran.io/docs/openaev/use/injects/chaining/) | | **Expectations** | What must happen for the inject to succeed, under **Inject expectations** in its form. The type proposes them; you keep, change or remove them | [How expectations score an inject](https://filigran.io/docs/openaev/use/expectations/) | Who plays the inject depends on its type. An action on endpoints is run by an agent on each targeted host; an email, an SMS or an HTTP request is sent by its injector. Both paths are drawn in [How OpenAEV works](https://filigran.io/docs/openaev/concepts/architecture/). ## Three families of expectations {#three-families-of-expectations} | Family | Expectation types | It checks that | Answered by | | --- | --- | --- | --- | | Your controls | **Prevention**, **Detection** | A security tool blocked the action, or raised an alert about it | The collectors of your security tools, which match their alerts and logs to the inject. See [How collectors measure what your security tools saw](https://filigran.io/docs/openaev/use/collectors/) | | Your exposure | **Vulnerability** | The target has none of the vulnerabilities the inject looks for | The output of the inject, such as a vulnerability scan | | Your people | **Manual**, **Challenge**, and **Automatic - Triggered when target reads the articles** | A team reacted as your procedures require, solved a challenge, read the media articles | A user who judges the reaction by hand, or OpenAEV itself when a person submits a flag or opens an article | Dashboards add the last family up as **Human Response**. Every expectation ends as a success or a failure, and shows **Pending** while it waits: a result brings a score, and the expectation succeeds when the score reaches its **Success score**. An expectation that gets no answer before its **Expiration time** fails, except a vulnerability expectation, which then counts as not vulnerable: nothing was found. Each target is scored on its own: every asset and agent of an asset group, every enabled person of a team. The **Validation mode** of an expectation decides whether the whole group must succeed, or one member is enough. ## From expectations to your posture {#from-expectations-to-your-posture} The results of expectations feed everything OpenAEV tells you about your defenses: - **The result of each inject** and of each simulation: which steps of the threat were stopped, seen, or neither. See [Run a simulation and read its results](https://filigran.io/docs/openaev/use/simulations/). - **The home dashboard and your dashboards**: success rates by expectation type, by security platform, by MITRE ATT&CK technique and by security domain. See [How security domains group your results](https://filigran.io/docs/openaev/concepts/security-domains/). - **The posture score of each asset**: the share of its expectations that succeeded. See [Add the assets your simulations target](https://filigran.io/docs/openaev/use/targets/assets/). - **The rest of the attack**: in a chain, the next inject can wait for the result of an expectation, so the attack goes on only when the previous step got through. The expectations an injector proposes can change with its versions. An inject keeps the ones it was created with, and OpenAEV shows when they drift from those of its type, so that you choose whether to realign them. **Example: Turn Velvet Harbor into injects and expectations** The validation engineer of Grand Meridian Hotels maps each step of Velvet Harbor's intrusion of 9 January 2026 to an inject of the scenario `Velvet Harbor replay`: | Step of the threat | Inject | Targets | Expectations | | --- | --- | --- | --- | | A fake booking request for the European Hospitality Summit 2026 reaches the night auditor (T1566.001) | **Fake summit booking request**, an email | Teams **Front desk France** and **Front desk Spain** | **Manual**: the front desk reports the email to the SOC | | The attachment starts a loader in PowerShell (T1059.001) | **PowerShell loader**, an action of the Threat Arsenal | Asset group **Front desk workstations** | **Prevention** and **Detection**, expected from an EDR | | The operators look for exported guest records on the workstation (T1005) | **Local guest records** | Asset group **Front desk workstations** | **Prevention** and **Detection**, expected from an EDR | | The backdoor beacons to its command and control over HTTPS (T1071.001) | **HTTPS beacon** | Asset group **Front desk workstations** | **Prevention** and **Detection**, expected from an EDR | After the first run, on 14 January 2026, the scenario reads: the email reported by two persons of five, the loader prevented by Meridian EDR, the search for guest records not detected. The search is the gap to close first. ## What's next {#what-s-next} - [How expectations score an inject](https://filigran.io/docs/openaev/use/expectations/): how the answers of agents, assets, persons and groups combine, and when they expire. - [How a scenario becomes a simulation](https://filigran.io/docs/openaev/concepts/scenarios-simulations/): where injects live, and what each run keeps. - [Add injects to scenarios and simulations](https://filigran.io/docs/openaev/use/injects/): create the injects of a scenario. --- # How a scenario becomes a simulation > What a scenario holds, the two kinds of scenarios, what a simulation copies when it starts, and how runs of the same scenario show your posture over time. - URL: https://filigran.io/docs/openaev/concepts/scenarios-simulations/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, crisis exercise planners - Type: Concept A scenario describes what you test: a threat, such as an intrusion set or an attack campaign, turned into a sequence of actions called injects, aimed at your assets and your people, each with the results you expect from your defenses. A simulation is one run of that scenario. You launch a scenario as often as you like, by hand or on a schedule, and each launch creates a new simulation with its own results. Comparing the simulations of one scenario shows whether your defenses get better against that threat. Scenarios are under **Scenarios**, simulations under **Simulations**; reading them takes the **Access assessment** capability, launching them **Launch assessment**. ## One scenario, many runs {#one-scenario-many-runs} **Diagram: Each launch of a scenario copies it into a new simulation, and the scenario's statistics compare the runs** - What you test: Scenario (Injects, targets, expectations) - How it starts: Launch (Now, after a confirmation), Scheduling (Once, hourly to monthly) - Each run: Simulation (Copy at launch, 12 January), Simulation (Copy at launch, 19 January) - Over time: Statistics tab (Trend of every run) Connections: - Scenario → Launch: by hand - Scenario → Scheduling: recurring - Launch → Simulation: creates - Scheduling → Simulation: creates - Simulation → Statistics tab: results - Simulation → Statistics tab: results When a simulation starts, it copies the scenario as it is at that moment: its injects with their targets and expectations, its teams with the persons enabled in each, its media pressure articles, its lessons learned questions and its tags. The simulation then lives on its own: - A change to the scenario, such as a new inject or another target, applies to the next simulations, never to the ones already created. - A change to a simulation, such as an inject added during the run, stays in that simulation and never goes back to the scenario. So each simulation is a faithful record of what was played and how your defenses answered at the time. The scenario keeps the link to all of them. ## What a scenario holds {#what-a-scenario-holds} | Part | What it is | Where you set it | | --- | --- | --- | | Injects | The actions of the attack or of the exercise: a command on an endpoint, an email, an SMS, a media article, a manual action. See [How an attack becomes injects and expectations](https://filigran.io/docs/openaev/concepts/injects-expectations/) | **Injects** tab, or **Logic** tab for a chained scenario | | Targets | The assets and asset groups an inject acts on, and the teams whose persons receive it. A team must be added to the scenario before an inject can target it | Each inject; the teams in **Configuration**, **Teams** tab. See [How injects reach assets and people](https://filigran.io/docs/openaev/use/targets/) | | Expectations | What must happen for each inject to succeed: prevented, detected, not vulnerable, or a reaction of the targeted persons | Each inject | | Context | **Variables** reused in inject contents, **Media pressure** articles, challenges and documents that make an exercise believable | **Configuration**; the components of each inject | | Properties | **Name**, **Category**, **Main focus**, **Severity** and tags. A tag can also add asset groups to the injects by default: see [Set default asset groups by scenario tag](https://filigran.io/docs/openaev/configure/asset-rules/) | The scenario's **Update** form | The categories are Global Crisis, Attack Scenario, Media Pressure, Data Exfiltration, Capture The Flag, Vulnerability Exploitation, Lateral Movement and URL Filtering. They classify your scenarios for filters and dashboards, and change nothing in how a scenario runs. ![The header of the scenario Velvet Harbor replay: Attack Scenario, severity high, not scheduled, its four injects, two teams, five persons and two asset groups, and its tabs from Overview to Statistics.](https://filigran.io/docs/shots/4b79ed2b2b3f8dc70b8324a38ddd5efee2393800ff935d09b7f435cfc4203ac9.webp) ## Time-based and chained scenarios {#time-based-and-chained-scenarios} You choose the kind of scenario when you create it, in **Create a new scenario**: | | **Time-based scenario** | **Chained scenario** | | --- | --- | --- | | How it runs | Each inject starts at a fixed delay after the start of the simulation, on a timeline | Each step triggers the next possible steps, from the results of the previous ones: an attack path | | Tabs | **Overview**, **Injects**, **Tests**, **Execution**, **Findings**, **Statistics** | **Overview**, **Scope**, **Logic**, **Attack Path**, **Execution**, **Findings**, **Statistics** | | Use it for | Replaying a known threat step by step, a tabletop or crisis exercise, a phishing campaign | Following an attack across your network as far as it can go, inside a scope you authorize | | Edition | Every edition | Enterprise Edition | A time-based inject can still wait for another: it then runs only when the conditions on its parent are met, such as the parent being executed or one of its expectations failing. A chained scenario needs its **Scope** before it can launch. See [How a chained scenario works](https://filigran.io/docs/openaev/use/attack-chaining/). When the scenario enables lessons learned, both kinds get a **Lessons learned** tab, for the questions players answer after the exercise. ## Launch, schedule or run once {#launch-schedule-or-run-once} A scenario runs in three ways, all from its header: - **Launch** starts a simulation now, after a confirmation. You land on the new simulation. - **Scheduling** runs it at a set time: **Once**, **Hourly**, **Daily**, **Weekly** or **Monthly**, from a start date and until an optional end date. Each occurrence creates a new simulation. A recurring scenario is how you follow a threat over time. - A simulation created directly from **Simulations** with **Create** has no scenario. Use it for a one-off exercise: it cannot be compared with other runs. A simulation shows its status in the list: **Draft** when it has no start date yet, then **Scheduled**, **On-going**, **Paused**, **Finished** or **Canceled**. ## Compare the runs of a scenario {#compare-the-runs-of-a-scenario} Two tabs of the scenario read its simulations: - **Execution** shows the latest simulation as it runs: its timeline and the result of each inject. - **Statistics** aggregates every simulation of the scenario on a dashboard, so you see the trend: are more steps of the threat detected than last month? The dashboard is the scenario's own, or the platform's default scenario dashboard. See [Build dashboards of your validation results](https://filigran.io/docs/openaev/use/dashboards/). To test one action without building a scenario, use an atomic test: one inject, run at once on the targets you pick, with its own results. See [Check one attack technique with an atomic test](https://filigran.io/docs/openaev/use/atomic-testing/). **Example: Replay Velvet Harbor every week** The validation engineer of Grand Meridian Hotels creates the **Time-based scenario** `Velvet Harbor replay`, **Category** Attack Scenario, **Severity** High, tag `velvet-harbor`: - Four injects: **Fake summit booking request**, an email to the teams **Front desk France** and **Front desk Spain** at the start; **PowerShell loader** on the asset group **Front desk workstations** 15 minutes later (T1059.001); **Local guest records** on the same group at 30 minutes (T1005); and **HTTPS beacon** on the same group at 45 minutes (T1071.001). - **Scheduling**: **Weekly**, every Wednesday at 06:00. The first simulation, on 14 January 2026, shows the loader blocked by Meridian EDR on four workstations, and neither blocked nor detected on `fd-barcelona-03`. Once the EDR agent of that workstation is restarted, the simulation of 21 January shows it blocked everywhere. The scenario's **Statistics** tab shows both runs side by side, while each simulation keeps the result of its own week. > **With XTM One: Build a scenario with AI** > > When OpenAEV is registered with XTM One, the **Scenario assistant** builds a time-based scenario from a threat report: it proposes the techniques to cover and generates their injects. For a chained scenario, **Generate with AI** lets the orchestrator design the attack path from an objective, templates, agents and a scope. See [XTM One in OpenAEV](https://filigran.io/docs/xtm-one/use/in-openaev/). ## What's next {#what-s-next} - [Build a scenario that replays an attack](https://filigran.io/docs/openaev/use/scenarios/build/): create the scenario and its injects. - [Run a simulation and read its results](https://filigran.io/docs/openaev/use/simulations/): launch it and follow its run. - [How an attack becomes injects and expectations](https://filigran.io/docs/openaev/concepts/injects-expectations/): what each inject must achieve. - [Turn an OpenCTI security coverage into a scenario](https://filigran.io/docs/openaev/use/scenarios/from-opencti/): start from a threat known to OpenCTI. --- # How security domains group your results > The ten security domains of OpenAEV, how an action or an injector gives an inject its domains, and how the Security Domains widget scores each kind of control. - URL: https://filigran.io/docs/openaev/concepts/security-domains/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, SOC managers - Type: Concept A security domain says which kind of control an inject tests: your endpoint protection, your network filtering, your email gateway, the reaction of your teams. Every action of the Threat Arsenal and every inject type carries one or more domains, so every result can be read by domain. The question changes from "did this simulation pass?" to "how well does our email protection hold, across every simulation of the quarter?". This page lists the domains, explains where an inject gets its domains, and how the **Security Domains** widget scores them. ## From an action to a score per domain {#from-an-action-to-a-score-per-domain} **Diagram: An inject takes the domains of its action or of its injector, and its expectations are scored per domain** - Declared by: Threat Arsenal action (Its Domains field), Injector (Domains of its inject types) - Inject: Inject (Endpoint, Network, E-mail Infiltration...) - Results: Expectations (Prevention, detection, vulnerability) - Read by domain: Security Domains widget (Success rate per domain) Connections: - Threat Arsenal action → Inject: domains - Injector → Inject: domains - Inject → Expectations: scored - Expectations → Security Domains widget: grouped by domain ## The ten domains {#the-ten-domains} Every tenant starts with the same ten domains: | Domain | The controls it tests | | --- | --- | | **Endpoint** | Protection of workstations and servers: EDR, antivirus, and the SIEM that receives their alerts | | **Network** | Segmentation, firewalls, intrusion detection and prevention, traffic inspection | | **Web App** | The security of your web applications: web application firewall, vulnerability detection | | **E-mail Infiltration** | The protection of email flows: phishing detection, attachment filtering, anti-spam and anti-spoofing. It also holds the injects that reach people by email, SMS or media | | **Data Exfiltration** | The detection and blocking of data leaving your network: data loss prevention, SIEM | | **URL Filtering** | Web access control: proxies, URL categorization, zero trust network access | | **Cloud** | Cloud-native controls: identity and access management, cloud logs in the SIEM | | **Artificial Intelligence** | The AI systems you test, such as language models and AI agents, and their protections: LLM firewalls, AI gateways | | **Tabletop** | Organizational exercises: decisions, procedures and coordinated response of your teams | | **To classify** | Nothing tested yet: the action or the inject type declares no domain | The names and colors of the ten domains are fixed. An integration can bring a new domain: it is created the first time an injector or a collector declares it, and then appears beside the ten. ## Where an inject gets its domains {#where-an-inject-gets-its-domains} An inject takes the domains of what it runs: - **An action of the Threat Arsenal** carries the domains set in its **Domains** field, which you choose when you create or edit the action. See [Set the properties of an action](https://filigran.io/docs/openaev/use/threat-arsenal/action-properties/). - **Another inject type** carries the domains its injector declares. The built-in email, SMS, media pressure, challenge and manual action injects carry **E-mail Infiltration** and **Tabletop**. When an injector or a collector registers again, for example after an upgrade, OpenAEV adds the domains it declares to those already on its inject types. It never removes a domain you added by hand. A domain spelled differently, such as `Table-Top` for **Tabletop**, is matched to the existing one: letter case, spaces and punctuation do not count. **To classify** goes away as soon as a real domain is set. Because the domain comes from the action, an expectation counts in each domain of its action, whatever the scenario it belongs to: a PowerShell command set to **Endpoint** scores the endpoint domain in every scenario that runs it. ## Read your results by domain {#read-your-results-by-domain} Domains appear wherever you filter or count injects: the **Domains** filter of the Threat Arsenal and of the inject type picker, the inject results, and the dashboards. The **Security Domains** widget, shown on the home dashboard as **Performance by security domain**, has one card per domain. Each card has a line per expectation type, such as prevention, detection and vulnerability, with the share of those expectations that succeeded: | Success rate | Color of the line | | --- | --- | | 25 % or less | Failure | | 26 to 50 % | Warning | | 51 to 75 % | Intermediate | | More than 75 % | Success | The domain's own icon takes the color of its worst line: a domain whose prevention fails shows as failing, however well detection does. A domain with no result in the period says so, and a click on a card opens the expectations behind it. To add the widget to your own dashboard, see [Create the widgets of a dashboard](https://filigran.io/docs/openaev/use/dashboards/widgets/). **Example: Find the weak domain of Grand Meridian Hotels** Over the first quarter of 2026, Grand Meridian Hotels replays Velvet Harbor every week against its front desks. **Performance by security domain** on the home dashboard shows: - **Endpoint**: detection 82 %, prevention 64 %. The icon shows as intermediate: Meridian EDR sees the PowerShell loader but does not always block it. - **E-mail Infiltration**: prevention 40 %. The icon shows as a warning: the Meridian email gateway lets the fake booking request for the European Hospitality Summit 2026 through more often than it blocks it. - **Data Exfiltration**: no result, because no inject of the scenario exports data over the network yet. The CISO, Hélène Marchetti, puts the email gateway first on the remediation plan, and asks for a data exfiltration step in the scenario. ## What's next {#what-s-next} - [Build the actions of your threat arsenal](https://filigran.io/docs/openaev/use/threat-arsenal/): the actions and the domains they carry. - [How an attack becomes injects and expectations](https://filigran.io/docs/openaev/concepts/injects-expectations/): what the success rates count. - [Create the widgets of a dashboard](https://filigran.io/docs/openaev/use/dashboards/widgets/): add the **Security Domains** widget. --- # How you validate your defenses in OpenAEV > The steps of a security validation in OpenAEV, from the targets and the attack to the results on the home dashboard, and the page that covers each step. - URL: https://filigran.io/docs/openaev/concepts/validation/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, SOC managers, crisis exercise planners - Type: Concept OpenAEV tells you whether your defenses stop a real attack. You describe what you test and what the attacker does, OpenAEV plays it against your endpoints and your people, and your security tools report what they saw. Every action is scored: was it prevented, detected, did a person react as expected? This page gives the order of the work, from the first agent to the trend on the home dashboard, and the page that covers each step. How the platform and its integrations fit together is in [How OpenAEV works](https://filigran.io/docs/openaev/concepts/architecture/). ## The steps of a validation {#the-steps-of-a-validation} **Diagram: A validation prepares the targets and the attack once, then builds, runs, reads and follows each scenario** - Prepare: Targets (Assets, agents, teams), Threat Arsenal (Actions and payloads) - Build: Scenario (Injects and expectations) - Run: Simulation (One run of the scenario), Atomic test (One inject alone) - Read: Expectations (Prevented, detected, answered) - Follow: Dashboards (Trend over runs) Connections: - Targets → Scenario: targeted by - Threat Arsenal → Scenario: injects - Scenario → Simulation: launch - Threat Arsenal → Atomic test: test alone - Simulation → Expectations: scored - Atomic test → Expectations: scored - Expectations → Dashboards: aggregated | Step | What you do | Where | Read | | --- | --- | --- | --- | | 1. Prepare the targets | Install agents on the endpoints you test, describe the other assets, gather them in asset groups, and organize the people of tabletop and phishing exercises in teams | **Install simulation agents** in the top bar, **Assets**, **Asset groups**, **Persons**, **Teams** | [How injects reach assets and people](https://filigran.io/docs/openaev/use/targets/) | | 2. Choose what the attacker does | Pick the actions of the attack: commands and payloads of the Threat Arsenal, emails, HTTP requests and the other injects of your injectors | **Threat Arsenal**, **Integrations** | [Build the actions of your threat arsenal](https://filigran.io/docs/openaev/use/threat-arsenal/), [How injectors deliver your injects](https://filigran.io/docs/openaev/use/injectors/) | | 3. Build the scenario | Chain the injects on a timeline, or as an attack path that follows its own results, with the expectations each one must meet | **Scenarios** | [How an attack becomes injects and expectations](https://filigran.io/docs/openaev/concepts/injects-expectations/), [Build a scenario that replays an attack](https://filigran.io/docs/openaev/use/scenarios/build/) | | 4. Run it | Launch the scenario now, schedule it, or repeat it: each run is a simulation. To check one action first, run it alone as an atomic test | **Simulations**, **Atomic testings** | [How a scenario becomes a simulation](https://filigran.io/docs/openaev/concepts/scenarios-simulations/), [Run a simulation and read its results](https://filigran.io/docs/openaev/use/simulations/), [Check one attack technique with an atomic test](https://filigran.io/docs/openaev/use/atomic-testing/) | | 5. Read the results | Check which expectations succeeded, answer the ones a person must judge, and review the findings: CVEs, open ports, credentials | The simulation's tabs, **Findings** | [How expectations score an inject](https://filigran.io/docs/openaev/use/expectations/), [Review what your injects discovered](https://filigran.io/docs/openaev/use/findings/) | | 6. Follow your posture | Watch the trend over runs on the home dashboard, the **Statistics** tab of a scenario, your own dashboards and reports | **Home**, **Dashboards**, **Reporting** | [Build dashboards of your validation results](https://filigran.io/docs/openaev/use/dashboards/) | Steps 1 and 2 are done once and kept up to date: the assets you describe, the agents you install and the actions you import serve every scenario. Steps 3 to 6 repeat for each threat you test. When the threat comes from OpenCTI, step 3 can start from its security coverage: OpenAEV generates the scenario from the techniques of the threat. See [Turn an OpenCTI security coverage into a scenario](https://filigran.io/docs/openaev/use/scenarios/from-opencti/). ## Two kinds of exercises on the same platform {#two-kinds-of-exercises-on-the-same-platform} The same steps serve two kinds of work, often in the same scenario: - **A technical validation** acts on endpoints: an agent runs the attacker's commands, and collectors read the alerts of your security tools to score prevention and detection. It is the daily work of a validation engineer. - **A human exercise** acts on people: emails, SMS, media pressure, challenges and manual actions reach the persons of your teams, and their reactions are scored. A tabletop or a crisis exercise is built this way, and so is a phishing campaign. See [How a phishing exercise works](https://filigran.io/docs/openaev/use/phishing/). ## Read the home dashboard {#read-the-home-dashboard} **Home** opens on **Adversarial exposure overview**, a dashboard of every simulation and atomic test of the period. Choose the period in the list at the top right: **Last 3 months** by default, from **Last 24 hours** to **All time**. Your browser remembers the choice. **Refresh** reloads every widget. | Widget | What it tells you | | --- | --- | | **Exposure command center** | The adversarial exposure score, from 0 to 100: the share of validations your controls did not stop, so a higher score is worse. Around it, the attacks stopped and breached, and your security platforms | | **Prevention**, **Detection**, **Vulnerability** | The share of successful expectations of each type. **Human Response** appears beside them when expectations of people exist in the period | | **Performance by security domain** | The same rates by kind of control: endpoint, network, email, cloud and the others. See [How security domains group your results](https://filigran.io/docs/openaev/concepts/security-domains/) | | **Detection coverage** | The MITRE ATT&CK matrix, each technique colored by the detection expectations it passed and failed | | **Posture radar** and **Missed by security platform** | For each security platform, what it caught, and what it did not detect or prevent | | **Scenarios**, **Simulations**, **Injects**, **Assets**, **CVEs found**, **Vulnerable endpoints** | Counts of the period | | **Findings by type**, **Latest findings**, **Total findings**, **Ports open** | What the injects discovered on your assets | | **Missed injects by week**, **Most detected & prevented TTPs**, **Most undetected TTPs** | Where the gaps are, and whether they shrink | | **Simulations by week**, **Latest simulations** | How often you test, and the last runs | Click a bar, a slice or a number to open the list of what it counts: the expectations, findings or simulations behind it. This dashboard is the **Platform default**. An administrator can open another one on **Home** for the whole platform, and each user can choose their own in their profile: see [Build dashboards of your validation results](https://filigran.io/docs/openaev/use/dashboards/). **Example: Follow Grand Meridian's defenses against Velvet Harbor** After the intrusion of 9 January 2026, the validation engineer of Grand Meridian Hotels replays Velvet Harbor against the front desks of its French and Spanish hotels: 1. An OpenAEV agent runs on each front-desk workstation, and the asset group **Front desk workstations** gathers them. 2. The scenario **Velvet Harbor replay** chains a fake booking request for the European Hospitality Summit 2026 (T1566.001), a PowerShell loader (T1059.001), the search for guest records on the workstation (T1005) and the HTTPS beacon of the backdoor (T1071.001). 3. It runs every Wednesday at 06:00, and each run is a new simulation. 4. **Meridian EDR** blocks the PowerShell loader on four workstations of five; the **Meridian email gateway** lets the fake booking request through. 5. On **Home**, **Most undetected TTPs** lists Data from Local System (T1005) week after week: the gap to bring to the SOC. ## Find what you look for in the lists {#find-what-you-look-for-in-the-lists} Every list of OpenAEV, such as the scenarios, the simulations or the assets, has the same search and filters. **Add filter** offers the attributes of the objects listed; each filter takes an operator, such as **contains**, **starts with** or **is empty**, and its values. Between two filters, the **AND** or **OR** chip switches the logic of the whole list in one click. **Clear filters** removes them all. ![The Threat Arsenal list with Add filter open on the attributes its actions can be filtered on: action type, author, domains, platforms and status, beside the search field and the quick filters of the left panel.](https://filigran.io/docs/shots/6b98f5fdaac7a28964014b61112c7b0abf91a2e307a42a05a547142a505630ac.webp) Your browser remembers the filters, the search and the page of each list, so you find them again when you come back. They also go into the address of the page, in its `query` parameter: copy the address to share the filtered list with a colleague who has access to the same tenant. > **With XTM One: AI at each step** > > When OpenAEV is registered with XTM One, AI agents help at several steps. The **Scenario assistant** builds a time-based scenario from a threat report, **Generate with AI** designs a chained scenario from an objective, and **Ask Ariane** in the top bar answers questions on your results and turns them into a report or a deck. See [XTM One in OpenAEV](https://filigran.io/docs/xtm-one/use/in-openaev/). ## What's next {#what-s-next} - [How a scenario becomes a simulation](https://filigran.io/docs/openaev/concepts/scenarios-simulations/): what you build and what each run keeps. - [How an attack becomes injects and expectations](https://filigran.io/docs/openaev/concepts/injects-expectations/): what an inject plays and what it measures. - [How injects reach assets and people](https://filigran.io/docs/openaev/use/targets/): prepare what you test. - [Build dashboards of your validation results](https://filigran.io/docs/openaev/use/dashboards/): follow the trend your way. --- # Set default asset groups by scenario tag > Link a tag to asset groups so that every inject of a tagged scenario or simulation targets them, and set the groups of the rules that scenarios from OpenCTI use. - URL: https://filigran.io/docs/openaev/configure/asset-rules/ - Products: OpenAEV 3.261118.0 - For: administrators, security validation engineers - Type: How-to guide A default asset rule links a tag to asset groups. In every scenario or simulation that carries the tag, new injects target those asset groups without anyone picking them. It saves choosing the same groups on every inject, and it is how the scenarios OpenCTI generates find their targets: they arrive with known tags, and the rules of those tags decide which endpoints they run on. The rules are under **Settings > Customization > Default asset rules**. **Diagram: A tag on a scenario brings the asset groups of its rule to the scenario's injects that can target asset groups** - Scenario: Tag (velvet-harbor, opencti...) - Settings: Default asset rule (One tag to asset groups) - Targets: Asset groups (Front-desk workstations) - Injects: New inject (Gets the groups), Existing injects (If you answer Yes) Connections: - Tag → Default asset rule: matches - Default asset rule → Asset groups: names - Asset groups → New inject: added - Asset groups → Existing injects: added on request ## Before you start {#before-you-start} - Your role has **Access tenant settings** to see the rules, **Manage tenant settings** to create and change them, and **Delete tenant settings** to delete them. - The asset groups exist: see [Add the assets your simulations target](https://filigran.io/docs/openaev/use/targets/assets/). ## How a rule applies {#how-a-rule-applies} A rule acts at two moments, and only on injects whose type can target asset groups: - **When an inject is created** in a scenario or a simulation, the asset groups of the rules matching its tags are added to the ones the inject already has. A group is never added twice. - **When a tag is added** to a scenario or a simulation, and a rule matches it, OpenAEV asks **Asset rule detected**: click **Yes** to add the rule's asset groups to every existing inject, **No** to leave them as they are. New injects get the groups either way. A rule only adds. Removing a tag from a scenario, or a group from a rule, leaves the injects as they are: remove the groups from the injects yourself. ## Create a rule {#create-a-rule} 1. Open **Settings > Customization > Default asset rules** and click **Create**. The **Create an asset rule** panel opens. 2. Under **Tag**, choose the tag in **Select a Tag**. 3. Under **Asset groups**, choose the groups the tag must target. 4. Click **Create**. The list shows each rule with its **Tag** and its **Asset Groups**. To change the groups of a rule, open the menu at the end of its line and choose **Update**; to remove it, **Delete**. ![The Default asset rules: security coverage: windows sends to Front desk workstations, the shipped opencti and macOS and Linux rules keep their groups, and velvet-harbor sends to Front desk workstations and one more group, Booking servers.](https://filigran.io/docs/shots/b1e1a20ddffb1a17ef79e5ff79a7db51eb2d57895329a2cdcf94ee59134bb3e9.webp) ## The rules of scenarios from OpenCTI {#the-rules-of-scenarios-from-opencti} Four rules exist in every tenant and cannot be deleted, nor their tag changed. You only choose their asset groups: | Tag | Scenarios that carry it | Asset groups on a new tenant | | --- | --- | --- | | `opencti` | Scenarios and injects created from OpenCTI | **All endpoints**, when the starter pack is on | | `security coverage: windows` | Scenarios generated from an OpenCTI security coverage that applies to Windows | **All Windows x86_64** and **All Windows arm64** | | `security coverage: linux` | The same, for Linux | **All Linux x86_64** and **All Linux arm64** | | `security coverage: macos` | The same, for macOS | **All MacOS x86_64** and **All MacOS arm64** | These groups select hosts by platform and architecture, so every Windows, Linux or macOS host is in one of them. To keep the scenarios from OpenCTI away from part of your estate, such as production servers, point these rules at narrower groups. The starter pack, which also creates **All endpoints**, is on by default (`openaev.starterpack.enabled`, in the [starter pack settings](https://filigran.io/docs/reference/openaev/configuration/#openaev-starterpack)). See [Turn an OpenCTI security coverage into a scenario](https://filigran.io/docs/openaev/use/scenarios/from-opencti/). **Example: Keep OpenCTI scenarios on the front desks** Grand Meridian Hotels lets OpenCTI generate a scenario each time a security coverage of Velvet Harbor changes, but wants those scenarios to run only on the front-desk workstations, never on the booking database server. The administrator opens **Settings > Customization > Default asset rules**: | Rule | **Asset groups** | | --- | --- | | `opencti` | **Front desk workstations**, instead of **All endpoints** | | `security coverage: windows` | **Front desk workstations**, instead of **All Windows x86_64** and **All Windows arm64** | Then a rule of their own, **Tag** `velvet-harbor`, **Asset groups** **Front desk workstations** and **Booking servers**, for the scenarios the validation engineer tags by hand. When the engineer adds `velvet-harbor` to the existing scenario `Velvet Harbor replay`, **Asset rule detected** asks; **Yes** adds both groups to its three injects that run on endpoints, and leaves the email inject, which targets a team, as it is. ## What's next {#what-s-next} - [Add the assets your simulations target](https://filigran.io/docs/openaev/use/targets/assets/): build the asset groups the rules point at. - [Turn an OpenCTI security coverage into a scenario](https://filigran.io/docs/openaev/use/scenarios/from-opencti/): the scenarios the protected rules serve. - [How injects reach assets and people](https://filigran.io/docs/openaev/use/targets/): how an inject gets its targets. --- # Configure autonomous attack chaining > Set the specialist agents an autonomous attack may consult by default and how far each may go, understand objective scope modes, and steer a live run. - URL: https://filigran.io/docs/openaev/configure/autonomous-attack/ - Products: XTM One 1.261119.1, OpenAEV 3.261118.0 - Edition: requires an Enterprise Edition license - For: administrators, AI agent builders, security validation engineers - Type: How-to guide An autonomous attack is driven by the XTM One orchestrator, which can consult specialist agents, each focused on one job: building a payload, generating code, reconnaissance, exploitation support. This page sets which agents it consults by default for your tenant and how much each may create, explains the scope mode an objective carries, and shows how to steer a run while it is live. Running an autonomous attack itself is in [Let AI run a penetration test](https://filigran.io/docs/openaev/use/attack-chaining/autonomous/). ## Before you start {#before-you-start} - The Enterprise Edition is active and OpenAEV is connected to XTM One: the settings page stays hidden otherwise, since the orchestrator is an XTM One capability. See [Connect the modules](https://filigran.io/docs/deploy/configure/connect-modules/). - To change the tenant defaults, your role is a platform or tenant administrator. The page shows an **EE** message with an Enterprise Edition button when the license is missing. - The agents you want to add exist in your XTM One instance. ## Set the default specialist agents {#set-the-default-specialist-agents} **Diagram: The tenant's default agents prefill every autonomous attack, and each run can still change its agents and their discovery mode** - XTM One: Agents for autonomous attacks (Built-in and your own) - OpenAEV settings: Tenant defaults (Customization > Autonomous attack) - Each run: Launch drawer (Agents and modes of this run) - XTM One: Autonomous orchestrator (Always on) Connections: - Agents for autonomous attacks → Tenant defaults: listed - Tenant defaults → Launch drawer: prefill - Launch drawer → Autonomous orchestrator: may consult these The tenant defaults prefill every new autonomous attack; each run can still change them in its launch drawer. 1. Open **Settings > Customization > Autonomous attack**. 2. The **Autonomous orchestrator** is always on: it plans and drives the attack and cannot be turned off. 3. Turn the specialist agents on or off. The built-in **OpenAEV Payload Creator**, marked **Built-in**, is on by default; turn it off to stop the orchestrator generating payloads on its own. Any agent of your XTM One can be a default here. 4. For each enabled agent, set its **Discovery mode**: how much it may create while it investigates. 5. To add an agent that does not exist yet, use the link to create one in XTM One; it becomes available here once it exists. The change is saved as you make it. | Discovery mode | What the agent may do | | --- | --- | | **Existing only** | Only enrich assets, teams and persons that already exist and are in scope; it creates nothing | | **In scope** | May create new assets, findings and persons, but only inside the run's allow-scope perimeter | | **Expansive** | May create new assets, findings and persons anywhere; the deny list still wins | A specialist agent starts at **Expansive** when you enable it; the orchestrator itself stays scoped. ![The Autonomous attack settings of the tenant: the Autonomous orchestrator, always on, and the built-in OpenAEV Payload Creator, enabled in Expansive discovery mode, with the link to create an agent in XTM One.](https://filigran.io/docs/shots/ca7c3c5c93a731df7d5f5a2c8cc575dd1fec3a44ee8c5a58b7010df3717b264d.webp) ## Understand objective scope modes {#understand-objective-scope-modes} Every objective carries a scope mode that tells the orchestrator whether it needs a target: - **Environment** objectives work over the whole authorized scope, such as "find and prove any path to domain admin". The AI discovers its own targets. - **Target** objectives need a specific target, such as "exploit this web application". When the objective needs a target and you gave none, the AI raises a **Question** and waits rather than guess. The ready-made objectives carry their mode: **Reach the Domain Controller**, **Prove Data Exfiltration**, **Validate EDR / SIEM Detections**, **Gain Initial Access** and most others are environment objectives; **Crown-Jewel Assessment** and **Web Application Exploitation** are target objectives. The mode applies the same whether you build the scenario with AI or launch it autonomously. ## Steer a live run {#steer-a-live-run} You do not stop a run to change its course. From the run's cockpit on the scenario page: - **Send a directive**: an instruction such as "focus on the booking network" or "avoid the production database". The orchestrator applies pending directives on its next decision cycle and records a **Directive** entry, without stopping. - **Edit the live configuration**: adjust the scope or the rate limit; the change reaches the live run and its simulation without a restart. - **Answer a question**: when the run is **Waiting for input**, answer to unblock it. - **Stop**: stops the run and its simulation. ## Check that it worked {#check-that-it-worked} - **Settings > Customization > Autonomous attack** lists your agents with their state and discovery mode, and the launch drawer of a new autonomous attack arrives prefilled from them. - A directive you send shows as a **Directive** entry on the timeline once the orchestrator applies it. **Example: Scope the agents for Grand Meridian's night tests** Hélène Marchetti's team runs autonomous attacks at night and wants them to map the real environment without inventing assets outside the test perimeter. | Setting | Value | | --- | --- | | **Autonomous orchestrator** | On (always) | | **OpenAEV Payload Creator** | On, **Discovery mode** **In scope** | | A custom recon agent from XTM One | On, **Discovery mode** **Existing only** | Every new autonomous attack of the tenant then starts with these agents. On a run against the booking network, the team sends the directive "avoid 10.20.8.40, the payment gateway" mid-run; the orchestrator applies it on its next cycle, and the timeline records it. > **With XTM One: The agents live in XTM One** > > The specialist agents, including the ones you create, are XTM One agents. This page selects which the orchestrator may consult for OpenAEV's autonomous attacks and bounds what they may create; their instructions and governance are in XTM One. See [XTM One in OpenAEV](https://filigran.io/docs/xtm-one/use/in-openaev/). ## What's next {#what-s-next} - [Let AI run a penetration test](https://filigran.io/docs/openaev/use/attack-chaining/autonomous/): launch and watch a run. - [Set the targets and limits of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/scope/): the scope a run enforces. - [How a chained scenario works](https://filigran.io/docs/openaev/use/attack-chaining/): the chain an autonomous run builds on. --- # Get notified of score drops and changes > Set triggers that alert you in OpenAEV, by email or through a webhook when a scenario's score drops or a simulation, finding or asset changes, alone or as a digest. - URL: https://filigran.io/docs/openaev/configure/notifications/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, crisis exercise planners, administrators - Type: How-to guide OpenAEV tells you when something you follow happens, so you do not have to check every scenario after each run. A scenario scores lower than its previous simulation, a simulation of your exercise is updated, a finding appears. You set what to watch in triggers; each notification reaches you in the **Notification center**, by email, or in another tool through a webhook. This page subscribes to a scenario in one click, creates triggers and digests, reads the alerts, and, for administrators, sets the notifiers. ## Before you start {#before-you-start} - Triggers are personal: every user creates their own, and they notify only them. No capability is needed. - To subscribe from a scenario's page, your role has **Manage assessment**, or your group holds the scenario's **Manage+Delete** grant. - The notifiers you can choose are set by an administrator, with **Manage tenant settings**: see [Set the notifiers](#set-the-notifiers). Every tenant has two built-in notifiers: **User interface** and **Default mailer**. ## How a notification is made {#how-a-notification-is-made} **Diagram: An event on a watched resource fires your live triggers at once, a digest gathers their events by period, and the notifiers deliver them in the interface, by email or by webhook** - OpenAEV: An event (Create, update, delete, score drop) - Your triggers: Live trigger (Resource type, events, filters), Regular digest (Hour, day, week, month) - Notifiers: User interface (Alerts tab), Email (Your address), Webhook (Another tool) Connections: - An event → Live trigger: matches - Live trigger → Regular digest: gathered - Live trigger → User interface: at once - Live trigger → Email: at once - Regular digest → Email: by period - Live trigger → Webhook: at once A **live trigger** watches one **Resource type**, such as **Scenario** or **Finding**, for the events you choose: **Create**, **Update**, **Delete**, and for a scenario, **Score degradation**. Each matching event sends a notification through the trigger's notifiers at once. A **regular digest** watches nothing itself: it gathers what some of your live triggers caught, and sends it as one notification every hour, day, week or month. A period without any event sends nothing. The notifier decides where the notification goes: | Notifier | Where the notification goes | | --- | --- | | **User interface** | The **Alerts** tab of your **Notification center**, and the dot on the bell of the top bar | | An **Email** notifier, such as **Default mailer** | Your email address, through the platform's mail server | | A **Webhook** notifier | An HTTP request to another tool, such as a chat or a ticketing system | Only a trigger with the **User interface** notifier fills the **Alerts** tab. ### When a score counts as degraded {#when-a-score-counts-as-degraded} When a simulation of a scenario ends, OpenAEV compares its results with those of the previous finished simulation of the same scenario. It waits one hour by default, so that expectations have time to be scored. A lower prevention, detection or vulnerability score raises **Score degradation**. Its message reads, for example, `[scenario] Velvet Harbor replay: score degradation detected - prevention 80% -> 60%, detection 70% -> 70%`. The players' expectations, such as reading an article or completing a challenge, are not compared, nor results still pending. The delay is `openaev.notification.simulation-completed-delay-seconds`, in the [configuration reference](https://filigran.io/docs/reference/openaev/configuration/#openaev-notification). ## Subscribe to a scenario in one click {#subscribe-to-a-scenario-in-one-click} 1. Open the scenario and click the bell with a plus sign in its header, **Subscribe to notifications on this entity**. 2. OpenAEV creates a live trigger named **Instance trigger:** followed by the scenario's name. It watches this scenario only, for every event, **Score degradation** included, and notifies you in the **User interface**. The bell then shows a badge. Click it again, **Manage notifications on this entity**, to change the trigger, for example to add **Default mailer**, or to delete it and unsubscribe. ## Create a live trigger {#create-a-live-trigger} 1. Click the bell of the top bar, **Notifications**, then the **Triggers** tab of the **Notification center**. 2. Click **Create Live trigger**. 3. Fill in the **Name**: it shows on every notification the trigger sends. 4. Choose the **Resource type**: **Scenario**, **Simulation**, **Inject**, **Finding**, **Asset**, **Asset group**, **Team**, **Player**, **Payload**, **Vulnerability**, **Security platform**, **Document** or **Challenge**. 5. Check the events to watch: **Create**, **Update**, **Delete**, and **Score degradation** for a scenario. Choose at least one. 6. Optionally, add **Filters** to watch only some of these resources, for example the simulations with a given tag. Without filters, the trigger watches them all. 7. Choose one or more **Notifiers**. 8. Click **Create**. On a **Finding**, a filter on the value of a sensitive finding, such as a credential, matches its masked form only. ## Group alerts in a digest {#group-alerts-in-a-digest} 1. On the **Triggers** tab, click **Create Regular digest**. 2. Fill in the **Name**. 3. Under **Composed triggers**, choose the live triggers to gather. A digest cannot contain another digest. 4. Choose the **Period**: **Hour**, **Day**, **Week** or **Month**. For a week, choose the **Day of week**; for a month, the **Day of month**. Except for **Hour**, set the **Time (UTC)**. 5. Choose one or more **Notifiers**. 6. Click **Create**. A live trigger in a digest still notifies on its own. To receive its events only in the digest, give the live trigger the **User interface** notifier alone. A disabled live trigger records nothing, so the digest gets nothing from it either. ## Manage your triggers {#manage-your-triggers} The **Triggers** tab lists your triggers with their **Name**, **Type**, **Resource type**, **Events**, and whether they are **Enabled**. The menu of a line offers **Update**, **Disable** or **Enable** to pause a trigger without losing it, and **Delete**. ![The Triggers tab of the Notification center: the live triggers Velvet Harbor replay score drop on Scenario for Score degradation and Front-desk simulations on Simulation for Create and Update, and the digest Monday validation summary composing 2 triggers every week, all three Enabled.](https://filigran.io/docs/shots/37a4c24bd5151d6c404b6dbdb15964d2512f10ad10b1989db7f4395535d4acd4.webp) ## Read your alerts {#read-your-alerts} The **Alerts** tab lists what your triggers sent to the **User interface**, the unread ones marked with a dot. Each line gives: - **Operation**: **Creation**, **Modification**, **Deletion**, **Score degradation**, or **Multiple** for a digest. - **Message**: what happened, or for a digest, the number of events it holds. - **Original creation date**: when the event happened, not when a digest was sent. - **Trigger name**: click it to list only that trigger's alerts. Click a line to open what it is about: the scenario whose score dropped, the finding that appeared. A deletion opens nothing, nor a payload, vulnerability, document or challenge. Click a digest to list its events, each one clickable. **Mark all as read** clears the dots. Select lines to mark them as read or unread, or to delete them, together. ![The Alerts tab of the Notification center: the unread alerts of the trigger Front-desk simulations, a Creation for each new simulation and a Modification for each change, with their message and original creation date.](https://filigran.io/docs/shots/2c007f100806ad17cdf1ab9f16a003b1a2ea095e1689ea14b50e6641e12244c9.webp) ## Set the notifiers {#set-the-notifiers} An administrator with **Manage tenant settings** adds email and webhook notifiers for the whole tenant. Users then choose them in their triggers. 1. Open **Settings > Customization > Notifiers** and click **Create**. 2. Fill in the **Name**, as users will choose it, and a **Description**. 3. Choose the **Type**: **Email** or **Webhook**. 4. For an email, fill in the **Subject template**, and the **Body template (FreeMarker, empty = default template)** if the default body does not suit you. 5. For a webhook, fill in the **URL**, which starts with `https://` or `http://`, and the **Verb**, **POST** by default. Add the **Headers** the receiving tool expects, and the **Body template (FreeMarker, empty = default JSON payload)**. 6. Click **Create**. ![Settings, Customization, Notifiers: the two built-in notifiers, User interface and Default mailer, with the Create button.](https://filigran.io/docs/shots/d54c05e41d69c177e79367132ce4b275ec8c8febcb8bec5814fa497f16056f49.webp) Templates use the variables `${notification_name}`, the trigger's name, `${notification_type}`, `${platform_url}`, `${user_email}`, `${user_name}` and `${content}`, the events as JSON. An email notifier writes to the trigger owner's own address. A webhook to an internal or private address is refused, unless the platform allows it with `openaev.notification.webhook-allow-internal-targets`: see the [configuration reference](https://filigran.io/docs/reference/openaev/configuration/#openaev-notification). **Example: Be told when the Velvet Harbor replay scores lower** Example CERT replays Velvet Harbor against the front-desk workstations of Grand Meridian Hotels every week, after each change of the Meridian EDR policy. The validation engineer wants an email the day the replay scores lower, and a Monday summary of the week. They create a live trigger: | Field | Value | | --- | --- | | **Name** | `Velvet Harbor replay score drop` | | **Resource type** | **Scenario**, every scenario of the tenant: no filter | | Events | **Score degradation** | | **Notifiers** | **Default mailer**, **User interface** | A second live trigger, `Front-desk simulations`, watches **Simulation** for **Create** and **Update**, with **User interface** alone. Then a regular digest, `Monday validation summary`, composes both, with **Period** **Week**, **Day of week** **Monday**, **Time (UTC)** `07:00`, and **Default mailer**. On 16 January 2026, the replay after the EDR update scores 60% in prevention instead of 80%. One hour later, the engineer receives the email; the Monday summary repeats it with the four simulations of the week. Meanwhile, the exercise planner of the crisis exercise subscribes to the scenario **Velvet Harbor crisis night** with its bell, and sees each change of its timeline in their **Alerts**. ## What's next {#what-s-next} - [Run a simulation](https://filigran.io/docs/openaev/use/simulations/) and [Simulation reports](https://filigran.io/docs/openaev/use/simulations/reports/). - [Findings](https://filigran.io/docs/openaev/use/findings/), which triggers can watch. - The [configuration reference](https://filigran.io/docs/reference/openaev/configuration/#openaev-notification) for the notification settings. --- # Install the OpenAEV agent on your endpoints > Install the OpenAEV agent on Windows, Linux and macOS endpoints, choose how it runs, add its antivirus exclusion, and check that the endpoint enrolls. - URL: https://filigran.io/docs/openaev/use/agents/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, platform engineers - Type: How-to guide The OpenAEV agent is the program you install on an endpoint so that simulations can run attack actions on it. It enrolls the endpoint as an asset of OpenAEV, fetches the jobs of each inject, and starts an implant that runs the actions: the agent itself does nothing on the endpoint, so your antivirus and endpoint detection and response (EDR) tools judge the actions, not the agent. This page installs it on Windows, Linux and macOS, from the command OpenAEV gives you. Where the agent sits among executors, injectors and collectors is in [How OpenAEV works](https://filigran.io/docs/openaev/concepts/architecture/#agents-and-executors). **Diagram: You copy an install command from OpenAEV, run it on the endpoint, and the agent it installs enrolls the endpoint and fetches the jobs of each inject** - OpenAEV: Install simulation agents (Platform, mode, command) - Endpoint: Installer (Checks the signature), OpenAEV agent (Session, user or system), Implant (One per job, under runtimes) - Assets: Endpoints (Assets, with their agents) Connections: - Install simulation agents → Installer: copy and run - Installer → OpenAEV agent: installs - OpenAEV agent → Endpoints: registers - OpenAEV agent → Implant: starts - Implant → Endpoints: results ## Before you start {#before-you-start} - Your role has the **Install agent** capability. Without it, the **Install simulation agents** icon does not show in the top bar. - The endpoint runs on an x86_64 or ARM64 processor, with the service manager of its system: the Service Control Manager on Windows, systemd on Linux, launchd on macOS. 32-bit systems are not supported. - The endpoint supports TLS 1.2 or later. On Linux and macOS, `curl` and `openssl` are installed: the installer stops if `openssl` is missing, because it checks the signature of the agent before installing it. - The endpoint reaches the platform over HTTPS, outbound only. The agent uses `openaev.agent-url`, or `openaev.base-url` when the first is not set. On Windows, the install command also downloads its installer from `openaev.base-url`. Both keys are in the [`openaev` block](https://filigran.io/docs/reference/openaev/configuration/#openaev) of the configuration. - For an advanced installation, you hold administrator rights on the endpoint: Administrator on Windows, root or `sudo` on Linux and macOS. | System | Supported | Best effort | | --- | --- | --- | | Windows | Windows 10 and 11, Windows Server 2019 and 2022 | Windows 8 and 8.1, Windows Server 2016 and 2012 R2 | | Linux | Distributions that run systemd, such as Debian and Ubuntu | | | macOS | Apple silicon (ARM64) | Intel (x86_64) | Best effort means the agent may work but the system is not validated: fixes for it are not guaranteed. Windows 7, Windows Server 2008 and Linux distributions without systemd are not supported. ![The Agents page: the Install OpenAEV Agent card, for Windows, Linux and macOS.](https://filigran.io/docs/shots/439ff7dc4ed193285c610f571b474e880daa67cae6bfdd44cdc41ecd5646264f.webp) ## Choose how the agent runs {#choose-how-the-agent-runs} The installation mode decides when the agent runs and with which rights the actions run. A simulation measures what an attacker could do with those rights, so pick the mode that matches the attacker you simulate. | Mode | On screen | Runs | Actions run with | | --- | --- | --- | --- | | Session | **Standard Installation** tab | In the background, while the user who installed it is logged in | The rights of that user. On Windows, administrator rights when you install from an elevated PowerShell prompt | | User service | **Advanced Installation** tab, **Install Agent as User** | As a service, from the moment the endpoint starts | The rights of the user you name in the command | | System service | **Advanced Installation** tab, **Install Agent as System** | As a service, from the moment the endpoint starts | SYSTEM on Windows, root on Linux and macOS | On macOS, only the system service is available. You can install several agents on one endpoint, one per mode and user, for example a session agent of a standard user next to a system service. Each one shows on the endpoint's page in OpenAEV, and an inject runs on each of them, so you compare what each level of rights lets an attacker do. ## Install the agent {#install-the-agent} 1. In the top bar, click the **Install simulation agents** icon. The **Agents** page shows a card for each executor you can install from. 2. Click **Install OpenAEV Agent**. 3. On **Choose your platform**, click **Install Windows agent**, **Install Linux agent** or **Install MacOS agent**. 4. On **Installation Instructions**, choose the **Standard Installation** or the **Advanced Installation** tab. In **Advanced Installation**, choose **Install Agent as User** or **Install Agent as System**. 5. Click **Copy** to copy the command, or **Download** to save it as `openaev.ps1` or `openaev.sh`. The command carries the installer token of your tenant: treat it as a secret. 6. For **Install Agent as User**, replace the placeholders of the command with the account the agent runs as: `-User USER -Password PASSWORD` on Windows, with the domain in the user name, and `--user USER --group GROUP` on Linux. 7. Run the command on the endpoint: - Windows, **Standard Installation**: in a PowerShell prompt of the user. An elevated prompt gives the agent administrator rights. - Windows, **Advanced Installation**: in a PowerShell prompt run as administrator. For **Install Agent as User**, the account needs the **Log on as a service** right first. - Linux and macOS, **Standard Installation**: in a terminal of the user. The command ends with `| sh`. - Linux and macOS, **Advanced Installation**: in a terminal of an account that can use `sudo`. The command ends with `| sudo sh`. The installer checks the signature of the agent, refuses an older version than the one installed, installs the agent in its folder and starts it. The agent then registers with OpenAEV. | System | Mode | Folder | Service or process | | --- | --- | --- | --- | | Windows | Session | `$HOME\.openaev\OAEVAgent-Session-`, or `OAEVAgent-Session-Administrator-` from an elevated prompt | Process `openaev-agent.exe`, started at logon | | Windows | User service | `$HOME\.openaev\OAEVAgent-Service-` | Service `OAEVAgent-Service-` | | Windows | System service | `C:\Program Files (x86)\Filigran\OAEV Agent` | Service `OAEVAgentService` | | Linux | Session | `$HOME/.local/openaev-agent-session` | User unit `openaev-agent-session` | | Linux | User service | `~/.local/openaev-agent-service-` | Unit `-openaev-agent` | | Linux | System service | `/opt/openaev-agent` | Unit `openaev-agent` | | macOS | System service | `/opt/openaev-agent` | Launch daemon `io.filigran.openaev-agent` | `` is the user name without characters such as `\` and `/`. ![The Standard Installation tab of the OpenAEV Agent for Linux: the agent runs as a session of the user, and the command fetches the installer with the installer token and pipes it to sh, with Copy and Download.](https://filigran.io/docs/shots/4b91ac97496d564d911f427e0c6ed5cac544d6750c8787c62da598d2537092b9.webp) ## Check that the endpoint enrolled {#check-that-the-endpoint-enrolled} Open **Assets**. The **Endpoints** list shows the endpoint with **OpenAEV Agent** in its **Executors** column. Open the endpoint: each of its agents shows its **Privilege** (**Admin** or **Standard**), its **Deployment** (**Session** or **Service**), its **Version** and when it was **Last Seen**. An agent that has not reached the platform for one hour shows as inactive, and injects skip it. If the endpoint does not show, see [Troubleshoot an agent](#troubleshoot-an-agent). ![The page of fd-paris-01 with its OpenAEV agent: running as the Windows system account, Admin privilege, Service deployment, version 2.4.0, seen moments ago and Active.](https://filigran.io/docs/shots/7e19a3d882840c9f11d4236f397bad8e14642b57df56e783be00ade510f122d5.webp) ## Add the antivirus exclusion {#add-the-antivirus-exclusion} Each inject runs in its own folder under `runtimes`, in the folder of the agent. Exclude this `runtimes` folder, and only this one, from your antivirus and EDR scans, for example `C:\Program Files (x86)\Filigran\OAEV Agent\runtimes` for a system service on Windows. The implant then starts and reports its results, while the files and commands of the attack actions stay visible to your tools: they are written elsewhere, under `payloads`, so detecting and blocking them is what the simulation measures. On Windows, the command that starts an implant also creates two Windows Defender Firewall rules for the implant's executable, `Allow OpenAEV Inbound` and `Allow OpenAEV Outbound`, replacing those of the previous implant. If a group policy manages the firewall rules of your endpoints, expect these two names in it. ## Install behind a proxy {#install-behind-a-proxy} Set `HTTP_PROXY` and `HTTPS_PROXY` on the endpoint before you run the command: as system variables, or in the same terminal session. For a service, the account of the service needs them too. The agent uses them only when `openaev.with-proxy` is `true` on the platform at the moment you copy the command. When the endpoint does not trust the platform's certificate, such as a certificate of an internal authority, set `openaev.unsecured-certificate` to `true` on the platform, then copy the command again. Both keys are in the [`openaev` block](https://filigran.io/docs/reference/openaev/configuration/#openaev). ## Keep agents running well {#keep-agents-running-well} | Setting | Default | Effect | | --- | --- | --- | | `executor.openaev.agent.max-simultaneous-jobs` | `5` | Jobs an agent runs at the same time, so a simulation does not overload the endpoint | | `executor.openaev.agent.auto-update-enabled` | `true` | When `false`, the platform stops sending upgrade jobs to its agents. It takes effect with an active Enterprise Edition license only | | `openaev.agent.queue-threshold` | `0` | Pending jobs above which an agent counts as overloaded. `0` turns the check off | The first two are in the [`executor.openaev` block](https://filigran.io/docs/reference/openaev/configuration/#executor-openaev), the third in the [`openaev.agent` block](https://filigran.io/docs/reference/openaev/configuration/#openaev-agent). The agent also cleans its folders on its own: it stops the implants that run too long, then deletes their folders. Its thresholds are in the `[cleanup]` section of `openaev-agent-config.toml`, in the agent's folder. ## Protect the installer token {#protect-the-installer-token} The command embeds the installer token of your tenant. It belongs to the tenant's service account, and lets the agent and its implants fetch their jobs, download the files of an action by their exact ID, send results and download the agent installer. It gives access to nothing else. The **Install agent** capability lets a user read the token, not change it. If the token leaks, a user with **Manage tenant users, groups and roles** rotates it through the API, with `POST /api/agent/installer/openaev/token/rotate`. The rotation cuts off every agent already installed in the tenant: install them again with a new command. ## Uninstall the agent {#uninstall-the-agent} Uninstalling the agent does not remove the endpoint from OpenAEV. Uninstall the agent first, since a running agent registers again and creates the endpoint again. **Windows** 1. For a session installation, stop the agent: ```powershell Get-Process openaev-agent | Where-Object { $_.Path -eq "$HOME\.openaev\OAEVAgent-Session-\openaev-agent.exe" } | Stop-Process -Force ``` 2. Run `uninstall.exe` from the agent's folder and confirm. It removes the service or the startup task, then the folder. For a service, run it as administrator. 3. For a user service, withdraw the **Log on as a service** right from the account if it no longer needs it. **Linux** Session: ```bash systemctl --user stop openaev-agent-session systemctl --user disable openaev-agent-session systemctl --user daemon-reload systemctl --user reset-failed rm -rf $HOME/.local/openaev-agent-session ``` User service, with the user name in place of ``: ```bash sudo systemctl stop -openaev-agent sudo systemctl disable -openaev-agent sudo systemctl daemon-reload sudo systemctl reset-failed sudo rm -rf ~/.local/openaev-agent-service- ``` System service: ```bash sudo systemctl stop openaev-agent sudo systemctl disable openaev-agent sudo systemctl daemon-reload sudo systemctl reset-failed sudo rm -rf /opt/openaev-agent ``` **macOS** ```bash sudo launchctl bootout system /Library/LaunchDaemons/io.filigran.openaev-agent.plist sudo rm -f /Library/LaunchDaemons/io.filigran.openaev-agent.plist sudo rm -rf /opt/openaev-agent ``` Then remove the endpoint: in **Assets**, open the menu of the endpoint and click **Delete**. It takes the **Delete assets** capability. ## Troubleshoot an agent {#troubleshoot-an-agent} The agent writes its log to `openaev-agent.log`, in its folder. Each implant gets its own folder under `runtimes`, with its executable and its own logs. When the endpoint does not show in **Assets**: 1. **The agent runs.** Check the service or the process of the table above, for example `systemctl status openaev-agent` or `Get-Service OAEVAgentService`. 2. **The log shows no registration error.** Look for `Fail registering the agent` in `openaev-agent.log`, followed by its cause. 3. **The endpoint reaches the URL.** The `url` value of `openaev-agent-config.toml`, in the agent's folder, comes from `openaev.agent-url` or `openaev.base-url`. If it is wrong, correct the platform's configuration, then install again with a new command. 4. **You look in the right tenant.** The command carries the tenant you were in when you copied it: the endpoint shows in that tenant only. 5. **The certificate and the proxy are accepted.** See [Install behind a proxy](#install-behind-a-proxy). **Example: Enroll the front-desk workstations of Grand Meridian** Grand Meridian Hotels wants to replay Velvet Harbor's loader on the front-desk workstations of its Paris hotel, the Windows 11 machines where the night auditor Paul Garnier works. The attacker ran with the rights of the workstation, so the validation engineer installs the agent as a system service. The platform engineer first makes sure the workstations reach OpenAEV through the hotel's proxy: ```bash OPENAEV_BASE-URL=https://openaev.example.com OPENAEV_WITH-PROXY=true ``` Then, for each workstation: | Step | Value | | --- | --- | | Executor | **Install OpenAEV Agent** | | Platform | **Install Windows agent** | | Tab | **Advanced Installation**, **Install Agent as System** | | Run in | An administrator PowerShell prompt on `fd-paris-01.grand-meridian.example`, with `HTTPS_PROXY=http://proxy.grand-meridian.example:3128` set as a system variable | | Exclusion in Meridian EDR | `C:\Program Files (x86)\Filigran\OAEV Agent\runtimes` | A minute later, `fd-paris-01` shows in **Assets** with **OpenAEV Agent**, **Admin** and **Service**. The simulation can now target the front-desk workstations, and Meridian EDR sees every PowerShell action of the loader. ## What's next {#what-s-next} - [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/): run actions through an agent you already have. - [Assets](https://filigran.io/docs/openaev/use/targets/assets/): group the endpoints your simulations target. - [How collectors measure what your security tools saw](https://filigran.io/docs/openaev/use/collectors/): read back what your EDR detected. - [OpenAEV configuration reference](https://filigran.io/docs/reference/openaev/configuration/). --- # Check one attack technique with an atomic test > Run a single action of the Threat Arsenal on chosen endpoints, read at once whether it was prevented and detected, and replay it on a schedule to check that a defense keeps working. - URL: https://filigran.io/docs/openaev/use/atomic-testing/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, SOC analysts - Type: How-to guide An atomic test runs one action, such as a PowerShell payload or a phishing email, on the targets you pick, and scores it alone: was it prevented, was it detected. It answers a precise question in minutes, without a scenario: does the new EDR rule block this technique, does this payload work before I add it to a scenario. Scheduled, it replays the same action every day or week, so you know when a defense stops working. To replay a whole attack, build a scenario instead: see [Build a scenario that replays an attack](https://filigran.io/docs/openaev/use/scenarios/build/). **Diagram: An atomic test runs one action of the Threat Arsenal on the targets you pick, once or on a schedule, and each run replaces the results of the previous one** - Pick: Threat Arsenal action (By technique, platform, domain) - Aim: Atomic test (Targets and expectations) - Run: Targets (Endpoints, asset groups, teams), Security tools (EDR, SIEM, gateways) - Score: Results (Prevention, detection, findings) Connections: - Threat Arsenal action → Atomic test: create - Atomic test → Targets: Launch now or schedule - Targets → Security tools: seen by - Security tools → Results: collectors - Results → Atomic test: Relaunch now ## Before you start {#before-you-start} - Your role has **Manage assessment** to create an atomic test, and **Launch assessment** to launch, relaunch or schedule it. **Delete assessment** deletes it. - The action exists in the Threat Arsenal: see [Threat arsenal](https://filigran.io/docs/openaev/use/threat-arsenal/). - The endpoints run an OpenAEV agent or another executor, and a collector reads the security tool to measure. See [OpenAEV agents](https://filigran.io/docs/openaev/use/agents/) and [Collectors](https://filigran.io/docs/openaev/use/collectors/). ## Create and launch an atomic test {#create-and-launch-an-atomic-test} 1. Open **Atomic testings** and click **Create**. The **Create a new atomic test** page lists the actions an atomic test can run. An action whose injector is not registered in your tenant is not listed, since it would fail at launch. 2. Find the action: filter on the left by **Domains**, **Platform**, kill chain phase or author, or search by name or MITRE ATT&CK ID. **Grid view** and **List view** switch the display. 3. Click the action. A panel opens with its **Title**, filled with the action's name. 4. Fill in the targets and the content: the endpoints or asset groups for an action on endpoints, the **Targeted teams** for an email, and the **Inject data** the action needs, such as a command argument. 5. Under **Inject expectations**, keep the expectations to score, such as prevention and detection. 6. Click **Create**. The atomic test opens. 7. Click **Launch now**. The action runs at once. When the action is not ready, for example when a required field is empty, **Configure** shows instead of **Launch now**: it opens the panel to complete it. ![The Create a new atomic test page: the actions of the Threat Arsenal to pick from, with the filters by domain and platform.](https://filigran.io/docs/shots/0b8a910f5d9ddb9f974709f69f6edc8a44e5839a209f2963fc4fea5406a2f130.webp) ## Read the result {#read-the-result} The **Overview** tab scores the test like a simulation: a gauge per axis, and each target with its results. The test is done when every expectation is answered or has expired: 6 hours by default for detection and prevention. See [Read the results](https://filigran.io/docs/openaev/use/simulations/#read-the-results). ![The atomic test Booking database export on booking-db-01: Prevented and Detected by Meridian EDR, its status Error because the EDR killed the payload as it ran, with its start and end dates and its duration.](https://filigran.io/docs/shots/b00b5366eac96c3acbc56511813a354315f460162a77d2a325ab53fee1a7a670.webp) The **Targets** pane lists what the action aimed at, one tab per kind: **Asset groups**, **Teams**, **Assets**, **Persons**, **Agents**, and **Manual targets**. Click a target to read its expectations in **Results by target**. An action that aims at no target, such as an HTTP request, has nothing to list per target: the **Targets** pane reads **This inject has no target. Its results are in the Execution details tab.** Read its expectations and traces there. A network scan such as Nmap or Nuclei can aim at addresses typed by hand instead of assets: **Type of targets** set to **Manual**, and the IP addresses, subnets or hostnames in **Manual targets (comma-separated)**. The **Manual targets** tab lists each of them once, in the order typed. A manual target carries no expectation and no execution trace of its own, since the scan reports for all of them at once: read what it found in the **Findings** tab. - **Execution details**: the expectations of each target, and the traces of the execution on each endpoint, such as the command run and its output. - **Action details**: the payload that ran, for a payload action. - **Findings**: what the action found, such as open ports or credentials. - **Remediations**: the detection rules that would catch the action, for a payload action. It requires the Enterprise Edition. **Atomic testings** lists every test with its **Execution status**, its **Target** and its **Global score**, to see at a glance which techniques your tools handle. ## Relaunch it or run it on a schedule {#relaunch-it-or-run-it-on-a-schedule} - **Relaunch now** runs it again. The new run replaces the previous one: its results are deleted. Tick **Realign expectations to the current action before relaunching** when the action changed in the Threat Arsenal since the test was created. - **Scheduling** opens the same dialog as for a scenario: **Once**, **Hourly**, **Daily**, **Weekly** or **Monthly**, a **Start date** and an **End date (optional)**. The header then reads **Scheduled**, and **Stop** removes the schedule. OpenAEV launches the test a minute before each time, unless the previous run is still waiting to start. To schedule a test through the API, give its recurrence as a Spring cron of six fields, seconds first, read in UTC, such as `0 0 2 * * *`, or as an ISO 8601 period such as `P1D`. OpenAEV refuses another expression, such as a five-field Unix cron, with an error that names these two forms. Each scheduled run replaces the results of the one before. To keep the history of a technique's results, run it in a scheduled scenario instead: each simulation keeps its own results. The menu of the header also offers **Update**, **Duplicate**, the JSON export and **Delete**. **Import JSON**, at the top of **Atomic testings**, imports an exported test. **Example: Check every night that Meridian EDR blocks the Velvet Harbor loader** After the night of 9 January 2026, the SOC of Grand Meridian Hotels added a Meridian EDR rule against the PowerShell loader Velvet Harbor ran on a front-desk workstation. The validation engineer wants to know the night that rule stops working. | Field | Value | | --- | --- | | Action | **Velvet Harbor - booking attachment loader**, the PowerShell (T1059.001) action of the Threat Arsenal that replays the loader | | **Title** | `Velvet Harbor loader on the front desks` | | Asset groups | `Front desk workstations` | | **Inject expectations** | Prevention and detection | | **Scheduling** | **Daily**, **Time** 03:00, from 15 January 2026 | The first run reads **Prevention** 100 and **Detection** 100. On the morning a Meridian EDR update reverts the rule, the **Overview** shows **Not Prevented** on the workstations it reached, and the SOC knows before an attacker does. > **With XTM One: Get a detection rule for what was missed** > > With the Enterprise Edition, the **Remediations** tab of a payload action offers **Generate with AI** when XTM One is connected: an XTM One agent writes a detection rule for the action, for the security platforms that support it. Review it before you deploy it. See [XTM One in OpenAEV](https://filigran.io/docs/xtm-one/use/in-openaev/). ## What's next {#what-s-next} - [Build a scenario that replays an attack](https://filigran.io/docs/openaev/use/scenarios/build/), to add the action to a whole attack. - [Inject results](https://filigran.io/docs/openaev/use/injects/results/), for every part of a result. - [Share simulation results in a report](https://filigran.io/docs/openaev/use/simulations/reports/), with **Atomic testing** as the subject. --- # How a chained scenario works > How a chained scenario runs each step only when the results of the earlier ones allow it, inside the targets and limits you set, and draws the attack path it took. - URL: https://filigran.io/docs/openaev/use/attack-chaining/ - Products: OpenAEV 3.261118.0 - Edition: requires an Enterprise Edition license - For: security validation engineers, SOC managers - Type: Concept A chained scenario runs an attack the way an intruder does: it starts with one step, reads what the step found, and decides from that result which steps come next. A time-based scenario plays a fixed list of injects at fixed times, whatever happens; a chained one only runs lateral movement once a reachable host is found, and only tries an account once one has been harvested. This page explains what a chained scenario is made of, how a run unfolds, and what bounds it. The pages under it walk through each task, and the attack path it draws shows how far an attacker got. ## What a chained scenario is made of {#what-a-chained-scenario-is-made-of} **Diagram: A chained scenario runs an action, records what it found, and lets events decide which actions run next, inside the scope you set** - Scope: Allow and deny lists (What the run may touch), Time and rate limits (How long and how fast) - Logic: Action (A Threat Arsenal action), Event (Conditions on outputs), Next actions (Gated by the event) - Run: Outputs (Ports, hosts, accounts...), Attack path (Endpoints, findings) Connections: - Allow and deny lists → Action: first targets - Action → Outputs: records - Outputs → Event: evaluated by - Event → Next actions: triggers - Next actions → Outputs: adds to - Time and rate limits → Next actions: bounds - Outputs → Attack path: drawn as You choose the type when you create the scenario, or a simulation without a scenario: **Chained scenario** (or **Chained simulation**) instead of **Time-based scenario**. A chained scenario has its own tabs, **Overview**, **Scope**, **Logic**, **Attack Path**, **Execution**, **Findings** and **Statistics**, in place of **Injects** and **Tests**. | Part | What it is | Where you set it | | --- | --- | --- | | **Scope** | The targets the run may touch (the allow list), those it must never touch (the deny list), variables, and the run's limits: a time out and a rate limit | **Scope** tab. See [Set the targets and limits of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/scope/) | | **Action** | A step that runs an action of the Threat Arsenal: a command on an endpoint, a scan, an email | **Logic** tab. See [Choose the actions of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/actions/) | | **Event** | A set of conditions on what the actions found, such as "a port equals 1433". When they hold, the event triggers the actions linked to it | **Logic** tab. See [Build the logic of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/logic/) | | **Attack path** | The graph of what really ran: actions, the endpoints they reached, the findings they produced and the events those findings triggered | **Attack Path** tab. See [Read how far a chained simulation got](https://filigran.io/docs/openaev/use/attack-chaining/attack-path-map/) | Chained scenarios and simulations require the Enterprise Edition: without it, the **Chained scenario** card shows an **EE** chip and opens the Enterprise Edition dialog. See [Editions](https://filigran.io/docs/start/editions/). ![The chained scenario Velvet Harbor path - front desk to booking database, not run yet: its tabs Overview, Scope, Logic, Attack Path, Execution, Findings and Statistics, and the Normal and Autonomous launch buttons.](https://filigran.io/docs/shots/df299f87d63d291fc555fe3d0501ec9ce2adbc8a024efdd31dbba85f70f8c562.webp) ## How a run unfolds {#how-a-run-unfolds} When you launch a chained scenario, OpenAEV creates a simulation and starts its run: 1. The entries of the allow list and the scope variables become the first values of the run: the IP addresses, subnets, domains and endpoints the run may use. 2. The actions that wait on no event start, on the endpoints of the allow list. 3. When an action ends, OpenAEV keeps its outputs: the ports, hosts, accounts or vulnerabilities its output parsers extracted, its execution status and its expectation results. A value that the scope does not allow, such as an IP address of the deny list, is dropped. 4. Every event checks its conditions against those values. An event whose conditions hold triggers the actions linked to it, once for each combination of values they can use. 5. The run ends when no action is left to run, when you stop it, or at its time out. An action runs only when the event before it holds: if no step finds a reachable database server, nothing tries to query one. An action does not run twice with the same values on the same target. The **Execution** tab follows the injects as they move from **Up next** to **In flight** to **Completed**; the list is not known in advance, unlike the injects of a time-based simulation. A launched simulation keeps the logic and the scope it started with: its **Logic** tab is read-only. To change the chain, reset the simulation, or change the scenario and launch it again. ## What keeps a run under control {#what-keeps-a-run-under-control} | Safeguard | What it does | | --- | --- | | **Allow list** | A chained scenario cannot be launched without one: the launch button stays disabled with **A chained scenario requires a defined scope.** Values an action discovers outside of it do not feed the next steps | | **Deny list** | Takes priority over the allow list: a target in both is never reached | | **Simulation time out** | Ends the run after a total duration, one hour for a new scenario. Paused time does not count | | **Simulation rate limit** | Caps how many injects start in a time window, to model a slow attacker or stay under a lockout threshold | | **Read-only logic once launched** | What ran stays the record of what ran | ## Chained scenarios and the alternatives {#chained-scenarios-and-the-alternatives} | You want to | Use | | --- | --- | | Replay a known attack at set times, step by step, whatever the results | A time-based scenario. See [Build a scenario](https://filigran.io/docs/openaev/use/scenarios/build/) | | Make one inject wait for the result of another, in a time-based scenario | Inject chaining. See [Chain injects](https://filigran.io/docs/openaev/use/injects/chaining/) | | Branch on what each step found, reuse its outputs, bound the run by a scope | A chained scenario, this page | | Let an AI plan and adapt the chain toward an objective | An autonomous run of a chained scenario. See [Let AI run a penetration test](https://filigran.io/docs/openaev/use/attack-chaining/autonomous/) | > **With XTM One: Build or drive the chain with XTM One** > > With OpenAEV connected to XTM One, the **AI builder** of a chained scenario writes the logic for you from an objective in plain words, and the **Autonomous** launch lets the XTM One orchestrator drive the run live, adding steps from what it finds. See [Let AI run a penetration test](https://filigran.io/docs/openaev/use/attack-chaining/autonomous/). ## What's next {#what-s-next} - [Set the targets and limits of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/scope/) - [Choose the actions of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/actions/) - [Build the logic of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/logic/) - [Read how far a chained simulation got](https://filigran.io/docs/openaev/use/attack-chaining/attack-path-map/) - [Let AI run a penetration test](https://filigran.io/docs/openaev/use/attack-chaining/autonomous/) --- # Choose the actions of a chained scenario > Pick the Threat Arsenal actions of a chained scenario, configure them, and feed their arguments from variables or from what earlier steps found. - URL: https://filigran.io/docs/openaev/use/attack-chaining/actions/ - Products: OpenAEV 3.261118.0 - Edition: requires an Enterprise Edition license - For: security validation engineers - Type: How-to guide Each step of a chained scenario is an action of the Threat Arsenal, configured for this chain: a command on an endpoint, a scan, an email. What makes it a chained step is where its arguments come from. Instead of a typed value, an argument can read the values that earlier steps found, such as the host a scan reported or the account a credential search returned, so the step runs on what the attack really discovered. This page adds actions to the **Logic** tab and links their arguments. How events decide when they run is in [Build the logic of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/logic/). ## Before you start {#before-you-start} - The Enterprise Edition is active, and the scenario is a **Chained scenario** whose scope is set. See [Set the targets and limits of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/scope/). - Your role has **Manage assessment**. - The actions you need are in the Threat Arsenal, with output parsers when later steps read their results. See [Turn an action's output into findings](https://filigran.io/docs/openaev/use/threat-arsenal/output-parsers/). ## Add an action {#add-an-action} 1. Open the scenario and its **Logic** tab, then click **Add component**. 2. Choose **Action**, "Execute an action with configured parameters". The **Select an action** step lists the Threat Arsenal. 3. Narrow the list with the filters: **Action type** (the injector that runs it), **Platforms**, **Domains**, **Tags**, and **Providing**, the outputs an action produces. A **Compatible output** chip shows when the list was opened to provide a field an event needs; remove the chip to see the whole arsenal. 4. Click the action. The **Configure** step opens. To add several actions at once, check their rows and add them together; you then configure each one on the canvas. 5. Set the **Title** of the step, as it shows on the canvas. 6. Under **Inject data**, set the arguments. They start from the action's default values, which apply unless you change them; **Reset default value** brings them back. 7. Link the arguments that should read earlier results instead of a typed value: see [Feed an argument from earlier steps](#feed-an-argument-from-earlier-steps). 8. Under **Inject expectations**, keep or adjust the expectations of the action, such as **Prevention** and **Detection**. 9. Click **Save**. The action appears on the canvas as a card with its **Type**, its **Tactic**, its **Targets** and the number of triggers it **Waits on**. ![The Select an action step of the Add component drawer, between Choose type and Configure: the Threat Arsenal with its search and filters, the Velvet Harbor actions among the built-in ones, and the Add actions button for a bulk selection.](https://filigran.io/docs/shots/9c8a7bc568a1d57eeccc459185559850167a5c539e47d67b0ada18be006fe0a9.webp) The targets come from the scope: an action that runs on endpoints lists the assets of the allow list under **Initial Source Assets**, and an email lists the allowed teams under **Targeted teams**. Steps further down the chain can reach other targets of the allow list as the run discovers them. ## Feed an argument from earlier steps {#feed-an-argument-from-earlier-steps} **Diagram: A linked argument reads every value of its type from the whole run, or only the values the event before it kept** - Where values come from: Scope variables (Set before the run), Earlier actions (Their outputs) - The run's values: Global pool (Every value of the run), Local pool (Values the event kept) - The action: Linked argument (Limit to Local Scope: one run per value) Connections: - Scope variables → Global pool: seed - Earlier actions → Global pool: outputs - Global pool → Local pool: filtered by the event - Global pool → Linked argument: switch off - Local pool → Linked argument: switch on Every value in a chained run has a type: **Port**, **Host**, **Username**, **CVE**, **Ip subnet** and the other output types of the Threat Arsenal. Linking an argument binds it to one or more of those types, not to a given action: at run time, the argument takes the values of those types that the run holds. 1. In the **Configure** step, next to the argument, click **Link an Output**. 2. Choose one or more types. The argument shows them with a link icon; **Edit links** changes them and **Unlink** brings back the typed value. 3. Choose where the values come from with **Limit to Local Scope**: - Off (the default): every value of these types the run holds, from the scope variables and from every action that ran, in any branch. - On: only the values that the event right before this action kept, the ones that satisfied its conditions. 4. Click **Save**. When an argument has both a typed value and links, the typed value is used as well as the linked ones. The action runs once for each combination of values, and never twice with the same values on the same target. Local scope matters when several branches produce the same type. An event that holds when **Port** equals `445` keeps `445` on its branch: an action after it, with **Limit to Local Scope** on, reads `445` only, while the same action with the switch off also reads the ports every other scan found, and runs once for each. For an event to keep a value, its condition needs a value to compare: **Equals**, **Not equals**, **Contains** or **Not contains**. **Is null** and **Is not null** only check that a value exists, and keep none. ## Check the action {#check-the-action} - The card of the action shows on the canvas, with **Not scoped yet** under **Targets** when the allow list has no target it can use. - Hover a field in the condition builder of an event: its tooltip lists **Actions on the logic flow which produce this input:**, your new action among them when it provides that field. **Example: Query the booking database on the host the scan found** The chain of the night test of Grand Meridian starts on the front-desk workstation `fd-paris-01`. Its third step reaches the booking database server with the shared night auditor account, on the host that the first step found listening on port 1433. | Field | Value | | --- | --- | | Action | **Query the booking database**, a Command Line action of the Threat Arsenal: `sqlcmd -S #{db_host} -E -Q "SELECT name FROM sys.databases"` | | **Title** | `Query the booking database from the front desk` | | Argument `db_host` | **Link an Output**: **Host**, with **Limit to Local Scope** on | | **Inject expectations** | **Prevention** and **Detection**, for Meridian EDR | With local scope on, the query runs only on `10.20.8.15`, the host the event **Booking database reachable** kept, and not on the other hosts the scan saw in `10.20.8.0/24`. > **With XTM One: Let the AI choose the actions** > > With OpenAEV connected to XTM One, the **AI builder** of a chained scenario picks the actions from your Threat Arsenal and links their arguments for you, from an objective in plain words. When a technique needs an action you do not have, it says which integration would provide it. See [Let AI run a penetration test](https://filigran.io/docs/openaev/use/attack-chaining/autonomous/). ## What's next {#what-s-next} - [Build the logic of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/logic/): gate each action with an event. - [Set the properties of an action](https://filigran.io/docs/openaev/use/threat-arsenal/action-properties/): the arguments an action takes. - [Read how far a chained simulation got](https://filigran.io/docs/openaev/use/attack-chaining/attack-path-map/) --- # Read how far a chained simulation got > Follow a chained run live, then read its attack path graph to see which endpoints an attack reached, what it found, and which endpoint to fix first. - URL: https://filigran.io/docs/openaev/use/attack-chaining/attack-path-map/ - Products: OpenAEV 3.261118.0 - Edition: requires an Enterprise Edition license - For: security validation engineers, SOC managers - Type: How-to guide Once a chained simulation runs, its **Attack Path** tab rebuilds what really happened: which endpoints the chain reached, in what order, what it found on each, and which finding triggered the next step. It answers the question a chained scenario asks, how far an attacker got, and points at the one endpoint to fix that closes the most routes. This page follows a run on the **Execution** tab, then reads the graph. The chain it reads is the one built in [Build the logic of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/logic/). ## Before you start {#before-you-start} - The Enterprise Edition is active, and the simulation is a chained one that has started. The **Attack Path** tab shows only for chained simulations. - Your role has **Access assessment** to read the simulation. - The simulation ran enough steps to have reached endpoints and produced findings. ## Follow the run on the Execution tab {#follow-the-run-on-the-execution-tab} While the chain runs, the **Execution** tab is where it happens. It shows: - A header with the elapsed time and the counts of **Processed injects**, **Pending injects**, **Execution errors** and **Pending validations**. - An **Attack timeline** of when each inject fired. - A board where injects move from **Up next** to **In flight** to **Completed** as the engine readies and resolves them. Unlike a time-based simulation, the full list is not known in advance. ![The Execution tab of the live run Velvet Harbor path - booking web front to database: 2 processed injects out of 4, the attack timeline of the OpenAEV implant, and the board with the discovery and the export Completed on one endpoint and still In flight on the other.](https://filigran.io/docs/shots/c824dc46d0cb1105109d2c7ba1eb0790e723bbceeaff1aadfe6c79931124a06d.webp) If an action you expect never shows, its event's conditions are not met yet (see [Build the logic of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/logic/)), or the run hit its time out or rate limit (see [Set the targets and limits of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/scope/)). Once enough actions have run, open the **Attack Path** tab. ## Read the attack path graph {#read-the-attack-path-graph} **Diagram: The attack path of a chained run links each action to the endpoints it reached and to what it found, and each finding to the action it triggered** - Actions: List the connections (Neither prevented nor detected), Look for saved credentials (Detected by Meridian EDR), Query the booking database (Neither prevented nor detected) - Targets: fd-par-07 (Chokepoint) - Findings: 10.20.8.15:1433 (Ports scan), GRANDMERIDIAN\night.audit (Username) Connections: - List the connections → fd-par-07: ran on - Look for saved credentials → fd-par-07: ran on - Query the booking database → fd-par-07: ran on - fd-par-07 → 10.20.8.15:1433: found - fd-par-07 → GRANDMERIDIAN\night.audit: found - 10.20.8.15:1433 → Look for saved credentials: event link - GRANDMERIDIAN\night.audit → Query the booking database: event link ![The Attack Path tab of the same run: 2 targets reached, 1 captured credential, 1 detected CVE, 2 port scans and 1 top chokepoint; the graph runs from the discovery action through booking-web-01 to its four findings, the finding 10.20.8.15:5432 triggering Booking database reachable and the export action, booking-db-01 in green and booking-web-01 in orange.](https://filigran.io/docs/shots/5dc3f06b2c5aca7308cbf8367091e0d9ff7a40b4cc009af26f8082a8af0fb861.webp) The graph is built from what really executed. It joins: | Shape | What it is | | --- | --- | | Square (**Injector**) | An executed action. Click it for the inject it ran and its results | | Dashed circle | A cluster of endpoints reached at that point. Click to expand into single endpoints | | Pill | A cluster of findings. Click to expand | | Circle | A single finding, or a single endpoint once expanded | Colors give the verdict at a glance: | Color | Meaning | | --- | --- | | Green | Prevented on every endpoint | | Orange | Detected, or prevented or detected on only some of the endpoints | | Red | Neither prevented nor detected | | Highlighted node | A chokepoint, the most exposed endpoint | | Highlighted edge | An **Event link**: a finding that triggered the next action | | Primary color path | The path you selected by clicking a node or a table row | A **Legend** at the bottom left recalls the shapes and colors. It starts collapsed and expands on click. ## Find what to fix first {#find-what-to-fix-first} The summary cards above the graph count what the run found: **Targets reached**, **Discovered Shares**, **Captured Files**, **Captured Credentials**, **Discovered Users**, **Detected CVEs**, and a card for any other finding type the run produced. The **Top chokepoints** card ranks the most exposed endpoints. 1. Narrow the graph with the search box and the filters: kill chain phase, finding type, criticality. 2. Open the **Top chokepoints** card and pick the top endpoint. The graph highlights every action, event and finding that led to it. 3. Follow its path and open the **Injector** node of the action that reached it, to start fixing the cause: patch the host, change a control, add a detection rule. 4. To work from a finding instead, pick one, such as a captured credential: the graph highlights the path that produced it, and the action that produced it. A chokepoint is scored by its finding count weighted by the endpoint's asset criticality: **VERY_HIGH** counts four times a **LOW** or unset one, **HIGH** three times, **MEDIUM** twice. Because many paths cross a chokepoint, fixing it closes the most routes at once. The card holds the same explanation. Switch between the **Graph** and the **Table** view at the top right. **Export as PNG** downloads the whole graph, whatever is on screen, for a report. From a **Finding** node, the **Findings** tab of the simulation holds every finding across the run: see [Findings](https://filigran.io/docs/openaev/use/findings/). ## What you see when it worked {#what-you-see-when-it-worked} - The graph shows at least one action, the endpoints it reached and the findings it produced. - A red or orange action is one your controls did not stop: the attacker got that far. - The **Top chokepoints** card names the endpoint whose findings, weighted by criticality, are the heaviest. **Example: How far Velvet Harbor's path reached the booking database** On 12 April 2026, the validation engineer of Grand Meridian launches `Velvet Harbor path - booking web front to database`, scoped to the two booking servers. On the **Attack Path** tab, a few minutes later: - `Discover the booking web front` ran on `booking-web-01` and on `booking-db-01`, the two Linux endpoints of the allow list. On `booking-web-01` it found two **Ports scan** findings, among them `10.20.8.15:5432`, the PostgreSQL port of the booking database, a **Credentials** finding, the account of the booking application, and the CVE `CVE-2021-42013` of its Apache. `booking-web-01` is orange: Meridian EDR detected the action there without blocking it. - Because **Booking database reachable** held on `10.20.8.15:5432`, an **Event link** leads to `Export the booking database`. It ran on both servers; on `booking-db-01` Meridian EDR blocked it, and the endpoint is green. - `booking-web-01` is the **chokepoint**: its four findings, weighted by its criticality, carry the whole path. Hélène Marchetti's team reads it as the gap to close first: patch its Apache, move the database password out of its configuration, and extend the prevention of the booking database to the web front. ## What's next {#what-s-next} - [Findings](https://filigran.io/docs/openaev/use/findings/): every finding of the run, across simulations. - [Build the logic of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/logic/): adjust the chain from what you saw. - [Set the targets and limits of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/scope/): the scope and limits that bounded the run. - [Let AI run a penetration test](https://filigran.io/docs/openaev/use/attack-chaining/autonomous/): let an AI find paths for you. --- # Let AI run a penetration test > Give an objective in plain words and let the XTM One orchestrator plan, run and adapt a chained attack against your authorized scope, with proof of what it reached. - URL: https://filigran.io/docs/openaev/use/attack-chaining/autonomous/ - Products: XTM One 1.261119.1, OpenAEV 3.261118.0 - Edition: requires an Enterprise Edition license - For: security validation engineers, AI agent builders - Type: How-to guide An autonomous run is an AI-driven penetration test. You give an objective in plain words, such as "from the front-desk workstation, reach the booking database server", and the orchestrator in XTM One turns it into a chain, runs it against your authorized scope, reads what it finds, and decides the next step on its own, until it reaches the objective or needs you. It is a way to launch a chained scenario, not a different kind: you let the AI build and drive the logic instead of authoring it. This page runs your first autonomous attack. How a chained scenario works by hand is in [How a chained scenario works](https://filigran.io/docs/openaev/use/attack-chaining/). ## Before you start {#before-you-start} | Requirement | Why | | --- | --- | | **Enterprise Edition** | Autonomous attack chaining is an AI feature, Enterprise Edition like every AI feature of OpenAEV. See [Editions](https://filigran.io/docs/start/editions/) | | **OpenAEV connected to XTM One** | The orchestrator runs in XTM One. OpenAEV runs the steps, enforces the scope and shows the run. See [Connect the modules](https://filigran.io/docs/deploy/configure/connect-modules/) | | **Manage assessment**, and **Launch assessment** to start a run | The run is created and launched like any chained scenario | | **Installed injectors and actions** | The AI can only run techniques your Threat Arsenal supports. A missing one becomes advice, not a silent failure | The **Autonomous** button and the **AI builder** appear only when XTM One is connected and the Filigran AI terms are accepted. Without the Enterprise Edition, they show an **EE** chip and open the Enterprise Edition dialog. ## How an autonomous run works {#how-an-autonomous-run-works} **Diagram: In an autonomous run, the orchestrator in XTM One decides each step, and OpenAEV runs it inside the scope and sends back what it found** - You: Objective and scope (Set at launch), Directives and answers (While it runs) - XTM One: Autonomous orchestrator (Plans and decides), Specialist agents (Payloads, recon...) - OpenAEV: Chained simulation (Runs the steps in scope), Decision timeline (Decisions, proofs, gaps) - Your environment: Endpoints in scope (OpenAEV agents) Connections: - Objective and scope → Autonomous orchestrator: launch - Directives and answers → Autonomous orchestrator: steers - Autonomous orchestrator → Specialist agents: consults - Autonomous orchestrator → Chained simulation: adds and runs steps - Chained simulation → Endpoints in scope: actions - Chained simulation → Autonomous orchestrator: outputs, findings - Autonomous orchestrator → Decision timeline: records The run splits across the two platforms: - **OpenAEV** holds the run, executes its injects through a chained simulation, enforces the scope, and shows the live attack path and the decision timeline. - **XTM One** hosts the orchestrator, which plans the attack, decides each step, calls back into OpenAEV to run it, reads the results, and consults the specialist agents you allow. The orchestrator streams what it does to a **decision timeline** beside the graph. Each entry has a type: | Entry | What it is | | --- | --- | | **Narration** | Free-form reasoning as it thinks | | **Decision** | A choice it made: a technique, a target, a pivot | | **Action** | A call into OpenAEV: recon, launch an inject, read the scope | | **Handover** | A switch between its sub-agents | | **Agent delegation** | Consulting a specialist agent, such as the payload creator | | **Capability gap** | No installed action can run a technique it needs | | **Question** | It is blocked and asks you; the run waits for your answer | | **Proof** | A confirmed compromise, kept as evidence for the report | | **Directive** | A steering instruction you sent that it applied | | **Status** | A change of the run's status | A run moves through **Created**, **Running**, **Waiting for input** (it asked a question), then **Completed**, **Failed** or **Canceled**. A build-only session uses **Planning** then **Plan ready**. ## Launch an autonomous attack {#launch-an-autonomous-attack} There are three ways in, all opening the same drawer, an **objective**, the **agents** the orchestrator may consult, and an **allow and deny scope**. Choose how much you want to set before anything runs. 1. **Create the scenario.** From the scenarios list, click **Create scenario**, pick **Chained scenario**, and turn on **Generate with AI**. Name it and create it: it opens with the AI builder drawer already open. 2. **Set the objective.** Pick a ready-made objective from the gallery, such as **Reach the Domain Controller** or **Prove Data Exfiltration**, or write your own in **Objective (free text)**. An **Environment** objective lets the AI find its own targets; a **Target** objective needs one, and the AI asks for it if you leave the scope empty. 3. **Choose the agents and the time budget.** Keep the built-in **OpenAEV Payload Creator** on so the orchestrator can build payloads on demand, add any agent of your XTM One, and set the **Timeout (hours)**, the ceiling of the run. 4. **Scope the perimeter.** Add the targets to the **Allow list** and the carve-outs to the **Deny list**, which always wins. Leave them empty and the AI asks which targets are in scope before it attacks. 5. **Build or launch.** - **Build** writes the chain onto the scenario's **Logic** tab without running anything. You review and edit it, then launch it yourself, in **Normal** or **Autonomous** mode. On a scenario that already has logic, this reads **Rebuild with AI**, with a choice between **Refine the existing logic** and **Rebuild from scratch**. - **Autonomous** launches a live run at once: the orchestrator seeds itself with whatever logic the scenario holds and drives it, adapting from what it finds. - **Save** keeps the objective, agents and scope on the scenario to build or launch later. ![The Launch in autonomous mode drawer on its Objective step, before the Allow list and Deny list steps: the gallery of ready-made objectives, from Reach the Domain Controller to Assumed-Breach Assessment, above the Objective (free text) field.](https://filigran.io/docs/shots/fb9f8a94445053aee5d08bec361b59f7041c4c2a6c768bbf56a5e75f133d032a.webp) The compact **AI builder** button on any chained scenario opens the same drawer to **Save** or **Build**. The **Autonomous** button next to **Normal** opens it to **Launch**. ## Watch, steer and review {#watch-steer-and-review} While the run is live, the scenario's page is its cockpit: the overview, the live attack path and an always-open reasoning panel, with a stop control. The manual scope and logic are read-only, since the AI owns them. - **Steer it.** Send a directive, such as "focus on the booking network" or "avoid the payment gateway": the orchestrator applies it on its next cycle, as a **Directive** entry, without stopping. You can also adjust the scope or the rate limit live. - **Answer a question.** When it reaches **Waiting for input**, answer in the panel to unblock it. - **Read the proof.** On **Completed**, the **Proof of exploitation** panel lists every confirmed compromise. A proof counts only when at least one finding backs it; one without a finding is flagged as unverified. The capability gaps recorded along the way show beside the proofs. **Export report** downloads the run as a Markdown file. A slow step, such as a phishing email that waits for a click, does not block the run: the orchestrator moves on and folds the result back in when it resolves. ## What you see when it worked {#what-you-see-when-it-worked} - The decision timeline fills with decisions, actions and, when the AI proves access, **Proof** entries. - The attack path graph grows live as the orchestrator runs steps. - The run reaches **Completed**, with a numbered **Proof of exploitation** panel and, where techniques were missing, a list of capability gaps with the integration that would close each one. **Example: Let the AI reach the booking database of Grand Meridian** After Velvet Harbor's loader ran on the front-desk workstation `fd-paris-01`, the validation team asks how far an attacker could go from there toward the booking database server. | Step | Value | | --- | --- | | **Create scenario** | **Chained scenario**, **Generate with AI** on, name `Velvet Harbor path - front desk to booking database` | | **Objective** | Free text: "Starting from the front-desk workstation in scope, reach and prove access to the booking database server. Record every hop as proof." | | **Agents** | **OpenAEV Payload Creator** on | | **Timeout** | 4 hours | | **Allow list** | `fd-paris-01` and the subnet `10.20.8.0/24` | | **Deny list** | `10.20.8.40`, the payment gateway | The team clicks **Autonomous**. The timeline shows recon from `fd-paris-01`, a **Decision** to test the saved front-desk credential, a **Proof** when `MERIDIAN\night.audit` opens the booking database on `10.20.8.15`, and a **Capability gap** where a technique needed an injector they have not installed. The run reaches **Completed**; Hélène Marchetti's team exports the report as the evidence that the single saved credential on the front desk is the hop to close. > **With XTM One: The orchestrator and its agents** > > The orchestrator and the specialist agents it consults are XTM One agents. Which agents it may use by default, and how much each may create while it investigates, is set per tenant. See [Configure autonomous attack chaining](https://filigran.io/docs/openaev/configure/autonomous-attack/). ## What's next {#what-s-next} - [Configure autonomous attack chaining](https://filigran.io/docs/openaev/configure/autonomous-attack/): objectives, the specialist agents and steering a live run. - [How a chained scenario works](https://filigran.io/docs/openaev/use/attack-chaining/): the chain an autonomous run builds on. - [Read how far a chained simulation got](https://filigran.io/docs/openaev/use/attack-chaining/attack-path-map/): the attack path the run draws. --- # Build the logic of a chained scenario > Gate each action of a chained scenario with an event whose conditions read what earlier actions found, and check on the canvas that every condition can be met. - URL: https://filigran.io/docs/openaev/use/attack-chaining/logic/ - Products: OpenAEV 3.261118.0 - Edition: requires an Enterprise Edition license - For: security validation engineers - Type: How-to guide The logic of a chained scenario is the graph on its **Logic** tab: actions, and the events that decide when each action runs. An event is a set of conditions on what the earlier actions found, such as "a port equals 1433" or "an account name contains `night.audit`". When its conditions hold, it triggers the actions linked to it. With events, a step runs only when the attack really got there, the way an intruder decides the next move from the last one. This page builds events, links them to actions and reads the canvas. Adding the actions themselves is in [Choose the actions of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/actions/). ## Before you start {#before-you-start} - The Enterprise Edition is active, and the scenario is a **Chained scenario**. - Your role has **Manage assessment**. - The canvas holds the actions you want to chain. The actions whose results an event reads produce outputs: their output parsers extract typed values. See [Turn an action's output into findings](https://filigran.io/docs/openaev/use/threat-arsenal/output-parsers/). ## How actions and events link {#how-actions-and-events-link} **Diagram: From the front-desk workstation, a connection to the database server leads to a saved account, and the account to a query of the booking database** - Discovery: List the connections (netstat on fd-par-07) - Event: Booking database reachable (Port equals 1433) - Credential access: Look for saved credentials (cmdkey /list) - Event: Front-desk account saved (Username contains night.audit) - Collection: Query the booking database (sqlcmd on the host found) Connections: - List the connections → Booking database reachable: provides Port - Booking database reachable → Look for saved credentials: triggers - Look for saved credentials → Front-desk account saved: provides Username - Front-desk account saved → Query the booking database: triggers - A link always goes from an event to an action: the event gates the action. Nothing links an action to an event; an event reads the outputs of every action that ran. - An action that no event gates starts at the launch, as soon as the values its linked arguments need exist. - An action can wait on several events: its card shows how many under **Waits on**. - The fields an event can check come from the output types of the Threat Arsenal, not from the canvas: you can write a condition on a field that no action produces yet. The canvas then warns you, since such an event can never hold. ![The Logic tab of the chained scenario Velvet Harbor path - front desk to booking database, before its first component: No components yet, and the Add component button that starts the canvas.](https://filigran.io/docs/shots/9680b272690bc09d6b805c88f7a483dddc40f1179e0d0f247855d047e3919c45.webp) ## Add an event {#add-an-event} 1. On the **Logic** tab, click **Add component**, then choose **Event**, "Define conditions to trigger the next actions". 2. Set its **Name** and, optionally, a **Description**. 3. Under **Trigger Conditions**, set the first condition: - **Field to Check**: the output to inspect, such as **Port**, **Username** or **CVE**. Hover a field to see the **Actions on the logic flow which produce this input:**. **Action output** is the raw output of the actions, for a keyword that no output parser extracts. - **Operator**: **Equals**, **Not equals**, **Contains**, **Not contains**, **Is null** or **Is not null**, and on numeric fields **Greater than**, **Greater than or equals**, **Less than** and **Less than or equals**. **Contains** takes a list of values separated by commas and holds when one of them is found. - **Expected Value**: the value to compare, except for **Is null** and **Is not null**. It must fit the field, such as a number for a port, or the form shows an error. The **Aa** toggle makes a text comparison **Case-sensitive**. 4. Click **Add Condition** to add another condition to the group, and set the group's operator: **And** holds when every condition holds, **Or** when one does. 5. To combine groups, click **Add Condition Group** and choose **And** or **Or** between the groups: an **Or** between two **And** groups reads "(A and B) or (C and D)". 6. Click **Add event**. The event appears on the canvas. ## Gate an action with the event {#gate-an-action-with-the-event} 1. On the event's card, drag its right handle onto the action it should trigger. Or click its **+**, "Add an action gated by this trigger", to pick a new action that the event gates from the start. 2. Repeat for each action the event triggers. A solid link joins the event to each action. To change an event, open it from its card: the form shows **Update event**. Deleting an event or an action removes its links. ## Check that every condition can be met {#check-that-every-condition-can-be-met} When an event checks a field that no action on the canvas produces, a **Warning** banner names it: Event "Booking database reachable" **references field:** Port **which is** **not provisioned by any action.** 1. In the banner, click **Add Compatible Action**. The action list opens with a **Compatible output** chip, showing only the actions that provide the missing field. 2. Select one or more actions and add them. They land on the canvas without any link, and the warning clears. 3. Configure the new action, and gate it with the event that should come before it, if any. The banner only checks that some action provides the field. Whether that action runs before the event is the graph you draw. ## Read the canvas {#read-the-canvas} | On the canvas | What it means | | --- | --- | | Solid link | A saved link: the event triggers the action. The only links the run follows | | Dashed link | Drawn when you select an event: from every action that produces a field its conditions read. A hint, never saved | | Dimmed cards | Outside the path of the selected event: its providers, the event and the actions it triggers stay lit | | **Waits on** | The number of triggers that gate an action | | **Not scoped yet** | The action has no target the allow list can give it | ![The Logic canvas of the chained scenario Velvet Harbor path - booking web front to database: the action Discover the booking web front under Credential Access, with 1 target and 8 outputs, the event Booking database reachable, Port equals 5432, and its solid link to the action Export the booking database, with 1 target and 1 trigger.](https://filigran.io/docs/shots/3ce7216531843345da433133bb794f59beb135b8b39f8d15cec7c362fe3c873c.webp) The canvas groups the cards by MITRE ATT&CK tactic, or in chain order with **Switch to chain layout**. **Auto-organize** rearranges cards you moved, and **Fit to view** brings the whole graph back on screen. Once a simulation is launched, its logic is read-only: **This simulation has been launched. Its logic map is read-only. Reset the simulation to edit it, or update the scenario and run it again.** **Example: From the front desk to the booking database** The night test of Grand Meridian asks how far an attacker on the front-desk workstation `fd-paris-01` gets toward the booking database server. Its logic has three actions, all user-created Command Line actions of the Threat Arsenal, and two events: | Component | Field | Value | | --- | --- | --- | | Action | **Title** | `List the connections of the front desk`, runs `netstat -ano -p TCP` on `fd-paris-01`; its output parser extracts **Ports scan** values | | Event | **Name** | `Booking database reachable` | | | Condition | **Port** **Equals** `1433` | | | Gates | `Look for saved booking credentials` | | Action | **Title** | `Look for saved booking credentials`, runs `cmdkey /list`; its output parser extracts **Username** values | | Event | **Name** | `Front-desk account saved` | | | Conditions | **Username** **Contains** `night.audit` **And** **Host** **Is not null** | | | Gates | `Query the booking database from the front desk` | | Action | **Title** | `Query the booking database from the front desk`, its `db_host` argument linked to **Host** with **Limit to Local Scope** on | If Meridian EDR blocks the credential search, the second event never holds and the query never runs: the attack path stops at the front desk. > **With XTM One: Let the AI write the logic** > > With OpenAEV connected to XTM One, the **AI builder** button of a chained scenario writes the actions and events for you from an objective, such as "from the front-desk workstation, reach the booking database server". Nothing runs while it builds: you review the canvas, change what you need, then launch. See [Let AI run a penetration test](https://filigran.io/docs/openaev/use/attack-chaining/autonomous/). ## What's next {#what-s-next} - [Read how far a chained simulation got](https://filigran.io/docs/openaev/use/attack-chaining/attack-path-map/) - [Set the targets and limits of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/scope/) - [Choose the actions of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/actions/) --- # Set the targets and limits of a chained scenario > Fill the allow and deny lists of a chained scenario, add the variables its actions reuse, and bound the run with a time out and a rate limit. - URL: https://filigran.io/docs/openaev/use/attack-chaining/scope/ - Products: OpenAEV 3.261118.0 - Edition: requires an Enterprise Edition license - For: security validation engineers - Type: How-to guide The scope of a chained scenario says what its run may touch and how far it may go. A chained run starts actions on its own, as its events hold, so the scope is what keeps it on the endpoints and networks you are authorized to test: an allow list of targets, a deny list that always wins, variables the actions reuse, and a time out and a rate limit. This page fills the **Scope** tab. If you are new to chained scenarios, read [How a chained scenario works](https://filigran.io/docs/openaev/use/attack-chaining/) first. ## Before you start {#before-you-start} - The Enterprise Edition is active, and the scenario was created as a **Chained scenario**. - Your role has **Manage assessment**. Picking assets and asset groups from the inventory takes **Access assets**; picking teams and persons takes **Access teams & persons**. - The endpoints the actions run on have an OpenAEV agent. See [OpenAEV agents](https://filigran.io/docs/openaev/use/agents/). ## How the scope decides what is reached {#how-the-scope-decides-what-is-reached} **Diagram: An action of a chained scenario reaches a target only when the allow list holds it and the deny list does not** - What you add: Assets and asset groups (Endpoints of the platform), IPs, subnets, domains (Typed or imported from CSV), Teams and persons (For emails and SMS) - Scope: Allow list (At least one entry), Deny list (Always wins) - Actions: Technical actions (Run on endpoints and hosts), Tabletop actions (Reach people) Connections: - Assets and asset groups → Allow list: add - IPs, subnets, domains → Allow list: add - Teams and persons → Allow list: add - Allow list → Technical actions: assets, IPs, domains - Allow list → Tabletop actions: teams and persons - Deny list → Technical actions: never reached - Deny list → Tabletop actions: never reached - The allow list holds the targets of the run. Technical actions (commands, scans) use its assets, asset groups, IP addresses, subnets and domains; tabletop actions (emails, SMS) use its teams and persons. - The deny list removes targets from the run, even those inside an allowed asset group or subnet: an entry in both lists is never reached. - A value an action discovers, such as the IP address of a host it scanned, feeds the next steps only when the scope allows it. - A scenario cannot be launched with an empty allow list. Its launch button stays disabled with **A chained scenario requires a defined scope.**, and a health check **Scope definition is required** links back to this tab. The same check blocks a launch when the logic has technical actions and the allow list has no asset, IP address or domain, or tabletop actions and no team or person. ![The Scope tab of the chained scenario Velvet Harbor path - front desk to booking database, before its scope is set: the empty Allow list and Deny list with their Define buttons, the Variables, and the Simulation time out, on at one hour, and the Simulation rate limit, off.](https://filigran.io/docs/shots/77f035f8a4dfeb2f26c8991ea27225e65b89ba38241fc823d0486d97c109ff8f.webp) ## Fill the allow list {#fill-the-allow-list} 1. Open the scenario and its **Scope** tab. Four cards show: **Allow list**, **Deny list**, **Variables**, and the time out and rate limit. 2. On the **Allow list** card, click **Define**. The **Define allowlisted scope** drawer opens. 3. Select the targets on the **Assets**, **Asset groups**, **Teams** and **Persons** tabs. 4. To add targets that are not in the inventory, type IP addresses, subnets in CIDR notation or host names in the box under the tabs, separated by commas, and press Enter. A subnet larger than /24 may not be expanded into its hosts. 5. To add many at once, click **CSV template** to download the expected format, fill it, then click **Add Bulk CSV**. Each row is `type,value`, where the type is `domain`, `ip` or `ip_subnet`; a header row `type,value` is skipped, duplicates are removed, and each invalid row is reported with its row number. 6. Click **Define scope**. The card lists the entries, grouped by kind. ## Carve out the deny list {#carve-out-the-deny-list} 1. On the **Deny list** card, click **Define**. The **Define denylisted scope** drawer opens, with the same tabs and the same manual and CSV entry. 2. Select or type what the run must never touch: a production server inside an allowed subnet, an executive inside an allowed team. 3. Click **Define scope**. ## Add variables {#add-variables} A variable is a value you set once and that actions read instead of a typed value: an account name, a share path, a port. It matters most when no action produces that value, since an event or an argument can then only get it from a variable. Variables are optional. 1. On the **Variables** card, click **Add variable**. 2. In **Create a new variable**, set the **Key**, the **Type**, the **Value** and, optionally, a **Description**. The type is what links the variable to the actions: an argument of type **Username** can read a variable of type **Username**. The value must fit the type, such as a valid IP address for **IPv4**, or the dialog shows an error. Two variables cannot share both key and type. 3. Click **Create**. How actions read variables is in [Choose the actions of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/actions/#feed-an-argument-from-earlier-steps). ## Bound the run {#bound-the-run} | Setting | What it does | Default | | --- | --- | --- | | **Simulation time out** | Stops the whole run after this duration, set in **Hours** (0 to 23) and **Minutes**, whatever is still running. The time a simulation spends paused does not count. Turned off, the run ends only when no action is left to run or when you stop it | On, 1 hour, for a new scenario | | **Simulation rate limit** | Caps how many injects of the run start within a sliding window: **Max Attempts** (1 to 99) per number of **Minutes** (1 to 59). An action due once the cap is reached is delayed until older ones leave the window, not dropped | Off. Turned on, 1 attempt per 30 minutes until you change the values | Turn each one on with its switch, then choose the values. A rate limit models a slow, quiet attacker, or keeps a password test under the lockout threshold of your directory. ## Check the scope {#check-the-scope} - The **Allow list** and **Deny list** cards show the count of their entries, and each entry its name. - The health checks of the scenario no longer show **Scope definition is required**, and its launch button is enabled. - After a launch, the simulation keeps the scope it started with. A banner on its **Scope** tab tells you when an asset of that scope changed in the inventory since then. To reuse the scenario on another platform, export it from its menu: **Export the scenario** offers **Scope definition** for a chained scenario, to carry the allow and deny lists with the **Actions & Events**. **Example: Bound a night test of the front desk** After Velvet Harbor's loader ran on a front-desk workstation of Grand Meridian Hotels on 9 January 2026, the validation team prepares a chained scenario that starts from that workstation and tries to reach the booking database server, at night, without touching the payment gateway that sits in the same server network. | Card | Value | | --- | --- | | **Allow list** | Asset `fd-paris-01` (the Paris front-desk workstation, with its OpenAEV agent), and the subnet `10.20.8.0/24` of the booking servers, imported from a CSV row `ip_subnet,10.20.8.0/24` | | **Deny list** | `10.20.8.40`, the payment gateway, typed by hand | | **Variables** | Key `front_desk_account`, type **Username**, value `night.audit`, description "Shared night auditor account" | | **Simulation time out** | On, 4 hours: the test runs between 23:00 and 03:00 | | **Simulation rate limit** | On, 5 **Max Attempts** per 30 **Minutes**, under the lockout threshold of the Meridian directory | The run may scan and query the hosts of the booking network, but no value pointing at `10.20.8.40` ever reaches an action, and the run stops by 03:00 at the latest. > **With XTM One: Let the AI ask for the scope** > > An autonomous run of a chained scenario takes its own allow and deny lists in its launch drawer. Left empty, the XTM One orchestrator asks you which targets are in scope before it attacks anything. See [Let AI run a penetration test](https://filigran.io/docs/openaev/use/attack-chaining/autonomous/). ## What's next {#what-s-next} - [Choose the actions of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/actions/) - [Build the logic of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/logic/) - [Read how far a chained simulation got](https://filigran.io/docs/openaev/use/attack-chaining/attack-path-map/) --- # How collectors measure what your security tools saw > How OpenAEV collectors read the alerts of your EDR, SIEM and other tools to score detection and prevention, the reference data other collectors import, and how to run them. - URL: https://filigran.io/docs/openaev/use/collectors/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, platform engineers, SOC analysts - Type: Concept A collector is the integration that reads data from another system for OpenAEV. Most collectors read your security tools, an endpoint detection and response (EDR) tool, a security information and event management (SIEM) system or an email gateway, to tell whether each attack of a simulation was detected or prevented: they fill the detection and prevention expectations. Others import what you build simulations from: attack techniques, payloads, vulnerabilities, assets and people. This page explains how a collector matches an alert to an inject, which collectors exist, and how to run them. Where collectors sit among agents, executors and injectors is in [How OpenAEV works](https://filigran.io/docs/openaev/concepts/architecture/#collectors). **Diagram: The implant runs the attack, the EDR alerts on it, and the collector matches the alert to the inject by host and parent process to fill the expectation** - Endpoint: Implant (oaev-implant--agent-) - Security tools: EDR (Detects, blocks), SIEM (Gathers the EDR logs) - Collectors: Collector (Host, parent process, time) - OpenAEV: Expectations (Detection, prevention) Connections: - Implant → EDR: seen by - EDR → SIEM: logs - Expectations → Collector: pending - EDR → Collector: alerts - SIEM → Collector: confirms - Collector → Expectations: fills ## How a collector scores detection and prevention {#how-a-collector-scores-detection-and-prevention} 1. **The inject sets what to look for.** When an inject runs on an endpoint, OpenAEV creates its expectations, such as **Detection** and **Prevention**, for each agent that runs it. Each expectation carries signatures: the host name and IP addresses of the endpoint, the time window of the execution, and the name of the implant's process, `oaev-implant--agent-`, which no other process has. 2. **The collector asks for the expectations it has not filled yet.** At each run, a collector of a security tool reads from the API the pending detection and prevention expectations. 3. **It searches its tool.** An EDR collector looks for alerts on that host whose parent process is the implant: the alert then belongs to this inject, on this endpoint. A SIEM collector relies on the EDR whose logs it gathers: it confirms in the SIEM what the EDR collector has matched, so the EDR collector must fill the expectation first. 4. **It fills the expectation.** A match marks the expectation detected, or prevented when the tool blocked the action, with the alert as its evidence. Each collector of a security tool is tied to a security platform, listed in **Security platforms**, and the result carries its name. 5. **What nobody filled expires.** A built-in collector, **Expectations Expiration Manager**, closes the expectations nobody filled before their expiration time: 6 hours by default for detection and prevention, the `openaev.expectation.technical.expiration-time` key of the [`openaev.expectation` block](https://filigran.io/docs/reference/openaev/configuration/#openaev-expectation). The attack then counts as **Not Detected**, or **Not Prevented**. So a collector needs the inject to run through an implant, with the OpenAEV agent or an executor of your EDR, and the tool to keep the process tree of its alerts. How each expectation is scored and shown is in [Expectations](https://filigran.io/docs/openaev/use/expectations/). ## The collectors {#the-collectors} The catalog, in **Integrations**, **Available** tab, lists the collectors the platform knows, by what they are for: | Use | Collectors | | --- | --- | | Security response: fill detection and prevention | CrowdStrike, Microsoft Defender, Microsoft Defender for Office 365, Microsoft Sentinel, SentinelOne, Palo Alto Cortex XDR, Palo Alto Cortex XSOAR, Tanium Threat Response, Splunk Enterprise Security, Elastic Security, IBM QRadar, LogRhythm, NetWitness | | AI security: score the defenses of AI applications | Cisco AI Defense, HiddenLayer AIDR, Lakera Guard, Palo Alto Prisma AIRS, Prompt Security | | Attack knowledge | MITRE Att&ck, MITRE ATLAS, NVD NIST (vulnerabilities) | | Payloads for the Threat Arsenal | Atomic Red Team, OpenAEV Library | | Assets, as endpoints without an agent | Microsoft Intune, Microsoft Azure, Amazon Web Service Resources, OVHcloud, XTM One (its AI agents, as AI targets) | | Players | Microsoft Entra, Google Workspace | Two collectors are built into the platform and need nothing: **Expectations Expiration Manager**, above, and **Expectations Vulnerability Manager**, which scores the vulnerability expectations against the findings. ![The Deployed tab of Integrations filtered on collectors: Meridian EDR, the CrowdStrike Falcon collector, started next to the built-in Expectations Expiration Manager and Expectations Vulnerability Manager.](https://filigran.io/docs/shots/16b0580ae3c1555934458ae1b3a58b053d03063d2bf4775d3955f0997e3805fe.webp) ## Run a collector {#run-a-collector} Collectors other than the two built-in ones are Python programs, published as `openaev/collector-*` images. Run one in either of two ways: - **With XTM Composer**, from **Integrations**, **Available** tab: open the collector, click **Deploy**, fill in its settings and start it. This requires an Enterprise Edition license, the **Manage tenant settings** capability and a running [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/). XTM Composer then runs the container and shows its logs. - **Yourself**, with Docker or Python, with `OPENAEV_URL`, `OPENAEV_TOKEN` and a `COLLECTOR_ID` of your own, plus the settings of the collector in its `README.md`: see [Run an integration without XTM Composer](https://filigran.io/docs/deploy/integrations/manual/). With several tenants, also set `OPENAEV_TENANT_ID`. A collector deployed from the catalog does not sign in with your token. OpenAEV gives it the token of the tenant's **Catalog connectors** service account, created at the first deployment in the tenant, in the group of the same name. Its role holds what the integrations call: **Manage tenant settings**, **Manage assessment**, **Manage documents**, **Manage security platforms**, **Manage tags**, **Manage assets**, **Manage teams & persons**, **Manage payloads**, **Manage threat arsenal**, **Delete threat arsenal** and **Resolve inject secret**. Its role and group cannot be edited or deleted. Every integration the tenant deployed from the catalog, injectors included, shares this account, so it keeps working when the person who deployed it leaves. The integrations deployed before the upgrade move to this account when the platform starts. To replace the token, a user with **Manage tenant users, groups and roles** calls `POST /api/catalog-connector/token/rotate`: OpenAEV revokes the old token and pushes the new one to every integration the tenant deployed from the catalog. In the catalog, the settings of Elastic Security show how it matches alerts. The description of `ELASTIC_QUERY_TEMPLATE` gives the collector's built-in query: leave the setting empty to keep that query as the collector is updated, or copy it and edit it to fit your fields. `ELASTIC_EVENTS_INDEX`, the index of process events the collector reads to find the implant behind an alert, defaults to `logs-windows.sysmon_operational-*,logs-endpoint.events.process-*,logs-system.security-*`: Sysmon, Elastic Defend and the Windows Security channel, with process creation auditing (event 4688). A host with no process-creation event in that index is matched on its host name, IP addresses and time window only. The **OVHcloud** collector registers your OVHcloud servers as endpoints without an agent, so simulations can target them. By default it registers the dedicated servers (bare metal). Public Cloud instances, VPS and Hosted Private Cloud (VMware) virtual machines join them when you turn on `COLLECTOR_OVHCLOUD_COLLECT_PUBLIC_CLOUD`, `COLLECTOR_OVHCLOUD_COLLECT_VPS` or `COLLECTOR_OVHCLOUD_COLLECT_HOSTED_PRIVATE_CLOUD`. It reads the OVHcloud API of `COLLECTOR_OVHCLOUD_ENDPOINT` (`ovh-eu` by default, `ovh-ca` or `ovh-us`). It signs in with an application key, secret and consumer key granted GET calls only, or with the client id and secret of an OAuth2 service account. Regions, name patterns and IAM tags narrow what it registers, and it skips suspended, expired, deleted or errored resources. It imports the IAM tags of a resource as OpenAEV tags, and runs every hour (`COLLECTOR_PERIOD`, `PT1H`). A collector only opens outbound connections, to the OpenAEV URL and to the tool it reads: OpenAEV never connects to it. So it can run next to the tool, for example beside an on-premises SIEM while OpenAEV runs as a service. In **Integrations**, **Deployed** tab, each collector shows whether it runs and when the platform last heard from it. A collector you **Stop** in **Integrations** no longer counts for the injects that run afterwards, from the moment it is stopping. Their detection and prevention expectations wait only for the other collectors of the tenant. When no other collector answers that type of expectation for the security platforms the inject expects, the expectation fails at once, without waiting 6 hours to expire. It reads **No automated security platform detected**. Before you launch, the **Security System Collector** health check of the scenario or inject warns about such an expectation. A collector you run yourself, without a deployment in **Integrations**, always counts. **Example: Score the Velvet Harbor simulation with Meridian EDR** Meridian EDR, the endpoint detection of Grand Meridian Hotels, is CrowdStrike Falcon. The platform engineer deploys the **CrowdStrike** collector from the catalog, with a Falcon API client that reads detections, and it shows as started in the **Deployed** tab. The validation engineer runs the Velvet Harbor simulation on the front-desk workstations. Its PowerShell (T1059.001) inject runs on `fd-paris-01` at 02:14, through the implant `oaev-implant--agent-`. Falcon raises a detection on `fd-paris-01` whose parent process is that implant, and kills the process. The CrowdStrike collector matches it on its next run: `fd-paris-01` reads **Detected** and **Prevented**, with the Falcon alert as evidence. On `fd-paris-02`, where the policy only detects, it reads **Detected**, and **Not Prevented** once the prevention expectation expires 6 hours later: a gap the SOC closes in the Falcon prevention policy. > **With XTM One: Turn an undetected attack into a detection rule** > > When OpenAEV is connected to XTM One, an AI agent can draft detection rules from an inject that ran, from the commands and behavior of its actions: the rule your SOC was missing when a collector found nothing. The XTM One collector also imports the AI agents of XTM One as targets, so simulations can test them. Connecting OpenAEV to XTM One is in [Connect the modules](https://filigran.io/docs/deploy/configure/connect-modules/). ## What's next {#what-s-next} - [Expectations](https://filigran.io/docs/openaev/use/expectations/): how detection, prevention and the other expectations are scored. - [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/): the executors whose implants collectors match. - [How integrations run](https://filigran.io/docs/deploy/integrations/how-they-run/): deploy collectors with or without XTM Composer. - [Build a collector](https://filigran.io/docs/develop/build/collector/): write your own. --- # Give your players challenges to solve > Ask your players a question they must answer from the evidence of the exercise, check their answer against flags, and score it in the simulation's results. - URL: https://filigran.io/docs/openaev/use/components/challenges/ - Products: OpenAEV 3.261118.0 - For: crisis exercise planners - Type: How-to guide A challenge is a question your players answer during the exercise, in the manner of a capture the flag (CTF). Find the account the attacker used, the domain the malware called, the time the data left. You give them the evidence, they type an answer, and OpenAEV checks it against the flags you set. The result counts in the simulation, player by player. This page creates a challenge, publishes it with an inject, and reads the results. ## Before you start {#before-you-start} - Your role has **Manage challenges** to create and change challenges, and **Delete challenges** to delete them. - To publish one, your role has **Manage assessment** on the scenario or simulation, or your group holds its **Manage+Delete** grant. - The players are in teams with an email address: the challenge reaches them by email. See [People](https://filigran.io/docs/openaev/use/targets/people/). ## How a challenge is answered {#how-a-challenge-is-answered} **Diagram: The inject emails each player a link to the challenges page, the player submits a flag, and OpenAEV scores their expectation from the flags and the attempts left** - Components: Challenge (Content, documents, flags) - Scenario: Publish challenges (Scheduled inject) - Players: Each player (Email with a link), Challenges page (Submits a flag) - Results: Expectation (Met, or failed after the last attempt) Connections: - Challenge → Publish challenges: selected - Publish challenges → Each player: emails - Each player → Challenges page: opens - Challenges page → Expectation: checked against the flags A challenge belongs to the platform, not to a scenario: several scenarios can publish the same one. In **Components > Challenges**, the **Simulations** column shows up to three simulations whose injects publish the challenge, each a link to the simulation. The inject that publishes it sends each player an email with their own link to the challenges page. There, the player opens the challenge's card, reads it, downloads its documents and submits a flag. ## Create a challenge {#create-a-challenge} 1. Open **Components > Challenges** and click **Create a new challenge**. 2. Fill in the **Name**, which the players read on the card. 3. Optionally, fill in the **Category**: the players' page groups the challenges by category, such as Investigation or Communication. 4. Write the **Content**: the situation and the question, as the players read it. 5. Optionally, set the **Score** the card shows the players, and the **Max number of attempts**. Leave the maximum empty to allow any number. 6. Under **Documents**, add the evidence the players need, such as an alert export. See [Share files with your players](https://filigran.io/docs/openaev/use/components/documents/). 7. Under **Flags**, choose the **Flag type** and type the **Value** of an answer you accept. Click **Add** for another accepted answer. A challenge needs at least one flag. 8. Click **Create**. The **Flag type** decides how an answer is compared with the **Value**: | Flag type | An answer is correct when | Example value | | --- | --- | --- | | **Text** | It is the value, whatever its case | `night.audit` accepts `Night.Audit` | | **Text (case-sensitive)** | It is the value, letter for letter | `T1566.001` | | **Regular expression** | The whole answer matches the expression | `(?i)(meridian\\)?night\.audit` accepts `MERIDIAN\night.audit` | An answer is correct as soon as it matches one flag. Spaces count: `night.audit ` with a trailing space does not match a **Text** flag. ![The Create a new challenge panel: name, category, content, score, maximum attempts, documents, tags and the flags that check an answer.](https://filigran.io/docs/shots/a5b64fe495d489d2db41dc0fbf9ff510ecf9004cfccc5a5ea7ea3453b1385b92.webp) ## Publish it with an inject {#publish-it-with-an-inject} 1. Open the **Injects** tab of the scenario or simulation and click **Create**, then choose the inject type **Publish challenges**. 2. Give the inject a **Title** and set, under **Scheduling**, when the challenge comes out. 3. Under **Targeted teams**, choose the teams who must answer, or turn on **All teams**. 4. Under **Challenges to publish**, click **Add challenges**, select one or more challenges, and click **Add**. 5. Under **Inject data**, change the **Subject** and the **Body** of the email if you wish. The default body lists the challenges with each player's link. 6. Under **Inject expectations**, keep **Expect targets to complete the challenge(s)**. 7. Click **Create**. Once an inject uses a challenge, the header of the scenario or simulation counts its **Challenges**, and its trophy icon, **Preview challenges page**, opens the players' page. In preview mode, attempts are not counted and results are not recorded. ## What the players see, and how they score {#what-the-players-see-and-how-they-score} The link of the email opens the player's challenges page, grouped by **Category**. Each card shows the challenge's **Score**, its documents, and the attempts used out of the maximum. The player opens a card, types the answer in **Flag** and clicks **Submit**: - **Flag is correct! It has been successfully submitted.** The player's expectation is met, with the full score of the expectation, 100 by default. - **Flag is not correct! Try again...** The attempt counts. - **Max attempts exceeded.** The player used all their attempts: their expectation fails, and the card takes no more answers. The **Score** of the challenge is what the card displays; the result in the simulation is the score of the inject's expectation. A player who never answers fails the expectation when it expires: after its **Expiration time**, 24 hours by default (`openaev.expectation.challenge.expiration-time` in the [configuration reference](https://filigran.io/docs/reference/openaev/configuration/#openaev-expectation)). Read the results on the inject: see [Expectations](https://filigran.io/docs/openaev/use/expectations/). **Example: Find the account that ran the loader** During the crisis exercise of Grand Meridian Hotels, on the night of 9 January 2026, Example CERT wants to know whether the crisis cell can read the alert of its own EDR. The exercise planner creates the challenge: | Field | Value | | --- | --- | | **Name** | `Find the account that was used` | | **Category** | `Investigation` | | **Content** | The EDR alert of the night shows a PowerShell process started from a booking form. Which account ran it? | | **Score** | 50 | | **Max number of attempts** | 3 | | **Documents** | `edr-alert-front-desk.pdf` | | **Flags** | **Text** `night.audit`, and **Regular expression** `(?i)(meridian\\)?night\.audit` | The inject `Which account was used?`, of type **Publish challenges**, 50 minutes after the start, targets the team **Crisis cell**. Hélène Marchetti first answers `paul.garnier`, the night auditor on shift, then reads the alert again and submits `MERIDIAN\night.audit`: correct at the second attempt. The shared front-desk account becomes the first decision of the debrief. ![The challenges page of Velvet Harbor crisis night as players see it: Find the account that was used, in Investigation, worth 50 points, with 3 attempts and one document.](https://filigran.io/docs/shots/f14e2d3674ca63a945a52c9a65a55808ff4e112fbf091bc364144c3ca5f7dd32.webp) ## What's next {#what-s-next} - [Collect lessons learned after an exercise](https://filigran.io/docs/openaev/use/components/lessons/). - [Publish fake press articles during an exercise](https://filigran.io/docs/openaev/use/components/media-pressure/). - [Expectations](https://filigran.io/docs/openaev/use/expectations/), to read and adjust the players' results. --- # Create the media outlets of an exercise > Create the newspaper, social network or TV channel your players read during a crisis exercise, with its name, colors and logos, before you write its articles. - URL: https://filigran.io/docs/openaev/use/components/channels/ - Products: OpenAEV 3.261118.0 - For: crisis exercise planners - Type: How-to guide A channel is a fake media outlet: a newspaper, a social network or a TV channel, with its name, colors and logo. During a crisis exercise, players open the articles you publish on the page of their channel, which looks like the real thing. Create the channel once; every scenario of the platform can publish articles on it. This page creates a channel and gives it its look. Writing and publishing the articles is in [Publish fake press articles during an exercise](https://filigran.io/docs/openaev/use/components/media-pressure/). ## Before you start {#before-you-start} - Your role has **Manage channels** to create and change a channel, and **Delete channels** to delete it. - To set a logo, your role also has **Manage documents**: a logo is an image of **Components > Documents**. ## What a channel decides {#what-a-channel-decides} **Diagram: The channel gives the page its type, colors and logos, the article gives its content, and the player reads both on the channel's page** - Components: Channel (Type, colors, logos), Documents (Logos and images) - Scenario: Article (Title, author, content) - Players: Channel page (Newest article first) Connections: - Documents → Channel: logos - Channel → Article: shapes - Documents → Article: images or videos - Article → Channel page: published The channel gives the page its frame, the article gives the content. The **Type** decides both the layout and what an article can carry: | Type | The players see | An article can show | | --- | --- | --- | | **Newspaper** | A front page: the latest article as the headline, the others below, each with **Read more** | Images | | **Microblogging** | A timeline of posts, with their comments, shares and likes | Images and videos | | **TV channel** | Videos with their titles | Videos | The newest article comes first. Each player sees the logo and colors of the theme they use, dark or light. ## Create a channel {#create-a-channel} 1. Open **Components > Channels** and click **Create**. The **Create a new channel** panel opens. 2. Choose the **Type**: **Newspaper**, **Microblogging** or **TV channel**. 3. Fill in the **Name**, as the outlet signs its pages, and the **Subtitle**, the line under it. Both are required. 4. Click **Create**. The channel appears in the list with its **Type**, **Name** and **Subtitle**. ## Give it its look {#give-it-its-look} 1. Click the channel in the list. Its page opens with **Parameters**, **Branding** and a **Live preview**. 2. Under **Parameters**, choose the **Header mode**: **Title only**, **Logo only**, or **Logo and title**. A new channel shows the title only. 3. Pick the four colors, or type their hexadecimal codes, such as `#0b3d91`. **Primary color (dark)** and **Secondary color (dark)** serve players in the dark theme; **Primary color (light)** and **Secondary color (light)**, the light theme. 4. Click **Update**. 5. Under **Branding**, click **Change logo** on the **Dark theme** tile, choose an image among the documents or upload one, then do the same on the **Light theme** tile. A logo is a PNG, JPEG, SVG or GIF file. The **Live preview** shows your edits before you save them; its two buttons switch it between the dark and the light theme. Changes apply at once to every article of the channel, in every scenario and simulation, published or not. ![The channel Hotel Business Daily, a newspaper: its type, header mode, name, subtitle and the primary and secondary colors of each theme, with the live preview of its page and the Branding section for its logos.](https://filigran.io/docs/shots/395732c14aafabac541edb95b34d17c1f42d4b7e48e1599faaaa7e347f097672.webp) ## Delete a channel {#delete-a-channel} **Delete**, in the menu of the channel's line, deletes the channel and every article written for it, in every scenario and simulation. To retire a channel that past exercises used, keep it and stop publishing on it. **Example: The newspaper of the Grand Meridian crisis night** For the crisis exercise of 9 January 2026, Example CERT wants the crisis cell of Grand Meridian Hotels to read a trade newspaper break the news of the guest records theft. The exercise planner creates the channel: | Field | Value | | --- | --- | | **Type** | **Newspaper** | | **Name** | `Hotel Business Daily` | | **Subtitle** | `News of the hospitality industry (a fictional newspaper of the exercise).` | | **Header mode** | **Title only** | | **Primary color (dark)** | `#e3b341` | | **Primary color (light)** | `#7a1f1f` | | **Secondary color (dark)** | `#2b2b2b` | | **Secondary color (light)** | `#f4efe6` | The articles of the scenario **Velvet Harbor crisis night** then open as the front page of Hotel Business Daily. Hélène Marchetti, who reads in the light theme, sees its masthead in burgundy. ## What's next {#what-s-next} - [Publish fake press articles during an exercise](https://filigran.io/docs/openaev/use/components/media-pressure/). - [Share files with your players](https://filigran.io/docs/openaev/use/components/documents/), for logos and article images. --- # Share files with your players > Upload the files of an exercise once in OpenAEV, then attach them to emails, press articles, challenges and channel logos, or drop them on endpoints. - URL: https://filigran.io/docs/openaev/use/components/documents/ - Products: OpenAEV 3.261118.0 - For: crisis exercise planners, security validation engineers - Type: How-to guide A document is a file you upload to OpenAEV once and reuse wherever the exercise needs it. It can be a briefing attached to an email, a photo in a fake press article, the evidence of a challenge, or the logo of a media channel. Validation engineers use the same documents as the files a file drop action writes on endpoints. This page uploads a document, attaches it to injects, and tidies the list. ## Before you start {#before-you-start} - Your role has **Access documents** to see the list, **Manage documents** to upload and update, and **Delete documents** to delete. - To attach a document to an inject or an article, your role also has **Manage assessment** on the scenario or simulation, or your group holds its **Manage+Delete** grant. ## Where a document goes {#where-a-document-goes} **Diagram: A document is uploaded once to OpenAEV, then reused by the emails, articles, challenges and channels of an exercise, and by the payloads that drop files on endpoints** - You: A file (PDF, image, video) - OpenAEV: Documents (Components > Documents) - Exercises: Injects (Attached to the email), Articles (Image or video), Challenges (Evidence to analyze), Channels (Logos) - Endpoints: Payloads (File drop) Connections: - A file → Documents: upload once - Documents → Injects: attach - Documents → Articles: illustrate - Documents → Challenges: provide - Documents → Channels: brand - Documents → Payloads: drop | Used in | What the players or the platform do with it | | --- | --- | | An inject that sends email, such as **Publish a media pressure** or **Publish challenges** | The file goes with the email when its attachment is turned on | | A media pressure article | The image or the video shows in the article; see [Publish fake press articles during an exercise](https://filigran.io/docs/openaev/use/components/media-pressure/) | | A challenge | The players download it from the challenge card; see [Give your players challenges to solve](https://filigran.io/docs/openaev/use/components/challenges/) | | A channel | Its logo, for the dark and the light theme; see [Create the media outlets of an exercise](https://filigran.io/docs/openaev/use/components/channels/) | | A payload of the Threat Arsenal | The file a file drop action writes on the endpoint; see [Threat arsenal](https://filigran.io/docs/openaev/use/threat-arsenal/) | ## Upload a document {#upload-a-document} 1. Open **Components > Documents** and click **Create**. The **Create a new document** panel opens. 2. Under **Select a file**, choose the file on your computer. 3. Fill in a **Description**: the players never see it, but your team finds the file by it. 4. Optionally, link it to **Simulations** and **Scenarios**, and add **Tags**. Links file the document under those exercises in the list; they do not send it to anyone. 5. Click **Create**. The document appears in the list with its file name as **Name**, and its file type, such as `application/pdf` or `image/png`, as **Type**. Click its line to download the file. The **Simulations** and **Scenarios** columns show, on one line, the first simulation or scenario the document is linked to: click its chip to open it. A chip such as `+2` counts the other links, and hovering over it lists their names. Only the simulations and scenarios you have access to are shown and counted. From inside an inject, an article or a challenge, **Add documents** offers the same upload with **Create a new document**. The document is then linked to the scenario or simulation you work in. OpenAEV recognizes a file by its content. Uploading a file whose content is already in the list does not create a second document. OpenAEV adds your tags to the existing one and keeps its name and description. ![The Documents list with the three files of the Velvet Harbor crisis night exercise, each with its description, type and the tag velvet-harbor. The crisis communication playbook serves two scenarios: one scenario chip and a +1 chip.](https://filigran.io/docs/shots/983b6a84f73e422feef41367887ed873810c85d765ae7148349e020846dcb006.webp) ## Attach a document to an inject {#attach-a-document-to-an-inject} 1. Open the scenario or the simulation, then its **Injects** tab, and click the inject to open its form. 2. Click **Add documents**, select one or more documents, and click **Add**. 3. Check the attachment of each document. For an inject that sends email, a new document is attached: it goes with the email. Open the menu of a document and choose **Disable attachment** to keep it on the inject without sending it, or **Enable attachment** to send it again. 4. Save the inject. **Remove from the element**, in the same menu, takes the document off the inject and keeps it in **Components > Documents**. ## Keep the list tidy {#keep-the-list-tidy} - **Update**, in the menu of a line, changes the description, the links and the tags. The file itself cannot be replaced: upload the new version as a new document. - **Delete** first lists where the document is used: atomic testings, injects of scenarios and simulations, simulations, payloads, channels, articles, challenges and security platforms. A document used in a payload, or as the logo a collector uploaded for a security platform, cannot be deleted. Elsewhere, deleting removes the file from every inject, article and challenge that used it. - Report files generated by the **Reporting** module show in the list but are read-only. - **Export this list**, the icon above the list, downloads it as a CSV file. **Example: The documents of the Grand Meridian crisis exercise** Example CERT prepares the crisis exercise it runs for Grand Meridian Hotels on the night of 9 January 2026. In the scenario **Velvet Harbor crisis night**, the exercise planner uploads three documents and links them to the scenario: | Name | Description | Used in | | --- | --- | --- | | `crisis-communication-playbook.pdf` | Grand Meridian crisis communication playbook, version of December 2025 | Attached to the first email to the crisis cell | | `forum-listing-grand-meridian.png` | Fake screenshot of the guest records offered for sale | Shown in the press article of 23:30 | | `edr-alert-front-desk.pdf` | Meridian EDR alert exported from the front-desk workstation | Downloaded from the challenge **Find the account that was used** | Each document is uploaded once. When the planner duplicates the scenario for the Spanish hotels, the copied injects and articles point to the same files, and the challenge is shared. The copy is linked to the same documents: in **Components > Documents**, the **Scenarios** column of the playbook shows one of the two scenarios and a `+1` chip that names the other. ## What's next {#what-s-next} - [Send each player their own email with variables](https://filigran.io/docs/openaev/use/components/variables/), so each email names its reader. - [Publish fake press articles during an exercise](https://filigran.io/docs/openaev/use/components/media-pressure/). - [Give your players challenges to solve](https://filigran.io/docs/openaev/use/components/challenges/). - [Build a scenario](https://filigran.io/docs/openaev/use/scenarios/build/). --- # Collect lessons learned after an exercise > Build the debrief questionnaire of a crisis exercise from a template, send it to the teams that played, and read their answers and your objectives in one place. - URL: https://filigran.io/docs/openaev/use/components/lessons/ - Products: OpenAEV 3.261118.0 - For: crisis exercise planners - Type: How-to guide The lessons learned questionnaire is the debrief of an exercise, asked to the people who played it. How fast did the alert reach you? Did the press article change your decisions? What would you do differently? You prepare the questions in categories and send them by email to the teams that played. Every answer and comment comes back to the simulation, next to the objectives your control team evaluates. Templates let you reuse the same questions from one exercise to the next. This page turns the module on, builds the questionnaire, sends it and reads the answers. ## Before you start {#before-you-start} - Your role has **Manage assessment**, or your group has a **Manage+Delete** grant on the scenario or simulation. - To create the questionnaire's categories, and to manage templates in **Settings > Customization > Lessons learned**, your role has **Manage lessons learned**. To apply a template, **Access lessons learned** is enough. - The players are in teams, each with an email address. See [People](https://filigran.io/docs/openaev/use/targets/people/). ## How the questionnaire works {#how-the-questionnaire-works} **Diagram: A template's categories and questions are applied to the exercise, each category targets teams, and the questionnaire sent after the simulation brings every player's answers back to the Lessons learned tab** - Settings: Template (Categories and questions) - Simulation: Questionnaire (Categories target teams), Lessons learned tab (Answers, objectives) - Players: Each player (Evaluation, comments) Connections: - Template → Questionnaire: apply - Questionnaire → Each player: send by email - Each player → Lessons learned tab: submit once The questionnaire is made of categories, each with its questions and the teams it targets. A player answers the categories that target one of their teams. For each question, they give a **Global evaluation** from 0 to 100, and optionally say **What worked well** and **What didn't work well**. They submit once, and cannot change their answers afterwards. You can prepare the questionnaire in the scenario: each simulation created from it copies its categories, questions, targeted teams and objectives. Only a simulation sends the questionnaire and collects answers. ## Turn the module on {#turn-the-module-on} A new scenario or simulation has no lessons learned. 1. Open the scenario or the simulation, open the menu of its header, and choose **Update**. 2. Under **Modules**, turn on **Enable lessons learned**. 3. Click **Update**. The **Lessons learned** tab appears. A scenario or simulation that already had categories, objectives or anonymized answers before the module could be turned off keeps it on. ## Prepare a template {#prepare-a-template} A template holds categories and questions you reuse in every exercise. It is optional: you can write the questions in the exercise directly. 1. Open **Settings > Customization > Lessons learned** and click **Create**. Give the template a **Name** and a **Description**, then click **Create**. 2. Open the template and click **Add a category**. Fill in its **Name**, a **Description**, and its **Order**, the position among the categories, then click **Create**. 3. In the category, click **Create a new lessons learned question**. Write the **Content**, the question itself, an **Explanation** that helps the player answer, and its **Order** in the category, then click **Create**. 4. Repeat for every category and question. ![The lessons learned template Crisis exercise debrief: the categories Alert and escalation and Communication, each with its question.](https://filigran.io/docs/shots/74250a9d9c01da9c9484936c3d4706207692cdbf53d155d5faced7f2a1f567b2.webp) ## Build the questionnaire of the exercise {#build-the-questionnaire-of-the-exercise} 1. Open the **Lessons learned** tab of the scenario or simulation. 2. Under **Parameters**, next to **Template**, click **Apply**, choose a template, and click **Apply**. Its categories and questions are added to those already there. To write your own instead, click **Create** next to **Categories and questions**. 3. In each category, under **Targeted teams**, add the teams that must answer it. A category without a team reaches nobody. 4. To show the answers without the players' names, turn on **Anonymize answers**, under **Questionnaire mode**, and confirm. You cannot turn it off afterwards. 5. Under **Check**, click **Preview** to read the questionnaire as a player will. A category you create in the exercise takes a **Name** and an **Order**; a question, its **Content** and an **Order**. The order is a whole number, 0 or more: otherwise the form shows **Must be a whole number** or **Must be greater than or equal to 0**, and **Create** stays disabled. **Clear out**, next to **Categories and questions**, deletes every category and question of the exercise, to start again. ## Send the questionnaire {#send-the-questionnaire} When the simulation is over: 1. On the **Lessons learned** tab of the simulation, under **Control**, click **Send** next to **Questionnaire**. It stays disabled until a category targets a team with players. 2. Check the **Subject** and the **Message**. The message holds `${lessons_uri}`, which becomes each player's own link: keep it. A message with no visible text shows **This field is required.** 3. Click **Send**. Each player of the targeted teams receives one email, with a link that opens their questionnaire without signing in. **Reset**, next to **Answers**, deletes every answer received, for example after a dry run with your control team. ## Read the answers {#read-the-answers} The **Lessons learned** tab of the simulation brings together: - At the top, the **Overall objectives score**, the number of **Simulation logs**, the **Poll replies** received and the **Messages** exchanged. - **Objectives**: the goals your control team sets for the exercise, each with a **Title**, a **Description** and a **Priority**, a whole number, 0 or more. Objectives are listed by priority, the lowest number first. Each evaluator scores an objective from 10 to 100. An objective's score is the average of its evaluations, and **Overall objectives score** is the average of the objectives. - **Crisis intensity (injects by hour)**: the number of injects the players received, hour by hour, to compare the answers with the pressure they were under. - **Categories and questions**: under **Results**, each question shows its number of answers, how many of them contain comments, and the average evaluation. Click a question to read every answer with its comments, under the player's name or **Anonymized**. **Example: Debrief the Grand Meridian crisis night** Example CERT played the Velvet Harbor intrusion to the crisis cell of Grand Meridian Hotels on the night of 9 January 2026. Its template **Crisis exercise debrief** holds two categories: | Category | **Order** | Questions | | --- | --- | --- | | Alert and escalation | 1 | Was the crisis cell on the bridge within 30 minutes of the alert? (The playbook asks for 30 minutes.) | | Communication | 2 | Did the holding statement go out before the press article was shared? (Hotel Business Daily published at 1 h 30.) | In the simulation **Velvet Harbor crisis night, 9 January 2026**, the planner applies the template and targets the team **Crisis cell** in both categories. The control team sets two objectives: **Crisis cell assembled within 30 minutes of the alert**, and **Holding statement approved before the press publishes**. On the morning of 10 January, the planner sends the questionnaire. Hélène Marchetti and Sophie Laurent answer; Marc Dupuis does not. **Communication** averages 40: both comments under **What didn't work well** say nobody owned the answer to the journalist. That gap opens the action plan. ## What's next {#what-s-next} - [Publish fake press articles during an exercise](https://filigran.io/docs/openaev/use/components/media-pressure/) and [Give your players challenges to solve](https://filigran.io/docs/openaev/use/components/challenges/), whose results the debrief discusses. - [Simulation reports](https://filigran.io/docs/openaev/use/simulations/reports/), to share the outcome of the exercise. - [Run a simulation](https://filigran.io/docs/openaev/use/simulations/). --- # Publish fake press articles during an exercise > Write the press articles and social posts of a crisis exercise, publish them to the players at a set time, and see who read them. - URL: https://filigran.io/docs/openaev/use/components/media-pressure/ - Products: OpenAEV 3.261118.0 - For: crisis exercise planners - Type: How-to guide Media pressure is what the outside world says about your crisis while your players handle it: a press article that reveals the breach, a post that goes viral, a TV report. You write the articles in the scenario, and an inject publishes them at the time you choose. The players get an email with a link, and read the article on a page that looks like the outlet's. OpenAEV records who read it. This page writes an article, publishes it and checks the reading. The outlet itself, a newspaper, a social network or a TV channel, is a channel: see [Create the media outlets of an exercise](https://filigran.io/docs/openaev/use/components/channels/). ## Before you start {#before-you-start} - Your role has **Manage assessment**, or your group has a **Manage+Delete** grant on the scenario or simulation. - The channel exists. To add images or videos to an article, your role also has **Access documents**. - The scenario plays its injects on a timeline: a chained scenario has no **Configuration** button. - The platform sends email, and the players are in the teams the inject targets. See [People](https://filigran.io/docs/openaev/use/targets/people/). ## How an article reaches the players {#how-an-article-reaches-the-players} **Diagram: At the inject's time, the articles appear on the channel's page, each player gets an email with their own link, and opening it meets their reading expectation** - Scenario: Article (Written in the scenario), Publish a media pressure (Scheduled inject) - OpenAEV: Channel page (Published from now on), Reading expectation (One per player) - Players: Each player (Email with a link) Connections: - Article → Publish a media pressure: selected - Publish a media pressure → Channel page: publishes - Publish a media pressure → Each player: emails - Each player → Channel page: opens the link - Channel page → Reading expectation: marks read An article belongs to the scenario or the simulation it is written in, and only its injects can publish it. A simulation created from the scenario gets its own copy of every article. Before the inject runs, the article is invisible to the players. From the moment it runs, the article is on the channel's page, and stays there for the rest of the simulation. ## Write an article {#write-an-article} 1. Open the scenario or the simulation and click **Configuration** in its header, then open the **Media pressure** tab. 2. Click **Create an article**. The **Create a new media pressure article** dialog opens. 3. Choose the **Channel**, the outlet that publishes the article. 4. Fill in the **Title**, the headline the players read. 5. Fill in the **Author**, as the outlet signs it: a journalist, a newsroom, or the account of a post. Left empty, the players read **Unknown**. 6. Write the **Content**. The editor formats the text as the outlet will show it. 7. Optionally, set **Comments**, **Shares** and **Likes**: the counts the page shows under the article, to make it look viral or quiet. 8. Optionally, under **Documents**, click **Add documents** and choose images for a newspaper, images or videos for a social network, videos for a TV channel. The list only offers the files the channel can show. 9. Click **Create**. The article appears in the list with its **Name**, **Author**, **Channel** and **Status**. **Not used in the context** means no inject publishes it yet. Click the eye icon, **Preview**, to see the channel's page as the players will. > **With XTM One: Draft the article with AI** > > With XTM One connected and the Enterprise Edition, **Ask AI** beside **Content** offers **Generate an article**. Describe the article in **Input (describe what you want)**, choose a tone, the **Author**, the **Number of paragraphs**, and add **Context**, such as the timeline of your scenario. The same menu fixes the spelling, shortens, lengthens or summarizes a draft. Read every word before the exercise: the players will. ![The Media pressure tab of the Scenario configuration of Velvet Harbor crisis night: the article Guest records of Grand Meridian Hotels offered on a criminal forum, by the Investigations desk on Hotel Business Daily, not used yet by an inject.](https://filigran.io/docs/shots/4f9bf459bf7fce986a0505d237132ead1802910e4ae33fea4477da49757f993b.webp) ## Publish it with an inject {#publish-it-with-an-inject} 1. Open the **Injects** tab of the scenario or simulation and click **Create**, then choose the inject type **Publish a media pressure**. 2. Give the inject a **Title** and set, under **Scheduling**, when the article comes out after the start of the simulation. 3. Under **Targeted teams**, choose the teams who learn about the article, or turn on **All teams**. 4. Under **Media pressure to publish**, click **Add media pressure**, select one or more articles, and click **Add**. The status of these articles turns to **Scheduled**. 5. Under **Inject data**, keep **Send email** on to send each player an email with their link to the articles. Change the **Subject** and the **Body** to fit the story; the default body lists the articles with their links. 6. Under **Inject expectations**, keep **Expect targets to read the article(s)** to measure the reading. 7. Click **Create**. Turn **Send email** off when another inject already tells the players where to read, such as a phone call simulated by an email from the communications team. The articles are still published at the inject's time. ![The Injects tab of Velvet Harbor crisis night: the email Call the crisis cell to the bridge at 40 minutes, the challenge Which account was used? at 50 minutes and Hotel Business Daily publishes the forum listing at 1 hour 30.](https://filigran.io/docs/shots/cfbdd3efdced6ebd13150e147e510b56af7d16c287d98634235dcb800499d01f.webp) ## Check who read it {#check-who-read-it} When a player opens the channel's page from their link, OpenAEV meets their reading expectation, with its full score. A player who never opens it fails the expectation when it expires: after the **Expiration time** of the expectation, 24 hours by default. Your administrator changes that default with `openaev.expectation.article.expiration-time`, or `openaev.expectation.human.expiration-time` for every expectation of people: see the [configuration reference](https://filigran.io/docs/reference/openaev/configuration/#openaev-expectation). Read the results on the inject, as for any expectation: see [Expectations](https://filigran.io/docs/openaev/use/expectations/). The links in the emails are personal: a player who forwards one lets someone else read as them. **Example: The press article of the Grand Meridian crisis night** Example CERT runs the crisis exercise of Grand Meridian Hotels on the night of 9 January 2026, from 22:00. At 23:30, while the crisis cell is still assessing the intrusion, a trade newspaper says the guest records are for sale. In the scenario **Velvet Harbor crisis night**, the exercise planner writes the article: | Field | Value | | --- | --- | | **Channel** | **Hotel Business Daily** | | **Title** | `Guest records of Grand Meridian Hotels offered on a criminal forum` | | **Author** | `Investigations desk` | | **Content** | A seller on a criminal forum offers what he presents as the guest records of a European hotel chain, Grand Meridian Hotels: names, stay dates and partial card numbers. The chain has not answered our questions yet. | | **Comments**, **Shares**, **Likes** | 48, 312, 95 | | **Documents** | `forum-listing-grand-meridian.png` | Then the inject `Hotel Business Daily publishes the forum listing`, of type **Publish a media pressure**, scheduled 1 hour 30 minutes after the start, targets the team **Crisis cell** with the subject `Hotel Business Daily mentions Grand Meridian Hotels`. At 23:42, Hélène Marchetti opens the article from her email: her expectation turns successful. Marc Dupuis, who never opens it, fails it the next night. The debrief starts from that gap. ## What's next {#what-s-next} - [Give your players challenges to solve](https://filigran.io/docs/openaev/use/components/challenges/). - [Collect lessons learned after an exercise](https://filigran.io/docs/openaev/use/components/lessons/). - [Send each player their own email with variables](https://filigran.io/docs/openaev/use/components/variables/), to name the player in the email. --- # Send each player their own email with variables > Write an email or SMS inject once and let OpenAEV fill in each player's name, the exercise and your own values, such as the crisis bridge link. - URL: https://filigran.io/docs/openaev/use/components/variables/ - Products: OpenAEV 3.261118.0 - For: crisis exercise planners - Type: How-to guide A variable is a placeholder, such as `${user.firstname}` or `${crisis_bridge_url}`, that OpenAEV replaces when it sends an inject. You write the email of the crisis once, and every player receives it with their own name, the name of the exercise and the values you defined for this scenario. This page lists the variables OpenAEV provides, creates your own, and uses both in an inject. ## Before you start {#before-you-start} - Your role has **Manage assessment**, or your group has a **Manage+Delete** grant on the scenario or simulation. - The scenario plays its injects on a timeline. A chained scenario has no **Configuration** button, and so no variables of its own. ## How a variable reaches the player {#how-a-variable-reaches-the-player} **Diagram: When an inject runs, OpenAEV fills the variables of its email with each player's own values and the scenario's values, and sends one email per player** - Scenario: Your variables (crisis_bridge_url), Email inject (Hello ${user.firstname}) - OpenAEV: Built-in variables (Player, simulation, links), At the inject's time (One text per player) - Players: Each player (Their own email) Connections: - Your variables → At the inject's time: values - Email inject → At the inject's time: text - Built-in variables → At the inject's time: values - At the inject's time → Each player: sends OpenAEV replaces the variables in the subject and the body of the emails that injects send, and in the text of SMS messages. It does so when the inject runs, for each person who receives it: the same body gives one email per player, each with that player's values. A variable OpenAEV cannot resolve stays in the text as you wrote it, `${crisis_bridge_url}` included. Test an inject before the exercise: see [Test injects](https://filigran.io/docs/openaev/use/injects/tests/). ## The variables OpenAEV provides {#the-variables-openaev-provides} **Available variables**, at the top of the **Inject data** section of an inject's form, lists them on its **Builtin variables** tab, and your own on **Custom variables**. | Variable | Replaced with | | --- | --- | | `${user.firstname}`, `${user.lastname}` | The first and last name of the player who receives the inject | | `${user.email}`, `${user.phone}`, `${user.lang}` | The player's email address, phone number and language | | `${user.id}`, `${user.pgpKey}` | The player's identifier in OpenAEV and PGP key | | `${exercise.name}`, `${exercise.description}`, `${exercise.id}` | The name, description and identifier of the simulation | | `${teams}` | The list of the team names the inject targets | | `${player_uri}` | The link to the player interface | | `${challenges_uri}` | The link to the player's challenges page | | `${lessons_uri}` | The link to the player's lessons learned questionnaire | Two injects add their own: **Publish a media pressure** adds `${articles}`, the published articles, each with `name` and `uri`, and **Publish challenges** adds `${challenges}` in the same form. Their default email bodies already use them. The links and `${exercise.*}` exist only when the inject runs in a simulation. Each link carries a token for its player: forwarding the email forwards the access. See [Protect the links of emails](https://filigran.io/docs/openaev/administer/url-access-token/). ## Create your own variables {#create-your-own-variables} 1. Open the scenario or the simulation and click **Configuration** in its header. The **Scenario configuration** panel opens, or **Simulation configuration**. 2. Open the **Variables** tab and click **Add variable**. 3. Fill in the **Key**: lowercase letters and underscores only, such as `crisis_bridge_url`. You write it as `${crisis_bridge_url}` in the injects. 4. Fill in the **Value**, the text that replaces it. 5. Optionally, add a **Description**, to tell the other planners what it is for. 6. Click **Create**. The variable shows in the list with its **Key**, **Description** and **Value**. **Update** and **Delete**, in the menu of its line, change or remove it. A value is plain text, the same for every player. Avoid the names OpenAEV provides, such as `user`, `teams` or `exercise`: your value would replace OpenAEV's. A simulation created from a scenario copies the scenario's variables. Changing a variable of the scenario later does not change the simulations already created: change it in the simulation too. ![The Variables tab of the Scenario configuration of Velvet Harbor crisis night: the variables crisis_bridge_url and hotel_group, with their description and value.](https://filigran.io/docs/shots/af66a2d09aac086c96e09630ec6f7b066df168c13aeb3d197288e364bfe07865.webp) ## Use variables in an inject {#use-variables-in-an-inject} Type the variable where the text should change, in the subject or the body. For a list, such as `${teams}` or `${articles}`, the body uses the FreeMarker list syntax: ```text Teams on the bridge: <#list teams as team>${team} <#list articles as article>- ${article.name}: ${article.uri}
``` **Example: Call the Grand Meridian crisis cell to the bridge** On the night of 9 January 2026, Example CERT plays the Velvet Harbor intrusion to the crisis cell of Grand Meridian Hotels. In the scenario **Velvet Harbor crisis night**, the exercise planner creates two variables: | Key | Value | Description | | --- | --- | --- | | `hotel_group` | `Grand Meridian Hotels` | The company the exercise is about. | | `crisis_bridge_url` | `https://bridge.example.com/meridian-crisis` | The conference bridge of the crisis cell. | The email inject **Call the crisis cell to the bridge**, at 22:40, reads: ```text Subject: ${hotel_group}: crisis cell on the bridge now Hello ${user.firstname}, Meridian EDR blocked a PowerShell loader on a Paris front-desk workstation and guest records may have left the booking database. Join the bridge now: ${crisis_bridge_url} Teams called: <#list teams as team>${team} ``` Hélène Marchetti, the CISO, receives "Hello Hélène," with the bridge link. When Example CERT plays the scenario for another member chain, it changes the two values in the copy, not the emails. ## What's next {#what-s-next} - [Publish fake press articles during an exercise](https://filigran.io/docs/openaev/use/components/media-pressure/). - [Test injects](https://filigran.io/docs/openaev/use/injects/tests/) to read the email a player will receive. - [Built-in injectors](https://filigran.io/docs/openaev/use/injectors/built-in/) for the email and SMS injects. --- # Connect OpenAEV to OpenCTI to test security coverages > Register an OpenAEV tenant in OpenCTI as the OpenAEV Coverage connector, so that security coverages become scenarios and their results come back to OpenCTI. - URL: https://filigran.io/docs/openaev/use/coverage-enrichment/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0 - For: administrators, platform engineers, security validation engineers - Type: How-to guide Once OpenAEV is connected to OpenCTI, a security coverage created in OpenCTI with **Automated using enrichment** becomes an OpenAEV scenario, and the results of its simulations come back to the coverage: which techniques of the threat your defenses prevented and detected. This page sets up the link for one OpenAEV tenant and checks it. What the analysts and the validation engineers then do is in [Measure your defenses against a threat](https://filigran.io/docs/opencti/use/analyze/security-coverage/) and [Turn an OpenCTI security coverage into a scenario](https://filigran.io/docs/openaev/use/scenarios/from-opencti/). ## How the link works {#how-the-link-works} **Diagram: Each OpenAEV tenant registers in OpenCTI as an enrichment connector, receives the security coverages to test, and pushes back the results of its simulations** - OpenCTI: Security coverage (Automated using enrichment), OpenAEV Coverage connector (One per OpenAEV tenant) - OpenAEV tenant: OpenAEV (URL and token of OpenCTI), Scenario and simulations (Built from the coverage) Connections: - OpenAEV → OpenAEV Coverage connector: registers and pings - Security coverage → OpenAEV: STIX bundle - OpenAEV → Scenario and simulations: builds - Scenario and simulations → Security coverage: results OpenAEV makes every call. When its configuration holds the address and a token of OpenCTI, each tenant of OpenAEV registers in OpenCTI as an enrichment connector named **OpenAEV Coverage -** followed by the tenant's identifier, with the scope `security-coverage`, and pings it every 40 seconds. The connector enriches automatically: OpenCTI sends it every automated coverage as it is created or refreshed. | Direction | What travels | Through | | --- | --- | --- | | OpenAEV to OpenCTI | The registration and pings of the connector; the link to the scenario; the results of each finished simulation | The OpenCTI API, with the token you set | | OpenCTI to OpenAEV | The coverage, the threat and its entities, as a STIX bundle | The address `openaev.base-url` followed by `/api/tenants//stix/process-bundle`, which OpenAEV gives when it registers | | OpenAEV from OpenCTI | The files of the coverage, to drop them on endpoints | The OpenCTI address, with the same token | Each tenant has its own connection, so two tenants can test the same threat for two companies, each on its own assets. ## Before you start {#before-you-start} - In OpenCTI, a service account that OpenAEV signs in as, in the **Connectors** group: its **Connector** role has **Connectors API usage: register, ping, export push ...** and the rights to write the results. See [Create accounts for integrations](https://filigran.io/docs/opencti/administer/service-accounts/). Copy its API token. - In OpenAEV, the **Tenant identifier** of the tenant to connect, in **Settings > Parameters**. The default tenant is `2cffad3a-0001-4078-b0e2-ef74274022c3`. - You can change the configuration of OpenAEV and restart it. - OpenCTI reaches OpenAEV at its `openaev.base-url`, and OpenAEV reaches OpenCTI. ## Connect a tenant {#connect-a-tenant} 1. In the configuration of OpenAEV, set three keys for the tenant, under `openaev.xtm.opencti.`: | Key | Value | | --- | --- | | `enable` | `true` | | `url` | The address of OpenCTI, such as `https://opencti.example.com`. OpenAEV builds the links to OpenCTI from it | | `token` | The API token of the OpenCTI service account. Pass it through a secret | OpenAEV calls the API at `url` followed by `/graphql`. When OpenAEV must call OpenCTI on another address, such as an internal one, set `api-url` to the full GraphQL address, in a properties file or `SPRING_APPLICATION_JSON`: Spring cannot read that key from an environment variable. Every key is in the [configuration reference](https://filigran.io/docs/reference/openaev/configuration/#openaev-xtm). 2. Restart OpenAEV. It registers the connector within a minute. If OpenCTI does not answer, it tries again every 5 minutes and logs a warning. The keys `openaev.xtm.opencti.enable`, `.url` and `.token`, without a tenant identifier, still work: they configure the default tenant. Use the form with the identifier for any other tenant. **Example: Connect the OpenAEV of Grand Meridian Hotels to the OpenCTI of Example CERT** Grand Meridian validates its defenses in the default tenant of its OpenAEV, at `https://openaev.example.com`. Example CERT, which serves the hotel chains, runs OpenCTI at `https://opencti.example.com`. In OpenCTI, the administrator creates the service account `OpenAEV Grand Meridian` in the **Connectors** group and keeps its token in the secret `GRAND_MERIDIAN_OPENCTI_TOKEN`. The platform engineer adds to the `openaev` service: ```yaml services: openaev: environment: - OPENAEV_BASE-URL=https://openaev.example.com - OPENAEV_XTM_OPENCTI_2CFFAD3A-0001-4078-B0E2-EF74274022C3_ENABLE=true - OPENAEV_XTM_OPENCTI_2CFFAD3A-0001-4078-B0E2-EF74274022C3_URL=https://opencti.example.com - OPENAEV_XTM_OPENCTI_2CFFAD3A-0001-4078-B0E2-EF74274022C3_TOKEN=${GRAND_MERIDIAN_OPENCTI_TOKEN} ``` After a restart, OpenCTI lists the connector `OpenAEV Coverage - 2cffad3a-0001-4078-b0e2-ef74274022c3`. On the report "Velvet Harbor targets hotel booking systems", **Automated using enrichment** is now offered, and the coverage the SOC creates becomes a scenario in OpenAEV within seconds. ## Check the connection {#check-the-connection} 1. In OpenCTI, the connector **OpenAEV Coverage -** followed by the tenant identifier is listed among the connectors, and active. See [Follow what connectors import](https://filigran.io/docs/opencti/use/ingest/connectors/#follow-what-connectors-import). ![The page of the connector OpenAEV Coverage - 2cffad3a-0001-4078-b0e2-ef74274022c3 in OpenCTI, Started: an internal enrichment with the scope Security-Coverage and the automatic trigger, last seen on April 12, 2026.](https://filigran.io/docs/shots/cc4380e032413fa47cde5032c9c5b7b9204e13999f72986c99d1f31a051c787c.webp) 2. On a threat in OpenCTI, **Add Security coverage** offers **Automated using enrichment**: it stays greyed while no enrichment connector for security coverage is available. 3. After the first coverage, the scenario appears in **Scenarios** in OpenAEV, and the **Enrichment connectors** panel of the coverage in OpenCTI shows the request as processed. If the connector does not show, read the logs of OpenAEV: a failed registration logs `OpenCTI connector registration or ping failed`, with the tenant and the reason. A wrong token or an unreachable address are the usual causes. While a tenant has no registered connector, the results of its simulations wait, and leave once it registers. To stop the link for a tenant, set its `enable` key to `false` and restart OpenAEV. ## What's next {#what-s-next} - [Turn an OpenCTI security coverage into a scenario](https://filigran.io/docs/openaev/use/scenarios/from-opencti/), to aim the scenarios at the right assets. - [Connect the modules to each other](https://filigran.io/docs/deploy/configure/connect-modules/), for the links between OpenAEV, OpenCTI and XTM One in xtm-docker. - [Check your defenses against the threats you track](https://filigran.io/docs/workflows/threat-informed-validation/), the whole loop across the XTM platform. --- # Build dashboards of your validation results > Create a custom dashboard of your OpenAEV results, scope it to a scenario or a simulation, filter it by period, and make it the dashboard of Home or of the Statistics tab. - URL: https://filigran.io/docs/openaev/use/dashboards/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, SOC managers - Type: How-to guide The home dashboard shows your whole platform. A custom dashboard shows what matters to one audience: the detection rate of the SOC against one threat, the trend of a scenario run every week, a summary for the CISO. You build it from widgets, give it parameters so that it can follow any scenario or simulation, and choose where it opens: on **Home**, or in the **Statistics** tab of every scenario and simulation. This page creates the dashboard and decides where it shows; the widgets themselves are in [Create the widgets of a dashboard](https://filigran.io/docs/openaev/use/dashboards/widgets/). **Diagram: Home opens the user's dashboard, else the tenant's, else the platform default, and each Statistics tab its own dashboard, else the tenant default** - Chosen by: Your profile (Home dashboard), Settings > Parameters (Home, scenario, simulation), Statistics tab (Change dashboard) - Custom dashboards: Dashboards (Widgets, parameters, time range) - Shown on: Home (Else the Platform default), Scenario and simulation (Statistics tab) Connections: - Your profile → Dashboards: picks first - Settings > Parameters → Dashboards: picks next - Statistics tab → Dashboards: picks first - Dashboards → Home: opens - Dashboards → Scenario and simulation: opens ## Before you start {#before-you-start} - Your role has **Access dashboards** to see **Dashboards**, **Manage dashboards** to create dashboards, change them and add widgets, and **Delete dashboards** to delete them. - To choose the dashboards every user gets by default, your role also needs **Manage tenant settings**. ## Create a dashboard {#create-a-dashboard} 1. Open **Dashboards** and click **Create**. The **Create a custom dashboard** panel opens on its **General** tab. 2. Enter the **Name** and a **Description** that says who the dashboard is for. 3. To make the dashboard follow a scenario or a simulation, open the **Parameters** tab, click **Add**, and choose the **Parameter Type**: **scenario** or **simulation**. Give it a **Parameter Name**, the label the selector will show above the widgets. 4. Click **Create**. The dashboard opens, empty. 5. Click **Create** in the dashboard's header to add its first widget: see [Create the widgets of a dashboard](https://filigran.io/docs/openaev/use/dashboards/widgets/). ![The Parameters tab of the Create a custom dashboard panel, with one parameter named Weekly run of the type simulation, and the Cancel and Create buttons.](https://filigran.io/docs/shots/198e4b94c08c5d18a0e311aaa64f959cc1e9c0d1b73419c10594bd745c175dd8.webp) Drag a widget to move it, and drag its bottom right corner to resize it. The layout is saved as you go, for every user of the dashboard. Only the dashboard's own page can be arranged: on **Home** and in the **Statistics** tab, it is read-only. ## Filter by period and by scenario {#filter-by-period-and-by-scenario} The top of a dashboard holds its filters: - **Time range** applies to every widget that follows the dashboard: **Last 3 months** by default, from **Last 24 hours** to **All time**. **Custom range** adds a **Start date** and an **End date**. - Each parameter adds a selector, named after it, with the scenarios or simulations to choose from. The widgets that use the parameter are computed for the one you pick. A widget can also keep its own period instead of the dashboard's: see [Create the widgets of a dashboard](https://filigran.io/docs/openaev/use/dashboards/widgets/). Click a bar, a slice, a cell or a number to open the list of what it counts, such as the expectations, findings or simulations behind it. ## Read the resilience gauges {#read-the-resilience-gauges} A **Resilience Gauge** widget, such as the **Prevention**, **Detection**, **Vulnerability** and **Human Response** gauges of the **Platform default** home dashboard, sorts the expectations of its series by result. Its ring shows one arc per result: **Success** in green, **Failed** in red, **Pending** in grey, and **Partial** in an arc of its own. The legend under the ring lists **Partial** and **Pending** only when there are some. - The number in the middle, **Resilience**, is the share of successes among every expectation of the gauge, pending ones included. It matches the green arc. - Its color goes from red below 25 to green from 75. While no expectation has a result yet, every one still pending, the gauge stays grey instead of red. - Click the ring to list every expectation behind it, or a result of the legend to list only those. For example, after a weekly run of `Velvet Harbor replay`, a **Detection** gauge with 3 **Success**, 1 **Failed** and 2 **Pending** reads 50%. The **Results** gauges of a simulation compute the same number, so the home dashboard and the simulation agree: see [Read the results](https://filigran.io/docs/openaev/use/simulations/#read-the-results). ## Choose where a dashboard opens {#choose-where-a-dashboard-opens} | Where | Which dashboard it shows | Who chooses | | --- | --- | --- | | **Home** | The user's own **Home dashboard**, else the tenant's **Home dashboard**, else the **Platform default** dashboard | Each user in their profile; an administrator for the tenant | | **Statistics** tab of a scenario | The scenario's own dashboard, else the tenant's **Default scenario dashboard** | Anyone who can change the scenario; an administrator for the tenant | | **Statistics** tab of a simulation | The simulation's own dashboard, else the tenant's **Default simulation dashboard** | Anyone who can change the simulation; an administrator for the tenant | ![The home dashboard of the tenant: the exposure command center with a score of 40 At risk, 1 prevention and 2 detections, the Prevention, Detection, Vulnerability and Human response gauges, and the performance by security domain, 75% for Endpoint.](https://filigran.io/docs/shots/878e8d344c41cc941242da6898f675d9b432bd56bf74713d1f6ee57eb3551492.webp) - The tenant's three defaults are in **Settings > Parameters**: see [Set the name, look and home page of a tenant](https://filigran.io/docs/openaev/administer/parameters/). - Your own home dashboard is in your profile: see [Set up your profile](https://filigran.io/docs/openaev/use/profile/). - To give one scenario or simulation its own dashboard, open its **Statistics** tab, click **Change dashboard** (or **Select a dashboard** when none shows), choose the **Dashboard**, and click **Continue**. A simulation created from a scenario starts with the tenant's **Default simulation dashboard**. In the **Statistics** tab, a **Scenario** or **Simulation** parameter takes the current scenario or simulation by itself: one dashboard serves every scenario. ## Share and manage dashboards {#share-and-manage-dashboards} **Dashboards** lists every dashboard of the tenant, as cards or as a list. The starter pack, which OpenAEV loads into each new tenant, brings six of them: **Technical home**, **Technical scenario** and **Technical simulation** for technical validation, and their **Tabletop Exercice** counterparts for table-top exercises. ![The Custom dashboards of the tenant as cards: Tabletop Exercice home, scenario and simulation, and Technical home, scenario and simulation, with the Import a custom dashboard and Create buttons.](https://filigran.io/docs/shots/8a2775f0ef6e1bb1e38389d9bce248a279b15d9ad360a407df624746d69e5f81.webp) The menu of a dashboard holds: - **Update**: its name, description and parameters. - **Export**: a ZIP file of the dashboard and its widgets, to load on another platform with **Import a custom dashboard** at the top of the list. - **Delete**: not offered for the dashboard the tenant uses as its **Home dashboard**. Choose another home dashboard first. **Example: A dashboard of the Velvet Harbor replay for the SOC** Grand Meridian Hotels runs `Velvet Harbor replay` every Wednesday. The SOC manager wants to follow what Meridian EDR misses, run after run. The validation engineer creates the dashboard: | Field | Value | | --- | --- | | **Name** | `Velvet Harbor replay` | | **Description** | Detection and prevention of each weekly run, for the SOC | | Parameter | **Parameter Type** **simulation**, **Parameter Name** `Weekly run` | Then three widgets: a **Security Coverage** matrix of the detection expectations, a **Posture Radar** by security platform, and a **Line** of failed expectations over time. In **Settings > Parameters**, the administrator makes it the **Default simulation dashboard**. From then on, the **Statistics** tab of each new simulation opens on it, scoped to that run: on 21 January 2026, the SOC sees that the collection of guest records on the booking database server, Data from Local System (T1005), is still not detected. > **With XTM One: Turn your results into a report** > > When OpenAEV is registered with XTM One, **Ask Ariane** in the top bar can turn your results into a report or a deck for a review meeting, which you download as PDF or PowerPoint. See [XTM One in OpenAEV](https://filigran.io/docs/xtm-one/use/in-openaev/). ## What's next {#what-s-next} - [Create the widgets of a dashboard](https://filigran.io/docs/openaev/use/dashboards/widgets/): choose what each widget shows. - [How a scenario becomes a simulation](https://filigran.io/docs/openaev/concepts/scenarios-simulations/): what the **Statistics** tab compares. - [How you validate your defenses in OpenAEV](https://filigran.io/docs/openaev/concepts/validation/): the home dashboard and its widgets. --- # Create the widgets of a dashboard > Add a widget to an OpenAEV dashboard in three steps, its visualization, the data it counts and how it breaks them down, and make it follow the dashboard's period and parameters. - URL: https://filigran.io/docs/openaev/use/dashboards/widgets/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, SOC managers - Type: How-to guide A widget answers one question on a dashboard: how many detection expectations failed this week, which techniques of the threat get through, which security platform misses the most. You build it in three steps: the **Visualization**, which decides how it looks; the **Dimensions**, which decide what it counts; and the **Parameters**, which decide how it breaks the data down and over which period. This page goes through the three steps and the choices of each. Creating the dashboard itself is in [Build dashboards of your validation results](https://filigran.io/docs/openaev/use/dashboards/). **Diagram: A widget is built in three steps, how it looks, what it counts, and how it breaks the data down, then follows the dashboard's filters** - Visualization: Visualization (Matrix, chart, list, number) - Dimensions: Dimensions (Entity type and filters per series) - Parameters: Parameters (Breakdown, interval, time range) - Dashboard: Widget (Placed at the end of the grid), Dashboard filters (Time range, scenario, simulation) Connections: - Visualization → Dimensions: next - Dimensions → Parameters: Validate - Parameters → Widget: Create - Dashboard filters → Widget: followed ## Before you start {#before-you-start} - Your role has **Manage dashboards**. - The dashboard exists. If the widget must follow a scenario or a simulation, the dashboard has a **Scenario** or **Simulation** parameter. ## Add a widget {#add-a-widget} 1. Open the dashboard and click **Create** in its header. The widget dialog opens on **Visualization**. 2. Click the visualization that answers your question (see the table below). The dialog moves on to **Dimensions**. 3. Choose the **Entity type** the widget counts, give the series a **Label (entities)**, and add the filters that narrow it. A visualization with several series, such as a bar chart comparing detected and not detected, takes one series per **Add**. Click **Validate**. 4. On **Parameters**, enter the **Title**, then the breakdown, the period and the options of the visualization (see [Set the parameters](#set-the-parameters)). 5. Click **Create**. The widget lands at the end of the dashboard, where you can move and resize it. ![The first step of the widget dialog, Visualization, with its thirteen choices from Command Center to Number, before the Dimensions and Parameters steps.](https://filigran.io/docs/shots/cfe3d4fc3945054e139a77fb5688f234065c172bc852dacc830215fdb88d6917.webp) To change or remove a widget, open its menu and choose **Update** or **Delete**. ## Choose the visualization {#choose-the-visualization} | Visualization | What it shows | Series | | --- | --- | --- | | **Command Center** | The adversarial exposure score, with the validations your controls stopped and those that got through, around your security platforms | Up to 2 | | **Exposure Score** | The adversarial exposure score alone, from 0 to 100: the share of validations not stopped. A higher score is worse: **Low exposure** up to 24, **Moderate exposure** up to 49, **High exposure** up to 74, then **Critical exposure** | Up to 2 | | **Resilience Gauge** | The share of successful expectations of one series, such as every prevention expectation | 1 | | **Posture Radar** | Successes and failures across your security platforms | Up to 5 | | **Security Domains** | The success rate of each expectation type in each security domain. See [How security domains group your results](https://filigran.io/docs/openaev/concepts/security-domains/) | 1 | | **Security Coverage** | The MITRE ATT&CK matrix, each technique colored by the expectations it passed and failed | Up to 2 | | **Attack Paths** | The techniques of the attacks played, linked in the order they ran | Up to 2 | | **Vertical Bar**, **Horizontal Bar** | Counts broken down by a property, or by period for a vertical bar | Up to 5, up to 2 | | **Line** | Counts over time | Up to 5 | | **Donut** | The share of each value of a property | 1 | | **List** | The entities themselves, in columns you choose | 1 | | **Number** | One count, with its change over the period | 1 | ## Choose what it counts {#choose-what-it-counts} On **Dimensions**, the **Entity type** decides what the widget counts and the properties it can break down by: | **Entity type** | Counts | Breaks down by | | --- | --- | --- | | **Inject expectations** | The results of injects: the most common choice to measure your defenses | Status, type, scenario, simulation, asset, asset group, security platform | | **Finding** | What injects discovered: CVEs, open ports, credentials | Type, endpoint, scenario, simulation | | **asset** | Your assets | Category, platform, architecture, hostname, IP addresses | | **Vulnerable endpoint** | The endpoints where a vulnerability was found | Platform, architecture, agent status and privileges | | **Inject** | The injects played | Status, tags, assets, asset groups, teams, platforms, scenario, simulation | | **Simulation**, **Scenario** | Your runs and your scenarios | Status, tags, assets, asset groups, teams, platforms | The filters of a series take fixed values, such as the type **Detection** and the status **Failed**. A filter on the scenario or the simulation can also take a dashboard parameter, listed under **Parameters**: the widget then follows the selector at the top of the dashboard, and the **Statistics** tab of each scenario or simulation. Widgets show sensitive finding values masked: a credential found by an inject shows its user name and the first characters of its secret only, such as `night.audit:Me******`. A filter on a finding value matches that masked form, never the hidden part. ## Set the parameters {#set-the-parameters} **Parameters** adapts to the visualization: - **Title**: what the dashboard shows above the widget. Left empty, seven visualizations show a title of their own: **Performance by security domain** for **Security Domains**, **Exposure command center** for **Command Center**, **Resilience** for **Resilience Gauge**, **Exposure score**, **Posture radar**, **Security Coverage** and **Attack Path** for the others of the table's first seven. The charts, lists and numbers show none. - **Mode**, for the charts that offer both: **structural** breaks the data down by a property, chosen in **Breakdown by**; **temporal** spreads it over time, by the **Date attribute** you choose and an **Interval** of a **Day**, a **Week**, a **Month**, a **Quarter** or a **Year**. - **Number of results**: how many bars, slices or values to show, from 1 to 100. A list shows up to 1,000 lines. - **Time range**: **Dashboard time range** by default, so the widget follows the period chosen at the top of the dashboard. Choose a fixed period, such as **Last 6 months**, for a widget that must keep its own, or **Custom range** with a **Start date** and an **End date**. - For a **List**: **Customize columns** to pick and order its columns, then the **Sort field** and its **Direction**. **Example: Follow what Meridian EDR misses, week after week** On the dashboard `Velvet Harbor replay`, which has the **Simulation** parameter `Weekly run`, the SOC manager of Grand Meridian Hotels adds two widgets: | Step | **Security Coverage** widget | **Line** widget | | --- | --- | --- | | **Entity type** | **Inject expectations** | **Inject expectations** | | Series | `Detected`: type **Detection**, status **Success**, simulation `Weekly run`; `Not detected`: type **Detection**, status **Failed**, simulation `Weekly run` | `Not detected`: type **Detection**, status **Failed**, scenario `Velvet Harbor replay` | | **Title** | `Velvet Harbor techniques, this run` | `Missed detections per week` | | **Mode** | | **temporal**, **Interval** **Week** | | **Time range** | **Dashboard time range** | **Last 6 months** | The matrix follows the run chosen in `Weekly run`, and shows Data from Local System (T1005) in red on 21 January 2026. The line keeps six months whatever the run, and shows the misses dropping after the SOC's new rules of February. ## What's next {#what-s-next} - [Build dashboards of your validation results](https://filigran.io/docs/openaev/use/dashboards/): where the dashboard opens, and its parameters. - [How an attack becomes injects and expectations](https://filigran.io/docs/openaev/concepts/injects-expectations/): what a successful or failed expectation means. - [How security domains group your results](https://filigran.io/docs/openaev/concepts/security-domains/): read the **Security Domains** widget. --- # Choose between the OpenAEV agent and your EDR > Compare the executors that run attack actions on your endpoints, the OpenAEV agent or the EDR you already run, and learn how they enroll endpoints and run implants. - URL: https://filigran.io/docs/openaev/use/executors/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, platform engineers - Type: Concept To run attack actions on an endpoint, OpenAEV needs an executor there: a program that starts an implant for each inject, and the implant runs the actions. You can install the OpenAEV agent, or reuse the endpoint detection and response (EDR) agent already on your endpoints, driven through its vendor's API, with nothing new to deploy. This page compares the executors and explains how an EDR executor enrolls endpoints and runs implants, so you can choose one and know what to expect from it. The parts of OpenAEV and the path of an inject are in [How OpenAEV works](https://filigran.io/docs/openaev/concepts/architecture/). **Diagram: OpenAEV reaches an endpoint through its own agent or through the API of the EDR already there, and either way an implant runs the actions and reports back** - OpenAEV: Platform (Builds the implant command) - Executors: OpenAEV agent (Fetches its jobs), EDR API (CrowdStrike, MDE, SentinelOne, Cortex, Tanium) - Endpoint: Implant (Runs the actions) Connections: - OpenAEV agent → Platform: fetch jobs - Platform → EDR API: run script - OpenAEV agent → Implant: starts - EDR API → Implant: starts - Implant → Platform: results ## The executors {#the-executors} | Executor | Runs implants through | Enterprise Edition | Set up | | --- | --- | --- | --- | | OpenAEV agent | The OpenAEV agent you install | No | [Install the OpenAEV agent on your endpoints](https://filigran.io/docs/openaev/use/agents/) | | CrowdStrike Falcon | Real Time Response custom scripts | Yes | [Run actions through CrowdStrike Falcon](https://filigran.io/docs/openaev/use/executors/crowdstrike/) | | Microsoft Defender for Endpoint | Live Response library scripts | Yes | [Run actions through Microsoft Defender for Endpoint](https://filigran.io/docs/openaev/use/executors/mde/) | | SentinelOne | Remote Ops scripts | Yes | [Run actions through SentinelOne](https://filigran.io/docs/openaev/use/executors/sentinelone/) | | Palo Alto Cortex | Agent Script Library scripts | Yes | [Run actions through Palo Alto Cortex](https://filigran.io/docs/openaev/use/executors/palo-alto-cortex/) | | Tanium | Tanium packages | Yes | [Run actions through Tanium](https://filigran.io/docs/openaev/use/executors/tanium/) | | Caldera | MITRE Caldera agents | No | [Run actions through Caldera](https://filigran.io/docs/openaev/use/executors/caldera/) | Every executor works on Windows, Linux and macOS. Without an Enterprise Edition license, the agents of an EDR executor show an **EE** chip on their endpoint's page, and the injects that target them fail with a `LICENSE RESTRICTION` trace. How the actions run differs between the two families: | | OpenAEV agent | EDR executors | | --- | --- | --- | | Rights of the actions | Those of the installation mode you choose: a standard user, an administrator, or SYSTEM and root | Always SYSTEM on Windows, root on Linux and macOS | | Agents per endpoint | Several, one per mode and user, to compare levels of rights | One per executor. The executor finds the endpoint by the EDR's device ID, then by its MAC address, so an endpoint that already has an OpenAEV agent gets the EDR's agent next to it | | Endpoints in OpenAEV | Each agent enrolls its endpoint when it starts | The executor imports the endpoints of the groups you choose in the EDR | | What to deploy | The agent, with its antivirus exclusion | Two scripts or packages in the EDR console, and an API key | Choose the OpenAEV agent to simulate an attacker with limited rights, or on endpoints without an EDR. Choose your EDR executor to cover many endpoints at once without installing anything on them, when the attacker you simulate has full control of the machine. ## How an EDR executor works {#how-an-edr-executor-works} An EDR executor runs inside the platform. Once started, it works in three loops: 1. **It imports the endpoints.** Every 20 minutes by default, it reads the endpoints of the groups you named from the EDR's API. Each one becomes an endpoint in **Assets**, with an agent of the executor, and each group becomes an asset group in **Asset groups**, named after it. The last time the EDR saw the endpoint gives the agent its **Last Seen**: an agent unseen for one hour is inactive. 2. **It runs the injects.** When an inject targets these endpoints, the platform builds the command that downloads and starts the implant, encodes it in Base64, and asks the EDR's API to run your OpenAEV script with it, in batches every 5 seconds to respect the API's limits. The script decodes the command and runs it. The implant downloads into `runtimes/implant-` under `C:\Program Files (x86)\Filigran\OAEV Agent` on Windows or `/opt/openaev-agent` on Linux and macOS, runs the actions, and sends its results to OpenAEV. 3. **It cleans the endpoints.** It sends a command that deletes the folders under `runtimes` and `payloads` older than 24 hours: every 8 hours by default for CrowdStrike Falcon, Palo Alto Cortex and Tanium, every day at 03:00 for SentinelOne, and before each inject for Microsoft Defender for Endpoint. So each endpoint must reach the OpenAEV URL over HTTPS, `openaev.agent-url` or `openaev.base-url` when the first is not set, from the [`openaev` block](https://filigran.io/docs/reference/openaev/configuration/#openaev). The EDR never needs to reach OpenAEV: the platform calls its API. On Windows, Microsoft Defender for Endpoint and Palo Alto Cortex end every process their remote session started. For these two, the command starts the implant from a scheduled task of the SYSTEM account, `OpenAEV-Inject--Agent-`, which deletes itself when the implant ends. ## Where an executor is configured {#where-an-executor-is-configured} You deploy an EDR executor from the integrations catalog of OpenAEV, like any other integration. It runs inside the platform, so XTM Composer is not needed. Deploying, configuring, starting and stopping it requires an Enterprise Edition license and the **Manage tenant settings** capability. Each executor's page gives the steps and the fields of its form. Each executor also has a block of the configuration: [`executor.crowdstrike`](https://filigran.io/docs/reference/openaev/configuration/#executor-crowdstrike), [`executor.mde`](https://filigran.io/docs/reference/openaev/configuration/#executor-mde), [`executor.sentinelone`](https://filigran.io/docs/reference/openaev/configuration/#executor-sentinelone), [`executor.paloaltocortex`](https://filigran.io/docs/reference/openaev/configuration/#executor-paloaltocortex), [`executor.tanium`](https://filigran.io/docs/reference/openaev/configuration/#executor-tanium) and [`executor.caldera`](https://filigran.io/docs/reference/openaev/configuration/#executor-caldera). The platform reads these keys once, the first time it starts: when the block's `enable` key is `true`, it turns them into a deployed executor, and it ignores them afterwards. Change an executor in the interface, not in the configuration. Microsoft Defender for Endpoint is set up in the interface only: its keys never create it. ![The executors of Integrations, each with its Deploy button: Caldera, CrowdStrike, Microsoft Defender for Endpoint, Palo Alto Cortex, SentinelOne and Tanium, which register their managed hosts as OpenAEV executors.](https://filigran.io/docs/shots/48d462eaf76c5b7d815375f81ed348216ca30004696fe99952785c3cfe7fc9d1.webp) ## When an inject fails on an EDR executor {#when-an-inject-fails-on-an-edr-executor} 1. Run the inject and wait until it fails or times out. 2. In the EDR console, look for the execution of your OpenAEV script. When there is none, the problem is upstream: the API key, the script's name or ID, the endpoint's group, or the executor's form. 3. Copy the command OpenAEV sent and decode it from Base64. Check its paths for the endpoint's system, its parameters and its quoting. 4. Run the decoded command on the endpoint and keep its whole output: it shows why the implant did not start or did not report. An agent can be active and its inject still end in `TIMEOUT`: active means the EDR saw the endpoint in the last hour, while `TIMEOUT` means the implant did not report to OpenAEV within 10 minutes, the default of `inject.execution.threshold.minutes` in the [`inject` block](https://filigran.io/docs/reference/openaev/configuration/#inject). When the command ran, check that the endpoint reaches the OpenAEV URL (network, proxy, firewall, certificate) and that no antivirus deletes the implant. Inject results are explained in [Inject status](https://filigran.io/docs/openaev/use/injects/status/). ## What's next {#what-s-next} - [Install the OpenAEV agent on your endpoints](https://filigran.io/docs/openaev/use/agents/) - [Run actions through CrowdStrike Falcon](https://filigran.io/docs/openaev/use/executors/crowdstrike/), [Microsoft Defender for Endpoint](https://filigran.io/docs/openaev/use/executors/mde/), [SentinelOne](https://filigran.io/docs/openaev/use/executors/sentinelone/), [Palo Alto Cortex](https://filigran.io/docs/openaev/use/executors/palo-alto-cortex/) or [Tanium](https://filigran.io/docs/openaev/use/executors/tanium/) - [How collectors measure what your security tools saw](https://filigran.io/docs/openaev/use/collectors/): read back what the EDR detected. --- # Run actions through Caldera > Connect OpenAEV to a MITRE Caldera server, install Caldera agents on your endpoints from OpenAEV, and run attack actions through them. - URL: https://filigran.io/docs/openaev/use/executors/caldera/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, platform engineers - Type: How-to guide The Caldera executor runs OpenAEV implants through the agents of a [MITRE Caldera](https://caldera.mitre.org/) server. OpenAEV gives you the command that installs a Caldera agent on each endpoint, imports the agents Caldera knows as endpoints, and, for each inject, asks Caldera to run an ability on the agent that starts the implant. Caldera serves only as a neutral way to reach the endpoints: the attack actions come from the Threat Arsenal of OpenAEV, like with any other executor. This page deploys Caldera next to OpenAEV, connects them, and installs the agents. To compare it with the OpenAEV agent and the EDR executors, see [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/). **Diagram: OpenAEV asks Caldera to run an ability on the Caldera agent of the endpoint, which starts the OpenAEV implant** - OpenAEV: Caldera executor (Reads the agents every minute), Endpoints (One per Caldera agent) - Caldera: Caldera server (Abilities, group red) - Endpoint: Caldera agent (Installed from OpenAEV), Implant (Runs the actions) Connections: - Caldera executor → Caldera server: run ability - Caldera executor → Endpoints: imports - Caldera agent → Caldera server: beacons - Caldera agent → Implant: starts - Implant → Endpoints: results ## Before you start {#before-you-start} - A Caldera server that OpenAEV reaches, and that the endpoints reach too, at an address of its own if needed. The steps below deploy one. - To deploy the executor in the interface: an Enterprise Edition license and the **Manage tenant settings** capability. Without Enterprise Edition, the executor can only come from the configuration of a new platform: see the example. - To install the agents: the **Install agent** capability, and administrator rights on the endpoints. ## Deploy Caldera {#deploy-caldera} Add a Caldera service to the `docker-compose.yml` of OpenAEV, as in the [docker-compose.caldera.yml](https://github.com/OpenAEV-Platform/docker/blob/master/docker-compose.caldera.yml) of the OpenAEV Docker repository: ```yaml services: caldera: image: openaev/caldera-server:5.1.0 restart: always ports: - "8888:8888" environment: CALDERA_URL: http://localhost:8888 volumes: - type: bind source: caldera.yml target: /usr/src/app/conf/local.yml ``` Caldera reads its settings from a file. Download [caldera.yml](https://github.com/OpenAEV-Platform/docker/blob/master/caldera.yml) next to `docker-compose.yml` and change the values its comments mark **Change this**: the passwords of the `red` and `blue` users, the API keys `api_key_red`, `api_key_blue` and `api_key`, `crypt_salt`, `encryption_key`, the SSH tunnel password, and `app.contact.http`, the address where the agents reach Caldera. Then run `docker compose up -d`. ## Connect OpenAEV to Caldera {#connect-openaev-to-caldera} 1. Open **Integrations**, then the **Available** tab. 2. Open **Caldera Executor** and click **Deploy**. The **Create a new connector instance** panel opens. 3. Fill in the form. Each field is named after its configuration key: | Field | What to enter | | --- | --- | | **Display name** | The executor's name in OpenAEV, `Caldera` by default | | **Executor Caldera Url** | The address where OpenAEV reaches Caldera, such as `http://caldera:8888` on the Docker network | | **Executor Caldera Public Url** | The address where the endpoints reach Caldera: the same as `app.contact.http` | | **Executor Caldera Api Key** | The red API key of `caldera.yml`, `api_key_red` | 4. Click **Create**. 5. In the **Deployed** tab, open the executor and click **Start**. When started, the executor creates in Caldera the abilities that start the implant of each injector, then reads the agents of Caldera every 60 seconds. When Caldera does not answer, OpenAEV shows the banner **Executor Caldera is not responding, your exercises may be impacted.** ![The Create a new connector instance panel of the Caldera executor: its display name and instance name, the settings it needs, each with its help.](https://filigran.io/docs/shots/4d636cbd4141265742397bd12f5245dcff2b045b2325a86d429be296d501a501.webp) ## Install the Caldera agent on an endpoint {#install-the-caldera-agent-on-an-endpoint} 1. In the top bar, click the **Install simulation agents** icon, then **Install Caldera**. 2. On **Choose your platform**, click **Install Windows agent**, **Install Linux agent** or **Install MacOS agent**. On macOS, choose the processor, **x86_64** or **arm64**. 3. Under **Step 1 - Install the agent**, click **Copy** or **Download**, then run the command on the endpoint: in a PowerShell prompt run as administrator on Windows, as root on Linux and macOS. 4. Under **Step 2 - Add antivirus exclusions**, copy the folder, the file and the hashes shown, and add them as exclusions in your antivirus. Antivirus tools detect and block the Caldera agent, Sandcat, by default. The command downloads the agent from OpenAEV, in `C:\Program Files (x86)\Filigran\OAEV Caldera` on Windows and `/opt/openaev-caldera-agent` on Linux and macOS, and starts it in the Caldera group `red`. On macOS, the command creates `/opt/openaev` but writes the agent to `/opt/openaev-caldera-agent`: create that folder first, with `sudo mkdir -p /opt/openaev-caldera-agent`. On Windows, a scheduled task, `OpenAEVCaldera`, starts it again at each logon. On Linux and macOS, it does not start again after a reboot: add it to `rc.local` or an equivalent to keep it running. ## Check that it works {#check-that-it-works} Within a minute, open **Assets**: the endpoint shows in the **Endpoints** list with **Caldera** in its **Executors** column. In Caldera, the agent shows in the `red` group. To uninstall the agent on Windows, run in a PowerShell prompt as administrator: ```powershell schtasks /delete /tn OpenAEVCaldera Stop-Process -Name oaev-agent-caldera rm -force -Recurse "C:\Program Files (x86)\Filigran\OAEV Caldera" ``` **Example: A Caldera lab for Grand Meridian's purple team** Grand Meridian's purple team already runs Caldera at `https://caldera.grand-meridian.example` for its own operations, and the platform runs OpenAEV without an Enterprise Edition license. The platform engineer adds the Caldera executor to the configuration of a new OpenAEV instance before its first start, which turns it into a deployed executor: ```bash EXECUTOR_CALDERA_ENABLE=true EXECUTOR_CALDERA_URL=http://caldera:8888 EXECUTOR_CALDERA_PUBLIC-URL=https://caldera.grand-meridian.example EXECUTOR_CALDERA_API-KEY=${CALDERA_API_KEY_RED} ``` On a running platform with Enterprise Edition, the same values go in the form of **Caldera Executor**. The validation engineer then installs the Caldera agent on a front-desk workstation of the Paris hotel, `fd-paris-02`, adds the exclusions of **Step 2 - Add antivirus exclusions** to Meridian EDR, and replays Velvet Harbor's PowerShell actions on it. The keys are in the [`executor.caldera` block](https://filigran.io/docs/reference/openaev/configuration/#executor-caldera). ## What's next {#what-s-next} - [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/): the other executors, implant cleanup and troubleshooting. - [Install the OpenAEV agent on your endpoints](https://filigran.io/docs/openaev/use/agents/): the native agent, which runs as a service on every system. - [Threat Arsenal](https://filigran.io/docs/openaev/use/threat-arsenal/): the actions an executor runs. --- # Run actions through CrowdStrike Falcon > Let OpenAEV run attack actions on the hosts of your CrowdStrike Falcon host groups, through Real Time Response scripts, without installing the OpenAEV agent. - URL: https://filigran.io/docs/openaev/use/executors/crowdstrike/ - Products: OpenAEV 3.261118.0 - Edition: requires an Enterprise Edition license - For: platform engineers, security validation engineers - Type: How-to guide The CrowdStrike Falcon executor runs OpenAEV implants through the Falcon sensor already installed on your hosts. OpenAEV imports the hosts of the host groups you choose, then, for each inject, asks Falcon's Real Time Response to run a script of yours that starts the implant. This page prepares Falcon, deploys the executor in OpenAEV and checks that the hosts show up. How EDR executors work, and when to prefer the OpenAEV agent, is in [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/). **Diagram: OpenAEV imports the hosts of your Falcon host groups, then asks Real Time Response to run your script, which starts the implant on the host** - OpenAEV: CrowdStrike executor (Runs inside the platform), Endpoints (One per host) - CrowdStrike Falcon: Falcon API (Host groups, Real Time Response), Response script (Decodes the command) - Host: Implant (Runs as SYSTEM or root) Connections: - CrowdStrike executor → Falcon API: list hosts - CrowdStrike executor → Endpoints: imports - Falcon API → Response script: runscript - Response script → Implant: starts - Implant → Endpoints: results ## Before you start {#before-you-start} - OpenAEV runs with an Enterprise Edition license, and your role has the **Manage tenant settings** capability. - In Falcon, you can create response scripts, host groups, response policies and API clients. - The hosts reach the OpenAEV URL over HTTPS: see [How an EDR executor works](https://filigran.io/docs/openaev/use/executors/#how-an-edr-executor-works). ## Prepare CrowdStrike Falcon {#prepare-crowdstrike-falcon} ### Create the two response scripts {#create-the-two-response-scripts} OpenAEV sends each command in Base64 to one of two custom scripts, which decode it and run it. In Falcon, go to **Host setup and management > Response and containment > Response scripts and files** and create both scripts. You can name them as you like: their names go in the executor's form. | Attribute | Unix script (Linux and macOS) | Windows script | | --- | --- | --- | | Name | `OpenAEV Subprocessor (Unix)` | `OpenAEV Subprocessor (Windows)` | | Shell type | bash | PowerShell | | Script access | Users with the RTR Administrator or RTR Active Responder role | Users with the RTR Administrator or RTR Active Responder role | | Shared with workflows | Yes | Yes | The Unix script: ```bash command=`echo $1 | grep -o '"command":"[^"]*' | grep -o '[^"]*$'` echo $command | base64 -d | sh ``` The Windows script: ```powershell $command = $args[0] | ConvertFrom-Json | Select -ExpandProperty 'command'; cmd.exe /d /c powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -NonInteractive -NoProfile -encodedCommand $command ``` Both take the same input schema, with one required string, `command`: ```json { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "command": {"type": "string"} }, "required": ["command"] } ``` ### Group the hosts and allow custom scripts {#group-the-hosts-and-allow-custom-scripts} 1. In **Host setup and management > Host groups**, create a host group with the hosts your simulations target, and copy its ID. 2. In **Host setup and management > Response policies**, choose each platform of your hosts in the top-left selector, then create a policy or open an existing one. 3. Turn on **Custom Scripts**, and **Falcon Scripts** when the option exists, then click **Save**. 4. In the **Assigned host groups** tab, add your host group. The policy applies within a few minutes: the **Pending** column then shows 0. ### Create an API client {#create-an-api-client} In Falcon, create an API client with the **API integrations**, **Hosts**, **Host groups** and **Real time response** scopes, and keep its client ID and secret. OpenAEV uses it to read the host groups and their hosts, open a Real Time Response session on a host and run your script there. ## Deploy the executor in OpenAEV {#deploy-the-executor-in-openaev} 1. Open **Integrations**, then the **Available** tab. 2. Open **CrowdStrike Executor** and click **Deploy**. The **Create a new connector instance** panel opens. 3. Fill in the form. Each field is named after its configuration key: | Field | What to enter | | --- | --- | | **Display name** | The executor's name in OpenAEV, `CrowdStrike` by default | | **Executor Crowdstrike Client Id** and **Executor Crowdstrike Client Secret** | The client ID and secret of your API client | | **Executor Crowdstrike Host Group** | The ID of your host group, or several IDs separated by commas | | **Executor Crowdstrike Windows Script Name** and **Executor Crowdstrike Unix Script Name** | The names of your two scripts, `OpenAEV Subprocessor (Windows)` and `OpenAEV Subprocessor (Unix)` by default | 4. Open **Advanced options**: **Executor Crowdstrike Api Url** points to the US-2 cloud, `https://api.us-2.crowdstrike.com`, by default. Enter the API URL of your Falcon cloud. The other options set how often OpenAEV imports the hosts, cleans them and sends commands: their defaults are in the [`executor.crowdstrike` block](https://filigran.io/docs/reference/openaev/configuration/#executor-crowdstrike). 5. Click **Create**. 6. In the **Deployed** tab, open the executor and click **Start**. ![The Create a new connector instance panel of the CrowdStrike executor: its display name and instance name, the settings it needs, each with its help, and the advanced options.](https://filigran.io/docs/shots/9d9739e32e9f1b19e971a3c254077323e3f990f6c2881702f9f1ca436e327ab4.webp) ## Check that it works {#check-that-it-works} Within a minute of the start, open **Assets**: the hosts of your host groups show in the **Endpoints** list, with **CrowdStrike** in their **Executors** column. **Asset groups** has a group named after each host group. The executor imports the hosts again every 20 minutes, so a host you add to the group in Falcon shows in OpenAEV at the next import. Then run an atomic test on one host, for example a harmless command, and look for the session of your script in Falcon's Real Time Response audit. When nothing runs, follow [When an inject fails on an EDR executor](https://filigran.io/docs/openaev/use/executors/#when-an-inject-fails-on-an-edr-executor). **Example: Replay Velvet Harbor through Meridian EDR** Meridian EDR, the endpoint detection of Grand Meridian Hotels, is a CrowdStrike Falcon tenant in the EU-1 cloud. The validation engineer wants to replay Velvet Harbor's PowerShell loader on the Paris front-desk workstations without installing anything new on them. In Falcon, the platform engineer creates the two scripts with their default names, a host group `Front desk - Paris` with ID `5f2c8e7a91d44b6c8a3e0d17b9c2f461`, assigns it to a Windows response policy that allows custom scripts, and creates an API client. In OpenAEV, the form gets: | Field | Value | | --- | --- | | **Display name** | `Meridian EDR` | | **Executor Crowdstrike Client Id** | The client ID, kept in the vault as `MERIDIAN_FALCON_CLIENT_ID` | | **Executor Crowdstrike Client Secret** | The secret, kept as `MERIDIAN_FALCON_CLIENT_SECRET` | | **Executor Crowdstrike Host Group** | `5f2c8e7a91d44b6c8a3e0d17b9c2f461` | | **Executor Crowdstrike Api Url** | `https://api.eu-1.crowdstrike.com` | On a new platform, the same values can come from its configuration instead. The platform reads them at its first start only: ```bash EXECUTOR_CROWDSTRIKE_ENABLE=true EXECUTOR_CROWDSTRIKE_API-URL=https://api.eu-1.crowdstrike.com EXECUTOR_CROWDSTRIKE_CLIENT-ID=${MERIDIAN_FALCON_CLIENT_ID} EXECUTOR_CROWDSTRIKE_CLIENT-SECRET=${MERIDIAN_FALCON_CLIENT_SECRET} EXECUTOR_CROWDSTRIKE_HOST-GROUP=5f2c8e7a91d44b6c8a3e0d17b9c2f461 ``` After **Start**, the front-desk workstations of the Paris hotel show in **Assets** with the **Meridian EDR** executor, and the asset group `Front desk - Paris` holds them. The Velvet Harbor simulation targets this group, and Falcon runs each action as SYSTEM. ## What's next {#what-s-next} - [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/): implant cleanup and troubleshooting. - [How collectors measure what your security tools saw](https://filigran.io/docs/openaev/use/collectors/): add the CrowdStrike collector, so Falcon's detections fill the expectations. - [Inject status](https://filigran.io/docs/openaev/use/injects/status/): understand the results and timeouts of injects. --- # Run actions through Microsoft Defender for Endpoint > Let OpenAEV run attack actions on the devices Microsoft Defender for Endpoint protects, through Live Response, without installing the OpenAEV agent. - URL: https://filigran.io/docs/openaev/use/executors/mde/ - Products: OpenAEV 3.261118.0 - Edition: requires an Enterprise Edition license - For: platform engineers, security validation engineers - Type: How-to guide The Microsoft Defender for Endpoint (MDE) executor runs OpenAEV implants through the Defender sensor already on your devices. OpenAEV installs nothing: it imports the onboarded devices of the device groups you choose, then, for each inject, opens a Live Response session on the device and runs a script of your Live Response library that starts the implant. This page prepares Microsoft Entra ID and Defender, deploys the executor in OpenAEV and checks that the devices show up. How EDR executors work, and when to prefer the OpenAEV agent, is in [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/). **Diagram: OpenAEV imports the onboarded devices of your device groups, then opens a Live Response session that runs your library script, which starts the implant** - OpenAEV: MDE executor (Signs in as an Entra application), Endpoints (One per onboarded device) - Microsoft Defender: Defender API (Machines, Advanced Hunting), Live Response script (Decodes the command) - Device: Implant (From a SYSTEM task on Windows) Connections: - MDE executor → Defender API: list devices - MDE executor → Endpoints: imports - Defender API → Live Response script: Live Response - Live Response script → Implant: starts - Implant → Endpoints: results ## Before you start {#before-you-start} - OpenAEV runs with an Enterprise Edition license, and your role has the **Manage tenant settings** capability. - In Microsoft Entra ID, you can register an application and grant admin consent. In the Microsoft Defender portal, you can change the advanced features and upload to the Live Response library. - The devices reach the OpenAEV URL over HTTPS: see [How an EDR executor works](https://filigran.io/docs/openaev/use/executors/#how-an-edr-executor-works). ## Prepare Microsoft Entra ID and Defender {#prepare-microsoft-entra-id-and-defender} ### Register an application {#register-an-application} OpenAEV signs in to the Defender API as an application, with the client credentials flow. 1. In **Microsoft Entra ID > App registrations**, click **New registration** and register the application. 2. Keep its **Directory (tenant) ID** and **Application (client) ID**. 3. In **Certificates & secrets**, create a client secret and keep its value. 4. In **API permissions**, add these application permissions of **WindowsDefenderATP**, then click **Grant admin consent**: | Permission | Why OpenAEV needs it | | --- | --- | | `Machine.Read.All` | List the devices and their device group, to import them | | `Machine.LiveResponse.All` | Run the Live Response script that starts the implant | | `AdvancedQuery.Read.All` | Read the recent activity of each device, to tell which devices are up | They must be application permissions, not delegated ones: OpenAEV works without a signed-in user. Without `AdvancedQuery.Read.All`, OpenAEV falls back on the sensor's health status, which tells less reliably whether a device is reachable. ### Turn on Live Response {#turn-on-live-response} In the Microsoft Defender portal, go to **Settings > Endpoints > Advanced features** and turn on: - **Live Response**; - **Live Response for servers**, when you target Windows Server or Linux servers; - **Live Response unsigned script execution**: the OpenAEV scripts are not signed, and without this option every inject fails at the Live Response step. ### Upload the two scripts {#upload-the-two-scripts} OpenAEV passes the whole command as one Base64 argument to one of two scripts of the Live Response library, which decode it and run it. Upload both to the library, and turn on the parameters option in the upload dialog for each one, so that both show **Has parameters: Yes**. Without it, MDE runs the script without the command and every inject fails. `openaev-subprocessor.ps1`, for Windows: ```powershell if ($args.Count -lt 1 -or [string]::IsNullOrEmpty($args[0])) { Write-Error "OpenAEV subprocessor: no argument received (expected Base64 command as first parameter)" exit 1 } $decoded = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($args[0])) Invoke-Expression $decoded ``` `openaev-subprocessor.sh`, for Linux and macOS: ```bash #!/bin/sh if [ -z "$1" ]; then echo "OpenAEV subprocessor: no argument received (expected Base64 command as first parameter)" >&2 exit 1 fi echo "$1" | base64 -d | sh ``` Keep them as they are: in PowerShell, the command must come through `$args[0]`, and a parameter named `$Args` breaks it. ### Find the IDs of your device groups {#find-the-ids-of-your-device-groups} To import only some devices, OpenAEV needs the numeric ID (`rbacGroupId`) of their device groups. The Defender portal shows the group names only, under **Settings > Endpoints > Permissions > Device groups**, so read the IDs from the devices with the same application: ```powershell $tenant = $env:MDE_TENANT_ID $client = $env:MDE_CLIENT_ID $secret = $env:MDE_CLIENT_SECRET $token = (Invoke-RestMethod -Method Post ` -Uri "https://login.microsoftonline.com/$tenant/oauth2/v2.0/token" ` -Body @{ grant_type = 'client_credentials' client_id = $client client_secret = $secret scope = 'https://api.securitycenter.microsoft.com/.default' }).access_token $machines = Invoke-RestMethod ` -Uri 'https://api.securitycenter.microsoft.com/api/machines?$select=rbacGroupId,rbacGroupName' ` -Headers @{ Authorization = "Bearer $token" } $machines.value | Select-Object rbacGroupName, rbacGroupId -Unique | Sort-Object rbacGroupName | Format-Table -AutoSize ``` Keep the URL in single quotes, so that PowerShell does not read `$select` as a variable. A group shows only once it holds a device that MDE has seen. `UnassignedGroup` holds the devices of no custom group. ## Deploy the executor in OpenAEV {#deploy-the-executor-in-openaev} 1. Open **Integrations**, then the **Available** tab. 2. Open **Microsoft Defender for Endpoint Executor** and click **Deploy**. The **Create a new connector instance** panel opens. 3. Fill in the form. Each field is named after its configuration key: | Field | What to enter | | --- | --- | | **Display name** | The executor's name in OpenAEV, `Microsoft Defender for Endpoint` by default | | **Executor Mde Azure Tenant Id** | The **Directory (tenant) ID** of the application | | **Executor Mde Client Id** and **Executor Mde Client Secret** | Its **Application (client) ID** and its client secret | | **Executor Mde Windows Script Name** and **Executor Mde Unix Script Name** | The names of the two scripts in the library, `openaev-subprocessor.ps1` and `openaev-subprocessor.sh` by default | 4. Open **Advanced options**. In **Executor Mde Device Group**, enter the IDs of your device groups, separated by commas: left empty, OpenAEV imports every onboarded device of the tenant. The other options keep their defaults, from the [`executor.mde` block](https://filigran.io/docs/reference/openaev/configuration/#executor-mde): the Microsoft URLs, an import every 20 minutes, and 10 devices per batch of 5 seconds, since the Live Response API limits calls more strictly than other EDRs. 5. Click **Create**. 6. In the **Deployed** tab, open the executor and click **Start**. The Microsoft Defender for Endpoint executor is set up in the interface only: the keys of its configuration block never create it. ![The Create a new connector instance panel of the Microsoft Defender for Endpoint executor: its display name and instance name, the settings it needs, each with its help, and the advanced options.](https://filigran.io/docs/shots/4aee26215da0df4bfde0ee06f38a384f47b9e34befac1902084523df599a67ca.webp) ## Check that it works {#check-that-it-works} Within a minute of the start, open **Assets**: the devices of your groups show in the **Endpoints** list, with **Microsoft Defender for Endpoint** in their **Executors** column, and **Asset groups** has a group named after each device group. Only devices whose onboarding status is **Onboarded** are imported: devices that Defender discovered but does not protect have no sensor to run Live Response. An agent is active when its device showed activity in Advanced Hunting recently: within 70 minutes plus one import interval, so 90 minutes with the defaults. A device that goes offline shows as inactive within about two hours. Keep the import interval under one hour, or agents age out between two imports. Each inject is a Live Response action, which you find in the Defender portal: - in **Action center > History**, with **Live response** as the action type and the API as its source; - on the device's **Timeline** and in its Live Response session log; - in **Advanced hunting**, on `DeviceProcessEvents`, with the scheduled task, the implant and the commands of the actions. On Windows, a Live Response session ends every process it started. So the implant starts from a scheduled task of the SYSTEM account, `OpenAEV-Inject--Agent-`, which deletes itself when the implant ends. ## Troubleshoot {#troubleshoot} | What you see | What to check | | --- | --- | | Every inject fails at the Live Response step | **Live Response unsigned script execution** is on, both scripts are in the library under the names of the form with **Has parameters: Yes**, and `Machine.LiveResponse.All` has admin consent | | Devices are missing | The device group IDs, the **Onboarded** status of the devices, and that they report to Defender | | Devices show as inactive | `AdvancedQuery.Read.All` has admin consent; the platform's log warns when it falls back on the health status | | An inject times out on an active device | Live Response runs only while the sensor is connected: on an offline device, the action stays **Pending** in **Action center > History**. MDE allows one Live Response session per device, so OpenAEV cancels an action pending for more than 30 minutes before it sends the next one | | The inject is in error but has output | The status comes from the action itself: a command that exits with an error, or writes to the error output, marks the trace in error even though the executor ran it. Read the exit code and the output in the trace | **Example: Run the Velvet Harbor simulation on the Spanish hotels** The front-desk workstations of Grand Meridian's Spanish hotels are protected by Microsoft Defender for Endpoint, in a device group named `Front desk - Spain`. The platform engineer registers the application `OpenAEV executor`, grants the three permissions, turns on the three Live Response features and uploads both scripts. The script above lists the groups: ```text rbacGroupName rbacGroupId ------------- ----------- Front desk - Spain 412 UnassignedGroup 366 ``` In OpenAEV, the form gets: | Field | Value | | --- | --- | | **Display name** | `Meridian EDR - Spain` | | **Executor Mde Azure Tenant Id** | The directory ID, kept in the vault as `MDE_TENANT_ID` | | **Executor Mde Client Id** | The application ID, kept as `MDE_CLIENT_ID` | | **Executor Mde Client Secret** | The secret, kept as `MDE_CLIENT_SECRET` | | **Executor Mde Device Group** | `412` | After **Start**, the workstations of `Front desk - Spain` show in **Assets** with the **Meridian EDR - Spain** executor. The Velvet Harbor simulation targets the asset group of the same name, and each PowerShell action shows in Advanced Hunting next to the alert Defender raised. ## What's next {#what-s-next} - [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/): implant cleanup and troubleshooting. - [How collectors measure what your security tools saw](https://filigran.io/docs/openaev/use/collectors/): add the Microsoft Defender collector, so Defender's detections fill the expectations. - [Inject status](https://filigran.io/docs/openaev/use/injects/status/): understand the results and timeouts of injects. --- # Run actions through Palo Alto Cortex > Let OpenAEV run attack actions on the endpoints of your Palo Alto Cortex endpoint groups, through the Agent Script Library, without installing the OpenAEV agent. - URL: https://filigran.io/docs/openaev/use/executors/palo-alto-cortex/ - Products: OpenAEV 3.261118.0 - Edition: requires an Enterprise Edition license - For: platform engineers, security validation engineers - Type: How-to guide The Palo Alto Cortex executor runs OpenAEV implants through the Cortex XDR agent already on your endpoints. OpenAEV imports the endpoints of the endpoint groups you choose, then, for each inject, asks Cortex to run a script of your Agent Script Library that starts the implant. This page prepares Cortex, deploys the executor in OpenAEV and checks that the endpoints show up. How EDR executors work, and when to prefer the OpenAEV agent, is in [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/). **Diagram: OpenAEV imports the endpoints of your Cortex groups, then asks Cortex to run your library script, which starts the implant** - OpenAEV: Cortex executor (Runs inside the platform), Endpoints (Seen in the last 24 hours) - Palo Alto Cortex: Cortex API (Endpoints, run script), Library script (Decodes the command) - Endpoint: Implant (From a SYSTEM task on Windows) Connections: - Cortex executor → Cortex API: list endpoints - Cortex executor → Endpoints: imports - Cortex API → Library script: runs - Library script → Implant: starts - Implant → Endpoints: results ## Before you start {#before-you-start} - OpenAEV runs with an Enterprise Edition license, and your role has the **Manage tenant settings** capability. - In Cortex, you can add scripts to the Agent Script Library, manage endpoint groups and create API keys. - The endpoints reach the OpenAEV URL over HTTPS: see [How an EDR executor works](https://filigran.io/docs/openaev/use/executors/#how-an-edr-executor-works). ## Prepare Palo Alto Cortex {#prepare-palo-alto-cortex} ### Add the two scripts {#add-the-two-scripts} OpenAEV sends each command in Base64 to one of two Python scripts, which decode it and run it. In **Investigation & Response > Action Center > Agent Script Library**, click **+ New Script** and add both: | Setting | Unix script | Windows script | | --- | --- | --- | | **Script Name** | `OpenAEV Subprocessor (Unix)` | `OpenAEV Subprocessor (Windows)` | | **Mark as high risk script** | Checked | Checked | | **Supported OS** | macOS and Linux | Windows | | **Timeout** | 60 seconds | 600 seconds | | Input | **Run by entry point** `run`, with a `command` parameter of type **String** | **Run by entry point** `run`, with a `commands_list` parameter of type **List of strings** | | **Output Type** | **Auto Detect** | **Auto Detect** | The Unix script: ```python import os def run(command): exit_code = os.system("echo " + command + " | base64 -d | sh") print("Exit code:", exit_code) if __name__ == "__main__": run(command) ``` The Windows script is longer: it attaches a console the agent's process lacks, then runs the commands. Download [paloaltocortex_subprocessor_windows.py](https://github.com/OpenAEV-Platform/openaev/blob/main/docs/docs/integrations/executors/assets/paloaltocortex_subprocessor_windows.py) from the OpenAEV repository. You can rename the scripts. Add the **Script UID** column to the list of scripts and keep the UID of each one: they go in the executor's form. ### Group the endpoints and create an API key {#group-the-endpoints-and-create-an-api-key} 1. In **Inventory > Endpoints > Groups**, create a group with the endpoints your simulations target, and keep its name. 2. In **Settings > Configurations > API Keys**, create a key with the **Standard** security level and at least the **Instance Administrator** role. Keep the key, its ID, and the API URL Cortex shows next to it. ## Deploy the executor in OpenAEV {#deploy-the-executor-in-openaev} 1. Open **Integrations**, then the **Available** tab. 2. Open **Palo Alto Cortex Executor** and click **Deploy**. The **Create a new connector instance** panel opens. 3. Fill in the form. Each field is named after its configuration key: | Field | What to enter | | --- | --- | | **Display name** | The executor's name in OpenAEV, `PaloAltoCortex` by default | | **Executor Paloaltocortex Url** | The API URL of your tenant. OpenAEV calls its public API version 1 | | **Executor Paloaltocortex Api Key Id** and **Executor Paloaltocortex Api Key** | The ID of the API key and the key | | **Executor Paloaltocortex Group Name** | The name of your endpoint group, or several names separated by commas | | **Executor Paloaltocortex Windows Script Uid** and **Executor Paloaltocortex Unix Script Uid** | The UIDs of your two scripts | 4. Under **Advanced options**, the other options set how often OpenAEV imports the endpoints, cleans them and sends commands. Their defaults are in the [`executor.paloaltocortex` block](https://filigran.io/docs/reference/openaev/configuration/#executor-paloaltocortex). 5. Click **Create**. 6. In the **Deployed** tab, open the executor and click **Start**. ![The Create a new connector instance panel of the Palo Alto Cortex executor: its display name and instance name, the settings it needs, each with its help, and the advanced options.](https://filigran.io/docs/shots/6782daf16bc5e299517d735f0bd0f2d22340ab2d3bf4816afd506ca8f49a5c43.webp) ## Check that it works {#check-that-it-works} Within a minute of the start, open **Assets**: the endpoints of your groups that Cortex saw in the last 24 hours show in the **Endpoints** list, with **PaloAltoCortex** in their **Executors** column, and **Asset groups** has a group named after each endpoint group. OpenAEV imports them again every 20 minutes. On Windows, Cortex ends the processes its script started when the script ends. So the implant starts from a scheduled task of the SYSTEM account, `OpenAEV-Inject--Agent-`, which deletes itself when the implant ends. Each inject is a script run in **Action Center**. When nothing runs there, follow [When an inject fails on an EDR executor](https://filigran.io/docs/openaev/use/executors/#when-an-inject-fails-on-an-edr-executor). **Example: Replay Velvet Harbor on the hotels of the south** The front-desk workstations of Grand Meridian's hotels in the south of France run the Cortex XDR agent, in the endpoint group `FD-South`. The platform engineer adds both scripts, creates a **Standard** API key with the **Instance Administrator** role, and fills in the form: | Field | Value | | --- | --- | | **Display name** | `Meridian EDR - South` | | **Executor Paloaltocortex Url** | `https://api-grandmeridian.xdr.eu.paloaltonetworks.com` | | **Executor Paloaltocortex Api Key Id** | `14` | | **Executor Paloaltocortex Api Key** | The key, kept in the vault as `MERIDIAN_CORTEX_API_KEY` | | **Executor Paloaltocortex Group Name** | `FD-South` | | **Executor Paloaltocortex Windows Script Uid** | `8a1f3c0e5b7d4e29a6c2f0b1d3e4a5c6` | | **Executor Paloaltocortex Unix Script Uid** | `2b9d7e4f1a6c4b38b5e0c9d2f7a1e3b4` | After **Start**, the workstations of `FD-South` show in **Assets**, and the Velvet Harbor simulation runs its PowerShell loader on them through Cortex, as SYSTEM. ## What's next {#what-s-next} - [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/): implant cleanup and troubleshooting. - [How collectors measure what your security tools saw](https://filigran.io/docs/openaev/use/collectors/): add the Palo Alto Cortex XDR collector, so its alerts fill the expectations. - [Inject status](https://filigran.io/docs/openaev/use/injects/status/): understand the results and timeouts of injects. --- # Run actions through SentinelOne > Let OpenAEV run attack actions on the endpoints of your SentinelOne accounts, sites or groups, through Remote Ops scripts, without installing the OpenAEV agent. - URL: https://filigran.io/docs/openaev/use/executors/sentinelone/ - Products: OpenAEV 3.261118.0 - Edition: requires an Enterprise Edition license - For: platform engineers, security validation engineers - Type: How-to guide The SentinelOne executor runs OpenAEV implants through the SentinelOne agent already on your endpoints. OpenAEV imports the active agents of the accounts, sites or groups you choose, then, for each inject, asks SentinelOne to run a Remote Ops script of yours that starts the implant. This page prepares SentinelOne, deploys the executor in OpenAEV and checks that the endpoints show up. How EDR executors work, and when to prefer the OpenAEV agent, is in [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/). **Diagram: OpenAEV imports the active agents of your SentinelOne accounts, sites or groups, then asks Remote Ops to run your script, which starts the implant** - OpenAEV: SentinelOne executor (Runs inside the platform), Endpoints (One per active agent) - SentinelOne: SentinelOne API (Agents, Remote Ops), Remote Ops script (Decodes the command) - Endpoint: Implant (Runs as SYSTEM or root) Connections: - SentinelOne executor → SentinelOne API: list agents - SentinelOne executor → Endpoints: imports - SentinelOne API → Remote Ops script: runs - Remote Ops script → Implant: starts - Implant → Endpoints: results ## Before you start {#before-you-start} - OpenAEV runs with an Enterprise Edition license, and your role has the **Manage tenant settings** capability. - Your SentinelOne license includes the remote script orchestration add-on, which runs scripts on agents. It shows in **Settings > Configuration > Add-ons**. - The endpoints reach the OpenAEV URL over HTTPS: see [How an EDR executor works](https://filigran.io/docs/openaev/use/executors/#how-an-edr-executor-works). ## Prepare SentinelOne {#prepare-sentinelone} Create the API key and the scripts with the same user, in the same account or site. 1. In **Settings > Users > Service Users**, create a service user with at least the **IR Team** role, and keep its API token. 2. In **Automation > Remote Ops**, click **Create new** and upload the Unix script, for Linux and macOS: ```bash #!/bin/sh echo $1 | base64 -d | sh ``` 3. Upload the Windows script the same way: ```powershell $command = $args[0]; cmd.exe /d /c powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -NonInteractive -NoProfile -encodedCommand $command ``` 4. Set both scripts as below, then keep the ID of each one. OpenAEV passes the Base64 command as the script's input. | Setting | Unix script | Windows script | | --- | --- | --- | | Script name | `OpenAEV Subprocessor (Unix)` | `OpenAEV Subprocessor (Windows)` | | Script type | Action | Action | | OS type | macOS and Linux | Windows | | Script execution timeout | 60 seconds | 60 seconds | | Input | Input is required, with the instructions `$1` | Input is required, with the instructions `$command` | 5. Note the IDs of the accounts, sites or groups whose endpoints your simulations target, in **Settings > Accounts** and **Sites**. ## Deploy the executor in OpenAEV {#deploy-the-executor-in-openaev} 1. Open **Integrations**, then the **Available** tab. 2. Open **SentinelOne Executor** and click **Deploy**. The **Create a new connector instance** panel opens. 3. Fill in the form. Each field is named after its configuration key: | Field | What to enter | | --- | --- | | **Display name** | The executor's name in OpenAEV, `SentinelOne` by default | | **Executor Sentinelone Url** | The URL of your SentinelOne console, such as `https://euce1-meridian.sentinelone.net`. OpenAEV calls its API version 2.1 | | **Executor Sentinelone Api Key** | The API token of the service user | | **Executor Sentinelone Windows Script Id** and **Executor Sentinelone Unix Script Id** | The IDs of your two scripts | 4. Open **Advanced options** and fill in at least one of **Executor Sentinelone Account Id**, **Executor Sentinelone Site Id** and **Executor Sentinelone Group Id**, each with one ID or several separated by commas. With none, OpenAEV imports no endpoint. The other options set how often OpenAEV imports the endpoints, cleans them and sends commands: their defaults are in the [`executor.sentinelone` block](https://filigran.io/docs/reference/openaev/configuration/#executor-sentinelone). 5. Click **Create**. 6. In the **Deployed** tab, open the executor and click **Start**. ![The Create a new connector instance panel of the SentinelOne executor: its display name and instance name, the settings it needs, each with its help, and the advanced options.](https://filigran.io/docs/shots/34e4df256f84cfca1ec8e4e41a1df6206d0c0661d89dbf753480fce11d4ee4f1.webp) ## Check that it works {#check-that-it-works} Within a minute of the start, open **Assets**: the active agents of your accounts, sites and groups show as endpoints, with **SentinelOne** in their **Executors** column. **Asset groups** has one group per account, per site and per group, named ``, `_` and `__`. OpenAEV imports active agents only, and imports them again every 20 minutes. Each night at 03:00, the executor asks the agents to delete the implant folders older than 24 hours. The schedule is a cron expression, **Executor Sentinelone Clean Implant Cron** in **Advanced options**. When an inject does not run, look for the script's task in **Automation > Remote Ops**, then follow [When an inject fails on an EDR executor](https://filigran.io/docs/openaev/use/executors/#when-an-inject-fails-on-an-edr-executor). **Example: Validate Meridian EDR on the booking servers** Grand Meridian's booking database servers, where Velvet Harbor exported the guest records, run the SentinelOne agent in the site `Booking` of the account `Grand Meridian`. The platform engineer creates the service user `openaev-executor` with the **IR Team** role and uploads both scripts with it. In OpenAEV, the form gets: | Field | Value | | --- | --- | | **Display name** | `Meridian EDR - Booking` | | **Executor Sentinelone Url** | `https://euce1-meridian.sentinelone.net` | | **Executor Sentinelone Api Key** | The API token, kept in the vault as `MERIDIAN_S1_API_TOKEN` | | **Executor Sentinelone Windows Script Id** | `2214587703945617411` | | **Executor Sentinelone Unix Script Id** | `2214587703945617412` | | **Executor Sentinelone Site Id** | `1903327155824735005` | On a new platform, the same values can come from its configuration, read at its first start only: ```bash EXECUTOR_SENTINELONE_ENABLE=true EXECUTOR_SENTINELONE_URL=https://euce1-meridian.sentinelone.net EXECUTOR_SENTINELONE_API-KEY=${MERIDIAN_S1_API_TOKEN} EXECUTOR_SENTINELONE_SITE-ID=1903327155824735005 EXECUTOR_SENTINELONE_WINDOWS-SCRIPT-ID=2214587703945617411 EXECUTOR_SENTINELONE_UNIX-SCRIPT-ID=2214587703945617412 ``` After **Start**, the booking servers show in the asset group `Grand Meridian_Booking`. The simulation replays the export of the guest records on them, and SentinelOne runs each action as root or SYSTEM. ## What's next {#what-s-next} - [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/): implant cleanup and troubleshooting. - [How collectors measure what your security tools saw](https://filigran.io/docs/openaev/use/collectors/): add the SentinelOne collector, so its detections fill the expectations. - [Inject status](https://filigran.io/docs/openaev/use/injects/status/): understand the results and timeouts of injects. --- # Run actions through Tanium > Let OpenAEV run attack actions on the endpoints of your Tanium computer groups, through two Tanium packages, without installing the OpenAEV agent. - URL: https://filigran.io/docs/openaev/use/executors/tanium/ - Products: OpenAEV 3.261118.0 - Edition: requires an Enterprise Edition license - For: platform engineers, security validation engineers - Type: How-to guide The Tanium executor runs OpenAEV implants through the Tanium client already on your endpoints. OpenAEV imports the endpoints of the computer groups you choose, then, for each inject, asks Tanium to deploy one of two OpenAEV packages, which starts the implant. This page imports the packages, deploys the executor in OpenAEV and checks that the endpoints show up. How EDR executors work, and when to prefer the OpenAEV agent, is in [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/). **Diagram: OpenAEV imports the endpoints of your Tanium computer groups, then deploys an OpenAEV package, which starts the implant** - OpenAEV: Tanium executor (Runs inside the platform), Endpoints (One per Tanium endpoint) - Tanium: Tanium Gateway (Computer groups, actions), OpenAEV package (Decodes the command) - Endpoint: Implant (Detached process) Connections: - Tanium executor → Tanium Gateway: list endpoints - Tanium executor → Endpoints: imports - Tanium Gateway → OpenAEV package: deploys - OpenAEV package → Implant: starts - Implant → Endpoints: results ## Before you start {#before-you-start} - OpenAEV runs with an Enterprise Edition license, and your role has the **Manage tenant settings** capability. - In Tanium, you can import packages and create an API token that reads endpoints through the Tanium Gateway (GraphQL) and deploys packages. - The endpoints reach the OpenAEV URL over HTTPS: see [How an EDR executor works](https://filigran.io/docs/openaev/use/executors/#how-an-edr-executor-works). ## Prepare Tanium {#prepare-tanium} 1. Choose the packages. Most endpoints take the standard packages. Endpoints that run Tanium Threat Response (TTR) need the TTR packages, which work everywhere but do more on the endpoint and raise more alerts. | Packages | When | Files | | --- | --- | --- | | Standard | The Tanium client only | [openaev-tanium-packages.json](https://github.com/OpenAEV-Platform/openaev/blob/main/openaev-api/src/main/java/io/openaev/executors/tanium/openaev-tanium-packages.json) | | TTR | Tanium client with Threat Response | [openaev-tanium-packages-TTR.json](https://github.com/OpenAEV-Platform/openaev/blob/main/openaev-api/src/main/java/io/openaev/executors/tanium/openaev-tanium-packages-TTR.json), with the scripts [openaev-ttr.ps1](https://github.com/OpenAEV-Platform/openaev/blob/main/openaev-api/src/main/java/io/openaev/executors/tanium/openaev-ttr.ps1) and [openaev-ttr.sh](https://github.com/OpenAEV-Platform/openaev/blob/main/openaev-api/src/main/java/io/openaev/executors/tanium/openaev-ttr.sh) attached in the files of the package | 2. Import the file in Tanium. It creates two packages, `OpenAEV Subprocessor (Unix)` and `OpenAEV Subprocessor (Windows)`, which decode the Base64 command OpenAEV passes as their parameter and run it. 3. Open each package and check that **Launch this package command in a process group** is not checked: the implant runs as a detached process, which a process group would end with the package. 4. Keep the ID of each package: it is in the address of its page, `ui/console/packages//preview`. 5. Keep the IDs of the computer group whose endpoints your simulations target, and of the action group allowed to run the packages on them. 6. Create an API token, and keep it. ## Deploy the executor in OpenAEV {#deploy-the-executor-in-openaev} 1. Open **Integrations**, then the **Available** tab. 2. Open **Tanium Executor** and click **Deploy**. The **Create a new connector instance** panel opens. 3. Fill in the form. Each field is named after its configuration key: | Field | What to enter | | --- | --- | | **Display name** | The executor's name in OpenAEV, `Tanium` by default | | **Executor Tanium Api Url** | The URL of your Tanium server. OpenAEV calls its Gateway at `/plugin/products/gateway/graphql` | | **Executor Tanium Api Key** | The API token | | **Executor Tanium Windows Package Id** and **Executor Tanium Unix Package Id** | The IDs of your two packages | 4. Open **Advanced options** and set **Executor Tanium Computer Group Id**, one ID or several separated by commas, and **Executor Tanium Action Group Id**. They are `1` and `4` by default: check them against your Tanium. The other options set how often OpenAEV imports the endpoints, cleans them and sends commands: their defaults are in the [`executor.tanium` block](https://filigran.io/docs/reference/openaev/configuration/#executor-tanium). 5. Click **Create**. 6. In the **Deployed** tab, open the executor and click **Start**. ![The Create a new connector instance panel of the Tanium executor: its display name and instance name, the settings it needs, each with its help, and the advanced options.](https://filigran.io/docs/shots/f423f34f75eedd7c99b14d5696596cc47d416a04c8d98f592680b3ff05df4bb5.webp) ## Check that it works {#check-that-it-works} Within a minute of the start, open **Assets**: the endpoints of your computer groups show in the **Endpoints** list, with **Tanium** in their **Executors** column, and **Asset groups** has a group named after each computer group. OpenAEV imports them again every 20 minutes. Each inject is a deployment of one of your packages, in Tanium's actions. When nothing runs there, follow [When an inject fails on an EDR executor](https://filigran.io/docs/openaev/use/executors/#when-an-inject-fails-on-an-edr-executor). **Example: Run the Velvet Harbor simulation on the Paris workstations through Tanium** Grand Meridian manages the workstations of its Paris hotel with Tanium, without Threat Response. The platform engineer imports the standard packages, which get the IDs `1874` (Windows) and `1875` (Unix), and creates an API token. The front desks are the computer group `231`, and actions on them go through the action group `12`. In OpenAEV, the form gets: | Field | Value | | --- | --- | | **Display name** | `Tanium - Paris` | | **Executor Tanium Api Url** | `https://tanium.grand-meridian.example` | | **Executor Tanium Api Key** | The token, kept in the vault as `MERIDIAN_TANIUM_API_TOKEN` | | **Executor Tanium Windows Package Id** | `1874` | | **Executor Tanium Unix Package Id** | `1875` | | **Executor Tanium Computer Group Id** | `231` | | **Executor Tanium Action Group Id** | `12` | On a new platform, the same values can come from its configuration, read at its first start only: ```bash EXECUTOR_TANIUM_ENABLE=true EXECUTOR_TANIUM_URL=https://tanium.grand-meridian.example EXECUTOR_TANIUM_API-KEY=${MERIDIAN_TANIUM_API_TOKEN} EXECUTOR_TANIUM_WINDOWS-PACKAGE-ID=1874 EXECUTOR_TANIUM_UNIX-PACKAGE-ID=1875 EXECUTOR_TANIUM_COMPUTER-GROUP-ID=231 EXECUTOR_TANIUM_ACTION-GROUP-ID=12 ``` After **Start**, the front-desk workstations show in **Assets** with the **Tanium - Paris** executor, and the Velvet Harbor simulation runs on them as SYSTEM. ## What's next {#what-s-next} - [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/): implant cleanup and troubleshooting. - [How collectors measure what your security tools saw](https://filigran.io/docs/openaev/use/collectors/): add the Tanium Threat Response collector, so its detections fill the expectations. - [Inject status](https://filigran.io/docs/openaev/use/injects/status/): understand the results and timeouts of injects. --- # How expectations score an inject > What each expectation type measures, who answers it, how OpenAEV combines the answers of agents, assets, persons and groups into a score, and when an unanswered expectation expires. - URL: https://filigran.io/docs/openaev/use/expectations/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, crisis exercise planners, SOC analysts - Type: Concept An expectation says what must happen for an inject to count as a success: that Meridian EDR prevents the command, that the SOC detects it, that the night auditor reports the phishing email. OpenAEV creates one per target when the inject runs, collects the answers of your security tools and of your people, and turns them into the scores on the result of the inject. This page explains the types, who answers each one, how the answers add up, and when an expectation expires. To add expectations to an inject, see [Set the expectations of an inject](https://filigran.io/docs/openaev/use/expectations/management/); to answer them yourself, [Add expectation results by hand](https://filigran.io/docs/openaev/use/expectations/validation/). ## The types and who answers them {#the-types-and-who-answers-them} | Type | What it measures | Who answers | | --- | --- | --- | | **Prevention** | A security control blocked the action | Collectors of your security platforms, such as an EDR or an email security platform | | **Detection** | A security tool raised an alert or an incident | Collectors of your security platforms, such as an EDR or a SIEM | | **Vulnerability** | The target carries a vulnerability | The action itself, such as a vulnerability scanner, through its output | | **Manual** | A person did what the exercise expects: decided, escalated, reported | An organizer of the exercise | | **Article** | The targeted persons read the media pressure articles | The platform, when a person reads the article | | **Challenge** | The targeted persons solved the challenges | The platform, when a person submits a right answer | Prevention, detection and vulnerability are technical: they apply to assets and their agents. Manual, article and challenge measure a human response: they apply to persons and their teams. The actions of the Threat Arsenal say which types an inject can carry, and which it gets by default. Each expectation can name the **Expected security platforms** that must answer it: EDR, XDR, SIEM, SOAR, NDR, EMAIL SECURITY and others. With none, any connected security platform may answer. ## The results you read {#the-results-you-read} | Type | Success | Failure | In between | Not answered yet | | --- | --- | --- | --- | --- | | Prevention | **Prevented** | **Not Prevented** | **Partially Prevented** | **Pending** | | Detection | **Detected** | **Not Detected** | **Partially Detected** | **Pending** | | Vulnerability | **Not vulnerable** | **Vulnerable** | **Partially Vulnerable** | **Pending** | | Manual, article, challenge | **Success** | **Failed** | **Partial** | **Pending** | A result is a score from 0 to 100. Each expectation has a success score: a result at or above it is a success, below it a failure. The success score is 100 by default, and 50 for a manual expectation (`openaev.expectation.manual.default-score-value`). ## How the answers add up {#how-the-answers-add-up} **Diagram: Sources score each agent or person, and the validation mode decides how those scores add up for an asset group or a team** - Sources: Collectors (EDR, SIEM, email security), People (Read, answer, are validated), Expiration (Scores what never came) - Leaves: Agent or person (Scored from its sources) - Groups: Asset (From its agents), Asset group or team (All must validate, or one) - Inject: Score per type (Prevented, Detected, Successful) Connections: - Collectors → Agent or person: results - People → Agent or person: results - Expiration → Agent or person: fails the rest - Agent or person → Asset: rolls up - Asset → Asset group or team: validation mode - Asset group or team → Score per type: sums up ### On one agent or one person {#on-one-agent-or-one-person} An agent, or an asset without an agent, can receive several answers: one per security platform, plus the ones you add by hand. - **Prevention and detection**: the expectation is settled as soon as one platform reaches the success score, without waiting for the others. A later answer is recorded but cannot lower it: a negative result never overrides a positive one. Without a success, OpenAEV waits for every expected platform, then keeps the highest score. - **Vulnerability**: OpenAEV waits for every source. A **Vulnerable** answer wins over the others, even when the other sources found nothing. - **Manual, article and challenge**: a new answer replaces the previous one. ### On an asset, a group or a team {#on-an-asset-a-group-or-a-team} The scores then go up: from the agents to their asset, from the assets to their asset group, from the persons to their team. At each level, the **Validation mode** of the expectation decides: | Validation mode | Success | Failure | Otherwise | | --- | --- | --- | --- | | **All assets (per group) must validate the expectation**, or **All persons (per team)** | Every member succeeded | One member failed | **Pending** | | **At least one asset (per group) must validate the expectation**, or **At least one person (per team)** | One member succeeded | Every member failed | **Pending** | A success gives the level the success score, a failure gives it 0. An asset targeted on its own, or a person, counts as a group of one. "All" suits a baseline that every workstation must meet; "at least one" suits a detection that one alert of the SOC is enough to prove. In a simulation, only the enabled persons of a team get an expectation, and a team without any gets none. ### When no security platform can answer {#when-no-security-platform-can-answer} Only collectors of security platforms answer prevention and detection. When the inject runs, OpenAEV looks for a collector of one of the expected platform types, or of any type when none is set. If there is none, it fails the expectation at once, with a score of 0, instead of letting it wait. Its card reads **No automated security platform detected**. The check happens once, when the inject runs; vulnerability expectations are not concerned. ## When an expectation expires {#when-an-expectation-expires} An expectation waits for its answers for a set time, counted from the run of the inject. When the time is up, every target still without an answer gets one from the expiration manager: - prevention and detection fail: **Not Prevented**, **Not Detected**; - manual, article and challenge fail: **Failed**; - vulnerability succeeds: **Not vulnerable**. No scanner reported anything, so nothing was found. | Expectation | Default | Configuration key, in seconds | | --- | --- | --- | | Prevention, detection, vulnerability | 6 hours | `openaev.expectation.technical.expiration-time` (21600), then `openaev.expectation.prevention.expiration-time`, `openaev.expectation.detection.expiration-time`, `openaev.expectation.vulnerability.expiration-time` for one type | | Manual, article, challenge | 24 hours | `openaev.expectation.human.expiration-time` (86400), then `openaev.expectation.manual.expiration-time`, `openaev.expectation.article.expiration-time`, `openaev.expectation.challenge.expiration-time` for one type | A key for one type wins over the key of its family. Each expectation can also set its own **Expiration time** in the inject. OpenAEV never lets a prevention or a detection expire before its collectors have polled twice: it extends the time to twice the longest polling period of the expected collectors. The keys are in the [configuration reference](https://filigran.io/docs/reference/openaev/configuration/#openaev-expectation). A simulation finishes once every enabled inject has run and every expectation of the injects that did not fail is answered or expired. **Example: Score the PowerShell loader on the front-desk group** The `PowerShell loader` inject of Grand Meridian Hotels runs on the asset group **Front desk workstations**, five endpoints with one agent each. It expects a **Prevention** with **At least one asset (per group) must validate the expectation**, and a **Detection** with **All assets (per group) must validate the expectation**, both from an **EDR**, success score 100. The Nice workstation is off that night: its agent is inactive, so it gets no expectation. Meridian EDR's collector reports a block on `fd-madrid-02` and alerts on Madrid and Paris; Barcelona sends nothing. The group's prevention is **Prevented** at once: one asset is enough. Its detection stays **Pending** until the 6 hours run out, then Barcelona expires as **Not Detected**, and the group reads **Not Detected**. The SOC manager learns that one front desk raised no alert at all. ## What's next {#what-s-next} - [Set the expectations of an inject](https://filigran.io/docs/openaev/use/expectations/management/). - [Add expectation results by hand](https://filigran.io/docs/openaev/use/expectations/validation/). - [Read the result of an inject](https://filigran.io/docs/openaev/use/injects/results/). - [Collectors](https://filigran.io/docs/openaev/use/collectors/): connect the security platforms that answer. --- # Set the expectations of an inject > Add, tune and remove the expectations of an inject, choose who must answer them, how long they wait and how a group validates them, and realign them when their action changes. - URL: https://filigran.io/docs/openaev/use/expectations/management/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, crisis exercise planners - Type: How-to guide The expectations of an inject decide what its result measures: whether Meridian EDR must prevent the command or only detect it, whether one alert of the SOC is enough or every workstation must raise one, how long OpenAEV waits. An inject starts with the expectations its action proposes; this page changes them, adds others, and brings them back in line when the action changes in the Threat Arsenal. How the answers become a score is in [How expectations score an inject](https://filigran.io/docs/openaev/use/expectations/). **Diagram: An inject copies the expectations its action proposes, you tune them, and Realign expectations brings them back when the action changes** - Threat Arsenal: Action (Proposes its expectations) - Inject: Inject expectations (Name, score, expiration, mode), Review expectations (The action changed since) - Simulation: Run (One expectation per target) Connections: - Action → Inject expectations: copied at creation - Action → Review expectations: changes later - Review expectations → Inject expectations: Realign expectations - Inject expectations → Run: at launch ## Before you start {#before-you-start} - Your role has **Manage assessment**, or the right to manage the scenario, simulation or atomic test. - To be answered automatically, prevention and detection need a [collector](https://filigran.io/docs/openaev/use/collectors/) for each kind of security platform you expect. ## Add an expectation {#add-an-expectation} 1. Open the inject: in the **Injects** tab of a scenario or simulation, open the menu of its line and click **Update**. For an atomic test, open its menu and click **Update**. 2. Find **Inject expectations**. The list shows each expectation with its name, its description, its score, **Automatic** or **Manual**, and its expected security platforms. 3. Click **Add expectations**. The **Add expectation in this inject** dialog opens. The button is missing when the action allows no other expectation: each type can be added once, unless the action allows more. 4. Choose the **Type**. Only the types the action allows are offered, and the dialog fills in the action's defaults for that type. 5. Give it a **Name**, and a **Description** if the result needs explaining. A manual expectation is known by its name in [logical chains](https://filigran.io/docs/openaev/use/injects/chaining/). 6. Set the **Expiration time** in **Days**, **Hours** and **Minutes**: how long OpenAEV waits for answers before it fails the expectation. A vulnerability expectation has no expiration time to set. 7. Set the **Success score**, a whole number from 1 to 100. An answer at or above it is a success. It starts at 100, or at 50 for a manual expectation. 8. For prevention, detection and vulnerability, choose the **Expected security platforms**: EDR, XDR, SIEM, SOAR, NDR, EMAIL SECURITY and others. Leave it empty for **Any security platform**. 9. Choose the **Validation mode**: **All assets (per group) must validate the expectation** or **At least one asset (per group) must validate the expectation**; for persons, **All persons (per team)** or **At least one person (per team)**. A vulnerability expectation has no validation mode. 10. Click **Create**, then **Update** in the inject's form to save the inject. ![The Inject expectations of the PowerShell loader inject: Meridian EDR raises an alert, score 100, Automatic, expected from an EDR, and Prevention from any security platform, with the Add expectations button below them.](https://filigran.io/docs/shots/6800632274ae9255d0a4c1e6628419e0dbbeeac56764302459f6fb81fed287f5.webp) To change an expectation, open the menu at the end of its line and click **Update**; to take it out, click **Remove**. Changes apply to the next run of the inject: a simulation that already ran keeps the expectations it ran with. ![The Update the expectation dialog of a detection named Meridian EDR raises an alert: an expiration time of 2 hours, a success score of 100, EDR as the expected security platform, and the validation mode At least one asset (per group) must validate the expectation.](https://filigran.io/docs/shots/d4961ce9f5ca98cabc9f3335628d85534c2e0338fe742e93e1d4c4814ea39c5c.webp) ### What each choice changes {#what-each-choice-changes} | Choice | Effect | When it is wrong | | --- | --- | --- | | **Expected security platforms** | Only collectors of these kinds answer, and a manual result can be added for these platforms only | With no collector of these kinds, the expectation fails as soon as the inject runs, with **No automated security platform detected** | | **Expiration time** | How long the expectation waits. OpenAEV extends a prevention or a detection to twice the polling period of its collectors | Too short, and the expectation fails before the SOC or the collector answers; too long, and the simulation stays open | | **Success score** | The score an answer must reach to count as a success | Above what your collectors report, and every answer counts as a failure | | **Validation mode** | How the agents of an asset, the assets of a group and the persons of a team add up | "All" fails a group for one missing alert; "at least one" hides a workstation that saw nothing | The defaults of the platform, when an action sets none, come from its configuration: 6 hours for technical expectations, 24 hours for human ones, a success score of 50 for manual ones. An administrator changes them with the keys of the [`openaev.expectation` block](https://filigran.io/docs/reference/openaev/configuration/#openaev-expectation). ## Realign expectations with their action {#realign-expectations-with-their-action} An inject copies the expectations of its action when you create it, and keeps them when the action changes later. When the action of at least one inject now asks for different expectations, the header of the scenario, simulation or atomic test shows **Review expectations**. Only the type, the validation mode and the expected security platforms count as a change: a different name, score, description or expiration time does not. 1. Click **Review expectations**. Under **Validation requirements**, the popover says how many injects drifted, such as **3 of 12 injects use expectations that no longer match the validation requirements defined by their actions**. 2. Decide whether the difference is on purpose: - If you tuned these expectations deliberately, click **Dismiss**. The warning shrinks to an icon, for every user, until the expectations match again. - Otherwise, click **Realign expectations**. OpenAEV replaces the expectations of every drifted inject with the current ones of its action. Your changes to those injects are lost. ![The Validation requirements popover of the scenario: Security posture requirements have changed, 2 of 4 injects use expectations that no longer match the validation requirements defined by their actions, with the Dismiss, Cancel and Realign expectations buttons.](https://filigran.io/docs/shots/e08450527470331812c56c268034b5481b9932b6d675f1236e4097f991c0b37f.webp) To bring a dismissed warning back, click its icon, then **Restore warning**. When you relaunch an atomic test whose expectations drifted, the confirmation offers **Realign expectations to the current action before relaunching**. **Example: Make one EDR alert enough for the front desks** The `PowerShell loader` inject of the **Velvet Harbor replay** scenario targets the asset group **Front desk workstations** of Grand Meridian Hotels. Its action proposes a **Detection** that every asset must validate. The SOC of Grand Meridian reads one Meridian EDR alert as an incident for the whole hotel chain, so the validation engineer updates the detection: | Field | Value | | --- | --- | | **Name** | `Meridian EDR raises an alert` | | **Expiration time** | 0 days, 2 hours, 0 minutes | | **Success score** | 100 | | **Expected security platforms** | EDR | | **Validation mode** | **At least one asset (per group) must validate the expectation** | Since the validation mode and the expected security platforms changed, the scenario's header now shows **Review expectations**: 2 of its 4 injects drifted, the loader and **Fake summit booking request**, whose manual expectation **Reported to the SOC** its email action does not propose. Both changes are deliberate: the engineer clicks **Dismiss**. On the next simulation, the detection succeeds as soon as Meridian EDR's collector reports one alert, and fails after 2 hours without any. ## What's next {#what-s-next} - [How expectations score an inject](https://filigran.io/docs/openaev/use/expectations/). - [Add expectation results by hand](https://filigran.io/docs/openaev/use/expectations/validation/). - [Run injects on conditions and move them between scenarios](https://filigran.io/docs/openaev/use/injects/chaining/): branch on an expectation. --- # Add expectation results by hand > Validate the manual expectations of a simulation for each team and person, and add the prevention or detection result of a security platform that no collector reports. - URL: https://filigran.io/docs/openaev/use/expectations/validation/ - Products: OpenAEV 3.261118.0 - For: crisis exercise planners, security validation engineers, SOC analysts - Type: How-to guide Some results reach OpenAEV through nobody: a crisis team escalated on time, a security tool without a collector blocked the command, the SOC found the alert in a console OpenAEV cannot read. You record them yourself, as a score. An exercise planner validates the manual expectations of the teams; a validation engineer or a SOC analyst adds the result of a security platform to a prevention or detection. How the scores add up is in [How expectations score an inject](https://filigran.io/docs/openaev/use/expectations/). **Diagram: You record by hand what no collector reports, from the Validations of a simulation or from the result of the inject** - Waiting: Manual expectation (Pending validation), Detection or prevention (No collector answered) - Where you answer: Validations (Execution tab of a simulation), Add a result (Results by target) - Score: Score (Success at the expected score) Connections: - Manual expectation → Validations: team or person - Manual expectation → Add a result: or here - Detection or prevention → Add a result: security platform - Validations → Score: Validate - Add a result → Score: Validate ## Before you start {#before-you-start} - Your role has **Manage assessment**, or the right to manage the simulation or atomic test. - The inject has run, and its expectation is waiting: a manual expectation never answers itself, and a technical one waits until it expires. - To add the result of a security platform, the platform was created by hand in **Security platforms**, and your role has **Access security platforms**. Platforms that a collector registered cannot be chosen: their collector answers for them. ## Validate the manual expectations of a simulation {#validate-the-manual-expectations-of-a-simulation} An exercise planner follows the human side of a simulation from one screen, the **Validations** of its execution. 1. Open **Simulations**, the simulation, then its **Execution** tab, and click **Validations** in the menu on the right. The **Manual validations** list groups the expectations by inject, then by team. The link of the human response gauge, in the simulation's **Overview**, opens the same list. 2. Narrow the list with the search bar, on the inject's title or description, or by tag. 3. Click the expectation under the team. Its chip says **Pending validation**, or the result already recorded with its score. A drawer opens, with the validation mode of the expectation. 4. Under **Team**, set the **Score**, or choose **Success** or **Failed** in **Status**. The expected score shows under the field. The score of the team is copied to every person of the team. 5. To score a person differently, set their own **Score** under **Persons**. The team's result is then computed from its persons, with the validation mode. 6. Click **Validate**. The chip of the expectation shows its new result, and the human response gauge of the simulation moves. You can validate again later: a new score replaces the previous one. ![The Validations menu of the simulation Velvet Harbor crisis night: the expectation On the bridge within 30 minutes of the Crisis cell team, for all players, waiting for an evaluator.](https://filigran.io/docs/shots/1be1af71b88d95486262826729b553f10b97c56434e3cf4f3e7a8ea536542a30.webp) ## Add a result from the result of an inject {#add-a-result-from-the-result-of-an-inject} The same works from the result of any inject, atomic tests included, and it is the only way to add the result of a security platform. 1. Open the result of the inject. See [Read the result of an inject](https://filigran.io/docs/openaev/use/injects/results/). 2. In **Targets**, click the target: a person or a team for a manual expectation, an asset or an agent for a prevention or detection. An asset group cannot be answered directly: it is computed from its assets. 3. On the expectation's card, click **Add a result**: the shield icon for prevention, detection and vulnerability, the clipboard icon for manual, article and challenge. On a manual expectation that already has a score, open its menu and click **Update** instead. 4. For a manual expectation, set the **Score** or the **Status**, as in the **Validations**. 5. For a prevention, detection or vulnerability, choose the **Security platform** that saw the action, then its **Score**. Only the platforms created by hand, of the expected kinds, that have not answered yet are offered. On an asset, the result is written on every agent of the endpoint, as the dialog says. 6. Click **Validate**. The result shows as a line of the card, under the security platform you chose. For prevention and detection, a success settles the expectation at once, and no later failure lowers it. To correct a result, open the menu of its line and click **Update** or **Delete**. **Example: Score the front desk and the SOC after the Velvet Harbor drill** On 14 January 2026, Example CERT runs the **Velvet Harbor replay** simulation for Grand Meridian Hotels. Two answers never reach OpenAEV on their own. The manual expectation `Reported to the SOC` of the email **Fake summit booking request** targets the team **Front desk France**, with **All persons (per team) must validate the expectation** and a success score of 100. Paul Garnier, Camille Roux and Julien Bernard all called the SOC within 20 minutes. In **Validations**, the exercise planner opens it under **Front desk France** and sets the team to **Success**: every person of the team scores 100. The `PowerShell loader` detection on `fd-barcelona-03` stayed **Pending**: the Barcelona hotel still runs the EDR of a former provider, which raised the alert but has no collector. The SOC analyst opens the inject's result, the asset **fd-barcelona-03**, clicks **Add a result** on **Detection**, chooses `Barcelona legacy EDR`, a platform of the EDR kind created by hand, enters a **Score** of 100 and clicks **Validate**. The detection of that asset reads **Detected**, and the group's detection succeeds. ## What's next {#what-s-next} - [How expectations score an inject](https://filigran.io/docs/openaev/use/expectations/). - [Set the expectations of an inject](https://filigran.io/docs/openaev/use/expectations/management/). - [Collectors](https://filigran.io/docs/openaev/use/collectors/): let a security platform answer on its own. --- # Review what your injects discovered > Find the vulnerabilities, open ports, accounts and credentials your injects extracted from their output, see which assets carry them and since when, and read a CVE's context. - URL: https://filigran.io/docs/openaev/use/findings/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, SOC analysts - Type: How-to guide A finding is one fact an inject discovered on your environment: a CVE on a server, an open port, an account, a password, a share. OpenAEV extracts it from the output of the inject, attaches it to the assets, teams or persons it concerns, and dates every time it is seen again. This page lists the findings, opens one to see where and when it appeared, and explains why some values are partly hidden. Findings come from the output parser of an action: see [Turn an action's output into findings](https://filigran.io/docs/openaev/use/threat-arsenal/output-parsers/). **Diagram: An output parser turns what an inject prints into findings, one per value, and the Findings menu groups the same value found by every inject** - Inject: Command output (Scan, dump, enumeration) - Parsing: Output parser (Set on the action) - Findings: Finding (Type, value, assets), Masked secret (Credentials shown in part) - Where you read them: Findings menu (Grouped by value), Finding page (Occurrences over time) Connections: - Command output → Output parser: read by - Output parser → Finding: one per value - Finding → Masked secret: if secret - Finding → Findings menu: listed - Findings menu → Finding page: open ## Before you start {#before-you-start} - Your role has **Access findings**. Without it, **Findings** does not show in the menu. - An inject whose action has an output parser has run, in a simulation or an atomic test. ## How findings are made {#how-findings-are-made} When an inject's output arrives, its parser turns each value it recognizes into a finding, with a type. Within one inject, a value found again is the same finding: OpenAEV merges the assets and moves its last-seen date, instead of creating a second one. Each inject keeps its own findings, and the **Findings** list then groups the same value and type found by every inject into one line. | Kind | Types | | --- | --- | | Vulnerabilities | CVE, enriched with the CVSS score and the CISA catalog | | Network | IPv4, IPv6, Port, PortsScan | | Accounts and secrets | Credentials, Username, AdminUsername, Email, Sid, Group, Computer | | Active Directory | Delegation, PasswordPolicy, KerberoastableAccount, AsreproastableAccount, AccountWithPasswordNotRequired | | Files | File, Share | | Free values | Text, Number | ## List the findings {#list-the-findings} 1. Open **Findings**. Each line is one value of one type, with the **Assets** and **Asset groups** where it was found, **First seen** and **Last seen**. The list starts with the most recently seen. 2. Narrow it: type part of a value in the search bar, or filter on **Type**, **Created at**, **Updated at**, **Assets** or **Asset groups**. The list keeps your filters. 3. Click a line to open the finding. ![The Findings list: the credential ni****** the phishing exercise captured, two Ports scan findings, 10.20.8.21:443 (https) and 10.20.8.15:5432 (postgresql), the CVE CVE-2021-42013 and the masked credential booking_app:Su******, the last four on the asset booking-web-01, with their first and last seen dates.](https://filigran.io/docs/shots/697f5cb12f471a36954560c252a95e79f43c89dc0fa76ad8dc99c683845c3aba.webp) The same list, limited to its scope, is in the **Findings** tab of a simulation, of a scenario (every simulation of the scenario together) and of an inject's result, and on the page of an endpoint. ## Read a finding {#read-a-finding} The finding's page counts its **Occurrences** and its **Impacted assets**, and, when people are concerned, such as credentials captured by phishing, its **Impacted teams** and **Impacted persons**. - **Information** gives its **Type**, **Value**, **Field** (the output field it came from), **First seen**, **Last seen** and **Tags**. - **Finding timeline** lists every inject execution that produced it: the **Inject**, its **Context** (the simulation and scenario, or **Atomic testing**), the **Impacted targets** and when it was **Seen**. Switch between **List view** and **Timeline view**. - For a CVE, a **Vulnerability** panel adds its **CVSS Version 3.1** score, its **Status**, **Published** date, **Source** and **Description**, its weakness enumeration (CWE), its references, and, when it is in the catalog, the **CISA's Known Exploited Vulnerabilities Catalog** entry with its **Due Date** and **Required Action**. **View on NVD** opens it at the National Vulnerability Database. The **Remediation** guidance of the panel requires the Enterprise Edition. ![The page of the CVE-2021-42013 finding: 1 occurrence on 1 impacted asset, its Information, the Vulnerability panel with a CVSS score of 9.8 Critical, its listing in CISA's Known Exploited Vulnerabilities catalog, its remediation and references, and the Finding timeline with the atomic test that found it on booking-web-01.](https://filigran.io/docs/shots/d12a195939f41ee9b9b54bd8b4dc5db195492397e970ff659d22950e1dad7050.webp) The vulnerability data comes from the CVE taxonomy of the platform: a CVE it does not know reads **There is no information about this vulnerability yet.** See [Taxonomies](https://filigran.io/docs/openaev/administer/taxonomies/). ## Why some values are partly hidden {#why-some-values-are-partly-hidden} A finding whose type holds a password, a hash or a key is sensitive. OpenAEV masks its secret part wherever it shows it: the lists, the finding's page, the results of injects, dashboards, widgets and the reports made from them. - Only the secret part is masked: a credential `booking_app:Summit2026!` reads `booking_app:Su******`. The account stays visible, because it tells you which account is exposed. - The mask keeps the first two characters, so you recognize a secret you already know, and has a fixed width, so it does not give away the length. A secret shorter than five characters is masked entirely. - **PasswordPolicy** values are never masked: they name a policy setting, not a secret. Kerberoastable and ASREPRoastable accounts show the account name only. Search, filters, sorting, notification triggers and dashboards work on the masked value only. A search on `booking_app` or `Su` finds the credential; a search on `Summit` finds nothing. Two passwords that start with the same two characters on the same account show as one line. A saved filter or trigger written on a full secret no longer matches: rewrite it on the account name. The platform keeps the full value in its database, for deduplication and attack paths. Protect the database and its backups like any store of credentials. **Example: Find out what the booking web front gives away** On 12 April 2026, the validation engineer of Grand Meridian Hotels runs the atomic test **Booking web front discovery on booking-web-01**. Its action replays what Velvet Harbor learned on the web front of the booking system, and its output parser turns what it prints into findings. The engineer opens **Findings**: four of its lines come from this test, all on the asset `booking-web-01`; the fifth, `ni******`, is the account the phishing exercise of the front desks captured. Two **Ports scan** findings show that the web front reaches the booking database, `10.20.8.15:5432 (postgresql)`, and a **Credentials** finding reads `booking_app:Su******`: the database account of the booking application, found in a configuration file. The engineer opens the **CVE** finding `CVE-2021-42013`. Its **Vulnerability** panel gives a **CVSS Version 3.1** score of 9.8, shows it in **CISA's Known Exploited Vulnerabilities Catalog** with its **Required Action**, and its remediation asks for Apache HTTP Server 2.4.51 or later. Its **Finding timeline** shows the atomic test that found it. The engineer sends the three findings to Hélène Marchetti, the CISO: from the web front, an attacker reaches the booking database with a valid account. ## What's next {#what-s-next} - [Read the result of an inject](https://filigran.io/docs/openaev/use/injects/results/): the findings of one inject, next to its expectations. - [Turn an action's output into findings](https://filigran.io/docs/openaev/use/threat-arsenal/output-parsers/). - [Taxonomies](https://filigran.io/docs/openaev/administer/taxonomies/): the CVE data behind the vulnerability panel. - [Custom dashboards](https://filigran.io/docs/openaev/use/dashboards/): chart findings over time. --- # How injectors deliver your injects > What an OpenAEV injector does, the built-in, catalog and external injectors, how they get their injects, and where to see each injector and its inject types. - URL: https://filigran.io/docs/openaev/use/injectors/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, platform engineers, crisis exercise planners - Type: Concept An injector is the integration that delivers an inject: it sends the email to the players, publishes the article, calls the API, runs the scan, or hands an attack action to the endpoints. Each injector brings its contracts, the inject types you pick when you add an inject to a scenario, a simulation or an atomic test. This page explains the kinds of injectors, how each one gets its injects, and where to see them, so you know which ones your scenarios can use and what to deploy for the others. Where injectors sit among agents, executors and collectors is in [How OpenAEV works](https://filigran.io/docs/openaev/concepts/architecture/#injectors). **Diagram: Built-in injectors run inside the platform, external ones take their injects from RabbitMQ, and the injectors of endpoint actions go through an executor** - OpenAEV: Platform (Schedules the injects), Built-in injectors (Email, media pressure, implant) - Queues: RabbitMQ (One queue per injector) - Integrations: External injectors (Nmap, Nuclei, HTTP query), Executors (OpenAEV agent or EDR) - Targets: People and systems (Players, APIs, networks), Endpoints (Run the actions) Connections: - Platform → Built-in injectors: runs - Platform → RabbitMQ: queues - RabbitMQ → External injectors: consumes - Built-in injectors → People and systems: delivers - External injectors → People and systems: delivers - Built-in injectors → Executors: implant jobs - Executors → Endpoints: starts ## Three kinds of injectors {#three-kinds-of-injectors} | Kind | Where it runs | Examples | What you do | | --- | --- | --- | --- | | Built in | Inside the platform, always present | Email, Media pressure, Challenges, Manual, Phishing, OpenAEV Implant | Nothing, besides the mail server the email and phishing injectors use. See [Built-in injectors and their injects](https://filigran.io/docs/openaev/use/injectors/built-in/) | | From the catalog, in the platform | Inside the platform, once deployed | OpenCTI, OVHCloud SMS Platform | Deploy it from **Integrations**, with its settings. It requires an Enterprise Edition license | | External | As its own container or Python program | Nmap, Nuclei, HTTP query, Shodan, NetExec | Run it with XTM Composer from **Integrations**, or yourself | The catalog, in **Integrations**, **Available** tab, lists the external injectors the platform knows: reconnaissance (Censys, Nmap, Shodan), vulnerability scanning (Nuclei), attack simulation (HTTP query, Amazon Web Services, NetExec, Stratus Red Team), communication (Microsoft Teams, Slack, email through Microsoft 365, Google Workspace or SMTP) and AI security (AI Red Team). ## How an injector gets its injects {#how-an-injector-gets-its-injects} The platform decides when each inject runs. Then: - A **built-in** injector runs the inject in the platform: it sends the email through the platform's mail server, or publishes the article on the player interface. - An **external** injector registers with the platform when it starts, with its URL, token and identifier. The platform answers with the connection details of RabbitMQ, and puts each inject in the injector's own queue. So the injector must reach RabbitMQ under the host name and port the platform gives it. Deployed from the catalog with XTM Composer, it registers with the token of the tenant's **Catalog connectors** service account, which every integration of the catalog shares: see [Run a collector](https://filigran.io/docs/openaev/use/collectors/#run-a-collector). How an external integration reaches its platform, with XTM Composer or without it, is in [How integrations run](https://filigran.io/docs/deploy/integrations/how-they-run/). The inject picker of scenarios, simulations and atomic tests offers only the contracts of an injector registered in the tenant. A contract whose injector has not registered would fail at launch, so it stays hidden until its injector registers. ## Injectors that act on endpoints {#injectors-that-act-on-endpoints} Some contracts run on endpoints: the attack actions of the Threat Arsenal, run by the **OpenAEV Implant** injector, and the contracts of external injectors built for endpoints. An injector of this kind does not reach the endpoint itself. When it registers, it tells the executors how to start it on Windows, Linux and macOS, and an executor starts it on each target: the OpenAEV agent or your EDR. So these injects need an executor on their targets. See [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/). ## See your injectors and their inject types {#see-your-injectors-and-their-inject-types} Open **Integrations**, **Deployed** tab. Each injector shows whether it is started and when the platform last heard from it: a built-in injector shows **Runs inside the platform**. Open an injector to see its contracts, with their **Kill chains**, **Payload domains** and **Attack patterns**. An injector deployed by XTM Composer also has a **Logs** tab. Some injectors accept contracts of your own, built from one of theirs: their contract list then has a button to **Create a new injector contract**, in two steps, **Select the template** and **Create the injector contract**. **Example: What Grand Meridian's Velvet Harbor scenario uses** The scenario that replays Velvet Harbor against Grand Meridian Hotels uses four injectors: | Inject | Injector | Kind | | --- | --- | --- | | The fake booking request for the European Hospitality Summit 2026, sent to the front desks | Phishing | Built in | | The loader's PowerShell actions on the front-desk workstations | OpenAEV Implant, through the OpenAEV agent or Meridian EDR | Built in, needs an executor | | A scan of the booking database server's exposed services | Nmap | External, run by XTM Composer | | The incident case for the CERT, in OpenCTI | OpenCTI | From the catalog | Only Nmap needs a container: the platform engineer deploys it from the **Available** tab, and it shows as started in the **Deployed** tab. Once it has registered, its scan contracts appear in the inject picker of the scenario. ![The Deployed tab of Integrations filtered on injectors: the built-in Challenges, Email, Manual, Media pressure, OpenAEV Implant and Phishing injectors, all started.](https://filigran.io/docs/shots/fb6b7e9f8ed5c2cebaf5e611de86fe1416bc53018e1613f30de0494fab9fc270.webp) ## What's next {#what-s-next} - [Built-in injectors and their injects](https://filigran.io/docs/openaev/use/injectors/built-in/) - [Install the OpenAEV agent on your endpoints](https://filigran.io/docs/openaev/use/agents/), for the injects that run on endpoints. - [How integrations run](https://filigran.io/docs/deploy/integrations/how-they-run/) and [XTM Composer](https://filigran.io/docs/deploy/integrations/composer/), to deploy external injectors. - [Build an injector](https://filigran.io/docs/develop/build/injector/), to write your own. --- # Built-in injectors and their injects > The injectors OpenAEV ships with, the inject types each one adds to your scenarios, the fields of each inject type, and the settings each one needs. - URL: https://filigran.io/docs/openaev/use/injectors/built-in/ - Products: OpenAEV 3.261118.0 - For: crisis exercise planners, security validation engineers, platform engineers - Type: Reference OpenAEV ships with injectors that need no deployment. Six run inside the platform from its first start and cover what most scenarios need: emails, media pressure, challenges, manual actions, phishing, and attack actions on endpoints. Two more ship with the platform but are deployed from the catalog: OpenCTI and OVHCloud SMS Platform. This page lists each one, the inject types (contracts) it adds, the fields of each inject, and the settings it needs. How injectors work, and the external ones, is in [How injectors deliver your injects](https://filigran.io/docs/openaev/use/injectors/). **Diagram: The built-in injectors reach players by email and on the player interface, and endpoints through an executor; OpenCTI and SMS come from the catalog** - Always present: Email and Phishing (Through the mail server), Media pressure and Challenges (On the player interface), Manual (A reminder for the animators), OpenAEV Implant (Threat Arsenal actions) - From the catalog: OpenCTI (Cases and reports), OVHCloud SMS (Texts to players) - Targets: Players (Of the target teams), Endpoints (Through an executor), OpenCTI instance (The CERT's tool) Connections: - Email and Phishing → Players: emails - Media pressure and Challenges → Players: publishes - OVHCloud SMS → Players: texts - OpenAEV Implant → Endpoints: runs actions - OpenCTI → OpenCTI instance: creates ## Always present {#always-present} | Injector | Inject types | Delivers to | Needs | | --- | --- | --- | --- | | **Email** | **Send individual mails**, **Send multi-recipients mail** | Players of the target teams | The mail server of the platform | | **Media pressure** | **Publish a media pressure** | Players, on the player interface | Channels and articles, in **Components > Channels** | | **Challenges** | **Publish challenges** | Players, on the player interface | Challenges, in **Components > Challenges** | | **Manual** | **Manual** | The animation team, as a reminder | Nothing | | **Phishing** | One per phishing landing page | Players of the target teams | The mail server of the platform, and landing pages in **Components > Phishing** | | **OpenAEV Implant** | One per action of the Threat Arsenal | Endpoints and asset groups | An executor on the targets: the OpenAEV agent or your EDR | The **Integrations** list shows these injectors with **Runs inside the platform**: you cannot stop or delete them. ### Email {#email} Sends emails to the players of the target teams, and to extra addresses typed in **Recipients**. | Inject type | What it sends | Fields | | --- | --- | --- | | **Send individual mails** | One email per player, so each one reads their own | **Subject** and **Body** (required), **Recipients**, **Encrypted**, attachments, expectations | | **Send multi-recipients mail** | One email to all the players at once, each one seeing the others | **Subject** and **Body** (required), **Recipients**, attachments, expectations | The platform sends through its mail server, set by the [`spring.mail` block](https://filigran.io/docs/reference/openaev/configuration/#spring-mail) of the configuration. The sender is `openaev.default-mailer`, or the username of the IMAP account when the platform reads replies from a mailbox and that username is an email address, set by the [`openaev.mail` block](https://filigran.io/docs/reference/openaev/configuration/#openaev-mail). An IMAP username that is a plain login, such as `openaev`, leaves `openaev.default-mailer` as the sender. ### Media pressure {#media-pressure} **Publish a media pressure** publishes articles on the player interface, to simulate the news coverage of a crisis. Its fields are the target teams and the articles (required), attachments, expectations, and **Send email** (on by default), which also tells the players by email. Articles belong to a channel, which gives them their look. See [Media pressure](https://filigran.io/docs/openaev/use/components/media-pressure/). ### Challenges {#challenges} **Publish challenges** gives the players of the target teams challenges to solve, such as a flag to find in a file, and tells them by email. Its fields are the challenges and the target teams (required), the email's **Subject**, by default `New challenges published for ${user.email}`, and **Body** (required), **Encrypted**, attachments and expectations. See [Challenges](https://filigran.io/docs/openaev/use/components/challenges/). ### Manual {#manual} **Manual** is a reminder for the animation team: an action they carry out outside the platform, such as a phone call from a fake journalist. It sends nothing. When you add expectations to it, you choose the teams whose response the animation team will score by hand. ### Phishing {#phishing} Sends a credential-harvesting email to each player of the target teams, with a link to a landing page that OpenAEV hosts, and scores who opens, clicks and submits. Each landing page adds its own inject type to the Threat Arsenal. It uses the same mail server as the email injector. See [How a phishing exercise works](https://filigran.io/docs/openaev/use/phishing/). ### OpenAEV Implant {#openaev-implant} Runs the actions of the Threat Arsenal on endpoints: commands, executables, file drops, DNS resolutions and the other kinds of actions. Each action is an inject type of this injector. The injector does not reach the endpoints itself: an executor starts the OpenAEV implant on each target, and the implant runs the action and reports. It needs an executor on every target, see [Choose between the OpenAEV agent and your EDR](https://filigran.io/docs/openaev/use/executors/), and the actions are described in [Threat Arsenal](https://filigran.io/docs/openaev/use/threat-arsenal/). ![The Email injector, started and built in, with its two inject types, Send individual mails and Send multi-recipients mail.](https://filigran.io/docs/shots/ebc813c90b692246709519aba2b6c8de4f7147d4fd019fe6f7e18652a761f8fb.webp) ## Shipped with the platform, deployed from the catalog {#shipped-with-the-platform-deployed-from-the-catalog} These two run inside the platform too, but only once you deploy them from **Integrations**, **Available** tab. Deploying them requires an Enterprise Edition license and the **Manage tenant settings** capability. A platform that had them enabled in its configuration before turns them into deployed injectors at its first start. | Injector | Inject types | Fields | Needs | | --- | --- | --- | --- | | **OpenCTI** | **Create a new case**, **Create a new report** | **Name** and **Description** (required), attachments, expectations | A connection to OpenCTI, in the [`openaev.xtm` block](https://filigran.io/docs/reference/openaev/configuration/#openaev-xtm) | | **OVHCloud SMS Platform** | **Send a SMS** | The target teams and **Message** (required), expectations | An OVHcloud SMS account: its keys, service and sender go in the injector's form | The OpenCTI injector creates the case or the report in OpenCTI, so that the CERT works the incident of the exercise in its own tool. The SMS injector texts the phone number of each player of the target teams. **Example: The injects of Grand Meridian's crisis exercise** For the crisis cell of Grand Meridian Hotels, the exercise planner turns the night of 9 January 2026 into the tabletop exercise **Velvet Harbor crisis night**, built from built-in injectors only. It starts at 22:00: | Time | Inject type | Content | | --- | --- | --- | | 22:40 | **Send individual mails** | `Call the crisis cell to the bridge`: **Subject** `${hotel_group}: crisis cell on the bridge now`, to the team **Crisis cell**, signed by the CISO Hélène Marchetti | | 22:50 | **Publish challenges** | `Which account was used?`: find, in the exported EDR alert, the account the loader ran under: the answer is `night.audit` | | 23:30 | **Publish a media pressure** | The article `Guest records of Grand Meridian Hotels offered on a criminal forum`, on the channel `Hotel Business Daily`, with **Send email** on | | 23:45 | **Manual** | A journalist calls the Paris head office: the animation team plays the call and scores the answer | None of them needs a deployment: only the platform's mail server must be set. > **With XTM One: Write the injects with XTM One** > > When OpenAEV is connected to XTM One, AI agents can write the content of these injects: the messages of an email inject and the articles of a media pressure inject, from a short description of the situation. Connecting OpenAEV to XTM One is in [Connect the modules](https://filigran.io/docs/deploy/configure/connect-modules/). ## What's next {#what-s-next} - [How injectors deliver your injects](https://filigran.io/docs/openaev/use/injectors/): the kinds of injectors and the external ones. - [Media pressure](https://filigran.io/docs/openaev/use/components/media-pressure/) and [Challenges](https://filigran.io/docs/openaev/use/components/challenges/): build the content these injectors publish. - [Install the OpenAEV agent on your endpoints](https://filigran.io/docs/openaev/use/agents/): the executor the OpenAEV Implant needs. --- # Add injects to scenarios and simulations > Create the injects of a scenario or simulation from the Threat Arsenal, set when they run, whom or what they target and what they expect, then manage them in the Injects tab. - URL: https://filigran.io/docs/openaev/use/injects/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, crisis exercise planners - Type: How-to guide An inject is one action of a simulation: an email to a team, a command on endpoints, a network scan, a media article. Each one comes from an action of the Threat Arsenal, runs at a set delay after the start of the simulation, reaches its targets, and is scored by its expectations. This page adds injects to a scenario or a simulation and manages them in the **Injects** tab. To run a single inject on its own, use an [atomic test](https://filigran.io/docs/openaev/use/atomic-testing/). The ideas behind injects are in [Injects and expectations](https://filigran.io/docs/openaev/concepts/injects-expectations/). **Diagram: An inject is one action from the Threat Arsenal, aimed at targets, with the expectations that score it, run by an injector or an agent** - Where it lives: Scenario (The plan every simulation copies), Simulation (One run on a date), Atomic test (One inject on its own) - The inject: Action (From the Threat Arsenal: email, command, scan), Targets (Teams, persons, assets, asset groups), Expectations (Prevention, detection, manual) - Runs on: Injector (Mail, SMS, HTTP, scanners), Agent (Runs commands on endpoints) Connections: - Scenario → Action: holds injects - Simulation → Action: holds injects - Atomic test → Action: is one inject - Action → Injector: delivered by - Action → Agent: or executed by ## Before you start {#before-you-start} - Your role has **Manage assessment**, or the right to manage the scenario or simulation. - The action you need is in the Threat Arsenal, and its injector or executor is connected. See [The Threat Arsenal](https://filigran.io/docs/openaev/use/threat-arsenal/). - The targets exist: teams and persons for injects to people, assets and asset groups for injects on endpoints, each with an [OpenAEV agent](https://filigran.io/docs/openaev/use/agents/). See [Targets](https://filigran.io/docs/openaev/use/targets/). A scenario is the plan, and each simulation launched from it takes a copy of its injects. An inject you add to a simulation stays in that simulation; one you add to the scenario reaches the simulations launched afterwards. A scenario or simulation built with attack chaining, an Enterprise Edition feature, has no **Injects** tab: its actions are in **Logic**. See [Attack chaining](https://filigran.io/docs/openaev/use/attack-chaining/). ## Create an inject {#create-an-inject} 1. Open the scenario or the simulation, then its **Injects** tab, and click **Create**. The **Create a new inject** picker opens on the actions of the Threat Arsenal. It lists only the actions whose injector is registered in your tenant: an action without one would fail at launch, so it does not show. 2. Find the action: type part of its name or a technique in the search bar, or filter by **Domains**, **Platform**, **Status** or **Author**. Switch between **Grid view** and **List view** to compare **Attack patterns** and **Kill chain phase**. 3. Click the action's card. Its configuration form opens. 4. Under **General**, give the inject a **Title**, and optionally a **Description** and **Tags**. 5. Under **Scheduling**, set the **Days**, **Hours** and **Minutes** after the start of the simulation when the inject runs. 6. Choose the targets. For an action on people, under **Targeted teams**, click **Modify target teams** and pick the teams, or turn on **All teams**. For an action on endpoints, pick the **Assets** or **Asset groups** under **Inject data**. A field marked as required must be filled. 7. Under **Inject data**, fill in what the action needs: the subject and body of an email, the arguments of a command. Click **Available variables** to insert a variable, such as the first name of each person. An argument that takes a file is a list of the platform's [documents](https://filigran.io/docs/openaev/use/components/documents/): pick the file there. The reset button puts back the action's defaults. For a command that runs in `cmd`, an argument value cannot hold a double quote (`"`): see [When a command is refused](#when-a-command-is-refused). 8. Under **Inject expectations**, check the expectations the action proposes, and change or add some. See [Set the expectations of an inject](https://filigran.io/docs/openaev/use/expectations/management/). 9. Under **Inject documents**, attach files when the action sends them. 10. Click **Create**. The inject appears in the list with the status **Enabled**. To add several actions at once, tick their cards in the picker and click **Add 2 injects**, or the number you selected: they are created with the action's defaults and show **Missing content** until you fill in their mandatory fields. ## Manage the injects {#manage-the-injects} The **Injects** tab lists the injects with their **Type**, **Title**, **Trigger** delay, **Platform(s)**, **Status** and **Tags**. Change the view with the buttons at its top: **List view**, **Interactive view**, a timeline where you can also chain injects, or **Distribution view**, charts of the injects by type and by team. In a simulation, the **Distribution view** also charts the scores of the expectations as they come in. **Distribution of expected total score by inject type** counts every kind of inject: a team's result for an email, the result of each asset group or directly targeted asset for a command, each counted once. The menu at the end of a line holds: | Action | What it does | | --- | --- | | **Update** | Opens the inject's form, with its **Logical chains** tab. See [Run injects on conditions and move them between scenarios](https://filigran.io/docs/openaev/use/injects/chaining/) | | **Duplicate** | Creates a copy | | **Test** | Sends an email or SMS inject to you alone. See [Try email and SMS injects on yourself before a simulation](https://filigran.io/docs/openaev/use/injects/tests/) | | **Exporter (JSON)** | Downloads the inject as a ZIP archive, to import it elsewhere | | **Disable** / **Enable** | A disabled inject stays in the list, editable, and never runs | | **Delete** | Deletes the inject | Tick several injects to act on them together: the toolbar exports them, adds, replaces or removes their assets, asset groups or teams, tests them or deletes them. The **Import injects** button at the top of the list brings injects from an export, with **Import JSON**, or from a spreadsheet, with **XLS import (mapper)**. Both need only the right to manage the scenario or simulation: an XLS mapper is created in the settings, but any editor of the scenario or simulation can pick it. See [Run injects on conditions and move them between scenarios](https://filigran.io/docs/openaev/use/injects/chaining/#reuse-injects-elsewhere) and [Import a timeline of injects from a spreadsheet](https://filigran.io/docs/openaev/use/scenarios/import/). When the action of an inject changed in the Threat Arsenal after you created it, the header shows **Review expectations**. See [Set the expectations of an inject](https://filigran.io/docs/openaev/use/expectations/management/#realign-expectations-with-their-action). ### When a command is refused {#when-a-command-is-refused} OpenAEV passes the arguments of a command to the shell as variables, so that a value never changes the command itself. A `cmd` command cannot carry a double quote in such a value, so OpenAEV refuses to prepare it. The agent then gets an **ERROR** trace that starts with `Unable to prepare the command.` and names the argument, and its execution ends at once. It counts as a failure: when every agent is refused, the inject ends in **Error**. Remove the double quote from the argument, or use an action that runs in PowerShell. How the status of an inject is computed is in [Inject execution statuses](https://filigran.io/docs/openaev/use/injects/status/). **Example: Replay Velvet Harbor against the front desks** Example CERT builds the scenario **Velvet Harbor replay** for Grand Meridian Hotels, to check Meridian EDR and the Meridian email gateway against the techniques of the 9 January 2026 intrusion. The validation engineer adds, in the **Injects** tab: | Title | Action searched in the picker | Scheduling | Targets | | --- | --- | --- | --- | | `Fake summit booking request` | An email action | 0 days, 0 hours, 0 minutes | **Targeted teams**: **Front desk France**, **Front desk Spain** | | `PowerShell loader` | `T1059.001` | 0 days, 0 hours, 15 minutes | **Asset groups**: **Front desk workstations** | | `Local guest records` | `T1005` | 0 days, 0 hours, 30 minutes | **Asset groups**: **Front desk workstations** | | `HTTPS beacon` | `T1071.001` | 0 days, 0 hours, 45 minutes | **Asset groups**: **Front desk workstations** | Each inject keeps the expectations its action proposes; for the three commands, Meridian EDR must prevent and detect them. When the simulation runs, the four injects go out at the start, then after 15, 30 and 45 minutes. ![The Injects tab of Velvet Harbor replay: the email Fake summit booking request at 0 minutes, then the PowerShell loader, the local guest records and the HTTPS beacon at 15, 30 and 45 minutes, each with its domain and Enabled.](https://filigran.io/docs/shots/a9caf6c68081fabdf17de69d5beac409a40ea089c2d43a61f420d42eec82e65b.webp) ## What's next {#what-s-next} - [Read the result of an inject](https://filigran.io/docs/openaev/use/injects/results/). - [Run injects on conditions and move them between scenarios](https://filigran.io/docs/openaev/use/injects/chaining/). - [Set the expectations of an inject](https://filigran.io/docs/openaev/use/expectations/management/). - [Inject execution statuses](https://filigran.io/docs/openaev/use/injects/status/). --- # Run injects on conditions and move them between scenarios > Make an inject run only when its parent succeeded or failed, to model a multi-stage attack, and export injects to import them into another scenario, simulation or platform. - URL: https://filigran.io/docs/openaev/use/injects/chaining/ - Products: OpenAEV 3.261118.0 - For: security validation engineers - Type: How-to guide A real attack branches: the attacker moves on only when the first stage worked. Logical chains reproduce that in a simulation, by making an inject run only when the execution or an expectation of its parent ended the way you set. The second half of this page exports injects, with their content and expectations, to import them into another scenario, simulation, atomic test or OpenAEV instance. For a full graph of actions with shared outputs and execution boundaries, use [attack chaining](https://filigran.io/docs/openaev/use/attack-chaining/), an Enterprise Edition feature. **Diagram: A child inject runs only when the conditions on its parent hold at its own time, otherwise it ends in error and so do its children** - Parent: Phishing email (Sent at the start) - Condition: Execution condition (Execution or an expectation, Success or Fail) - Children: Child inject (Runs at its scheduled time), Error (Conditions not met) Connections: - Phishing email → Execution condition: results - Execution condition → Child inject: holds - Execution condition → Error: does not hold ## Before you start {#before-you-start} - Your role has **Manage assessment**, or the right to manage the scenario or simulation. - The injects to chain exist in the same scenario or simulation, and the child is scheduled after its parent, late enough for the parent's expectations to be settled. See [Add injects to scenarios and simulations](https://filigran.io/docs/openaev/use/injects/). ## How the conditions are checked {#how-the-conditions-are-checked} When the time of a child inject comes in a simulation, OpenAEV reads its parent: - **Execution** is **Success** when the parent has finished with any status but **Error**: **Executed**, and **Partial** too. It is **Fail** when the parent ended in **Error**, or has not finished yet. - An expectation, such as **Prevention** or **Detection**, or a manual expectation by its name, is **Success** when it succeeded. Anything else is **Fail**: failed, partial, or still pending. When the conditions hold, the child runs. When they do not, it does not run: it ends in **Error**, with the trace `This inject depends on other injects expectations that are not met`, followed by each condition that failed. Its own children then see a parent in **Error**, and stop too. Conditions apply in simulations only. An atomic test ignores them. ## Chain two injects {#chain-two-injects} 1. In the **Injects** tab, open the menu of the child inject and click **Update**, then open the **Logical chains** tab. 2. Under **Parent**, click **Add parent** and choose the parent in **Inject**. An inject has at most one parent. 3. Next to **Execution condition:**, click the condition to change it. Choose what to test: **Execution**, or one of the parent's expectations. Then choose **Success** or **Fail**. 4. To test more than one thing, click **Add condition**. Between two conditions, click **AND** to switch to **OR**: with **AND** every condition must hold, with **OR** one is enough. The choice applies to every condition of that link. 5. To make other injects depend on this one, click **Add child** under **Children** and set their conditions the same way. 6. Click **Update**. ![The Logical chains tab of the inject Local guest records: its parent PowerShell loader with the execution condition Prevention is Fail and the Add condition button, then its child HTTPS beacon under Children.](https://filigran.io/docs/shots/e1db5dbac47e4985d56ddcf007fac1d38c561adcfc92ca42ff4efced06d35082.webp) In **Interactive view**, the timeline of the **Injects** tab, you can also drag a link from the dot at the side of one inject to another. The new link's condition is **Execution** is **Success**; change it in the **Logical chains** tab. A link goes only from an inject to a later one. To move a link, drag its end onto another inject: the moved link starts again from **Execution** is **Success**. To remove it, drop its end on an empty part of the timeline. ![The interactive view of the Velvet Harbor replay scenario: Fake summit booking request at 0 minutes, then PowerShell loader at 15 minutes linked to Local guest records at 30 minutes by Prevention is Failure, itself linked to HTTPS beacon at 45 minutes by Execution is Success.](https://filigran.io/docs/shots/7dd750f9e38d8f5846587db323e433115aaba78e415e90c7539f24b08c73adea.webp) **Example: Run the search only when the loader got through** The **Velvet Harbor replay** scenario of Grand Meridian Hotels replays the 9 January 2026 intrusion on the asset group **Front desk workstations**. Its inject `PowerShell loader`, at 15 minutes, runs the PowerShell (T1059.001) action and expects Meridian EDR to prevent it. The validation engineer wants the search for guest records (T1005) to run only when Meridian EDR let the loader through, and the HTTPS beacon only when the search ran: | Child | Parent | Execution condition | | --- | --- | --- | | `Local guest records`, at 30 minutes | `PowerShell loader` | **Prevention** is **Fail** | | `HTTPS beacon`, at 45 minutes | `Local guest records` | **Execution** is **Success** | If Meridian EDR blocks the loader, the search ends in **Error** with the unmet condition, and the beacon stops with it: the simulation shows that the attack ended at the loader. Keep in mind that a prevention still pending at 30 minutes also counts as **Fail**: if the EDR collector polls rarely, schedule the search later, or the search runs before the block is known. ## Reuse injects elsewhere {#reuse-injects-elsewhere} An export is a ZIP archive that holds the injects, their content, expectations, tags and chains, and the files attached to them. Assets and asset groups are never exported: set them again after an import. ### Export {#export} 1. Open the list of injects: the **Injects** tab of a scenario or simulation, or **Atomic testings**. 2. For one inject, open the menu at the end of its line and click **Exporter (JSON)**. For several, in a scenario or simulation, tick them and click **Export** in the toolbar. 3. In the dialog, tick what to include besides the injects: **Teams**, **Persons**, **Variable values**. All three are off by default. 4. Click **Export**. The browser downloads the archive. Exporting requires read access to the scenario or simulation. An atomic test exports one inject at a time. ### Import {#import} 1. Open the destination: the **Injects** tab of a scenario or simulation, or **Atomic testings**. 2. In a scenario or simulation, click **Import injects**, then **Import JSON**. In **Atomic testings**, click **Import JSON**. 3. Choose the archive and click **Import**. The archive must be a ZIP file. The injects appear with their original configuration. Importing requires the right to manage the destination; into **Atomic testings**, **Manage assessment**. Any source goes into any destination: a simulation's injects into an atomic test, an atomic test into a scenario. **XLS import (mapper)**, in the same menu, creates injects from a spreadsheet instead. ## What's next {#what-s-next} - [Read the result of an inject](https://filigran.io/docs/openaev/use/injects/results/): see which conditions held. - [Inject execution statuses](https://filigran.io/docs/openaev/use/injects/status/). - [Attack chaining](https://filigran.io/docs/openaev/use/attack-chaining/): actions that share their outputs. --- # Read the result of an inject > Open the result of an atomic test or of a simulation inject, read which targets prevented or detected it, follow its execution, and see the findings and detection rules it produced. - URL: https://filigran.io/docs/openaev/use/injects/results/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, SOC analysts - Type: How-to guide The result page of an inject answers one question per target: did your defenses prevent the action, did they detect it, and did it run at all? It also shows what the action discovered and the detection rules that would catch it. This page finds the inject, reads its scores and each target's results, and follows its execution. If you are new to injects and expectations, read [Injects and expectations](https://filigran.io/docs/openaev/concepts/injects-expectations/) first. **Diagram: The result of an inject shows its scores first, then each target with its expectations, its execution and its terminal output** - Header: Status and scores (One tile per expectation type) - Overview tab: Targets (Asset groups, teams, assets, persons, agents), Results by target (Expectations, Execution, Terminal view) - Other tabs: Execution details (Traces of the whole inject), Findings (What the output revealed), Remediations (Detection rules per platform) Connections: - Status and scores → Targets: pick a target - Targets → Results by target: shows - Status and scores → Execution details: tab - Status and scores → Findings: tab - Status and scores → Remediations: tab ## Before you start {#before-you-start} - Your role has **Access assessment**, or access to the simulation. The **Remediations** tab requires the Enterprise Edition. - The inject has run: an [atomic test](https://filigran.io/docs/openaev/use/atomic-testing/) you launched, or an inject of a [simulation](https://filigran.io/docs/openaev/use/simulations/) that has started. ## Find the inject {#find-the-inject} 1. Open the list that holds it: - an atomic test: **Atomic testings**; - an inject of a simulation: **Simulations**, the simulation, its **Overview** tab, then the **Injects results** list at the bottom. 2. Narrow the list. Type part of a title in the search bar, or add a filter: **Inject title**, **Type**, **Attack pattern**, **Kill chain phase**, **Domains**, **Tags**, **Assets**, **Asset groups**, **Teams** or **Updated at**. The list keeps your filters the next time you open it. 3. Read the line: **Execution status**, **Target**, **Global score** and **Start time** tell you which inject to open. A disabled inject shows **Disabled** and never runs. 4. Click the line. The result page opens on its **Overview** tab. The page of a team and of an organization lists the injects that targeted them, with the same columns and filters. These lists sort on **Name** and **Updated** only, and none filters on the execution status: scan the **Execution status** column. ## Read the scores {#read-the-scores} The header shows the status of the inject, its start date, end date and duration, the platforms of its action and its kill chain phases. When the status is **Error** or **Partial**, hover it to read the first error message. The meaning of every status is in [Inject execution statuses](https://filigran.io/docs/openaev/use/injects/status/). Under it, one tile per expectation type sums up every target: **Prevention**, **Detection**, **Vulnerability** and **Human response**. Each tile gives the overall result, such as **Prevented**, **Partially Detected** or **Pending**, and a bar of how many targets reached each result. A type the inject does not expect reads **No expectation for** that type. How the platform computes these results is in [How expectations score an inject](https://filigran.io/docs/openaev/use/expectations/). ## Read the results of each target {#read-the-results-of-each-target} 1. In **Targets**, choose a tab: **Asset groups**, **Teams**, **Assets**, **Persons**, **Agents** or **Manual targets**, the addresses typed by hand for a network scan such as Nmap or Nuclei. Only the kinds of target the inject reached show. An inject without any target, such as an HTTP request, shows no tab: **Targets** reads "This inject has no target. Its results are in the Execution details tab." The page remembers the last tab you opened for this inject. 2. Click a target. **Results by target** shows its results; the arrows at its top move to the previous or next target. 3. Read a section per expectation type first. Each card gives the name of the expectation, its **Score**, and, on a group, its **Validation rule**. For prevention and detection, each security platform that answers has a line, with its **Status**, its **Detection time** and its **Alerts**. Click the number of alerts to see the alerts the collector matched; an alert that carries a link opens in its security platform, in a new tab. A platform's line fills in only after its collector's next run, so allow a few minutes after the inject before you read a missing alert as a miss. 4. Read **Execution**: the traces of the target, one line per step, with the status of each agent. On an asset group, open one of its assets to see them. 5. Read **Terminal view**, on an endpoint or an agent: what each step printed. ![The Targets of the atomic test Booking database export on booking-db-01, its one asset selected, and its Results by target: the attack started, then failed, Meridian EDR prevented and detected it, each with 1 alert and a score of 100.](https://filigran.io/docs/shots/269914c8f1b2ce966a2e8eaea41f6f04d0d9443eeb23c878a837dcb0e6dd7a0d.webp) A card that reads **No automated security platform detected** has no collector able to answer it: OpenAEV failed it as soon as the inject ran. Connect a collector for that kind of security platform, or record the result yourself, as [Add expectation results by hand](https://filigran.io/docs/openaev/use/expectations/validation/) explains. ## Follow the execution and the action {#follow-the-execution-and-the-action} | Tab | What it shows | When it shows | | --- | --- | --- | | **Overview** | The targets and their results | Always | | **Execution details** | The traces of the inject as a whole: its distribution to the agents, a late start, a timeout | Always | | **Action details** | The action that ran: its **Payload**, its **Commands** with their arguments and prerequisites, and its **Output parser** | When the action comes from the Threat Arsenal | | **Findings** | What the output parser extracted from the output: open ports, accounts, vulnerabilities. Filter them by type, date, asset or asset group. See [Review what your injects discovered](https://filigran.io/docs/openaev/use/findings/) | When the action can produce findings | | **Remediations** | One tab per security platform, each with the **Detection Rule** that would catch this action | When the action comes from the Threat Arsenal. Enterprise Edition | ![The Execution details tab of the atomic test: its start and end dates, its duration of 10 minutes 30 seconds, and the trace that distributed the inject to 1 agent on 1 endpoint.](https://filigran.io/docs/shots/5ca07f87fb9f8f30074d44c9d6810507dfaeb7b42d924d9c8486d9a2f16a0bea.webp) ![The Remediations tab with a tab per security platform, Meridian EDR and Meridian email gateway: the Detection Rule of Meridian EDR, a CrowdStrike Falcon event search on the booking database servers, marked Rules written by Human, with the Generate with AI button greyed out.](https://filigran.io/docs/shots/1539f0e20855dd247cbe4110c579bd70930d5ba6f16494f54305872b75095309.webp) A detection rule is marked **Rules written by Human**, **Rules generated by AI**, or **Payload changed since rule was edited** when the action changed after the rule was written: review it before you deploy it. A platform with no rule yet reads **No detection rule available for this security platform yet.**: write the rule on the action, in the Threat Arsenal, or generate it as the card below explains. Without any security platform, the tab asks you to create one first, manual platforms included. > **With XTM One: Generate a detection rule with AI** > > On the **Remediations** tab, **Generate with AI** asks an XTM One agent to write the detection rule of a security platform: the agent chosen in the list next to the button. It works for CrowdStrike and Splunk platforms, on actions of the **Command** and **DNS resolution** types, while the rule is still empty. It requires the Enterprise Edition. Without XTM One, the same button reads **Use Ariane** and uses the AI configured in OpenAEV. How to connect XTM One is in [Connect the modules](https://filigran.io/docs/deploy/configure/connect-modules/). **Example: Check what Meridian EDR saw of the booking database export** On 12 April 2026, the validation engineer of Grand Meridian Hotels replays the export Velvet Harbor ran on the booking database server, as the atomic test **Booking database export on booking-db-01**. Once it has run, they open **Atomic testings** and click its line, which reads **Error**. On the result page, the tiles read **Prevented** and **Detected**. Under **Targets**, the **Assets** tab lists `booking-db-01`: **Meridian EDR** prevented and detected the command, with 1 alert each, at the minute the attack started. Its **Execution** reads **Timeout**: Meridian EDR killed the implant, which never reported back, so the inject ends in **Error** although the defense held. The engineer opens **Remediations** and checks the **Detection Rule** the detection team wrote for Meridian EDR, so that it also catches the export on the other booking servers. ## What's next {#what-s-next} - [Inject execution statuses](https://filigran.io/docs/openaev/use/injects/status/): every status of the header and of the traces. - [Add expectation results by hand](https://filigran.io/docs/openaev/use/expectations/validation/): when no collector reports. - [Review what your injects discovered](https://filigran.io/docs/openaev/use/findings/). - [Simulation reports](https://filigran.io/docs/openaev/use/simulations/reports/): share the results. --- # Inject execution statuses > Every status an inject and its execution traces can take in OpenAEV, what each one means, and how the platform computes the status of an inject from its agents. - URL: https://filigran.io/docs/openaev/use/injects/status/ - Products: OpenAEV 3.261118.0 - For: security validation engineers - Type: Reference Every inject that runs gets an execution status, and every step it takes on a target leaves an execution trace with a status of its own. This page lists them all, says what each one means, and explains how OpenAEV computes the status of an inject from the reports of its agents. Use it when an inject ends in **Error** or **Partial** and you need to know why. > **Warning: The execution status is not your security posture** > > The execution status says whether the action ran: the command started, crashed or timed out. It says nothing about your defenses. A command that your EDR blocked can still read **Executed**. Whether an attack was detected or prevented is in the [expectations](https://filigran.io/docs/openaev/use/expectations/) of the inject, which collectors fill from your security tools. ![The atomic test Booking database export on booking-db-01 in Error, while its Prevention and Detection tiles read Prevented and Detected.](https://filigran.io/docs/shots/b00b5366eac96c3acbc56511813a354315f460162a77d2a325ab53fee1a7a670.webp) ## Where the statuses show {#where-the-statuses-show} | Where | What it shows | | --- | --- | | The header of an inject's result page | The status of the inject. When it is **Error** or **Partial**, its tooltip gives the first error message | | **Execution status** column of the **Injects results** list (simulation **Overview**) and of **Atomic testings** | The status of each inject | | **Execution details** tab of an inject's result | The traces of the inject as a whole: the distribution to the agents, a late start, a timeout without agents | | **Execution** section of a target, in **Results by target** | The traces of that endpoint or agent, one line per step, with the status of each agent | | **Terminal view** section of an endpoint or an agent | The output each step printed | ![The Execution section of booking-db-01: the agent root in Timeout, its start and end dates, and its two traces, INFO Implant spawn by the agent, then TIMEOUT Agent root did not respond within the 10 minutes threshold.](https://filigran.io/docs/shots/30fdce454cd50a3bf873704bf4b2e909dca6e97da4be255d98f7ab0fcd3e37f6.webp) How to read the result page is in [Read the result of an inject](https://filigran.io/docs/openaev/use/injects/results/). ## Inject statuses {#inject-statuses} | Status | Meaning | | --- | --- | | **Draft** | The inject has not run yet. In a simulation that has started, an inject without a status shows **Pending** instead, except in a canceled simulation | | **Queued** | The inject was launched, for example an atomic test, and waits for the platform to start it | | **On-going** | The platform is executing the inject | | **Pending** | The inject was handed to its agents or its injector, and OpenAEV waits for their reports | | **Executed** | Every counted target ran the action to completion | | **Partial** | Some counted targets ran the action, others failed | | **Error** | No counted target ran the action, or the inject could not start | **Executed**, **Partial** and **Error** are final: once an inject reaches one of them, its status no longer changes. The **Injects** tab of a scenario or simulation has its own **Status** column, about the inject as you defined it, not about a run: **Enabled**, **Disabled** (the inject is skipped when the simulation runs) or **Missing content** (a mandatory field of the action is empty, and the inject cannot run). ## Trace statuses {#trace-statuses} Each agent reports its progress as traces, one per step: the prerequisite check, the installation of missing prerequisites, the attack command, the cleanup, then a last trace that gives the agent's status. ### The action ran {#the-action-ran} | Status | Meaning | What to check | | --- | --- | --- | | **Executed** | The command ran to completion without a system error | Nothing. It ran: it did not necessarily get past your defenses | | **Cleanup failed** | The command ran, but the cleanup step failed | Whether the action locked a file or changed permissions. Artifacts may remain on the endpoint | | **Executed with warning** | The command completed and wrote to its error output | The error output in **Terminal view** | | **Access denied** | The operating system refused the command for lack of privileges | The account the agent runs under. A denial counts as a run: the agent tried and a control stopped it | ### The action failed {#the-action-failed} | Status | Meaning | What to check | | --- | --- | --- | | **ERROR** | A failure of no known kind, or several different errors on the same agent | The agent logs and the error output | | **Command not found** | The program the command calls is missing on the endpoint | That the tool, such as `curl` or `powershell`, is installed and in the `PATH` | | **Command cannot be executed** | The program exists but cannot run | Its execute permission and its processor architecture | | **Prerequisite failed** | A prerequisite check or installation failed before the command | The prerequisites of the action, in the Threat Arsenal | | **Invalid usage** | The command was called with wrong arguments or syntax | The arguments of the inject and of the action | | **Timeout** | The agent did not report back in time, or the simulation timed out | See [Time limits](#time-limits) | | **Interrupted** | The inject stopped before it completed: a system signal, a person, a lack of resources, or the simulation was stopped | The simulation's history and the endpoint | ### Not counted {#not-counted} These traces explain why a target did not run the action. They are left out when OpenAEV computes the status of the inject. | Status | Meaning | What to check | | --- | --- | --- | | **Agent inactive** | The agent had not reported for an hour when the inject started | The connectivity of the endpoint. See [OpenAEV agents](https://filigran.io/docs/openaev/use/agents/) | | **Asset agentless** | The targeted endpoint has no agent | Install an agent on it | | **Asset not targeted** | The endpoint's marking clearance does not cover the markings of the inject | The markings of the inject and the clearance of the asset | | **AGENT_OVERLOADED** | The agent already had too many jobs waiting, so the inject was not sent to it | The queue threshold, `openaev.agent.queue-threshold`, off (`0`) by default. See the [configuration reference](https://filigran.io/docs/reference/openaev/configuration/#openaev-agent) | | **INFO** | A notice, such as the implant starting on the endpoint or the inject being distributed to its agents | Nothing | A targeted agent whose executor cannot be found gets an **ERROR** trace: `Cannot find the executor for the agent`. It counts as a failure. So does an agent whose command OpenAEV refuses to prepare, such as a `cmd` command with a double quote in an argument value: its **ERROR** trace starts with `Unable to prepare the command.` See [When a command is refused](https://filigran.io/docs/openaev/use/injects/#when-a-command-is-refused). ### Statuses of older results {#statuses-of-older-results} Results recorded by earlier versions can carry **MAYBE_PREVENTED** or **MAYBE_PARTIAL_PREVENTED**. OpenAEV no longer sets them and counts them as errors. An agent that does not report in time now gets **Timeout**. ## How OpenAEV computes the status {#how-openaev-computes-the-status} **Diagram: Each agent reports traces, each agent gets one status, and the statuses of the active agents make the status of the inject** - Traces: Prerequisites (Check and install), Attack command (The action itself), Cleanup (Removes what it left) - Per agent: Agent status (Executed, Cleanup failed, Timeout...), Not counted (Agent inactive, Asset agentless) - Inject: Inject status (Executed, Partial or Error) Connections: - Prerequisites → Agent status: prerequisite failed - Attack command → Agent status: decides first - Cleanup → Agent status: cleanup failed - Agent status → Inject status: counted - Not counted → Inject status: left out ### The status of an agent {#the-status-of-an-agent} OpenAEV reads every trace of one agent and keeps the first rule that applies: 1. A step other than the prerequisites and the cleanup failed: the agent takes that error, such as **Command not found**. Two different errors give **ERROR**. 2. A prerequisite check or installation failed: **Prerequisite failed**. 3. The command succeeded and the cleanup failed: **Cleanup failed**. 4. Every step succeeded: **Executed**. ### The status of the inject {#the-status-of-the-inject} OpenAEV then takes the status of each agent, leaves out the ones that are not counted, and decides: | The counted agents | Inject status | | --- | --- | | All ran the action | **Executed** | | All failed | **Error** | | Some ran it, some failed | **Partial** | | None: every agent was inactive, overloaded or not targeted, or no endpoint had an agent | **Error** | The statuses that count as a run are **Executed**, **Cleanup failed**, **Executed with warning** and **Access denied**. Every status of [The action failed](#the-action-failed) counts as a failure. **Example: Replay Velvet Harbor's PowerShell loader on the front desks** A validation engineer of Grand Meridian Hotels runs the PowerShell (T1059.001) action of the Velvet Harbor scenario on the asset group **Front desk workstations**, which holds five endpoints with one agent each: | Endpoint | What happened | Agent status | | --- | --- | --- | | `fd-paris-01` | The loader ran; the cleanup could not delete its file | **Cleanup failed**, a run | | `fd-paris-02` | The loader ran to completion | **Executed**, a run | | `fd-madrid-02` | Meridian EDR refused to let the script run | **Access denied**, a run | | `fd-barcelona-03` | The implant never sent its result | **Timeout**, a failure | | `fd-nice-04` | The workstation was off that night | **Agent inactive**, not counted | Three counted agents ran the action and one failed: the inject reads **Partial**. The Madrid block counts as a run, because the agent did try. Whether Meridian EDR prevented the loader in Madrid and detected it in Paris is read on the prevention and detection expectations, not here. ## Time limits {#time-limits} ### A start that comes too late {#a-start-that-comes-too-late} When a scheduled inject starts later than its planned time plus a grace period, OpenAEV does not run it. The inject ends in **Error**, with the trace `Inject is now too old for execution`, followed by the inject's ID, its launch date and the current date. It happens when the platform could not start the inject in time, for example after a restart or under heavy load. The grace period is 4 minutes, `openaev.scheduling.inject-staleness-threshold`, and cannot be less than 1 minute. See the [configuration reference](https://filigran.io/docs/reference/openaev/configuration/#openaev-scheduling). ### Agents that do not report {#agents-that-do-not-report} Once an inject is sent, OpenAEV waits for each targeted agent to report. The wait is 10 minutes by default, `INJECT_EXECUTION_THRESHOLD_MINUTES` (`inject.execution.threshold.minutes`, in the [configuration reference](https://filigran.io/docs/reference/openaev/configuration/#inject)). When it expires: - each agent that did not report gets a **Timeout** trace: `Agent did not respond within the 10 minutes threshold.`; - an inject without agents, such as a network scan, gets a **Timeout** trace: `The inject did not complete within the 10 minutes threshold and was marked as timed out.`; - OpenAEV computes the status of the inject. ### A report that comes after the timeout {#a-report-that-comes-after-the-timeout} An agent can still report after its **Timeout**, when the endpoint was slow or offline. The status of the inject was final and does not change. The **Timeout** trace keeps its status, and its message ends with `It reported later, see the next traces.` The traces the agent sends afterwards appear in the execution details as they came, and change neither the status nor the end date of the inject. ### An active asset that times out {#an-active-asset-that-times-out} The status of an agent and a **Timeout** measure two different things. An agent is active when it was seen in the last hour; for an agent run through an EDR's executor, that date comes from the EDR. A **Timeout** means the implant on the endpoint never sent its result to OpenAEV. When an active asset times out, check that: 1. The endpoint reaches the URL of OpenAEV: network, proxy, firewall and TLS certificate. 2. No antivirus or EDR blocks or deletes the implant. 3. The executor delivered the command. See [Executors](https://filigran.io/docs/openaev/use/executors/). ## What's next {#what-s-next} - [Read the result of an inject](https://filigran.io/docs/openaev/use/injects/results/): the traces in context, with the expectations. - [How expectations score an inject](https://filigran.io/docs/openaev/use/expectations/): whether the attack was prevented or detected. - [OpenAEV agents](https://filigran.io/docs/openaev/use/agents/): install and monitor the agents that report these traces. --- # Try email and SMS injects on yourself before a simulation > Send an email or SMS inject of a scenario or simulation to yourself alone, read the result in the Tests tab, fix the content and replay the test until it is right. - URL: https://filigran.io/docs/openaev/use/injects/tests/ - Products: OpenAEV 3.261118.0 - For: crisis exercise planners, security validation engineers - Type: How-to guide A test sends an email or SMS inject to you, and to no one else, so that you can read what the players will receive before the simulation starts: the subject, the body, the variables, the links. The players see nothing, and the inject stays as it is in the scenario or simulation. This page tests one inject or several, reads the result, and replays the test after a fix. Injects in general are explained in [Add injects to scenarios and simulations](https://filigran.io/docs/openaev/use/injects/). **Diagram: A test sends an email or SMS inject to you alone, and its result waits in the Tests tab until you replay it** - Scenario or simulation: Email or SMS inject (In the Injects tab) - Test: Test (Sent at once) - You: Your mailbox or phone (Only you receive it) - Result: Tests tab (Latest test per inject) Connections: - Email or SMS inject → Test: Test - Test → Your mailbox or phone: delivers - Test → Tests tab: records status - Tests tab → Test: Replay test ## Before you start {#before-you-start} - Your role has **Manage assessment**, or the right to manage the scenario or simulation. **Replay all tests** also needs **Launch assessment**, or the right to launch it. - The inject sends an email or an SMS. Only those two can be tested: other injects have no **Test** action, and a bulk test skips them. - Your account has an email address, and a phone number for SMS: the test goes to you. - The platform can send email and SMS. See [Built-in injectors](https://filigran.io/docs/openaev/use/injectors/built-in/). ## Test one inject {#test-one-inject} 1. Open the scenario or the simulation, then its **Injects** tab. 2. Open the menu at the end of the inject's line, click **Test**, then confirm. The **Test** action is missing on injects that are neither email nor SMS. 3. A message confirms that the test was sent. Click **its dedicated page** in it to open the result. 4. Read your mailbox or your phone: the message is the one the players will get. ## Test several injects at once {#test-several-injects-at-once} 1. In the **Injects** tab, tick the injects to test, or the box of the header to select them all. 2. In the toolbar that appears, click the **Test** icon, then confirm. Only email and SMS injects are tested; the dialog says so. 3. Click **its dedicated page** in the confirmation to open the **Tests** tab. ## Read the result {#read-the-result} The **Tests** tab of the scenario or simulation lists one line per tested inject, with its **Inject title**, its **Test execution time** and its **Test status**. Click a line to open **Test Details**: the traces of the sending, such as the delivery of the email to the mail server, or the error that stopped it. Until you test a first inject, the tab reads **No test yet**. ![The Tests tab of the Velvet Harbor replay scenario: the email inject Fake summit booking request, tested on April 12, 2026 at 10:47 AM, with the status EXECUTED.](https://filigran.io/docs/shots/4d6e92c0dfa0cbc2d084a2239cc714c579b74e719c4ea884ca50f1de5d96fb03.webp) ![The Test Details of the Fake summit booking request: its start and end dates, a duration of 0 seconds, and the trace EXECUTED Mail sent to docs-admin@example.com.](https://filigran.io/docs/shots/f788d2b7a32f1d8f014ba7ab07d1c3b1c1d004f15ca92ede912d566a0fff8e77.webp) Each inject keeps its latest test only: a new test of the same inject replaces the previous one. | Test status | What it means | | --- | --- | | **EXECUTED** | The platform sent the message. Check that it arrived and reads well | | **ERROR** | The sending failed. Open the test to read why, often the mail or SMS configuration | ## Replay a test {#replay-a-test} - To test one inject again after a fix, open the menu at the end of its line in the **Tests** tab and click **Replay test**. - To test them all again, click **Replay all tests** at the top of the list. - To clear a result, click **Delete test** in the line's menu. The inject is not affected. **Example: Proofread the fake summit booking request** The **Velvet Harbor replay** scenario of Grand Meridian Hotels opens with an email inject, **Fake summit booking request**, sent to the teams **Front desk France** and **Front desk Spain**: the booking request for 12 rooms during the European Hospitality Summit 2026, under the subject `Group booking: European Hospitality Summit 2026`. Before the replay, the exercise planner opens the scenario, the **Injects** tab, and clicks **Test** in the inject's menu. The **Tests** tab reads **EXECUTED**, and **Test Details** shows `Mail sent to` the planner's own address. In their mailbox, the planner finds that the body still gives last year's summit dates. They fix the body in the inject, click **Replay test**, and check the new email before the simulation starts. ## What's next {#what-s-next} - [Send a phishing exercise to your teams](https://filigran.io/docs/openaev/use/phishing/run/): phishing injects, with their landing page. - [Run a simulation](https://filigran.io/docs/openaev/use/simulations/). - [Inject execution statuses](https://filigran.io/docs/openaev/use/injects/status/): the statuses of the traces. --- # How a phishing exercise works > What an OpenAEV phishing exercise measures, the landing pages and lure emails it is built from, how each person's open, click and submission is scored, and what it needs. - URL: https://filigran.io/docs/openaev/use/phishing/ - Products: OpenAEV 3.261118.0 - For: crisis exercise planners, security validation engineers, administrators - Type: Concept A phishing exercise sends your own people a fake email and measures, person by person, who opened it, who followed its link and who typed their credentials into the page it leads to. OpenAEV runs it on its own: it writes the email, hosts the page, sends through the platform's mail server and scores every step, with nothing else to install. This page explains what an exercise is made of, how a person's actions become results, and what the platform needs before the first one. The pages under it walk through each task. > **Warning** > > Run phishing exercises only against your own users, with the authorization your organization requires. You are responsible for obtaining it before any exercise. ## What an exercise is made of {#what-an-exercise-is-made-of} **Diagram: A landing page and an email template become a phishing inject, each person gets their own email, and what they do turns their steps red** - You build: Landing page (The page the link opens), Email template (Subject, sender, body) - OpenAEV: Phishing inject (In a simulation or atomic test) - Your people: Email gateway (Inspects the email), Targeted teams (One link per person) - Results: Expectations (Opened, clicked, submitted), Findings (Submitted credentials) Connections: - Landing page → Phishing inject: Threat Arsenal action - Email template → Phishing inject: chosen in the inject - Phishing inject → Email gateway: lure email - Email gateway → Targeted teams: delivers - Targeted teams → Expectations: open, click, submit - Targeted teams → Findings: form submitted - Email gateway → Expectations: detected, blocked A phishing exercise is an inject like any other, in a scenario, a simulation or an atomic test. Two reusable components make it a phishing inject: | Component | What it is | Where you build it | | --- | --- | --- | | **Landing page** | The page a person sees after clicking the link: usually a sign-in form. Each landing page becomes an action of the Threat Arsenal, named **Phishing:** followed by its name | **Components > Phishing**, tab **Pages**. See [Build the landing page of a phishing exercise](https://filigran.io/docs/openaev/use/phishing/landing-pages/) | | **Email template** | The lure email: its subject, its sender, its body with the link. Any email template can go with any landing page | **Components > Phishing**, tab **Emails**. See [Write the lure email of a phishing exercise](https://filigran.io/docs/openaev/use/phishing/email-templates/) | You then add the landing page's action as an inject, choose the email template and the teams that receive it. Every person of those teams gets their own email, with their own link. See [Send a phishing exercise to your teams](https://filigran.io/docs/openaev/use/phishing/run/). The action carries the **E-mail Infiltration** domain and the MITRE ATT&CK techniques Phishing: Spearphishing Link (T1566.002) and Phishing for Information: Spearphishing Link (T1598.003), when the MITRE data is imported in the platform. It targets teams, never assets: no agent or executor takes part. ![The Phishing component listing the landing pages, the EHS 2026 booking portal next to the Default login page the platform ships.](https://filigran.io/docs/shots/8022d4773fca08d10a67a05d8eef5f50e3d2eb2d6e7eb4ed3e81c6e0280c9d04.webp) ## How a person's actions become results {#how-a-person-s-actions-become-results} Each inject measures three steps for every person, in the order an attack unfolds: | Step | Turns red when the person | | --- | --- | | **Email not opened** | Follows the link and moves on the landing page: reaching the page proves the email was opened. Its tracking image alone does not count | | **Link not clicked** | Follows the link and moves on the landing page (a mouse movement, a touch, a key or a scroll) | | **Credentials not submitted** | Submits the form of the landing page | The names state the outcome you want, so a step is green while it stays true and red once the person falls for it. Every step is green when the email leaves, and nothing expires: a person who never reacts keeps three green steps. A later step also turns the earlier ones red, since a person who submits the form has opened the email. Mail security gateways open every link and image of an incoming email to inspect it. That is why loading the email's image or the landing page counts for nothing on its own: only a person's move on the page does. OpenAEV also ignores a hit that arrives within 10 seconds of the email, that comes from a known scanner, or from a browser driven by automation tools, so the inspection does not count as a person's click. What the person submits can be kept as a **Credentials** finding. Two more expectations come with every phishing inject: **Detection** and **Prevention**, which a security platform of the **Email Security** type fills when it detects or blocks the email. Reading all of it is in [Read who opened, clicked and submitted](https://filigran.io/docs/openaev/use/phishing/results/). ## Before the first exercise {#before-the-first-exercise} - **Sending.** OpenAEV sends through the mail server of its configuration, the same as the email injector: the `spring.mail` keys of the [configuration reference](https://filigran.io/docs/reference/openaev/configuration/#spring-mail). Its default sender is `openaev.default-mailer`, in the [`openaev` block](https://filigran.io/docs/reference/openaev/configuration/#openaev). - **Reaching the page.** The link in each email points at the platform's address, `openaev.base-url`, so your people must be able to open it from where they read their email. To use a hostname of your own instead, see [Use your own domain for phishing links](https://filigran.io/docs/openaev/use/phishing/custom-domains/). - **Content to start from.** Each tenant starts with a landing page, **Default login page**, and an email template, **Default lure email**. You can run an exercise with them right away, edit them or delete them. ## Who can do what {#who-can-do-what} Phishing components have their own capabilities, in the role editor: | Capability | What it allows | | --- | --- | | **Access phishing** | See the landing pages and email templates | | **Manage phishing** | Create, update and duplicate them | | **Delete phishing** | Delete them | Adding the inject to a scenario, simulation or atomic test takes **Manage assessment**, and launching it **Launch assessment**. Custom domains are a tenant setting: they take **Manage tenant settings**. Every capability is in the [capabilities reference](https://filigran.io/docs/reference/openaev/capabilities/). ## Edition {#edition} Phishing exercises are part of every edition. Only **Generate with AI**, which writes the landing page or the email for you, requires the Enterprise Edition and a platform connected to XTM One. > **With XTM One: Write the lure and the page with XTM One** > > When OpenAEV is connected to XTM One, the landing page and email template editors show **Generate with AI**: an AI agent writes the page's HTML and CSS, or the email's subject and bodies, from a preset or your instructions, and refines what is already there. Connecting OpenAEV to XTM One is in [Connect the modules](https://filigran.io/docs/deploy/configure/connect-modules/). ## What's next {#what-s-next} - [Build the landing page of a phishing exercise](https://filigran.io/docs/openaev/use/phishing/landing-pages/) - [Write the lure email of a phishing exercise](https://filigran.io/docs/openaev/use/phishing/email-templates/) - [Send a phishing exercise to your teams](https://filigran.io/docs/openaev/use/phishing/run/) - [Read who opened, clicked and submitted](https://filigran.io/docs/openaev/use/phishing/results/) - [Use your own domain for phishing links](https://filigran.io/docs/openaev/use/phishing/custom-domains/) --- # Use your own domain for phishing links > Register a hostname you own for phishing links, prove it with a DNS TXT record, give it a certificate at your edge, and serve a landing page on it. - URL: https://filigran.io/docs/openaev/use/phishing/custom-domains/ - Products: OpenAEV 3.261118.0 - For: administrators, platform engineers - Type: How-to guide By default, the link of a phishing email points at the address of your OpenAEV instance. A custom domain lets the link and the address bar show a hostname you own instead, such as `reservations.grand-meridian.example`, so the lure looks real and the testing platform stays out of sight. This page registers the hostname, proves you own it in DNS, sets up its certificate, and links it to a landing page. The domain changes the link only: the sender of the email is set on the [email template](https://filigran.io/docs/openaev/use/phishing/email-templates/). > **Warning** > > Register only hostnames your organization owns and has authorized for awareness exercises. ## Before you start {#before-you-start} - Your role has **Manage tenant settings**: custom domains are a tenant setting. It covers adding, verifying and deleting them. - You can publish DNS records in the zone of the hostname. - An edge in front of the platform, such as a reverse proxy, can serve HTTPS for the new hostname: the links always use `https://`. ## Register the domain {#register-the-domain} 1. Open **Settings > Customization > Custom domains**. 2. Click **Add a custom domain**, enter the hostname in **Domain**, and click **Create**. Enter the bare hostname: no `https://`, path, port or wildcard. 3. The **Configure DNS** panel opens with the two records to publish. Copy them. 4. At your DNS provider, publish both records (see [The two DNS records](#the-two-dns-records)). 5. Back in the panel, click **Verify domain**. If the records have not reached DNS yet, wait a few minutes and click again. ![Settings, Customization, Custom domains: reservations.grand-meridian.example, Pending verification, not verified yet, with the Add a custom domain button.](https://filigran.io/docs/shots/e0fbcdd27016156e15715147dde7fb296cc7825a8fcf9ddbb1e009d0986302cc.webp) The domain is **Verified** when the panel shows **This domain is verified and can be linked to phishing landing pages.**, with the date. The domain list shows its **Status** and **Verified on**; its actions menu reopens **DNS setup & verification**, runs **Verify now**, or deletes it. **Diagram: A custom domain points at the platform with a CNAME record, proves its owner with a TXT record, and gets its certificate from your edge once OpenAEV says it is verified** - Your DNS zone: CNAME record (Hostname to the platform), TXT record (_openaev-challenge token) - OpenAEV: Verify domain (Looks the token up), Domain check (200 if verified, 404 if not), Landing page (Serve on domain) - Your edge: Reverse proxy (HTTPS for the hostname) - Your people: Person's browser (Opens the link) Connections: - TXT record → Verify domain: read - CNAME record → Reverse proxy: resolves to - Person's browser → Reverse proxy: https link - Reverse proxy → Domain check: before a certificate - Reverse proxy → Landing page: forwards ## The two DNS records {#the-two-dns-records} ![The DNS setup & verification panel of reservations.grand-meridian.example, Pending verification, with the Verify domain button: the CNAME record of the hostname pointing to the platform, and the TXT record _openaev-challenge.reservations.grand-meridian.example holding the openaev-domain-verification token.](https://filigran.io/docs/shots/f128ce88fb2af1bfaa509fd5c5670eec41f9a951c41969339b1cdc2d1c162b75.webp) | Record | **Record type** | **Name / host** | **Value** | | --- | --- | --- | --- | | **Point your domain to the platform (CNAME record)** | `CNAME` | The hostname | The host of the platform's address, `openaev.base-url` | | **Prove ownership (TXT record)** | `TXT` | `_openaev-challenge.` followed by the hostname | A token that starts with `openaev-domain-verification=` | The `TXT` record is what proves you control the zone: anyone can point a name at the platform, but only the zone's owner can publish the token. It is required, and a hostname belongs to one tenant only: another tenant that tries to add it gets **This domain is already registered**. When your provider cannot create a `CNAME` at that name, at the apex of a zone for instance, publish an `A` record to the address of your edge instead. The `CNAME` value is the host of `openaev.base-url`: if that address only resolves inside your network, point the record at the public address of your edge. ## When the verification fails {#when-the-verification-fails} The platform looks the `TXT` record up with the DNS resolvers of the machine it runs on, and stops after a few seconds. The panel says why the last attempt failed and when it ran (**Last checked**): | Message | What to do | | --- | --- | | No TXT record found at `_openaev-challenge.…` | The record is missing, or has not reached the platform's resolvers yet: check its name, then try again | | TXT record at `_openaev-challenge.…` does not match the expected value yet | Copy the value again from the panel, without spaces or extra quotes | | DNS lookup failed | The platform could not reach a resolver: check the DNS setup of its host | The status moves from **Pending verification** to **Verified**, or to **Verification failed** after a failed attempt. Verification runs only when you click: nothing checks the domain again on its own. A verified domain stays verified even if a later check fails, so a DNS hiccup never breaks a running exercise. ## Give the domain a certificate {#give-the-domain-a-certificate} The platform does not serve HTTPS for your hostnames itself: your edge does, and forwards the requests to the platform. To let the edge obtain a certificate only for your verified domains, OpenAEV answers an ownership check: ```http GET /api/hosted/domain-check?domain=reservations.grand-meridian.example ``` It answers `200` for a verified custom domain, and `404` for any other hostname. It needs no authentication. An edge that issues certificates on demand, such as Caddy with `on_demand_tls`, calls it before each new certificate, so a hostname nobody verified never gets one. Let the edge pass the `X-Forwarded-For` header to the platform: the results show the first address it holds as the origin of a click. ## Serve a landing page on the domain {#serve-a-landing-page-on-the-domain} 1. Open the landing page from **Components > Phishing**, then **Update** in its actions menu. 2. In **Serve on domain**, choose the hostname. Only verified domains are listed. 3. Click **Update**. The emails sent from then on carry links such as `https://reservations.grand-meridian.example/auth/` followed by each person's token. Emails already sent keep the links they were sent with. Deleting a custom domain does not delete its landing pages: they go back to the **Platform default domain**. Delete a domain once the exercises that use it are over, since the links already sent still point at it. **Example: Serve the summit booking portal on a Grand Meridian hostname** Grand Meridian Hotels serves its phishing pages on `reservations.grand-meridian.example`, behind a Caddy edge. Its OpenAEV instance answers at `https://aev.grand-meridian.example` (`openaev.base-url`), and the Caddy edge reaches it at `openaev:8080`. The administrator adds the domain, then publishes the records the **Configure DNS** panel gives: ```text reservations.grand-meridian.example. CNAME aev.grand-meridian.example. _openaev-challenge.reservations.grand-meridian.example. TXT "openaev-domain-verification=…" ``` The value of the `TXT` record is the whole token the panel shows, cut short here. After **Verify domain**, the domain is **Verified**. The platform engineer adds the hostname to the Caddy edge, which asks OpenAEV before each certificate: ```caddyfile { on_demand_tls { ask http://openaev:8080/api/hosted/domain-check } } https:// { tls { on_demand } reverse_proxy openaev:8080 } ``` The awareness manager sets **Serve on domain** to `reservations.grand-meridian.example` on the landing page **EHS 2026 booking portal**. The next exercise's emails link to `https://reservations.grand-meridian.example/auth/…`, and the first visit gets its certificate from the edge. ## What's next {#what-s-next} - [Build the landing page of a phishing exercise](https://filigran.io/docs/openaev/use/phishing/landing-pages/) and link it to the domain. - [Send a phishing exercise to your teams](https://filigran.io/docs/openaev/use/phishing/run/). - The [`openaev` block of the configuration reference](https://filigran.io/docs/reference/openaev/configuration/#openaev), for `openaev.base-url`. --- # Write the lure email of a phishing exercise > Create the email a phishing exercise sends, place each person's link with {{phishing_url}}, choose its sender and tracking pixel, and check it in the preview. - URL: https://filigran.io/docs/openaev/use/phishing/email-templates/ - Products: OpenAEV 3.261118.0 - For: crisis exercise planners, security validation engineers - Type: How-to guide An email template is the lure a phishing exercise sends: its subject, its sender and its body, with the link to the landing page. You write it once and choose it in each phishing inject, with any landing page. This page writes one, places the link, and explains which sender the email goes out with. If you are new to phishing exercises, read [How a phishing exercise works](https://filigran.io/docs/openaev/use/phishing/) first. ## Before you start {#before-you-start} - Your role has **Manage phishing**. Deleting a template takes **Delete phishing**. - The address you send from is one your mail server accepts to send, or the email will not leave. The mail server is the one of the platform's configuration. ## Create the email template {#create-the-email-template} 1. Open **Components > Phishing**, then the **Emails** tab. 2. Click **Create**. The editor opens with the form on the left and a **Preview** on the right, which shows the sender and the subject above the body. 3. Under **Details**, give the template a **Name**: the inject's template list shows it. Add a **Description** if you want one. 4. Write the **Subject** of the email. 5. To send from another identity than the platform's, fill in **Sender name override** and **Sender email override** (see [Choose the sender](#choose-the-sender)). 6. Keep **Add tracking pixel** on to measure who opens the email. It is on for a new template. 7. Under **Email content**, write the **HTML body**, with the `{{phishing_url}}` placeholder where the link goes. 8. Optionally, write a **Text body**. The preview shows it when the HTML body is empty. 9. Click **Create**. The page of the template opens, with its **Configuration** and its **Preview**. **Diagram: For each person, OpenAEV puts their own link in place of the placeholder, adds the tracking pixel and picks the sender before sending** - Template: HTML body (With {{phishing_url}}), Sender overrides (Inject, then template) - At sending: Personal link (One token per person), Tracking pixel (If turned on) - Delivery: Mail server (Platform configuration), Person's mailbox (Their own email) Connections: - HTML body → Personal link: placeholder replaced - Personal link → Tracking pixel: then appended - Sender overrides → Mail server: from, name, reply-to - Tracking pixel → Mail server: HTML email - Mail server → Person's mailbox: delivers ![The editor of the email template EHS 2026 group booking request: its subject, sender overrides and tracking pixel, with the preview of the email.](https://filigran.io/docs/shots/43a4f9fab7a852d0157db837df3fbaa88f1c59d285917c220a7ec3784dd155cb.webp) ## Place the link {#place-the-link} When it sends the email, OpenAEV replaces `{{phishing_url}}` with the link of the person it is writing to. Each person has their own link, so their click is theirs. Put the placeholder in a link's `href`, in the visible text, or both: ```html

Hello,

Please confirm the booking request below.

View the booking request

``` A body without the placeholder still gets the link: OpenAEV adds it as a last paragraph, showing the raw address. Nothing else in the body is replaced: OpenAEV sends the HTML as you wrote it, and the [variables](https://filigran.io/docs/openaev/use/components/variables/) of a scenario do not apply to a lure. The email goes out as HTML. The **Text body** is kept with the template, but the email sent carries the HTML body only. ## Choose the sender {#choose-the-sender} OpenAEV takes the first value that is set, from the most specific to the most general: | | Sender address | Sender name | | --- | --- | --- | | 1 | **Sender email override** of the inject | **Sender name override** of the inject | | 2 | **Sender email override** of the template | **Sender name override** of the template | | 3 | The platform's default sender | The sender name of the simulation | | 4 | | The platform's default sender name | The platform's default sender is `openaev.default-mailer` and `openaev.default-mailer-name`, in the [`openaev` block of the configuration](https://filigran.io/docs/reference/openaev/configuration/#openaev); when the platform reads its mailbox over IMAP with a username that is an email address, that address is the sender instead. Replies go to the reply-to addresses of the simulation, or to the platform's default reply-to. Set the sender on the template when it belongs to the story the email tells, and use the inject's overrides for a one-off variation. ## Decide on the tracking pixel {#decide-on-the-tracking-pixel} **Add tracking pixel** adds an invisible image at the end of the email. Loading it never turns a step red, because mail gateways and image proxies load images with nobody reading. It only notes on the person's **Email not opened** step, still green, **Email image loaded, open not confirmed** and where the request came from. The step turns red when the person moves on the landing page. Two limits on what the note tells you: - A mail client that blocks remote images never loads the pixel: the email can be read with no note. - Mail gateways load images on delivery to inspect them. A hit within 10 seconds of the email or from a known scanner reads **Automated scanner activity detected and ignored** instead, and a hit through an image proxy that also serves real readers, such as Gmail's, is marked **Possibly automated**. Turn it off when you do not need these notes: the scores stay the same. **Example: The fake booking request of the European Hospitality Summit** Velvet Harbor reached Grand Meridian's night auditor with a booking request for the European Hospitality Summit 2026. The awareness manager writes a lure in the same spirit, with a link instead of an attachment, for the [EHS 2026 booking portal](https://filigran.io/docs/openaev/use/phishing/landing-pages/) landing page. | Field | Value | | --- | --- | | **Name** | `EHS 2026 group booking request` | | **Subject** | `Group booking request: European Hospitality Summit 2026` | | **Sender name override** | `EHS 2026 Delegate Services` | | **Sender email override** | `delegates@ehs2026.example` | | **Add tracking pixel** | On | **HTML body**: ```html

Dear front desk team,

We would like to book 14 rooms for the delegates of the European Hospitality Summit 2026, from 12 to 15 March. The rooming list and the payment guarantee are in our booking portal.

View the group booking request

Kind regards,
EHS 2026 Delegate Services

``` The **Preview** shows `EHS 2026 Delegate Services ` as the sender. Each front-desk person will get this email with their own link to the booking portal. > **With XTM One: Generate the lure with XTM One** > > With OpenAEV connected to XTM One and an Enterprise Edition license, **Email content** shows **Generate with AI**. Choose an AI agent and a preset, such as **Password reset lure**, **Shared document invite** or **Match a specific brand**, or give your own instructions: the agent writes the subject, the HTML body with its `{{phishing_url}}` link, and a text body. Existing content is refined, and nothing reaches the form until you accept it. ## What's next {#what-s-next} - [Send a phishing exercise to your teams](https://filigran.io/docs/openaev/use/phishing/run/) with this template. - [Build the landing page of a phishing exercise](https://filigran.io/docs/openaev/use/phishing/landing-pages/) the link opens. - [Read who opened, clicked and submitted](https://filigran.io/docs/openaev/use/phishing/results/). --- # Build the landing page of a phishing exercise > Create the page a phishing link opens, write its sign-in form, choose what OpenAEV keeps of a submission, and use it as a Threat Arsenal action. - URL: https://filigran.io/docs/openaev/use/phishing/landing-pages/ - Products: OpenAEV 3.261118.0 - For: crisis exercise planners, security validation engineers - Type: How-to guide A landing page is the page a person sees after clicking the link of a phishing email, most often a sign-in form that asks for their credentials. You build it once in OpenAEV and reuse it in every exercise. Creating it also creates the Threat Arsenal action you add to a simulation, so the landing page is where a phishing inject starts. If you are new to phishing exercises, read [How a phishing exercise works](https://filigran.io/docs/openaev/use/phishing/) first. ## Before you start {#before-you-start} - Your role has **Manage phishing**. Deleting a landing page takes **Delete phishing**. - To serve the page on a hostname of your own, the hostname is verified first: see [Use your own domain for phishing links](https://filigran.io/docs/openaev/use/phishing/custom-domains/). ## Create the landing page {#create-the-landing-page} 1. Open **Components > Phishing**. The **Pages** tab lists the landing pages. 2. Click **Create**. The editor opens with the form on the left and a **Preview** on the right. 3. Under **Details**, give the page a **Name**. The Threat Arsenal action takes it, as **Phishing:** followed by the name, so pick one you will recognize in the picker. 4. Add a **Description** if you want one: the list shows it. 5. In **Redirect URL after submit**, enter where the person goes once they submit the form, for example your awareness page. Leave it empty to keep them on the landing page. Only a relative path or an `http` or `https` address is accepted. 6. In **Serve on domain**, keep **Platform default domain**, or choose one of your verified custom domains. The links of the emails are built on that host. 7. Choose what OpenAEV keeps of a submission with **Capture submitted data** and **Capture passwords** (see [Choose what a submission keeps](#choose-what-a-submission-keeps)). Both are on for a new page. 8. Under **Landing page content**, write the page in **HTML content**, and its style in **CSS content**. The **Preview** shows it as people will see it; its fullscreen button shows it at full size. 9. Click **Create**. The page of the landing page opens. **Diagram: When a person submits the landing page's form, OpenAEV scores the step, keeps what the capture settings allow, and sends them to the redirect URL** - The person: Link in the email (Their own token), Landing page form (Scripts removed) - OpenAEV: Submission (Named fields read) - Results: Credentials not submitted (Turns red), Credentials finding (If Capture submitted data is on; the password only with Capture passwords) - Afterwards: Redirect URL (Or stays on the page) Connections: - Link in the email → Landing page form: opens - Landing page form → Submission: submit - Submission → Credentials not submitted: scores - Submission → Credentials finding: user name, maybe password - Submission → Redirect URL: then ![The editor of the landing page EHS 2026 booking portal: its name, description, redirect URL, domain and capture switches on the left, the live preview of the sign-in form on the right, and the HTML content below.](https://filigran.io/docs/shots/929659d0cfced95001457874df732db86d03f9fdbf116df7144e4155749e5da1.webp) ## Write the form {#write-the-form} OpenAEV catches the submission of any form on the page: you do not wire the form to anything. It reads the form's named fields and records them for the person whose link was opened. - Give the user name field one of these names, and OpenAEV stores it as the user name: `username`, `email`, `user`, `login`, `loginfmt`, `user_name`, `userid`, `user_id`, `identifier`, `emailaddress`, `e-mail`, `account`. - Give the password field one of these names: `password`, `passwd`, `pass`, `pwd`, `passwordinput`, `userpassword`. - When no field name is recognized, for a form copied from a real site, OpenAEV keeps every filled field as `name=value` pairs instead, so a submission is never lost. The page is shown without its scripts: OpenAEV removes them before display. Build it with HTML and CSS only. A minimal form: ```html
``` ## Choose what a submission keeps {#choose-what-a-submission-keeps} | Setting | On | Off | | --- | --- | --- | | **Capture submitted data** | The submission becomes a **Credentials** finding, linked to the person, their team and the inject. The Threat Arsenal action declares it as an output, for [chaining injects](https://filigran.io/docs/openaev/use/injects/chaining/) | Only the submission is recorded: the **Credentials not submitted** step turns red and nothing is stored | | **Capture passwords** | The finding holds the user name and the password, as `user / password` | The finding holds the user name only, and no password is kept | Keep **Capture passwords** off unless your exercise needs the password: knowing who submitted is enough to score the step. ## Use the page in an exercise {#use-the-page-in-an-exercise} The page of the landing page shows its **Configuration** and its **Preview**. From there: - **Create atomic test** opens an atomic test already set on this action: the quickest way to send it to a test team. It takes **Manage assessment**. - In a scenario or simulation, add the action **Phishing:** followed by the page's name, from the Threat Arsenal picker. See [Send a phishing exercise to your teams](https://filigran.io/docs/openaev/use/phishing/run/). - The actions menu offers **Update**, **Duplicate** and **Delete**. > **Warning** > > Deleting a landing page also deletes its Threat Arsenal action and every inject built on it, in every scenario, simulation and atomic test, with their results and findings. Delete a landing page only when none of its exercises matter any more. **Example: A fake booking portal for the front desks** Grand Meridian Hotels wants to know whether its front desks would fall for a lure like the one Velvet Harbor sent on 9 January 2026, a booking request for the European Hospitality Summit 2026. The awareness manager builds the page the link opens: a booking portal that asks for the front-desk account to see the request. | Field | Value | | --- | --- | | **Name** | `EHS 2026 booking portal` | | **Description** | `Fake summit booking portal for the front-desk exercise` | | **Redirect URL after submit** | `https://intranet.grand-meridian.example/awareness/booking-lures` | | **Serve on domain** | `reservations.grand-meridian.example` | | **Capture submitted data** | On | | **Capture passwords** | Off | **HTML content**: ```html

European Hospitality Summit 2026

Sign in with your hotel account to view the group booking request.

``` The Threat Arsenal now holds **Phishing: EHS 2026 booking portal**. A night auditor who signs in with the shared `night.audit` account leaves a **Credentials** finding that reads `night.audit`, with no password, and lands on the intranet page that explains the exercise. > **With XTM One: Generate the page with XTM One** > > With OpenAEV connected to XTM One and an Enterprise Edition license, **Landing page content** shows **Generate with AI**. Choose an AI agent, start from a preset such as **Microsoft 365 sign-in**, **Corporate VPN portal** or **Match a specific brand**, add your own instructions, and the agent writes the HTML and the CSS. When the fields already hold content, it refines them rather than starting over. Nothing reaches the form until you accept the result. ![The page of the landing page EHS 2026 booking portal: what it captures, where it redirects, its preview, and the Create atomic test button that tries it on one target.](https://filigran.io/docs/shots/1ae450e5a4fc534caefe34028b6445b8f02e20c0cd567202d3579a58266c735b.webp) ## What's next {#what-s-next} - [Write the lure email of a phishing exercise](https://filigran.io/docs/openaev/use/phishing/email-templates/) that links to this page. - [Send a phishing exercise to your teams](https://filigran.io/docs/openaev/use/phishing/run/). - [Use your own domain for phishing links](https://filigran.io/docs/openaev/use/phishing/custom-domains/). --- # Read who opened, clicked and submitted > Read the results of a phishing exercise person by person and team by team, tell a person's click from a mail gateway's, and find the credentials it captured. - URL: https://filigran.io/docs/openaev/use/phishing/results/ - Products: OpenAEV 3.261118.0 - For: crisis exercise planners, SOC managers - Type: How-to guide The results of a phishing exercise say, for every person who received the lure, whether they opened it, followed its link and submitted the form, with where and when each happened. They also say whether your email security caught the email. This page reads them, explains why green means resisted, and shows how to tell a person from a machine. To send an exercise first, see [Send a phishing exercise to your teams](https://filigran.io/docs/openaev/use/phishing/run/). ## Before you start {#before-you-start} - Your role has **Access assessment** to read the simulation or the atomic test, and **Access findings** to read the **Findings** list. ## Read the results of the inject {#read-the-results-of-the-inject} 1. Open the simulation, its **Injects** tab, and the phishing inject. For an atomic test, open it from **Atomic testings**. 2. The targets list each team, and under it each person. Their icons show the state of each family of expectations: **Human Response** for the three phishing steps, **Detection** and **Prevention** for your email security. 3. Select a person. Their expectation cards open, in the order of the attack: **Email not opened**, **Link not clicked**, **Credentials not submitted**, then **Detection** and **Prevention**. 4. On a red step, read its **Outcome:**, the time it happened, and its **Origin:**: the address the request came from (its client in a tooltip), the delay after delivery, such as `3 minutes after delivery`, and a **Possibly automated** chip when it applies. 5. Select a team to read its own verdict on each step, derived from its people. ![The Persons of the phishing inject, Lucía Ortega and Paul Garnier red and the three others green, and the results of Paul Garnier: Email not opened, Link not clicked and Credentials not submitted failed, each with its outcome, its time and its origin 10.20.4.11, 2 or 3 minutes after delivery.](https://filigran.io/docs/shots/2e9eed8df9cc49643cc7655710ff7899dd22081c972aac3ca96738fc33eda672.webp) **Diagram: Each phishing step starts green; the person's first move on the landing page turns the first two red and a submission all three, while the email's image and a mail gateway's hits leave them green** - What happens: Email image loaded (Not proof of a reader), First move on page (Mouse, touch, key, scroll), Form submitted (Credentials typed), Gateway or scanner (Within 10 s, a scanner or automation) - Steps of the person: Email not opened (Red, with step 2), Link not clicked (Red, with step 1), Credentials not submitted (Red, with steps 1 and 2), Step stays green (Annotated, not scored) - Team: Team verdict (By its validation rule) Connections: - Email image loaded → Step stays green: annotated only - First move on page → Email not opened: turns red - First move on page → Link not clicked: turns red - Form submitted → Credentials not submitted: turns red - Gateway or scanner → Step stays green: annotated only - Credentials not submitted → Team verdict: recomputed ## Green means resisted {#green-means-resisted} The three phishing steps are named after what you want to see, so the colors read the other way from a detection: - **Green**: the person has not done it. The card's outcome reads **No phishing interaction detected**. - **Red**: the person fell for that step. The outcome reads **Opened the phishing landing page** or **Submitted data on the phishing page**. An exercise run before the upgrade to 3.261118.0 may also show **Opened the phishing email**, from the time the tracking image counted as an open. Every step is green from the moment the email leaves, and phishing steps never expire: a person who ignores the email keeps three green steps, and you can read the results at any time. Only what the person does on the landing page turns a step red: their first move on the page (a mouse movement, a touch, a key or a scroll) turns **Email not opened** and **Link not clicked** red together, and a submission all three. The tracking image of the email alone never does, since mail scanners load it too: it leaves **Email not opened** green, reading **Email image loaded, open not confirmed**, with the origin of the request. Each red step keeps the origin of the request that turned it red. A team follows the validation rule of the expectation, shown as **Validation rule:** on its card: | Validation rule | The team turns red | | --- | --- | | **All persons (per team) must validate the expectation**, the default | As soon as one person of the team falls for the step: **A team member fell for the phishing** | | **At least one person (per team) must validate the expectation** | Only when every person falls for it. Until then it reads **At least one team member resisted** | ![The results of the team Front desk France: its three phishing steps failed, under the validation rule All persons (per team) must validate the expectation, with the outcome A team member fell for the phishing.](https://filigran.io/docs/shots/dc920ad03ac9bf55025eaed813ea5c30372155881f36c7bd373c0598ca0278f0.webp) ## Tell a person from a mail gateway {#tell-a-person-from-a-mail-gateway} Mail gateways, link checkers and chat previews open links and images on their own, often within seconds of delivery. OpenAEV does not score them: - Loading the tracking image or the landing page counts for nothing on its own. Only the person's first move on the landing page, at least 800 milliseconds after it shows, turns a step red. - A hit within 10 seconds of delivery, or whose client is a known scanner (Proofpoint, Mimecast, Microsoft Safe Links, Barracuda and others), leaves the step green. The card reads **Automated scanner activity detected and ignored**, with its origin and a **Likely automated** chip. A submission from a scanner is not captured either. - A browser driven by automation tools, such as Selenium or Puppeteer, is ignored the same way, even when it moves on the page. - A tracking image loaded by anything else, a person's mail client or an image proxy such as Gmail's, leaves **Email not opened** green, reading **Email image loaded, open not confirmed**. Through an image proxy, its origin carries a **Possibly automated** chip. ![The results of Camille Roux, who opened the email but never moved on the landing page: Email not opened stays green, reading Email image loaded, open not confirmed, with its origin 10.20.4.12, and her two other steps green.](https://filigran.io/docs/shots/9a1ccefe51df986747024872b5cd30727e773de891d0d54d71e4a7a7548de6e4.webp) The chips are advice: they never change a score. A person whose **Email not opened** stays green may still have read the email: the step only proves who went as far as the landing page. ## Detection and prevention {#detection-and-prevention} **Detection** and **Prevention** say whether your email security caught the lure. Only a security platform of the **Email Security** type can fill them, through its collector; other security tools are not asked. Without such a platform, they stay empty and count as not detected and not prevented when they expire. See [Collectors](https://filigran.io/docs/openaev/use/collectors/). A phishing exercise does not record who reported the email to your security team: count the reports your SOC received during the exercise. ## Find the captured credentials {#find-the-captured-credentials} When the landing page has **Capture submitted data** on, each first submission of a person creates a **Credentials** finding: | Field | Value | | --- | --- | | Name | The name of the landing page | | Value | The user name, followed by ` / ` and the password when **Capture passwords** is on. A form whose field names OpenAEV does not recognize gives every filled field as `name=value` pairs. The lists show it masked as a whole, user name included: `night.audit` reads `ni******` | | Linked to | The person, their team and the inject | ![The Findings tab of the phishing inject: one Credentials finding, its value masked as ni******, first and last seen on April 12, 2026.](https://filigran.io/docs/shots/ebd76da9cd528af86afe3666ac758168a73dc2b583220bfcf8a55668356adf97.webp) They are in the **Findings** tab of the simulation and in **Findings**. A credentials finding can feed a following inject: see [Chain and transfer injects](https://filigran.io/docs/openaev/use/injects/chaining/). Without capture, a submission turns its step red and stores nothing. **Example: What the front desks did with the fake summit booking** On 12 April 2026, a few minutes after the emails left, the awareness manager of Grand Meridian Hotels opens the inject **Fake EHS 2026 group booking** of the simulation **Front-desk phishing**, sent to the 5 people of `Front desk France` and `Front desk Spain`. - 2 people have **Email not opened** and **Link not clicked** red, and 1 has **Credentials not submitted** red. Camille Roux and Julien Bernard loaded the email's images but never went to the page: their **Email not opened** stays green, reading **Email image loaded, open not confirmed**. Javier Morales never opened the email: his three steps stay green. - Under the default rule, **Front desk France** is red on all three steps, and **Front desk Spain** on the first two: Lucía Ortega opened the page but submitted nothing. - The one who submitted is Paul Garnier, the night auditor of the Paris hotel: his **Credentials not submitted** reads `3 minutes after delivery`, from `10.20.4.11`, the address of the front-desk workstation `fd-paris-01`. Its **Credentials** finding holds the shared account `night.audit`, without the password, because the page does not keep passwords. Hélène Marchetti, the CISO, takes two actions: move the shared `night.audit` account to personal accounts, and connect the Meridian email gateway to OpenAEV, so that the next exercise also measures whether it caught the lure. ## What's next {#what-s-next} - [Expectations](https://filigran.io/docs/openaev/use/expectations/): how expectations, scores and validation rules work. - [Findings](https://filigran.io/docs/openaev/use/findings/): the captured credentials, with the other findings. - [Send a phishing exercise to your teams](https://filigran.io/docs/openaev/use/phishing/run/) again, after the awareness session. --- # Send a phishing exercise to your teams > Add a landing page's phishing action to a simulation, choose the email and the teams, try it on yourself with an atomic test, and check that every email left. - URL: https://filigran.io/docs/openaev/use/phishing/run/ - Products: OpenAEV 3.261118.0 - For: crisis exercise planners, security validation engineers - Type: How-to guide A phishing exercise goes out as an inject: the action a landing page created in the Threat Arsenal, with an email template and the teams that receive it. Every person of those teams gets their own email at the time the inject is scheduled. This page adds the inject to a scenario or simulation, tries it first on a test team, and checks the sending. You need a [landing page](https://filigran.io/docs/openaev/use/phishing/landing-pages/) and an [email template](https://filigran.io/docs/openaev/use/phishing/email-templates/) first. ## Before you start {#before-you-start} - Your role has **Manage assessment** to add the inject, and **Launch assessment** to start the simulation or the atomic test. - The teams exist and hold the people to reach, each with an email address. See [People](https://filigran.io/docs/openaev/use/targets/people/). - The platform can send email, and its address, or the custom domain of the landing page, opens from where your people read their email. See [How a phishing exercise works](https://filigran.io/docs/openaev/use/phishing/#before-the-first-exercise). ## Add the phishing inject {#add-the-phishing-inject} 1. Open the scenario or the simulation, then its **Injects** tab, and click **Create**. The Threat Arsenal picker opens. 2. Search for **Phishing:** and the name of your landing page, then click its card. Every landing page has one action, named after it. 3. Under **General**, give the inject a **Title**, and under **Scheduling**, the delay after the start of the simulation when the emails go out. 4. Under **Targeted teams**, click **Modify target teams** and choose the teams, or turn on **All teams**. Each person of each team gets one email. 5. Under **Inject data**, choose the **Email template**. The first template is preselected. 6. To change the email for this inject only, fill in **Subject override**, **Sender name override** or **Sender email override**. They take precedence over the template. 7. Under **Inject expectations**, check the five expectations: the three steps **Email not opened**, **Link not clicked** and **Credentials not submitted**, then **Detection** and **Prevention**. Remove **Detection** and **Prevention** if no security platform of the **Email Security** type reports to OpenAEV: left empty, they count as not detected and not prevented when they expire. 8. Click **Create**. **Diagram: At the inject's time, OpenAEV creates each person's expectations and link, sends one email each through its mail server, and the link opens the landing page on the platform or your custom domain** - OpenAEV: Phishing inject (Scheduled in the simulation), Platform (Expectations, one token each) - Delivery: Mail server (spring.mail), Email gateway (Inspects links and images) - Targeted teams: Each person (Their own email) - Landing page: Landing page (Platform address or custom domain) Connections: - Phishing inject → Platform: starts - Platform → Mail server: one email per person - Mail server → Email gateway: sends - Email gateway → Each person: delivers - Each person → Landing page: clicks the link - Landing page → Platform: first move, submit The inject goes out with the simulation, like any other: see [Run a simulation](https://filigran.io/docs/openaev/use/simulations/). A phishing inject cannot be tested with the **Test** action of the injects list, which covers email and SMS injects only: try it with an atomic test instead. ## Try it on yourself first {#try-it-on-yourself-first} An atomic test runs the whole chain, from the sending to the score, without waiting for a simulation. 1. Create a team that holds only you, or a few colleagues who know about the exercise. 2. Open the landing page, from **Components > Phishing**, and click **Create atomic test**. The atomic test opens on the phishing action. 3. Choose the email template and your test team, then create the atomic test. 4. Click **Launch now**, then **Confirm**. 5. Open the email you received and click its link. 6. On the landing page, move the mouse or scroll, then submit the form. Opening the email leaves **Email not opened** green, reading **Email image loaded, open not confirmed**: mail scanners load the images of an email too, so they prove nothing. Your first move on the landing page turns **Email not opened** and **Link not clicked** red together, and the submission turns **Credentials not submitted** red. Clicks within 10 seconds of the email are ignored as a mail gateway's inspection: wait a little before you click. Delete the atomic test when you are done: its finding would otherwise stay in the **Findings** list. ## Check that every email left {#check-that-every-email-left} Open the inject, then **Execution details**. The traces end with **Phishing emails sent to** followed by the number of people, counting every person of the targeted teams. A person whose email failed has an error trace of their own, and the others still receive theirs. ![The Execution details tab of the phishing inject Fake EHS 2026 group booking, Executed, with its trace INFO Phishing emails sent to 5 target(s).](https://filigran.io/docs/shots/9ab3f42912c65f347fd20c428da5ce9d9a049ab8cc0e290018dcb31455ccaf2b.webp) | Error | Cause | | --- | --- | | **Phishing inject requires an email template** | No email template was chosen | | **Phishing email template not found** | The template was deleted after the inject was created: choose another one | | **Phishing landing page not found** | The landing page behind the action no longer exists | | **Phishing needs at least one target user** | The targeted teams hold nobody | A person who clicks while the others are still being sent is counted: their link works from the moment their email leaves. ## What the person receives {#what-the-person-receives} The link in the email reads `https://` followed by the host and `/auth/` and a long random token, such as `https://reservations.grand-meridian.example/auth/q3V9…`. The host is the [custom domain](https://filigran.io/docs/openaev/use/phishing/custom-domains/) of the landing page, or the platform's address. Nothing in it names OpenAEV, the tenant or the exercise. The link opens the landing page. Opening it is not counted yet, because mail scanners open links on their own. The person's first move on the page counts: a mouse movement, a touch, a key or a scroll, at least 800 milliseconds after the page shows. It turns **Email not opened** and **Link not clicked** red together. A move sooner than that is not counted, and the page waits for the next one. A browser driven by automation tools, such as Selenium or Puppeteer, is logged as automated and never scored. Submitting the form turns **Credentials not submitted** red, and the two steps before it if they were still green, then takes the person to the landing page's redirect URL, if it has one. Links of emails sent before an upgrade keep working. An older link, whose address still names the tenant, counts the click as soon as the person follows it. **Example: Send the fake summit booking to the French and Spanish front desks** Grand Meridian Hotels runs its front-desk awareness exercise on 12 April 2026, with the lure Velvet Harbor sent to Paul Garnier's night shift. In the scenario **Front-desk phishing**, the awareness manager adds the inject: | Field | Value | | --- | --- | | Action | **Phishing: EHS 2026 booking portal** | | **Title** | `Fake EHS 2026 group booking` | | **Scheduling** | **Days** `0`, **Hours** `0`, **Minutes** `0`: the emails leave as soon as the simulation starts | | **Targeted teams** | `Front desk France`, `Front desk Spain` (5 people) | | **Email template** | `EHS 2026 group booking request` | | **Inject expectations** | **Email not opened**, **Link not clicked** and **Credentials not submitted**. **Detection** and **Prevention** are removed: no **Email Security** platform reports to OpenAEV yet | The manager launches the simulation. A minute later, **Execution details** reads **Phishing emails sent to 5 target(s)**. ## What's next {#what-s-next} - [Read who opened, clicked and submitted](https://filigran.io/docs/openaev/use/phishing/results/). - [Inject status](https://filigran.io/docs/openaev/use/injects/status/): what the statuses and traces of an inject mean. - [Findings](https://filigran.io/docs/openaev/use/findings/): the credentials the exercise captured. --- # Set up your profile > Set your name, theme, language and home dashboard in OpenAEV, the phone and PGP key injects use, change your password or email address, and renew your API token. - URL: https://filigran.io/docs/openaev/use/profile/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, crisis exercise planners - Type: How-to guide Your profile holds what you decide for yourself in OpenAEV: your name, the theme and language of the interface, the dashboard **Home** opens on, the phone numbers and PGP key injects use when you are a target, your password and email address, and the token your scripts call the API with. Nothing you set here changes what other users see, except your name. Your notifications have their own page: see [Get notified of score drops and changes](https://filigran.io/docs/openaev/configure/notifications/). ## Before you start {#before-you-start} Every user has a profile: no capability is needed. The default administrator account, whose address and password come from the platform configuration (`openaev.admin.email` and `openaev.admin.password`, see the [admin settings](https://filigran.io/docs/reference/openaev/configuration/#openaev-admin)), has no **Password** and **Email** sections: change them in the configuration. ## Open your profile {#open-your-profile} In the top bar, open the account menu and click **Profile**. The page holds these sections: | Section | What it holds | | --- | --- | | **Profile** | **Firstname**, **Lastname**, **Organization**, **Country**, **Theme**, **Language** and **Home dashboard** | | **Information** | **Phone number (mobile)**, **Phone number (landline)** and **PGP public key** | | **Password** | The change of your password | | **Email** | The change of your email address | | **API access** | Your API token, under **Token key** | | **XTM One MCP server** | Shown only when OpenAEV is connected to XTM One | ## Set your preferences {#set-your-preferences} 1. In **Profile**, check your **Firstname** and **Lastname**: they name you wherever OpenAEV shows a person, such as the members of a team. 2. Choose the **Theme**: **Default** follows the one your administrators set, or force **Dark** or **Light**. 3. Choose the **Language**: **Automatic** follows the one your administrators set, or your browser's when they set none. 4. Choose the **Home dashboard**: the custom dashboard **Home** opens on for you. **Platform default** keeps the one your administrators chose for everyone. See [Build dashboards of your validation results](https://filigran.io/docs/openaev/use/dashboards/). 5. Click **Update**. > **Warning** > > In this version, the **Home dashboard** field shows **Platform default** each time the page opens, even when you chose another dashboard, and **Update** in the **Profile** section saves what the field shows. When you change your name, theme or language, choose your home dashboard again before you click **Update**. ![The profile page of the signed-in user: the Profile section with the names, organization, country, theme, language and home dashboard, above the Information section.](https://filigran.io/docs/shots/9575523a923af3dd4d857660e4631e1e9592251bdad79abf7bd84fb2a8bed86f.webp) ## Set how injects reach you {#set-how-injects-reach-you} When a scenario targets a team you belong to, injects use the details of the **Information** section: - **Phone number (mobile)** receives SMS injects. Start it with a plus sign and the country code. - **Phone number (landline)** is kept with your details. - **PGP public key** encrypts the email injects sent to you. Click **Update** in that section to save them. ## Change your password {#change-your-password} 1. In **Password**, enter your **Current password**. 2. Enter the **New password**, then again in **Confirmation**. 3. Click **Update**. Your other sessions of OpenAEV, in other browsers or on other devices, are signed out. The session you made the change in stays open. ## Change your email address {#change-your-email-address} **Diagram: A new email address applies only after you follow the link OpenAEV sends to your current address, within 10 minutes** - Your profile: Email section (Current password and new address) - Your current mailbox: Confirmation link (Valid 10 minutes) - OpenAEV: New address applied (Other sessions signed out) - Your new mailbox: Confirmation (The change is done) Connections: - Email section → Confirmation link: sends - Confirmation link → New address applied: followed - New address applied → Confirmation: sends 1. In **Email**, enter your **Current password** and the new **Email**. 2. Click **Update**. Your other sessions are signed out. 3. Open the email OpenAEV sends to your current address, and follow its link within 10 minutes. Until you follow the link, your address does not change. Once you follow it, the new address applies, your other sessions are signed out again, and OpenAEV sends a confirmation to the new address. An address that already belongs to another account is refused. If the link expired, start again from step 1. ## Use your API token {#use-your-api-token} **API access** shows your **Token key**. A script or an integration that calls the OpenAEV API sends it in the `Authorization` header, as `Bearer` followed by the token, and acts with your rights. **API specifications** opens the description of every endpoint. Click **RENEW** when the token may have leaked, or when someone who knew it leaves: OpenAEV deletes the token and creates a new one at once. Every script that used the old token stops working until you give it the new one. **Example: Point a reporting script at OpenAEV** The validation engineer of Grand Meridian Hotels sets **Language** to French, **Theme** to **Dark**, and **Home dashboard** to `Velvet Harbor replay`, then clicks **Update**. For the weekly report to Hélène Marchetti, the CISO, a script reads the simulations through the API, with the token stored in the variable `OPENAEV_TOKEN` of the script's vault: ```bash curl -s https://openaev.example.com/api/exercises \ -H "Authorization: Bearer $OPENAEV_TOKEN" \ -H "Content-Type: application/json" ``` When the engineer leaves the team in March 2026, their successor clicks **RENEW** in their own profile and gives the script the new token: the script runs with the rights of the person who owns the token. > **With XTM One: Use OpenAEV from an AI client** > > When OpenAEV is connected to XTM One, the **XTM One MCP server** section gives the **MCP endpoint URL** that AI clients, such as Claude Desktop or Cursor, connect to. They work with scenarios, simulations, payloads and findings with your own rights, authenticated with a personal API key of XTM One. **Manage in XTM One** opens your XTM One profile, where the key and the client configuration are. ## What's next {#what-s-next} - [Get notified of score drops and changes](https://filigran.io/docs/openaev/configure/notifications/): choose what OpenAEV tells you, and how. - [Build dashboards of your validation results](https://filigran.io/docs/openaev/use/dashboards/): build the dashboard your **Home** opens on. --- # Build a scenario that replays an attack > Create a scenario, fill it with injects by hand or with the scenario assistant, aim it at your assets and teams, then launch it or schedule it to follow your posture. - URL: https://filigran.io/docs/openaev/use/scenarios/build/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, crisis exercise planners - Type: How-to guide A scenario is the attack you want to replay, written once: its injects, the techniques they run, the assets and teams they reach, and when. Each launch copies it into a simulation, so the same scenario run every week shows whether your defenses get better or worse. This page creates a scenario, fills it, and launches or schedules it. How scenarios, simulations and injects relate is in [Scenarios and simulations](https://filigran.io/docs/openaev/concepts/scenarios-simulations/). **Diagram: A scenario holds the injects of an attack, each launch or scheduled run makes a simulation of it, and the overview of the scenario follows the results of every run** - Build: Scenario (Time-based or chained) - Fill: Injects by hand (From the Threat Arsenal), Scenario assistant (Targets and TTPs), Import (Spreadsheet, file, XTM Hub) - Run: Simulations (Launch or Scheduling) - Follow: Overview (Latest run posture, trend) Connections: - Injects by hand → Scenario: add - Scenario assistant → Scenario: generate - Import → Scenario: import - Scenario → Simulations: copied at each run - Simulations → Overview: results ## Before you start {#before-you-start} - Your role has **Manage assessment** to create and change a scenario, and **Launch assessment** to launch or schedule it. **Delete assessment** deletes it. - The assets to attack have an OpenAEV agent or another executor, and belong to asset groups: see [Assets](https://filigran.io/docs/openaev/use/targets/assets/). For tabletop and crisis exercises, the teams and persons exist: see [People](https://filigran.io/docs/openaev/use/targets/people/). ## Create the scenario {#create-the-scenario} 1. Open **Scenarios** and click **Create**. The **Create a new scenario** panel opens. 2. Choose the type: - **Time-based scenario**: each inject runs at a delay after the start. Use it for an attack replay, a phishing exercise or a crisis timeline. - **Chained scenario**: each step starts the next according to the result of the previous one, across a scope of assets. It requires the Enterprise Edition. See [Chain attacks across your network](https://filigran.io/docs/openaev/use/attack-chaining/). 3. Under **General**, give a **Name**, the only required field. The other fields describe the scenario and filter the list: | Field | Default | Purpose | | --- | --- | --- | | **Category** | **Attack Scenario** | **Global Crisis**, **Attack Scenario**, **Media Pressure**, **Data Exfiltration**, **Capture The Flag**, **Vulnerability Exploitation**, **Lateral Movement**, **URL Filtering** | | **Main focus** | **Incident Response** | The defense the scenario tests: **Endpoint Protection**, **Web Filtering**, **Incident Response**, **Standard Operating Procedures**, **Crisis Communication**, **Strategic Reaction** | | **Severity** | **High** | **Low**, **Medium**, **High**, **Critical** | | **Default kill chain** | **Automatic** | The kill chain the results are shown on | | **Description**, **Tags** | Empty | Tags also apply the [default asset rules](https://filigran.io/docs/openaev/configure/asset-rules/) of their tag to the injects | 4. Under **Modules**, turn on **Enable lessons learned** to collect the players' feedback after each run. See [Lessons learned](https://filigran.io/docs/openaev/use/components/lessons/). 5. For a time-based scenario, check **Emails & SMS**: **Sender email from**, **Reply to**, and the **Messages header** and **Messages footer** that frame every email and SMS, `SIMULATION HEADER` and `SIMULATION FOOTER` by default. 6. To build the injects from techniques right away, select the **Scenario assistant** card at the end of the form. 7. Click **Create**. The scenario opens, on the scenario assistant when you selected it. A time-based scenario has the tabs **Overview**, **Injects**, **Tests**, **Execution**, **Findings** and **Statistics**, and **Lessons learned** when it is enabled. ![The Create a new scenario panel over the scenarios list, where the three Velvet Harbor scenarios show: the choice between a chained scenario and a time-based scenario.](https://filigran.io/docs/shots/42e960113ff276550d03895c5da3bdba5b264f1f6fd5358ef06cc2431c4bb3c0.webp) ## Add the injects {#add-the-injects} Each inject is one action of the attack: a payload run on endpoints, an email, an SMS, a media article, a manual step. Three ways fill a scenario: - **By hand**: on the **Injects** tab, click **Create** and pick an action from the Threat Arsenal. See [Injects](https://filigran.io/docs/openaev/use/injects/). - **With the scenario assistant**, from techniques: below. - **From a spreadsheet**: see [Import a timeline of injects from a spreadsheet](https://filigran.io/docs/openaev/use/scenarios/import/). ### Generate injects from techniques {#generate-injects-from-techniques} The scenario assistant creates one or more injects per MITRE ATT&CK technique you select, with actions that fit the platforms and architectures of your targets. It needs actions in the Threat Arsenal linked to the techniques. 1. In the header of the scenario, click **Scenario assistant**. 2. Under **Target**, click **Modify assets** or **Modify asset groups** and choose the endpoints to attack. 3. Under **Configuration**, set the **Number of injects by TTP**, from 1 to 5. With more than one, the assistant picks different actions for the same technique. 4. On the matrix, select the techniques. **With actions** shows only the techniques that have an action; **Search a technique** finds one by ID or name. 5. Click **Create injects**, then **Access these injects**. For each technique, the assistant first looks for an action that runs on every platform, and gives it all your targets. Otherwise, it groups the targets by platform and architecture, and looks for an action that covers them all, then group by group. A technique also matches the actions of its sub-techniques. A platform and architecture left without an action gets a placeholder, disabled, named `[T1078] Placeholder - Windows x86_64`: its description says which payload is missing. Create the payload in the [Threat Arsenal](https://filigran.io/docs/openaev/use/threat-arsenal/), then delete the placeholder and generate again. > **With XTM One: Find the techniques of a threat report** > > With XTM One connected and the Enterprise Edition, **Suggest TTPs with XTM One** in the scenario assistant reads a text you paste, or up to five `.txt` or `.pdf` files, and adds the techniques it finds to your selection. Check them on the matrix before you click **Create injects**. See [XTM One in OpenAEV](https://filigran.io/docs/xtm-one/use/in-openaev/). ### Set the teams and variables {#set-the-teams-and-variables} For injects that reach people, click **Configuration** in the header. The **Scenario configuration** panel has three tabs: **Teams**, the teams and persons the scenario targets; **Variables**, values that injects reuse; **Media pressure**, the articles injects publish. See [People](https://filigran.io/docs/openaev/use/targets/people/) and [Custom variables](https://filigran.io/docs/openaev/use/components/variables/). ## Launch or schedule it {#launch-or-schedule-it} - To run it now, click **Launch**, then **Confirm**. OpenAEV creates a simulation from the scenario, starts it and opens it. - To run it on a schedule, click **Scheduling**. Choose **Once**, **Hourly**, **Daily**, **Weekly** or **Monthly**, the **Time**, the **Day of week** or **Week of month** when they apply, a **Start date** and an **End date (optional)**, then **Save**. The dialog sums up the schedule in a sentence. **Only weekday** skips weekends for hourly and daily runs. A scheduled scenario reads **Scheduled** in its header and in the list. OpenAEV creates each simulation a minute before its time. **Stop** removes the schedule; **Launch now** runs it once more without changing it. Each simulation is a copy: changing its injects does not change the scenario, and changing the scenario changes only the simulations to come. Teams and documents are shared, not copied. See [Run a simulation and read its results](https://filigran.io/docs/openaev/use/simulations/). Without the Enterprise Edition, a launch fails when an inject would run through an executor that requires it, such as a third-party EDR. ## Read the overview {#read-the-overview} The **Overview** shows the results of the latest simulation. Before the first run, it shows sample results, greyed, with **Launch simulation now**. - **Latest run posture**: a gauge per expectation type, prevention, detection, vulnerability and human response. Its ring splits the expectations into **Success**, **Partial**, **Failed** and **Pending**, and its **Resilience** is the share of successes among all of them, pending ones included, so it matches the green part of the ring. Its number turns green from 75%, amber from 50%, orange from 25%, and red below. While every expectation of a type is still pending, its gauge stays grey: no result yet, not a failure. - **Posture trend**: the scores of the successive simulations. - **Kill chain results**: the techniques of the scenario on the matrix, colored by their results. - **Simulations**: every simulation of the scenario, with its status and scores. - **Information**: the scenario's fields, and **Open in OpenCTI** when the scenario comes from an OpenCTI security coverage. The **Statistics** tab shows a custom dashboard of the scenario: **Select a dashboard** to choose it. ## Find a scenario in the list {#find-a-scenario-in-the-list} **Scenarios** lists the scenarios of the tenant, the most recently updated first, with their **Severity**, **Category**, **Type**, **Status**, **Platforms** and **Tags**. **Status** reads **Scheduled** for a scenario with a schedule, **Not planned** otherwise. - Search by name, or filter on **Category**, **Severity**, **Type**, **Recurrence**, **Platforms**, **Kill chain phase**, **Tags** or **Updated at**. The list keeps your filters for your next visit. - **Export this list** downloads the scenarios shown as a CSV file. - Tick scenarios, or the box of the header for all of them, then **Delete** to delete them at once. It needs **Delete assessment**. ## Duplicate, export and import {#duplicate-export-and-import} The menu of the header offers **Update**, **Duplicate**, **Export** and **Delete**. - **Export** downloads a `.zip`: the scenario and its injects with their files, and, if you tick them, the **Teams**, the **Persons** and the **Variable values**. Variable values can hold the addresses and other values your injects use: tick them only for a file you trust. - To import it, click **Import a scenario**, the upload icon at the top of **Scenarios**, and choose the `.zip`. It can be an export you unzipped, edited and zipped again with any archive tool: OpenAEV recognizes the scenario, its payloads and its files by their names and content. A `.zip` that holds no scenario, simulation or payload is refused. - **Import from Hub**, at the top of the list, opens the scenario library of XTM Hub when the platform is registered with it: deploy a scenario from XTM Hub and it appears in your list. See [Connect to XTM Hub](https://filigran.io/docs/openaev/administer/xtm-hub/). **Example: Replay Velvet Harbor on the front desks every week** The validation engineer of Grand Meridian Hotels wants to know each week whether Meridian EDR still stops what Velvet Harbor did on the night of 9 January 2026: a fake booking request opened at the front desk, a PowerShell loader, the shared `night.audit` account, and guest records copied from the booking database server. | Where | Value | | --- | --- | | Type | **Time-based scenario** | | **Name** | `Velvet Harbor replay` | | **Category**, **Main focus**, **Severity** | **Attack Scenario**, **Endpoint Protection**, **High** | | **Tags** | `velvet-harbor` | | **Scenario assistant**, **Asset groups** | `Front desk workstations`: the five Windows x86_64 workstations of the French and Spanish hotels | | **Number of injects by TTP** | 1 | | Techniques | Spearphishing Attachment (T1566.001), PowerShell (T1059.001), Valid Accounts (T1078), Data from Local System (T1005), Web Protocols (T1071.001) | | **Scheduling** | **Weekly**, **Day of week** Wednesday, **Time** 06:00, from 14 January 2026 | The assistant creates four injects and one placeholder, `[T1078] Placeholder - Windows x86_64`: no action of the arsenal signs in with a valid account on Windows. Every Wednesday morning, a simulation runs the four techniques on the workstations, and the **Posture trend** shows whether Meridian EDR prevented and detected them. ## What's next {#what-s-next} - [Run a simulation and read its results](https://filigran.io/docs/openaev/use/simulations/). - [Check one attack technique with an atomic test](https://filigran.io/docs/openaev/use/atomic-testing/), to try an action before you add it. - [Turn an OpenCTI security coverage into a scenario](https://filigran.io/docs/openaev/use/scenarios/from-opencti/), to let the threat intelligence build the scenario. - [Import a timeline of injects from a spreadsheet](https://filigran.io/docs/openaev/use/scenarios/import/). --- # Turn an OpenCTI security coverage into a scenario > Let OpenAEV build a scenario from a threat's security coverage in OpenCTI, aim it at the right assets, fill its gaps, and send the scores of every run back to OpenCTI. - URL: https://filigran.io/docs/openaev/use/scenarios/from-opencti/ - Products: OpenCTI 7.261119.0, OpenAEV 3.261118.0 - For: security validation engineers, SOC managers - Type: How-to guide When the SOC creates an automated security coverage on a threat in OpenCTI, OpenAEV receives it and builds a scenario on its own: one inject per technique of the threat, run on the assets of the platforms the coverage names, at the recurrence it sets. After each simulation, the scores go back to the coverage in OpenCTI. This page explains what OpenAEV builds, how to aim it at the right endpoints, how to fill the techniques it cannot test, and where the results go. The coverage itself is created in OpenCTI: see [Measure your defenses against a threat](https://filigran.io/docs/opencti/use/analyze/security-coverage/). ## Before you start {#before-you-start} - An administrator has connected OpenAEV to OpenCTI, so that the **OpenAEV Coverage** connector shows in OpenCTI. See [Connect OpenAEV to OpenCTI to test security coverages](https://filigran.io/docs/openaev/use/coverage-enrichment/). - OpenAEV agents run on the endpoints to test, and they belong to asset groups. See [OpenAEV agents](https://filigran.io/docs/openaev/use/agents/) and [Assets](https://filigran.io/docs/openaev/use/targets/assets/). - Your role in OpenAEV has **Access assessment** to read the scenario, **Manage assessment** to change its injects, **Manage tenant settings** to change the default asset rules, and **Manage threat arsenal** to add a payload. - A security platform reports to OpenAEV through a collector, such as your EDR, so that detection and prevention can be measured. See [Collectors](https://filigran.io/docs/openaev/use/collectors/). ## What OpenAEV builds {#what-openaev-builds} **Diagram: OpenAEV turns each technique, domain name and file of an OpenCTI security coverage into an inject on the asset groups of its platforms, and a placeholder when it has nothing to run** - OpenCTI: Security coverage (Techniques, platforms, recurrence) - OpenAEV: Scenario (Named after the coverage), Default asset rules (security coverage: windows), Threat Arsenal (Payloads by technique and platform) - Injects: Inject (On the asset groups), Placeholder (Disabled, nothing to run) Connections: - Security coverage → Scenario: STIX bundle - Scenario → Default asset rules: platform tags - Scenario → Threat Arsenal: each technique - Threat Arsenal → Inject: payload found - Threat Arsenal → Placeholder: none found - Default asset rules → Inject: targets OpenCTI sends the coverage, the covered threat and its entities as a Structured Threat Information Expression (STIX) bundle. OpenAEV creates one scenario per coverage, or updates the one it already built: | Property | Value | | --- | --- | | **Name** and **Description** | Those of the coverage, such as `Coverage of Velvet Harbor` | | **Category**, **Main focus**, **Severity** | **Attack Scenario**, **Incident Response**, **High** | | **Tags** | One per platform of the coverage's **Platform(s) affinity**: `security coverage: windows`, `security coverage: linux`, `security coverage: macos` | | **Threat intelligence** | **Open in OpenCTI**, on the scenario's **Overview**, opens the covered threat | | Schedule | The coverage's recurrence, from 2 minutes after the scenario is created, until the end of its **Duration** | The injects come from the entities the threat holds: | In the coverage | Inject OpenAEV creates | | --- | --- | | An attack pattern that OpenAEV knows, with a payload for the platforms to test | One inject per technique, named `[T1059.001] PowerShell - ` followed by the payload | | An attack pattern with no payload for a platform and architecture to test | A placeholder, disabled: `[T1566.001] Placeholder - Windows x86_64` | | An attack pattern OpenAEV does not know | A placeholder, disabled: `[T1566.001] Placeholder` | | A domain name indicator | `Resolve DNS` followed by the domain, run on the endpoints | | A file (artifact) | An inject that drops the file on the endpoints; a placeholder when OpenAEV cannot download it from OpenCTI | | A vulnerability | An inject from the actions OpenAEV has for that CVE; a placeholder otherwise | OpenAEV matches an attack pattern by its MITRE ATT&CK ID or its name. A parent technique, such as T1059, also matches the payloads of its sub-techniques. ### Which endpoints are tested {#which-endpoints-are-tested} The platform tags of the scenario decide the targets. Each tag has a rule in **Settings > Customization > Default asset rules** that lists asset groups, and every inject runs on the asset groups of the scenario's tags. By default, the rule of `security coverage: windows` lists the dynamic groups **All Windows x86_64** and **All Windows arm64**: every Windows endpoint of the tenant. OpenAEV then looks for a payload for each technique and each platform and architecture of those endpoints. When the endpoints run Windows on x86_64 only, one payload for Windows x86_64 is enough; when they mix architectures, a payload that covers them all is preferred, otherwise one inject per platform and architecture is created. A combination left without a payload becomes a placeholder. A coverage without **Platform(s) affinity** gives the scenario no tag, so its injects have no target: set the platforms in OpenCTI. ![The Overview of the scenario Coverage of Velvet Harbor that OpenAEV built: Attack Scenario, high, Scheduled, 17 injects and 2 asset groups, the coverage's description, the Endpoint type affinity and the Linux and Windows platforms, its security coverage tags, the Open in OpenCTI button, and its first scheduled simulation.](https://filigran.io/docs/shots/ef5178bf3d1b5b23e92549bdd630286c19de3cd274f3de02f80d2e2463ad5a35.webp) ![The Injects tab of the same scenario: four enabled injects, PowerShell, two Data from Local System and Web Protocols, each on its platform, among the disabled placeholders of the techniques no payload runs, such as T1566.001 for Windows x86_64 and Linux arm64.](https://filigran.io/docs/shots/3deb0c9598a06b9f0d09fdb2e739aecd36b56f93efa7dc8822962d0e1d2f8e8a.webp) ## Aim the scenario and fill its gaps {#aim-the-scenario-and-fill-its-gaps} Set the targets before the coverage is created: an inject keeps the asset groups it was built with, and a later change of the rule only reaches the injects built after it. 1. In OpenAEV, open **Settings > Customization > Default asset rules**. In the row of the platform tag, such as `security coverage: windows`, open the menu and choose **Update**. 2. Under **Asset groups**, keep only the groups to test, then click **Update**. The rule applies to every scenario generated from OpenCTI for that platform. 3. In OpenCTI, create the automated security coverage on the threat. Within a few seconds, the scenario appears in **Scenarios** in OpenAEV, and **Go to OpenAEV** in OpenCTI opens it. 4. Open the scenario, then its **Injects** tab, and check the targets of each inject. To change them for this scenario only, edit the inject. 5. For each placeholder, read its title. With a platform and architecture, such as `[T1566.001] Placeholder - Windows x86_64`, no payload runs the technique there: search the **Threat Arsenal** by the MITRE ATT&CK ID, and add the payload that is missing, from a payload collector such as Atomic Red Team or by hand. See [Threat arsenal](https://filigran.io/docs/openaev/use/threat-arsenal/). With the ID alone, OpenAEV does not know the attack pattern: add it in **Settings > Taxonomies > Attack patterns**, or let a collector import MITRE ATT&CK. 6. In OpenCTI, open the coverage, open the menu of actions of its header and choose **Enrichment**, then click **Refresh the knowledge using this connector** on the OpenAEV connector. OpenAEV removes the placeholders, builds the injects that are now possible, and keeps the injects it had already built, with their targets. The first simulation starts 2 minutes after the scenario is created. If you need more time to adjust it, click **Stop** in the header of the scenario to remove the schedule, then set it again with **Scheduling**. ## Results back in OpenCTI {#results-back-in-opencti} Each simulation of the scenario runs like any other: see [Run a simulation and read its results](https://filigran.io/docs/openaev/use/simulations/). When a simulation has **Finished**, every expectation answered or expired, and no later simulation of the scenario exists, OpenAEV sends its results to the coverage a minute or two later: - a score per metric, prevention, detection, vulnerability and human response: the share of expectations met, from 0 to 100; - a score for each attack pattern, domain name and file the injects tested, linked to the coverage by a **has covered** relationship; - a score per security platform that reported, such as your EDR, so OpenCTI shows which tool caught what; - the validity dates: from the start of the simulation to the expiry of its last expectation. A technique with no score in OpenCTI had no inject that ran: a placeholder, or an inject disabled by hand. The link in OpenCTI opens the scenario in OpenAEV. When the **Duration** of the coverage ends, the scenario stops running. A refresh of the coverage in OpenCTI schedules it again. **Example: Replay Velvet Harbor on the hotels of Grand Meridian** The SOC of Grand Meridian Hotels wants to know, every week, whether its defenses stop the techniques Velvet Harbor uses, on the front-desk workstations (Windows) and on the booking servers (Linux). | Who, where | What they set or see | | --- | --- | | Lionel, SOC manager, the intrusion set Velvet Harbor in OpenCTI | An automated security coverage, `Coverage of Velvet Harbor`, every week for 30 days, **Type affinity** **Endpoint**, **Platform(s) affinity** `windows` and `linux` | | OpenAEV, **Injects** tab of `Coverage of Velvet Harbor` | 17 injects. Four are enabled, on the techniques the threat arsenal of Grand Meridian covers: `[T1059.001] PowerShell - ...`, `[T1071.001] Web Protocols - ...`, and two `[T1005] Data from Local System - ...`, the guest records search on the front desks and the export on the booking database. Thirteen are disabled placeholders, such as `[T1566.001] Placeholder - Windows x86_64` for the attachment no payload opens yet, or `[T1087] Placeholder` for a technique OpenAEV does not know | | Validation engineer, Threat Arsenal | A payload for T1566.001 on Windows x86_64 that writes the booking request's attachment to disk and opens it | | Lionel, the coverage in OpenCTI | **Refresh the knowledge using this connector** | At the refresh, the placeholder of T1566.001 for Windows becomes `[T1566.001] Spearphishing Attachment - ...`. Each weekly simulation then sends its scores back to the coverage in OpenCTI, technique by technique, and the placeholders left show what the threat arsenal still misses. > **With XTM One: Ask XTM One about the results** > > With XTM One connected and the Enterprise Edition, **Ask Ariane** in OpenAEV reads the scenario and its simulations as you: ask it which techniques of Velvet Harbor Meridian EDR did not prevent, or to draft a readout of the last run for the CISO. See [XTM One in OpenAEV](https://filigran.io/docs/xtm-one/use/in-openaev/). ## When the scenario does not appear {#when-the-scenario-does-not-appear} - **The connector is missing in OpenCTI**: the **Automated using enrichment** choice stays greyed. Check the connection: see [Connect OpenAEV to OpenCTI to test security coverages](https://filigran.io/docs/openaev/use/coverage-enrichment/#check-the-connection). - **The coverage did not change**: OpenAEV refuses a bundle identical to the last one, and a bundle older than the last it processed. The **Enrichment connectors** panel of the coverage in OpenCTI shows the request and its message. - **The injects have no target**: the coverage has no **Platform(s) affinity**, or the rule of its platform tag lists no asset group. ## What's next {#what-s-next} - [Run a simulation and read its results](https://filigran.io/docs/openaev/use/simulations/), to follow the runs of the scenario. - [Measure your defenses against a threat](https://filigran.io/docs/opencti/use/analyze/security-coverage/), to read the scores in OpenCTI. - [Check your defenses against the threats you track](https://filigran.io/docs/workflows/threat-informed-validation/), the whole loop across the XTM platform. - [Default asset rules](https://filigran.io/docs/openaev/configure/asset-rules/), for the rules of every platform tag. --- # Import a timeline of injects from a spreadsheet > Describe your spreadsheet once in an XLS mapper, test it, then import a crisis exercise timeline into a scenario as emails and SMS with their delays and teams. - URL: https://filigran.io/docs/openaev/use/scenarios/import/ - Products: OpenAEV 3.261118.0 - For: crisis exercise planners, security validation engineers - Type: How-to guide Crisis exercises are often written in a spreadsheet: one row per message, with its time, the team that receives it and its text. OpenAEV imports such a timeline into a scenario, as email and SMS injects, so you do not type it again. An XLS mapper tells OpenAEV how to read your spreadsheet: which column gives the kind of inject, and which columns fill its fields. You create the mapper once, test it, and reuse it for every exercise written on the same model. For what a scenario holds, see [Build a scenario that replays an attack](https://filigran.io/docs/openaev/use/scenarios/build/). **Diagram: An XLS mapper reads each row of a spreadsheet, picks the inject type from one column and fills the inject from the others, and the import adds the injects to the scenario** - Your timeline: Spreadsheet (One row per action, .xlsx or .xls) - Settings: XLS mapper (Inject type column, rules per type) - Scenario: Injects (Emails and SMS, with their delays), Teams (Existing, or created for the scenario) Connections: - Spreadsheet → XLS mapper: rows - XLS mapper → Injects: one inject per row - XLS mapper → Teams: team names ## Before you start {#before-you-start} - To create and test a mapper, your role has **Manage tenant settings**. - To import, you only need the right to manage the scenario or simulation: **Manage assessment**, or a grant on it. Every member of the tenant can pick an existing mapper, so the person who imports does not need the settings. - The spreadsheet is an `.xlsx` or `.xls` file of less than 25 MB, with one row per inject and one column that says which kind of inject the row is. - Emails and SMS can be sent: the import creates **Send individual mails**, **Send multi-recipients mail** and **Send a SMS** injects, the only ones it supports. See [Injects](https://filigran.io/docs/openaev/use/injects/). ## Describe the spreadsheet in a mapper {#describe-the-spreadsheet-in-a-mapper} 1. Open **Settings > Data ingestion > XLS mappers** and click **Create**. The **Create a xls mapper** panel opens. 2. Give a **Mapper name**, and choose the **Inject type column**: the letter of the column that says which kind of inject a row is. 3. Next to **Representation for inject type**, click **Add**. A representation describes one kind of inject. 4. In **Matching type in the xls**, enter the text that marks this kind in the inject type column, such as `mail`. It is a regular expression, case sensitive, that matches anywhere in the cell: `mail` matches `Send mail`, not `Mail`. 5. In **Inject type**, choose the inject to create, such as **Send individual mails**. The rules of its fields appear: **Title**, **Description**, **Trigger time**, then the fields of the inject, such as **Teams**, **Email subject** and **Email body**, then **Expectation name**, **Expectation description** and **Expectation score**. A red star marks the mandatory ones. 6. For each field, enter the column letter in **Rule attributes columns**. To join several columns, separate the letters with `+`. To give a value to every row, click the gear and fill in **Default value**: it applies when the cell is empty. 7. Add a representation for each other kind of inject, such as `(sms|SMS)` for **Send a SMS**. 8. Click **Create**. ![The Update the xls mapper panel of Grand Meridian exercise timeline: inject type column A, and its representation Send individual mails, matching mail, with the Title in column B, no Description and the Trigger Time in column C.](https://filigran.io/docs/shots/5eb569d73daa849b7f31e415fb47345e464aac51f7e6c1aafaaa0e5a71d5d266.webp) A row whose inject type matches no representation is skipped. A row that matches two representations is skipped too: make the expressions exclusive. ### When the injects happen {#when-the-injects-happen} The **Trigger time** column gives the time of each inject, in one of two ways: - **Relative**, from the first inject: `D` or `J` for days, `H` or `T` for hours, `M` for minutes, each followed by a signed number. `D+1 H+3 M+45` is one day, three hours and forty-five minutes after the start. A letter without a number counts as zero. A day can also take a time of day, `D+1 09:30`, which then needs a start date. - **Absolute**: a date and time, such as `2026-03-12T09:30:00`, or a time of day, such as `09:30`. For another format, click the gear of **Trigger time** and set a **Time pattern**, in the notation of Java date formats, such as `dd.MM.yyyy HH'h'mm`. OpenAEV turns the times into delays from the earliest one. A timeline with times of day, such as `09:30`, needs a start date: the import asks for it, and sets the scenario to run once on that day, at the earliest time. A timeline that mixes the two places each relative row on the nearest absolute row. ### Who receives each inject {#who-receives-each-inject} The **Teams** column holds team names, separated by commas. A name that matches an existing team links that team. Any other name creates a team that exists only in this scenario, and the test reports it with **Team not found (contextual team will be created)**. To target all the teams of the scenario, click the gear of **Teams** and set the **All teams value**, the text that means everyone, such as `All`. ### Test the mapper {#test-the-mapper} 1. In the mapper's panel, click **Test**. The **Testing XLS mapper** dialog opens. 2. Choose the spreadsheet and click **Next**. 3. Choose the **Sheet** and the **Timezone** in which to read the times, then click **Test**. **Result** shows the injects the mapper would create; **Log** shows the rows it skipped and why. Nothing is saved. Fix the rules until every row you expect is in **Result**. ## Import the timeline into a scenario {#import-the-timeline-into-a-scenario} 1. Open the scenario, then its **Injects** tab. A simulation's **Injects** tab imports the same way. 2. Click **Import injects**, the upload icon, and choose **XLS import (mapper)**. 3. Choose the spreadsheet, then click **Next**. 4. Choose the **Sheet**, the **Mapper** and the **Timezone**. When the times are times of day only, a **Start date** field appears: set the day of the exercise. 5. Check the summary, which counts the injects ready to import and lists the errors by column and by row, then click **Launch import**. ![The Import injects dialog on its first step: Select your file, an XLS spreadsheet, before Next.](https://filigran.io/docs/shots/fd333428353110be8d0a2adbb37f6428491a9e27b8b55e5e33dace0d199df6d9.webp) The injects appear on the **Injects** tab, with their delays, teams and expectations. The spreadsheet stays on the server for 60 minutes, so you can change the mapper and import again in that time without choosing the file again. **Example: Import the board's crisis exercise on the guest data breach** Hélène Marchetti, CISO of Grand Meridian Hotels, asks for a tabletop exercise for the board: the guest records stolen by Velvet Harbor are offered for sale, and the press calls. The exercise planner wrote the timeline in `guest-breach-exercise.xlsx`: | A, Channel | B, Action | C, Time | D, Teams | E, Subject | F, Content | | --- | --- | --- | --- | --- | --- | | `mail` | Alert from the SOC | `D+0` | Executive committee | Guest records offered for sale | The SOC found 2.4 million guest records of Grand Meridian on a criminal forum. | | `mail` | Journalist asks for comment | `D+0 H+1` | Head of Communications | Press request | A journalist of a travel magazine asks whether guest data leaked. | | `note` | Facilitator checks the decisions | `D+0 H+2` | | | | The mapper `Grand Meridian exercise timeline` has **Inject type column** `A` and one representation: | **Matching type in the xls** | **Inject type** | Rules | | --- | --- | --- | | `mail` | **Send individual mails** | **Title** `B`, **Trigger time** `C`, **Teams** `D`, **Email subject** `E`, **Email body** `F` | The test shows two injects; the `note` row is skipped, and **Executive committee** and **Head of Communications** are reported as teams to create. On the scenario `Guest data breach - board exercise`, the import creates the two injects at 0 and 60 minutes, and the two teams for this scenario only. ## What's next {#what-s-next} - [Build a scenario that replays an attack](https://filigran.io/docs/openaev/use/scenarios/build/), to set the teams and launch the exercise. - [Run a simulation and read its results](https://filigran.io/docs/openaev/use/simulations/), to follow the players' answers. - [People](https://filigran.io/docs/openaev/use/targets/people/), to add the persons of the teams created by the import. --- # Run a simulation and read its results > Start a simulation from a scenario or on its own, follow it while it runs, and read which attacks your defenses prevented and detected and how your teams responded. - URL: https://filigran.io/docs/openaev/use/simulations/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, crisis exercise planners, SOC managers - Type: How-to guide A simulation is one run of an attack or an exercise on your environment: its injects run at their time, your security tools and your teams react, and OpenAEV scores the result on four axes, prevention, detection, vulnerability and human response. Most simulations come from a scenario, launched by hand or on its schedule, so that successive runs can be compared. This page starts a simulation, follows it, and reads its results. To build what it runs, see [Build a scenario that replays an attack](https://filigran.io/docs/openaev/use/scenarios/build/). ## Before you start {#before-you-start} - Your role has **Launch assessment** to start, pause, stop or reset a simulation, and **Manage assessment** to create or change one. **Access assessment** is enough to read the results. - Collectors read your security tools, so that detection and prevention can be scored: see [Collectors](https://filigran.io/docs/openaev/use/collectors/). When no collector answers that type of expectation for the security platforms an inject expects, its detection or prevention expectation fails at once, and reads **No automated security platform detected**. A collector you **Stop** in **Integrations** no longer counts for the injects that run afterwards. ## Start a simulation {#start-a-simulation} - **From a scenario**: click **Launch** in its header, or let its schedule create the simulations. Each simulation is a copy of the scenario at that moment. See [Launch or schedule it](https://filigran.io/docs/openaev/use/scenarios/build/#launch-or-schedule-it). - **On its own**, for a one-off exercise: open **Simulations**, click **Create**, choose **Time-based simulation**, and fill in the same fields as a scenario, plus a **Start date (optional)** in the future. **Chained simulation** requires the Enterprise Edition. - **From a file**: click **Import a simulation** at the top of **Simulations** and choose an export. A simulation without a start date is a **Draft**; with one, it is **Scheduled** and starts on its own. **Start now** starts it at the next full minute. Before you start it, you can still change it without touching the scenario: its injects on the **Injects** tab, and its teams, variables and media pressure articles in **Configuration**. Teams and documents are shared with the scenario: a change to a team applies to both. ## Follow it while it runs {#follow-it-while-it-runs} **Diagram: A simulation waits until it starts, runs its injects until every expectation is answered or expired, and can be paused, stopped or reset to run again** - Before: Scheduled (Draft without a start date) - Running: On-going (Injects run, collectors answer), Paused (Injects wait) - After: Finished (Every expectation answered or expired), Canceled (Stopped, results kept) Connections: - Scheduled → On-going: start - On-going ↔ Paused: Pause - On-going → Finished: all answered - On-going → Canceled: Stop - Finished → Scheduled: Reset | Status | What happens | Actions in the header | | --- | --- | --- | | **Draft**, **Scheduled** | Nothing runs yet | **Start now**, **Scheduling** | | **On-going** | The injects run at their time; collectors and players answer the expectations | **Pause**, **Stop** | | **Paused** | The injects wait | **Resume**, **Stop** | | **Finished** | Every inject ran and every expectation is answered or expired | **Reset** | | **Canceled** | Stopped by hand; the results collected so far are kept | **Reset** | ![The simulation Velvet Harbor crisis night On-going, with Pause and Stop in its header, its three injects, one team, three persons, a media pressure and a challenge, and under Results the human response still at 0 % with one validation needed.](https://filigran.io/docs/shots/76606f646c6c1132ff43758729cc61a3b248be088313413c122eec14be553df5.webp) Every action asks for a confirmation. A simulation does not finish when its last inject is sent: it stays **On-going** until each expectation is answered, or expires. By default, a detection, prevention or vulnerability expectation expires after 6 hours, and an expectation of people after 24 hours, set by `openaev.expectation.technical.expiration-time` and `openaev.expectation.human.expiration-time`. See the [configuration reference](https://filigran.io/docs/reference/openaev/configuration/#openaev-expectation). The **Execution** tab follows the run, with a menu on the right: - **Overview**: the timeline of the injects, with a cursor on the current time, and the injects to come, running and done. - **Mails**: the emails and SMS sent, by inject, person and team. - **Validations**: the expectations of people waiting for an evaluator. See [Validate expectations](https://filigran.io/docs/openaev/use/expectations/validation/). - **Simulation logs**: notes the animation team writes during the run. ![The Mails menu of the Execution tab: the inject Call the crisis cell to the bridge, sent to three persons, with its five mails, the three sent and the two replies of the crisis cell.](https://filigran.io/docs/shots/e4bfc3234e87b30e3766610c513a2a1865d17fd0303516191e550df8a8388a2d.webp) > **Warning** > > **Reset** deletes the results of the simulation: inject statuses, expectations, findings, lessons learned answers, and its files. **Stop** keeps them. To keep a run's results and run it again, launch a new simulation from the scenario instead. ## Read the results {#read-the-results} The **Overview** tab has four parts: - **Information**: the fields of the simulation and its scenario. - **Results**: a gauge per axis, **Prevention**, **Detection**, **Vulnerability** and **Human response**. Each gauge reads its **Resilience**: the share of all its expectations that succeeded, pending ones included, so the figure rises while successes come in. Under the ring, the gauge counts its **Success**, **Partial**, **Failed** and **Pending** expectations. Its color goes from red below 25 to green from 75, and stays grey while every expectation is pending. - **Kill chain results**: the techniques of the injects on the matrix, colored by their results. - **Injects results**: each inject with its targets and its results; click one to open its details, its execution traces and what each security platform saw. See [Inject results](https://filigran.io/docs/openaev/use/injects/results/). Each expectation counts as **Success** when its score reaches the expected score, **Failed** at 0, **Partial** in between, and **Pending** until it is answered. Per axis, the results read: | Axis | Success | Partial | Failed | | --- | --- | --- | --- | | **Prevention** | Prevented | Partially Prevented | Not Prevented | | **Detection** | Detected | Partially Detected | Not Detected | | **Vulnerability** | Not vulnerable | Partially Vulnerable | Vulnerable | | **Human response** | Successful | Partial | Failed | An expectation that expires unanswered fails: a technique that no collector reported counts as not detected. Before you conclude that an attack went unseen, check on the inject that the collector of that security platform ran. The other tabs complete the picture: - **Injects**, in its **Distribution view**: charts of the injects and their expectations by type and by team. **Distribution of expected total score by inject type** draws the score each inject type gathers over time, technical injects included, each result counted once. - **Findings**: what the injects found, such as open ports, credentials or vulnerabilities. See [Findings](https://filigran.io/docs/openaev/use/findings/). - **Lessons learned**: the players' answers, when enabled. See [Lessons learned](https://filigran.io/docs/openaev/use/components/lessons/). - **Statistics**: a custom dashboard of the simulation. **View in scenario** opens the scenario, whose overview compares the runs. **Example: Read the weekly Velvet Harbor run on the front desks** On Wednesday 11 February 2026 at 06:00, the scenario `Velvet Harbor replay` creates its weekly simulation: the email **Fake summit booking request** to the two front-desk teams, then three actions on the five front-desk workstations of Grand Meridian Hotels. It stays **On-going** until 12:05, when the last detection expectation of the Meridian EDR collector is answered, then reads **Finished**. | Inject | Prevention | Detection | | --- | --- | --- | | PowerShell loader (T1059.001) | Prevented | Detected | | Local guest records (T1005) | Prevented | Detected | | HTTPS beacon (T1071.001) | Not Prevented | Detected | The **Results** gauges read **Prevention** 67 and **Detection** 100. The validation engineer opens the HTTPS beacon inject: Meridian EDR raised an alert on the command and control traffic but let it through. They send the inject's details to the SOC, which adds a blocking rule; next Wednesday's run shows whether **Prevention** reaches 100. > **With XTM One: Explain a run with XTM One** > > With XTM One connected and the Enterprise Edition, **Ask Ariane** in the top bar reads the simulation you are on, as you. Ask it which techniques were not prevented and why, or to turn the run into a readout or a slide deck for the CISO, which you download as PDF or PowerPoint. See [XTM One in OpenAEV](https://filigran.io/docs/xtm-one/use/in-openaev/). ## Find a simulation in the list {#find-a-simulation-in-the-list} **Simulations** lists every simulation of the tenant, those created by scenarios included, the most recently updated first. Each line gives its **Start time**, **Status**, **Target**, **Global score** and **Tags**, so the running ones and the latest scores show at a glance. - Search by name, or filter on **Scenario**, **Status**, **Severity**, **Start date**, **Kill chain phase**, **Tags** or **Updated at**. A filter on **Scenario** lists the runs of one scenario. The list keeps your filters for your next visit. - **Export this list** downloads the simulations shown as a CSV file. - Tick simulations, then **Delete** to delete them at once, with **Delete assessment**. Deleting an **On-going** or **Paused** simulation stops it. ## What's next {#what-s-next} - [Share simulation results in a report](https://filigran.io/docs/openaev/use/simulations/reports/). - [Validate expectations](https://filigran.io/docs/openaev/use/expectations/validation/), for the answers of people. - [Check one attack technique with an atomic test](https://filigran.io/docs/openaev/use/atomic-testing/), to check a fix without the whole scenario. - [Scenarios and simulations](https://filigran.io/docs/openaev/concepts/scenarios-simulations/), for the model behind them. --- # Share simulation results in a report > Build a branded PDF or HTML report on a scenario, a simulation or the whole platform, generate it on demand, and email it on a schedule to people without access. - URL: https://filigran.io/docs/openaev/use/simulations/reports/ - Products: OpenAEV 3.261118.0 - For: SOC managers, security validation engineers, crisis exercise planners - Type: How-to guide A report turns the results of OpenAEV into a document for people who never open it: a CISO, an auditor, a board. You choose what it is about, a scenario, a simulation, an asset group or the whole platform, and the sections it holds; OpenAEV renders it in your colors as a PDF or an HTML page. Each generation is a snapshot kept with its date, and a schedule can generate it and email it every week or month. Dashboards stay the place to explore live data: see [Custom dashboards](https://filigran.io/docs/openaev/use/dashboards/). **Diagram: A report picks a subject and its modules, takes your branding, and each generation, on demand or on a schedule, is a PDF or HTML snapshot that can be emailed** - Define: Report subject (Platform, scenario, simulation...), Modules and branding (Cover, summary, trends, logo) - Generate: Generate now (PDF or HTML), Schedules (Hour, day, week, month) - Share: Generations (Kept, downloadable), Recipients (Users and email addresses) Connections: - Report subject → Modules and branding: content - Modules and branding → Generate now: on demand - Modules and branding → Schedules: recurring - Generate now → Generations: snapshot - Schedules → Generations: snapshot - Schedules → Recipients: email with file ## Before you start {#before-you-start} - Your role has **Access reportings** to read and download reports, **Manage reportings** to create, generate and schedule them, and **Delete reportings** to delete one. - To email a report, the platform can send email. ## Create a report {#create-a-report} 1. Open **Reporting** and click **Create report**. The **Create a report** panel opens on its first step, **Report subject**. 2. Give a **Name** and a **Description**, then choose the **Subject type** and the subject itself: | **Subject type** | What the report covers | | --- | --- | | **Platform** | Every result of the tenant. The subject reads the tenant's **Platform name**, set in [Parameters](https://filigran.io/docs/openaev/administer/parameters/), or the platform's when the tenant sets none | | **Scenario** | Every simulation of the scenario | | **Simulation** | One simulation | | **Atomic testing** | One atomic test | | **Endpoint**, **Asset group** | What ran on these assets | | **Person**, **Team** | The results of these people | 3. Choose the **Time range**, from **Last 7 days** to **All time**, **Last 30 days** by default, and the **Default format**, **PDF** or **HTML**. Click **Next**. 4. On **Modules**, select the sections and drag them in order. Each takes a **Custom title (optional)**. Every module but **Attack paths** and **Custom content** is selected by default: | Module | What it shows | | --- | --- | | **Cover** | The report name, the subject and the generation date | | **Executive summary** | The posture in a few key figures | | **Subject details** | The scenario, simulation or asset the report is about | | **Kill chain coverage** | The techniques exercised, on the kill chains you choose in **Kill chains**, all by default | | **Results breakdown** | Successes and failures per expectation type | | **Performance by security domain** | The success rate per security domain, such as endpoint or email | | **Score trends** | The scores over the time range | | **Failed expectations** | The 15 latest failed expectations | | **Findings** | The findings per type, then the 15 latest. Empty for an asset group, a person or a team | | **Attack paths** | The kill chain phases the injects went through | | **Custom content** | Your own text, in Markdown | ![The Modules step of Create a report: every module checked but Attack paths and Custom content, each with its description, and below them the Report structure with a Custom title (optional) for each section.](https://filigran.io/docs/shots/fa41168a275499fa0faa06709fd7b9bc65131ef8339f20013899762718731a00.webp) 5. Click **Next**. On **Branding**, choose the **Theme**, the six colors and the **Logo (defaults to the platform logo)**. **Reset to platform defaults** goes back to the platform's theme. 6. Click **Next**. On **Schedule**, turn on **Generate this report on a schedule** to add a first schedule now, or leave it off. 7. Click **Create**. The report opens on its **Preview** tab: the report as it will print, page by page, with the data of today. It follows every change of the report. ![The Preview tab of the report Monthly validation posture, on the Platform, in PDF over the last 30 days: its cover in the colors of Grand Meridian, then its table of contents, Executive summary, Kill chain coverage, Results breakdown, Failed expectations and Findings.](https://filigran.io/docs/shots/d8014199cd0f96006a7db394eb062cc319b4509ffebdb169b3752bb322acd287.webp) ## Generate it {#generate-it} - **Generate now**, in the header, generates it in its default format; the arrow next to it, **Choose format**, offers the other one. The generation runs in the background, then **Download latest generation** downloads it. - The **Generations** tab lists every generation with its status, format, **Trigger**, **Manual** or scheduled, and dates. Download any of them: each one keeps the data of the moment it was generated. ![The Generations tab of the report: one generation, Success, in PDF, triggered Manual, created and completed on April 12, 2026, with the download button in the header.](https://filigran.io/docs/shots/d6537040ab4bbb72e70fb36019a3df5b36e754a70c4cb3db0109b0004c397809.webp) - On a scenario, a simulation, an atomic test, an endpoint, an asset group, a person or a team, the **Reports** button of the header lists the reports on it. **Generate report** creates one at once, named after the entity, in PDF over the last 30 days, when none exists yet. ## Send it on a schedule {#send-it-on-a-schedule} On the **Schedules** tab, click **Add schedule**: | Field | Effect | | --- | --- | | **Period** | **Every hour**, **Every day**, **Every week** (the default) or **Every month** | | **Day of week**, **Day of month** | When a weekly or monthly schedule runs. A day beyond the end of a short month runs on its last day | | **Time of day** | When it runs, in UTC, 08:00 by default. An hourly schedule runs at the start of each hour | | **Format** | **PDF** or **HTML** | | **Recipient users**, **Recipient emails** | Users of the platform and other addresses that receive the file by email | | **Enabled** | Turns the schedule off without deleting it | ![The Schedules tab of the report: the schedule Monthly, Every month at 1 07:00, in PDF to 1 email, enabled, with the Add schedule button.](https://filigran.io/docs/shots/d6ef9a54ce3e6e6ccc2097ec2ca828837da87169309085893582701cbbef9e6b.webp) Each run is a generation of its own, listed on **Generations**, and the recipients receive the file attached to an email titled `Scheduled report:` followed by the report's name. Recipients outside the platform read everything the report shows: check the subject and the modules before you add them. **Example: Send the CISO the Velvet Harbor posture every month** Hélène Marchetti, CISO of Grand Meridian Hotels, wants each month the posture of the chain against Velvet Harbor, without opening OpenAEV. The validation engineer creates: | Step | Value | | --- | --- | | **Name**, **Description** | `Monthly validation posture`, `The posture of Grand Meridian Hotels against Velvet Harbor, for the CISO.` | | **Subject type** | **Platform** | | **Time range**, **Default format** | **Last 30 days**, **PDF** | | **Modules** | **Cover**, **Executive summary**, **Kill chain coverage**, **Results breakdown**, **Failed expectations**, **Findings**, and **Custom content** titled `What we are fixing`: the upgrade of Apache on `booking-web-01`, the new password of the `booking_app` account, and the prevention policy of Meridian EDR extended to the web front | | **Branding** | **Theme** light, the primary color of Grand Meridian, `#8C1D40`, and its secondary color, `#1E88E5` | | Schedule | **Every month**, **Day of month** 1, **Time of day** 07:00, **PDF**, **Recipient emails** `helene.marchetti@grand-meridian.example` | On 12 April 2026, the engineer clicks **Generate now** to check the PDF before the first send. From then on, Hélène receives it on the first of each month: the booking database export that Meridian EDR blocked, the discovery on the web front that it only detected, the CVE and the database account that discovery found, then what the teams are fixing. > **With XTM One: Ask XTM One for a readout** > > With XTM One connected and the Enterprise Edition, **Ask Ariane** can also write a readout, a slide deck or a video from your OpenAEV data, in conversation, for a review meeting rather than a recurring report. You download it as PDF, PowerPoint or MP4 from its card. See [XTM One in OpenAEV](https://filigran.io/docs/xtm-one/use/in-openaev/). ## What's next {#what-s-next} - [Run a simulation and read its results](https://filigran.io/docs/openaev/use/simulations/). - [Custom dashboards](https://filigran.io/docs/openaev/use/dashboards/), to explore the results live. - [Findings](https://filigran.io/docs/openaev/use/findings/), for every finding the report summarizes. --- # How injects reach assets and people > The targets of an inject, assets, asset groups, persons and teams, how a scenario makes them available, and why each target gets its own expectations. - URL: https://filigran.io/docs/openaev/use/targets/ - Products: OpenAEV 3.261118.0 - For: security validation engineers, crisis exercise planners - Type: Concept Every inject acts on targets. A technical inject, such as a command or a vulnerability scan, acts on assets: the hosts, applications and other systems you test. A human inject, such as an email, an SMS or a media article, reaches persons, always through their teams. You prepare the targets once, in their own menus, and every scenario, simulation and atomic test picks from them. This page explains the four kinds of targets, how an inject gets them, and what OpenAEV scores for each. ## The four kinds of targets {#the-four-kinds-of-targets} **Diagram: Assets reach injects directly or through asset groups, and persons always through their teams** - Things: Assets (Hosts, apps, cloud, AI), Asset groups (By hand or by rule) - People: Persons (Email, phone, PGP key), Teams (Added to the scenario) - Inject: Inject (Its type decides the targets) - Scored: Expectations (One set per target) Connections: - Assets → Asset groups: members - Persons → Teams: members - Assets → Inject: targeted - Asset groups → Inject: targeted - Teams → Inject: targeted - Inject → Expectations: creates | Target | What it is | Menu | Read | | --- | --- | --- | --- | | Asset | A system an inject acts on: a host where an OpenAEV agent runs, or an asset you describe yourself, such as a web application, a cloud resource, a network device or an AI target | **Assets** | [Add the assets your simulations target](https://filigran.io/docs/openaev/use/targets/assets/) | | Asset group | A set of assets, listed by hand or selected by a rule, such as every Windows host | **Asset groups** | [Add the assets your simulations target](https://filigran.io/docs/openaev/use/targets/assets/) | | Person | Someone who receives emails, SMS, media articles and challenges, and whose reaction is scored | **Persons** | [Organize the people your injects target](https://filigran.io/docs/openaev/use/targets/people/) | | Team | The persons an inject reaches together: the front desk of a hotel, the SOC, the crisis cell | **Teams** | [Organize the people your injects target](https://filigran.io/docs/openaev/use/targets/people/) | Reading these menus takes the **Access assets** capability for assets and asset groups, and **Access teams & persons** for persons and teams. ![The Assets list of Grand Meridian Hotels, by name: the booking database server booking-db-01, then the front-desk workstations fd-barcelona-03, fd-madrid-02, fd-nice-04 and fd-paris-01, each a host.](https://filigran.io/docs/shots/e54bc88499232787713b5d7aafba86b4750b225fbfdd54dad80a0ec818cbd3cd.webp) ## How an inject gets its targets {#how-an-inject-gets-its-targets} The type of an inject decides what it can target. An action of the Threat Arsenal runs on assets and asset groups; an email, an SMS, a challenge or a manual action reaches teams. A type that can do both shows both fields. You choose the targets in the inject's form: - **Assets and asset groups** are picked directly on the inject, among all your assets. The endpoint picker opens filtered on the platforms and the architecture of the action, so it lists the endpoints that can run it; remove a filter to see the others. A scenario tag can also add asset groups to its injects for you: see [Set default asset groups by scenario tag](https://filigran.io/docs/openaev/configure/asset-rules/). - **Teams** must first belong to the scenario or the simulation: add them in the **Configuration** of the scenario, **Teams** tab. The inject then targets some of them under **Targeted teams**, or all of them with **All teams**. When a team joins a scenario, all its persons are enabled; disable the ones who must not receive its injects. An atomic test has no team list of its own: its **Targeted teams** offer every team of **Teams**. An asset group is read when the inject runs: an asset that matches its rule at that moment is targeted, even if it did not exist when you built the scenario. Teams and their enabled persons, on the contrary, are copied into each simulation when it starts. See [How a scenario becomes a simulation](https://filigran.io/docs/openaev/concepts/scenarios-simulations/). ## One target, one set of expectations {#one-target-one-set-of-expectations} OpenAEV scores each target on its own. An inject on an asset group creates expectations for the group, for each of its assets and for each agent on them; an inject on a team creates expectations for the team and for each of its enabled persons. That is why a detection can succeed on four workstations and fail on the fifth, and why the **Validation mode** of an expectation says whether one member of a group is enough. See [How an attack becomes injects and expectations](https://filigran.io/docs/openaev/concepts/injects-expectations/). ## Security platforms are not targets {#security-platforms-are-not-targets} **Security platforms** lists your security tools: EDR, XDR, SIEM, SOAR, NDR, email security, vulnerability scanners and others. They are what OpenAEV measures, not what it attacks: the results of detection and prevention name the security platform that answered, and an expectation can require a given kind of platform. Each collector is linked to the security platform it reads; you can also add a platform by hand with **Create**. Reading them takes the **Access security platforms** capability. **Example: The targets of Velvet Harbor at Grand Meridian Hotels** To replay Velvet Harbor, the validation engineer of Grand Meridian Hotels prepares: | Target | Value | | --- | --- | | Assets | The front-desk workstations of the French and Spanish hotels, such as `fd-paris-01` and `fd-madrid-02`, each with an OpenAEV agent, and `booking-db-01`, the booking database server | | Asset group | **Front desk workstations**, by a rule on the hostnames that start with `fd-` | | Persons | Paul Garnier, the night auditor, and the other front-desk employees | | Teams | **Front desk France** and **Front desk Spain**, with the front-desk employees of each country | The fake booking request for the European Hospitality Summit 2026 targets both teams; the PowerShell loader and the search for local guest records target the asset group **Front desk workstations**. ## What's next {#what-s-next} - [Add the assets your simulations target](https://filigran.io/docs/openaev/use/targets/assets/): register endpoints, describe assets and group them. - [Organize the people your injects target](https://filigran.io/docs/openaev/use/targets/people/): create persons, teams and organizations. - [Install the OpenAEV agent on your endpoints](https://filigran.io/docs/openaev/use/agents/): let your hosts run injects. --- # Add the assets your simulations target > Let OpenAEV agents register your endpoints, describe your other assets by category, import hosts from a CSV file, and gather assets in asset groups by hand or by rule. - URL: https://filigran.io/docs/openaev/use/targets/assets/ - Products: OpenAEV 3.261118.0 - For: security validation engineers - Type: How-to guide An asset is a system an inject acts on: a workstation, a server, a web application, a cloud resource, an AI agent. Hosts where an OpenAEV agent runs register themselves; you describe the others by hand or import them. Asset groups then gather the assets an inject should hit together, such as every front-desk workstation, either by hand or with a rule that keeps the group current. This page builds that inventory. How targets reach injects is explained in [How injects reach assets and people](https://filigran.io/docs/openaev/use/targets/). **Diagram: Assets come from agents, from the form and from CSV files, and asset groups gather them by hand or by rule for the injects** - Sources: OpenAEV agent (Registers its host), Create (Any category), Import (Hosts from a CSV file) - Assets: Assets (Host, web app, cloud, identity, AI) - Asset groups: Asset groups (By hand, and by rule) - Simulations: Injects (Run on each member) Connections: - OpenAEV agent → Assets: registers - Create → Assets: describes - Import → Assets: imports - Assets → Asset groups: match the rule - Assets → Injects: targeted - Asset groups → Injects: targeted ## Before you start {#before-you-start} - Your role has **Access assets** to see **Assets** and **Asset groups**, **Manage assets** to create, import and change assets and groups, and **Delete assets** to delete them. - To register endpoints with an agent, the agent is installed on them: see [Install the OpenAEV agent on your endpoints](https://filigran.io/docs/openaev/use/agents/). **Install simulation agents** in the top bar shows the commands to the roles that have **Install agent**. ## Let agents register your endpoints {#let-agents-register-your-endpoints} When an OpenAEV agent starts on an endpoint, the endpoint appears in **Assets** as a **Host**, named after its hostname, with its **Platform**. The agent then keeps its **Hostname**, **IP Addresses**, **MAC Addresses**, **Architecture** and **Seen IP address** up to date. An agent that reports a MAC address OpenAEV already knows updates that asset instead of creating another one. Addresses you add by hand stay; the agent only adds its own. The **Status** column tells whether the asset can run injects that need an agent: | Status | Meaning | | --- | --- | | **Active** | At least one of its agents contacted OpenAEV in the last hour | | **Inactive** | Its agents have been silent for more than an hour: check the agent's service on the endpoint | | **Agentless** | No agent runs on it: injects that run commands through an agent cannot act on it, while injects that work from outside, such as a scan, can | The same host can run several agents, for example the OpenAEV agent as a service and as a user session, or an EDR used as executor. Its page lists each one under **Agents**: the account it runs as, its executor, its status, then its **Privilege**, **Deployment**, **Version** and **Last Seen**. OpenAEV tells agents apart by host, executor, account, **Privilege** and **Deployment**. Installing the agent again with the same account and mode updates the existing agent; installing it with another account or mode adds one to the host. Agents of the Caldera executor are the exception for the host: OpenAEV matches them by hostname and IP address instead of MAC address. ![The Assets list, by name: the booking database server booking-db-01, then the front-desk workstations fd-barcelona-03, fd-madrid-02, fd-nice-04 and fd-paris-01, each a host.](https://filigran.io/docs/shots/e54bc88499232787713b5d7aafba86b4750b225fbfdd54dad80a0ec818cbd3cd.webp) ## Describe an asset by hand {#describe-an-asset-by-hand} Describe the assets no agent registers: a web application to scan, a cloud resource, a network device, an account, an AI agent to test. 1. Open **Assets** and click **Create**. The **Create a new asset** panel opens on the **Category** step. 2. Choose the category of the asset. It decides the fields of the next step: | Category | For | Its own fields | | --- | --- | --- | | **Host** | A physical or virtual machine, server or workstation | **Platform** and **Architecture** (required), **Hostname**, **IP Addresses**, **MAC Addresses**, **Internet-facing**, **End of Life** | | **Web application** | A website, web API or web service | **URL** (required), **Hostname**, **IP Addresses**, **Internet-facing** | | **Cloud resource** | A compute, storage, database, network or serverless resource | **Cloud provider** (required), **Native type**, **Region**, **Account ID**, **Resource ID / ARN** | | **Container / Workload** | A container, an image, a Kubernetes object, a serverless function | **Image** | | **Network device** | A router, switch, firewall or load balancer | **IP Addresses** (required), **Vendor**, **Model**, **Hostname** | | **Mobile device** | A smartphone or a tablet | **Platform** (iOS or Android), **OS version** | | **IoT / OT device** | A sensor, camera, PLC or SCADA system | **IP Addresses** (required), **Vendor**, **Model**, **Protocol** | | **Identity** | A user, service account, group or role | **Person**, **Identity provider**, **Principal / email** | | **SaaS application** | A software-as-a-service application or tenant | **Vendor** | | **AI target** | A language model, AI agent, MCP server or RAG pipeline to test | **Provider**, **Modality**, **Model**, **Endpoint URL**, **API token (optional)**, **System prompt (optional)** | | **Generic asset** | Anything that fits no other category yet | None | 3. Enter the **Name**, and optionally a **Description** and a **Subcategory**, such as **Server** or **Workstation** for a host. 4. Fill in the fields of the category. On a host, **Platform** starts at Linux and **Architecture** at x86_64: set them to the real ones, because injects that run commands pick their command by platform and architecture. Turn on **End of Life** for a host its vendor no longer supports: it changes nothing in how injects run, but a dashboard list widget can show it as a column, to find the hosts to replace among those a simulation got through. 5. Set the **Criticality**: **Very high**, **High**, **Medium**, **Low** or **Unknown**, the default. It ranks the assets in lists and filters, and asset groups can select by it. 6. Add **Tags**, then click **Create**. The asset appears in the list with its **Category**, its **Criticality** and, once injects have run on it, its **Posture score**: the share of its expectations that succeeded. A host created by hand shows as **Agentless** until an agent registers on it. To change or delete an asset, open the menu at the end of its line and choose **Update** or **Delete**. Select several lines to delete them together. ## Import hosts from a CSV file {#import-hosts-from-a-csv-file} To create many hosts at once, click **Import** above the list and choose a CSV file. Each line becomes a **Host**, with the columns `asset_name`, `asset_description`, `asset_hostname`, `asset_ips`, `endpoint_platform`, `endpoint_arch`, `asset_mac_addresses`, `asset_tags` and `endpoint_is_eol`. IP and MAC addresses are JSON lists, and tags a JSON list of names and colors. The simplest way to get the format right is to export a few hosts first with **Export this list**, and edit that file. ## Gather assets in an asset group {#gather-assets-in-an-asset-group} An asset group is what most injects target: one inject on a group runs on each of its assets. A group takes its members in two ways, which add up: the assets you add by hand, and the assets that match its rule. 1. Open **Asset groups** and click **Create**. The **Create a new asset group** panel opens. 2. Enter the **Name**, and optionally a **Description** and **Tags**. 3. Under **Rule**, add the filters that select the assets. Leave the rule empty to choose every member by hand. A rule can filter on: - what describes the asset: **Tags**, **Name**, **Description**, **External reference**, **Category**, **Subcategory**, **Criticality** and **Status** (**Active**, **Inactive** or **Agentless**) - its exposure and its cloud: **Internet-facing**, **Cloud provider**, **Cloud region** and **Cloud native type** - its network: **Hostname**, **IP addresses**, **Seen IP Address**, **MAC Addresses** and **URL** - its system: **Platform** and **Architecture**, which only hosts have. A rule that uses them selects hosts only. 4. Click **Create**. 5. To add assets by hand, open the menu at the end of the group's line, choose **Manage assets**, and add them. Open the group to check its members: the list shows both kinds. The rule is evaluated each time the group is read, so a host that registers tomorrow and matches it joins the group, and the scenarios that target the group, without anyone editing them. A rule only selects assets of the tenant the group belongs to. A rule on **Tags** follows the way your team already labels its assets: tag a server `velvet-harbor`, and every group whose rule selects that tag gets it, whatever its category. ![The page of the asset group Velvet Harbor targets: its rule selects the tag velvet-harbor, and its assets list holds the two servers carrying that tag, booking-db-01 and booking-web-01.](https://filigran.io/docs/shots/f173cef6227f2f634c227546b990286dbb53fadf13b28070932bfb3f26d06fbf.webp) A new tenant already holds asset groups by platform and architecture, such as **All Windows x86_64** or **All Linux arm64**, which the default asset rules of OpenCTI scenarios use. See [Set default asset groups by scenario tag](https://filigran.io/docs/openaev/configure/asset-rules/). ![The Create a new asset group panel, with its name, description and tags, and the rule that adds every endpoint matching a filter.](https://filigran.io/docs/shots/5fda05c8704ebfe9d90125900a309529bbf158307ae4f4974027b4490d657519.webp) ## Read an asset {#read-an-asset} Click an asset to open its page. Its header counts its **Agents**, **Findings**, **Injects played** and **Expectations tested**. The **Overview** tab gives its **Asset Information**, its network details, the **Asset groups** it belongs to, its agents, and the findings, expectations and injects that concern it. The **Statistics** tab draws its **Posture score over time** and **Injects played over time**: the asset that keeps failing is the one to look at. **Example: Prepare the assets of the Velvet Harbor replay** At Grand Meridian Hotels, the OpenAEV agent runs on the front-desk workstations of its hotels in France and Spain, from `fd-paris-01` to `fd-barcelona-03`, and on the booking servers `booking-db-01` and `booking-web-01`, tagged `velvet-harbor`: they appear as **Host** assets, **Active**. The validation engineer then adds by hand: | Field | Booking portal | Shared night audit account | | --- | --- | --- | | Category | **Web application** | **Identity** | | **Name** | `Booking portal` | `night.audit` | | **Subcategory** | Website | User account | | **URL** | `https://booking.grand-meridian.example` | | | **Identity provider** | | `Active Directory` | | **Principal / email** | | `night.audit@grand-meridian.example` | | **Criticality** | **Very high** | **High** | | **Internet-facing** | On | | | **Tags** | `velvet-harbor` | `velvet-harbor` | Then the asset group **Front desk workstations**, with the **Rule** hostname starts with `fd-`. When the new hotel in Lyon installs the agent on `fd-lyon-01` next month, the workstation joins the group, and the weekly Velvet Harbor simulation covers it. Last, the asset group **Velvet Harbor targets**, with the **Rule** **Tags** contains `velvet-harbor`. It gathers the booking servers `booking-db-01` and `booking-web-01`, the **Booking portal** and the `night.audit` account: the hosts and the assets described by hand, in one group, from the tag alone. ![The page of fd-barcelona-03: one agent, no injects played yet, its description, criticality Medium and tag front-desk, its network details, the asset groups it falls in, Front desk workstations among them, and its Active OpenAEV agent.](https://filigran.io/docs/shots/6701cc9a50575c623c0b513842544f75ea1e43228091ad485479488cfa1c48d5.webp) ## What's next {#what-s-next} - [Organize the people your injects target](https://filigran.io/docs/openaev/use/targets/people/): the other half of the targets. - [Set default asset groups by scenario tag](https://filigran.io/docs/openaev/configure/asset-rules/): target groups without picking them on each inject. - [Build a scenario that replays an attack](https://filigran.io/docs/openaev/use/scenarios/build/): aim injects at your assets. --- # Organize the people your injects target > Create the persons who receive emails, SMS and challenges, group them in teams, sort them by organization, and choose which persons of a team a scenario reaches. - URL: https://filigran.io/docs/openaev/use/targets/people/ - Products: OpenAEV 3.261118.0 - For: crisis exercise planners, security validation engineers - Type: How-to guide The human side of a simulation needs people to reach: the front-desk employees who receive a phishing email, the crisis cell that gets a journalist's call, the SOC that must answer a manual expectation. In OpenAEV, each of them is a person, persons are grouped in teams, and an inject always reaches persons through their teams. Organizations sort persons and teams by company or subsidiary. This page creates them and adds them to a scenario. Why teams and not persons is explained in [How injects reach assets and people](https://filigran.io/docs/openaev/use/targets/). **Diagram: Persons join teams, teams join a scenario with their persons enabled, and the scenario's injects reach the enabled persons** - Sorted by: Organization (A company or subsidiary) - People: Persons (Email, mobile, PGP key), Teams (Persons reached together) - Scenario: Configuration (Teams and enabled persons), Inject (Targeted teams or All teams) - Scored: Expectations (Per team and enabled person) Connections: - Organization → Persons: sorts - Organization → Teams: sorts - Persons → Teams: members - Teams → Configuration: added - Configuration → Inject: targetable - Inject → Expectations: creates ## Before you start {#before-you-start} - Your role has **Access teams & persons** to see **Persons** and **Teams**, **Manage teams & persons** to create and change them, and **Delete teams & persons** to delete them. - **Organizations** needs **Access tenant settings** to be seen and **Manage tenant settings** to be changed. ## Add the persons {#add-the-persons} 1. Open **Persons** and click **Create**. The **Create a new person** panel opens. 2. Enter the **Email address**. Emails and phishing injects go there, and it identifies the person: you cannot change it later. 3. Enter the **Firstname** and **Lastname**, then choose the **Organization** and the **Country**. 4. Enter the **Phone number (mobile)** if the person must receive SMS injects, starting with a plus sign and the country code. A **Phone number (landline)** is optional. 5. Paste the **PGP public key** if the person must receive encrypted emails. 6. Add **Tags**, then click **Create**. To keep the persons in step with your directory instead of typing them, run a collector that imports them, such as Microsoft Entra or Google Workspace: see [How collectors measure what your security tools saw](https://filigran.io/docs/openaev/use/collectors/). A person is a user of OpenAEV without a password: they receive injects, and sign in only if an administrator gives them access. When the email address already belongs to a user, **Create** adds that user to your persons and keeps their own details. To change or delete a person, open the menu at the end of their line; the platform administrator account can be updated, never deleted. **Export this list** saves the persons as a CSV file. ![The Create a new person panel: email address, first and last name, organization, country, phone numbers, PGP public key and tags.](https://filigran.io/docs/shots/c372704deb59c078d5cded8d5589b741cbeb14c3c827d4889b846190d6ac351b.webp) ## Group them in teams {#group-them-in-teams} 1. Open **Teams** and click **Create**. The **Create a new team** panel opens. 2. Enter the **Name**: two teams of the list cannot share one. Add a **Description**, the **Organization** and **Tags**. 3. Click **Create**. 4. Open the menu at the end of the team's line and choose **Manage persons**. 5. Click **Add players**, select the persons, and click **Add**. In **Manage persons**, the **Options** column shows three icons for each member: an email address, a PGP key and a phone number, green when the person has one and orange when not. Check it before a simulation: a person without a phone number cannot receive SMS injects, and one without a PGP key cannot receive encrypted emails. The list shows each team with the number of its **Persons**. Open a team to see its members, the scenarios and simulations it takes part in, and its results. A team created from inside a scenario or a simulation, with **Only in this context** checked, exists there only: it does not appear in **Teams**, and its name only has to be unique in that scenario. Use it for a role that makes sense in one exercise, such as the fake journalists of a crisis scenario. ![The Teams list: Crisis cell, Front desk France and Front desk Spain of Grand Meridian Hotels, with 3, 3 and 2 persons and the front-desk tag on the two front desks, among other teams such as CEO and Head of Communications.](https://filigran.io/docs/shots/69e64dddb9bfb14df992f5a9dac9928be5e0d23148b9010b6fd3f4371427b93f.webp) ## Sort them by organization {#sort-them-by-organization} An organization groups the persons and teams of one company or subsidiary, such as each hotel chain a CERT serves. 1. Open **Organizations** and click **Create**. The **Create an organization** panel opens. 2. Enter the **Name**, a **Description** and **Tags**, then click **Create**. 3. Set the organization in the **Organization** field of its persons and teams. The organization's page lists its **Members**, its **Teams**, and the findings and injects that concern them. An organization belongs to one tenant, and a person who belongs to several tenants has one organization in each: setting it in one tenant leaves their organization in the others unchanged. An organization sorts and filters; it does not hide anything. To keep the people, scenarios and results of two subsidiaries apart, give each its own tenant: see [Give each organization its own tenant](https://filigran.io/docs/openaev/administer/multi-tenancy/). ## Add a team to a scenario {#add-a-team-to-a-scenario} An inject can only target the teams of its scenario or simulation. 1. Open the scenario and click **Configuration** in its header. The **Scenario configuration** panel opens on its **Teams** tab. 2. Add the teams the scenario reaches. 3. Click a team to see its persons. All of them are **Enabled** when the team joins the scenario: click **Enabled** beside a person to switch it to **Disabled**, and that person no longer receives the scenario's injects. The injects of the scenario can now target these teams under **Targeted teams**, or every team of the scenario with **All teams**. Each enabled person gets their own expectations, and so does the team. When the scenario is launched, its simulation copies the teams and their enabled persons as they are at that moment. **Example: Prepare the front desk for a phishing exercise** Grand Meridian Hotels wants to know whether its front desks report a fake booking request like the one Velvet Harbor sent on 9 January 2026. The exercise planner creates: | What | Values | | --- | --- | | Organization | **Name** `Grand Meridian Hotels` | | Person | **Email address** `paul.garnier@grand-meridian.example`, **Firstname** `Paul`, **Lastname** `Garnier`, **Organization** Grand Meridian Hotels, **Country** France, **Phone number (mobile)** `+33600000001`, **Tags** `night-shift` | | Team | **Name** `Front desk France`, **Organization** Grand Meridian Hotels, **Tags** `front-desk`, with Paul Garnier, Camille Roux and Julien Bernard | | Team | **Name** `Front desk Spain`, **Organization** Grand Meridian Hotels, **Tags** `front-desk`, with Lucía Ortega and Javier Morales | In the scenario `Velvet Harbor replay`, the planner adds both teams, and disables in **Front desk France** the employee on leave that week. The email inject **Fake summit booking request** targets both teams, with the manual expectation `Reported to the SOC`: each front-desk employee must report the email to the SOC within the hour. ## What's next {#what-s-next} - [How a phishing exercise works](https://filigran.io/docs/openaev/use/phishing/): send a lure to your teams and score who reports it. - [Add the assets your simulations target](https://filigran.io/docs/openaev/use/targets/assets/): the technical side of the targets. - [How an attack becomes injects and expectations](https://filigran.io/docs/openaev/concepts/injects-expectations/): how the reactions of persons are scored. --- # Build the actions of your threat arsenal > Create, import and manage the actions OpenAEV runs in injects, understand where they come from, and turn a selection into a scenario or an atomic test. - URL: https://filigran.io/docs/openaev/use/threat-arsenal/ - Products: OpenAEV 3.261118.0 - For: security validation engineers - Type: How-to guide The **Threat Arsenal** is where you manage every action OpenAEV can run. An action is what happens when an inject executes on a target: a command, an executable, a file dropped on a host, or a host name resolved. It unifies what used to be payloads and injector contracts into one list, so a scenario, an atomic test or a chained scenario all draw their steps from the same place. This page explains where actions come from, creates one, and turns a selection into a test. The fields of the form are in [Action properties](https://filigran.io/docs/openaev/use/threat-arsenal/action-properties/). ## Where actions come from {#where-actions-come-from} **Diagram: Actions reach the Threat Arsenal from you, from injectors and from collectors, and every action can become a step of a test** - Sources: You (Create or import), Injectors (Their own actions), Collectors (Such as Atomic Red Team) - Threat Arsenal: Actions (Verified, unverified, deprecated) - Tests: Atomic tests (One action, now), Scenarios (Actions as injects), Chained scenarios (Actions as steps) Connections: - You → Actions: every field - Injectors → Actions: tags, domains editable - Collectors → Actions: read-only - Actions → Atomic tests: Run atomic test - Actions → Scenarios: Run a test - Actions → Chained scenarios: Add component An action has one of three sources, which decides what you may change: | Source | What it is | What you can edit | | --- | --- | --- | | **User-created** | Built in the Threat Arsenal, run by the OpenAEV Implant Injector | Every field | | **Injector-provided** | Added by an injector of the platform, such as Nuclei | Domains, attack patterns and tags only | | **Collector-provided** | Added by a collector, such as Atomic Red Team | Nothing: the collector owns them | The list, under **Threat Arsenal**, shows each action's **Type**, **Name**, **Domains**, **Platform**, **Tags**, **Status** and **Updated** date. The **Status** says how far OpenAEV trusts the action: - **Verified**: OpenAEV tested it and it works as expected. - **Unverified**: OpenAEV has not tested it; it may or may not work. - **Deprecated**: its source marked it deprecated; it stays for reference, with no guarantee. Filter the list by **Action type**, **Platform**, **Domains**, **Status** and **Author**, in the sidebar. The author of an action is a person or an organization, never a team: the person who created or duplicated it, or the organization behind the injector or collector that provides it. **No author** isolates the actions without one, such as those the platform creates on its own. Reading **Threat Arsenal** takes **Access threat arsenal**. A user without it still sees **Threat Arsenal** when one of their groups has a grant on a single action, **Access** or **Manage+Delete**, in its **Threat Arsenal** grants: the list then shows only the actions granted to them. ![The Threat Arsenal list with the three Velvet Harbor actions, booking attachment loader, local guest records collection and HTTPS beacon, Verified, next to the actions the platform ships.](https://filigran.io/docs/shots/4237a3856093a0b9b8e598e0319cbcbf5245e5c5f091249c227830b58b0c4f1a.webp) ## Create an action {#create-an-action} 1. Open **Threat Arsenal** and click the create button. 2. On the **General** tab, set the **Name**, and add a **Description**, **Attack patterns**, **Tags**, **Domains** and the **Expectations** the action raises, such as **Prevention** and **Detection**. 3. On the **Commands** tab, choose the **Type**: **Command Line** (a command run through an executor such as PowerShell or Bash), **Executable** (a binary run as its own process), **File Drop** (a file placed on the host without running it) or **DNS Resolution** (host names resolved to IP addresses). Set the **Platforms** and the command, and add a cleanup executor and command to undo what the action leaves behind. 4. On the **Output** tab, add output parsers to pull structured values from the raw output and, when you want, generate findings. See [Turn an action's output into findings](https://filigran.io/docs/openaev/use/threat-arsenal/output-parsers/). This tab is optional. 5. On the **Remediation** tab, write the detection rules a security platform would use to catch the action. This tab requires the Enterprise Edition. See [Action properties](https://filigran.io/docs/openaev/use/threat-arsenal/action-properties/#detection-remediation-properties). 6. Create the action. It appears in the list, with the **Verified** status. Creating an action with a payload also makes a new inject type available, when your implant supports it; the OpenAEV Implant does. Every field of every tab is in [Action properties](https://filigran.io/docs/openaev/use/threat-arsenal/action-properties/). Creating and editing actions takes **Manage threat arsenal**. ![The Create a new action panel on its General tab: name, description, attack patterns, tags, domains and expectations, Prevention and Detection by default, and the security platforms expected to fulfil each, with the Commands, Output and Remediation tabs.](https://filigran.io/docs/shots/ab31f5ae64e6a3c6874276d3a94787197e72cbcccf9e24edff90b5c39c5add33.webp) ## Update, duplicate or delete an action {#update-duplicate-or-delete-an-action} What you may do depends on the source: - **User-created**: open the action to edit any field, duplicate it, or delete it. Editing and duplicating take **Manage threat arsenal**; deleting takes **Delete threat arsenal**. - **Injector-provided**: edit only its domains, attack patterns and tags. You cannot delete it unless its source marked it deprecated. - **Collector-provided**: read-only; the collector manages it. Without these capabilities, a group can still be given one action: a **Manage+Delete** grant on it, in the group's **Threat Arsenal** grants, shows **Update** and **Delete** in that action's menu. Duplicating always takes **Manage threat arsenal**. See [How access works in OpenAEV](https://filigran.io/docs/openaev/concepts/access/). OpenAEV refuses to delete an action that injects still use, in a scenario, a simulation or an atomic testing: deleting it would delete those injects. The message names up to three of them; move their injects to another action or remove them, then delete the action. A bulk **Delete** from the toolbar skips such actions and deletes the others. ## Run a test from the list {#run-a-test-from-the-list} Select one or more actions with the checkboxes to open the toolbar, then **Run a test**: | Option | What it does | | --- | --- | | **Create a new scenario** | Opens the scenario funnel with the selected actions prefilled as inject steps | | **Add to existing scenario** | Adds the selected actions as steps to one or more existing scenarios | | **Run atomic test** | Runs a single selected action at once, as a one-off simulation | The toolbar also **Delete**s user-created actions in bulk, **Tag**s several at once, and **Export**s them. A chained scenario reuses actions too, as steps of its logic: see [Choose the actions of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/actions/). ## Import and export actions {#import-and-export-actions} Export the current list as a **CSV (Comma-Separated Values)** file, which carries the columns the page shows, for any action. Export user-created actions as a JSON ZIP archive instead, which carries the whole action, command, arguments and output parsers, to import on another platform. The archive also holds the file of an **Executable** or **File Drop** action, and importing it attaches that file to the new action. The import button takes such an archive. Import the archive as it was exported: a file changed or renamed inside it no longer matches its name, and the action is imported without it. Importing a scenario or a simulation also brings the actions of its injects. An action a collector provides, such as Atomic Red Team, is matched by the identifier its collector gives it. Any other action is reused only when your tenant holds an identical one, and created otherwise. Identical means the same type, name, description, platforms, architecture, command or attached file, cleanup, arguments, prerequisites, expectations, output parsers, detection rules and attack patterns, on an action you can read. An action that differs in one detail, such as a changed command, is imported as a new one and never replaces yours. ## What you see when it worked {#what-you-see-when-it-worked} - The new action shows in the list, **Verified**, with the type, domains and platforms you set. - A new inject type matching the action is available when you build an inject. - Selecting the action and running an atomic test executes it once and shows its result. **Example: A credential-search action for the front-desk test** The validation team of Grand Meridian builds the step that looks for a saved booking credential on a front-desk workstation, to reuse in the night test against the booking database. | Field | Value | | --- | --- | | **Name** | `Look for saved booking credentials` | | **Domains** | **Endpoint** | | **Attack patterns** | Credentials from Password Stores (T1555) | | **Type** | **Command Line**, executor **Command Prompt**, command `cmdkey /list` | | **Platforms** | **Windows** | | **Expectations** | **Prevention**, **Detection** | | **Output** | A parser of type **Username** on the output of `cmdkey`, **Create finding(s)** on | Once created, the team selects it and three others, clicks **Run a test** and **Create a new scenario**, to build the chained scenario that walks from the front desk to the booking database. > **With XTM One: Generate rules and payloads with XTM One** > > With OpenAEV connected to XTM One, the **Remediation** tab generates detection rules for CrowdStrike and Splunk with AI, and an autonomous attack lets the orchestrator build a payload on demand for a technique your arsenal does not cover. See [Set the properties of an action](https://filigran.io/docs/openaev/use/threat-arsenal/action-properties/#detection-remediation-properties) and [Let AI run a penetration test](https://filigran.io/docs/openaev/use/attack-chaining/autonomous/). ## What's next {#what-s-next} - [Set the properties of an action](https://filigran.io/docs/openaev/use/threat-arsenal/action-properties/): every field of the form. - [Turn an action's output into findings](https://filigran.io/docs/openaev/use/threat-arsenal/output-parsers/): extract structured values from an execution. - [Security control domains](https://filigran.io/docs/openaev/concepts/security-domains/): how domains classify actions. - [Injects](https://filigran.io/docs/openaev/use/injects/) and [Atomic testing](https://filigran.io/docs/openaev/use/atomic-testing/): run an action. - [Findings](https://filigran.io/docs/openaev/use/findings/): the data an action's output parsers extract. --- # Set the properties of an action > Every field of an action of the Threat Arsenal, tab by tab, from its name and domains to its command, its arguments, its prerequisites and its detection rules. - URL: https://filigran.io/docs/openaev/use/threat-arsenal/action-properties/ - Products: OpenAEV 3.261118.0 - For: security validation engineers - Type: Reference This page documents every field of an action of the [Threat Arsenal](https://filigran.io/docs/openaev/use/threat-arsenal/), tab by tab. Some fields are common to every action; others depend on its type. Creating an action is in [Build the actions of your threat arsenal](https://filigran.io/docs/openaev/use/threat-arsenal/). ## The tabs of an action {#the-tabs-of-an-action} **Diagram: The four tabs of an action say what it is, what it runs, what it extracts and how a security platform detects it** - Action form: General (Name, domains, expectations), Commands (Type, platforms, arguments), Output (Parsing rules), Remediation (Enterprise Edition) - In a test: Inject (Runs on the targets), Findings and outputs (For results and chaining), Detection rules (Per security platform) Connections: - General → Inject: expectations - Commands → Inject: what runs - Output → Findings and outputs: parsed values - Remediation → Detection rules: shown on results The form has four tabs, **General**, **Commands**, **Output** and **Remediation**. The **Output** and **Remediation** tabs are optional, and **Remediation** requires the Enterprise Edition. ## General properties {#general-properties} Set in the **General** tab. | Property | What it is | | --- | --- | | **Name** | The name of the action | | **Description** | What the action does | | **Attack patterns** | The MITRE ATT&CK techniques it covers | | **Tags** | Free-form labels to find and group it | | **Domains** | The security control domains it belongs to, such as Endpoint or Network | | **Expectations** | What the action is expected to raise: **Prevention**, **Detection** or **Vulnerability** | | **Expected security platforms** | For each expectation, the security platform types expected to fulfil it; empty means any | ![The General tab of the action Velvet Harbor - booking web front discovery: its name, description, the attack patterns T1552.001 and T1046, the tag velvet-harbor, the Endpoint domain, the Prevention and Detection expectations, each expected from any security platform.](https://filigran.io/docs/shots/f0156ddebb00995b2f87393afbcd114d08578b1db49d3577e088c7856540bae4.webp) ## Commands properties {#commands-properties} Set in the **Commands** tab. These apply to every type. | Property | What it is | | --- | --- | | **Type** | **Command Line**, **Executable**, **File Drop** or **DNS Resolution** | | **Architecture** | Where the command runs: **x86_64**, **arm64** or **All architectures** | | **Platforms** | The operating systems it supports, such as Windows, Linux or macOS | | **Prerequisites** | Commands run beforehand to make the action able to execute | | **Cleanup executor** | The executor of the cleanup command | | **Cleanup command** | The command that undoes what the action changed | | **Arguments** | Values the command references at execution time | ![The Commands tab of the same action: type Command Line, all architectures, Linux, the Sh attack command, then the Arguments, Prerequisites and Cleanup command sections.](https://filigran.io/docs/shots/d450f5b50fb1627ae4987fc376f6cdc808249ee0ba657fc17e3b97ae72c1c923.webp) ### Arguments {#arguments} An argument sets a value in the command, the cleanup command or the prerequisites. There are two kinds: - **Text argument**: a **Key**, used as a `#{key}` placeholder in the command, and a **Default value** that replaces it at execution and can be overridden when you create an inject. Other primitive types, such as **Port** or **Username**, work the same way and carry their own validation. - **Targeted asset argument**: a **Key**, a **Targeted property** (**Hostname**, **Local IP (first)** or **Seen IP**) and a **Separator** that joins several values. At execution, OpenAEV fills it from each targeted asset. > **Note** > > To scan with `nuclei`, write the command `nuclei -t #{asset-key}` and add a targeted asset argument with the key `asset-key`. In the inject, set a source asset where `nuclei` is installed and the targeted assets to scan. ### Prerequisites {#prerequisites} | Property | What it is | | --- | --- | | **Command executor** | The executor of the prerequisite command | | **Check command** | Verifies that a condition is met | | **Get command** | Runs when the check command fails | ## Properties by type {#properties-by-type} | Type | Property | What it is | | --- | --- | --- | | **Command Line** | **Command executor** | The executor that runs the command | | | **Command** | The command to execute | | **Executable** | **Executable file** | The binary to run as its own process | | **File Drop** | **File to drop** | The file placed on the host without running it | | **DNS Resolution** | **Hostnames** | The host names to resolve to IP addresses | ## Output properties {#output-properties} Set in the **Output** tab: the rules that pull structured values from the raw output and, optionally, generate findings. The fields of a rule are in [Turn an action's output into findings](https://filigran.io/docs/openaev/use/threat-arsenal/output-parsers/). ## Detection remediation properties {#detection-remediation-properties} Set in the **Remediation** tab, which shows a sub-tab for each security platform integrated in the platform. A rule describes how that platform detects the action. > **Tip: Enterprise Edition** > > The **Remediation** tab requires a valid Enterprise Edition license. The AI generation of rules works for **Command Line** and **DNS Resolution** actions, and for CrowdStrike and Splunk security platforms. Each rule carries a status: | Status | What it means | | --- | --- | | **Rules written by Human** | A person wrote the rules | | **Rules generated by AI** | AI generated the rules | | **Payload changed since rule was edited** | The action changed after the last AI generation; see the fields below | ![The Remediation tab of the action Velvet Harbor - booking database export: a sub-tab for Meridian EDR and one for Meridian email gateway, the rule of Meridian EDR marked Rules written by Human in its editor, and the Generate with AI button greyed out.](https://filigran.io/docs/shots/f189352d56fcd382cc7138080cf3a3d4603779d1ab23789483a9dc36909508a7.webp) The AI generation reads these fields: **Name**, **Description** and **Attack patterns** of the **General** tab, and **Type**, **Architecture**, **Platforms**, the command's executor and content, **Arguments** and the DNS host name of the **Commands** tab. Changing any of them marks an AI rule as outdated. ## What's next {#what-s-next} - [Build the actions of your threat arsenal](https://filigran.io/docs/openaev/use/threat-arsenal/): create, use and manage actions. - [Turn an action's output into findings](https://filigran.io/docs/openaev/use/threat-arsenal/output-parsers/): the fields of the **Output** tab. - [Security control domains](https://filigran.io/docs/openaev/concepts/security-domains/): how domains classify actions. --- # Turn an action's output into findings > Add output parsers to an action so OpenAEV extracts hosts, ports, credentials or CVEs from its raw output, turns them into findings, and feeds them to the next steps. - URL: https://filigran.io/docs/openaev/use/threat-arsenal/output-parsers/ - Products: OpenAEV 3.261118.0 - For: security validation engineers - Type: How-to guide An output parser reads the raw output of an [action](https://filigran.io/docs/openaev/use/threat-arsenal/) and pulls structured values out of it: the open ports a scan reported, the credentials a search returned, the CVEs a check found. Those values become findings you can read and sort, and they feed the next steps of a chained scenario. Without a parser, an action's output is just text. This page adds parsers to an action, on the **Output** tab of its form. Creating the action is in [Build the actions of your threat arsenal](https://filigran.io/docs/openaev/use/threat-arsenal/). ## Before you start {#before-you-start} - Your role has **Manage threat arsenal** to edit an action. - You know the raw output of the action, so you can write a regular expression that matches it. - Output parsers read the standard output (**StdOut**) and match with a regular expression (**REGEX**); these are the modes available today. ## How a parser turns output into findings {#how-a-parser-turns-output-into-findings} **Diagram: An output parser turns the raw output of an action into typed values that become findings and feed the next steps of a chain** - Endpoint: Implant (Runs the command) - OpenAEV: Raw output (Standard output), Parsing rule (Regex, groups, type) - Results: Findings (When Create finding(s) is on), Outputs (For events and arguments) Connections: - Implant → Raw output: sends back - Raw output → Parsing rule: each match - Parsing rule → Findings: valid values - Parsing rule → Outputs: valid values An action runs on a target and sends its raw output back to OpenAEV. Each parsing rule applies its regular expression, maps the capture groups to the fields of a type, and keeps the matches. When **Create finding(s)** is on, each match becomes a finding; the values also go into the run's state, where a chained scenario's events and arguments read them. ## Add an output parser {#add-an-output-parser} 1. Open the action from the Threat Arsenal, or create one, and go to the **Output** tab. 2. Click **Add attribute**, then set the rule: | Field | What it is | Required | | --- | --- | --- | | **Name** | The name of the rule | Yes | | **Key** | A unique key for the rule | Yes | | **Type** | The data type to extract, such as **Text**, **Number**, **Port**, **Ports scan**, **IPv4**, **IPv6**, **Credentials**, **CVE** or **Vulnerability** | Yes | | **Tags** | Labels for the rule | No | | **Regex group rules** | The regular expression that extracts the data, with its capture groups. It runs with multiline, case-insensitive and Unicode matching | Yes | | **Output value** | Maps each capture group to a field of the type | Yes | 3. Under **Output value**, map each field to a capture group, written `$1`, `$2` and so on. To join several groups in one field, write them next to each other, such as `$1$2`. 4. To make the matches findings, turn on **Create finding(s)** for the rule. 5. Save the action. ![The Output tab of the action Velvet Harbor - booking web front discovery: Output mode Stdout and Parsing Regex, and the rule Database account of type Credentials, Create finding(s) checked, with its regular expression and its Hash, Password and Username output values.](https://filigran.io/docs/shots/c61ebe180828aa4cdc9509673082d87e7df60e80afc66e07af52facb56c122dd.webp) The number of fields depends on the type: | Type | Fields | Finding value | | --- | --- | --- | | **Ports scan** | host, port, service | `host:port (service)` | | **Credentials** | username, password, hash | `username:password` | | **CVE** | host, id, severity | `host:id (severity)` | | **Other** | a single value | the value | ## Check that it works {#check-that-it-works} - Run the action, in an atomic test or a simulation, and open its results. - When **Create finding(s)** is on, the extracted values show on the **Findings** tab, and the parser's details on the **Action details** tab, of the [atomic testing detail view](https://filigran.io/docs/openaev/use/atomic-testing/). - In a chained scenario, the values become available to the events and to the arguments of later actions. See [Build the logic of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/logic/). **Example: Extract the services the booking web front reaches** The action **Velvet Harbor - booking web front discovery** prints one line per service it reaches from the web front of the booking system, such as `reachable 10.20.8.15:5432 postgresql`. The validation engineer of Grand Meridian Hotels adds a rule on its **Output** tab: | Field | Value | | --- | --- | | **Name** | `Reachable services` | | **Key** | `reachable_services` | | **Type** | **Ports scan** | | **Regex group rules** | `reachable ([\d.]+):(\d+) (\S+)` | | **Output value** | **Host** `$1`, **Port** `$2`, **Service** `$3` | | **Create finding(s)** | On | When the atomic test runs on `booking-web-01`, the line becomes the **Ports scan** finding `10.20.8.15:5432 (postgresql)`. The action has two more rules, **Apache CVE** of type **CVE** and **Database account** of type **Credentials**, whose password the findings mask. ## What's next {#what-s-next} - [Build the actions of your threat arsenal](https://filigran.io/docs/openaev/use/threat-arsenal/): create and manage the actions parsers apply to. - [Set the properties of an action](https://filigran.io/docs/openaev/use/threat-arsenal/action-properties/): every field of the form. - [Findings](https://filigran.io/docs/openaev/use/findings/): read and sort the values extracted. - [Build the logic of a chained scenario](https://filigran.io/docs/openaev/use/attack-chaining/logic/): branch on the values a parser extracts. --- # OpenCRQ > Use OpenCRQ to price each cyber risk of your organization in money, see the figure move with the threats and your defenses, and fund the controls that remove the most loss. - URL: https://filigran.io/docs/opencrq/ - Products: OpenCRQ 0.261123.0 - Type: Overview OpenCRQ turns each line of your risk register, such as ransomware on the booking platform or a breach of customer records, into an annualized loss in US dollars, with the chance of losing more. The price is not a score someone typed: OpenCRQ simulates the attacks that the threats targeting you would run against your assets and your controls, and keeps the figure current as they change. Then you compare what a control costs with the loss it removes. OpenCRQ comes in two editions. The Community Edition, under the Apache 2.0 license, prices risk in one tenant. The Enterprise Edition, which OpenCRQ takes from XTM One's Filigran license, adds several tenants in one platform and the XTM One assistant. ## Start here {#start-here} The first time you open a new tenant, OpenCRQ shows **Get started**, first in the menu: eight steps, **Company**, **Assets**, **Threats**, **Defenses**, **Finances**, **Tolerance**, **Protect** and **Scenarios**, that take you to a first quantified risk scenario in a few minutes. The menu shows how many are done. Once no step reads **To do**, even with some only started, **Get started** moves to the end of the menu, after **Settings**. Then pick your role: each tab gives your goal and the pages to read first, in order. **Risk managers** You keep the risk register in money: what each scenario costs a year, what it rests on, and why it moved. 1. [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/): the model behind every figure, from attack frequency to annualized loss. 2. [Risk scopes, primary assets and supporting assets](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/): describe what a loss would hit, and the systems an attacker goes through. 3. [How OpenCRQ merges an asset several sources report](https://filigran.io/docs/opencrq/concepts/asset-consolidation/): which value wins, and when two reports are one asset. 4. [How OpenCRQ works](https://filigran.io/docs/opencrq/concepts/architecture/): its processes, ports, storage and the services it calls. 5. [Set what an attack costs with the financial profile](https://filigran.io/docs/opencrq/use/quantify/loss-drivers/): answer the questions that give each loss its amount. 6. [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/): create a scenario, read its price and follow it over time. **CISOs and executives** You decide what to fund, and show the board what the spend buys. 1. [Track cyber risk in money with dashboards](https://filigran.io/docs/opencrq/use/decide/dashboards/): the annual loss exposure of the organization and its trend, on one screen. 2. [Choose the treatment plan that removes the most loss](https://filigran.io/docs/opencrq/use/decide/treatment-plans/): compare plans by the loss they remove for what they cost. 3. [Review a year's security budget against the loss it avoided](https://filigran.io/docs/opencrq/use/decide/budget-reviews/): what last year's spend bought, line by line. **CTI and validation teams** Your intelligence and your test results set the price: see what OpenCRQ reads from them. 1. [Connect OpenCTI with a Live Stream](https://filigran.io/docs/opencrq/use/sources/opencti/): which threats to stream, and what OpenCRQ keeps of them. 2. [Follow the threats that target your scopes](https://filigran.io/docs/opencrq/use/threats/threat-center/): how a threat is admitted to a scenario and how its activity counts. 3. [Import OpenAEV results](https://filigran.io/docs/opencrq/use/sources/openaev/): how simulations audit your controls, technique by technique. 4. [Set how strong your controls are and read how they held](https://filigran.io/docs/opencrq/use/defenses/controls/): the posture the attack runs face. **Administrators** You give people access and connect OpenCRQ to the sources that feed it. People sign in to OpenCRQ with their XTM One account: OpenCRQ keeps no password. 1. [Give people access with users, groups and roles](https://filigran.io/docs/opencrq/administer/users-and-roles/): add members from XTM One's directory, and the platform's own administrators. 2. [Let integrations sign in with service accounts](https://filigran.io/docs/opencrq/administer/service-accounts/): the accounts connectors and scripts write as. 3. [Connect OpenCTI with a Live Stream](https://filigran.io/docs/opencrq/use/sources/opencti/): the first connector to set, since threats drive every price. 4. [Follow the background jobs and run one again](https://filigran.io/docs/opencrq/administer/background-jobs/): what OpenCRQ computes on its own, and how to see it is done. 5. [Check or stop the usage telemetry sent to Filigran](https://filigran.io/docs/opencrq/administer/telemetry/): what anonymous counts leave the instance, and how to turn them off. **Platform engineers** You deploy the XTM platform, which always runs OpenCRQ with the other modules, and keep OpenCRQ healthy and up to date. 1. [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/): the whole XTM platform, OpenCRQ with every other module, behind your reverse proxy. 2. [Configure OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/): finish its setup and sign in to its first tenant through XTM One, then the settings a deployment sets and the connectors of each tenant. 3. [OpenCRQ configuration](https://filigran.io/docs/reference/opencrq/configuration/): every key, its variable and its default. ## Find your way around {#find-your-way-around} The menu on the left groups its entries between separators: **Home**, **Dashboards**, **Risk Scenarios**, **Treatment Plans** and **Budget Reviews** first; then your risk scopes and **All risk scopes**; then **Assets**, **Findings** and **Threats**; then **Controls** and **Compliance**; last **Integrations**, shown to those with **Manage Security**, and **Settings**. When you reach two tenants or more, the first row of the menu names the tenant you are in: click it to switch. The chevron next to the OpenCRQ logo opens **Filigran products**, which opens OpenCTI and OpenAEV when they are connected to the tenant, their product pages otherwise, and XTM Hub. To find a scenario, an asset, a threat, a risk scope or a control by its name, type part of it in **Search the platform...** at the top of the screen and press Enter. The results list the matches of the tenant by type, each with its count: **Risk Scenarios**, **Primary Assets**, **Assets**, **Threats**, **Risk scopes** and **Controls**. **View all** opens the full list when a type has more matches than the card shows. [Find a scenario, an asset or a threat by its name](https://filigran.io/docs/opencrq/use/search/) says what the search matches and how to share it. ## How OpenCRQ prices a risk {#how-opencrq-prices-a-risk} You describe what you protect and what a loss would cost; the rest of the XTM platform measures who attacks and how well your defenses hold. OpenCRQ prices the attacks against your assets and your controls, and counts what lands, over a thousand worlds by default: each world is a draw of the uncertain inputs. The result is a price that moves for a reason you can trace: a threat becomes active, a control is rolled out, a test shows a defense failing. **Diagram: What OpenCRQ reads, how it prices a risk, and what you decide with the price** - What it reads: Threats (From OpenCTI), Test results (From OpenAEV), Assets and controls (What you protect it with), Financial profile (Your revenue, your data) - OpenCRQ: Attack simulation (How often an attack lands), Loss model (What a landing costs) - The price: Annualized loss (And the chance of more) - What you decide: Treatment plans (Loss removed for the cost), Budget reviews (Loss avoided by the spend) Connections: - Threats → Attack simulation - Test results → Attack simulation - Assets and controls → Attack simulation - Financial profile → Loss model - Attack simulation → Annualized loss - Loss model → Annualized loss - Annualized loss → Treatment plans - Annualized loss → Budget reviews [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/) explains the model in full: the frequency of attacks, the attack run, the loss drivers, and the distribution a price comes from, its mean and the chance of losing more. ## Decide what to fund {#decide-what-to-fund} A treatment plan is a set of controls you would fund: OpenCRQ prices your scenarios again as if it were done, so each plan shows the loss it removes against what it costs, and its return ([choose the treatment plan that removes the most loss](https://filigran.io/docs/opencrq/use/decide/treatment-plans/)). A budget review does the same afterwards, for what was spent ([review a year's security budget against the loss it avoided](https://filigran.io/docs/opencrq/use/decide/budget-reviews/)). ![The three treatment plans of Grand Meridian France as cards, best return first, from Zero-trust remote access at +80.4% to MFA for the front-desk accounts at -100%, under four counters: Active plans, Overdue, Negative return at 2 out of 3, and First-year cost.](https://filigran.io/docs/shots/998b848a676b44e312d5b590f604384f9f57b89b4d12ac30cc7a750e156d2c11.webp) > **With XTM One: Ask about your risk in plain words** > > With XTM One, an AI agent reads your scenarios, explains why a price moved between two runs, and creates or updates a scenario for you. An XTM One administrator decides which of these changes wait for a person's approval. See [XTM One in OpenCRQ](https://filigran.io/docs/xtm-one/use/in-opencrq/). ## Browse OpenCRQ {#browse-opencrq} **Concepts** - [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/): How OpenCRQ prices a risk scenario as an annualized loss, from attack frequency, the attack run against your controls, and loss drivers. - [Risk scopes, primary assets and supporting assets](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/): How a risk scope, its primary assets and the supporting assets behind them define what OpenCRQ prices. - [How OpenCRQ merges an asset several sources report](https://filigran.io/docs/opencrq/concepts/asset-consolidation/): How OpenCRQ makes one supporting asset of what Microsoft Defender, OpenAEV and people report, which value wins, what you pin by hand, and when two reports are the same asset. - [How OpenCRQ's objects connect, from a risk scope to its price](https://filigran.io/docs/opencrq/concepts/data-model/): The objects OpenCRQ keeps, from risk scopes and assets to threats, controls, scenarios and plans, what each one belongs to, and which prices a change to one reaches. - [How OpenCRQ works: processes, ports, storage and connections](https://filigran.io/docs/opencrq/concepts/architecture/): What runs in the OpenCRQ container, how its processes share PostgreSQL and S3 storage, which ports it listens on and which services it calls. **Use** - [Set your profile and follow your notifications](https://filigran.io/docs/opencrq/use/profile/): Read the name XTM One gives you, set how OpenCRQ names you in each tenant, its language, theme, colours and home dashboard, and follow the notifications that tell you where you were added. - [Get your first quantified risk scenario in eight steps](https://filigran.io/docs/opencrq/use/get-started/): Follow Get started, the eight steps that take a new OpenCRQ tenant to its first quantified risk scenario, and read on its overview which steps are done and which are left. - [Find a scenario, an asset or a threat by its name](https://filigran.io/docs/opencrq/use/search/): Search the risk scenarios, primary assets, supporting assets, threats, risk scopes and controls of a tenant by their name from the top bar, and open the one you need. - [Connect OpenCTI with a Live Stream](https://filigran.io/docs/opencrq/use/sources/opencti/): Feed OpenCRQ the threat actors, campaigns and techniques your OpenCTI knows, through a Live Stream OpenCRQ creates at start or one of your own, kept current as analysts change them. - [Import OpenAEV results](https://filigran.io/docs/opencrq/use/sources/openaev/): Bring the assets OpenAEV knows and the outcome of its simulations into OpenCRQ, so that your controls are priced on how they held when tested. - [Import assets from Microsoft Defender](https://filigran.io/docs/opencrq/use/sources/microsoft-defender/): Fill OpenCRQ's attack surface with the devices, accounts and software vulnerabilities Microsoft Defender sees, rated for criticality and exposure, and kept in step every six hours. - [Import compliance readiness from Drata](https://filigran.io/docs/opencrq/use/sources/drata/): Mirror your ISO 27001 and SOC 2 readiness from Drata into OpenCRQ, so that the controls you price carry the evidence your compliance program already collects. - [How CVE sources weigh your vulnerabilities](https://filigran.io/docs/opencrq/use/sources/vulnerability-sources/): What NIST NVD, FIRST EPSS and CISA KEV tell OpenCRQ about each CVE, and how that turns a vulnerability on one of your assets into a likelier attack and a higher annualized loss. - [Build the attack surface from your assets](https://filigran.io/docs/opencrq/use/attack-surface/assets/): Declare the supporting assets an attacker can reach, set their exposure and criticality, and link them to the primary assets they carry, so OpenCRQ prices attacks on your real estate. - [Review the findings on your assets](https://filigran.io/docs/opencrq/use/attack-surface/findings/): See the vulnerabilities and failed tests your integrations report on your assets, read how each one is scored, and set aside the ones you accept or that are not true. - [Follow the threats that target your scopes](https://filigran.io/docs/opencrq/use/threats/threat-center/): Read the threat actors, intrusion sets and campaigns OpenCTI streams to OpenCRQ, see which ones weigh on a risk scenario and why, and follow their activity as it moves the price. - [Set the threat event frequency](https://filigran.io/docs/opencrq/use/threats/threat-event-frequency/): Read the attack frequency OpenCRQ's catalogue gives a risk scope for its country, sector and size, and replace it with your own estimate for a risk scenario when you know better. - [Set how strong your controls are and read how they held](https://filigran.io/docs/opencrq/use/defenses/controls/): Declare how strong and how widely deployed each of your controls is, per risk scope, and read how OpenAEV's tests and your compliance answers confirm or correct it. - [Measure your compliance maturity against a framework](https://filigran.io/docs/opencrq/use/defenses/compliance/): Rate your organization against NIST CSF 2.0, requirement by requirement, on a maturity scale from 0 to 5, and publish the assessment so its answers feed the controls OpenCRQ prices. - [Set what an attack costs with the financial profile](https://filigran.io/docs/opencrq/use/quantify/loss-drivers/): Answer a risk scope's financial questionnaire so OpenCRQ derives what an attack costs each scenario, then correct any loss driver by hand. - [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/): Create a risk scenario on the primary assets of a risk scope, let OpenCRQ price it as an annualized loss, and read the price on its CRQ tab. - [Track cyber risk in money with dashboards](https://filigran.io/docs/opencrq/use/decide/dashboards/): Read OpenCRQ's CISO dashboard and its twelve-month trends, pick the dashboard each person opens on Home, and present the cyber risk of a scope in money. - [Choose the treatment plan that removes the most loss](https://filigran.io/docs/opencrq/use/decide/treatment-plans/): Build a treatment plan of control moves in OpenCRQ, enter what it costs, and read its annual loss reduction and one-year return per scenario. - [Review a year's security budget against the loss it avoided](https://filigran.io/docs/opencrq/use/decide/budget-reviews/): Enter a fiscal year's security spend in an OpenCRQ budget review, and read the annual loss each line avoided, its return and the risk tolerance it kept. **Configure** - [Set the platform's parameters and file storage](https://filigran.io/docs/opencrq/configure/parameters/): Read a tenant's name, identifier and OpenCRQ version, choose the home dashboard and default language of its members, and set up the object store that keeps the files they upload. - [Set how OpenCRQ weighs threats, controls and assets](https://filigran.io/docs/opencrq/configure/quantification-engine/): Choose which threat intelligence counts, how fast it ages and how undated threats rank, then tune the simulation, exposure, stacked controls, phishing and test results for a tenant. - [Read the risk catalogues and manage asset tags](https://filigran.io/docs/opencrq/configure/risk-taxonomies/): Read the attack outcomes, business resources, loss drivers, asset categories, sectors and countries OpenCRQ prices risk with, and rename, merge or delete the tags of your assets. - [Explore the ATT&CK, CVE and CWE catalogues](https://filigran.io/docs/opencrq/configure/attack-and-vulnerability-catalogues/): Find which of your controls prevent or detect an ATT&CK technique, which threats exploit a CVE, and adjust the techniques a CWE weakness opens to an attacker. **Administer** - [Give people access with users, groups and roles](https://filigran.io/docs/opencrq/administer/users-and-roles/): Add people from XTM One to an OpenCRQ tenant, give them rights with groups and roles, limit what they see with markings, check what each one can do, and manage the platform administrators. - [Run several tenants in one platform](https://filigran.io/docs/opencrq/administer/tenants/): Create a tenant for each organization OpenCRQ prices risk for, switch between them, connect each to its sources, rename one, and delete one you no longer serve. - [Let integrations sign in with service accounts](https://filigran.io/docs/opencrq/administer/service-accounts/): Create the service accounts OpenCRQ's connectors and your scripts write as, give them tokens with an expiry, and rotate, revoke or disable them. - [Follow the background jobs and run one again](https://filigran.io/docs/opencrq/administer/background-jobs/): Follow the runs, the queue, the health and the logs of OpenCRQ's background jobs in a tenant, find why one failed, and start a run again. - [Check or stop the usage telemetry sent to Filigran](https://filigran.io/docs/opencrq/administer/telemetry/): What anonymous usage counts OpenCRQ sends to Filigran, how and how often, what it never contains, the log lines that say whether it is on, how to tag it and how to stop it. --- # Follow the background jobs and run one again > Follow the runs, the queue, the health and the logs of OpenCRQ's background jobs in a tenant, find why one failed, and start a run again. - URL: https://filigran.io/docs/opencrq/administer/background-jobs/ - Products: OpenCRQ 0.261123.0 - For: administrators, platform engineers - Type: How-to guide Most of what OpenCRQ shows is computed in the background: the price of each risk scenario, the score of each finding, the threats OpenCTI streams in, the imports of each connector. **Settings > Jobs** shows every run of these jobs in a tenant, what waits in the queue, the health and logs of each kind of job, and when each one is due. This page reads them to answer the usual questions: did the figures take the last change into account, why did an import fail, and how do I run it again. What each kind of job does is in [OpenCRQ background processes](https://filigran.io/docs/reference/opencrq/processes/#job-kinds). ## Before you start {#before-you-start} - Your role has **Manage Security** in the tenant, or your platform role has **Platform Administration Access**. XTM One's administrator, who signs in to OpenCRQ as its super administrator, holds both. See [Give people access with users, groups and roles](https://filigran.io/docs/opencrq/administer/users-and-roles/). - Jobs belong to a tenant: **Settings > Jobs** shows the runs of the tenant you are in. ## How a run comes about {#how-a-run-comes-about} A run is booked for one kind of job in one tenant. Its **Triggered by** says why: | Triggered by | When | | --- | --- | | **Data change** | Something the kind reads has changed: a scenario saved, a control posture declared, a threat streamed in. The changes of a burst fold into one run | | **Scheduler** | The daily run of the platform's recomputes, or a connector's sync on its schedule | | **User** | A person asked for it: **Run** on a risk scenario, **Sync now** on a connector | | **Service account** | An integration asked for it, as its service account | | **System** | OpenCRQ asked for it itself | A worker takes the run from the queue. When an attempt fails, the run waits and tries again, up to its number of attempts (**1 / 3** reads first attempt of three). When the last one fails, the run lands in the **Dead-letter queue** and stays there. An error another attempt cannot fix sends it there at once, whatever attempts remain, such as a connector not configured, credentials the remote service refuses, or a file that is not a valid STIX bundle. Some kinds run one at a time per tenant: a second run waits until the first ends. The price of a scenario (`crq-simulation`) can start before the weights of the attackers of its outcome are computed. It then goes back to the queue without an error and without spending an attempt, and tries again from 2 to 30 seconds later. It waits so for at most `recompute.debounce_cap_ms` plus five minutes from its first start, 10 minutes by default; past that, it lands in the dead-letter queue. ## Follow the runs {#follow-the-runs} 1. Open **Settings > Jobs**. The **Runs** tab lists every run of the tenant, the newest first, with its **Kind**, **Status**, **Triggered by**, what it is **Related to**, its **Parameters**, when it was **Queued at** and **Finished at**, and its **Attempts**. ![The Runs tab of the Grand Meridian Hotels tenant on 12 April 2026, all Succeeded: opencti-mirror-rebuild, finding-score-recompute, crq-price-recompute and threat-list-projection-recompute triggered by Data change, then daily runs such as jobs-retention and attack-outcome-mixture-recompute triggered by the Scheduler with their date as parameter.](https://filigran.io/docs/shots/e48718a741b84fb170d9f68f42e32b64fb0d5d46a3f1be15e2d00d9d2732d749.webp) 2. Narrow the list with the filters above it: **Status**, a date window on **Queued at**, **Started at** or **Finished at**, **Kind**, **Triggered by**, or a search. 3. Click a run to open it. Its page shows its **Identity** (kind, status, attempt, priority), its **Chronology** (when it was queued, started, claimed and finished, how long it **Waited** and **Ran for**), its **Trigger**, its **Parameters**, and its **Errors** and **Logs**. The **Status** of a run is **Queued**, **Running**, **Succeeded**, **Cancelled** or **Dead-letter queue**. An info mark next to it, **Absorbed an ask**, means that another request arrived while the run was working: a follow-up run answers it. ## Read the queue {#read-the-queue} The **Queue** tab shows the tenant's runs in four lists: - **Pending**: the runs waiting, in the order the workers take them, with the time they may **Run after** and their **Claimability**. **Next** is taken first; **Waiting for schedule** waits for its time; **Blocked by sibling** waits for a run of the same kind to end. - **Running**: the runs a worker has **Claimed at** a time. - **Failed** and **Succeeded**: the runs that ended, with when they **Finished at**. A run that stays in **Pending** with **Next** means no worker takes it. The **Integrations** page then says "No worker is answering. Queued runs will not advance.": the worker process is down or has jobs turned off (`jobs.enabled` and the `process_manager` profile in the [configuration](https://filigran.io/docs/reference/opencrq/configuration/#jobs)). ## Check the health of each kind {#check-the-health-of-each-kind} The **Kinds** tab lists every kind of job with its **Health**, its **Last run**, its **Duration** and its **Attempts**: | Health | Meaning | | --- | --- | | **Healthy** | The last run went through, or was cancelled on purpose | | **Failing** | The last run landed in the dead-letter queue | | **Running** or **Queued** | A run is under way, or booked and waiting for a worker | | **Never ran** | No run was ever recorded for this kind in this tenant, such as the sync of a connector not configured | When OpenCRQ is registered with XTM One (the `xtm_one` keys of the [configuration](https://filigran.io/docs/reference/opencrq/configuration/#xtm-one)), its registration, every 5 minutes, also sends XTM One one health per kind for the whole platform: the worst that any tenant reads. A kind whose last run landed in the dead-letter queue in one tenant is sent as failing, whatever the other tenants read. Click a kind to open it. **Observed** marks a kind whose reads are recorded, so that a change of that data books it again; **Daily** marks a kind also booked once a day. Its **Overview** tab shows its last run, and for a connector's sync, a link to the connector: **Open the connector**. Its **Runs** tab lists its runs in progress and its most recent completed ones. Its **Logs** tab shows the lines its last runs wrote, filtered by text or by **Levels** (**trace**, **error**). ![The Logs tab of the daily jobs-retention job, Healthy: its runs of 12 and 10 April 2026, both Succeeded, each with the three lines Attempt 1 of 3 started, Job runs purged and Job completed successfully, and the note that older runs are not kept.](https://filigran.io/docs/shots/e07bdf3b3d65a181fd951d0d0f453ad633efd77cbf232263c4d22c6cefca7290.webp) ## See when each job is due {#see-when-each-job-is-due} The **Schedules** tab lists the kinds that run on a schedule, with their **Origin**, their **Schedule**, their **Next run** and their **Last run**. - **Platform**: the daily recomputes, at `recompute.daily_at` (03:00 UTC by default). Each tenant starts at its own minute within the hour that follows. It is set in the deployment configuration (`RECOMPUTE__DAILY_AT`), not here. A platform that was down at that time runs the recompute once when it comes back, rather than skipping the day. A daily run that does not succeed is booked again, after a delay that grows with each failure, until the next day's run replaces it: OpenCRQ then logs `Daily recompute gave up for the day after repeated failures`. - A connector (**OpenAEV**, **Microsoft Defender**, **Drata**, **NIST NVD CVE**, **FIRST EPSS**, **CISA Known Exploited Vulnerabilities (KEV)**, **OpenCRQ Default Threats**): its sync, every hour, every 6 hours or every day at 06:00 UTC by default. Change it with **Frequency**, **Day**, **Time** and **Time zone** in the connector's **Configure integration** panel. A connector without a configuration has no **Next run**. **OpenCRQ Default Threats** needs no configuration. A tenant created from the platform, and the tenant OpenCRQ creates at its first boot, start with it switched off: the scheduler skips it until someone with **Manage Security** clicks **Enable** in the **Threats** step of **Get started**, or turns on the **Enabled** switch of its **Configure integration** panel. Switching it on books its `default-threats-sync` at once, triggered by **User**. A tenant where it is on but none of its threats is loaded yet also gets that run at once from the scheduler, instead of waiting for its schedule. Switched off, it has no **Next run**. ## Run a job again {#run-a-job-again} The jobs pages only read. You start a run again where its work is: | To run again | Do this | | --- | --- | | A connector's sync | Open **Integrations**, open the connector, click **Sync now**. While a run is under way, **Cancel** stops it | | A connector's failed sync | On the connector's page, click **Retry**: its last run, which landed in the dead-letter queue, gets another attempt | | The price of a risk scenario | Click **Run** on the scenario. See [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/) | | A recompute (scores, prices, threats, reach) | Nothing to do: it runs again at the next change of the data it reads, and every day for the **Daily** kinds | **Cancel** and **Retry** are for those who hold **Manage Security** in the tenant or **Platform Administration Access**. A member without them sees these buttons only on a run they started themselves with **Sync now**. Once another request has joined that run, its **Cancel** stays greyed out with the hint "Other requests are waiting on this run, so you can no longer cancel it.": an administrator can still cancel it. ## How long runs and logs are kept {#how-long-runs-and-logs-are-kept} | What | Kept | Setting | | --- | --- | --- | | Finished runs, with their errors and logs | 30 days, deleted each day by the `jobs-retention` job, except the last run of each kind, kept whatever its age | `jobs.run_retention_days` | | Log lines of a kind | Those of its last 3 runs, per tenant | `jobs.log_retention_runs` | | Log lines of the OpenCTI stream | The last 500 | `jobs.log_retention_lines` | A run whose lines are no longer kept shows "Older runs are not kept." at the end of its logs. To keep 90 days of runs and the lines of the last 10 runs of each kind, in the `environment` of the `opencrq` service: ```yaml JOBS__RUN_RETENTION_DAYS: 90 JOBS__LOG_RETENTION_RUNS: 10 ``` See the `jobs` keys of the [configuration](https://filigran.io/docs/reference/opencrq/configuration/#jobs). **Example: Check that Ember Tide's return reached the prices** On 10 April 2026, OpenCTI reports Ember Tide's new campaign against hotel chains. Claire Morel, cyber risk manager of Grand Meridian Hotels, checks that the ransomware scenario took it into account. - In **Runs**, with **Triggered by** set to **Data change**, the runs of 10 April come in order: `opencti-mirror-rebuild` (the threat streamed in), `threat-activity-recompute`, `threat-list-projection-recompute` and `attack-outcome-mixture-recompute` (Ember Tide's activity, and its weight among the attackers of each scenario), then `finding-score-recompute` and `crq-price-recompute` (the scores and the prices). Each is **Succeeded** on attempt **1 / 3**. - In **Kinds**, `opencti-mirror-rebuild` is **Healthy**, and its **Logs** show, for each run, "OpenCTI mirror rebuilt" and "Job completed successfully". The price of the ransomware scenario is current. For its quarterly audit, Example CERT also wants three months of run history instead of 30 days: its platform engineer sets `jobs.run_retention_days` to `90` in the deployment configuration of OpenCRQ. The runs already deleted, those before 11 March, do not come back: from then on, the `jobs-retention` job keeps each run 90 days, so the history reaches three months in early June. ## Check that it works {#check-that-it-works} After a change, open **Runs**: the runs it booked appear as **Queued**, then **Running**, then **Succeeded**, from under a second to a few minutes later depending on how long the last run of each kind took. OpenCRQ waits before it books a run, so that a burst of changes makes one run: as long as the last run of that kind in that tenant took, times `RECOMPUTE__DEBOUNCE_FACTOR` (`1` by default), never less than 500 milliseconds (`RECOMPUTE__DEBOUNCE_FLOOR_MS`) and never more than 5 minutes (`RECOMPUTE__DEBOUNCE_CAP_MS`). The changes that arrive while it waits join the run already booked, without delaying it. See the `recompute` keys of the [configuration](https://filigran.io/docs/reference/opencrq/configuration/#recompute). A kind whose **Health** stays **Failing** has its reason in the **Errors** of its last run. ## What's next {#what-s-next} - [OpenCRQ background processes](https://filigran.io/docs/reference/opencrq/processes/), what each kind of job does and when it runs. - [Let integrations sign in with service accounts](https://filigran.io/docs/opencrq/administer/service-accounts/), the accounts the connectors' syncs run as. - [Configure OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/), for the worker and the retention settings. --- # Let integrations sign in with service accounts > Create the service accounts OpenCRQ's connectors and your scripts write as, give them tokens with an expiry, and rotate, revoke or disable them. - URL: https://filigran.io/docs/opencrq/administer/service-accounts/ - Products: OpenCRQ 0.261123.0 - For: administrators, developers - Type: How-to guide A service account is the identity an integration uses in a tenant of OpenCRQ: the threats the OpenCTI connector streams in, the results it imports from OpenAEV, the requests a script sends to the API. It belongs to no person, so the work it does survives the departure of whoever set it up, and you can see, limit and cut off what each integration does. This page creates one for a connector, gives one a token for a script, and shows how to rotate, revoke and disable them. ## How a service account works {#how-a-service-account-works} - **It belongs to one tenant.** It reads and writes that tenant's data like a member, and never sees another tenant. A token carries its tenant: a request made with it needs no `x-tenant-id` header. - **Its groups add capabilities.** Like a person, it gets the capabilities of the roles of its groups. The creation panel puts a new account in the tenant's **Connectors** group, which has no role: it can work on data, and cannot manage the tenant's security. - **OpenCRQ's own connectors write as it, without a token.** The OpenCTI, OpenAEV, Microsoft Defender, Drata and CVE connectors run inside OpenCRQ: their **Configure integration** panel, and the panel of the same source in the steps of **Get started**, ask for a **Service account**, and what they import is recorded as that account's work. A connector without an account does not run its scheduled syncs. When the deployment configuration gives a tenant an OpenCTI or OpenAEV connection, OpenCRQ creates the account `OpenCTI (deployment)` or `OpenAEV (deployment)` at start-up and binds the connector to it, unless an administrator already chose an account. **OpenCRQ Default Threats** is the exception: it reads a public file, asks for no account, and writes as the platform. - **A script signs in with a token.** It sends `Authorization: Bearer` and the token to the [OpenCRQ API](https://filigran.io/docs/reference/opencrq/api/). Tokens start with `flgrn_ocrq_tkn_`. - **Its work is traced.** A run of a background job it started shows **Service account** under **Triggered by** in **Settings > Jobs**, and a file it stored shows its name under **Uploaded By** in **Settings > File Storage**. The tags and groups it sets on an asset through the API count as a push from XTM One: such a tag shows **XTM One** as its **Source** in **Settings > Taxonomies > Tags**, and a push replaces only what an earlier push set, never the tags and groups people set by hand. See [Manage the tags of your assets](https://filigran.io/docs/opencrq/configure/risk-taxonomies/#manage-the-tags-of-your-assets). ## Before you start {#before-you-start} - Your role has **Manage Security** in the tenant. XTM One's administrator, who signs in to OpenCRQ as its super administrator, holds it in every tenant. See [Give people access with users, groups and roles](https://filigran.io/docs/opencrq/administer/users-and-roles/). ## Create a service account {#create-a-service-account} 1. Open **Settings > Security > Service accounts** and click **Create**. 2. In the **Create a new service account** panel, enter a **Name** that says which integration uses it, and a **Description**. 3. Under **Groups**, keep **Connectors**, which is chosen for you. Add a group whose role grants **Manage Security** only if the integration must manage groups, roles or integrations, or read or change the settings of **Settings > Engine**: OpenCRQ refuses these calls to an account without it. Adding members to the tenant, and a few writes such as assessing a control, need a signed-in person, whatever the account's groups. 4. Click **Save**. The account appears in the list as **Active**. ![The Service accounts list of the Grand Meridian Hotels tenant: the OpenCTI connector account, Active, in the Connectors group.](https://filigran.io/docs/shots/8d139dcd7a94f10277ae82a65fe596b46fbbdaf75225e6ffc6972d79d4d6a98b.webp) 5. To let a connector write as it, open **Integrations**, open the connector, and click **Configure**. In the **Configure integration** panel, choose **Use an existing service account**, pick the account under **Service account**, and click **Save**. For a connector bound to no account, the panel starts on **Create a new service account**, which creates one for you in the **Connectors** group. See [Connect OpenCTI with a Live Stream](https://filigran.io/docs/opencrq/use/sources/opencti/) for the OpenCTI connector. **Example: Give the OpenCTI connector its own account** Grand Meridian Hotels streams the threats Example CERT publishes in OpenCTI into its tenant. Claire Morel, who administers the tenant, creates the account the connector writes as: - **Name**: `OpenCTI connector`. - **Description**: `Writes the threats of the OpenCTI Live Stream`. - **Groups**: **Connectors** only. The connector writes threats; it never manages access. In **Integrations**, the OpenCTI connector is configured with its **Live Stream** and this **Service account**. The threats of Velvet Harbor and Ember Tide then reach the tenant as the work of **OpenCTI connector**, and the account's page shows no capability under **Effective Permissions**: no token is needed, since the connector runs inside OpenCRQ. ## Give a script a token {#give-a-script-a-token} 1. Open the service account from the list, and click **Generate token** under **API Tokens**. 2. In the **Generate API token** panel, enter a **Token name** that says where the token is used, and choose its **Expiry**: **1 day**, **7 days**, **30 days**, **90 days** (the default), **1 year** or **No expiry**. ![The Generate API token panel: a Token name field and an Expiry selector set to 90 days by default.](https://filigran.io/docs/shots/72de929189bda947ca619d7b0796e7bdf3d5b75a6cfc21596c326b2f01488f42.webp) 3. Click **Generate**. The **Your new API token** dialog shows the token once: click **Copy & close**, and store it in your secret store right away. OpenCRQ keeps only a hash of it. The **API Tokens** table lists each token by its name and the start of its value, with its **Status** (**Active**, **Revoked** or **Expired**), when it was **Last used**, when it **Expires**, and when it was **Created**. A token stops working at its expiry, when it is revoked, or while its account is disabled. A token generated before 0.261120.0 starts with `ogrc_`, and OpenCRQ refuses it, although the table still lists it as **Active** with the new prefix. After the upgrade, generate a new token for each script, update the script, then revoke the old token. **Example: Export the price of every scenario each week** Grand Meridian's finance team loads the annualized loss of each risk scenario into its budget workbook every Monday. Claire Morel creates a service account **Name** `Weekly risk export` in the **Connectors** group, and generates a token **Token name** `Finance workbook`, **Expiry** **90 days**. The finance script keeps it in the variable `OPENCRQ_EXPORT_TOKEN` of its scheduler and calls: ```bash curl -s -G https://crq.example.com/trpc/riskScenarios.getRiskScenariosOverview \ -H "Authorization: Bearer ${OPENCRQ_EXPORT_TOKEN}" \ --data-urlencode 'input={}' ``` The procedure takes an object, even empty: without `input`, OpenCRQ answers `400 Bad Request`. The answer lists the scenarios of Grand Meridian France and Spain with their latest run. **Last used** shows the Monday of each export, and three months later the token expires: Claire generates the next one before it does. ## Rotate, revoke or disable {#rotate-revoke-or-disable} - **Rotate** a token from its actions menu: OpenCRQ revokes it and shows a new token with the same name, once. In this version, the new token expires 24 hours after the rotation when the old one had an expiry date, whatever its length. To keep a longer expiry, generate a new token with the expiry you want, update the integration, then revoke the old one. - **Revoke** a token from its actions menu and confirm: every integration that uses it loses access at once. A revoked token cannot be restored. - **Disable** an account from its actions menu in the list, or with the **Active** switch of its **Manage** panel: its tokens stop working, and **Enable** brings them back. To stop a connector that writes as the account, also turn the connector off or change its configuration on its own page. A service account cannot be deleted. Keep each integration on its own account and its own token, give each token the shortest expiry the integration tolerates, and revoke the tokens whose **Last used** date shows they are no longer used. > **With XTM One: XTM One agents work as people, not as service accounts** > > An XTM One agent that works in OpenCRQ acts as the person who asks it: XTM One signs each call with that person's XTM One identity, and OpenCRQ matches it to the account that person signs in with, never to an email address. No service account or token is needed for XTM One, and what an agent does is recorded as that person's work. ## Check that it works {#check-that-it-works} Open the service account: **Groups & Roles** and **Effective Permissions** show what it may do, and **API Tokens** shows when each token was **Last used**. For a connector, open its page under **Integrations**: it names the **Service account** it writes as and the groups of that account. ## What's next {#what-s-next} - [Follow the background jobs and run one again](https://filigran.io/docs/opencrq/administer/background-jobs/), to follow the syncs a service account runs. - [OpenCRQ API](https://filigran.io/docs/reference/opencrq/api/), every procedure a script can call. - [Connect OpenCTI with a Live Stream](https://filigran.io/docs/opencrq/use/sources/opencti/), to bind the OpenCTI connector to its account. --- # Check or stop the usage telemetry sent to Filigran > What anonymous usage counts OpenCRQ sends to Filigran, how and how often, what it never contains, the log lines that say whether it is on, how to tag it and how to stop it. - URL: https://filigran.io/docs/opencrq/administer/telemetry/ - Products: OpenCRQ 0.261123.0 - For: administrators, platform engineers - Type: How-to guide OpenCRQ sends anonymous usage telemetry to Filigran: counts over the whole instance and one on/off flag, which show how OpenCRQ is used, so that Filigran can decide what to improve. No name, no content of your tenants, assets or risk scenarios, and no figure of any one tenant leaves the instance. This page lists what is sent, how and how often, the log lines that say whether it is on, how to tag your instance, and how to stop it. It is not about observability metrics, the OpenTelemetry metrics you collect to watch your own deployment: see [Observability metrics](https://filigran.io/docs/deploy/operate/metrics/) for those. ## Before you start {#before-you-start} - OpenCRQ shows nothing about usage telemetry in its interface: you read the log of the `opencrq` container to see its state. - To tag or stop it, you control the environment of the `opencrq` service and can recreate it, or you control the outbound network of the instance. ## How it is sent {#how-it-is-sent} **Diagram: How OpenCRQ sends usage telemetry to Filigran** - OpenCRQ: OpenCRQ (Reads its counts every hour) - Start-up check: Reachability test (Once, at start; off if it fails) - Filigran: telemetry.ocrq.filigran.io (OTLP over HTTPS) Connections: - OpenCRQ → Reachability test: at start, unless disabled - Reachability test → telemetry.ocrq.filigran.io: every 6 hours | | | | --- | --- | | Destination | `https://telemetry.ocrq.filigran.io/v1/metrics`, over HTTPS | | Format | OpenTelemetry metrics (OTLP over HTTP, JSON encoding), every value a gauge, with delta temporality | | Frequency | Counts read from the database at start, then every hour; sent every 6 hours, so the first sending comes about 6 hours after the start, and once more when the instance stops cleanly | | Start-up check | Once the instance has started, without delaying it, OpenCRQ posts an empty payload to the destination and waits up to 10 seconds for an HTTP 200 answer. Without it, usage telemetry stays off until the next start, with no retry | One sending covers the whole instance, every tenant together. The image of OpenCRQ sets `NODE_ENV=production`, which sends to the destination above. An instance run without it, from the source code for example, sends to Filigran's test collector, `telemetry.ocrq.staging.filigran.io`, instead. OpenCRQ runs its work in processes, `http` and `worker` in the default profile: each process starts its own usage telemetry, under the same instance identifier, and writes its own log lines. The counts of events below come from the `http` process, which serves the users. ## What is sent {#what-is-sent} Every sending carries the identity of the instance, as OpenTelemetry resource attributes: - `service.name`: always `opencrq-telemetry`. - `service.version`: the version of OpenCRQ, such as `0.261123.0`. - `service.instance.id`: a random identifier OpenCRQ creates at its first start and keeps in its database, across restarts and upgrades. It is not linked to your organization. - `service.instance.creation`: the time of that first start. - `filigran.telemetry.tags`: the tags of `TELEMETRY__USAGE__TAGS`, only when you set them (see [Tag your instance](#tag-your-instance)). Then the values, each a total over every tenant of the instance: - **Edition**: `is_enterprise_edition`, `1` when the instance runs the Enterprise Edition, `0` otherwise. - **Platform**: `total_users_count`, `service_accounts_count`, `total_tenants_count`, `organizations_count`, `groups_count`, `roles_count` (tenant roles) and `platform_roles_count`. - **Controls and findings**: `control_capabilities_count`, `control_capability_assessments_count` and `findings_count`. - **Risk**: `risk_scenarios_count`, `crq_indicator_runs_count`, `loss_drivers_count`, `attack_outcomes_count` and `scenario_loss_estimates_count`. - **Assets**: `primary_assets_count`, `supporting_assets_count`, `attack_surfaces_count`, and the dependencies between assets, `support_to_primary_links_count` and `support_to_support_links_count`. - **Integrations**: `integration_settings_count`, the integrations configured, and `integration__count`, one value per source: `integration_first_count`, `integration_nist_count`, `integration_cisa_count`, `integration_microsoft_graph_count`, `integration_openaev_count` and `integration_drata_count`. The counts of events since the previous sending. OpenCRQ keeps them in memory: a restart loses the events not sent yet. - `user_login_count`: the sessions opened through XTM One, the hourly renewals of a session included. No user is named. - `risk_scenario_created_count`: the risk scenarios created. - `crq_simulation_launched_count`: the simulations launched on a risk scenario from the interface, the automatic first run of a scenario included. The recomputations OpenCRQ books by itself do not count. - `connector_sync_launched_count`: the connector runs asked with **Sync now**. The scheduled runs do not count. A count that fails to read keeps its previous value, and the log shows `Telemetry count refresh failed, keeping previous value`. ## What is never sent {#what-is-never-sent} - No names and no content: no user, email address, tenant, asset, risk scenario, control or document, only their numbers. - No figure of a tenant: no breakdown per tenant, and no identifier of a tenant. - No user identity behind a login, and no host name or IP address among the attributes. - No secrets and no configuration values, beyond the edition, the integrations configured and the tags you set. ## See whether it is on {#see-whether-it-is-on} At every start, each process of OpenCRQ writes one of these lines in its log: | Line | What it means | | --- | --- | | `Anonymous usage telemetry started` | Usage telemetry is on. The line gives the destination, the instance identifier, the tags and the interval between sendings, in milliseconds (`21600000`, 6 hours) | | `Anonymous usage telemetry is disabled by TELEMETRY__USAGE__ENABLED=false, nothing is sent` | You turned it off: OpenCRQ made no connection to Filigran | | `Telemetry endpoint is not reachable, anonymous usage telemetry is disabled` | The start-up check failed, as on an instance without internet access: nothing is sent until the next start | | `Failed to start anonymous usage telemetry` | An error stopped it at start, given under the line: nothing is sent until the next start | To find them in the reference deployment: ```bash docker compose logs opencrq | grep -i "usage telemetry" ``` ## Tag your instance {#tag-your-instance} `TELEMETRY__USAGE__TAGS` gives the instance tags, separated by commas, sent with every value, so that Filigran can tell a production instance from a test one, or one region from another. It is empty by default. OpenCRQ trims the tags, puts them in lowercase, removes the duplicates and sorts them: `Production, EU-West` is sent as `eu-west,production`. Set it in the environment of the `opencrq` service, then recreate the container. Earlier builds gave this variable another name, which now stops the instance at start: see the [Telemetry](https://filigran.io/docs/deploy/configure/opencrq/#telemetry) settings of OpenCRQ for the names to change. ## Stop it {#stop-it} Set `TELEMETRY__USAGE__ENABLED` to `false` in the environment of the `opencrq` service, then recreate the container with `docker compose up -d`. OpenCRQ then makes no connection to Filigran at all, not even the start-up check, and logs `Anonymous usage telemetry is disabled by TELEMETRY__USAGE__ENABLED=false, nothing is sent`. It defaults to `true`, and xtm-docker does not set it. To turn usage telemetry back on, remove the variable and recreate the container. Blocking the outbound access of the instance to `telemetry.ocrq.filigran.io`, at your firewall or by DNS, then restarting, stops it too: the start-up check fails. Blocking without a restart only makes the sendings fail. An instance without internet access never sends usage telemetry. **Example: Tag Example CERT's instance, then stop its telemetry** Example CERT runs OpenCRQ with xtm-docker, for Grand Meridian Hotels and its other member hotel chains. Its platform engineer first tags the instance, so that Filigran can tell it apart from the CERT's test instance. In `docker-compose.override.yml`, under the `opencrq` service: ```yaml environment: - TELEMETRY__USAGE__TAGS=Production,EU-West ``` After `docker compose up -d`, `docker compose logs opencrq | grep -i "usage telemetry"` shows, for each of the `http` and `worker` processes, a line `Anonymous usage telemetry started` with the endpoint `https://telemetry.ocrq.filigran.io/v1/metrics`, the tags `eu-west` and `production`, and the interval `21600000`. The security policy of Grand Meridian Hotels later forbids any outbound flow to a vendor from the instance that holds its figures. The platform engineer adds a line under the same `environment`: ```yaml - TELEMETRY__USAGE__ENABLED=false ``` After `docker compose up -d`, each process logs `Anonymous usage telemetry is disabled by TELEMETRY__USAGE__ENABLED=false, nothing is sent`, and the instance no longer contacts `telemetry.ocrq.filigran.io`. ## What's next {#what-s-next} - [Observability metrics](https://filigran.io/docs/deploy/operate/metrics/), to watch your own deployment. - The [Telemetry](https://filigran.io/docs/deploy/configure/opencrq/#telemetry) settings of OpenCRQ, and the [telemetry block](https://filigran.io/docs/reference/opencrq/configuration/#telemetry) of the configuration reference. - [Run several tenants in one platform](https://filigran.io/docs/opencrq/administer/tenants/), whose counts the usage telemetry adds up. --- # Run several tenants in one platform > Create a tenant for each organization OpenCRQ prices risk for, switch between them, connect each to its sources, rename one, and delete one you no longer serve. - URL: https://filigran.io/docs/opencrq/administer/tenants/ - Products: OpenCRQ 0.261123.0 - Edition: requires an Enterprise Edition license - For: administrators, platform engineers - Type: How-to guide A tenant holds everything OpenCRQ knows about one organization: its risk scopes, scenarios, assets, controls, plans and budget reviews, its members, groups and roles, its service accounts, its integrations and its jobs. Nothing crosses from one tenant to another. With several tenants, one OpenCRQ instance serves several organizations, such as a CERT pricing the risk of each of its members, or a group whose subsidiaries keep their figures apart. This page creates tenants, connects each to its sources, renames one, and deletes one. **Diagram: One OpenCRQ instance, one tenant per organization, each with its own people, data and connections** - Platform: Platform administrators (Create Tenants), XTM One (Signs people in, grants the XTM license) - Tenants: Grand Meridian Hotels (Members, groups, risk data), Seaside Resorts (Members, groups, risk data) - Sources: OpenCTI (One connection per tenant) Connections: - Platform administrators → Grand Meridian Hotels: creates - Platform administrators → Seaside Resorts: creates - XTM One → Seaside Resorts: allows a second - OpenCTI → Grand Meridian Hotels: streams threats - OpenCTI → Seaside Resorts: streams threats ## Before you start {#before-you-start} - More than one tenant requires the Enterprise Edition. OpenCRQ is in Enterprise Edition while XTM One grants it an XTM license that covers this instance, when OpenCRQ registers with XTM One (the `xtm_one` keys of the [configuration](https://filigran.io/docs/reference/opencrq/configuration/#xtm-one)). Each answer of XTM One grants it for 7 days, and a restart starts in the Community Edition until the next registration succeeds: see [Configure OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/#xtm-one). - Your platform role has **Create Tenants**, and **Platform Administration Access** to open the **Platform** pages of **Settings > Security**. XTM One's administrator, who signs in to OpenCRQ as its super administrator, holds both, and so does the **Platform administrator** role, which OpenCRQ creates at its first boot with the **Platform administrators** group. See [Give people access with users, groups and roles](https://filigran.io/docs/opencrq/administer/users-and-roles/). A Community Edition platform serves one tenant. OpenCRQ creates it at its first boot, when the platform holds no tenant: its name is `Default` and its identifier `01a043da-ff47-72c2-aaa4-7da56d85c83e`, unless the deployment sets `INITIAL_TENANT__NAME` and `INITIAL_TENANT__ID` before that boot (the `initial_tenant` keys of the [configuration](https://filigran.io/docs/reference/opencrq/configuration/#initial-tenant)). Setting the identifier first lets the platform engineer write the tenant's connection keys in the same deployment. See [Connect the first tenant](https://filigran.io/docs/deploy/configure/opencrq/#connect-the-first-tenant). Creating a second tenant is refused with "Multiple tenants require an Enterprise Edition license". A platform that returns to the Community Edition keeps every tenant and its data, but each person then reaches only one: of the tenants they reach, the one whose **Identifier** comes first in alphabetical order. For the tenants OpenCRQ created, that is the oldest; an identifier set with `INITIAL_TENANT__ID` takes its place by its own value. ## Create a tenant {#create-a-tenant} 1. Open **Settings > Security**, choose **Platform** at the top of the menu, and open **Tenants**. When you reach no tenant yet, OpenCRQ opens on this page, at `/platform/security/tenants`. 2. Click **Create**. In the **Create a new tenant** panel, enter the **Name** of the organization and click **Submit**. 3. Open the new tenant from its card, and add its people from **Settings > Security > Users** with **Add members**. See [Give people access with users, groups and roles](https://filigran.io/docs/opencrq/administer/users-and-roles/). A new tenant starts with its two groups, **Admin** and **Connectors**, its own copy of the reference catalogues (countries, sectors, attack outcomes and loss drivers), and **Automatic** as its **Default language**. It also gets a first risk scope, **Enterprise**, and a **Get started** wizard, first in its menu until it is finished, whose steps are **Company**, **Assets**, **Threats**, **Defenses**, **Finances**, **Tolerance**, **Protect** and **Scenarios**. It has no integration yet: even the **OpenCRQ Default Threats** set starts switched off, and loading it is a choice of the wizard's **Threats** step. The tenant OpenCRQ creates at its first boot starts the same way. At each start, OpenCRQ then connects the OpenCTI and OpenAEV integrations the deployment sets for a tenant: see [Connect a tenant to its sources](#connect-a-tenant-to-its-sources). While the wizard is unfinished, a person who opens the tenant's home for the first time in a browser lands on **Get started**. Its only member is the person who created it, in its **Admin** group, unless that person is the super administrator: they reach every tenant without being a member of any, so a tenant they create starts with no member. The tenant OpenCRQ creates at its first boot starts with no member either. The **Tenants** page lists the tenants you belong to, with their number of members; the super administrator sees every tenant. The lines view adds their **Identifier**. The card of the tenant you are in is marked **Current tenant**. The actions menu of a tenant offers **Rename** and **Delete** only when your platform role has **Create Tenants**. ## Rename a tenant {#rename-a-tenant} Renaming works in both editions: on a Community Edition platform, it gives the `Default` tenant the name of your organization. 1. Open the **Tenants** page, open the actions menu of the tenant, on its card or its line, and choose **Rename**. 2. In the **Rename the tenant** panel, change the **Name** and click **Save**. ![The Rename the tenant panel opened from the Tenants page, its Name field holding Grand Meridian Hotels, with the Save button.](https://filigran.io/docs/shots/c2f32f3f2ed78aef9f2ad60ddf2a1c075f96a701f12042f99a7da33815c52433.webp) OpenCRQ confirms with "Tenant renamed successfully.", and the new name shows on the **Tenants** page, in the tenant switcher of the sidebar and in the tenant's **Settings > Parameters**. The tenant keeps its **Identifier**, so its connection keys in the deployment configuration stay valid. You need **Create Tenants** and must reach the tenant: be its member, or be the super administrator. **Example: Name the tenant of a new platform** Example CERT installs OpenCRQ in Community Edition to price the risk of Grand Meridian Hotels. At its first boot, OpenCRQ creates the tenant `Default`. XTM One's administrator signs in, opens the **Tenants** page, chooses **Rename** on the `Default` card, enters **Name** `Grand Meridian Hotels` and clicks **Save**. The tenant's **Settings > Parameters** now reads Grand Meridian Hotels, and its identifier, `01a043da-ff47-72c2-aaa4-7da56d85c83e`, is unchanged. ## Switch between tenants {#switch-between-tenants} When you reach more than one tenant, the first row of the sidebar is the tenant switcher: it shows the name of the tenant you are in, and opens the list of your tenants. Choose one to open its home. With a single tenant, the sidebar shows no switcher and no tenant name. A person is added to each tenant on its own, by an administrator of that tenant, and can give themselves a **Full name** and a **Title** of their own in each, in the **Tenant profile** of their profile page. ## Set the default language of a tenant {#set-the-default-language-of-a-tenant} Each tenant has a **Default language**: the language of the interface for its members whose own **Language**, in their profile, is **Automatic**. It is in the tenant's **Settings > Parameters**, in the **Tenant** card, with three options: **Automatic** (the default), **English** and **French**. OpenCRQ chooses the language of each person in this order: 1. Their own **Language**, when they chose **English** or **French** in their profile. See [Set your profile and follow your notifications](https://filigran.io/docs/opencrq/use/profile/). 2. The tenant's **Default language**, when it is **English** or **French**. 3. Their browser's language, when it is English or French. 4. English otherwise. Changing it needs **Manage Security** in the tenant, from a signed-in session: a service account's token cannot. Members without it read the tenant's choice and cannot change it. OpenCRQ confirms with "Tenant default language updated.", and reloads the page when the language shown to you changes. The default language applies inside the tenant only: the platform's own pages at `/platform/security` do not read it. ## Connect a tenant to its sources {#connect-a-tenant-to-its-sources} Each tenant has its own integrations, configured from its **Integrations** page by a member with **Manage Security**. The connections to OpenCTI, OpenAEV, Microsoft Defender and Drata, and the NVD API key, are deployment settings keyed by the tenant's identifier: `CONNECTORS__OPENCTI__` followed by the identifier and `__URL`, for example. Read the identifier in the tenant's **Settings > Parameters**, under **Identifier**, and see the `connectors` keys of the [configuration](https://filigran.io/docs/reference/opencrq/configuration/#connectors). **Example: Serve a second member of Example CERT** Example CERT already prices the risk of Grand Meridian Hotels in OpenCRQ, and takes on Seaside Resorts, another member hotel chain, whose figures Grand Meridian must not see. - A platform administrator of Example CERT creates the tenant: **Name** `Seaside Resorts`. - In the new tenant, they click **Add members** in **Settings > Security > Users**, find the risk manager of Seaside Resorts, `nina.hart@seaside-resorts.example`, in XTM One's directory under **Find a person**, and choose `Admin` under **Assign to groups**, so that she manages her own members and integrations. XTM One emails her to sign in. - **Settings > Parameters** of the new tenant shows its **Identifier**, `019a3c5e-8f21-7c4d-9b6a-2e7f1d0c4a83`. The platform engineer gives the tenant its own connection to Example CERT's OpenCTI, in the `environment` of the `opencrq` service: ```yaml CONNECTORS__OPENCTI__019a3c5e-8f21-7c4d-9b6a-2e7f1d0c4a83__URL: https://cti.example.com CONNECTORS__OPENCTI__019a3c5e-8f21-7c4d-9b6a-2e7f1d0c4a83__TOKEN: ${SEASIDE_OPENCTI_TOKEN} ``` After a restart, OpenCRQ connects the OpenCTI integration of Seaside Resorts by itself: it creates the service account `OpenCTI (deployment)` and binds the connector to the Live Stream `OpenCRQ threat feed`, which it creates in Example CERT's OpenCTI when it is not there yet. The user of the token needs **Manage data sharing** in OpenCTI for that. Nina can switch to the stream Example CERT shares with Seaside Resorts in the connector's **Configure integration** panel. Grand Meridian Hotels keeps its own stream and its own figures. Nina belongs to Seaside Resorts alone: her sidebar shows no tenant switcher. ## Delete a tenant {#delete-a-tenant} Open the **Tenants** page, open the tenant's actions menu, choose **Delete**, and confirm with **Delete**. You need **Create Tenants** and must reach the tenant: be its member, or be the super administrator. OpenCRQ deletes the tenant and everything in it: its risk scopes, scenarios, plans and reviews, its groups, roles and service accounts, and its configuration. This cannot be undone. Its members keep their accounts and their other tenants. The tenant's connection keys stay in the deployment configuration until you remove them. A link to the deleted tenant, like a link to a tenant someone does not reach, shows "This tenant isn't available." and sends the person where they land when they sign in, their first tenant for most. ## Check that it works {#check-that-it-works} Open the new tenant from the tenant switcher of the sidebar, or from its card on the **Tenants** page: its **Settings > Parameters** shows its **Name** and **Identifier**. Its **Users** list in **Settings > Security** shows you in the **Admin** group, or, when you are the super administrator, tagged **Super Administrator**, and then the people you add. ## What's next {#what-s-next} - [Give people access with users, groups and roles](https://filigran.io/docs/opencrq/administer/users-and-roles/), to bring each organization's people in. - [Connect OpenCTI with a Live Stream](https://filigran.io/docs/opencrq/use/sources/opencti/), to stream the threats that target each tenant. - [Configure OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/), for the deployment settings of each tenant's connections. --- # Give people access with users, groups and roles > Add people from XTM One to an OpenCRQ tenant, give them rights with groups and roles, limit what they see with markings, check what each one can do, and manage the platform administrators. - URL: https://filigran.io/docs/opencrq/administer/users-and-roles/ - Products: OpenCRQ 0.261123.0 - For: administrators - Type: How-to guide In OpenCRQ, a person works in a tenant: the risk scopes, scenarios, assets, plans and reviews of one organization. You add people to a tenant from XTM One's directory, and give the few of them who run it the right to manage its security through a group and a role. Groups also hold the markings their members may read, such as the Traffic Light Protocol (TLP) level TLP:AMBER. Platform administrators get their own groups and roles, which create tenants and name the other administrators. This page does both, and shows how to check what each person can do. ## How access works {#how-access-works} **Diagram: A person gets rights and markings in a tenant from its groups, and rights on the platform from the platform groups** - Who: Add members (From XTM One's directory), User (Signs in through XTM One) - In a tenant: Groups (Admin, Connectors, yours), Roles (Manage Security), Markings (Assets and threats it may read) - On the platform: Platform groups (Platform administrators, User managers, yours), Platform roles (Tenants, users, access) Connections: - Add members → User: adds to a tenant - Add members → Groups: places in - User → Groups: member of - Groups → Roles: holds - Groups → Markings: cleared for - User → Platform groups: member of - Platform groups → Platform roles: holds - **Every member of a tenant works on its data, within their markings.** Membership alone lets a person read and change the risk scopes, scenarios, assets, controls, treatment plans and budget reviews of the tenant. There is no read-only member and no right per risk scope in this version. An asset or a threat that carries a marking, such as TLP:AMBER, shows only to the members cleared for it: see [Limit what people see with markings](#limit-what-people-see-with-markings). - **A capability adds what only some should do.** A tenant has one capability, **Manage Security**: it opens **Settings > Security** (users, groups, roles, service accounts), **Integrations**, **Settings > Engine**, **Settings > Jobs**, the changes to a CWE's techniques, and the choice of the tenant's home dashboard and **Default language**. A person gets it from a role, through a group. The platform capability **Platform Administration Access** also opens **Settings > Jobs**, and **Settings > Security** for its **Platform** pages. - **The platform has its own capabilities**, granted by platform roles through platform groups: **Create Tenants**, **Manage Users** and **Platform Administration Access**. They never give access to the data of a tenant. See [OpenCRQ capabilities](https://filigran.io/docs/reference/opencrq/capabilities/). - **People sign in through XTM One.** OpenCRQ has no password of its own: a person clicks **Sign in with XTM One**, and their OpenCRQ account is tied to their XTM One account. A session lasts about an hour, and XTM One renews it while the person works: an account disabled in XTM One loses OpenCRQ within the hour. - **XTM One's administrator is the super administrator.** Tagged **Super Administrator**, they hold every capability of the platform and of every tenant, from XTM One at each sign-in, without being a member of any tenant or group. When OpenCRQ starts on a platform with no tenant, it creates one, named **Default** unless the installation names it otherwise (see [Sign in to OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/#sign-in-to-opencrq)): the super administrator adds its first members. Each tenant starts with two groups. **Admin** holds the **Admin** role, which has every tenant capability, and contains the person who created the tenant, unless the super administrator created it. The **Admin** group of the tenant OpenCRQ creates at its start has no member. **Connectors** has no role: it is the group a new service account joins by default (see [Let integrations sign in with service accounts](https://filigran.io/docs/opencrq/administer/service-accounts/)). ## Before you start {#before-you-start} - In the tenant, your role has **Manage Security**: you are in its **Admin** group, or in a group whose role has that capability. The super administrator has it in every tenant. - For the platform's groups and roles, your platform role has **Manage Users** and **Platform Administration Access**. The super administrator has both. - OpenCRQ reaches XTM One: adding people searches XTM One's directory, and XTM One sends the emails. ## Add people to the tenant {#add-people-to-the-tenant} 1. Open **Settings > Security > Users** and click **Add members**. 2. Under **Find a person**, type at least two characters of a name or an email: OpenCRQ searches XTM One's directory. Pick each person to add, up to 50 at once. A person who is already a member shows **Already a member** and cannot be picked. For someone who has no XTM One account yet, type their whole email address and pick it: it reads "No XTM One account yet: XTM One will invite them". 3. Under **Assign to groups**, choose the groups they all join, or none for members without security rights. ![The Add members panel: a Find a person field that searches XTM One's directory by name or email, an optional Assign to groups selector, and the Cancel and Add buttons.](https://filigran.io/docs/shots/37f0d6cfc9125a8e8bf02338a7367280187ff2eb9fea63f778d7f328a99c3ae4.webp) 4. Click **Add**: the button counts the people picked. The panel says how many members were added to the tenant, and that each of them will get an email to sign in. Click **Close**, or **Add more members**. XTM One sends each person an email that leads to the tenant. A person who has no XTM One account gets an invitation from XTM One instead: they create their account with the same email address, and then land in the tenant. In OpenCRQ, each person also gets a notification that you added them. The **Users** list shows their **Status**: **Never signed in** until their first sign-in, then **Active**. When XTM One could not send an email, the panel gives you the link to send yourself: the **Access link**, for the people who already have an XTM One account (**Copy the access link**), or the **Invitation link** of each person XTM One invited (**Copy the invitation link**). A person who could not be added stays picked, and the panel says that their email address was not added, with the reason: | Reason shown | What to do | | --- | --- | | "This email cannot be added here. Check it, or, if they have no XTM One account yet, ask an XTM One administrator to invite them." | XTM One refused to invite this email for you, or the email belongs to another account. Check it, or ask an XTM One administrator | | "An XTM One invitation is already pending for this email. Add them here once they have created their XTM One account." | Wait until they accept the invitation XTM One already sent, then add them | | "XTM One could not be reached. Try again in a few minutes." | Click **Add** again later | | "They are an XTM One super administrator, who already reaches every tenant and the platform administration." | Nothing: the super administrator holds every right already | ## Give rights with groups and roles {#give-rights-with-groups-and-roles} A role lists capabilities; a group gives its roles to its members and service accounts. 1. To create a role, open **Settings > Security > Roles**, click **Create**, enter a **Name** and click **Submit**. Then open its actions menu, choose **Edit capabilities**, check the capabilities under **Capabilities**, and click **Save**. The panel lists the groups that use the role under **Used by groups**. 2. To create a group, open **Settings > Security > Groups**, click **Create**, enter a **Name** and click **Submit**. 3. Open the group's actions menu and choose **Edit**. In the **Update group** panel, choose its **Roles**, its **Members** and its **Service accounts**, then click **Save**. 4. To change the groups of one person instead, open **Settings > Security > Users**, open the person, click **Manage**, choose their **Groups**, and click **Save**. A change applies at once: a person who loses **Manage Security** while a tenant's security page is open is taken out of it. > **Warning** > > OpenCRQ does not stop you from removing the last person who has **Manage Security** in a tenant, yourself included. Only the super administrator could then add members, configure integrations or follow its jobs. Before you leave the **Admin** group, or change its role, check that another member keeps the capability. ## Limit what people see with markings {#limit-what-people-see-with-markings} A marking restricts who reads an object, as in OpenCTI and OpenAEV: a TLP level such as TLP:AMBER, or a marking your organization defines. OpenCRQ names each marking by the Structured Threat Information Expression (STIX) id OpenCTI gives it, so a marking set in OpenCTI or OpenAEV is the same marking here. The clearance of a group lists the markings its members may read. - **Assets and threats carry markings.** A supporting asset carries the markings its source gives it, and its findings follow it. An asset imported from OpenAEV carries the markings OpenAEV gives it when OpenAEV enforces markings, that is when its `MARKING` preview feature is on; with markings off in OpenAEV, its default, the asset carries none and every member reads it (see [Import OpenAEV results](https://filigran.io/docs/opencrq/use/sources/openaev/#what-the-connector-imports)). A threat carries the markings of its STIX object. A risk scenario carries none in this version: every member reads every scenario. - **A person reads a marked object only when cleared for all its markings.** An unmarked object shows to every member. OpenCRQ answers for a hidden object as if it did not exist, and nobody changes an object they cannot read. The super administrator reads every asset and every imported threat. - **A clearance adds up across groups, and covers the lower levels.** A person holds the markings of all their groups. A marking also clears the markings of its type ranked below it: TLP:AMBER clears TLP:CLEAR, TLP:GREEN and TLP:AMBER, but not TLP:AMBER+STRICT or TLP:RED. A member of no cleared group reads only unmarked objects. - **A marking the tenant does not define** clears nobody on an asset: the asset shows to the super administrator alone. On a threat imported from a STIX file or from **OpenCRQ Default Threats**, it restricts nothing until you create the marking. - **Threats from OpenCTI follow OpenCTI.** A threat the OpenCTI Live Stream brings shows to a person when OpenCTI lets them read it: their markings, their organization and the threat's authorized members decide there, not their OpenCRQ groups. See [Follow the threats that target your scopes](https://filigran.io/docs/opencrq/use/threats/threat-center/). - **Jobs and service accounts read everything.** Markings narrow what a person reads, in the interface, through the API or through an XTM One agent. Background jobs and service accounts read every object of the tenant, so the prices and threat scores they compute count objects a person cannot see. Give a service account's token only to an integration that may read the whole tenant. Each tenant starts with the five TLP 2.0 markings: TLP:CLEAR, TLP:GREEN, TLP:AMBER, TLP:AMBER+STRICT and TLP:RED. Its **Admin** group is cleared for all five, in the tenants created before the upgrade too. **Connectors** and the groups you create are cleared for none. When the OpenCTI connector starts, OpenCRQ adds the markings its OpenCTI user can read, then each marking its stream brings. When OpenAEV enforces markings, the OpenAEV connector adds the markings its OpenAEV user is cleared for, each time it reads the inventory. A marking deleted in OpenCTI stays in OpenCRQ. ### Clear a group for a marking {#clear-a-group-for-a-marking} OpenCRQ has no screen for markings in this version: you manage them through the [OpenCRQ API](https://filigran.io/docs/reference/opencrq/api/), as a service account whose group's role grants **Manage Security**. A query is a GET, with its input as URL-encoded JSON in `?input=`; a mutation is a POST with a JSON body. 1. In **Settings > Security > Groups**, create the group if it does not exist, and add its members. 2. Generate a token for a service account in a group whose role grants **Manage Security**, with the shortest **Expiry** that will do. See [Give a script a token](https://filigran.io/docs/opencrq/administer/service-accounts/#give-a-script-a-token). 3. Read the `id` of the group with `groups.getGroups`, and the `id` of the marking with `markingDefinitions.listMarkingDefinitions`. 4. Send `markingDefinitions.addMarkingToGroup` with the `groupId` and the `markingDefinitionId`. The members read the newly cleared objects from their next request. 5. Check the clearance with `markingDefinitions.getGroupMarkings`. | Procedure | Kind | Input | What it does | | --- | --- | --- | --- | | `markingDefinitions.listMarkingDefinitions` | query | none | Lists the markings of the tenant, each with its `id`, `stixId`, `definitionType`, `definition`, `color` and `order`. Any member may call it | | `markingDefinitions.createMarkingDefinition` | mutation | `definitionType`, `definition`, optional `color` and `order` | Creates a marking under the STIX id OpenCTI derives from its type and definition. For a marking that exists, it answers its `id` with `created: false` | | `markingDefinitions.updateMarkingDefinition` | mutation | `id`, optional `color` and `order` | Changes the color of a marking, or its rank within its type | | `markingDefinitions.deleteMarkingDefinition` | mutation | `id` | Deletes a marking and takes it out of every clearance: the assets that carry it then show to the super administrator alone | | `markingDefinitions.getGroupMarkings` | query | `groupId` | Lists the markings a group is cleared for | | `markingDefinitions.addMarkingToGroup` | mutation | `groupId`, `markingDefinitionId` | Clears a group for a marking | | `markingDefinitions.removeMarkingFromGroup` | mutation | `groupId`, `markingDefinitionId` | Takes a marking out of the clearance of a group | Every procedure but `listMarkingDefinitions` requires **Manage Security**, as does `groups.getGroups`. **Example: Let the risk analyst read the amber assets** The servers of Grand Meridian's Madrid hotel reach the tenant marked TLP:AMBER, and Camille Roux, in no group, prices the Spain scenarios without them. Marc Dupuis, who holds **Manage Security** through **Admin**, creates the group `Risk analysts`, with no role and Camille as its member. He creates a service account `Security automation` in the **Admin** group, and generates its token **Token name** `Marking clearance`, **Expiry** **1 day**, kept in the variable `OPENCRQ_SECURITY_TOKEN`. Then he runs: ```bash group_id=$(curl -s https://crq.example.com/trpc/groups.getGroups \ -H "Authorization: Bearer ${OPENCRQ_SECURITY_TOKEN}" \ | jq -r '.result.data[] | select(.name == "Risk analysts") | .id') amber_id=$(curl -s https://crq.example.com/trpc/markingDefinitions.listMarkingDefinitions \ -H "Authorization: Bearer ${OPENCRQ_SECURITY_TOKEN}" \ | jq -r '.result.data[] | select(.definition == "TLP:AMBER") | .id') curl -s -X POST https://crq.example.com/trpc/markingDefinitions.addMarkingToGroup \ -H "Authorization: Bearer ${OPENCRQ_SECURITY_TOKEN}" \ -H "Content-Type: application/json" \ -d "{\"groupId\": \"${group_id}\", \"markingDefinitionId\": \"${amber_id}\"}" curl -s -G https://crq.example.com/trpc/markingDefinitions.getGroupMarkings \ -H "Authorization: Bearer ${OPENCRQ_SECURITY_TOKEN}" \ --data-urlencode "input={\"groupId\": \"${group_id}\"}" ``` The last call lists TLP:AMBER. Camille now reads the assets marked TLP:CLEAR, TLP:GREEN or TLP:AMBER, and still not those marked TLP:RED. Marc then revokes the token. ## Read what a person can do {#read-what-a-person-can-do} Open **Settings > Security > Users** and click a person. Their page shows: - **Profile**: the **Name** and **Title** the person holds in this tenant, and their **Email**. - **Groups & Roles**: the groups they belong to here, and the roles those groups give. - **Effective Permissions**: how many of the tenant's capabilities they hold, through how many groups and roles, and for each capability the role that grants it. The **Users** list shows the super administrator in every tenant, tagged **Super Administrator** beside their groups. Their page has no **Manage** button, and each capability reads "via Super administrator (XTM One)". ![The page of Claire Morel, cyber risk manager and super administrator: the Super Administrator tag under Groups and Roles, and under Effective Permissions Manage Security, granted via Super administrator (XTM One).](https://filigran.io/docs/shots/d69c91f0f9540c6782ecbf61b3659f386ad427680ab943035634c370c53b53cf.webp) ## Remove a person from the tenant {#remove-a-person-from-the-tenant} Open the person, click **Manage**, click **Remove from tenant**, and confirm with **Delete**. The person loses the tenant and every group they had in it. Their account stays on the platform: to give them access again, add them again with **Add members**. A person who belongs to no tenant and has no platform role can no longer use OpenCRQ. ## Manage the platform administrators {#manage-the-platform-administrators} The **Security** menu shows **This tenant** and **Platform** at the top when you have both **Manage Security** in the tenant and **Platform Administration Access**. In **Platform**, the menu lists **Roles**, **Groups**, **Users** and **Tenants**; without **Manage Users**, it lists **Tenants** only. A platform administrator who belongs to no tenant finds the same pages at `/platform/security`: the menu then holds **Settings > Security** alone. | Platform capability | What it allows | | --- | --- | | **Platform Administration Access** | Open the **Platform** pages of **Settings > Security**, and **Settings > Jobs** in every tenant you belong to | | **Manage Users** | Create and change platform roles and platform groups, choose the platform groups of each user, and add members to the platform | | **Create Tenants** | Create, rename and delete tenants. See [Run several tenants in one platform](https://filigran.io/docs/opencrq/administer/tenants/) | - To create a platform role, open **Roles**, click **Create**, then **Edit capabilities** and check its **Platform Capabilities**. - To create a platform group, open **Groups**, click **Create**, then **Edit** to choose its **Platform Roles** and its **Members**. - To make someone a platform administrator, open **Users**, click the person, click **Update**, and add the **Platform Groups** they join. The list shows every account of the platform, with its **Platform groups**, **Roles** and **Tenants**; the super administrator's reads **All tenants**. - To make a platform administrator of someone who has no OpenCRQ account yet, click **Add members** on the **Users** page, find them under **Find a person**, choose at least one group under **Assign to platform groups**, and click **Add**. XTM One emails or invites them as for a tenant; once signed in, they land on the platform's **Tenants** page. The super administrator holds the three capabilities from XTM One. When a platform has no platform role and no platform group at its start, OpenCRQ creates two of each, with no member: | Platform group | Its platform role | Capabilities | | --- | --- | --- | | **Platform administrators** | **Platform administrator** | **Create Tenants**, **Manage Users**, **Platform Administration Access** | | **User managers** | **User manager** | **Manage Users**, **Platform Administration Access** | To make someone a platform administrator, add them to one of these groups; create other groups and roles when the administrators need another split. OpenCRQ refuses to remove a role from a platform group, a person from a platform group, or a whole platform group or role, when no user would then hold **Manage Users** or **Platform Administration Access** through a platform group. The super administrator does not count. **Example: Bring the risk team of Grand Meridian Hotels in** Claire Morel, cyber risk manager of Grand Meridian Hotels, administers XTM One, and reaches the tenant as OpenCRQ's super administrator. After the incident of 9 January 2026, she opens it to two people who already have an XTM One account: an analyst who reads and prices the scenarios but should not manage access, and the head of IT security, who takes over the integrations. - **First add**: under **Find a person**, she types `Camille` and picks Camille Roux, `camille.roux@grand-meridian.example`, and leaves **Assign to groups** empty. Camille becomes a member: she works on the scenarios of Grand Meridian France and Spain, and does not see **Settings > Security**, **Integrations** or **Jobs**. - **Second add**: she picks Marc Dupuis, `marc.dupuis@grand-meridian.example`, with `Admin` under **Assign to groups**. Marc gets **Manage Security** through the **Admin** role, and configures the OpenCTI connector. - XTM One emails each of them a link to the tenant. The **Users** list shows them both as **Never signed in** until they sign in. ![The Users list of Grand Meridian Hotels: Claire Morel tagged Super Administrator and Active, Camille Roux with no group, and Marc Dupuis in the Admin group with the Admin role, both Never signed in.](https://filigran.io/docs/shots/9d88b30db5c9121e8e9fbbd029f6d7f59a6749230928fb254062d713832acfdd.webp) Marc's page shows **Manage Security** granted via **Admin**; Camille's shows none of the tenant's capabilities, and she still works on every scenario. In no group, she is cleared for no marking, and reads only the unmarked assets until a group clears her (see [Limit what people see with markings](#limit-what-people-see-with-markings)). With Marc holding **Manage Security** in the tenant, its security no longer depends on Claire alone. > **With XTM One: XTM One agents act as the person who asks** > > An XTM One agent that works in OpenCRQ calls it as the person talking to it: XTM One signs each call for that person, and OpenCRQ matches it to the account tied to their XTM One account, not to an email address. The agent sees and changes what that person can, in the tenant they work in, and nothing more. A person whose XTM One account is tied to no OpenCRQ account gets no access through an agent. ## Check that it works {#check-that-it-works} Open the person's page: **Effective Permissions** says what they can do in this tenant, and which role gives it. To see what a member sees, sign in as them in a private window: a member without **Manage Security** has no **Integrations** entry and no **Security**, **Engine** or **Jobs** under **Settings**, unless their platform role has **Platform Administration Access**, which shows **Security** and **Jobs**. The same window shows which marked assets and threats their clearance lets them read; `markingDefinitions.getGroupMarkings` lists the markings of each of their groups. ## What's next {#what-s-next} - [Let integrations sign in with service accounts](https://filigran.io/docs/opencrq/administer/service-accounts/), for the accounts connectors and scripts use. - [Run several tenants in one platform](https://filigran.io/docs/opencrq/administer/tenants/), to give another organization its own tenant. - [OpenCRQ capabilities](https://filigran.io/docs/reference/opencrq/capabilities/), every capability a role can grant. --- # How OpenCRQ works: processes, ports, storage and connections > What runs in the OpenCRQ container, how its processes share PostgreSQL and S3 storage, which ports it listens on and which services it calls. - URL: https://filigran.io/docs/opencrq/concepts/architecture/ - Products: OpenCRQ 0.261123.0 - For: platform engineers, administrators - Type: Concept OpenCRQ runs as one container. Inside it, a process manager starts two Node.js processes: the HTTP process serves the interface and the API, and the worker runs the background jobs and the connectors. Both keep everything in PostgreSQL, and the files people upload in S3 storage. OpenCRQ calls XTM One, which it cannot start without, and the sources each tenant connects. This page explains what each part does, how the processes talk to each other, which ports they listen on and what leaves the container. With it, you can plan the network of a deployment, watch its health and find which part to look at when something stops. How OpenCRQ fits in the XTM stack, next to XTM One, OpenCTI and OpenAEV, is in [The XTM stack](https://filigran.io/docs/deploy/plan/architecture/). Its settings are in [Configure OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/). ## What OpenCRQ is made of {#what-opencrq-is-made-of} **Diagram: A process manager runs the HTTP process and the worker, which share PostgreSQL and S3 storage and reach XTM One and the connected sources** - Callers: Browsers (Interface and API on 3002), Your monitoring (Health on 8444, metrics on 14269) - OpenCRQ container: Process manager (Starts and watches the processes), HTTP process (Interface, API, sign-in), Worker process (Jobs, connectors, recomputes) - Stores: PostgreSQL and S3 (All data, job queue, uploaded files) - Outside: XTM One (Registration, sign-in, Ask Ariane), Connected sources (OpenCTI, OpenAEV, CVE feeds, Defender, Drata) Connections: - Browsers → HTTP process: interface and API - Your monitoring → Process manager: probe and scrape - Process manager → HTTP process: supervises - Process manager → Worker process: supervises - HTTP process → PostgreSQL and S3: read and write - Worker process → PostgreSQL and S3: jobs and results - HTTP process → XTM One: register and sign in - Worker process → Connected sources: sync and stream | Part | What it is | Keeps data | | --- | --- | --- | | Process manager | The program the image starts, `node index-pm.mjs`. It starts the processes of a profile, watches them, and serves the health check and the Prometheus endpoint | No | | HTTP process, `http` | Serves the web interface, the API and the sign-in through XTM One, registers with XTM One, and stores uploaded files | No | | Worker process, `worker` | Runs the jobs: connector syncs, recomputes after a change, the daily recompute. It also holds the live stream of each tenant's OpenCTI | No | | PostgreSQL | Every record of every tenant, and the job queue the two processes share, in the database `opencrq` in xtm-docker | Yes | | S3 storage (RustFS in xtm-docker) | The files people upload, such as the STIX bundles of the **Threats** page, under a prefix per tenant, in the bucket `opencrq` by default. Optional | Yes | | XTM One | Another module of the XTM platform, required: OpenCRQ registers with it, gets its edition from it and signs its users in through it | Its own | The processes keep nothing on disk: the container can be recreated at any time, and you [back up](https://filigran.io/docs/deploy/operate/backup/) PostgreSQL and the bucket. OpenCRQ uses no Elasticsearch, RabbitMQ or Redis. ## The process manager and its profiles {#the-process-manager-and-its-profiles} The process manager reads `PROCESS_MANAGER__PROFILE` and starts each process of that profile as a separate Node.js process, with its own memory limit, the heap size of the `--max-old-space-size` option: | Profile | Process | What it runs | Heap | | --- | --- | --- | --- | | `split`, the default | `http` | The interface, the API, the sign-in, the registration with XTM One, the uploads | 512 MB | | | `worker` | The jobs, the connectors, the recomputes, the OpenCTI live streams | 4,096 MB | | `monolith` | `main` | All of the above in one process | 2,048 MB | xtm-docker runs the `split` profile and changes no heap. Keep `monolith` for development, as [HTTP and processes](https://filigran.io/docs/deploy/configure/opencrq/#http-and-processes) says. The process manager is a third Node.js process, which supervises and does no work of its own: give the container more memory than the two heaps together. The HTTP process serves the interface from the folder in `FRONT_PATH`, which the image sets to `/app/public`, where it holds the built interface. Leave it: unset, the server looks for `../front/dist`, the folder of a development checkout. The processes depend on each other. When one exits, or fails to start, the process manager stops the other one and exits with an error. It gives each process 30 seconds to stop cleanly, then kills it. The container stops with it: xtm-docker restarts it, with `restart: always` on the `opencrq` service. A `docker compose stop` ends the processes the same way. Both processes connect to PostgreSQL when they start, and take turns behind a lock in the database. The first one applies the migrations and loads the reference data. The second one finds that work done for this start, and does not load the data again. ### How the two processes work together {#how-the-two-processes-work-together} The HTTP process and the worker never call each other. They meet in PostgreSQL: - **Work goes through the job queue.** When someone clicks **Sync now** or uploads a STIX bundle, the HTTP process adds a job to a table. PostgreSQL notifies the worker, which claims the job and runs it, up to 4 at a time by default (`JOBS__MAX_CONCURRENT`). A worker that misses a notification checks the queue every 30 seconds anyway (`JOBS__POLLING_FALLBACK_MS`, in milliseconds). - **Changes come back as notifications.** A write to a tenant's data makes PostgreSQL send a notification. The worker reads it to book the recomputes that depend on the changed data. The HTTP process reads it to tell the open browsers of that tenant to refresh what they show: it groups the changes people make within 100 milliseconds into one refresh (`EVENTS__DOORBELL_WINDOW_MS`), and the changes jobs write within 30 seconds (`EVENTS__JOB_DOORBELL_WINDOW_MS`), so that a long import does not refresh every open page for the whole of its run. Each time the worker starts listening to the notifications, at its start or after it lost them, it may have missed changes: it books every recompute of every tenant. A second catch-up waits until 10 minutes have passed since the previous one (`RECOMPUTE__RECONNECT_MIN_INTERVAL_MS`). - **The worker reports it is alive.** It writes a heartbeat in the database every 10 seconds (`JOBS__HEARTBEAT_INTERVAL_MS`), whether it has work or not. When no worker has written one for 30 seconds (`JOBS__HEARTBEAT_STALE_AFTER_MS`, which OpenCRQ refuses at start unless it is longer than the interval), the **Integrations** page of every tenant shows **No worker is answering. Queued runs will not advance.** Only three things go through the process manager: each process's health, the edition XTM One grants (the HTTP process learns it and the process manager passes it to the worker), and the metrics of each process for the Prometheus endpoint. What the worker runs, and when, is listed in [Background processes](https://filigran.io/docs/reference/opencrq/processes/). ### Give one process its own settings {#give-one-process-its-own-settings} Every process reads the settings of the whole container, then the ones set for it alone, which win: the same variable with `PROCESS_MANAGER______` in front, the profile and the process in upper case, such as `PROCESS_MANAGER__SPLIT__WORKER__POSTGRES__POOL_MAX`. Use them when one process needs what the other does not, such as a larger pool of database connections for the worker, or its own PostgreSQL account. | Variable | What it sets for that process | | --- | --- | | `PROCESS_MANAGER______SCRIPT` | The file the process runs: `index-http.mjs` and `index-worker.mjs` in `split`, `index.mjs` in `monolith`. The image sets it: leave it | | `PROCESS_MANAGER______POSTGRES__HOST` | The PostgreSQL host it connects to | | `PROCESS_MANAGER______POSTGRES__PORT` | The port of that host | | `PROCESS_MANAGER______POSTGRES__DATABASE` | The database | | `PROCESS_MANAGER______POSTGRES__USER` | The PostgreSQL user it signs in as | | `PROCESS_MANAGER______POSTGRES__PASSWORD` | That user's password. Pass it through a secret store | | `PROCESS_MANAGER______POSTGRES__POOL_MAX` | The most connections its pool opens, 10 at least, 20 by default | | `PROCESS_MANAGER______HTTP_SERVER__HOST` | The interface it listens on | | `PROCESS_MANAGER______HTTP_SERVER__PORT` | The port it listens on | | `PROCESS_MANAGER______HTTP_SERVER__PUBLIC_PORT` | The port the host publishes, written in its startup log only | | `PROCESS_MANAGER______HTTP_SERVER__MAX_RESPONSE_ITEMS` | The most items one API call returns, 20,000 by default | | `PROCESS_MANAGER______FRONT_PATH` | The folder of the built interface it serves | | `PROCESS_MANAGER______JOBS__ENABLED` | Whether it runs jobs. Required as soon as one of its `JOBS__` keys is set | | `PROCESS_MANAGER______JOBS__MAX_CONCURRENT` | How many jobs it runs at once, 4 by default | | `PROCESS_MANAGER______JOBS__POLLING_FALLBACK_MS` | How often it checks the queue without a notification | | `PROCESS_MANAGER______JOBS__HEARTBEAT_INTERVAL_MS` | How often it writes its heartbeat | | `PROCESS_MANAGER______JOBS__HEARTBEAT_STALE_AFTER_MS` | How old a heartbeat may be before it reads as no worker | | `PROCESS_MANAGER______JOBS__LOG_RETENTION_RUNS` | How many runs of a kind keep their log lines | | `PROCESS_MANAGER______JOBS__LOG_RETENTION_LINES` | How many lines of the OpenCTI stream it keeps | | `PROCESS_MANAGER______JOBS__RUN_RETENTION_DAYS` | How many days a finished run is kept | The `JOBS__` keys of a process replace the whole `jobs` block for it: a key it leaves out takes its default, not the value of the variable without the prefix. Set them all under the prefix, as the worker's `PROCESS_MANAGER__SPLIT__WORKER__JOBS__ENABLED=true` with `PROCESS_MANAGER__SPLIT__WORKER__JOBS__MAX_CONCURRENT=8`. ## The health check {#the-health-check} The process manager answers the health check on port 8444 (`HEALTHCHECK_HTTP_SERVER__PORT`), apart from the API. Each process sends it a heartbeat every 5 seconds with its state: `FORKING`, `BOOTING`, `STARTING`, `RUNNING`, `STOPPING`, `STOPPED`, `EXITED` or `ERROR`. The health check answers `200` with `{"healthy":true,...}` when every process is `RUNNING` and has sent a heartbeat in the last 60 seconds (`PROCESS_MANAGER__HEARTBEAT_TIMEOUT`, in milliseconds). Otherwise it answers `503`, with `"healthy":false`. Either way, `childrenHealthStates` lists each process with its state and its last heartbeat. It reports the processes, not the services behind them. A process that cannot reach PostgreSQL at start tries 30 times, a second apart, then exits: the process manager stops the container. XTM One out of reach leaves OpenCRQ healthy: users see a message instead, as [XTM One](https://filigran.io/docs/deploy/configure/opencrq/#xtm-one) describes. xtm-docker calls `http://localhost:8444/health` every 10 seconds, and allows 120 seconds for the first start. A Kubernetes liveness or readiness probe can call the same address. ## The ports it listens on {#the-ports-it-listens-on} | Port | Served by | What for | Exposure | | --- | --- | --- | --- | | 3002 (`HTTP_SERVER__PORT`) | The HTTP process | The interface, the API, the sign-in through XTM One, and the calls XTM One makes to OpenCRQ | Published by xtm-docker on port 8082 of the host, behind your reverse proxy | | 8444 (`HEALTHCHECK_HTTP_SERVER__PORT`) | The process manager | The health check | Inside the stack; not published by xtm-docker | | 14269 | The process manager | The Prometheus endpoint, `/metrics`, only when it is turned on. Its port is a setting of [Observability metrics](https://filigran.io/docs/deploy/operate/metrics/) | Never public: the endpoint asks for no credentials | Every port, address and token of the stack is in [Network and ports](https://filigran.io/docs/deploy/plan/network/). ## What OpenCRQ calls {#what-opencrq-calls} Each call leaves from one process. The worker makes every connector call, so a firewall rule for a connector applies to the whole container. | Destination | Host | From | When | | --- | --- | --- | --- | | XTM One | `XTM_ONE__URL`, such as `http://xtm-one:4000` | HTTP process | Always: it registers at start and every 5 minutes, signs users in, and relays the questions of Ask Ariane | | The default threat set of OpenCRQ | `raw.githubusercontent.com`, the file `default-threats-v1.json` of OpenCRQ's dataset repository | Worker | For every tenant, as soon as the worker finds one that has not loaded it, then every day at 06:00 UTC. `CONNECTORS__DEFAULT_THREATS__DATASET_URL` points it to a mirror, or, empty, turns it off | | CISA KEV | `www.cisa.gov` | Worker | Once a tenant administrator binds a service account to it in **Integrations**, then every day at 06:00 UTC | | FIRST EPSS | `api.first.org` | Worker | The same | | NIST NVD | `services.nvd.nist.gov`, and `cveawg.mitre.org` for the vendor's remediation of each CVE | Worker | The same, with or without an API key | | Microsoft Defender | `login.microsoftonline.com` and `graph.microsoft.com` | Worker | For a tenant whose credentials are set, once a service account is bound; every 6 hours | | Drata | `public-api.drata.com` by default, or the URL set for the tenant | Worker | The same; every day at 06:00 UTC | | OpenAEV | The URL set for the tenant, such as `http://openaev:8080` | Worker | For a tenant whose URL and token are set, with a service account bound, which OpenCRQ binds itself at start when nobody did; every hour | | OpenCTI | The URL set for the tenant, such as `http://opencti:8080` | Worker | The same, but not on a schedule: the worker keeps a Live Stream open and reads it as server-sent events | | Filigran | `telemetry.ocrq.filigran.io` | Both processes | The anonymous usage telemetry, on by default. See [Check or stop the usage telemetry sent to Filigran](https://filigran.io/docs/opencrq/administer/telemetry/) | The CVE sources, the default threat set and Filigran's collector are on the internet; the other destinations are where you run them. At each start, the worker also creates the Live Stream `OpenCRQ threat feed` in the OpenCTI of each connected tenant, or puts its filter back: see [Link OpenCRQ to OpenCTI and OpenAEV](https://filigran.io/docs/deploy/configure/connect-modules/#link-opencrq-to-opencti-and-openaev). A tenant administrator can change each schedule: the [connectors reference](https://filigran.io/docs/reference/opencrq/connectors/) says what each connector brings. The credentials of each tenant are in [Connectors of each tenant](https://filigran.io/docs/deploy/configure/opencrq/#connectors-of-each-tenant). ## Observability {#observability} OpenCRQ sends nothing to your monitoring by default, and xtm-docker turns nothing on. Each transport has its own switch, and none depends on another: - **OpenTelemetry (OTLP).** Every process, the process manager included, pushes its own traces, metrics and logs to your collector over gRPC. Each signal carries the name of its process in `process.name`: `pm`, `http` or `worker`. - **Prometheus.** The process manager serves `/metrics` on port 14269. On each scrape, it asks every process for its metrics and merges them into one document, with the process manager's own metrics on the processes it watches. A collector is not needed for this path. - **Pyroscope.** Every process sends its CPU and memory profiles to your Pyroscope server, tagged with its process name. The settings, the metrics and the alerts worth setting are in [Observability metrics](https://filigran.io/docs/deploy/operate/metrics/). The usage telemetry OpenCRQ sends to Filigran is separate, and on by default: see [Check or stop the usage telemetry sent to Filigran](https://filigran.io/docs/opencrq/administer/telemetry/). **Example: Open the firewall for Grand Meridian's OpenCRQ** Example CERT runs the XTM stack for its member hotel chains, with OpenCRQ at `https://opencrq.example.com` for Grand Meridian Hotels. Its platform engineer checks the processes after the first start: ```bash docker compose exec opencrq wget -qO- http://localhost:8444/health ``` ```json {"healthy":true,"childrenHealthStates":[{"processName":"http","status":"RUNNING","lastHeartbeat":"2026-01-14T09:30:05.112Z"},{"processName":"worker","status":"RUNNING","lastHeartbeat":"2026-01-14T09:30:04.987Z"}]} ``` The CERT's egress firewall lets the `opencrq` container reach `raw.githubusercontent.com` for the default threat set. Grand Meridian's tenant administrator turns on the CVE sources, so the engineer also allows `www.cisa.gov`, `api.first.org`, `services.nvd.nist.gov` and `cveawg.mitre.org`. OpenCTI and OpenAEV run in the same stack and need no rule. Grand Meridian does not use Microsoft Defender or Drata: their hosts stay closed. The CERT turns the usage telemetry off, so `telemetry.ocrq.filigran.io` stays closed too. From the next morning, the three CVE sources run every day at 06:00 UTC, and the default threats are checked for a new file at the same time. ## Find which part to look at {#find-which-part-to-look-at} | What you see | Likely cause | What to do | | --- | --- | --- | | The container restarts again and again | A process exits at start: PostgreSQL out of reach, a setting refused, the S3 bucket missing | Read `docker compose logs opencrq`: the first error names the process and the cause | | The health check answers `503` while the container runs | A process is still starting, or stopped sending heartbeats | Read `childrenHealthStates`: the process that is not `RUNNING`, or whose heartbeat is old | | **No worker is answering. Queued runs will not advance.** | The worker is not running, or cannot write to the database | Check the `worker` line of the health check, then the logs | | A connector's runs fail at once | Its host is blocked, or its credentials are refused | The run's log in **Integrations**, and the outbound rules of the table above | | Nobody can sign in, but the health check says healthy | XTM One does not answer the HTTP process | [When the sign-in does not work](https://filigran.io/docs/deploy/configure/opencrq/#sign-in-to-opencrq) | ## What's next {#what-s-next} - [The XTM stack](https://filigran.io/docs/deploy/plan/architecture/): OpenCRQ next to XTM One, OpenCTI and OpenAEV, and the services they share. - [Configure OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/): the settings of the database, the file storage, XTM One, the connectors and the processes. - [Network and ports](https://filigran.io/docs/deploy/plan/network/): every port and every outbound connection of the stack. - [Observability metrics](https://filigran.io/docs/deploy/operate/metrics/): turn on the Prometheus endpoint, OTLP and Pyroscope. - [Background processes](https://filigran.io/docs/reference/opencrq/processes/): every job the worker runs, and when. - [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/): what those jobs compute. --- # How OpenCRQ merges an asset several sources report > How OpenCRQ makes one supporting asset of what Microsoft Defender, OpenAEV and people report, which value wins, what you pin by hand, and when two reports are the same asset. - URL: https://filigran.io/docs/opencrq/concepts/asset-consolidation/ - Products: OpenCRQ 0.261123.0 - For: risk managers, administrators - Type: Concept When Microsoft Defender and OpenAEV both report the booking database server, OpenCRQ shows one supporting asset, not two, and prices attacks on it once. Each integration keeps its own record of the asset, a value you set by hand outranks them all, and one rule per field picks what the asset shows. This page explains how OpenCRQ recognizes the same asset in two reports, which value wins, what **Set by user** and **Resync with connectors** do, and where the name of an asset nobody named comes from. To import the assets, see [Import assets from Microsoft Defender](https://filigran.io/docs/opencrq/use/sources/microsoft-defender/) and [Import OpenAEV results](https://filigran.io/docs/opencrq/use/sources/openaev/); to correct one, [Build the attack surface from your assets](https://filigran.io/docs/opencrq/use/attack-surface/assets/#correct-an-imported-asset). **Diagram: Each source keeps its own record of an asset, and OpenCRQ picks every value of the one asset from them** - Sources: Microsoft Defender (Devices and accounts), OpenAEV (Its asset inventory), A person (Edit or Create) - OpenCRQ: Match the asset (Once per new record), One record per source (What each source reports), Pick each value (One rule per field) - Supporting asset: Booking database server (What screens and prices read) Connections: - Microsoft Defender → Match the asset: reports a device - OpenAEV → Match the asset: reports an endpoint - Match the asset → One record per source: files under one asset - A person → One record per source: types properties - One record per source → Pick each value: read after each sync - A person → Pick each value: pins a value - Pick each value → Booking database server: sets its values ## One asset, one record per source {#one-asset-one-record-per-source} Every integration that reports an asset keeps a record of it: the id its tool gives the asset, and what it reports, such as the name, category, exposure, criticality, description, first and last sightings, and the properties of its kind (host name and addresses for a machine, account names for an identity). A sync updates only the records of its own integration. After each sync, OpenCRQ computes the asset's values again from all its records, with the rules of [Which value wins](#which-value-wins). What the screens, the findings and the price read is that result. On the asset's **Overview**, the **Sources** card lists one row per integration reporting the asset. Its **About this source** hint gives the id the integration knows the asset by, its first and last sightings, and what it reports. A row **Set by hand** stands for the properties a person typed. An asset created by hand that no integration reports reads "This asset was created by hand." A record stays when its integration stops reporting the asset: the asset keeps what that source last said, and nothing removes it because one source lost sight of it. Microsoft Defender alone removes some records of its own accounts, as [its page](https://filigran.io/docs/opencrq/use/sources/microsoft-defender/#what-the-connector-imports) says. ## Which value wins {#which-value-wins} A value someone pinned by hand wins over every rule (see [Values you set by hand](#values-you-set-by-hand)). Otherwise, each field follows its own rule, and the **What it means and how it is computed** button beside the field names the rule and what each source reports. | Field | The value shown | | --- | --- | | **Name**, **Description**, **URL**, **Person** | The value of the source active most recently that reports one. A source's activity is the later of its last change and its last sighting of the asset, so a source that stopped seeing the asset loses to one still seeing it. On a tie, the higher-ranked source wins | | **Category** and **Subcategory** | Both from one source, so the pair never disagrees: the highest-ranked source, Microsoft Defender, then OpenAEV, then any other; on a tie, the one active most recently. A subcategory that does not belong to the category shown is dropped, even one set by hand | | **Exposure** | The most severe any source reports: **Internet Facing**, then **Internal**, then **Unknown** | | **Criticality** | The highest band any source reports, from **Very High** down to **Low**, **Unknown** counting least, and at least the band the device's user gives it (below) | | **First seen**, **Last seen** | The earliest first sighting and the latest last sighting of every source | The **Owner** never comes from a source: only a person, or a push through OpenCRQ's API, sets it. The tenant setting that prices an **Unknown** exposure or criticality applies after these rules: see [What the price reads on an asset](https://filigran.io/docs/opencrq/use/attack-surface/assets/#what-the-price-reads-on-an-asset). ### The criticality a device takes from its user {#the-criticality-a-device-takes-from-its-user} A device takes a floor from the account that uses it. When Microsoft Entra ID or Intune, through the [Microsoft Defender connector](https://filigran.io/docs/opencrq/use/sources/microsoft-defender/), name an account as the primary user of a device, a **Very High** account makes the device at least **High**, and a **High** account at least **Medium**. An account of **Medium** or below adds nothing. With several users, the highest floor wins. The account's criticality counts as the account shows it, set by hand included, and a criticality pinned on the device outranks the floor. OpenCRQ applies it again whenever a sync or an edit changes an account's criticality or a device's primary user. The **What it means and how it is computed** button of the device's **Criticality** then names the account and the band it gives. ## Values you set by hand {#values-you-set-by-hand} When you change a field with **Edit**, OpenCRQ pins your value: it keeps it, synchronization after synchronization, whatever the sources report, and the field carries the **Set by user** mark. You can pin the **Name**, **Description**, **Exposure**, **Category**, **Subcategory**, **Criticality**, **URL** and **Person**. Except for the **Subcategory**, the field's **What it means and how it is computed** button says who set it and when. Emptying a text field, such as the **Description**, removes its pin: the sources' value takes over again at their next synchronization. An asset you create by hand has every value you give it pinned the same way, except an **Exposure** or a **Criticality** left on **Unknown**: when an integration later recognizes the asset, it fills those two. The properties you type in the cards of the **Overview** (**Network**, **Machine**, **Cloud**, **Identity** or **AI target connection**, depending on the category) are one more record, the **Set by hand** row of **Sources**, ranked above every integration, field by field. A property you type wins and carries **Set by user**; a property you leave empty shows what the integrations report. The integrations' lists, such as **IP addresses** and **MAC addresses**, are joined together, but a list you type replaces them rather than adding to them, so an address you removed does not come back. Typed properties never set the name, category, exposure or criticality. They can give the asset its [shown name](#the-name-of-an-asset-nobody-named), and they are what lets an integration [recognize an asset you created](#an-asset-you-created-by-hand). **Resync with connectors**, beside **Edit**, hands the asset back to its integrations. It shows only when a value is pinned or a property typed, and an integration still reports the asset. Its confirmation names the fields edited by hand; **Resync** removes every pin and every typed property at once, and the asset takes the values its integrations report. It cannot be undone. Tags, groups, the owner and the links to primary assets stay as they are. ## How OpenCRQ recognizes one asset in two reports {#how-opencrq-recognizes-one-asset-in-two-reports} OpenCRQ decides which asset a record belongs to once, when a source reports an asset for the first time. The record then stays on that asset: a later change of name or address does not move it, and two assets never merge afterwards. There is no similarity score and no list of possible duplicates: what no rule joins stays apart. The rules apply within one family of categories, read from the category each source reports, never across families: a laptop is never compared to a SaaS application. | Family | Categories | Joined on, the strongest first | | --- | --- | --- | | Machine | **Host**, **Container / Workload**, **Cloud resource**, **Mobile device**, **Network device**, **IoT / OT device** | 1. The Microsoft Defender device ID, which an OpenAEV agent deployed by OpenAEV's Microsoft Defender executor also carries.
2. The hardware UUID, then the Microsoft Entra device ID, then the cloud VM ID, then the cloud resource ID.
3. A shared MAC address.
4. The same fully qualified host name and the same platform, with a shared IP or MAC address | | Identity | **Identity** | The Microsoft Entra object ID, or a security identifier (SID), cloud and on-premises counting as one key | | AI target | **AI target** | The same endpoint URL and the same model, both present | | Application | **Web application**, **SaaS application**, **Source code** | Never joined | | Security platform | **Security platform** | Never joined: a detection tool never becomes a target by sharing a host name | | Unclassified | **Generic asset** | Never joined | For the three families that join, the last resort is the external reference, the identifier your own system gave the asset in OpenAEV. Every rule but the first refuses a join that a stronger identifier contradicts: - A hardware, directory or cloud identifier never joins two machines whose Microsoft Defender device IDs differ. A MAC address or a host name never joins two machines whose device IDs, or whose identifiers of the same kind, differ. - A shared MAC address also needs the host names to agree when both sides have one, compared on their first label: `bkdb01` and `bkdb01.grand-meridian.example` agree. A docking station or a recycled network card does not merge two machines. - A host name alone, an IP address alone, or a short host name without its domain never joins two machines. - Two accounts whose object IDs differ, or whose SIDs of the same kind differ, are never joined. The user principal name (UPN) is never a key: a mailbox handed from a leaver to a joiner keeps its UPN. - The external reference never joins two assets that an identifier of their family tells apart. In this version, the identity rules join the accounts Microsoft Defender sees twice, such as an account first met in a sign-in event, known by its SID, and its directory record. OpenAEV reports no object ID or SID for its identities, so an identity it reports is never merged with one Defender reports. AI targets come from OpenAEV alone. ### An asset you created by hand {#an-asset-you-created-by-hand} An integration recognizes an asset you created only through the properties you typed. You cannot type a device ID, a hardware or cloud identifier, an object ID or a SID: those come from the tools that assign them. - A machine joins through its **MAC addresses**, or through its **Hostname** with a domain, its **Platform** and a shared address. - An AI target joins through its **Endpoint URL** and its **Model**. - An identity, and an asset with no typed property, is never recognized: the integration's report becomes an asset of its own. A **Hostname** you typed that differs from the one the integration reports blocks the MAC address rule, and the integration's report becomes another asset. When the join happens, the integration's record lands on your asset, your pinned values stay, and the integration fills the rest. ## The name of an asset nobody named {#the-name-of-an-asset-nobody-named} When no source reports a name and nobody typed one, OpenCRQ builds a name from the asset's properties, typed ones first. It shows in grey italics, and its hint says the name was deduced from the asset's properties. The lists sort and search on it, it is never pinned, and it follows the properties when they change. - A machine shows its host name. Without one, its vendor and model, then one address: the seen IP, else the lowest IPv4 address, else an IPv6 address, else a MAC address, such as `Cisco C9300-48P · 10.20.0.1`. The vendor is left out when the model starts with it. - An identity shows its UPN, else `domain\account` or the account name alone, else its object ID, else its SID. - An AI target shows its model, else its endpoint URL. - A **Generic asset** that an integration could not classify is named from the first properties it carries, those of a machine, an identity, then an AI target. An asset with none of these reads **Unnamed asset**, in grey. ## Tags and groups {#tags-and-groups} A tag is one tag of the tenant, whichever source reports it. When an integration such as OpenAEV reports a tag whose name already exists, it joins that tag: a `booking-platform` tag a person made and the `booking-platform` tag of OpenAEV are one. Each source keeps its own tags on an asset: a person's edit replaces only the person's tags, a sync only its integration's, and the asset shows each tag once. When an integration renames a tag in its own tool, OpenCRQ follows: - The integration is the tag's only source: the tag is renamed. - Other sources still report the old name: a new tag is made for the integration, and the old one stays for the others. - The new name is already another tag: the integration moves to it, and the old tag is deleted if no other source reports it. A tag a person renamed or merged in **Settings > Taxonomies > Tags** stays as the person left it: an integration's rename never undoes it. A tag takes its colour from the source that began reporting it last, among those that give one. See [Manage the tags of your assets](https://filigran.io/docs/opencrq/configure/risk-taxonomies/#manage-the-tags-of-your-assets). Groups follow the same principle: each source keeps its own memberships, and a sync replaces only those of its integration. See [Find the assets of a group](https://filigran.io/docs/opencrq/use/attack-surface/assets/#find-the-assets-of-a-group). **Example: The booking database server of Grand Meridian Hotels** In January 2026, Grand Meridian's risk manager creates the Booking database server by hand: **Category** **Host**, **Subcategory** **Server**, **Criticality** **Very High**, and **Exposure** left on **Unknown**. She also types the **Hostname** `bkdb01.grand-meridian.example` and the **MAC addresses** `00:15:5D:4A:21:07`. Every value but the exposure is pinned. The administrator then connects Microsoft Defender. Its first run reports the device `bkdb01.grand-meridian.example`, with the same MAC address, **Internal**, and **High** from the asset value set in Defender. The MAC address is shared and the host names agree, so Defender's record joins her asset. Next, OpenAEV reports its endpoint `BKDB01`, **Internal** and **Medium**, with the description "PostgreSQL primary of the booking platform" and the tag `booking-platform`. Its agent was deployed by OpenAEV's Microsoft Defender executor and carries Defender's device ID: it joins the same asset. The asset reads: - **Name** Booking database server, **Category** **Host**, **Subcategory** **Server** and **Criticality** **Very High**, each with **Set by user**. - **Exposure** **Internal**, the most severe the two sources report, since nobody pinned it. - **Description** from OpenAEV, the only source that reports one. - The `booking-platform` tag once, shared by the person's tag and OpenAEV's. - In **Sources**, three rows: Microsoft Defender, OpenAEV and **Set by hand**. **Resync with connectors** would remove the pins and the typed properties: the name would become one of the names the integrations report, and the **Criticality** **High**, the highest of Defender's **High** and OpenAEV's **Medium**. ## What's next {#what-s-next} - [How OpenCRQ's objects connect, from a risk scope to its price](https://filigran.io/docs/opencrq/concepts/data-model/): where a supporting asset sits among the other objects. - [Build the attack surface from your assets](https://filigran.io/docs/opencrq/use/attack-surface/assets/), to correct an imported asset or hand it back. - [Import assets from Microsoft Defender](https://filigran.io/docs/opencrq/use/sources/microsoft-defender/) and [Import OpenAEV results](https://filigran.io/docs/opencrq/use/sources/openaev/). - [Risk scopes, primary assets and supporting assets](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/), what the price reads on these assets. - [Manage the tags of your assets](https://filigran.io/docs/opencrq/configure/risk-taxonomies/#manage-the-tags-of-your-assets). --- # How OpenCRQ's objects connect, from a risk scope to its price > The objects OpenCRQ keeps, from risk scopes and assets to threats, controls, scenarios and plans, what each one belongs to, and which prices a change to one reaches. - URL: https://filigran.io/docs/opencrq/concepts/data-model/ - Products: OpenCRQ 0.261123.0 - For: risk managers, administrators, developers - Type: Concept OpenCRQ keeps a small set of connected objects, and every price it shows is read from them. Some belong to the whole tenant and serve every risk scope: the supporting assets and their findings, the threats, the controls you declare. Others belong to one **risk scope**: its primary assets, the risk scenarios that aim at them, and the treatment plans and budget reviews you decide with. A scenario's price is a **simulation** of the attacks those threats would run through those assets against those controls. Knowing which object holds a value tells you which prices move when you change it. This page describes each object, what it belongs to, where you find it, and how they point to each other. For how the price itself is computed, read [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/). **Diagram: A risk scope holds the primary assets and the scenarios OpenCRQ prices, from the threats, assets and controls the whole tenant shares** - Shared by the tenant: Threats (OpenCTI, default threats, STIX imports), Supporting assets (With their findings), Controls (51 controls, declared for the tenant) - A risk scope: Risk scope (Profile, declared estate, tolerance), Primary assets (Their business resources), Risk scenarios (One outcome, on primary assets) - What prices and decides: Simulations (Every run kept, the last one the price), Treatment plans (Controls to fund), Budget reviews (A year's spend) Connections: - Risk scope → Primary assets: holds - Supporting assets → Primary assets: support - Risk scenarios → Primary assets: aims at - Threats → Risk scenarios: seek its outcome - Controls → Risk scenarios: stand in the way - Risk scenarios → Simulations: priced by - Risk scope → Treatment plans: owns - Risk scope → Budget reviews: owns - Treatment plans → Controls: raise ## What OpenCRQ keeps {#what-opencrq-keeps} | Object | What it is | Belongs to | Where you find it | API namespace | | --- | --- | --- | --- | --- | | Risk scope | The part of the organization you assess, with its sector, country, financial profile, declared estate and risk tolerance | The tenant | **All risk scopes** | `organizations`, `financialProfiles`, `declaredEstate` | | Primary asset | What the business would lose: a service, a data set, a process, with its business resources | One risk scope | The scope's **Primary Assets** | `primaryAssets` | | Supporting asset | A device, an identity, an application or another part of the estate, declared or imported | The tenant, measured by every scope over the whole estate, or by the scopes it is mapped into | **Assets** | `supportingAssets` | | Link | A supporting asset serving a primary asset, with its roles, or a supporting asset serving another | The two assets it joins | A primary asset's **Business dependencies** tab | `assetDependencies` | | Finding | A CVE on one supporting asset, or an ATT&CK technique an OpenAEV test ran on it without a security tool preventing or detecting it | One supporting asset | **Findings**, and the asset's **Findings** tab | `supportingAssets`, `findingScore` | | Threat | A threat actor, an intrusion set or a campaign, with its techniques and the CVEs it exploits | The tenant, matched to each scope by sector and country | **Threats** | `threats` | | Control | One of the 51 controls of the defense catalogue, with the strength and coverage you declare | The catalogue is the platform's; the declaration the tenant's, and a scope can declare its own | **Controls** | `controlCapabilities` | | Compliance assessment | Your answers to the requirements of a framework, which feed the controls once published | The tenant | **Compliance** | `complianceAssessments` | | Risk scenario | An attack outcome on primary assets, with its frequency, its loss estimates and, if you set one, its own risk tolerance | One risk scope | **Risk Scenarios** | `riskScenarios`, `scenarioLossEstimates` | | Simulation | One run of the attack run engine on a scenario: its annualized loss, the band around it, how the attacks ended | One risk scenario | The scenario's **Simulation History** | `crqIndicators` | | Treatment plan | The controls you would fund, each aimed at a better posture, priced against the scope's scenarios | One risk scope | **Treatment Plans** | `treatmentPlans` | | Budget review | A year of security spend, line by line with the controls each line paid for, set against the loss it avoided | One risk scope | **Budget Reviews** | `budgetReviews` | Each procedure of these namespaces is in the [API reference](https://filigran.io/docs/reference/opencrq/api/). ## Three levels: the platform, the tenant, the risk scope {#three-levels-the-platform-the-tenant-the-risk-scope} Where an object lives decides who shares it: - **The platform** holds the catalogues no tenant changes: the 51 controls of the defense catalogue, with what each strength level means, and MITRE ATT&CK. Every tenant reads the same ones. See the [controls reference](https://filigran.io/docs/reference/opencrq/controls/). - **The tenant** holds its own copy of the risk catalogues, the attack outcomes, the loss drivers, the business resources, the sectors and the countries, and everything its sources bring: the supporting assets and their findings, the CVEs, the threats. It also holds the controls' declarations and the compliance assessments. Nothing crosses from one tenant to another: two tenants that connect the same OpenCTI each keep their own copy of its threats. - **The risk scope** holds what you price and decide for one part of the organization: its primary assets, its risk scenarios, its treatment plans and its budget reviews, with the settings they read, its financial profile, declared estate and risk tolerance. A scope can also declare its own level for a control, axis by axis, over the tenant's. A scenario, a plan or a review never moves to another scope. To price the same outcome for two subsidiaries, create a scenario in each scope. ## How a price connects to the rest {#how-a-price-connects-to-the-rest} A risk scenario names one attack outcome, chosen when you create it, and the primary assets it would hit. Everything else its price reads, it reaches through them: - **The attackers** are the tenant's threats that the model judges likely to seek that outcome, weighed more when they target the scope's sector or country. See [How a threat gets into a scenario](https://filigran.io/docs/opencrq/use/threats/threat-center/#how-a-threat-gets-into-a-scenario). - **The estate the attacks walk** is the supporting assets the scope measures, completed up to its declared estate. The attacks aim at those linked to the scenario's primary assets. See [Risk scopes, primary assets and supporting assets](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/). - **The openings** are the findings on those assets, and what each asset's category and exposure let an attacker try. - **The defenses** are the controls, at the level the scope declares, or the tenant where the scope declares nothing, lowered where OpenAEV's tests held less often. See [Set how strong your controls are](https://filigran.io/docs/opencrq/use/defenses/controls/). - **The cost** is the scenario's loss estimates, derived from the scope's financial profile for the loss drivers its outcome and business resources recommend, or entered by hand. See [Set what an attack costs with the financial profile](https://filigran.io/docs/opencrq/use/quantify/loss-drivers/). Each simulation is kept: the scenario's **Simulation History** lists them, and the price the scenario and the dashboards show is the latest one. A treatment plan prices the scope's scenarios again as if the controls it funds were in place; a budget review prices what each of its lines paid for on the latest simulation of the scope's scenarios. ## What a change reaches {#what-a-change-reaches} Because the shared objects serve every scope, a change to one reaches further than the screen you make it on: | You change | What it reaches | | --- | --- | | A supporting asset, a link or a finding | Every scenario that walks that asset: each scope that measures it, through the scenarios aimed at the primary assets it serves | | A threat, in OpenCTI | Every scenario of the tenant whose outcome it may seek, in every scope | | A control's level for the tenant | Every scope that does not declare that control itself | | A control's level for one scope | That scope's scenarios only | | A scope's financial profile | The loss estimates it derives, in that scope's scenarios | | A primary asset's business resources | Nothing already aimed at it: a scenario takes the business resources of its primary assets when you create it or change its primary assets | OpenCRQ prices the scenarios again on its own when what their price reads changes. See [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/) for when, and [Follow the background jobs](https://filigran.io/docs/opencrq/administer/background-jobs/) to see it done. **Example: Grand Meridian's two scopes, seen from their objects** Grand Meridian Hotels prices its risk in two risk scopes of one tenant: Grand Meridian France, the hotels in France and the head office that runs the booking platform, and Grand Meridian Spain, whose front desks take card payments on their own terminals. - The head-office VPN gateway is a supporting asset of the tenant. OpenCTI says Ember Tide and Velvet Harbor target CVE-2024-3400, the flaw of edge gateways, so the risk manager attaches it to the gateway as a finding. Every scenario whose attacks walk the gateway now reads that opening. - The scenario Data Breach on Front-Desk Card Payments belongs to Grand Meridian Spain and aims at its primary asset Front-desk card payments, which the front-desk payment terminals process. Its attackers are the tenant's threats that seek **Data Breach & Resale**. - Each scope declares its own Endpoint Detection and Response: **Intermediate** in France, on the servers and most workstations, **Basic** in Spain, an antivirus on the front-desk workstations. A level set for the whole tenant would change neither. - The NIST CSF 2.0 assessment that rates access control stays in **Draft**. Published, it would feed the tenant's identity controls, and Grand Meridian Spain, which declares no identity control of its own, would see its scenario priced again. Each new price shows as a run in the scenario's **Simulation History**, and the treatment plans and the budget review of its scope read it. ## What's next {#what-s-next} - [Risk scopes, primary assets and supporting assets](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/): what each one holds and what it changes in the price. - [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/): the model a simulation runs. - [How OpenCRQ merges an asset several sources report](https://filigran.io/docs/opencrq/concepts/asset-consolidation/): one supporting asset from several sources. - [OpenCRQ API](https://filigran.io/docs/reference/opencrq/api/): every procedure of the namespaces above. --- # How OpenCRQ quantifies risk > How OpenCRQ prices a risk scenario as an annualized loss, from attack frequency, the attack run against your controls, and loss drivers. - URL: https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/ - Products: OpenCRQ 0.261123.0 - For: risk managers - Type: Concept OpenCRQ expresses each cyber risk as an **Annualized Loss Expectancy** (ALE): the loss, in US dollars, that a risk scenario can be expected to cause over a year, with the probability of exceeding each amount. It answers three questions: how often attacks happen, how often one lands, and what it costs when it does. ## The building blocks {#the-building-blocks} | Block | What it is | | --- | --- | | Risk scope | The part of the organization you assess. Its financial profile, such as revenue, scales the losses that depend on it | | Primary assets | What the business would lose: the services, data and processes a scenario threatens | | Assets | The estate that supports them: devices, identities, cloud resources, declared by hand or imported by a connector such as Microsoft Defender or OpenAEV | | Risk scenario | The outcome an attacker seeks and the primary assets it would hit. OpenCRQ weighs every class of attacker in your threats that seeks that outcome | | Threat Event Frequency | How many attack campaigns a year the scenario faces, as a range: minimum, most likely, maximum. From the catalog, or set by hand | | Loss drivers | What an impact costs, by loss category, each as a range | | Controls | Your defenses, each with a declared strength and coverage. OpenAEV results show how they held when tested, and lower a declaration the tests do not bear out | ## How a scenario is priced {#how-a-scenario-is-priced} **Diagram: How OpenCRQ prices a risk scenario, from attack frequency to annualized loss** - Inputs: Threat Event Frequency (Campaigns per year), Loss drivers (What an impact costs) - Attack run: Initial access (Techniques that fit your estate), Paths after it (Against your controls) - Outcome: Blocked (No loss), Evicted (A response cost), Impact detected (A reduced loss), Impact undetected (The full loss) - Result: Annualized loss expectancy (Mean and exceedance curve) Connections: - Threat Event Frequency → Initial access: campaigns - Initial access → Paths after it: got in - Threat Event Frequency → Paths after it: no way in - Paths after it → Blocked - Paths after it → Evicted - Paths after it → Impact detected - Paths after it → Impact undetected - Loss drivers → Annualized loss expectancy: amounts - Evicted → Annualized loss expectancy - Impact detected → Annualized loss expectancy - Impact undetected → Annualized loss expectancy 1. **Frequency.** The Threat Event Frequency says how many campaigns the scenario faces in a year. It counts attack campaigns, not the exposure of your assets: exposure comes next. 2. **Initial access.** Most campaigns first have to get in, over the whole risk scope. They only use the techniques that apply to your estate: exploiting a public service needs an asset exposed to the internet, and phishing needs enabled user accounts, the people it is sent to. A drive-by compromise needs a workstation, a laptop, a mobile device or a user account. An estate with no exposed service resists those campaigns instead of seeing them move to another technique. Two outcomes also have attacks that need no way in: a denial of service is launched straight at an internet-facing asset, and a small share of financial fraud starts from a spoofed domain or an insider. 3. **The paths after it.** An attack that got in follows the paths toward the primary assets, and meets your controls on the way. Each control prevents or detects a technique as well as its strength and coverage say, less where OpenAEV's tests of that technique held less often. 4. **Outcome and cost.** Each attack ends one of four ways: **blocked**, **evicted** before any impact, **impact detected**, or **impact undetected**. The loss drivers give the loss magnitude, the full cost of one loss event. An eviction costs a response, priced at 15 % of it; a detected impact at 75 %; an undetected impact in full; a blocked attack nothing. OpenCRQ evaluates this over many worlds. Each world draws the uncertain inputs from the ranges you gave and prices the expected loss of a year. Each world also draws ten simulated years, for the probability of exceeding each annual loss. The result is a distribution, not a single figure: the mean ALE, its p10 to p90 band, and the probability of exceeding each annual loss. The band is the range the expected annual loss takes in eight worlds out of ten as the uncertain inputs vary. A single year's loss can fall far outside it. The mean also counts the few worlds with a heavy loss, so when attacks rarely land, it can sit above the p90. The means of several scenarios add up; their bands do not. > **With XTM One: Ask XTM One about a scenario** > > OpenCRQ runs with XTM One in both editions: people sign in through it, and XTM One AI agents read your risk scopes and scenarios, for example from an AI client through XTM One's MCP server. An XTM One administrator decides which changes wait for a person's approval. In the Enterprise Edition, the assistant **Ask Ariane** also explains what drives a loss from inside OpenCRQ. That edition comes from a Filigran license installed in XTM One that covers this OpenCRQ as a sub-license. It also allows more than one tenant. ## Where the rest of the XTM platform comes in {#where-the-rest-of-the-xtm-platform-comes-in} - **OpenCTI** keeps the threats current: an OpenCTI Live Stream brings the threat actors, the sectors and countries they target, their techniques and the CVEs they exploit. - **OpenAEV** shows how your controls held: its detection and prevention results, per ATT&CK technique and security platform, become findings on your assets, and audit each control's declaration technique by technique. A test can lower what you declared, never raise it. - **CVE sources** (NIST, FIRST EPSS, CISA KEV) say which vulnerabilities are likely or known to be exploited. ## From risk to decisions {#from-risk-to-decisions} A **treatment plan** is the set of controls you would fund, each aimed at a posture. OpenCRQ prices the scope's scenarios again against that posture, so you read the loss a plan removes against what it costs. A **budget review** sets a fiscal year's security spend against the annual loss it avoided, line by line. ## What's next {#what-s-next} - [How OpenCRQ's objects connect, from a risk scope to its price](https://filigran.io/docs/opencrq/concepts/data-model/): what each building block belongs to, and which prices a change reaches. - [OpenCRQ overview](https://filigran.io/docs/opencrq/), and how it connects to the XTM platform. - [Journeys across the platform](https://filigran.io/docs/workflows/), including a full CTEM cycle. --- # Risk scopes, primary assets and supporting assets > How a risk scope, its primary assets and the supporting assets behind them define what OpenCRQ prices. - URL: https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/ - Products: OpenCRQ 0.261123.0 - For: risk managers - Type: Concept Before OpenCRQ can price a risk, it needs to know what you price it for and what an attacker can hit. A **risk scope** is the part of the organization you assess, such as a subsidiary or a country entity. Its **primary assets** are what the business would lose: a service, a data set, a process. **Supporting assets** are the estate that carries them: applications, servers, workstations, accounts. Links between the two say how each supporting asset serves a primary asset. Together they decide how often a scope is attacked, what an attack can reach, and what it costs. **Diagram: Supporting assets serve primary assets, which a risk scope holds and its risk scenarios target** - Tenant estate: Booking web application (Internet-facing), Booking database server (Internal), night.audit account (Front-desk identity) - Primary assets: Guest records (Personal data), Online booking platform (Operations and services) - Risk scope: Risk scenario (An outcome on primary assets), Grand Meridian France (Sector, country, estate, profile) Connections: - Booking database server → Booking web application: supports - Booking database server → Guest records: stores - Booking web application → Guest records: processes - Booking web application → Online booking platform: performs - night.audit account → Guest records: reads - Guest records → Risk scenario: targeted by - Guest records → Grand Meridian France: belongs to - Online booking platform → Grand Meridian France: belongs to The terms follow ISO/IEC 27005: primary assets are business assets, supporting assets are the means that carry them. A [risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/) then names an attack outcome and the primary assets it would hit, inside one risk scope. ## What each one holds and what it changes {#what-each-one-holds-and-what-it-changes} | | Where you find it | What you set | What it changes in the price | | --- | --- | --- | --- | | Risk scope | **All risk scopes**, then the scope's **Details** | Identity, the estate it is measured over, its declared estate, the financial profile, the risk tolerance | How often attacks happen, which assets the attack run walks, how large the estate is beyond the assets listed, what each loss costs | | Primary asset | The scope's **Primary Assets** | **Name**, **Owner**, **Description** and its **Business resources**; for the record, its security needs and recovery objectives | Which loss drivers OpenCRQ recommends for a scenario aimed at it, and which supporting assets the attacks aim for | | Supporting asset | **Assets**, for the whole tenant | Its category, exposure and criticality, declared or imported | Which attack techniques apply, and where the attacks get in | | Link | A primary asset's **Business dependencies** tab | The roles of each supporting asset toward the primary asset | Which supporting assets the attack run aims at: every supporting asset linked to one of the scenario's primary assets. The roles set the **Impact if compromised** of the **Targets** tab, which shows which supporting assets matter most to the scenario | ## A risk scope {#a-risk-scope} A risk scope belongs to a tenant, and everything you price inside it reads its settings. A new tenant starts with one risk scope, **Enterprise**, measured over the whole estate: the **Company** step of **Get started** gives it its name, sector, country, revenue band and employee count. You create other scopes from **All risk scopes** with **Create**, in five steps: **Identity**, **Estate**, **Declared estate**, **Financial profile** and **Review & Create**. Only the name is required, but a scope with blanks prices less precisely. - **Sector**, **Country** and **Employee Count** place the scope in the catalogue of attack frequencies, the size most of all. Without an employee count, the revenue band gives the size: the band the **Annual revenue** of the financial profile sets, or the one chosen in **Get started**. A sector or a country left blank, or one the catalogue does not measure, reads the row of every sector or every country; with neither an employee count nor a revenue band, every size weighs alike. See [Set the threat event frequency](https://filigran.io/docs/opencrq/use/threats/threat-event-frequency/). - **Containment time (MTTC)** is the delay, in hours, from your detection until the attacker can no longer progress: a best, typical and worst case. The attack run uses it to decide whether a detected attack is stopped before its objective (**Evicted in time**). All three values, or none: left blank, OpenCRQ uses a platform default. - **Estate measured** says which supporting assets the scope's attack runs walk. **Whole estate** measures every asset of the tenant: the choice of a whole company, or of an entity that shares its estate. **Mapped assets only** measures the assets you map into the scope: the choice of a subsidiary or of a unit running its own estate. A scope on mapped assets that maps none and declares no estate cannot be priced: its scenarios read **No mapped asset**. - The **Declared estate** says how many assets of each kind the scope holds, whether you listed them or not: workstations and laptops, servers, user accounts, web applications, network devices, and seven more kinds. See [The declared estate](#the-declared-estate). - The **financial profile** is a questionnaire on revenue, downtime, data held and contracts. Each scenario's loss estimates derive from it. See [Set what an attack costs with the financial profile](https://filigran.io/docs/opencrq/use/quantify/loss-drivers/). - The **Risk tolerance** sets the annual loss the scope accepts and the highest probability of exceeding it. It applies to each scenario on its own, never to their sum, and a scenario can set its own. ## Primary assets {#primary-assets} A primary asset belongs to one risk scope. To add one, open the risk scope in the sidebar, below **Budget Reviews**, click **Primary Assets**, then **Create**: the **Create a new primary asset** panel asks for its **Name**, an optional **Owner** and **Description**, and its **Business resources**. Its **Business resources** say what kind of value it holds: **Personal data**, **Payment card data**, **Operations and services**, **Services delivered to others under commitments**, and six more. At least one is required, and the choice matters: OpenCRQ recommends the loss drivers of a scenario from its attack outcome and its business resources. A scenario takes the business resources of its primary assets when you create it or change its primary assets; changing those of a primary asset later leaves the scenarios already aimed at it as they were. A ransomware scenario on **Operations and services** recommends lost margin from downtime; a data breach on **Personal data** recommends notification and regulatory fines. The [business resources reference](https://filigran.io/docs/reference/opencrq/business-resources/) lists each pairing. The panel also records what a business impact analysis says of the asset: a **Reference** that no other primary asset of the scope uses, its **Business function**, its **Security needs** (**Availability**, **Integrity**, **Confidentiality** and **Traceability**, each from **Low** to **Very High**) and its **Recovery objectives** (**RTO**, **RPO** and **MTPD**). The list shows the highest of the four needs as the **Overall level** and filters on it and on the business function. These fields document the asset; the price does not read them. ## Supporting assets and the estate {#supporting-assets-and-the-estate} Supporting assets live in the tenant's library, under **Assets**, shared by every risk scope. You declare them or import them, for example from Microsoft Defender. Your detection and prevention tools, such as an EDR or a SIEM, go under the **Security platform** category: you declare them, as OpenAEV's connector does not import them. The code your organization builds and ships goes under **Source code**: a **Code repository**, a **CI/CD pipeline**, a **Package registry** or a **Software package**. The attack run reads three things about each one: - its category (web application, server, workstation, user account, network device, source code, point of sale...), which decides the techniques an attacker can play on it: a user account opens phishing and stolen credentials, a workstation drive-by compromise, and a code repository the theft of credentials left in code, and of the code itself; - its exposure: an internet-facing asset opens initial access by exploiting a public service or an external remote service; - its criticality. The assets linked directly to a scenario's primary assets weigh more when an attack reaches for its objective: the CRQ tab of a scenario shows this as **Target boost**. See [Build the attack surface from your assets](https://filigran.io/docs/opencrq/use/attack-surface/assets/). ## The declared estate {#the-declared-estate} The supporting assets you declare or import are rarely the whole estate: an integration covers part of it, and nobody lists two thousand workstations by hand. The **Declared estate** of a risk scope says how large the estate really is. For each of twelve kinds of asset, from **Host › Workstations and laptops** and **Host › Servers and virtual machines** to **Identity › User accounts**, **Web application** and **Network device**, you answer with a band (**None**, **1 to 10**, **11 to 50**, up to **More than 5,000**), or with **Specify** for an **Exact number** or a **Range**. For the kinds an attacker can reach from outside (servers, containers, cloud resources, web applications, AI targets, network devices), you also answer **At least one reachable from the Internet?**. A kind you leave unanswered declares nothing. You answer it in the **Declared estate** step when you create the scope, or later from its **Details**: the **Declared estate** tab shows the answers, and **Answer the questionnaire** opens them for editing beside the number of assets of each kind already measured. The declaration changes the price in two ways: - **The attack run** completes the assets it walks up to your answer. For each kind, it adds internal assets of **Unknown** criticality until the count reaches the lower bound of your answer, and each simulated world draws its own count within the range and keeps it for every year it plays. When you answer that at least one is reachable from the Internet and none of the measured ones is, one added asset faces the internet. The added assets support no primary asset. - **The workstation and server counts** size the forensics and restoration loss drivers. Without them, OpenCRQ estimates the counts from the employee count and the size of the organization. A scope measured over **Mapped assets only** that maps no asset is priced from its declaration alone. Under **Assets**, inside a risk scope, the card above the list sets the measured assets of each category beside the declared ones. The **Events** tab of the scope's **Details** keeps the history of its identity, mapped assets, financial profile and declared estate: who changed which answer, from what to what, and when. ## Links and their roles {#links-and-their-roles} A link from a supporting asset to a primary asset carries one or more roles. Each role says which security criteria of the primary asset the supporting asset shares: confidentiality (C), integrity (I), availability (A) and traceability (T). | Role | C | I | A | T | | --- | --- | --- | --- | --- | | **Stores**, **Processes** | inherited | inherited | inherited | one notch lower | | **Reads / renders** | inherited | one notch lower | one notch lower | not inherited | | **Transmits** | inherited | inherited | inherited | not inherited | | **Controls / administers** | inherited | inherited | inherited | inherited | | **Logs / monitors** | one notch lower | not inherited | not inherited | inherited | | **Supports availability** | not inherited | not inherited | inherited | not inherited | | **Performs / executes** | one notch lower | inherited | inherited | one notch lower | | **Unknown** | inherited | inherited | inherited | inherited | A link with several roles keeps the strongest of each. **Unknown** inherits everything, so a link you have not qualified never counts for less than a qualified one. A link between two supporting assets (a web application running on a database server) carries no role: it passes on what its dependent inherits, halved at each step, up to five levels. The **Impact if compromised** shows which supporting assets matter most to the scenario. To price it, the attack run aims at every supporting asset linked to the scenario's primary assets, whatever its roles, and weighs them 10 times more at the steps that reach for the objective (the **Target boost** of the CRQ tab). To have the attacks aim at an asset you reach through another supporting asset, such as a database server behind a web application, link it to the primary asset too. Integrations also observe relations between two supporting assets that are not links: a user account assigned to a device, from Microsoft Entra ID or Intune, and an attack path OpenAEV showed from one asset to the next, **Leads to** and **Reached from**, either **OpenAEV, proven by a test** or **OpenAEV, inferred**. They show on the asset's **Access relations** tab, carry no role, and make no asset a target of a scenario. The attack run reads one of them: a user account assigned to a device tells it which device a phished person works on. See [Build the attack surface from your assets](https://filigran.io/docs/opencrq/use/attack-surface/assets/). Each attack outcome breaches some criteria: ransomware reaches availability and confidentiality, and integrity in part; a data breach reaches confidentiality only. The share of those criteria a link passes on is the **Impact if compromised** that a scenario's **Targets** tab shows for each supporting asset. ![The Business dependencies graph of Guest records, 5 supporting assets, 4 critical and 2 exposed: the booking web application processes the records, the booking database server stores them, the front-desk workstations and the night.audit account read and render them, with the head-office VPN gateway one level behind.](https://filigran.io/docs/shots/0163d9c3a396e4a3ee4ab0f8f4c9626982d196c39dd08481ec2f201ea5067220.webp) **Example: Grand Meridian France and its booking platform** Grand Meridian France is a risk scope of the Grand Meridian Hotels tenant: **Sector** Hospitality, **Country** France, **Employee Count** 4,200, **Containment time (MTTC)** 4, 24 and 72 hours. It is measured over the **Whole estate**, six assets today, so its attack runs also walk the payment terminals of the Spanish hotels. It holds two primary assets: the **Online booking platform** (**Operations and services**, **Services delivered to others under commitments**) and the **Guest records** (**Personal data**). The booking web application **Performs / executes** the booking platform and **Processes** the guest records, the booking database server **Stores** the guest records and **Supports availability** of the booking platform, and the shared night.audit account **Reads / renders** the guest records. In the scenario Ransomware on the Booking Platform, the **Targets** tab reads 80% for the web application and 40% for the database server. Ransomware reaches availability and confidentiality in full and integrity in part; **Performs / executes** passes on all of availability and integrity but only part of confidentiality, which gives 80%. **Supports availability** passes on availability alone, which gives 40%. ## What's next {#what-s-next} - [How OpenCRQ's objects connect, from a risk scope to its price](https://filigran.io/docs/opencrq/concepts/data-model/): the other objects OpenCRQ keeps, and what a change to one reaches. - [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/) on these primary assets. - [Set what an attack costs with the financial profile](https://filigran.io/docs/opencrq/use/quantify/loss-drivers/). - [Build the attack surface from your assets](https://filigran.io/docs/opencrq/use/attack-surface/assets/). - [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/). --- # Explore the ATT&CK, CVE and CWE catalogues > Find which of your controls prevent or detect an ATT&CK technique, which threats exploit a CVE, and adjust the techniques a CWE weakness opens to an attacker. - URL: https://filigran.io/docs/opencrq/configure/attack-and-vulnerability-catalogues/ - Products: OpenCRQ 0.261123.0 - For: risk managers, administrators - Type: How-to guide OpenCRQ prices an attack technique by technique, and a vulnerability by the techniques it opens. Three catalogues hold those references: MITRE ATT&CK for the tactics, techniques and mitigations; CVE for the published vulnerabilities, with their scores and the threats that exploit them; CWE for the weaknesses behind them, linked to the techniques each one makes possible. This page shows where to read them in **Settings > Taxonomies**, how to answer "which of our controls hold this technique?", and how to correct the techniques a weakness leads to. ## Before you start {#before-you-start} - You are a member of the tenant. Reading the catalogues, and linking or unlinking a control on a technique's **Coverage**, need no capability. Changing the techniques of a weakness needs **Manage Security** in the tenant: see [Give people access with users, groups and roles](https://filigran.io/docs/opencrq/administer/users-and-roles/). - The ATT&CK catalogue ships with OpenCRQ and every tenant gets it when the platform starts. The CVE catalogue fills from the vulnerability sources (NIST, FIRST EPSS, CISA KEV) and from the CVEs your threats and findings cite: see [How CVE sources weigh your vulnerabilities](https://filigran.io/docs/opencrq/use/sources/vulnerability-sources/). ## Read the MITRE ATT&CK catalogue {#read-the-mitre-att-ck-catalogue} Open **Settings > Taxonomies > MITRE ATT&CK**. It has four entries: | Entry | What it shows | | --- | --- | | **Matrix** | The tactics as columns, each with its number of techniques. A technique with sub-techniques expands to show them | | **Tactics** | The 15 tactics, with their **ID**, **Name** and **Order** in the kill chain | | **Techniques** | Every technique and sub-technique, 706 in this version, searchable by ID or name | | **Mitigations** | The ATT&CK mitigations, such as **Multi-factor Authentication** (M1032). A mitigation lists the techniques it addresses, which **Filter by grain** narrows to techniques or sub-techniques | A technique's page has three tabs: - **Overview**: its **External ID**, **Type**, the **Reference** on attack.mitre.org, its description, its **Tactics**, **Sub-techniques** and **Mitigations**. - **Coverage**: the controls of the catalogue that prevent it (**Prevented by**) and detect it (**Detected by**), with the posture you declared for each, what OpenAEV measured, and the efficacy the engine prices. A control you have not assessed shows **Not assessed**. - **Assets**: the assets OpenAEV tested against the technique, under **Affected assets**, with the **Detection type**, the security **Platform** and the **State** of each result, and their activity over the last year. **Coverage** reads the controls of the risk scope you are in. A technique opened from a page of a scope, such as a control or a scenario's techniques, shows that scope's postures; opened from **Settings** outside any scope, it shows the tenant's own assessment, and a control assessed only in a risk scope reads **Not assessed** there. Each card lists one control per row: | Column | What it shows | | --- | --- | | **Declared posture** | The **Strength** and **Coverage** you declared for the control. A control is assessed on these two axes only | | **OpenAEV result** | The tests OpenAEV ran of the control on the technique and its sub-techniques, such as "8/10 tests succeeded (80%)" for prevention or "10/10 tests detected" for detection, and the share of the estate's hosts they ran on. **Not tested** when OpenAEV has none | | **Engine efficacy** | The chance the engine gives the control to stop the technique (prevention) or to signal it (detection) when it prices a scenario, with the **Declared** figure under it. Without a test result, the efficacy is the declaration. When the tests did worse than the declaration, the engine lowers it in proportion to the share of the estate tested, and the figure shows in the warning color | Click the info mark next to an efficacy to read how it is computed: what was declared, what was tested, and the calculation. With the OpenAEV connector configured, **See the tests in** the control **› Validation** opens the control's test results on the technique. The count next to a card's title is the number of controls the engine reads on the technique, followed by "+ N not covered" for the others. A control your tenant linked to the technique shows **Linked**; one it unlinked shows **Unlinked** and is not covered. A control OpenAEV tested on the technique without being linked to it reads **Not declared**: the engine leaves those tests out. You correct these links from the card itself. A change applies to your tenant, as it does from the control's **Prevention** or **Detection** tab, and only a person signed in can make it: a service account's token cannot. - **Unlink**, at the end of a linked row, takes the technique off the control. The row then reads **Unlinked**, and its **Link** button brings the link back. - On a **Not declared** row, the button named after the control, such as **Declare on Email Security**, links the technique to the control, so that its OpenAEV tests count. The same button is in the efficacy's explanation. - A row marked **Inherited from** a parent technique, such as a sub-technique's control linked on T1566, has no button: change the link on the parent technique's **Coverage**, which changes it for each of its sub-techniques. 1. Open the technique: in **Settings > Taxonomies > MITRE ATT&CK > Techniques**, search its ID or name, and click it; or click it in **Matrix**. 2. Open **Coverage**. ![The Coverage tab of the Phishing technique in the Grand Meridian France risk scope: three controls prevent it, Email Security at Intermediate and Full with an engine efficacy of 97%, Security Awareness at Basic and Broad with 33%, and Secure Web Gateway Not assessed, none of them tested by OpenAEV, each row ending with an Unlink button; 23 controls detect it.](https://filigran.io/docs/shots/2f48d04b20ab2c08d6f83edb6a055cfd043e1085707f09859cca284e621e9a7e.webp) 3. Read **Engine efficacy**: it starts from the control's declared strength and coverage, and drops where OpenAEV's tests did worse. A technique whose preventing controls are all **Not assessed** or low is where an attack gets through. 4. If a control does not act on the technique in your estate, click **Unlink** on its row. If OpenAEV tested a control that reads **Not declared** and it does act on the technique, click the button named after it on its row, such as **Declare on Email Security**. 5. Open **Assets** to see whether OpenAEV has tested the technique on your assets, and what the last result was. **Example: Check which controls hold Velvet Harbor's phishing** Velvet Harbor gets into hotel chains with phishing (T1566). Grand Meridian's risk manager opens the technique from the France risk scope and reads **Coverage** on 12 April 2026: - **Prevented by**: Email Security, **Intermediate** and **Full**, at 97%; Security Awareness, **Basic** and **Broad**, at 33%; Secure Web Gateway, **Not assessed**. - **Detected by**: 23 controls, of which four are assessed: Identity Platform (IdP, SSO, MFA, Conditional Access) and Email Security at 72%, Endpoint Detection and Response at 50%, Security Awareness at 33%. Prevention rests on the email gateway alone. The risk manager asks the security team to assess the web gateway, and plans a stronger awareness programme as a treatment plan option. No control has an OpenAEV result for phishing yet, so each efficacy is its declaration: an OpenAEV simulation of a phishing lure on the front desks would show whether the gateway holds as well as declared, and lower its efficacy if it does not. ## Look up a vulnerability {#look-up-a-vulnerability} Open **Settings > Taxonomies > CVE Catalog**. Each CVE shows its **CVSS** score, its **EPSS** probability of exploitation in the next 30 days, whether it is in CISA's **KEV** catalogue, and when it was last updated. **Search CVE...** finds one by its ID. A CVE's page adds what your tenant knows of it: the assets that carry it as a finding (**Affected Assets**), the threats that exploit it (**Threats**), and the activity of both over the last year. A dash in **CVSS** or **EPSS** means the vulnerability sources have not brought the score yet. ## Correct the techniques a weakness opens {#correct-the-techniques-a-weakness-opens} A CVE names the weaknesses (CWE) it comes from. When a threat exploits a CVE found on one of your assets, OpenCRQ reads the CVE's weaknesses, and from them the techniques the flaw opens to the attacker on that asset. OpenCRQ ships that link, built from the CWE, CAPEC and ATT&CK catalogues: each technique comes with its **Justification**, an **Attack pattern** of CAPEC or a **Consequence** of the weakness. With **Manage Security**, you can add a technique your team knows the weakness leads to, or remove one that does not apply to your estate. Your changes apply to your tenant only, from the next pricing. A service account's token cannot make them: only a person can. Without **Manage Security**, the weakness's page lists its techniques with no **Add technique**, **Reset**, **Remove** or **Restore**. 1. Open **Settings > Taxonomies > CWE Catalog**. The list starts on **Present in my findings**, the weaknesses of the CVEs your findings carry; click it to list every weakness. **Modified** keeps the weaknesses you changed. 2. Click a weakness. **Techniques made possible** lists its techniques, in a list or a matrix. ![The CWE-287 Improper Authentication weakness: its description, and the eleven techniques it makes possible, each with its justification, such as Valid Accounts by the consequence Gain Privileges or Assume Identity.](https://filigran.io/docs/shots/17f066c830a636328656cccd3b41727ea0a523ffad5a6abd970b63a96d48a429.webp) 3. To add a technique, click **Add technique**, choose it under **Technique**, and click **Add**. It shows **Added** under **Origin**. 4. To take a technique out, click **Remove** on its row. It stays listed as **Removed**, and **Restore** brings it back. 5. To return to the shipped techniques, click **Reset** and confirm. Every technique you added or removed is discarded; this cannot be undone. > **Tip** > > Keep a change to what you can justify: a technique you add widens every path an attacker can take through a CVE of that weakness, in every scenario of the tenant. ## What's next {#what-s-next} - [Set how OpenCRQ weighs threats, controls and assets](https://filigran.io/docs/opencrq/configure/quantification-engine/), which weighs these techniques by the threats that use them. - [Read the risk catalogues and manage asset tags](https://filigran.io/docs/opencrq/configure/risk-taxonomies/). - [Control catalogue](https://filigran.io/docs/reference/opencrq/controls/), the techniques each control prevents and detects. - [How CVE sources weigh your vulnerabilities](https://filigran.io/docs/opencrq/use/sources/vulnerability-sources/), the sources of the CVE catalogue. --- # Set the platform's parameters and file storage > Read a tenant's name, identifier and OpenCRQ version, choose the home dashboard and default language of its members, and set up the object store that keeps the files they upload. - URL: https://filigran.io/docs/opencrq/configure/parameters/ - Products: OpenCRQ 0.261123.0 - For: administrators, platform engineers - Type: How-to guide **Settings > Parameters** shows what identifies a tenant and the OpenCRQ it runs on, and sets the dashboard its members see first and the language they see it in. **Settings > File Storage** lists the files stored in the tenant, which the object store of the deployment keeps. This page sets the home dashboard, reads the identifier that the deployment settings need, and configures the file storage. ## Before you start {#before-you-start} - Every member of the tenant can read both pages. Changing the home dashboard or the default language needs **Manage Security** in the tenant. See [Give people access with users, groups and roles](https://filigran.io/docs/opencrq/administer/users-and-roles/). - The file storage is configured in the deployment of OpenCRQ, by whoever runs it. ## Read the tenant and platform parameters {#read-the-tenant-and-platform-parameters} Open **Settings > Parameters**. It has two cards: - **Tenant**: its **Name**, its **Identifier**, its **Home dashboard** and its **Default language**. - **OpenCRQ platform**: the **Version** of OpenCRQ that serves the page. Give it with any support request. A platform administrator with **Manage Users** also sees the **Instance identifier**, the identifier this OpenCRQ registers with XTM One under. The copy button next to the **Identifier**, the **Version** and the **Instance identifier** puts the value in your clipboard. ![The Parameters page of the Grand Meridian Hotels tenant: the Tenant card with its name, its identifier, the CISO home dashboard and the Automatic default language, and the OpenCRQ platform card with its version and its instance identifier.](https://filigran.io/docs/shots/d0f289349046b1eed8c7bb47a25b804ebcf9e701798011fc62917a016d6c8f3a.webp) The **Identifier** is what the deployment settings of the tenant use: the connections to OpenCTI, OpenAEV, Microsoft Defender and Drata, and the NVD API key, are keyed by it (the `connectors` keys of the [configuration](https://filigran.io/docs/reference/opencrq/configuration/#connectors)). It never changes. The tenant's name is set when it is created, and a platform administrator with **Create Tenants** changes it with **Rename** on the platform's **Tenants** page; see [Run several tenants in one platform](https://filigran.io/docs/opencrq/administer/tenants/). ## The platform pages, before any tenant {#the-platform-pages-before-any-tenant} Everything in OpenCRQ happens in a tenant. Whenever OpenCRQ starts and holds no tenant, it creates one, named **Default**, with a first risk scope **Enterprise** and its **Get started** wizard: a platform whose tenants were all deleted gets it back at its next restart. Its name and identifier come from the `initial_tenant` keys of the [configuration](https://filigran.io/docs/reference/opencrq/configuration/#initial-tenant), and it has no member yet. XTM One's administrator, signed in as the **Super Administrator**, reaches every tenant without being a member, and lands in it. A person who signs in through XTM One lands in the first of the tenants they belong to. A platform administrator who belongs to none lands on the platform's **Tenants** page, at `/platform/security/tenants`, where one with **Create Tenants** creates more. The platform's pages also hold its **Roles**, **Groups** and **Users**. Once they belong to a tenant, a platform administrator reaches the same pages inside it: an address under `/platform/security` opens the page under the tenant's **Settings > Security**, with `?scope=platform`. A person who belongs to no tenant and has no **Platform Administration Access** reads **You don't have access to OpenCRQ yet** and "Ask your administrator for access.", with a **Sign out** button. Without that access, an address under `/platform` leads back to the home page. See [Give people access with users, groups and roles](https://filigran.io/docs/opencrq/administer/users-and-roles/#manage-the-platform-administrators) and [Run several tenants in one platform](https://filigran.io/docs/opencrq/administer/tenants/). ## Choose the home dashboard of the tenant {#choose-the-home-dashboard-of-the-tenant} 1. Open **Settings > Parameters**. 2. In the **Tenant** card, choose a **Home dashboard**: **CISO** (the default), **Risk treatment**, **Risk (Sankey)**, **Findings & Assets** or **Remediation pace**. The change is saved at once, and **Home** shows that dashboard to every member who has not chosen their own. A member who chose one in their profile keeps it; see [Set your profile and follow your notifications](https://filigran.io/docs/opencrq/use/profile/). Members without **Manage Security** see the tenant's choice, and cannot change it. What each dashboard shows is in [Track cyber risk in money with dashboards](https://filigran.io/docs/opencrq/use/decide/dashboards/). **Example: Open on the treatment view for the steering committee** After the MFA rollout of March 2026, the steering committee of Grand Meridian Hotels opens OpenCRQ to see which controls to fund next, not the overall exposure. Claire Morel, the tenant's cyber risk manager, sets its **Home dashboard** to **Risk treatment**. Every member who has not chosen their own home now lands on each scenario's likelihood, annual loss exposure and the controls to improve first. A member who chose **CISO** in their profile still lands on it. ## Choose the default language of the tenant {#choose-the-default-language-of-the-tenant} In the **Tenant** card, **Default language** sets the language of the interface for every member whose own **Language**, in their profile, is **Automatic**: **Automatic** (the default) leaves it to each member's browser, **English** or **French** sets it. The change is saved at once, and the page reloads when the language shown to you changes. How OpenCRQ chooses a member's language is in [Run several tenants in one platform](https://filigran.io/docs/opencrq/administer/tenants/#set-the-default-language-of-a-tenant). ## Find the files of the tenant {#find-the-files-of-the-tenant} Open **Settings > File Storage**. The list shows each file stored in the tenant, with its **Name**, **Type**, **Size**, who uploaded it (**Uploaded By**: a person's email address or a service account's name) and when (**Uploaded At**). A download link appears on each row when the file storage is configured. The files are the STIX bundles uploaded with **Analyze new bundle** on the threats page, which OpenCRQ analyzes into threats. See [Follow the threats that target your scopes](https://filigran.io/docs/opencrq/use/threats/threat-center/). A file cannot be deleted from this page. ## Configure the file storage {#configure-the-file-storage} OpenCRQ keeps files in an S3-compatible object store, such as RustFS, MinIO or Amazon S3, in one bucket for all tenants. Without it, OpenCRQ starts normally, **Analyze new bundle** is turned off with "File storage is not configured", and the file list has no download link. In the `environment` of the `opencrq` service: ```yaml FILE_STORAGE__ENDPOINT: https://s3.example.com FILE_STORAGE__ACCESS_KEY: ${OPENCRQ_S3_ACCESS_KEY} FILE_STORAGE__SECRET_KEY: ${OPENCRQ_S3_SECRET_KEY} FILE_STORAGE__BUCKET: opencrq FILE_STORAGE__REGION: eu-west-3 ``` | Key | Default | Effect | | --- | --- | --- | | `FILE_STORAGE__ENDPOINT` | | The S3 API endpoint. Setting it turns the file storage on | | `FILE_STORAGE__ACCESS_KEY` | | The access key. Required once the endpoint is set | | `FILE_STORAGE__SECRET_KEY` | | The secret key. Required once the endpoint is set. Pass it from a secret store | | `FILE_STORAGE__BUCKET` | `opencrq` | The bucket that holds the files of every tenant | | `FILE_STORAGE__REGION` | `eu-west-3` | The region the S3 client sends. Any value for RustFS or MinIO | Once any `FILE_STORAGE__` key is set, the endpoint and both keys are required: a missing one stops OpenCRQ at start with a configuration error. Restart OpenCRQ after a change. See the `file_storage` keys of the [configuration](https://filigran.io/docs/reference/opencrq/configuration/#file-storage). ## Check that it works {#check-that-it-works} Open the threats page: **Analyze new bundle** is enabled. Upload a bundle, then open **Settings > File Storage**: the file is listed with your email under **Uploaded By**, and its download link returns it. ## What's next {#what-s-next} - [Configure OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/), for every other deployment setting. - [Set how OpenCRQ weighs threats, controls and assets](https://filigran.io/docs/opencrq/configure/quantification-engine/), the **Engine** settings of the tenant. - [Read the risk catalogues and manage asset tags](https://filigran.io/docs/opencrq/configure/risk-taxonomies/), the **Taxonomies** of the tenant. --- # Set how OpenCRQ weighs threats, controls and assets > Choose which threat intelligence counts, how fast it ages and how undated threats rank, then tune the simulation, exposure, stacked controls, phishing and test results for a tenant. - URL: https://filigran.io/docs/opencrq/configure/quantification-engine/ - Products: OpenCRQ 0.261123.0 - For: risk managers, administrators - Type: How-to guide Every price and score OpenCRQ gives rests on a few assumptions: which threat intelligence is reliable enough to read, how fast an actor's weight fades when it goes quiet, how a threat with no dated activity ranks, how many worlds a price draws, how much stacked controls add to a finding's score, and what an asset that declares nothing counts as. **Settings > Engine** holds them for the whole tenant. This page explains each assumption, its default and what moves when you change it. Read [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/) first if the attack run is new to you. ## Before you start {#before-you-start} - Your role has **Manage Security** in the tenant. Without it, **Engine** does not show under **Settings**, and its address leads back to the tenant's home: only those who hold the capability read and change these settings. See [Give people access with users, groups and roles](https://filigran.io/docs/opencrq/administer/users-and-roles/). - The settings apply to every risk scope of the tenant. A change reprices every scenario it touches, so note the current values before you change one: the pages keep no history. ## Choose which threats count {#choose-which-threats-count} **Threat Relevance** decides which intelligence about threat actors OpenCRQ reads and how much each actor weighs. OpenCRQ's internal model gives each threat a probability of leading to each attack outcome, from what its intelligence says of it: its description, motivations and goals, malware, techniques and reports. For each scenario, OpenCRQ admits the actors whose probability for the scenario's attack outcome is above 50 %, weighs each one more when it targets the risk scope's country (×2.5), its sector (×4) or both (×10), then weighs the ATT&CK techniques of the scenario by the actors that use them. The confidence gate and the half-lives act on that mixture of attackers. **Confidence gate.** Each relationship that OpenCTI streams, such as "Ember Tide targets the hospitality sector" or "Velvet Harbor uses Phishing", carries the confidence its producer gave it. OpenCRQ reads a relationship only when its confidence reaches the gate. A relationship whose producer states no confidence, such as every relationship of a MITRE ATT&CK bundle, counts as 60. A relationship below the gate is kept, not read: lowering the gate brings it back without importing anything again. The attack outcome probabilities of OpenCRQ's model do not depend on the gate. | Level | Reads | | --- | --- | | **confirmed (100)** | Only relationships confirmed by their producer | | **confirmed by other sources (80)** | Relationships at 80 or more | | **probably true (60)** | Relationships at 60 or more. The default | | **possibly true (40)** | Relationships at 40 or more | | **doubtful (20)** | Relationships at 20 or more | | **improbable (0)** | Every relationship | A gate too high drops the targeting claims and the techniques that do not reach it. The admitted actors stay the same, but their country and sector weights and their techniques come only from the relationships that pass, which can leave a scenario with few or no techniques to weigh. A gate above **probably true (60)** drops every relationship that states no confidence. A gate too low lets weak claims shape your prices. **Activity half-lives.** An actor weighs less as its last known activity ages: after one half-life, its weight is halved. OpenCRQ dates that activity from two kinds of anchor: | Field | Anchored on | Default | | --- | --- | --- | | **Observed anchor half-life (days)** | The start or stop date reported for an activity | `180` | | **Authored anchor half-life (days)** | Only the date the intelligence relationship was written | `365` | An authored date says less about when the actor was active, so it decays more slowly. Each half-life is a whole number of days from 7 to 3,650, and the observed one cannot exceed the authored one. **Threats Without a Dated Activity.** A scenario's **Relevant Threats** ranks the admitted actors by their relevance and their activity. An actor whose intelligence carries no observed activity date still needs an activity to rank on: **Assumed activity age (days)** scores it as if it had a single activity that many days old. The default is `365`, a whole number of days from 7 to 3,650. A lower value ranks undated threats higher, next to the recently active ones; a higher value pushes them down. The setting moves the ranking and the threat score it shows, not the attacker mixture a scenario is priced with: there, an actor with no dated activity counts one eighth of an actor active today, whatever the settings. 1. Open **Settings > Engine**. **Threat Relevance** opens first; **CRQ Indicators** is the other entry of the menu on the right. ![The Threat Relevance settings of the Grand Meridian Hotels tenant: the Confidence gate set to probably true (60), the observed and authored anchor half-lives at 180 and 365 days, and the start of the Threats Without a Dated Activity section.](https://filigran.io/docs/shots/df2591ff3cff2ced10632d1428ee7b688fc9f744d527b37931fd3c2d4fa05d79.webp) 2. Choose the **Confidence gate**. 3. Set the **Observed anchor half-life (days)** and the **Authored anchor half-life (days)**. 4. Set the **Assumed activity age (days)** of **Threats Without a Dated Activity**. The field is required. 5. Click **Save changes**. OpenCRQ confirms with **Threat relevance settings updated successfully.** ## Tune the simulation and the scores {#tune-the-simulation-and-the-scores} **CRQ Indicators** holds the parameters of the simulation and of the finding scores. Each section of the page is one assumption: | Section and field | What it changes | Default and values | | --- | --- | --- | | **Monte Carlo** > **Iterations** | How many worlds each price draws, each a draw of the uncertain inputs, with ten simulated years in each. The CRQ tab of a scenario shows the count as **Worlds drawn**. More worlds make the figures steadier and each run slower | `1000`; a whole number up to 2,000, above which OpenCRQ refuses the value | | **Exposure Weights** > **Internet facing**, **Internal** | The multipliers the finding score applies by exposure, to how reachable a flaw is and how much an asset matters for each technique | `1` and `0.4`; any number above 0 | | **Unknown exposure** > **Counts as** | The exposure of an asset that declares none: on its TTP tab, in the finding score, and in the simulation at initial access and along the paths | **Internal**, or **Internet-facing** | | **Control aggregation** > **Diminishing returns factor (γ)** | How stacked controls weigh in each finding score. The strongest counts fully, the second is discounted by γ, the third by γ², and so on. At `1` every control counts fully; at `0` only the strongest counts. The price itself credits every control on a technique at its full efficacy | `0.7`, from 0 to 1 | | **Phishing simulations** > **People caught (%)**, **Campaign measured on** | The share of your people your last phishing simulation caught, which replaces the default rate for phishing at initial access | Empty: the engine reads 7 %, the share of recipients who enter credentials or enable a macro on a phishing email before any awareness training. Both fields are set together or cleared together with **Clear the declaration**; the date cannot be after today (UTC) | | **Validity of a test result** > **Result stays valid for (days)** | When a control's test result stops counting as a validation of the control, and when a declared phishing simulation gives way to the default rate | Empty: a result counts however old it is | | **Unknown criticality** > **Counts as** | The criticality of an asset that declares none, in the finding score and in the weight of the assets an attacker moves through | **Low**; **Medium**, **High** or **Very High** | Two choices deserve a second look on a young estate: - **Unknown exposure** and **Unknown criticality** decide how every undeclared asset counts. Leaving them at **Internal** and **Low** prices a half-documented estate as if it were mostly safe; counting unknown assets as **Internet-facing** is the cautious choice until your inventory says otherwise. - **People caught (%)** is read as measured under the awareness training you declare today. When the training changes, run a new campaign and declare it again. 1. Open **Settings > Engine**, then **CRQ Indicators** in the menu on the right. ![The CRQ Indicators settings at their defaults: 1000 iterations, exposure weights of 1 for internet-facing and 0.4 for internal assets, unknown exposure counted as Internal, and a diminishing returns factor of 0.7.](https://filigran.io/docs/shots/85a79e8f4923b718510204e9f154810498733814b5e69753e8e20851655758d9.webp) 2. Change the fields of the assumptions you revisit. To declare a phishing campaign, fill in both **People caught (%)** and **Campaign measured on**. 3. Click **Save changes**. OpenCRQ confirms with **CRQ indicator settings updated successfully.** **Example: Declare Grand Meridian's phishing campaign and age old test results** After the multi-factor rollout of March 2026, Grand Meridian's security team ran a phishing simulation on the front desks of its French hotels. The risk manager declares it and decides that a control test older than a year no longer proves anything: - **People caught (%)**: `4`. - **Campaign measured on**: `2026-03-16`. - **Result stays valid for (days)**: `365`. Every other field keeps its default. Wherever an attack starts with phishing, the engine now reads 4 % of people caught under the awareness training declared today, in place of its default of 7 % before training, lowered by that same training. The declaration counts until 16 March 2027 included: from 17 March, the campaign has expired and the default applies again. A control whose last test is more than a year old counts on what its declaration claims, not on that test. ## What happens after you save {#what-happens-after-you-save} OpenCRQ keeps its figures current without a manual recompute: the background jobs that score findings, refresh the threat lists and price scenarios run again when the settings they read change. A new confidence gate also refreshes what the threats list reads of each threat, and the attackers weighed in each scenario. Follow the runs in **Settings > Jobs**; [Background processes](https://filigran.io/docs/reference/opencrq/processes/) lists what each job reads. To see the effect on one scenario at once, open it and run its simulation: [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/). > **With XTM One: Change the settings with XTM One** > > XTM One agents read and update most settings of both pages, the threat relevance settings and the CRQ indicator settings, as the person who asks them: that person needs **Manage Security** in the tenant. Set **Assumed activity age (days)** and the phishing declaration (**People caught (%)**, **Campaign measured on**) on these pages. Ask Ariane, the assistant, needs the Enterprise Edition; an XTM One administrator can make the update tools wait for your approval before they run. See [XTM One in OpenCRQ](https://filigran.io/docs/xtm-one/use/in-opencrq/). ## What's next {#what-s-next} - [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/), for where each assumption enters the attack run. - [Explore the ATT&CK, CVE and CWE catalogues](https://filigran.io/docs/opencrq/configure/attack-and-vulnerability-catalogues/), to see the techniques the threats are weighed on. - [Read the risk catalogues and manage asset tags](https://filigran.io/docs/opencrq/configure/risk-taxonomies/). - [Background processes](https://filigran.io/docs/reference/opencrq/processes/), for the jobs that apply a change. --- # Read the risk catalogues and manage asset tags > Read the attack outcomes, business resources, loss drivers, asset categories, sectors and countries OpenCRQ prices risk with, and rename, merge or delete the tags of your assets. - URL: https://filigran.io/docs/opencrq/configure/risk-taxonomies/ - Products: OpenCRQ 0.261123.0 - For: risk managers, administrators - Type: How-to guide OpenCRQ prices risk with catalogues it ships: what an attacker is after (attack outcomes), what a primary asset holds (business resources), what an impact costs (loss drivers), what kind of asset an attack goes through (supporting asset categories), and where a risk scope operates (sectors and countries). **Settings > Taxonomies** shows each catalogue as your tenant reads it, with what it means for your own scenarios, so you can justify a choice to an auditor or a board. Only the tags of your assets are yours to change: this page also renames, merges and deletes them. ## Before you start {#before-you-start} - You are a member of the tenant. Reading the catalogues and managing tags need no capability. - Every tenant gets the catalogues when the platform starts, and a new release of OpenCRQ updates them. Nobody edits them in the interface: a business resource says so on its page, **Business resources are platform reference data and cannot be edited.** - The ATT&CK, CVE and CWE catalogues are on the same menu: see [Explore the ATT&CK, CVE and CWE catalogues](https://filigran.io/docs/opencrq/configure/attack-and-vulnerability-catalogues/). ## What each catalogue is for {#what-each-catalogue-is-for} Open **Settings > Taxonomies**, then a catalogue in the menu on the right. **Business Resources** opens first. | Catalogue | What it holds | Where your scenarios use it | Full list | | --- | --- | --- | --- | | **Attack Outcomes** | The seven ends an attacker pursues, such as **Ransomware** or **Data Breach & Resale** | A risk scenario names one. It decides which threats are admitted and how the attack ends | [Attack outcomes](https://filigran.io/docs/reference/opencrq/attack-outcomes/) | | **Business Resources** | The ten kinds of value a primary asset holds, such as **Personal data** or **Payment card data** | A primary asset holds one or more, and a scenario takes those of its primary assets when it is created or its primary assets change. With the outcome, the scenario's business resources decide which loss drivers OpenCRQ recommends | [Business resources](https://filigran.io/docs/reference/opencrq/business-resources/) | | **Loss Drivers** | What an impact costs, grouped by loss category, such as **Extortion** or **Business Interruption (own operations)** | A scenario prices its loss drivers as ranges | [Loss drivers](https://filigran.io/docs/reference/opencrq/loss-drivers/) | | **Supporting Asset Categories** | The thirteen kinds of asset, such as **Host**, **Identity**, **Web application** or **Source code** (the repositories, pipelines and packages your teams build), with the number of ATT&CK techniques that apply to each (**TTP count**). **Security platform** holds your detection and prevention tools (EDR, SIEM, email security): no technique applies to it | An attack only uses the techniques that apply to the assets it goes through. A security platform is inventoried but never priced as a target of loss | Open a category for its techniques | | **Sectors** | The 22 sectors, such as **Hospitality** | A risk scope has one. A threat that targets it weighs four times more in the scope's scenarios, and the threat event frequency catalog reads it | | | **Countries** | The 250 countries, with their **ISO Alpha-2** and **ISO Alpha-3** codes | A risk scope has one. A threat that targets it weighs 2.5 times more, ten times when it also targets the sector | | | **Tags** | The tags of your assets, set by hand or reported by a connector | The labels an asset carries. Tags do not enter a price | | The generated references list the full catalogues of this version, with what each entry covers. The screens add what only your tenant knows. ## Read an attack outcome against your scenarios {#read-an-attack-outcome-against-your-scenarios} An attack outcome's page shows what it costs you, which threats pursue it and which controls reduce it. 1. Open **Settings > Taxonomies > Attack Outcomes**, and click an outcome. ![The Ransomware attack outcome of the Grand Meridian Hotels tenant: a reference dwell of 3 days, an exposure of $254K from its one priced scenario, loss drivers of $8.1M, and the top matching threats led by Ember Tide at 99% and Operation Low Season at 71%.](https://filigran.io/docs/shots/723acb4c5f4880b9ce79aa2be0e6ebdf902dc277778d81578956ea4d25b7595f.webp) 2. Read **Overview**: - **Reference dwell** and **Criteria reached**: how long an attacker usually stays before the outcome, and which of confidentiality, integrity, availability and traceability it breaches. - **Exposure**: the annual loss of every risk scenario that names the outcome, summed. Each scenario is priced on its own, so the total is not the cost of all of them landing together. **Loss drivers** below it adds up what one occurrence costs, from the ranges recorded on those scenarios: a different measure, never compared with the exposure. - **Threat in the wild** and **Top matching threats**: the threats that lead to this outcome, ranked by their **Probability**. OpenCRQ's internal model gives each threat a probability of leading to each outcome, and a threat appears once it is above 50 %. Click a threat to open its page. See [Set how OpenCRQ weighs threats, controls and assets](https://filigran.io/docs/opencrq/configure/quantification-engine/). - **Controls that reduce this outcome**: the controls whose simulated upgrade removes the most annual loss across the outcome's scenarios, first. The order ranks; it does not price a set of controls together. 3. Open **TTP** for the techniques that mark the outcome, the reference every threat is matched against, in a matrix or a list. To see when a loss driver applies, open **Settings > Taxonomies > Loss Drivers**, expand a loss category and click a driver. **When this driver applies** crosses each attack outcome with each business resource: **This driver applies**, **Realistic pairing, driver not called**, or **Pairing not held realistic**. A recommendation never restricts: a scenario can price any loss driver. **Example: Explain the ransomware exposure to the board** Before the budget review, Grand Meridian's risk manager opens **Settings > Taxonomies > Attack Outcomes** and clicks **Ransomware**. On 12 April 2026, the page reads: - **Reference dwell**: 3 days. **Criteria reached**: confidentiality, availability, and integrity partly; traceability is not reached. - **Exposure**: $254K, **1 of 1 priced**: Ransomware on the Booking Platform, in Grand Meridian France. - **Top matching threats**: Ember Tide, an intrusion set, at a **Probability** of 99%, then the campaign Operation Low Season at 71%. - **Controls that reduce this outcome**: Secure Remote Access (VPN / ZTNA), Patch Management and Network Intrusion Prevention, first. The board hears one sentence per line: the ransomware risk costs $254K a year in expectation, Ember Tide is why, and remote access and patching are where the money goes first. ## Manage the tags of your assets {#manage-the-tags-of-your-assets} A tag labels assets, such as all the assets of the booking platform. Tags come from three sources: a person who tags an asset (**Manual**), a push from XTM One (**XTM One**), and a connector that reports the tags of its own tool, such as OpenAEV. OpenCRQ counts as an XTM One push every tag written through its API with a service account's token. A person's tags and a push's tags never replace each other: each only replaces its own. The same idea often arrives under several names; merge them into one. What happens to a connector's tags when it renames one, or when two sources share it, is in [How OpenCRQ merges an asset several sources report](https://filigran.io/docs/opencrq/concepts/asset-consolidation/#tags-and-groups). 1. Open **Settings > Taxonomies > Tags**. Each tag shows its **Source** (**Manual**, **XTM One** or the connector), the names connectors report it under, the **Merged tags** it holds and its number of **Assets**. Search with **Search tags...** and filter with **Filter by source**. ![The four Tags of the Grand Meridian Hotels tenant, all Manual: booking-platform on 2 assets, front-desk on 3, pci-dss and remote-access on 1 each.](https://filigran.io/docs/shots/4a71c5c48dc5e8c83e436078e2aadd72ae181d2bc731f20db06500c71370bd34.webp) 2. Open the menu at the end of a tag's row, and choose what to do: - **Rename**: give the tag a new **Name**, and click **Save**. The names connectors report stay listed under **Name in** followed by the connector, so the connector keeps finding the tag. If the name is taken, OpenCRQ offers to merge the two tags instead. - **Merge into…**: choose the tag to keep under **Merge into**, and click **Merge**. Every asset of the merged tag carries the chosen one. - **Undo a merge…**: shown on a tag that holds merged tags. Click **Restore** next to a merged tag to separate it again. - **Delete**: confirm to remove the tag from every asset. Tags merged into it are deleted too, and a connector that still reports the tag creates it again at its next sync. A merge keeps the merged tag's name: renaming or deleting the tag you kept never loses where its assets came from, and **Undo a merge…** brings it back as it was. ## What's next {#what-s-next} - [Explore the ATT&CK, CVE and CWE catalogues](https://filigran.io/docs/opencrq/configure/attack-and-vulnerability-catalogues/), the techniques and flaws behind the attack outcomes. - [Set how OpenCRQ weighs threats, controls and assets](https://filigran.io/docs/opencrq/configure/quantification-engine/). - [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/), with an attack outcome and loss drivers. - [Attack outcomes](https://filigran.io/docs/reference/opencrq/attack-outcomes/), [Business resources](https://filigran.io/docs/reference/opencrq/business-resources/) and [Loss drivers](https://filigran.io/docs/reference/opencrq/loss-drivers/), the full catalogues of this version. --- # Build the attack surface from your assets > Declare the supporting assets an attacker can reach, set their exposure and criticality, and link them to the primary assets they carry, so OpenCRQ prices attacks on your real estate. - URL: https://filigran.io/docs/opencrq/use/attack-surface/assets/ - Products: OpenCRQ 0.261123.0 - For: risk managers, administrators - Type: How-to guide OpenCRQ prices an attack on the estate it can reach: the applications, servers, workstations, network devices and accounts of your organization, which it calls **supporting assets**. This page builds that estate: you declare or import your supporting assets, set the two facts the price reads on each one, its exposure and its criticality, and link each asset to the primary assets it carries. If you are new to primary and supporting assets, read [Risk scopes, primary assets and supporting assets](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/) first. ## Before you start {#before-you-start} - You are a member of the tenant. Every member works on its assets: no capability is needed. - The risk scopes and their primary assets exist. See [Risk scopes, primary assets and supporting assets](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/). - To import assets rather than declare them, the platform administrator gives the [OpenAEV](https://filigran.io/docs/opencrq/use/sources/openaev/) or [Microsoft Defender](https://filigran.io/docs/opencrq/use/sources/microsoft-defender/) connector its credentials in the deployment's configuration. OpenAEV then comes up connected; Microsoft Defender waits for an administrator with **Manage Security** to configure it in **Integrations**. ## What the price reads on an asset {#what-the-price-reads-on-an-asset} Supporting assets belong to the tenant, not to a risk scope. A scope measured over the **Whole estate** walks every asset of the tenant; a scope measured over **Mapped assets only** walks the assets mapped into it. A scope that [declares its estate](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/#the-declared-estate) also counts the assets nobody listed, up to its declaration. The attack run reads three facts on each asset: | Field | Values | What it changes | | --- | --- | --- | | **Category** and **Subcategory** | **Host**, **Web application**, **Network device**, **Identity**, **IoT / OT device**, **Cloud resource**, **SaaS application**, **Mobile device**, **Container / Workload**, **AI target**, **Security platform**, **Source code**, **Generic asset**; then a subcategory such as **Server**, **Workstation**, **Website**, **VPN gateway**, **User account**, **Point of sale**, **EDR**, **SIEM** or **Code repository** | The attack techniques that apply to the asset. Its **TTP** tab lists them as **Category TTPs**. A **Security platform**, a detection or prevention tool such as an EDR or a SIEM, stays in the inventory but has no technique and carries no loss: the price never counts it as a target | | **Exposure** | **Internet Facing**, **Internal**, **Unknown** (the default) | Where an attack gets in. Exploiting a public service needs an internet-facing asset; phishing, drive-by compromise and stolen credentials do not look at exposure. Past the door, each step weighs an asset by its exposure, 1 internet-facing and 0.4 internal, mixed with its criticality. It also sets how reachable the findings on the asset are | | **Criticality** | **Very High**, **High**, **Medium**, **Low**, **Unknown** (the default) | How much an asset weighs once the attacker is inside and moves toward the target: 1 for **Very High**, 0.9, 0.7 and 0.4 below, mixed with its exposure, and counting more the deeper the step. It measures the blast radius of the asset, not its business value, which the primary assets carry. It also raises the score of the findings on the asset | An asset left on **Unknown** is priced as the tenant setting says: **Internal** exposure and **Low** criticality by default, under **Settings > Engine > CRQ Indicators** (**Unknown exposure** and **Unknown criticality**). An unknown left on a server that faces the internet prices it as internal: set the fields you know. ## Declare a supporting asset {#declare-a-supporting-asset} 1. Go to **Assets**. The card above the list counts the assets of each category, the largest first, and the list shows each asset with its **Exposure**, **Criticality**, **Category TTPs** and **Findings**. On a short screen, the card shows its first three categories, and **Show all categories** opens the rest. Inside a risk scope, the card also sets the scope's [declared estate](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/#the-declared-estate) beside what is measured, and **Estimate my estate** (**Review my estimate** once the scope has one) leads to the risk scope to answer it. ![The Assets list of Grand Meridian Hotels: six assets, from the internet-facing booking web application and VPN gateway to the internal database server, workstations, night.audit account and Spanish payment terminals, each with its exposure and criticality.](https://filigran.io/docs/shots/8e5428138547e7f17b6f1d214397f37980c589be9e2f82657631390783778acd.webp) 2. Select **Create**. The **Create a new supporting asset** panel opens. 3. Enter the **Name** and, optionally, an **Owner** and a **Description**. 4. Choose the **Exposure**, the **Category** (**Host** by default) and the **Criticality**. Each category in the list says what it covers. 5. Choose a **Subcategory**, described in the list too, then fill the fields the category adds: a host takes a **Hostname**, a **Seen IP**, its **IP addresses**, a **Platform** and an **Operating system**; a web application takes its **URL**; an identity takes its **User principal name** and **Account name**. 6. Add **Your tags** if you sort your estate by tag, then select **Create**. ![The Create a new supporting asset panel, with Exposure on Unknown, Category on Host and Criticality on Unknown, then the Subcategory and the first host fields, Hostname and Seen IP.](https://filigran.io/docs/shots/a5a89968e98c18a228f91541b5ec21703d90a4bee30134c3217cf59ab6d3451b.webp) The asset opens on its **Overview**. Every value you set by hand carries the **Set by user** mark. When you create the asset from a risk scope's **Assets** page and that scope is measured over **Mapped assets only**, the asset is mapped into it too. ## Correct an imported asset {#correct-an-imported-asset} An integration sets the fields of the assets it imports, and updates them at each synchronization. To correct one, open the asset and select **Edit**: the value you set wins over the integration's and carries the **Set by user** mark, synchronization after synchronization. Each field's **What it means and how it is computed** button tells which rule or source the value comes from. To hand the asset back to its integrations, select **Resync with connectors** beside **Edit**, then **Resync**. The button shows only when a value was set by hand and an integration still observes the asset. Every field value you set by hand goes back to what the integrations report, and the next synchronization can update it again. Tags you added by hand stay. Which source's value an asset shows when several report it, and when two reports become one asset, is in [How OpenCRQ merges an asset several sources report](https://filigran.io/docs/opencrq/concepts/asset-consolidation/). ## Find the assets of a group {#find-the-assets-of-a-group} An asset group is a named set of assets, such as the servers of the head office. OpenCRQ does not create groups from its own screens: they come from your other tools. - **The OpenAEV connector** mirrors the asset groups of OpenAEV when OpenAEV serves its snapshot export: once a day, as it reads OpenAEV's inventory, with their static members and the members a dynamic group's filter finds at that moment. A member OpenCRQ did not import is left out. A group deleted in OpenAEV is deleted in OpenCRQ once every OpenAEV tenant has answered that read, so an OpenAEV outage never empties your groups. See [Read the snapshot export of OpenAEV](https://filigran.io/docs/opencrq/use/sources/openaev/#read-the-snapshot-export-of-openaev). - **XTM One, or a script**, puts an asset in groups by name when it writes the asset through OpenCRQ's API, and creates a group that does not exist yet. Each source keeps its own memberships: a sync replaces only the members its connector added, never those XTM One or a person added. 1. Go to **Assets**. The **Groups** column shows the groups of each asset on one line, with **+N** for the rest. 2. Open the **Group** filter, shown beside **Source** and **Category** once the tenant has groups, and choose a group: each one shows its number of assets. The filter then reads the group's name, such as **Group: Hotel front desks**. **All groups** shows the whole list again. ![The Assets list of Grand Meridian Hotels filtered on the Hotel front desks group: the front-desk workstations, the night.audit account and the Spanish payment terminals, each with Hotel front desks in its Groups column.](https://filigran.io/docs/shots/9b933028ff42f0e75b03f05f029ee2065a59a3dccec9d76d834e46911d6de428.webp) The group filter combines with the search and the other filters: **Source** keeps the assets one integration observed, or, with **Set by user**, those declared by hand; **Category** keeps one category, or, under **Match**, every category **Except** that one. The count of active filters shows after them, with **Clear all** to lift every filter and the search at once. When nothing matches, the list reads **No results**, with **Clear filters**. The filters stay in the page's address, so you can share the filtered list. **Example: Review the front desks before the awareness campaign** Grand Meridian's risk manager prepares the front desks' training budget. In **Assets**, she opens the **Group** filter and chooses **Hotel front desks (3)**. The list shows three assets: the Front-desk workstations, the night.audit account and the Front-desk payment terminals of Spain. Two of them have a **Criticality** of **High**: those are the assets she names in the training request. ## Link the asset to what it supports {#link-the-asset-to-what-it-supports} A primary asset is lost through the supporting assets that carry it. The links say which ones, and with which role. 1. Open the asset and its **Business dependencies** tab. The graph shows the primary assets the asset supports, the assets it depends on and those it serves, with counters of the critical, exposed and unowned assets in the chain. 2. Select **Manage**. The **Manage dependencies of supporting asset** panel opens on **Depends on**, beside **Primary assets** and **Provides to**, each tab with its count of links. 3. Open **Primary assets** and pick one or more roles for each primary asset the asset serves, such as **Stores**, **Processes**, **Reads / renders** or **Performs / executes**. Removing the last role unlinks the primary asset. 4. In **Depends on**, check the assets this one runs on; in **Provides to**, the assets that run on it. Search by name, or filter by **Category** and **Source**: linked assets come first. 5. Select the save button, which counts your changes, such as **Save 3 changes**. ![The Business dependencies graph of booking.grand-meridian.example, Very High and Internet Facing with 45 category TTPs, counting 2 supporting assets, 2 critical and 1 exposed: the web application performs the online booking platform and processes the guest records, depends on the booking database server, and faces the internet.](https://filigran.io/docs/shots/57ed53b3c54a587b79b027951f5a5df97cbc057572ae72a0fd85ff1c24775504.webp) Each role passes some security criteria of the primary asset to the supporting asset; [Links and their roles](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/#links-and-their-roles) gives the table. A scenario reads the links two ways. At initial access, the run tells apart the assets linked to the scenario's primary assets from the rest of the estate. And the **Targets** tab of the scenario ranks the supporting assets by the share of its loss each one carries, a share halved at each dependency step. ## See the asset in OpenCTI and OpenAEV {#see-the-asset-in-opencti-and-openaev} An asset with a **Hostname** is the same machine in OpenCTI, as a System, and in OpenAEV, as an asset. The asset's header always shows two emblems beside **Edit**, OpenCTI then OpenAEV. An asset imported from one of them is found there from its import. Otherwise, OpenCRQ looks for its hostname with your own rights: the module answers as your account there, the one with your email address, so a machine you cannot see in it is not found. Hover an emblem, or move to it with the keyboard, to read what it stands for: - In colour, the module holds the machine: the emblem opens it there, in a new tab. Its hint gives the module, the type and name of the machine there, the key facts the module returns about it, and what you find there: "See the reports, relationships and context of this object in OpenCTI." or "See the simulations and findings of this object in OpenAEV." - Greyed, the module does not hold it: the hint reads **Not found in OpenCTI** or **Not found in OpenAEV**, then "It appears here once OpenCTI holds a machine with the same hostname." An asset with no hostname is found only in the module it came from. While OpenCRQ looks, the hint reads **Looking in OpenAEV…**; when the module does not answer, **OpenAEV could not be reached** and "Try again later." - Greyed, the tenant is not connected to the module: the hint reads **OpenCTI is not connected** or **OpenAEV is not connected**, with the fields the module would show, as examples. With **Manage Security**, the emblem opens the connector's page in **Integrations**; without it, the hint says "Ask an administrator to connect OpenCTI." See [Connect OpenCTI with a Live Stream](https://filigran.io/docs/opencrq/use/sources/opencti/) and [Import OpenAEV results](https://filigran.io/docs/opencrq/use/sources/openaev/). ## Read access relations and events {#read-access-relations-and-events} **Access relations** shows the relations that integrations observe between the asset and other assets of the inventory: people do not set them. The tab opens on a graph. Its list view, like the **Relations** card of the **Overview**, groups them by kind, each with the integration that reported it and the date it was last seen. - Who uses which device: the user accounts that are the primary users of a device, as Microsoft Entra ID and Intune report them, under **Assigned devices** and **Assigned to**. The attack run reads them for phishing: a flaw on a device nobody uses opens nothing. - Where an attack goes next: the attack paths of the OpenAEV simulations, from one asset of the inventory to the next, under **Leads to** and **Reached from**, and as **attack path** in the graph's legend. A step reads **OpenAEV, proven by a test** when an execution got through, and **OpenAEV, inferred** when OpenAEV drew it and no execution has proved it yet. A step that OpenAEV prevented is left out. The [OpenAEV connector](https://filigran.io/docs/opencrq/use/sources/openaev/) never deletes a step OpenAEV stops showing, so a purged simulation or an outage erases nothing: the date says how fresh it is. It imports attack paths only when OpenAEV serves its [snapshot export](https://filigran.io/docs/opencrq/use/sources/openaev/#read-the-snapshot-export-of-openaev). The price does not read attack paths. Without such an integration, the tab says that no access relation is known, and the **Overview** has no **Relations** card. Two other tabs say how the asset's findings moved and which controls cover it: - **Events** is the history of the asset's **OpenCRQ Posture**, the score out of 100 its findings give it: 75 and above is **Strong**, then **Moderate**, **Weak** and **Critical** below 25. Each line says what moved it, such as a new worst finding or a finding resolved. An asset without findings has no posture, and the tab reads **No history yet.** See [Review the findings on your assets](https://filigran.io/docs/opencrq/use/attack-surface/findings/). - **Protected by** lists the controls that cover the asset's category, with the posture each one has in your risk scopes. See [Set how strong your controls are and read how they held](https://filigran.io/docs/opencrq/use/defenses/controls/). > **With XTM One: XTM One follows the attack paths from an asset** > > XTM One reads through OpenCRQ how far an attack can go from an asset, the blast radius of a CTEM case: the assets the OpenAEV attack paths reach from it, step after step up to five steps, each step proven or inferred with the simulation that showed it, and the primary assets that depend on the assets reached. A weakness on an asset nothing depends on then still counts for the primary assets it opens the way to. A step OpenAEV has not reported for 30 days no longer counts. XTM One reads as the person it works for: an asset that person cannot read in OpenCRQ stops the path there and is never named. **Example: The booking web application of Grand Meridian France** Grand Meridian Hotels declares the estate behind its booking platform by hand, from **Assets** with **Create**: - **Name** booking.grand-meridian.example, **Exposure** **Internet Facing**, **Category** **Web application**, **Subcategory** **Website**, **Criticality** **Very High**, and its URL https://booking.grand-meridian.example. - **Name** Booking database server, **Exposure** **Internal**, **Category** **Host**, **Subcategory** **Server**, **Criticality** **Very High**. - **Name** Head-office VPN gateway, **Exposure** **Internet Facing**, **Category** **Network device**, **Subcategory** **VPN gateway**, **Criticality** **High**. Then, on the web application's **Business dependencies** tab, **Manage**: in **Primary assets**, **Performs / executes** for the Online booking platform and **Processes** for the Guest records; in **Depends on**, the Booking database server. The list now reads 6 assets, two of them internet-facing: the web application and the VPN gateway are where an attack exploiting a public service gets in. The web application carries 45 **Category TTPs**, the server 537: a host is open to far more techniques than a website. ## Check that it works {#check-that-it-works} - The asset shows in **Assets** with the exposure and criticality you set, and the **Set by user** mark on each value you set. - Its **Business dependencies** graph shows the primary assets it supports. - OpenCRQ prices the tenant's scenarios again when what they read changes, and once a day: the **CRQ** tab of a scenario dates its latest run. ## What's next {#what-s-next} - [Review the findings on your assets](https://filigran.io/docs/opencrq/use/attack-surface/findings/), the flaws an integration found on them. - [Set how strong your controls are and read how they held](https://filigran.io/docs/opencrq/use/defenses/controls/) on the estate. - [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/) on the primary assets they carry. - [Import assets from Microsoft Defender](https://filigran.io/docs/opencrq/use/sources/microsoft-defender/) and [Import OpenAEV results](https://filigran.io/docs/opencrq/use/sources/openaev/). --- # Review the findings on your assets > See the vulnerabilities and failed tests your integrations report on your assets, read how each one is scored, and set aside the ones you accept or that are not true. - URL: https://filigran.io/docs/opencrq/use/attack-surface/findings/ - Products: OpenAEV 3.261118.0, OpenCRQ 0.261123.0 - For: risk managers, security validation engineers - Type: How-to guide A **finding** is a flaw an integration reports on one of your supporting assets: a known vulnerability (a CVE) on a server, or an attack technique that an OpenAEV simulation ran on a workstation without a security tool preventing or detecting it. OpenCRQ scores each vulnerability from 0 to 100, from how reachable it is, how actively it is exploited and what it would damage, and the attack run uses the open ones as doors into your estate. This page reads the findings, explains their score, and sets aside the ones you accept or that are not true. Read [Build the attack surface from your assets](https://filigran.io/docs/opencrq/use/attack-surface/assets/) first if your estate is not declared yet. ## Before you start {#before-you-start} - You are a member of the tenant: every member can read findings, attach a CVE and set one aside. A service account cannot change a finding's state. - A finding on a marked asset shows only to the members whose groups are cleared for all of the asset's markings. An unmarked finding shows to every member. An administrator sets the clearance: see [Give people access with users, groups and roles](https://filigran.io/docs/opencrq/administer/users-and-roles/). - At least one integration brings findings in, connected by an administrator with **Manage Security**: - [OpenAEV](https://filigran.io/docs/opencrq/use/sources/openaev/): the CVEs it found on each asset, and the result of each simulated technique, per security platform. - [Microsoft Defender](https://filigran.io/docs/opencrq/use/sources/microsoft-defender/): the CVEs on each device. - For the scores, the [CVE sources](https://filigran.io/docs/opencrq/use/sources/vulnerability-sources/) give each CVE its CVSS vector (NIST), its exploitation probability (FIRST EPSS) and whether it is known to be exploited (CISA KEV). The tenant's threats, such as those OpenCTI streams, tell which CVEs they cite. ## Where findings come from {#where-findings-come-from} | Kind | **Type** in the list | From | Scored | | --- | --- | --- | --- | | A CVE on an asset | **Vulnerability** | OpenAEV, Microsoft Defender, or attached by hand | Yes, from 0 to 100 | | A technique a simulation ran on an asset, not stopped | **Control Response: Detection**, **Control Response: Prevention** | OpenAEV | No: it measures your controls instead | A finding is one flaw on one asset. When two integrations report the same CVE on the same asset, it stays one finding with two sources. A technique finding has no score and no history: its verdict counts in the success rate of the controls that should have stopped it. See [Set how strong your controls are and read how they held](https://filigran.io/docs/opencrq/use/defenses/controls/). ## Read the findings {#read-the-findings} 1. Go to **Findings**. The cards count the **Findings**, the **Impacted assets**, those **New, last 7 days**, and the findings in each band: **Critical**, **High**, **Medium**, **Low**. **Pending vector** counts the vulnerabilities whose CVE has no CVSS vector yet: they have no score and sit in no band. ![The All findings tab of Grand Meridian Hotels: one applicable finding, CVE-2024-3400 on the head-office VPN gateway, counted under Pending vector rather than in a band, its score pending.](https://filigran.io/docs/shots/5fc64f706c5c497c38b0424451dd98ad84c0afa3f3ebfa82791b669162eb6115.webp) 2. Stay on **All findings** to see one line per asset and flaw, sorted by **Score**, the worst first. **Search findings...** keeps the findings whose CVE identifier or title, technique identifier or name, or asset name holds what you type, such as `CVE-2024-3400` or `VPN`; when none does, the list reads **No finding matches this search.** **Filter by state** shows the **Applicable** findings by default; choose **Set aside, no longer reported or not exposed** or **All states** to see the others. **Filter by source** keeps one integration, or **Set by user** for the CVEs attached by hand. 3. Open **Unique findings** to see one line per flaw across the estate: a CVE with its **Worst finding**, its **Affected assets** and its **KEV / EPSS** reading. Its **Score** is the worst asset's score, raised when the CVE reaches other assets at a close level, and capped at 100. **Search findings...** works here too, on the CVE or the technique only. Select a CVE to open its page across the estate, with the tabs **Overview**, **Assets**, **Attack**, **Remediation** and **Events**. 4. Select a finding to open it. A vulnerability opens on **Overview**, with the tabs **Score**, **Attack**, **Controls**, **Remediation**, **Activity** and **Events**. ## See the CVE in OpenCTI and OpenAEV {#see-the-cve-in-opencti-and-openaev} OpenCRQ shows where the same CVE lives in OpenCTI and OpenAEV, matched by its identifier: - On the CVE's page, the header always holds two emblems, OpenCTI then OpenAEV. When the module holds the CVE, its emblem is in colour, and selecting it opens the vulnerability there in a new tab. Hover over it to preview what you will find: the module, the object's type and name, and the facts the module returns, such as its **Findings**, **Affected assets**, **Simulations**, **Last simulation**, **Reports** or **Relationships**. - In **Unique findings**, a module mark beside a CVE's identifier shows only when that module holds the CVE. It opens the vulnerability there, with the same preview on hover. ![The page of CVE-2024-3400 across the estate of Grand Meridian Hotels, with the OpenCTI and OpenAEV emblems in its header, the OpenCTI one in colour because OpenCTI holds the Vulnerability CVE-2024-3400.](https://filigran.io/docs/shots/6a5f1b4d30674399b3e5b33a14ddf000ae867747594a126eb3e815649790fb3e.webp) A greyed emblem opens nothing; hover over it to read why: - **Not found in OpenCTI** or **Not found in OpenAEV**: the module is connected but does not hold this CVE yet. The emblem turns active once it does. - **OpenCTI is not connected** or **OpenAEV is not connected**: the tenant's connector is not set. With **Manage Security**, the emblem opens the connector's page, and its preview ends with **Connect OpenCTI** or **Connect OpenAEV**. Without it, the preview reads **Ask an administrator to connect OpenCTI.** (or OpenAEV). - **OpenCTI could not be reached** or **OpenAEV could not be reached**: try again later. An administrator sets the connectors: see [Connect OpenCTI with a Live Stream](https://filigran.io/docs/opencrq/use/sources/opencti/) and [Import OpenAEV results](https://filigran.io/docs/opencrq/use/sources/openaev/). ## Read how a finding weighs {#read-how-a-finding-weighs} The **Score** tab breaks the score in two parts, each out of 100, and the score is their geometric mean. - **Exploitability** is how likely the flaw gets used. It averages two factors and multiplies the result by the controls the attack meets on the way: - **Reachability**: the asset's exposure (internet-facing weighs 1, internal 0.4, as an administrator with **Manage Security** sets them under **Settings > Engine > CRQ Indicators**) times how the CVSS vector says the flaw is reached. - **Threat intelligence**: each signal sets a floor, and the highest wins. A listing in CISA KEV sets 0.9; a threat of the tenant that cites the CVE and is active, observed in the last 90 days, sets 0.35; the EPSS probability sets its own value. When two or more of these signals speak, the factor rises a third of the way toward 1. A high attack complexity in the CVSS vector then scales it down to about 57%, and on CVSS 4.0, present attack requirements scale it down again. It never falls below 0.05. - **Controls**: the posture of the controls that prevent or detect the techniques exploiting the flaw. The weakest path decides. - **Impact** is what the flaw would damage: the asset's criticality times the CVSS impact, reduced by the controls that stand on the impact techniques. The bands follow the score: **Critical** from 90, **High** from 70, **Medium** from 40, **Low** below. They are not the CVSS severity: a critical CVSS on an internal, low-criticality asset behind strong controls scores lower than a high one on the internet-facing booking site. The finding score helps you choose what to fix first; it is not the price. The attack run does not read the score: it reads each applicable vulnerability as an opening into the asset, with its threat, and walks the paths from there. A finding you set aside is no longer an opening. See [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/). The other tabs explain the score's inputs: - **Attack** lists the **Threats citing this CVE**, each linking to its page in OpenCRQ's threat center, and the ATT&CK techniques that exploit it. When OpenCTI is connected, the card's link **Open CVE-2024-3400 in OpenCTI**, for example, opens the vulnerability there. Each threat's badge says how long ago it was last observed: red under 14 days, yellow under 90 days, blue beyond, and **Not dated** when no source dated it. Only a threat observed in the last 90 days counts as active. - **Controls** lists the **Controls standing on this finding**. - **Remediation** shows what the vendor published. When the CVE is in the CISA KEV catalog, a banner gives the action CISA requires and its deadline, as CISA published them. - **Activity** shows the finding's state over time and its sources; **Events** the history of its score. OpenCRQ keeps a year of score history: each `finding-score-recompute` run deletes the changes of score older than 365 days, except the one still in force a year ago, so a score that has not moved for a year keeps its line. A platform engineer changes the period with `RECOMPUTE__SCORE_HISTORY_RETENTION_DAYS`. ## Attach a CVE by hand {#attach-a-cve-by-hand} When you know of a vulnerability no integration reports: 1. Open the asset from **Assets**, then its **Findings** tab. 2. Select **Create**. The **Attach a CVE** panel opens. 3. In **CVE ID**, which starts with `CVE-`, type the rest of the identifier from its start, such as `2024-3400`, and pick the CVE from the list. The list shows the first 20 matches, only CVEs the tenant already knows, from its CVE sources or from its threats, and not those already on the asset. 4. Select **Create**. The finding is marked **Set by user** as its source. Only a finding attached by hand can be deleted: on its page, open **More actions**, the ⋮ menu beside **Set aside** or **Mark applicable**, and select **Delete**. One an integration reports comes back at its next synchronization. ## Set a finding aside {#set-a-finding-aside} A finding you accept or that is not true should not count in your risk. Setting it aside takes it out of the counters, the unique findings, the asset's posture and the attack run, and keeps the decision on record. 1. Open the finding and select **Set aside**. 2. Choose the **Type**: - **Risk accepted**: the flaw is real and you live with it. Its **Reason** is one of **Won't fix**, **Patch unavailable**, **Downtime not permitted**, **Application incompatibility**, **Compensatory control applied**, **Technical debt or end of life**, **Not externally exposed**, **Business exception**, **Vendor dependency** or **Other**. - **False positive**: the flaw is not true here, and the integration needs fixing. Its **Reason** is **Detection error**, **Not applicable** or **Other**. 3. Write the **Rationale**, up to 2,000 characters, for whoever reviews the decision next. 4. Select **Set aside**. The finding leaves the default list; choose **All states** to find it again. Your decision stands over the integrations' reports. To undo it, select **Mark applicable**. When an integration still reports the finding, **Resync with connector** hands the state back to it: its next synchronization decides again. An integration sets a finding aside on its own when it no longer reports it (**No longer reported**), or when a test finds the technique cannot reach the asset (**Not exposed**). There is no "remediated" state: a fixed vulnerability is one no integration reports any more. **Example: CVE-2024-3400 on the head-office VPN gateway** OpenCTI streams Ember Tide as a threat to Grand Meridian: it targets CVE-2024-3400, the flaw it enters hotel chains through. The risk manager of Grand Meridian France attaches it to the Head-office VPN gateway, which is internet-facing and **High** in criticality: on the gateway's **Findings** tab, **Create**, then **CVE ID** CVE-2024-3400. On 12 April the finding is **Applicable**, with **Set by user** as its source, but it has no score: the tenant's CVE sources have not given CVE-2024-3400 a CVSS vector yet (**CVSS base** reads **Not scored**, **EPSS** **Unknown**, **CISA KEV** **Not listed**), so it counts under **Pending vector**. Its **Attack** tab lists the two **Threats citing this CVE**: Ember Tide, last observed on 8 April through Operation Low Season, in red, and Velvet Harbor, last observed on 9 January, more than 90 days ago, in blue. Ember Tide is active, so its citation will weigh in the threat factor, but only once the finding has a score. Without a vector the attack run has no opening to read for it either, and the scenario prices of 12 April did not move. Once the NIST source scores the CVE, the finding gets its score and becomes a door into the gateway, until the risk manager deletes it once the gateway is patched, or sets it aside with a **Rationale** the auditors can read. ## Check that it works {#check-that-it-works} - In **Findings**, the counters and the list show the findings of every integration, with **Set by user** for the ones you attached. - A finding you set aside shows under **Set aside, no longer reported or not exposed**, and the decision in the **History** of its **Activity** tab. - The asset's **Events** tab shows the change of its **OpenCRQ Posture**. ## What's next {#what-s-next} - [Set how strong your controls are and read how they held](https://filigran.io/docs/opencrq/use/defenses/controls/): the technique findings measure them. - [Follow the threats that target your scopes](https://filigran.io/docs/opencrq/use/threats/threat-center/), whose citations raise a finding's score. - [Import OpenAEV results](https://filigran.io/docs/opencrq/use/sources/openaev/). --- # Review a year's security budget against the loss it avoided > Enter a fiscal year's security spend in an OpenCRQ budget review, and read the annual loss each line avoided, its return and the risk tolerance it kept. - URL: https://filigran.io/docs/opencrq/use/decide/budget-reviews/ - Products: OpenCRQ 0.261123.0 - For: risk managers, CISOs and executives - Type: How-to guide A budget review sets twelve months of security spend for one risk scope against the annual loss it avoided. You enter what the budget paid for, line by line, and OpenCRQ prices each line, the projects and the standing costs, and the whole, on the latest simulation of the scope's scenarios. The page then answers a board's questions in order: what was funded, what it returned, and whether the scope stayed within its risk tolerance. If you are new to how OpenCRQ prices a scenario, read [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/) first. ## Before you start {#before-you-start} - Any member of the tenant can create, edit, close and delete budget reviews: no capability is needed. - The risk scope has scenarios that OpenCRQ has priced: a review is read against them. See [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/). - The scope's controls are declared, and their changes during the period are declared on the day they happened. OpenCRQ reads the posture of each control at the start and at the end of the period from that record. See [Set how strong your controls are and read how they held](https://filigran.io/docs/opencrq/use/defenses/controls/). - To read the third section, the scope or its scenarios have a risk tolerance: an annual loss and the highest probability you accept of exceeding it. - OpenCRQ works in US dollars: enter every spend in dollars, and read every figure in dollars. ## How a line is priced {#how-a-line-is-priced} Every line of a review has a nature, and the nature decides what its loss avoided means. | Nature | What it pays for | Its loss avoided | | --- | --- | --- | | **Build** | A project: controls deployed, strengthened or extended during the period | The annual loss the period's posture changes of its controls removed: the scope priced with those controls set back to their posture at the start of the fiscal year, minus the scope priced as they stand | | **Run** | A standing cost: licences, a team, a managed service that keeps controls running | The annual loss its controls protect against: the scope priced with those controls absent, minus the scope priced with them at the level they held at the start of the fiscal year | The posture the review reads as "as they stand" is today's while the period runs, the period's end once it is over, and the closing day for a review closed before its end. Every figure is priced on the same draws of the uncertain inputs, so the difference between two postures is not blurred by chance. Each figure has a return, computed the same way as a [treatment plan's](https://filigran.io/docs/opencrq/use/decide/treatment-plans/#how-a-plan-is-priced): > Return = (Loss avoided per year − Spent) / Spent - **Prudent (p10)** gives the same return with a cautious loss avoided: for each scenario, the loss avoided that nine draws of the uncertain inputs in ten exceed, added up over the scope's scenarios. - A build line can be **Amortized over (years)**. Its return is then also read against what the work costs a year: the spend divided by the years, shown as **amortized** under the return. The **Build** and **Run** rows of the review price their lines together, and **Overall** prices everything the review funds as one basket. None of them is the sum of the lines below it: controls that cover the same techniques return less together than one by one, and removing controls together costs more than removing them one by one. Over a scope with several scenarios, the p10 to p90 band of a figure adds up each scenario's own band, as if the scenarios moved together. The band is wider than the true band of the total, and the prudent return more cautious. They are exact for a scope with one scenario. Every simulation of one of the scope's scenarios prices the scope's open reviews too, except the background pass that reprices the scenarios whose inputs changed. After that pass, the review names the scenarios that changed since it was priced, and **Re-simulate scenarios** brings it up to date. ## Create a review {#create-a-review} 1. Open **Budget Reviews** in the sidebar, or **Budget Reviews** under a risk scope, then click **Create**. The **Create a budget review** drawer opens. 2. From the list of every scope, choose the **Risk scope**. The scope cannot change afterwards: every figure is priced for it. 3. Set the **Fiscal year start** (a month) and the **Year**. The period runs twelve months from the first day of that month. The year can be this one or one of the four before, and the months not yet started are not offered. 4. Keep or change the **Name**. It follows the period, **Fiscal year 2026** or **Fiscal year 2026-2027**, until you type your own. 5. Choose the **Owner** and write the **Context**: the budget granted, the fiscal year's trade-offs, who the review is presented to. 6. Click **Create**. The review opens, **Open**, with no budget line. > **Tip** > > Choose a period that starts after your controls were first declared in OpenCRQ. A control first declared during the period counts as moved from **Not deployed**: a build line holding it would claim the whole control as the year's work. The review warns when its period starts before the scope's posture record: **Posture changes are recorded only since** that date. ## Enter what the budget paid for {#enter-what-the-budget-paid-for} The **What was funded** section lists the lines and their total. **Add a line** opens the **Add a budget line** drawer. ![The Add a budget line drawer, with the Name, the Build and Run cards of the Nature, the Spent over the period and Amortized over (years) fields, and the one control that moved from Feb 1, 2026 to Apr 12, 2026, the Identity Platform, already held by the line MFA for the front-desk accounts.](https://filigran.io/docs/shots/ca3a2ee8c2e5149306db12a90383901edb19b285cd87b1113aed2976d2eaa3ce.webp) 1. Enter the **Name** of the line, the project or the cost as your budget names it. 2. Choose its **Nature**: **Build** or **Run**. 3. Enter what it cost in **Spent over the period**. It is required. 4. For a build line, keep or change **Amortized over (years)**, from 1 to 10. It starts at 3. Clear it to read the full spend against one year. 5. Choose its controls: - **Build**: the list shows the scope's **Controls that moved** during the period, each with its posture at the start and now. Select the ones the project moved. A control moves in one build line at most: one already held by another line shows **In** and that line's name. - **Run**: search the scope's controls in **Add a control**. Each one shows the posture it held at the start of the period, the level the line is priced at. 6. Click **Create**. When controls moved during the period and no build line holds them, the section says how many, with an **Assign** button that opens a new build line. A review with every move assigned tells the board where all the work of the year went. Adding or deleting a line, or changing a line's nature or controls, dates the review's figures: they show **Expired**, or **Not priced** for a line or a review never priced yet, until the scenarios are simulated again. Click **Re-simulate scenarios** in the **What it returned** section. Renaming a line or correcting its spend or amortization needs no simulation. Next to the lines, **Spend by NIST CSF function** draws the spend on the six functions of the National Institute of Standards and Technology (NIST) Cybersecurity Framework (CSF) 2.0. A line counts in every function its controls map to, so the amounts do not add up to the review's spend. ## Read what the spend returned {#read-what-the-spend-returned} ![The budget review Security budget 2026 of Grand Meridian France, with its Identity card, the In brief card stating $225K spent, $528K of loss avoided per year, of which $78K by the build work, and 0 of 2 scenarios outside tolerance, and the What was funded section.](https://filigran.io/docs/shots/0051369212072c2f071a320cd0c22b3376a758141c83e56008803155bf685d6a.webp) The top of the review answers in one sentence: **From** the period's start **to** its end, the scope spent this much, and the build work removed this much annual loss and brought this many scenarios back within tolerance. Beside it, **In brief** gives the three figures: **Spent**, **Loss avoided per year** (the **Overall** figure, with the part of the build work below it) and the scenarios outside tolerance. The **What it returned** section is a table read left to right: **Spent**, then **Loss avoided per year** with its p10 to p90 band (added up over the scenarios, as [How a line is priced](#how-a-line-is-priced) explains), then **Return** with its prudent and amortized readings, for the **Build**, **Run** and **Overall** rows. Each line also shows its own chain of figures in **What was funded**. ![The What it returned table of a budget review: Build, $85K spent for $78K of loss avoided per year, a -8.5% return; Run, $140K for $265K, +89.6%; and Overall, $225K for $528K, +134.6%, each with its band and its prudent reading.](https://filigran.io/docs/shots/7948a0385855b2fd099ff59c7585ddfc7c764ea6cb9d9a3f36c0804fbdeb2134.webp) Under it, **Risk over the period** draws the scope's **Simulated ALE** day by day. With a build line, a second curve, **Without the period's work**, shows what the Annualized Loss Expectancy (ALE) would have been without the build work done by each day, and the gap between the two is the **Build work of the period**. Past threats and loss estimates are not kept, only postures: every day is priced on the latest simulation's model, so the curve is an approximation, and it says so. ## Check the risk tolerance {#check-the-risk-tolerance} The **Are we within our risk tolerance?** section reads, for each scenario, the probability that a year's loss exceeds its tolerance amount: - **Outside tolerance today**: the scenarios whose probability exceeds what their tolerance accepts, at the review's posture. Once the period is over, it reads **Outside tolerance at the fiscal year end**, and on a review closed before its end, **Outside tolerance at closing**. - **Outside tolerance without the period's build work**: the same, with the build lines' controls set back to the start of the fiscal year. - **Brought back within tolerance by the build work**: the difference, the argument a board remembers. The table gives each scenario's **Threshold**, its own or else its scope's, then both probabilities. Expand a row to see its loss exceedance curve. A tolerance applies to each scenario on its own, never to the sum of the scope's scenarios. When the scope has none, **Set a risk tolerance** opens the scope's tolerance. ## Close the review {#close-the-review} When the fiscal year is presented, close the review to keep its figures as they were shown. 1. Click **Close the review**. The button stays disabled, with a hint, while the review has no line, while a figure is not priced, or while a scenario changed since the review was priced: re-simulate first. 2. Confirm. The figures are frozen at that day: later simulations no longer change them, and the lines can no longer be edited. A closed review shows **Closed** and a **Reopen** button. Reopening drops the frozen figures: the review shows its last figures as **Expired** until you click **Re-simulate scenarios**, which prices it on today's model. The new figures may differ from the ones presented. To delete a review, its lines and its figures, use **Delete** in the menu of its page or of its row in the list. ## Compare the years {#compare-the-years} The list of reviews shows each review's **Status**, **Period**, **Owner**, **Spent**, **Loss avoided** and **Return**. Above it, four counters read the latest review: - **Outside tolerance**: the scope's scenarios outside their tolerance, on each scenario's latest simulation. - **Loss avoided per year**: the latest review's **Overall** figure, with its band and, when an earlier review exists, the change since it. - **Build return**: the return of the build work alone, with its prudent reading. The run spending is left out: its return is measured against removing every existing control. - **Spent**: the latest review's total, with the part of build work. The list of every scope sums the loss avoided of the latest review of each scope, without a band, since the bands of several scopes do not add up. **Example: Present Grand Meridian France's security budget for 2026** Grand Meridian France declared its controls on 12 January 2026, and its fiscal year starts on 1 February. On 2 March, once MFA covers every front-desk account, the risk manager opens the review for the year. In **Budget Reviews**, **Create**: - **Risk scope**: Grand Meridian France - **Name**: Security budget 2026 - **Fiscal year start**: February; **Year**: 2026 - **Context**: The spend of 2026 against the annual loss it avoids. Then two lines: | Field | Build line | Run line | | --- | --- | --- | | **Name** | MFA for the front-desk accounts | Endpoint and email security licences | | **Nature** | **Build** | **Run** | | **Spent over the period** | 85,000 | 140,000 | | **Amortized over (years)** | 3 | | | Controls | IDP Identity Platform (IdP, SSO, MFA, Conditional Access) | EDR Endpoint Detection and Response, SEG Email Security | **Re-simulate scenarios**, then read the review. On 12 April, **In brief** says the scope spent $225K, of which $85K build and $140K run, and that the build work removes $78K of annual loss. In **What it returned**: | Row | Spent | Loss avoided per year | Return | | --- | --- | --- | --- | | **Build** | $85K, $28K a year amortized | $78K | −8.5%, amortized +174.5% | | **Run** | $140K | $265K | +89.6% | | **Overall** | $225K | $528K | +134.6% | The MFA project does not pay for itself in one year, but it does over the three years it is amortized on. The **Overall** figure, $528K, is more than the build and run figures together, $343K: removing the controls together costs more than removing them one by one. The scope's tolerance is an annual loss of $2.0M exceeded with a probability of 10% at most: **Outside tolerance today** reads 0 of 2 scenarios, and 0 without the period's build work, so Data Breach on Guest Records and Ransomware on the Booking Platform are both **Within tolerance**, with or without the build work. ## What's next {#what-s-next} - [Choose the treatment plan that removes the most loss](https://filigran.io/docs/opencrq/use/decide/treatment-plans/), to choose next year's build work. - [Track cyber risk in money with dashboards](https://filigran.io/docs/opencrq/use/decide/dashboards/), for the trends of the year. - [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/), for the model behind every figure. --- # Track cyber risk in money with dashboards > Read OpenCRQ's CISO dashboard and its twelve-month trends, pick the dashboard each person opens on Home, and present the cyber risk of a scope in money. - URL: https://filigran.io/docs/opencrq/use/decide/dashboards/ - Products: OpenCRQ 0.261123.0 - For: risk managers, CISOs and executives - Type: How-to guide OpenCRQ's dashboards put the cyber risk of your organization in money on one screen: the annual loss to expect, how likely a loss is this year, how far each scenario sits from your risk tolerance, and which control would remove the most. Every figure comes from the latest simulation of each risk scenario, so the trends move when OpenCTI reports a new threat or a control changes. This page shows how to read them, how to narrow them to one risk scope, and how to choose the dashboard Home opens on. ## Before you start {#before-you-start} - Every member of the tenant reads the dashboards and chooses their own home dashboard: no capability is needed. - Setting the home dashboard of the whole tenant needs the **Manage Security** capability. - The figures need priced risk scenarios. See [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/). - OpenCRQ works in US dollars: it shows every amount in dollars. ## The dashboards {#the-dashboards} OpenCRQ ships five dashboards. **Dashboards** in the sidebar lists them, with a search field and, in the **Home** column, which one is **My home** and which one is the **Tenant home**. ![The list of dashboards: CISO, Risk treatment, Risk (Sankey), Findings & Assets and Remediation pace, each with its description, the CISO dashboard marked My home and Tenant home.](https://filigran.io/docs/shots/e231e96ce03a52965dcf90410db4cc72254fbb71300437e7b37876f3d2a9e093.webp) | Dashboard | What it answers | | --- | --- | | **CISO** | Aggregate risk, recommendations, top risks and scope inputs. It is the default home dashboard | | **Risk treatment** | Each risk scenario's likelihood, annual loss exposure, loss exceedance curve against its tolerance, and the controls to improve first | | **Risk (Sankey)** | How the annual loss expectancy flows from threat actors to attack outcomes, techniques and loss drivers, and the levers that reduce it | | **Findings & Assets** | The findings backlog, their triage and the exposed estate | | **Remediation pace** | Incoming findings against the team's closing capacity, per severity band, over a **Time window** you choose | Opened from **Home** or **Dashboards**, each dashboard has a **Risk scope** menu at the top right: **All risk scopes** adds up every scope of the tenant, and a scope narrows every figure to it. Under a risk scope in the sidebar, **Overview** opens your home dashboard on that scope, and **Dashboards** lists the five dashboards for it, with no menu: they stay on that scope. ## Read the CISO dashboard {#read-the-ciso-dashboard} The CISO dashboard reads from top to bottom like a board briefing. ![The Aggregate risk group of the CISO dashboard: a Likelihood of 4%, up 3 points, a Loss magnitude of $12.6M, down $28.4M, and an Annual loss exposure of $512K, up $182K, each with its twelve-month curve.](https://filigran.io/docs/shots/f897736a42487559e47e2dc8321db4a017d064175373806123ead90ce2ef63c4.webp) - **Risk scope**: what the figures cover. On **All risk scopes**, the tenant with its count of risk scopes and of risk scenarios; on one scope, its name, country, sector and annual revenue. - **Aggregate risk**: three figures, each with a curve of the last twelve months and its change: - **Likelihood**: the probability of at least one loss event in the year, across the scope's scenarios. - **Loss magnitude**: the annual loss exposure divided by the loss event frequency. It also carries the response cost of the attacks evicted in time, which are not loss events. For the full cost of one loss event, read the **Loss magnitude (LM)** on a scenario's **Overview**. - **Annual loss exposure**: the loss to expect on average over a year, the loss event frequency times the loss magnitude. It is the sum of the scenarios' mean annual loss; no band is given, since adding the scenarios' bands would assume they all have their worst year at once. - **Risk treatment recommendations**: the **Top recommended controls**, the control moves that would remove the most annual loss, one per control, and the **Top recommended findings** to remediate first. Do not add up the **ALE reduction** column: each move is priced as if the others did not happen. **Create a risk treatment plan** starts a plan from here: see [Choose the treatment plan that removes the most loss](https://filigran.io/docs/opencrq/use/decide/treatment-plans/). - **Gap to tolerance**: how far each scenario sits from the risk tolerance applied to it, its own or its scope's. A bar to the right overruns the tolerance by that amount; to the left, it keeps that margin. Scenarios with no tolerance are counted below. When they all belong to one scope, a **Set its risk tolerance** button opens that scope's tolerance. - **Where the risk sits**: the **Riskiest risk scopes**, ranked by annual loss exposure; the **Top risks**, a flow from primary assets to scenarios, attack outcomes and loss categories with each one's share; and the **Worst performing risk scenarios** and **Best performing risk scenarios**, whose likelihood rose or fell most over the last month. - **Threats**, **Attack surface** and **Defenses and compliance**: the tenant's threats, from OpenCTI, **OpenCRQ Default Threats** or a STIX import, the estate and its findings, and how the controls and the compliance assessments stand. The **What it means and how it is computed** button next to a figure or a group gives its definition, its computation and its limits. ## Read a trend {#read-a-trend} The curves are drawn from the daily figures of the last twelve months, each day reading the latest simulation of every scenario on that day. The chip next to each figure is the change from the first day of the curve to today, red when the risk rises and green when it falls. When the scenarios were first priced less than twelve months ago, the curve starts on that day, and the chip's tooltip says **Change since** that month instead of **Change over 12 months**. A step in a curve is a day something changed in the model: a new threat streamed from OpenCTI, a control declared at a new posture, an estimate set by hand. To explain a step to a board, open the scenario that moved: its own history says which input changed. ## Choose the dashboard Home opens on {#choose-the-dashboard-home-opens-on} Each person chooses their own; an administrator chooses the one for everyone who has not. 1. Open your profile: click **Account** in the top bar, then **Profile**. 2. In the **Preferences** card, choose a dashboard in **Home dashboard**. **Tenant home** followed by the tenant's choice in parentheses keeps the tenant's home dashboard, and follows it when it changes. The choice is saved at once, and **Home** opens that dashboard from then on. On a new tenant whose **Get started** wizard is not finished, the first time you open the tenant in a browser, OpenCRQ opens **Get started** instead; **Home** in the sidebar opens your dashboard. See [Set your profile and follow your notifications](https://filigran.io/docs/opencrq/use/profile/). To set the tenant's home dashboard, open **Settings > Parameters** and choose a dashboard in **Home dashboard**: it is shown on Home to every user who has not chosen their own. Without the **Manage Security** capability, the field shows the current choice and cannot be changed. **Example: Show the board how the risk of Grand Meridian Hotels moved since January** On 12 April 2026, the risk manager of Grand Meridian Hotels opens Home, the **CISO** dashboard, on **All risk scopes**, and presents the **Aggregate risk** group: - **Annual loss exposure**: $512K, up $182K since January 2026. - **Likelihood**: 4%, up 3 points. - **Loss magnitude**: $12.6M per loss event, down $28.4M. The **Annual loss exposure** curve tells the story of the quarter: $330K on 12 January, when the scenarios were first priced; a step up on 19 January, once the risk manager set the ransomware frequency from the sector's incident reports, 1 to 10 attempts a year, 3 most likely; a step down on 2 March, when MFA covered every front-desk account; and a rise again on 10 April, when OpenCTI reported Ember Tide's new campaign against hotel chains, to $512K. **Riskiest risk scopes** puts Grand Meridian France first, at $287K, ahead of Grand Meridian Spain at $225K. In **Top risks**, the online booking platform carries $254K, about half of the exposure. Among the **Top recommended controls** is Secure Remote Access (VPN / ZTNA), not deployed at Grand Meridian France yet: it is the control the plan Zero-trust remote access for the hotels, priced on 10 April, moves. ## What's next {#what-s-next} - [Choose the treatment plan that removes the most loss](https://filigran.io/docs/opencrq/use/decide/treatment-plans/), to turn a recommendation into a costed plan. - [Review a year's security budget against the loss it avoided](https://filigran.io/docs/opencrq/use/decide/budget-reviews/), to report what last year's spend bought. - [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/), for the model behind every figure. --- # Choose the treatment plan that removes the most loss > Build a treatment plan of control moves in OpenCRQ, enter what it costs, and read its annual loss reduction and one-year return per scenario. - URL: https://filigran.io/docs/opencrq/use/decide/treatment-plans/ - Products: OpenCRQ 0.261123.0 - For: risk managers, CISOs and executives - Type: How-to guide A treatment plan is the set of controls you would fund for one risk scope, each aimed at a better posture. OpenCRQ prices the scope's risk scenarios again as if the plan were done, so you read the annual loss the plan removes against what it costs, and rank plans by their return before you ask for the money. If you are new to how OpenCRQ prices a scenario, read [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/) first. ## Before you start {#before-you-start} - Any member of the tenant can create, edit and delete treatment plans: no capability is needed. - The risk scope needs complete risk scenarios: a plan is read against the scope's scenarios. Saving the plan prices the ones never simulated. See [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/). - The scope's controls are declared, with their current strength and coverage. See [Set how strong your controls are and read how they held](https://filigran.io/docs/opencrq/use/defenses/controls/). - OpenCRQ works in US dollars: enter every cost in dollars, and read every figure in dollars. ## How a plan is priced {#how-a-plan-is-priced} A plan moves controls of its scope from their current posture to a target, on one or both of two dimensions: | Dimension | Levels, from weakest to strongest | | --- | --- | | **Strength** | **Not deployed**, **Basic**, **Intermediate**, **Master** | | **Coverage** | **None**, **Partial**, **Broad**, **Full** | When you save the plan's moves, OpenCRQ simulates the scope's scenarios twice on the same draws of the uncertain inputs: at the posture the scope holds today, and with the plan's targets in place. A **Stale** or **Not simulated** scenario is priced in the same run. An **Incomplete** scenario, or one with **No mapped asset**, is left out until you complete it. The difference is the scenario's **ALE reduction**, the Annualized Loss Expectancy (ALE) the plan removes. The plan's **Annual ALE reduction** is the sum over the scope's scenarios. What the plan costs comes from two fields you enter: a **One-off cost** and an **Annual recurring cost**. Their sum is the **First-year cost**. The **One-year return** compares the two: > One-year return = (Annual ALE reduction − First-year cost) / First-year cost A plan that removes less loss in a year than it costs in its first year has a negative return. A plan with no cost entered has no return. Two plans that move the same control both claim its reduction. That is why the list never adds plans up: compare them side by side, and build a single plan for the controls you would fund together. Controls that cover the same attack techniques remove less together than the sum of what each removes alone, and the plan's own figure already accounts for that. ## Create a plan {#create-a-plan} You can start a plan from three places: - The list: **Treatment Plans** in the sidebar lists the plans of every scope, with a **Risk scope** filter. The **Treatment Plans** entry under a risk scope lists that scope's plans. - The **Risk treatment recommendations** group of the [CISO dashboard](https://filigran.io/docs/opencrq/use/decide/dashboards/), which lists the control moves worth the most and has a **Create a risk treatment plan** button. - A risk scenario's controls: select the controls in its **How to strengthen your defence** table, then click **Add to a treatment plan**. The drawer adds the moves the scenario priced to an existing plan, or to a **New plan**. From the list: 1. Open **Treatment Plans**, then click **Create**. The **Create a risk treatment plan** drawer opens. 2. From the list of every scope, choose the **Risk scope**. From a scope's own list, the plan belongs to that scope. The scope cannot change afterwards: the plan's figures are priced for it. 3. Enter the **Name** of the plan. It is the only other required field. 4. Choose the **Owner**, the person accountable for delivering it, and the **Start date** and **Due date**. 5. Write the **Rationale**: what the plan sets out to obtain, and why now. It is what a board reads first on the plan's page. 6. Click **Create**. The plan's page opens, as a **Draft**. ## Choose the controls the plan moves {#choose-the-controls-the-plan-moves} 1. On the plan's page, click **Choose the controls** in the **Moves of the plan** card. The edit drawer opens on its **Controls** tab. 2. Read the **Gain** column first. It rates each move out of five dollar signs, against the best one-step move the scope offers. The table is sorted by it, so the moves worth the most come first. ![The Controls tab of the plan's edit drawer, with one row per control and dimension, the Gain rated in dollar signs, the Current posture and a Target menu set to Unchanged.](https://filigran.io/docs/shots/9b26f5fbd9562793e0913c59d58fab5b94b4641965ae73a260ed48657835a1e8.webp) 3. For each control to fund, open the **Target** menu of a dimension and choose the level to reach. Leave a dimension on **Unchanged** to keep it as it is. Choosing a target on any dimension puts the control in the plan; setting all its dimensions back to **Unchanged** takes it out. 4. Switch to the **Identity** tab and enter the **One-off cost** and the **Annual recurring cost** of the plan. 5. Click **Save**. The controls and the identity are saved together, and OpenCRQ starts simulating the scope's scenarios against the plan. A few things to know when you choose targets: - The rating is what one move is worth on its own, read on each scenario's latest simulation. It ranks the moves; it does not add up, because two controls covering the same technique remove less together. - A control that is **Not deployed** is priced on its first step, which raises its strength and its coverage at once: both of its rows show the same rating. - A warning sign next to a target means the move buys nothing yet: a control needs both a strength and a coverage to protect anything. Its tooltip says which one is missing. ## Read what the plan buys {#read-what-the-plan-buys} ![The page of the treatment plan MFA for the front-desk accounts, with its Identity card, the Cost and return card at a -100% return, $0 of annual ALE reduction and $115K of first-year cost, the Moves of the plan card where the Identity Platform already holds its Intermediate strength and Full coverage targets, and the Per scenario table.](https://filigran.io/docs/shots/a16ce67a950a0f868ca777fa2a308af546f12d0950998b823b5cdf2e09365ee9.webp) The plan's page stacks four cards: - **Identity**: the **Scope**, **Owner**, **Start date**, **Due date** and **Rationale**. - **Cost and return**: the **One-year return**, green when positive and red when negative, the **Annual ALE reduction**, and the **First-year cost**. **Enter the cost** or **Edit the cost** opens the edit drawer. - **Moves of the plan**: one row per control and dimension the plan moves, with its **Current** level and its **Target**. A row opens the control. - **Per scenario**: for each scenario of the scope, its **ALE** today and with the plan (an arrow between the two), the **ALE reduction** with the share of the scenario's loss it removes, and the date of the **Last simulation**. Hover the reduction to read its spread: its mean, and the p10 and p90 of the reduction as the uncertain inputs vary. A row opens the scenario. The figures stay on the page while they age, with a chip that says why: | Chip or text | Meaning | What to do | | --- | --- | --- | | **Expired** | The figure was priced against an earlier set of moves | Click **Re-simulate scenarios** | | **Older than the ALE** | The scenario was simulated again since, on new threats or a new posture, and the plan was not | Click **Re-simulate scenarios** | | **Not computed** | No simulation carries a figure for this plan. Under the name, **Not simulated since the plan last changed.** says the scenario is ready to be simulated | Click **Re-simulate scenarios**, or complete the scenario if it is not ready | **Re-simulate scenarios**, at the top of the **Per scenario** card, shows only when a scenario needs it, and turns into a spinner while the simulations run. When the scope's posture reaches a plan's targets, for example once the controls are deployed and declared, the plan has nothing left to remove: its **Annual ALE reduction** falls to $0 and its return to −100%. A target is a commitment, not a floor: if the posture goes past it, the plan prices a step back to the target, and its reduction turns negative. The loss it removed shows in the scope's own figures and in the [dashboards' trends](https://filigran.io/docs/opencrq/use/decide/dashboards/). ## Compare the plans {#compare-the-plans} The list shows the plans as cards, sorted by **Return**, highest first; **Lines view** shows them as a table with the same order. Each card gives the plan's **Return**, **First-year cost**, **ALE reduction**, due date, and a bar of the time elapsed from its start date to its due date. ![The three treatment plans of Grand Meridian France as cards, best return first, from Zero-trust remote access at +80.4% to MFA for the front-desk accounts at -100%, under four counters: Active plans, Overdue, Negative return at 2 out of 3, and First-year cost.](https://filigran.io/docs/shots/998b848a676b44e312d5b590f604384f9f57b89b4d12ac30cc7a750e156d2c11.webp) Four counters sit above the list: - **Active plans**, out of every plan listed. - **Overdue**: the active plans whose due date has passed. A plan past its due date shows an **Overdue** chip, on the list and on its page. - **Negative return**: the plans whose first-year cost exceeds the annual loss they remove. - **First-year cost**: the one-off cost plus a year of recurring cost, summed over the active plans, with the total of every plan below it. No counter adds up the ALE reductions, for the reason given in [How a plan is priced](#how-a-plan-is-priced). A plan is created as **Draft**. The list also knows the **Active**, **Completed** and **Abandoned** statuses, which the counters read; the plan's page and its edit drawer have no control yet to move a plan out of **Draft**. To delete a plan, open the menu of its card or row and click **Delete**. The plan and the control targets it holds are deleted for good; the scenarios and the controls are not touched. **Example: Price MFA for the front-desk accounts at Grand Meridian France** On 9 January 2026, a front-desk account without a second factor exported guest records from Grand Meridian's booking platform. On 26 January, the risk manager prices the fix for the risk scope Grand Meridian France. In **Treatment Plans**, **Create**: - **Risk scope**: Grand Meridian France - **Name**: MFA for the front-desk accounts - **Start date**: Feb 1, 2026; **Due date**: Jun 30, 2026 - **Rationale**: The incident of 2026-01-09 went through a front-desk account without a second factor. In the edit drawer, **Controls** tab, row **IDP Identity Platform (IdP, SSO, MFA, Conditional Access)**: **Strength** from **Basic** to **Intermediate**, **Coverage** from **Partial** to **Full**. **Identity** tab: **One-off cost** 85,000, **Annual recurring cost** 30,000. **Save**. The **First-year cost** reads $115K, and the **Per scenario** table prices Data Breach on Guest Records and Ransomware on the Booking Platform with and without the plan. On 2 March, the scope's Identity Platform is declared at those targets, MFA on every account: Data Breach on Guest Records falls from $97K to $33K a year that day. Since then the posture holds the plan's targets, so on 12 April the plan reads an **Annual ALE reduction** of $0. On 10 April, after Ember Tide's return, the risk manager prices two alternatives the same way. On 12 April the list compares the three plans, best return first: | Plan | Moves | First-year cost | ALE reduction | Return | | --- | --- | --- | --- | --- | | Zero-trust remote access for the hotels | Secure Remote Access (VPN / ZTNA) to **Basic** strength and **Partial** coverage | $35K | $63K | +80.4% | | Network intrusion prevention at the head office | Network Intrusion Prevention to **Basic** strength and **Partial** coverage | $195K | $52K | −73.3% | | MFA for the front-desk accounts | Done | $115K | $0 | −100% | **Negative return** reads 2 out of 3 plans with a return. The remote access plan is the one to fund. ## What's next {#what-s-next} - [Review a year's security budget against the loss it avoided](https://filigran.io/docs/opencrq/use/decide/budget-reviews/), once the plan's work is paid for. - [Track cyber risk in money with dashboards](https://filigran.io/docs/opencrq/use/decide/dashboards/), to show the board the loss the plans removed. - [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/), for the model behind every figure. --- # Measure your compliance maturity against a framework > Rate your organization against NIST CSF 2.0, requirement by requirement, on a maturity scale from 0 to 5, and publish the assessment so its answers feed the controls OpenCRQ prices. - URL: https://filigran.io/docs/opencrq/use/defenses/compliance/ - Products: OpenCRQ 0.261123.0 - For: risk managers - Type: How-to guide A compliance assessment rates your organization against a framework, requirement by requirement, on a maturity level from 0 to 5. In OpenCRQ it does more than fill a register: once you publish it, its answers feed the strength of the controls each requirement maps to, and the price of your risk scenarios follows. This page creates an assessment on NIST CSF 2.0, answers it, publishes it, and reads the frameworks Drata synchronizes beside it. For the controls themselves, read [Set how strong your controls are and read how they held](https://filigran.io/docs/opencrq/use/defenses/controls/). ## Before you start {#before-you-start} - You are a member of the tenant: every member creates, answers, publishes and reopens assessments. - The framework you can assess in OpenCRQ is **NIST CSF 2.0**, shipped with the platform from NIST's own catalog: 6 functions, 22 categories and 106 subcategories, the requirements you answer. You cannot add a framework. - To see your ISO/IEC 27001:2022 and SOC 2 readiness from Drata, an administrator with **Manage Security** connects Drata. See [Import compliance readiness from Drata](https://filigran.io/docs/opencrq/use/sources/drata/). An assessment belongs to the tenant, not to a risk scope: it rates the organization as a whole. You can keep several assessments of the same framework, one per quarter for example, and compare them. ## Create an assessment {#create-an-assessment} 1. Open **Compliance** in the sidebar. The list shows your assessments and the Drata frameworks, with their **Framework**, **Source**, **Progress**, **Maturity**, **Status** and **Updated** date. 2. Select **New assessment**. 3. Enter a **Name**, such as the framework and the period, and keep **NIST CSF 2.0** in **Framework**. 4. Select **Create**. The assessment opens, in **Draft**. ![The NIST CSF 2.0 · Q1 2026 assessment of Grand Meridian Hotels in draft: progress at 3 of 106 requirements, average maturity 2.3 and 20 of 51 controls fed, above the tree of functions, categories and subcategories, each with its owner, due date, controls and maturity.](https://filigran.io/docs/shots/2c334c1ab9d12cea0a64873a96015c58ae097265d1c2faac301bfb57a109349b.webp) ## Answer the requirements {#answer-the-requirements} The assessment shows the framework as a tree: functions, categories, then the subcategories you answer, each with its **Owner**, **Due date**, the number of **Controls** it feeds and its **Maturity**. **Unanswered** keeps the requirements left to answer; **Feeds controls** keeps the ones that feed an OpenCRQ control, 35 of the 106. 1. Select a requirement. Its panel shows the requirement and, under **Controls fed**, the OpenCRQ controls it feeds, or says that it feeds none. 2. Set an **Owner** among the tenant's users and a **Due date** if someone must act on it. 3. Answer **What is the maturity level?** with one level, or select **Not applicable**: | Level | Label | | --- | --- | | 0 | **Nonexistent** | | 1 | **Initial** | | 2 | **Repeatable** | | 3 | **Defined** | | 4 | **Managed** | | 5 | **Optimized** | The information icon beside the question lists the six levels with their definitions. 4. In **Comment**, write what is in place and what is missing: it is the evidence an auditor reads. 5. Select **Save**. When two people answer the same requirement at the same time, the second save is refused, and the drawer reloads the saved answer with your changes on top. Under a field you both changed, **Saved meanwhile** shows the other value: keep yours or select **Use saved value**, then save again. The cards at the top follow your answers. **Progress** counts the requirements answered or marked not applicable, out of 106. **Average maturity** is the mean level of the answered requirements, leaving out those not applicable. **Controls fed** counts the controls your answers feed, out of the 51 the framework reaches. ## Publish it, and what it changes {#publish-it-and-what-it-changes} Select **Publish** when the assessment is complete. Publishing locks it: its answers can no longer change, so the next assessment can be compared with it. **Reopen** brings it back to **Draft**. A published assessment feeds the controls: - For each requirement, the answer of the latest published assessment that answered it counts: a requirement left unanswered keeps the answer of an earlier published assessment. **Not applicable** feeds nothing, whatever an earlier assessment said. - A level becomes a strength: **Nonexistent** gives **Not deployed**, **Initial** and **Repeatable** give **Basic**, **Defined** gives **Intermediate**, **Managed** and **Optimized** give **Master**. A control fed by several requirements takes the mean, rounded to the nearest level. When nothing measures the control's coverage, OpenCRQ assumes one from the same answers. - Drata's reading of a control, when you have one, weighs twice as much as your answers. When Drata reads the highest strength its evidence can prove, higher answers can raise the control above Drata's reading. - Only the tenant's postures are fed, and only the axes left on **Auto**. A value you chose yourself, and the posture a risk scope declares on its own, stay as they are. OpenCRQ applies a published assessment to the controls in a background job, at the latest the next day, then prices the scenarios again. Each control lists the answers behind it under **Assessment evidence**. Reopening an assessment stops its answers from feeding the controls. ## Read the Drata frameworks {#read-the-drata-frameworks} Once Drata is synchronized, ISO/IEC 27001:2022 and SOC 2 show in the list with **Source** **Drata**, **Status** **Synced** and their readiness as a percentage. They are read-only: open one to see its **Readiness**, its in-scope requirements and controls, and **Open in Drata** to work on it there. Their controls' readiness feeds OpenCRQ's controls beside your assessments. **Example: Grand Meridian rates its access control after the MFA rollout** On 2 March 2026, after the front-desk MFA rollout, Claire Morel, risk manager of Grand Meridian Hotels, opens **Compliance**, selects **New assessment**, enters **Name** "NIST CSF 2.0 · Q1 2026" and keeps **Framework** **NIST CSF 2.0**. In the tree, **Feeds controls** narrows the work to the 35 requirements that move the price. PR.AA-03, "Users, services, and hardware are authenticated", feeds ten controls, the identity platform (IDP) among them. She sets herself as **Owner**, the level **Defined**, and the **Comment** "MFA on every account since 2026-02-27; service accounts still on passwords". She rates PR.AA-01 (identities and credentials managed) and PR.AA-05 (access permissions and least privilege) **Repeatable**, with a **Due date** of 30 June 2026. The assessment, still in **Draft**, reads **Progress** 3 / 106 requirements, **Average maturity** 2.3 and **Controls fed** 20 / 51 controls. Nothing reaches the controls yet: the price only moves once she publishes it. Once published, the PR.AA-03 answer counts toward a strength of **Intermediate** for the tenant's identity platform, if that axis is on **Auto**. Grand Meridian France declares its own identity platform posture and keeps it; a scope that declares nothing, such as Grand Meridian Spain, inherits the tenant's value, and its scenarios are priced again on it. ## Check that it works {#check-that-it-works} - The assessment shows **Published** in **Compliance**, with its **Progress** and **Maturity**. - A control the assessment feeds lists the answers under **Assessment evidence** on its **Overview**. ## What's next {#what-s-next} - [Set how strong your controls are and read how they held](https://filigran.io/docs/opencrq/use/defenses/controls/), and their **Auto** axes. - [Choose the treatment plan that removes the most loss](https://filigran.io/docs/opencrq/use/decide/treatment-plans/) to fund the gaps the assessment shows. - [Import compliance readiness from Drata](https://filigran.io/docs/opencrq/use/sources/drata/). --- # Set how strong your controls are and read how they held > Declare how strong and how widely deployed each of your controls is, per risk scope, and read how OpenAEV's tests and your compliance answers confirm or correct it. - URL: https://filigran.io/docs/opencrq/use/defenses/controls/ - Products: OpenAEV 3.261118.0, OpenCRQ 0.261123.0 - For: risk managers, security validation engineers - Type: How-to guide Every attack OpenCRQ simulates meets your controls on its way to your primary assets: your email security, your EDR, your identity platform, your backups. How far it gets depends on what you declare for each control: its **strength** and its **coverage**. This page declares them, for the whole tenant or for one risk scope, and reads how they held when OpenAEV tested them. A control nobody declares, and that no published compliance assessment or Drata feeds, counts as not deployed, so the price of a scenario is only as good as these declarations. For the model behind the price, read [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/). ## Before you start {#before-you-start} - You are a member of the tenant: every member declares control postures. - The controls are those of OpenCRQ's catalogue, 51 of them, each covering the ATT&CK techniques it prevents or detects. See the [control catalogue](https://filigran.io/docs/reference/opencrq/controls/). - To read how the controls held, an administrator with **Manage Security** connects OpenAEV. See [Import OpenAEV results](https://filigran.io/docs/opencrq/use/sources/openaev/). ## What you declare {#what-you-declare} Each control has two axes. You answer each with a level, from L0 to L3. | Axis | The question | Levels | | --- | --- | --- | | **Strength** | How is the control implemented? | **Not deployed**, **Basic**, **Intermediate**, **Master**. Each level includes the ones below; **What each strength rung demands** gives the criteria of each level for that control | | **Coverage** | How widely is it deployed? | **None**, **Partial**, **Broad**, **Full**: the share of the perimeter the control concerns, not how well it works there | You do not declare whether a control works when an attack comes: OpenAEV's tests answer that, technique by technique, and lower what you declared where they show less (see [Read how a control held](#read-how-a-control-held)). A control not declared anywhere, and fed by no source, has no strength and no coverage: the attack run prices it as absent. The **Effectiveness** of a control sums the two axes in one figure: the strength (**Basic** counts 0.55, **Intermediate** 0.84, **Master** 1), times the coverage (**Partial** counts 0.4, **Broad** 0.7, **Full** 1). It reads **Marginal** up to 30%, **Moderate** up to 55%, **Solid** up to 80%, **Strong** above; **Not deployed** at **Not deployed** strength, **Inactive** when the coverage is **None**. It helps compare controls at a glance; the attack run reads the two axes themselves, technique by technique, as audited by the tests. ## Declare a control for a risk scope {#declare-a-control-for-a-risk-scope} The tenant's declaration applies to every risk scope; a scope can declare its own, axis by axis, when its estate differs. 1. Open the risk scope in the sidebar, then **Controls**. The list groups the 51 controls by domain (**Endpoints and servers**, **Network**, **Identities**, **Email and SaaS**...) with their **Strength**, **Coverage**, **Effectiveness** and **Last declared** date, and counts the controls not assessed. ![The controls of Grand Meridian France grouped by domain, 45 of 51 not assessed: EDR Intermediate and Broad at 59% Solid, Patch Management Basic and Broad at 39% Moderate, both declared on January 12, 2026.](https://filigran.io/docs/shots/1fd7f99df2a191034cb174578fdf8bca74e2f2d2ffffd13c78f8d4a274f12d0f.webp) 2. Select a control. Its **Overview** gives its definition, the asset families it protects, its **Assessment** and the effectiveness over time. 3. Select **Edit assessment**. 4. For each axis, select a level. An axis the scope does not declare reads **Inherited from the tenant**, with the tenant's level selected; on an axis the scope declares, **Revert to the tenant value** drops that declaration. 5. Write a **Comment**: what is deployed, where, since when. It stays in the control's **Events**. 6. Check the **Effectiveness** line at the bottom, which shows the value before and after your change, then select **Save**. ![The assessment of the identity platform for Grand Meridian France: strength Intermediate, coverage Full, effectiveness Strong at 84%.](https://filigran.io/docs/shots/f9bdb3d5cd2f12ced046bf4a38956c3a9b32bc3d6e25cb89033e62afe2dc2d5a.webp) To declare for the whole tenant, open **Controls** in the sidebar, outside any risk scope, instead. There, each axis also offers **Auto**, which takes the value from the control's sources: the published compliance assessments and Drata. **Auto** is only available when a source feeds the axis, and shows what it reads today. Switching an axis between **Auto** and a value you choose asks for a **Justification**. ## Read how a control held {#read-how-a-control-held} Declarations are what you believe. OpenAEV's simulations show what happened when an attack came. - **Validation**, on a control that a security platform family can test, appears once OpenAEV is connected. Each line is a technique a simulation played: its **Scenario**, the **Platform family** that answered, the **Function** tested, the **Result** (**Prevented** or **Not prevented**, **Detected** or **Not detected**) and the **Tested assets**. Filter the lines by technique, function, result (**Held on every asset** or **Gave way on an asset**) and platform family. **Success rate** and **Proof coverage** follow over time; **Open in OpenAEV** opens the simulation. - **Prevention** and **Detection** list the techniques the control covers, as a matrix or a table. Each technique shows its **OpenAEV result** and its **Engine efficacy**, the figure the attack run reads: on **Prevention**, the chance the control stops the technique when an attacker uses it; on **Detection**, how strongly it signals it. To read its calculation, select the information icon beside the figure in the table, or the technique in the matrix. Filter the techniques by **Confirmed by the tests**, **Lowered by the tests**, **Not tested** and **Tested, not covered**. - **Risk Scenarios** lists the scenarios whose techniques the control covers, with the number of **Shared TTP**. - **Events** records every change of the posture, its author and its comment. The attack run reads a control technique by technique. On a technique OpenAEV has not tested, the efficacy is the declaration: what your strength and your coverage give on that technique. On a tested technique, the tests audit the declaration, they never raise it: > Engine efficacy = declaration − tested share × (declaration − rate the tests held) The tested share is the part of the risk scope's hosts the tests ran on, and the term in brackets counts only when the tests held less often than you declared. A test cannot create coverage nobody declared, so a control declared absent stays absent, and a test that does better than the declaration leaves it as it is. The test results count for as long as the **Validity of a test result** set in the [quantification engine](https://filigran.io/docs/opencrq/configure/quantification-engine/) allows. OpenAEV may test a control on a technique the catalogue does not credit it with. Its **Engine efficacy** reads **Not declared** in the table, and **Tested, not declared** in the matrix; the **Tested, not covered** filter lists it, and the attack run leaves its tests out. If your deployment does act on it, select **Link** at the end of its row, or **Declare on** the control at the bottom of its calculation: the technique joins the control for your tenant, and its tests count. **Link a technique** adds any other technique, **Unlink** takes one out, and **Reset prevention links** or **Reset detection links** discards your changes and goes back to the catalogue. The **Assessment evidence** of a control lists the compliance answers that feed it; see [Measure your compliance maturity against a framework](https://filigran.io/docs/opencrq/use/defenses/compliance/). **Example: MFA for the front-desk accounts** On 12 January 2026, Grand Meridian France declares its identity platform (IDP) as it is: single sign-on, MFA for the head-office staff only. **Strength** **Basic**, **Coverage** **Partial**, with the **Comment** "Single sign-on; MFA for head-office staff only, not the front-desk accounts". The treatment plan MFA for the front-desk accounts is completed on 27 February. On 2 March, the risk manager opens **Controls** under Grand Meridian France in the sidebar, selects the identity platform, then **Edit assessment**: **Strength** **Intermediate**, **Coverage** **Full**, and the **Comment** "MFA on every account, the front desks included, since 2026-02-27". The control now reads 84%, **Strong**. Its **Events** tab shows both declarations, from **Basic** to **Intermediate** and from **Partial** to **Full**, and its **Risk Scenarios** tab the two French scenarios it stands on: Data Breach on Guest Records and Ransomware on the Booking Platform. OpenCRQ prices them again on the new posture, and their annual loss falls. ## Check that it works {#check-that-it-works} - The scope's **Controls** list shows the new levels and a **Last declared** date of today. - **Overrides on this scope**, in **Filter by assessment status**, lists the controls the scope declares itself. - The scenarios the control stands on are priced again: their **CRQ** tab dates the run. ## What's next {#what-s-next} - [Choose the treatment plan that removes the most loss](https://filigran.io/docs/opencrq/use/decide/treatment-plans/): a plan sets target levels for controls and prices the difference. - [Measure your compliance maturity against a framework](https://filigran.io/docs/opencrq/use/defenses/compliance/), whose published answers feed the controls. - [Import OpenAEV results](https://filigran.io/docs/opencrq/use/sources/openaev/). --- # Get your first quantified risk scenario in eight steps > Follow Get started, the eight steps that take a new OpenCRQ tenant to its first quantified risk scenario, and read on its overview which steps are done and which are left. - URL: https://filigran.io/docs/opencrq/use/get-started/ - Products: OpenCRQ 0.261123.0 - For: risk managers, administrators - Type: How-to guide **Get started** takes a new tenant to its first quantified risk scenario in eight steps. Each step fills one part of what a price rests on: who you are, what an attacker can reach, who attacks, what defends, what a loss costs, what loss you accept, what you protect, and the scenario itself. Its overview shows which steps are done and which are left, so you can stop and come back where you left off. The steps fill the risk scope every new tenant gets, **Enterprise**, measured over the whole estate. If risk scopes are new to you, read [Risk scopes, primary assets and supporting assets](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/) first. ## Before you start {#before-you-start} - You are a member of the tenant. Opening the steps and answering them needs no capability. Setting up a connector from a step, in **Assets**, **Threats** or **Defenses**, needs **Manage Security**. - The tenant has Get started. Every tenant created from the platform gets it, and so does the tenant OpenCRQ creates at its first boot. A tenant without it shows no **Get started** in its menu, and the address of Get started opens **Home**. ## The eight steps {#the-eight-steps} | Step | What it sets | Read more | | --- | --- | --- | | **Company** | The scope's name, sector, country and size, which set how often companies like yours are attacked | [Set your company's sector, country and size](https://filigran.io/docs/opencrq/use/get-started/company/) | | **Assets** | The size of your estate and the assets an attacker can get in through | [Add your assets and declare the size of your estate](https://filigran.io/docs/opencrq/use/get-started/assets/) | | **Threats** | The sources of the threats that target your sector and your country | [Import the threats that target your company](https://filigran.io/docs/opencrq/use/get-started/threats/) | | **Defenses** | How strong your controls are: "A control left unassessed counts as absent, so your losses are overestimated." | [Set how strong your controls are in the Defenses step](https://filigran.io/docs/opencrq/use/get-started/defenses/) | | **Finances** | The financial profile, which gives each loss its amount | [Give your financial figures in the Finances step](https://filigran.io/docs/opencrq/use/get-started/finances/) | | **Tolerance** | The yearly loss you accept, and how likely you accept to exceed it | [Set the yearly loss your company accepts](https://filigran.io/docs/opencrq/use/get-started/tolerance/) | | **Protect** | The primary assets: what an attack can reach and what it would cost you | [Choose what you protect and link the assets behind it](https://filigran.io/docs/opencrq/use/get-started/protect/) | | **Scenarios** | Your first scenarios, each an attack outcome paired with what it reaches | [Create and price your first risk scenarios](https://filigran.io/docs/opencrq/use/get-started/scenarios/) | You can take the steps in any order, and leave one for later. ## Find Get started {#find-get-started} - **In the menu.** While the steps are unfinished, **Get started** comes first, above **Home**. With the menu expanded, it shows a bar and how many steps are done, such as 2 of 8. Once the steps are finished, it moves to the end of the menu, after **Settings**, without the bar. - **From the tenant's home.** While the steps are unfinished, the tenant's home, which the OpenCRQ logo opens, sends you to Get started. It does so until you have opened Get started once in this browser: after that, it opens **Home**. The browser remembers it for each user and tenant, so another browser opens Get started again. ## Go through the steps {#go-through-the-steps} 1. Open **Get started**. The overview reads "Get a first quantified risk scenario in a few minutes." and lists the eight steps, each with its status. ![The Get started overview of Grand Meridian Hotels: the count of steps done and started above the eight steps from Company to Scenarios, each with its status, such as Already configured, Started or To do, and the Start button.](https://filigran.io/docs/shots/d0d0fefc44476f87ffe7eb24399587ed11e349041f26ede31093af39e60ee5e1.webp) 2. Select **Start** to open **Company**, the first step, or select the row of the step you want. 3. Answer the step. A **Why this step?** card says what it changes in the price, and the stepper above shows the eight steps: select one to go to it. 4. Select **Next** to go on to the following step, or **Back** to return to the one before. **Back** on the first step returns to the overview. 5. On **Scenarios**, the last step, select **Next**. Once the steps are finished, it opens **Your platform is set up**: see [Reach the end of Get started and open your first risk scenarios](https://filigran.io/docs/opencrq/use/get-started/done/). Otherwise, it returns to the overview. ## Read where each step stands {#read-where-each-step-stands} Above the steps, the overview counts them: "2 of 8 steps done", followed by "· 1 started" when some are started. Each row shows its status: | Status | What it means | | --- | --- | | **Already configured** | The step is done. A check replaces its number, in the overview and in the stepper | | **Started** | Part of the step is answered. A ring around its number fills as you go, and a line says how far: the kinds of asset declared for **Assets**, such as "5 of 12 kinds declared", the capabilities assessed for **Defenses**, and the questions answered for **Finances** | | **To do** | Nothing is answered yet | | **Syncing** | An import runs behind the step: Microsoft Defender for **Assets**, OpenCTI or OpenCRQ Default Threats for **Threats**. The row names the source and what it imported so far, such as "OpenCTI · 42 threats imported", with its progress in percent once the import can tell | No status is set by hand: each one reads what you can see of the tenant, wherever you set it. Threats and assets follow your markings, and the threats streamed from OpenCTI your access in OpenCTI, so two members can see **Assets** or **Threats** at a different status. A risk tolerance set from the scope's **Details** checks **Tolerance** as well as the step does. | Step | Started when | Done when | | --- | --- | --- | | **Company** | | The scope has a sector and a country | | **Assets** | A kind of asset is declared, or you can see an asset of the tenant | The 12 kinds of the declared estate are answered, **None** included | | **Threats** | | You can see a threat of the tenant, from any source | | **Defenses** | Some capabilities of the control catalogue are assessed | Every capability is assessed, for the tenant or for the scope | | **Finances** | Some questions of the financial profile are answered | Every question is answered | | **Tolerance** | | The scope has a risk tolerance | | **Protect** | | The scope has a primary asset | | **Scenarios** | | A scenario of the scope is priced by its latest simulation | ## When Get started is finished {#when-get-started-is-finished} Get started is finished once no step reads **To do**: a started step does not hold it back. Then: - The button under the steps reads **What you can do now** instead of **Start**. It opens **Your platform is set up**, with **See your risk scenarios** and five next tasks: **Risk scenarios**, **Assets**, **Treatment plans**, **Budget reviews** and **Compliance**. - **Get started** moves to the end of the menu, and the tenant's home opens **Home**. Since the statuses read the data you can see, a step can go back to **To do**: delete the scope's last primary asset, and **Protect** is to do again. Get started is then unfinished, and comes first in the menu again. **Example: Pick up where Grand Meridian left off** Claire Morel, the risk manager of Grand Meridian Hotels, spent her first hour on Get started. She described the company, declared five kinds of asset, and the OpenCTI stream she bound brings the threats aimed at the hospitality sector. The next morning, she opens **Get started**: - The overview reads "2 of 8 steps done · 1 started". - **Company** and **Threats** read **Already configured**. - **Assets** reads **Started**, "5 of 12 kinds declared": the seven other kinds can wait. - **Defenses**, **Finances**, **Tolerance**, **Protect** and **Scenarios** read **To do**. She selects the **Defenses** row and goes on from there. Once **Scenarios** prices a first scenario and no step reads **To do**, Get started is finished, even with **Assets** still started. ## Check that it works {#check-that-it-works} - The menu entry counts the steps done, and the overview counts the steps done and started. - Once every step is done or started, **What you can do now** replaces **Start**, and **Get started** comes last in the menu. ## What's next {#what-s-next} - [Set your company's sector, country and size](https://filigran.io/docs/opencrq/use/get-started/company/), the first step. - [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/), to understand what each step changes in the price. - [Run several tenants in one platform](https://filigran.io/docs/opencrq/administer/tenants/), for what a new tenant starts with. --- # Add your assets and declare the size of your estate > Declare the size of your estate, import assets from Microsoft Defender or create them by hand in the Assets step of Get started, so OpenCRQ knows where an attacker can get in. - URL: https://filigran.io/docs/opencrq/use/get-started/assets/ - Products: OpenCRQ 0.261123.0 - For: risk managers, administrators - Type: How-to guide **Assets** is the second step of **Get started**. Your assets and their vulnerabilities tell OpenCRQ where an attacker can get in. The step brings them in from three sources, which add up: the estate you declare, Microsoft Defender, and the assets you create by hand. ## Before you start {#before-you-start} - You are a member of the tenant. Declaring the estate and creating assets need no capability. - To set up Microsoft Defender, you have **Manage Security**, and a platform administrator has given OpenCRQ its credentials. See [Import assets from Microsoft Defender](https://filigran.io/docs/opencrq/use/sources/microsoft-defender/#give-opencrq-the-credentials). ## The asset sources {#the-asset-sources} Under **Asset sources**, the step reads "Use as many as you need, they add up." Beside it, the count of the assets you can see in the tenant and **See all assets**, which opens **Assets**. ![The Assets step of Get started for Grand Meridian Hotels: under Asset sources, the Declared estate tile with no kind declared, the Microsoft Defender tile Unavailable, and the Manual creation tile Active with 6 assets.](https://filigran.io/docs/shots/8209f615da4363a5d50e2151f17946033b37f143656f53100e2e7be50f5b2738.webp) | Tile | What it brings | What it shows | | --- | --- | --- | | **Declared estate** | How many assets of each kind you have. It "Gives every scenario the size of your estate, even before your assets are imported." | How many of the 12 kinds you declared, and **Active** once you declared one. **Declare**, then **Edit**, opens the declaration | | **Microsoft Defender** | The assets the Microsoft Defender connector imports | The state of the connector: **Unavailable**, **Not configured**, **Never synced**, **Syncing**, **Healthy** or **Failing**. Then the number of assets it imported, and the progress of a run in percent. **Configure** opens it | | **Manual creation** | The assets you create one by one | The number of assets created by hand, and **Active** once there is one. **Create** opens the **Create a new supporting asset** panel, as in [Declare a supporting asset](https://filigran.io/docs/opencrq/use/attack-surface/assets/#declare-a-supporting-asset) | The sources work together. The attack run walks the assets imported or created, then completes them up to what you declared. The step is started once you answered one kind, or once you can see an asset of the tenant: the stepper then counts the kinds answered out of 12. It is done once you answered the 12 kinds, **None** included. Assets alone never complete it. ## Declare your estate {#declare-your-estate} The declaration belongs to the risk scope the steps fill, **Enterprise**: it is the same as the **Declared estate** tab of that scope. See [The declared estate](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/#the-declared-estate). 1. On the **Declared estate** tile, select **Declare**, or **Edit** once you declared a kind. The **Declared estate** panel opens on the 12 kinds of asset, such as **Host › Workstations and laptops**, **Identity › User accounts**, **Web application** or **AI target**. Each kind reads how many assets are measured, or **None measured**. 2. For each kind you know, choose a band: **None**, **1 to 10**, **11 to 50**, **51 to 250**, **251 to 1,000**, **1,001 to 5,000** or **More than 5,000**. **More than 5,000** reads as 5,001 to 25,000. Selecting the chosen band again clears it. 3. To give a figure rather than a band, select **Specify**, then **Exact number**, or **Range** between a minimum and a maximum. Specify a figure beyond 25,000 the same way. 4. For servers, containers, cloud resources, web applications, AI targets and network devices, answer **At least one reachable from the Internet?** with **Yes** or **No**. ![The Declared estate panel: Host › Workstations and laptops on 1,001 to 5,000 and Host › Servers and virtual machines on 251 to 1,000, each with what is measured, and the other kinds still unanswered.](https://filigran.io/docs/shots/cc16f5a45fe17272f3581ffe6348fe17f74934dfea99fd1465be5241529aedd4.webp) 5. Select **Save**. It is available once you changed an answer and every figure is valid. The panel closes. A figure that is not valid says why, such as **Enter a number.** or **The minimum is above the maximum.** ## Import from Microsoft Defender {#import-from-microsoft-defender} Select **Configure** on the Microsoft Defender tile. The Microsoft Defender panel opens: - When Microsoft Defender is not set up for the tenant, the panel lists the three variables a platform administrator sets in the platform's environment before restarting it. **Copy** copies them, and **See the documentation** opens the platform's configuration on GitHub. The steps are in [Give OpenCRQ the credentials](https://filigran.io/docs/opencrq/use/sources/microsoft-defender/#give-opencrq-the-credentials). - When it is set up and you have **Manage Security**, choose the account the connector runs as under **Service account**, and the **Schedule**, then select **Save**: - **Create a new service account**, the default, creates the account with the integration, in the Connectors group. Its **Service account name** is filled in with "Microsoft Defender connector", which you can change. - **Use an existing service account** runs the connector as an account the tenant already has, chosen in the **Service account** list. - A tenant with no account to reuse is offered the new one only. A connector already bound to an account opens on that account. - Below the form, **Sync now** starts a run at once, once a service account is bound and no run is going. **Follow in Integrations** opens the connector in **Integrations**. - Without **Manage Security**, the panel reads "An administrator configures this connector." While a run goes, the tile shows its progress, and the **Assets** step turns in the stepper. **Example: Size Grand Meridian's estate** Grand Meridian Hotels has no Microsoft Defender yet. Claire Morel selects **Declare** on the **Declared estate** tile: - **Host › Workstations and laptops** on **1,001 to 5,000**: 3,800 workstations in France and 1,100 in Spain, 4,900 in all. - **Host › Servers and virtual machines** on **251 to 1,000** for 480 servers, with **Yes**: one of them is reachable from the Internet. - **Identity › User accounts**: **Specify**, **Exact number**, 5800, one account per employee. - **Web application** on **1 to 10**, with **Yes**: the booking site faces the Internet. - **AI target** on **None**. She selects **Save**: the tile reads 5 of 12 kinds declared, **Active**, and its button reads **Edit**. The attack run now walks at least 1,001 workstations, each simulated world drawing its own count between 1,001 and 5,000 and keeping it for every year it plays. It counts an internet-facing server even before any device is imported. The step stays started until she answers the 7 other kinds. ## Check that it works {#check-that-it-works} - The **Declared estate** tile counts the kinds you declared and reads **Active**. - The **Declared estate** tab of the **Enterprise** risk scope shows the same answers. - The count of assets in the tenant includes the assets imported and created. - The stepper shows a check on **Assets** once the 12 kinds are answered. ## What's next {#what-s-next} - Select **Next** to go on to the **Threats** step. - [Build the attack surface from your assets](https://filigran.io/docs/opencrq/use/attack-surface/assets/), to set the exposure and the criticality of each one. - [Import assets from Microsoft Defender](https://filigran.io/docs/opencrq/use/sources/microsoft-defender/), to keep them in sync. - [Risk scopes, primary assets and supporting assets](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/), to understand how the declaration counts. --- # Set your company's sector, country and size > Name your company, its sector, its country and its size in the first step of Get started, so OpenCRQ reads how often companies like yours are attacked. - URL: https://filigran.io/docs/opencrq/use/get-started/company/ - Products: OpenCRQ 0.261123.0 - For: risk managers, administrators - Type: How-to guide **Get started** leads a tenant to a first quantified risk scenario in eight steps: **Company**, **Assets**, **Threats**, **Defenses**, **Finances**, **Tolerance**, **Protect** and **Scenarios**. The first step, **Company**, describes your organization. Its sector, its country and its size set how often an attack is expected each year: the threat event frequency of your scenarios. They also weigh the threats of the [Threat Center](https://filigran.io/docs/opencrq/use/threats/threat-center/). A threat aimed at your country counts 2.5 times, one aimed at your sector 4 times, one aimed at both 10 times. Every new tenant, the **Default** tenant included, comes with Get started and a risk scope named **Enterprise**, measured over the whole estate. The steps fill that scope: the **Company** step edits its profile. ## Before you start {#before-you-start} - You are a member of the tenant. - You know how many people your company employs. Its annual revenue comes later, in the **Finances** step. ## What the step sets {#what-the-step-sets} | Field | What to enter | What it changes | | --- | --- | --- | | **Name** | The name of the risk scope. It reads **Enterprise** until you change it. It is required: an empty name reads **A name is required** | The name the scope shows everywhere | | **Sector** | Your industry, from **Select a sector** | The threat event frequency reads the attack rates measured for your sector. Left blank, or on a sector without measures, it reads every sector | | **Country** | Where you operate, from **Select a country** | The same for your country. Left blank, or on a country without measures, it reads every country | | **Employee Count** | A whole number, 0 or more | The size of your company, read before the revenue band | | **Revenue band** | The band of your annual revenue. The field says "Derived from the annual revenue you can set in the Finances step." | The size of your company when no employee count is entered. The **Annual revenue** of the **Finances** step sets it each time you enter or change it. Without either, every size counts alike | ## Describe your company {#describe-your-company} 1. Open **Get started**. It comes first in the menu while the steps are unfinished. Until then, the tenant's home also opens it the first time you visit the tenant in a browser. 2. Select **Start**, or the **Company** row. The step opens under the stepper of the eight steps, with **Why this step?** above the form. 3. Check the **Name**. Keep **Enterprise** if the scope covers your whole company. 4. Choose the **Sector** and the **Country**. 5. Enter the **Employee Count**. 6. Choose the **Revenue band**, or leave it to the **Finances** step. ![The Company step of Get started for Grand Meridian Hotels: the stepper with Company first, the Why this step? card, then Name on Enterprise, Sector on Hospitality and Country on France.](https://filigran.io/docs/shots/a6a006bc60e660f5b5f8cd5e89632612c4be45fdd98c352cd1a1e87ae79542a3.webp) 7. Select **Next** to go on to the **Assets** step. The step has no save button. A list saves your choice at once; **Name** and **Employee Count** save when you leave the field. No message confirms it, and a field you leave unchanged writes nothing. **Back** returns to the overview of the steps, and **See the risk scope** opens the scope's **Details**. When the sector, the country, the employee count or the revenue band changes, OpenCRQ computes again the threat event frequency of the scenarios set to **Auto**. It then prices them again. **Example: Describe Grand Meridian Hotels** Claire Morel, the risk manager of Grand Meridian Hotels, opens **Get started** on the tenant's first day and selects **Start**: - She keeps **Name** on **Enterprise**: the scope covers the whole chain, and she creates the France and Spain scopes later. - **Sector** **Hospitality** and **Country** **France**, where the head office runs the booking platform. - **Employee Count** 5800: 4,200 people in France and 1,600 in Spain. The chain falls in the class of 5,000 employees or more. - She leaves **Revenue band** to the **Finances** step. There, the annual revenue of $830 million sets it to **$100M-$1B**. The **Company** step now shows its check in the stepper, and she selects **Next**. ## Check that it works {#check-that-it-works} - The stepper shows a check on **Company** once both **Sector** and **Country** are set. - On the overview of the steps, the **Company** row reads **Already configured**. The other rows read **Started**, **To do** or **Syncing**. - In the risk scope, **Threat Event Frequency** shows the country, the sector and the size in its **Profile**. ## What's next {#what-s-next} - [Add your assets and declare the size of your estate](https://filigran.io/docs/opencrq/use/get-started/assets/), the next step. - [Set the threat event frequency](https://filigran.io/docs/opencrq/use/threats/threat-event-frequency/) of a scenario, from the profile or by hand. - [Risk scopes, primary assets and supporting assets](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/), to understand the scope the steps fill. --- # Set how strong your controls are in the Defenses step > Assess the strength and coverage of your controls by hand, or bring them from Drata, in the Defenses step of Get started, so OpenCRQ knows how much of an attack they stop. - URL: https://filigran.io/docs/opencrq/use/get-started/defenses/ - Products: OpenCRQ 0.261123.0 - For: risk managers, administrators - Type: How-to guide **Defenses** is the fourth step of **Get started**. Your controls decide how much of an attack is stopped, and a control left unassessed counts as absent: your losses are then overestimated. The step assesses the 51 controls of OpenCRQ's catalogue from two sources, which add up: Drata, and the assessment you give yourself. ## Before you start {#before-you-start} - You are a member of the tenant. Assessing a control needs no capability. - To set up Drata, you have **Manage Security**, and a platform administrator has given OpenCRQ the Drata API key of the tenant. See [Import compliance readiness from Drata](https://filigran.io/docs/opencrq/use/sources/drata/#before-you-start). - You know what each control means for OpenCRQ: its **strength** and its **coverage**. See [What you declare](https://filigran.io/docs/opencrq/use/defenses/controls/#what-you-declare). ## The defense sources {#the-defense-sources} Under **Defense sources**, the step reads "Use as many as you need, they add up." Beside it, how many controls of the catalogue the tenant has assessed, such as **12 of 51 capabilities assessed**, and **See all controls**, which opens the list of the controls. | Tile | What it brings | What it shows | | --- | --- | --- | | **Drata** | The strength and the coverage OpenCRQ derives from the Drata controls mapped to each of its controls | The state of the connector: **Unavailable**, **Not configured**, **Never synced**, **Syncing**, **Healthy** or **Failing**, then the progress of a run while one goes. **Configure** opens it | | **Assess yourself** | The strength and the coverage you declare for each control | How many controls you assessed by hand, such as **3 capabilities assessed by hand**, and **Active** once there is one. **Assess** opens the **Assess yourself** panel | The **Drata** tile shows no count: OpenCRQ does not tell which assessments Drata fed. A control with one axis set by hand counts on the **Assess yourself** tile, whatever set the other. The step is started once one control is assessed, and done once the 51 are. Any source counts: your own assessment, Drata, a published framework assessment, or a declaration the **Enterprise** risk scope makes on its own. A control assessed **Not deployed** counts too. A started step is enough for Get started to finish. ## Assess your controls yourself {#assess-your-controls-yourself} The panel writes the tenant's assessment of each control: it applies to every risk scope, except where a scope declares its own. It is the assessment the **Controls** page shows. The panel has no **Comment**, and a choice made in it clears the comment of that control. To declare a scope's own posture, see [Declare a control for a risk scope](https://filigran.io/docs/opencrq/use/defenses/controls/#declare-a-control-for-a-risk-scope). 1. On the **Assess yourself** tile, select **Assess**. The panel opens on the controls grouped by domain, from **Endpoints and servers** to **AI**, with the first domain open. Each domain reads how many of its controls are assessed, such as **0 of 6 assessed**, and each control not yet assessed reads **Not assessed**. 2. On the row of a control, answer **How is the control implemented?**: **Not deployed**, **Basic**, **Intermediate** or **Master**. The icon beside the question, **What each strength rung demands**, gives the criteria of each level for that control. 3. Answer **How widely is it deployed?**: **None**, **Partial**, **Broad** or **Full**. The icon beside it, **What coverage measures**, reminds you that coverage says how much of the concerned perimeter the control is deployed on, not how well it works there. ![The Assess yourself panel of Get started for Grand Meridian Hotels: Endpoints and servers open at 0 of 6 assessed, Endpoint Detection and Response with Intermediate chosen and the note Answer both questions to assess this control, the other controls Not assessed.](https://filigran.io/docs/shots/15e2aa32dc585e4f0bcf107a479bb0b70c33075579fc6c47346f54f3082a4518.webp) 4. Go on with the other controls and domains, then close the panel. The first assessment of a control needs both answers. After the first one, the row reads "Answer both questions to assess this control." and nothing is saved until you give the other. Once the control is assessed, each choice saves at once, on its own. No message confirms it: the counts of the domain, of the tile and of the step move on. **Auto** beside a question marks an axis that Drata or a published framework assessment derives. Choosing a level declares that axis by hand instead, and no later sync changes it. **Example: Assess Grand Meridian's endpoint controls** Grand Meridian Hotels has not connected Drata yet. Claire Morel, its cyber risk manager, selects **Assess** and starts with **Endpoints and servers**: - **EDR**, **Endpoint Detection and Response**: **Intermediate**, then **Broad**. The EDR runs on the workstations of the head office and of the hotels, not on every server. After her first choice, the row asks her to answer both questions; the second one saves it. - **PATCH**, **Patch Management**: **Basic** and **Broad**. - **MSEG**, **Microsegmentation**: **Not deployed** and **None**. The networks of the hotels are flat, and the control counts as assessed all the same. The domain now reads **3 of 6 assessed**, the tile **3 capabilities assessed by hand** and **Active**, and the stepper shows **Defenses** started. Grand Meridian France and Grand Meridian Spain keep the postures they declared on their own. ## Bring your controls from Drata {#bring-your-controls-from-drata} Select **Configure** on the **Drata** tile. The **Drata** panel opens: - When Drata is not set up for the tenant, the panel reads "A platform administrator enables Drata for this tenant: set the variables below in the platform's environment, then restart the platform." Below it, the variable to set, `CONNECTORS__DRATA____API_KEY=`, already holding the id of the tenant. **Copy** copies it, and **See the documentation** opens the platform's configuration on GitHub. The optional variables are in [Before you start](https://filigran.io/docs/opencrq/use/sources/drata/#before-you-start) of the Drata page. - When it is set up and you have **Manage Security**, choose the account the connector runs as under **Service account**, and the **Schedule**, then select **Save**. **Create a new service account**, the default, creates the account with the integration, in the Connectors group: its **Service account name** is filled in with "Drata connector", which you can change. **Use an existing service account** runs the connector as an account the tenant already has. A tenant with no account to reuse is offered the new one only. Below the form, **Sync now** starts a run at once, once a service account is bound and no run is going; "Sync job enqueued successfully." confirms it. **Follow in Integrations** opens the connector in **Integrations**. - Without **Manage Security**, the panel reads "An administrator configures this connector." Each run sets the strength and the coverage of the controls that Drata controls are mapped to, on the axes left automatic. See [Where it shows, and what it changes](https://filigran.io/docs/opencrq/use/sources/drata/#where-it-shows-and-what-it-changes). ## Check that it works {#check-that-it-works} - The count under **Defense sources** gives the controls the tenant assessed, and the **Assess yourself** tile those you assessed by hand. - **See all controls** lists the controls you assessed with their strength, coverage and effectiveness. - The stepper shows **Defenses** started, then a check once each of the 51 controls is assessed for the tenant or declared by the **Enterprise** scope. ## What's next {#what-s-next} - Select **Next** to go on to the [Finances step](https://filigran.io/docs/opencrq/use/get-started/finances/). - [Import the threats that target your company](https://filigran.io/docs/opencrq/use/get-started/threats/), the step before. - [Set how strong your controls are and read how they held](https://filigran.io/docs/opencrq/use/defenses/controls/), to declare a scope's own posture and read what the tests of OpenAEV show. - [Import compliance readiness from Drata](https://filigran.io/docs/opencrq/use/sources/drata/), to keep the controls in step with your compliance program. - [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/), to see how the controls weigh in the price. --- # Reach the end of Get started and open your first risk scenarios > Reach the end of Get started once no step is left to do, read how many risk scenarios OpenCRQ computed, and choose where to go next. - URL: https://filigran.io/docs/opencrq/use/get-started/done/ - Products: OpenCRQ 0.261123.0 - For: risk managers, administrators - Type: How-to guide Once no step of **Get started** is left to do, its last screen tells you that your platform is set up, counts the risk scenarios OpenCRQ has computed for the **Enterprise** risk scope, and leads you to what you can do with them. **Diagram: How Get started ends, from its last step to your first risk scenarios** - Get started: Eight steps (Each one done or started), Next on Scenarios (The last step) - Where Next leads: Platform set up (Your platform is set up: the scenarios computed for Enterprise), Overview of the steps (While a step is still To do) - What you can do now: Risk scenarios (Estimated annual losses), Treatment plans (A measure's cost against the loss it avoids) Connections: - Eight steps → Next on Scenarios - Next on Scenarios → Platform set up: no step To do - Next on Scenarios → Overview of the steps: a step To do - Platform set up → Risk scenarios: See your risk scenarios - Platform set up → Treatment plans ## Before you start {#before-you-start} - You are a member of the tenant. - Every step of Get started is done or started. A step that is started, such as **Defenses** with some controls assessed or **Finances** with some answers, is enough; a step still **To do** keeps Get started unfinished. The **Scenarios** step is done once a scenario of the scope has a computed loss. ## Finish Get started {#finish-get-started} 1. On the **Scenarios** step, select **Next**. Once Get started is finished, it opens the last screen; until then, it returns to the overview of the steps, where the rows still to do show. 2. Read the card **Your platform is set up**. It counts the scenarios of the **Enterprise** scope whose loss is computed, such as **5 risk scenarios computed**. Above it, the stepper shows every step, each one a link back to its page. 3. Select **See your risk scenarios** to open the scenarios of the scope, or choose a row under **What you can do now**. The rows of **What you can do now** open the pages of the **Enterprise** scope: | Row | What it says | Where it leads | | --- | --- | --- | | **Risk scenarios** | Track your estimated annual losses | [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/) | | **Assets** | See which assets weigh most | [Build the attack surface from your assets](https://filigran.io/docs/opencrq/use/attack-surface/assets/) | | **Treatment plans** | Compare a measure's cost with the loss it avoids | [Choose the treatment plan that removes the most loss](https://filigran.io/docs/opencrq/use/decide/treatment-plans/) | | **Budget reviews** | Arbitrate your security budget | [Review a year's security budget against the loss it avoided](https://filigran.io/docs/opencrq/use/decide/budget-reviews/) | | **Compliance** | Assess yourself against NIST CSF 2.0 | [Measure your compliance maturity against a framework](https://filigran.io/docs/opencrq/use/defenses/compliance/) | The screen opens only once Get started is finished: opened earlier, its address sends you to the overview of the steps. Once it is finished, the tenant's home no longer opens Get started on your first visit. The steps stay open: you can come back to any of them to complete what you started, and the platform's pages edit the same scope. **Example: Grand Meridian's first results** Claire Morel has described Grand Meridian Hotels, declared part of its estate, assessed its endpoint controls and answered five financial questions. The **Defenses** and **Finances** steps are only started, but none is left to do. On the **Scenarios** step, the five scenarios she created for the **Enterprise** scope have been priced, and she selects **Next**. The last screen reads **Your platform is set up** and **5 risk scenarios computed**. She selects **See your risk scenarios** to read their estimated annual losses, then comes back to **Treatment plans** to compare multi-factor authentication for the front desks with the loss it avoids. ## Check that it works {#check-that-it-works} - **Next** on the **Scenarios** step opens **Your platform is set up**, not the overview of the steps. - The count of computed scenarios matches the scenarios of the **Enterprise** scope that show a loss in their list. - Opening the tenant's home in a new browser opens **Home**, not Get started. ## What's next {#what-s-next} - [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/), to read and refine the scenarios Get started created. - [Create and price your first risk scenarios](https://filigran.io/docs/opencrq/use/get-started/scenarios/), the step before, and [Get your first quantified risk scenario in eight steps](https://filigran.io/docs/opencrq/use/get-started/), the whole path. - [Set how strong your controls are in the Defenses step](https://filigran.io/docs/opencrq/use/get-started/defenses/) and [Give your financial figures in the Finances step](https://filigran.io/docs/opencrq/use/get-started/finances/), to complete the steps you only started. - [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/), to understand the figures. --- # Give your financial figures in the Finances step > Answer the financial questionnaire of your company in the Finances step of Get started, so OpenCRQ turns each incident it simulates into a loss. - URL: https://filigran.io/docs/opencrq/use/get-started/finances/ - Products: OpenCRQ 0.261123.0 - For: risk managers, administrators - Type: How-to guide **Finances** is the fifth step of **Get started**. Your financial figures turn an incident into a loss: downtime, notification, fines, ransom. The step asks the 21 questions of the financial profile of the risk scope Get started fills, **Enterprise** unless you renamed it on the **Company** step. Each scenario's loss estimates derive from these answers, and every extra answer sharpens one. ## Before you start {#before-you-start} - You are a member of the tenant. - Have the figures at hand: revenue and gross margin from finance, recovery targets from IT, the number of records and of card transactions from the data protection officer, the liability clauses from legal. Bands are enough for most answers. - Choose the **Country** on the [Company step](https://filigran.io/docs/opencrq/use/get-started/company/) first: the step reads the labour cost benchmark of that country. ## What the step asks {#what-the-step-asks} Under **Why this step?**, the questionnaire shows a progress bar and how many answers are given, such as **5 of 21 answered**. Its eight sections are all open, each with its own count: **A · Revenue and margin**, **B · Digital dependency**, **C · Data held**, **D · Regulatory**, **E · Customers and contracts**, **F · Funds and IP**, **G · Extortion** and **H · Loss history**. They are the sections of the financial profile, and [Set what an attack costs with the financial profile](https://filigran.io/docs/opencrq/use/quantify/loss-drivers/#answer-the-financial-profile) says what each one asks and which loss drivers it sets. Section A opens on **Loaded daily labour cost**, which is not one of the 21 questions. It starts empty. Left blank, OpenCRQ uses the benchmark of the scope's country, such as 480 USD / day for France, or the platform default of 300 USD / day, and flags internal response labour as low confidence. The field says which one applies. The step is started once one question is answered, and done once the 21 are. A started step is enough for Get started to finish. ## Answer the questions {#answer-the-questions} 1. Open **Get started** and select **Finances** in the stepper, or select **Next** on the **Defenses** step. 2. Answer the sections, in any order. A number you type is saved when you leave its field; a choice is saved as soon as you click it. ![The Finances step of Get started for Grand Meridian Hotels: the Why this step? card, the questionnaire counting its first answer, and section A open on an empty loaded daily labour cost and an annual revenue of 830,000,000 USD.](https://filigran.io/docs/shots/e88d900be5d2a13f11eb91918d5b192ba2addf5b22b28883f667042fa8ef3837.webp) 3. Leave blank what you do not know yet: you can come back to the step at any time. 4. Select **Next** to go on to the **Tolerance** step. The step has no save button, and no message confirms a save. Answers save together: each save checks the whole questionnaire. An answer that is not valid shows why under its field, and no answer saves until you correct it. When a save fails, an error message says so, and your next change tries again. When the answers cannot be read, the step reads "Your financial figures could not be loaded." and shows no question, so that nothing is written over the answers already saved. Each save is the same as in the scope's **Financial profile** tab: OpenCRQ recomputes the loss estimates of every scenario of the scope, then prices again those whose amounts moved. A new or changed **Annual revenue** also sets the scope's revenue band, the one the **Company** step shows. When the band moves, OpenCRQ computes again the threat event frequency of the scenarios set to **Auto**; the band changes it only when the scope has no **Employee Count**. **Example: Give Grand Meridian's figures** The **Enterprise** scope of Grand Meridian Hotels covers the whole chain, France and Spain. Claire Morel opens the **Finances** step with the figures of the finance team: - **Annual revenue**: `830,000,000` USD, $620 million in France and $210 million in Spain. The scope's revenue band follows, **$100M-$1B**. The **Employee Count** of the **Company** step already sizes the chain, so the band leaves the threat event frequency as it is. - **Gross margin**: `31` %. - **Operating days per year**: **365 (continuous)**, for hotels open every day. - **Regulatory regime**: **NIS2 important**. - **Ransom payment posture**: **No**, which records the extortion payment as zero rather than leaving it unestimated. She leaves **Loaded daily labour cost** blank: the field reads the 480 USD / day benchmark for France. The step now reads **5 of 21 answered** and shows as started in the stepper. She will answer the data held with the data protection officer, and selects **Next**. ## Check that it works {#check-that-it-works} - The step counts your answers, and each section its own. - The **Financial profile** tab of the **Enterprise** scope, under **Details**, shows the same answers. - The stepper shows **Finances** started, then a check once the 21 questions are answered. ## What's next {#what-s-next} - [Set the yearly loss your company accepts](https://filigran.io/docs/opencrq/use/get-started/tolerance/), the **Tolerance** step that **Next** opens. - [Set what an attack costs with the financial profile](https://filigran.io/docs/opencrq/use/quantify/loss-drivers/), to read the loss estimates of a scenario and correct a driver by hand. - [Set the threat event frequency](https://filigran.io/docs/opencrq/use/threats/threat-event-frequency/), the other half of the price. - [Set how strong your controls are in the Defenses step](https://filigran.io/docs/opencrq/use/get-started/defenses/), the step before. --- # Choose what you protect and link the assets behind it > Add your primary assets from six templates in the Protect step of Get started, then link the supporting assets they run on, so OpenCRQ knows what an attack can reach and what it would cost. - URL: https://filigran.io/docs/opencrq/use/get-started/protect/ - Products: OpenCRQ 0.261123.0 - For: risk managers, administrators - Type: How-to guide **Protect** is the seventh step of **Get started**, and its card reads **What you protect**. Your primary assets say what an attack can reach and what it would cost you: your customer data, your payments, your operations. The **Scenarios** step builds its scenarios on them. This step adds them from templates to the risk scope the steps fill, **Enterprise**, then links the supporting assets they run on. A primary asset is what the business values, whatever runs it. Its business resource, such as personal data, sets which attacks can reach it. See [Primary assets](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/#primary-assets). ## Before you start {#before-you-start} - You are a member of the tenant. - To link supporting assets, the tenant has some, imported or created in the **Assets** step. See [Add your assets and declare the size of your estate](https://filigran.io/docs/opencrq/use/get-started/assets/). ## The templates {#the-templates} Under **1. Choose what you protect**, six template cards each add one primary asset, with one business resource. Beside them, the count of the primary assets of the scope and **See all primary assets**. | Template | Business resource of the asset | | --- | --- | | **Customer data** | **Personal data** | | **Payments and treasury** | **Own funds and payment authority** | | **Production and operations** | **Operations and services** | | **HR data** | **Personal data** | | **Intellectual property** | **Proprietary information** | | **Email and collaboration** | **Operations and services** | The last card, **Add your own**, reads "Name it and pick its category": it creates a primary asset no template fits. For every business resource, see [Business resources](https://filigran.io/docs/reference/opencrq/business-resources/). The step is done once the scope has one primary asset. ## Add your primary assets {#add-your-primary-assets} 1. Under **1. Choose what you protect**, select a template card, such as **Customer data**. It reads **Adding…**, then **Added**: the scope has a primary asset of that name, with that business resource, and no owner or description yet. 2. Select the other templates that apply to your company. 3. For an asset no template fits, select **Add your own**. The **Create a new primary asset** panel opens: name the asset, pick its business resources, and save it. ![The Protect step of Get started for Grand Meridian Hotels: Customer data, Payments and treasury, and Production and operations read Added, with Remove and Link assets, and the graph of the three primary assets below.](https://filigran.io/docs/shots/cd688f62efd8225519fc5e9a615ba495b59e29fc72786cd47b01fc79b6f8072f.webp) A template adds one asset per scope: its card stays **Added** even after you rename the asset. On an added card, **Remove** opens **Delete primary asset**, which warns: "This will permanently delete this primary asset and everything attached to it. This action cannot be undone." Removing the asset frees the template. ## Link the assets that support it {#link-the-assets-that-support-it} Once the scope has a primary asset, **2. Link the assets that support it** draws a graph of your primary assets and the supporting assets they run on. A primary asset with no supporting asset linked yet shows too, on its own. 1. Under **2. Link the assets that support it**, choose the primary asset to link, when the scope has more than one. 2. Select **Link assets**. The **Manage dependencies of primary asset** panel opens on every supporting asset, with its **Roles**, **Category** and **Source**, and the **Inherited criteria** its roles pass on: availability, integrity, confidentiality and traceability. A search and filters narrow the list. 3. For each asset that supports the primary asset, pick its role, such as the asset that stores the data or the one that performs the service. Removing its last role unlinks it. 4. Select the save button, which counts your changes. **Link assets** on an added template card opens the same panel for its asset. Above the graph, a button per primary asset shows or hides it, and the depth sets how many levels of dependencies the graph draws. When you hide every primary asset, the graph reads "Every primary asset is hidden: show one above." For what each role means to a simulated attack, see [Links and their roles](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/#links-and-their-roles). **Example: Name what Grand Meridian protects** Claire Morel lists what an attack on Grand Meridian Hotels would cost the most. In the **Protect** step, she selects three templates: - **Customer data**: the guest records, names, contact details and stays of 2.4 million guests. - **Payments and treasury**: the accounts the head office pays suppliers and refunds from. - **Production and operations**: the booking platform that takes the room bookings of every hotel. She leaves **HR data**, **Intellectual property** and **Email and collaboration** for later. She then selects **Link assets** on **Customer data** and links the booking database server, which stores the guest records, and the booking web application, which processes them. She saves: the graph draws **Customer data** with its two supporting assets, and the stepper shows its check on **Protect**. ## Check that it works {#check-that-it-works} - Each template you chose reads **Added**, and the count gives the number of primary assets in the scope. - **See all primary assets** lists them. - The graph draws each primary asset with the supporting assets linked to it. - The stepper shows a check on **Protect**. ## What's next {#what-s-next} - Select **Next** to go on to the **Scenarios** step: [Create and price your first risk scenarios](https://filigran.io/docs/opencrq/use/get-started/scenarios/). - [Risk scopes, primary assets and supporting assets](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/), to understand how primary and supporting assets work together. - [Build the attack surface from your assets](https://filigran.io/docs/opencrq/use/attack-surface/assets/#link-the-asset-to-what-it-supports), to link an asset from its own page. --- # Create and price your first risk scenarios > Pick the scenarios OpenCRQ suggests from your primary assets in the Scenarios step of Get started, create them in one go and read the annual loss it computes for each. - URL: https://filigran.io/docs/opencrq/use/get-started/scenarios/ - Products: OpenCRQ 0.261123.0 - For: risk managers - Type: How-to guide **Scenarios** is the last step of **Get started**, and its card reads **Your first scenarios**. A scenario pairs an attack outcome, such as ransomware, with the primary assets it reaches. OpenCRQ prices it over a thousand draws of its uncertain inputs, by default, to estimate your annual loss. The step suggests the scenarios your primary assets call for, creates the ones you pick in the **Enterprise** risk scope, and prices them. ## Before you start {#before-you-start} - The **Enterprise** scope has at least one primary asset. See [Choose what you protect and link the assets behind it](https://filigran.io/docs/opencrq/use/get-started/protect/). - The tenant has threats, so the scenarios have attackers to price. See [Import the threats that target your company](https://filigran.io/docs/opencrq/use/get-started/threats/). - The **Finances** step is answered, so the scenarios have a cost. See [Give your financial figures in the Finances step](https://filigran.io/docs/opencrq/use/get-started/finances/). ## The suggested scenarios {#the-suggested-scenarios} Under **Suggested scenarios**, the step shows one card per attack outcome that reaches at least one of your primary assets and has no scenario in the scope yet. Each card names the primary assets the outcome reaches. Which ones it reaches depends on their business resource: | Attack outcome | Reaches the primary assets of these templates | | --- | --- | | **Ransomware** | **Customer data**, **HR data**, **Production and operations**, **Email and collaboration** | | **Data theft extortion** | **Customer data**, **HR data**, **Intellectual property** | | **Data breach and resale** | **Customer data**, **HR data**, **Intellectual property** | | **Financial fraud and funds theft** | **Payments and treasury** | | **Espionage** | **Customer data**, **HR data**, **Intellectual property** | | **Service disruption** | **Customer data**, **HR data**, **Production and operations**, **Email and collaboration** | | **Destructive attack** | **Customer data**, **HR data**, **Production and operations**, **Email and collaboration** | An asset you added with your own business resources reaches the outcomes that pair with them. See [Attack outcomes](https://filigran.io/docs/reference/opencrq/attack-outcomes/). **Ransomware**, **Data theft extortion**, **Financial fraud and funds theft** and **Service disruption** are selected at first. Without a primary asset, the step reads "Scenarios need a primary asset. Add one in the Protect step." When none of them can be reached, it reads "No scenario to suggest: none of your primary assets can be reached by an attack outcome. Add primary assets in the Protect step." ## Create your scenarios {#create-your-scenarios} 1. Under **Suggested scenarios**, select a card to add it to your choice, or to remove it. ![The Scenarios step of Get started for Grand Meridian Hotels: seven suggested scenarios, each naming the primary assets it reaches, with Ransomware, Data theft extortion, Financial fraud and funds theft, and Service disruption selected.](https://filigran.io/docs/shots/fb32896c5abc6c11cd10cf620a0a3ae2c4db51c56d5e984f9465132cee9cf74e.webp) 2. Select **Create and compute**. It is available once a card is selected. Each card you chose reads **Creating…**. Each scenario is named after its outcome and its assets, such as `Ransomware · Customer data, Production and operations`, and covers every primary asset the outcome reaches. Its first simulation starts at once. The scenarios then show under **Your scenarios**, and leave the suggestions. ## Read the first results {#read-the-first-results} Under **Your scenarios**, each row shows the scenario's **Expected annual loss** once it is priced, and **Computing…** while it is simulated. A scenario that cannot be priced shows its status, with a link to the step that completes it: | Status | What it lacks | Step to complete | | --- | --- | --- | | **No mapped asset** | Assets to measure: its scope measures **Mapped assets only**, and maps and declares none | **Assets** | | **Incomplete** | A threat event frequency: its first simulation sets it, and stops while no threat of the tenant is admitted for its outcome | **Threats** | | **Incomplete** | The figures of the financial profile | **Finances** | The other statuses, **Ready**, **Stale** and **Not simulated**, are the ones of **Risk Scenarios**: see [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/). **See all risk scenarios** opens that list. The step is done once a scenario of the scope has an expected annual loss. **Example: Price Grand Meridian's first scenarios** In the **Protect** step, Claire Morel added **Customer data**, **Payments and treasury** and **Production and operations**. The **Scenarios** step suggests all seven outcomes, four of them selected: - **Ransomware** and **Service disruption**, on **Customer data** and **Production and operations**: the booking platform down in peak season. - **Data theft extortion**, on **Customer data**. - **Financial fraud and funds theft**, on **Payments and treasury**. She also selects **Data breach and resale**: the night-time export of guest records of 2026-01-09 is the incident her board asks about. She leaves **Espionage** and **Destructive attack** aside, and selects **Create and compute**. Five scenarios show under **Your scenarios**, such as `Data breach and resale · Customer data`. Each reads **Computing…**, then its **Expected annual loss**: the board's first figures in money. ## Check that it works {#check-that-it-works} - **Your scenarios** lists the scenarios you created, each with its **Expected annual loss**. - **See all risk scenarios** lists them in the **Enterprise** scope. - The stepper shows a check on **Scenarios**. ## What's next {#what-s-next} - Select **Next**. Once every step is done or started, it opens the [end of Get started](https://filigran.io/docs/opencrq/use/get-started/done/); otherwise it returns to the [overview of the steps](https://filigran.io/docs/opencrq/use/get-started/), where the steps left to do read **To do**. - [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/), to read a scenario's loss and its threats. - [Set what an attack costs with the financial profile](https://filigran.io/docs/opencrq/use/quantify/loss-drivers/), to refine what each scenario costs. --- # Import the threats that target your company > Load OpenCRQ's default threats, connect an OpenCTI Live Stream or analyze a STIX bundle in the Threats step of Get started, so your scenarios have attackers to simulate. - URL: https://filigran.io/docs/opencrq/use/get-started/threats/ - Products: OpenCRQ 0.261123.0 - For: risk managers, administrators - Type: How-to guide **Threats** is the third step of **Get started**. The attacker groups that target your sector and your country, and their techniques, drive the simulated attacks: without a threat, no scenario can be computed. The step brings threats in from three sources, which add up: OpenCRQ's default threats, an OpenCTI Live Stream, and the Structured Threat Information Expression (STIX) bundles you analyze. ## Before you start {#before-you-start} - You are a member of the tenant. - To switch the default threats on or off, or to bind OpenCTI to the tenant, you have **Manage Security**. - To connect OpenCTI, a platform administrator has set its URL and its token for the tenant. See [Give OpenCRQ the URL and the token](https://filigran.io/docs/opencrq/use/sources/opencti/#give-opencrq-the-url-and-the-token). - To analyze a bundle, the platform has file storage. See [Set the platform's parameters and file storage](https://filigran.io/docs/opencrq/configure/parameters/). ## The threat sources {#the-threat-sources} Under **Threat sources**, the step reads "Use as many as you need, they add up." Beside it, the count of the tenant's threats you can see, and **See all threats**, which opens the [Threat Center](https://filigran.io/docs/opencrq/use/threats/threat-center/). ![The Threats step of Get started for Grand Meridian Hotels: under Threat sources, OpenCRQ Default Threats Never synced with Enable, OpenCTI with the threats its stream brought, and STIX bundle with Analyze new bundle.](https://filigran.io/docs/shots/a42fc7b98ac9ab86a14a2c6efd36f634ee55529b278ff8a1e8f226b7aa384455.webp) | Tile | What it brings | What it shows | | --- | --- | --- | | **OpenCRQ Default Threats** | Threat groups and campaigns derived from MITRE ATT&CK, so that scenarios have attackers before any feed is connected | The state of the connector and the number of threats it loaded. A new tenant starts with it switched off: it reads **Never synced**, and its hint says "Switched off." **Enable** or **Disable** switches it | | **OpenCTI** | The threats of an OpenCTI Live Stream, kept current as analysts change them in OpenCTI | The state of the connector: **Unavailable**, **Not configured**, **Never synced**, **Syncing**, **Healthy** or **Failing**. Then the number of threats it brought, and the progress of its replay in percent. **Configure** opens it | | **STIX bundle** | The threats of the bundle files you analyze | The number of threats imported from bundles, and **Active** once there is one. **Analyze new bundle** picks a file | The step is done as soon as you can see one threat of the tenant, whatever its source. While OpenCTI replays its stream or the default threats load, the **Threats** step turns in the stepper. ## Load the default threats {#load-the-default-threats} On the **OpenCRQ Default Threats** tile, select **Enable**. The tile reads **Syncing** while the threats load, then **Healthy**, with their count. What the tile offers depends on where the connector stands: - Without **Manage Security**, a switched-off tile reads "An administrator enables it." - Once on, **Disable** asks for a confirmation that says how many of its threats leave the tenant, and how many from your other sources stay. Your scenarios are then simulated again without them. See [Retire the default threats](https://filigran.io/docs/opencrq/use/sources/opencti/#retire-the-default-threats). - When the first load fails, the tile reads **Failing**, and **Follow in Integrations** opens the connector in **Integrations**. - When the platform turned the default threats off for every tenant, the tile offers no action. See the `CONNECTORS__DEFAULT_THREATS__DATASET_URL` variable in the [configuration reference](https://filigran.io/docs/reference/opencrq/configuration/#connectors). ## Connect OpenCTI {#connect-opencti} Select **Configure** on the **OpenCTI** tile. The **OpenCTI** panel opens: - When OpenCTI is not set up for the tenant, the panel lists the two variables a platform administrator sets in the platform's environment before restarting it, `CONNECTORS__OPENCTI____URL` and `CONNECTORS__OPENCTI____TOKEN`, with the tenant's id filled in. **Copy** copies them. - Without **Manage Security**, the panel reads "An administrator configures this connector." - When OpenCTI does not answer, the panel reads "Unable to load Live Streams from OpenCTI right now. It may be temporarily unavailable, so try again shortly." Once the variables are set, OpenCRQ binds a stream itself at its next start. It creates the Live Stream `OpenCRQ threat feed` in OpenCTI, and binds it to the tenant with the service account "OpenCTI (deployment)". The tile then reads **Syncing** with nothing to configure. This needs the **Manage data sharing** capability, or **Bypass all capabilities**, for the user of the token in OpenCTI. Without it, OpenCRQ binds nothing, and the connector's page in **Integrations** says which capability the token lacks. A stream you bound yourself is never replaced. To bind another stream, or when OpenCRQ could not create its own, bind the stream yourself with **Manage Security**: 1. On the **OpenCTI** tile, select **Configure**. 2. Choose the stream in **Live Stream**. OpenCRQ judges its filter before you save, as in [Bind the stream to your tenant](https://filigran.io/docs/opencrq/use/sources/opencti/#bind-the-stream-to-your-tenant). 3. Under **Service account**, choose the account the connector writes as. **Create a new service account**, the default, creates it with the integration, in the Connectors group: its **Service account name** is filled in with "OpenCTI connector", which you can change. **Use an existing service account** lets you pick one the tenant already has, such as "OpenCTI (deployment)". A tenant with no account to reuse is offered the new one only. 4. Select **Save**. The panel closes, and the connector reads the stream from its beginning. The tile reads **Syncing**, with the percent of the stream's history replayed, then **Healthy** once the stream reaches its live tail. Once the connector is configured, the panel also shows its **Enabled** switch. **Follow in Integrations**, at the bottom of the panel, opens the connector's page. ## Analyze a STIX bundle {#analyze-a-stix-bundle} 1. On the **STIX bundle** tile, select **Analyze new bundle**. 2. Choose a `.json` file. The button reads **Analyzing…** until OpenCRQ has read it. "Bundle analyzed successfully." confirms the import, and the tile counts the threats of the bundle. "Bundle analysis failed. Please check the file and try again." means the file is not a bundle OpenCRQ can read. Without file storage, the button is not available, and the tile reads "File storage must be configured on the platform to import a bundle." **Example: Give Grand Meridian the threats Example CERT tracks** Grand Meridian Hotels already follows Velvet Harbor and Ember Tide in its OpenCTI instance, at `https://opencti.example.com`. The platform engineer has set the tenant's two variables. Grand Meridian keeps the management of streams to its CTI team, so the token's user lacks **Manage data sharing**, and OpenCRQ bound no stream at its start. In the **Threats** step, Claire Morel selects **Configure** on the **OpenCTI** tile: - **Live Stream**: `Threats for risk quantification`, judged **Delivers threat actors**. - **Service account**: **Create a new service account**, with **Service account name** left on `OpenCTI connector`. She selects **Save**. The tile reads **Syncing** while the stream replays its history, then **Healthy**: Velvet Harbor and Ember Tide have arrived, with their campaigns and the techniques they use. She leaves **OpenCRQ Default Threats** switched off, since the stream covers the actors that target hotel chains in France and Spain. The stepper shows its check on **Threats**. ## Check that it works {#check-that-it-works} - The tile of each source you used counts its threats, and the total counts the tenant's threats you can see. - **See all threats** lists them in the Threat Center, where you can filter them by source. - The stepper shows a check on **Threats**. ## What's next {#what-s-next} - Select **Next** to go on to the **Defenses** step: [Set how strong your controls are in the Defenses step](https://filigran.io/docs/opencrq/use/get-started/defenses/). - [Connect OpenCTI with a Live Stream](https://filigran.io/docs/opencrq/use/sources/opencti/), to choose the stream and follow what it brings. - [Follow the threats that target your scopes](https://filigran.io/docs/opencrq/use/threats/threat-center/), to see which threats each scenario counts. --- # Set the yearly loss your company accepts > Set the risk tolerance of your first risk scope in Get started, an annual loss and the highest probability you accept of exceeding it, so each scenario reads within or outside it. - URL: https://filigran.io/docs/opencrq/use/get-started/tolerance/ - Products: OpenCRQ 0.261123.0 - For: risk managers, CISOs and executives - Type: How-to guide **Tolerance** is the sixth step of **Get started**. It sets the risk tolerance of the **Enterprise** risk scope: an annual loss, and the highest probability you accept that a year's loss exceeds it. Each scenario of the scope then reads **Within tolerance** or **Outside tolerance**, so you can show the board which risks lie beyond what the company accepts. ## How a scenario is placed within or outside it {#how-a-scenario-is-placed-within-or-outside-it} Each scenario's latest simulation draws its loss exceedance curve: the probability that a year's loss exceeds each amount. OpenCRQ reads that curve at your annual loss: - When the probability of exceeding it is above your maximum, the scenario reads **Outside tolerance**. - When it is equal to your maximum or below, the scenario reads **Within tolerance**. The tolerance applies to each scenario on its own, never to the sum of the scope's scenarios. Two scenarios can each be within tolerance while their losses added together exceed it. A scenario can also set its own threshold, with **Edit** on the **Loss exceedance curve** card of its **Overview**. The card then reads **Scenario's own threshold** instead of **Risk scope threshold**, and the scope's tolerance no longer applies to that scenario. ## Before you start {#before-you-start} - You are a member of the tenant. Setting the tolerance needs no capability. - You know the two values the company accepts, as agreed with whoever owns the risk appetite, such as the chief financial officer or the board. ## Set the tolerance {#set-the-tolerance} 1. Open **Get started** and select the **Tolerance** row, or select **Next** on the **Finances** step. The step opens on the **Risk tolerance** card, with **Why this step?**: "Your tolerance sets the loss you accept. Each scenario will be placed within or outside it." 2. In **Annual loss (USD)**, enter the yearly loss of one scenario you would accept. It must be above zero. 3. In **Maximum probability of exceeding it (%)**, enter the highest chance you accept that a year costs more, between 0.1 and 100. ![The Tolerance step of Get started for Grand Meridian Hotels: the stepper at Tolerance, the Risk tolerance card with its Why this step? card, Annual loss (USD) at 2000000 and Maximum probability of exceeding it (%) at 10.](https://filigran.io/docs/shots/132d4853cafa53831d656bd00ec67c62bde43c839c94abf454d00c850addd9a8.webp) 4. Leave the field. The tolerance saves at once, with no message, once both values are valid. 5. Select **Next** to go on to the **Protect** step. The step has no save button, and "Both values are needed to save the tolerance." A field you leave while the other is empty saves nothing. Once you have left both fields, a missing or wrong value says why: **Enter an annual loss.**, **The annual loss must be above zero.**, **Enter a maximum probability.** or **The maximum probability must be between 0.1% and 100%.** If you leave the step with one value only, the **Incomplete tolerance** dialog asks "The tolerance needs both values. Leave without saving it?". **Cancel** keeps you on the step and shows what is missing; **Leave without saving** leaves it. A tolerance can be changed but not removed: emptying both fields saves nothing, and the step shows the stored values again when you come back. To change it later, use the step again, or **Edit** on the **Risk tolerance** card of the scope's **Details**: **See the risk scope** opens them. **Example: Grand Meridian accepts one bad year in ten** Grand Meridian Hotels' board accepts that a single cyber risk may cost the chain more than $2 million in a year, but no more often than one year in ten. Claire Morel, its risk manager, opens the **Tolerance** step: - **Annual loss (USD)**: 2000000 - **Maximum probability of exceeding it (%)**: 10 She leaves the second field, and the stepper checks **Tolerance**. Once the **Scenarios** step prices the chain's scenarios, one with a 4% chance of costing more than $2 million in a year reads **Within tolerance**. One with a 15% chance reads **Outside tolerance**: it is the first one to treat. ## Check that it works {#check-that-it-works} - The stepper shows a check on **Tolerance**, and the overview of Get started reads **Already configured** on its row. - The **Risk tolerance** card of the **Enterprise** scope's **Details** shows the **Annual loss** and the **Maximum probability of exceeding it**. Once its scenarios are simulated, it counts those outside and within tolerance, with **See the gap to tolerance**. ## What's next {#what-s-next} - [Get your first quantified risk scenario in eight steps](https://filigran.io/docs/opencrq/use/get-started/), to see which steps are left. - [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/), to read a scenario's loss exceedance curve against the tolerance. - [Track cyber risk in money with dashboards](https://filigran.io/docs/opencrq/use/decide/dashboards/), where **Gap to tolerance** shows how far each scenario sits from it. - [Review a year's security budget against the loss it avoided](https://filigran.io/docs/opencrq/use/decide/budget-reviews/), to tell whether the scope stayed within its tolerance. --- # Set your profile and follow your notifications > Read the name XTM One gives you, set how OpenCRQ names you in each tenant, its language, theme, colours and home dashboard, and follow the notifications that tell you where you were added. - URL: https://filigran.io/docs/opencrq/use/profile/ - Products: OpenCRQ 0.261123.0 - For: risk managers, administrators, CISOs and executives - Type: How-to guide Your profile holds what you decide for yourself in OpenCRQ: the name and job title you go by in a tenant, the language, theme and colours of the interface, and the dashboard Home opens on. Your global name, title and email come from your XTM One account, which you sign in with. Nothing you set here changes what other users see, except your own name and title. Your notifications tell you when someone adds you to a tenant or to the platform administration. ## Before you start {#before-you-start} Every user has a profile and notifications: no capability is needed. ## Open your profile {#open-your-profile} In the top bar, click **Account**, then **Profile**. The menu also shows the email address you are signed in with, and **Sign out**. ![The profile page of Claire Morel, Cyber risk manager, with the Global profile card marked Managed in XTM One and its Edit in XTM One link, the Tenant profile card whose full name and title are marked Inherited, and the Preferences card with Language, Theme, the Softer tones switch of Pastel colours, and Home dashboard.](https://filigran.io/docs/shots/df0e4d15d94b8acfefd4b727f4365f819205ca020f2831eb9c710e79461de235.webp) The page holds four cards: | Card | What it holds | | --- | --- | | **Global profile** | Your **Full name**, **Title** and **Email**, read from your XTM One account and the same in every tenant. Marked **Managed in XTM One**: you cannot change them in OpenCRQ | | **Tenant profile** | The **Full name** and **Title** you go by in this tenant only | | **Preferences** | **Language**, **Theme**, **Pastel colours** and **Home dashboard** | | **XTM One MCP server** | The address of the Model Context Protocol (MCP) server XTM One exposes for OpenCRQ | ## Set your name and title {#set-your-name-and-title} Your global name is what other members see where OpenCRQ names a person: as the owner of a risk scenario, a treatment plan or a budget review, for example. Without a name, a risk scenario shows your email address instead. The name and title of your **Tenant profile** show in the tenant's list of users, under **Settings > Security**. When XTM One or a script names the owner of an asset it writes through OpenCRQ's API, OpenCRQ finds you by that name too. Your global name and title belong to your XTM One account: OpenCRQ reads your **Full name**, **Title** and **Email** from XTM One each time you sign in. To change them, click **Edit in XTM One** in the **Global profile** card, change them in your XTM One profile, and sign in to OpenCRQ again. To go by another name or title in one tenant only: 1. Click **Edit profile**. 2. In **Tenant profile**, enter the **Full name** and the **Title**, your job title, for this tenant. The empty fields show your global values in grey. 3. Click **Save**. **Cancel** asks before it discards unsaved changes, and so does leaving the page. In the **Tenant profile** card, each value says where it comes from: **Inherited** when it is your global value, **Overridden** when you set one for this tenant. **Reset to global** removes both overrides. The super administrator, the XTM One administrator who reaches every tenant without being a member of any, has no **Edit profile**: their **Tenant profile** always shows the global values. ## Choose your language, theme, colours and home dashboard {#choose-your-language-theme-colours-and-home-dashboard} The **Preferences** card changes the interface for you only. **Theme**, **Pastel colours** and **Home dashboard** save as soon as you change them. A new **Language** saves when you click **Reload** in the **Language change** dialog that follows; **Cancel** keeps the old one. | Field | Choices | Effect | | --- | --- | --- | | **Language** | **Automatic**, **English**, **French** | The language of the interface. **Automatic** follows the tenant's **Default language**, set by an administrator, then your browser's language when it is English or French, and English otherwise | | **Theme** | **Light**, **Dark**, **System** | **System** follows the theme of your operating system | | **Pastel colours** | The **Softer tones** switch, off by default | On, severity, status and marking colours take softer tones: the chips of a finding's score history, for example, show a soft plain fill instead of an outline. Off, OpenCRQ draws the standard colours, the same in every Filigran module. The switch follows you in every tenant | | **Home dashboard** | **Tenant home**, or one of the five dashboards | The dashboard **Home** opens on. **Tenant home**, with the tenant's choice in parentheses, follows the dashboard an administrator chose for the tenant | The language changes the interface, not your data: a scenario named in English stays in English. [Track cyber risk in money with dashboards](https://filigran.io/docs/opencrq/use/decide/dashboards/) describes the five dashboards and how an administrator sets the tenant's home. > **With XTM One: Connect your AI client through XTM One** > > The **XTM One MCP server** card shows the address of the MCP server XTM One exposes for OpenCRQ, with a button to copy it. AI clients such as Cursor or Claude Desktop connect to it with a personal XTM One API key, and work on OpenCRQ's frameworks, controls, assessments and risk scenarios with your own permissions. **Manage in XTM One** opens your XTM One profile, where you create the key and copy a ready-made client configuration. The MCP server is part of the Community Edition. ## Follow your notifications {#follow-your-notifications} The bell in the top bar, **Notifications**, shows how many notifications you have not read. Click it to see the latest ones, **Mark all as read**, or **View all notifications** to open the **Notifications** page. OpenCRQ notifies you when an administrator adds you: | Notification, for example | What it means | | --- | --- | | "Claire Morel added you to Grand Meridian Hotels", then "You can now open Grand Meridian Hotels." | You are a member of that tenant, in the groups the administrator chose. In the bell's panel, click the notification to open the tenant | | "Claire Morel added you to the platform administration (Admin)", then "You can now open the platform administration." | You are in those platform groups, and reach the platform administration in **Settings > Security**, under **Platform** | There is nothing to accept: the access is yours as soon as the administrator adds you. XTM One usually tells you by email as well. How administrators add people is in [Give people access with users, groups and roles](https://filigran.io/docs/opencrq/administer/users-and-roles/). On the **Notifications** page, the **All** and **Unread** tabs filter the list. Click a notification to mark it as read. Select notifications to **Mark as read**, **Mark as unread** or **Delete** them; deleted notifications cannot be brought back. **Load more** shows older ones. **Example: Set up the profile of Grand Meridian's risk manager** Claire Morel is the cyber risk manager of Grand Meridian Hotels. She signs in to OpenCRQ through XTM One with docs-admin@example.com, and owns the scenarios, the plan and the budget review of the chain. - In her XTM One profile, her name is Claire Morel and her title Cyber risk manager. After she signs in, the **Global profile** card shows **Full name** Claire Morel and **Title** Cyber risk manager. - **Tenant profile**: she sets nothing, so both values stay **Inherited**. - **Preferences**: she keeps **Theme** on **System**, turns **Softer tones** on under **Pastel colours** for the long review sessions, and sets **Home dashboard** to **Risk treatment**. Home now opens on each scenario's likelihood, annual loss exposure and tolerance, while the rest of the tenant keeps the **CISO** dashboard. Her name shows as the owner of the treatment plan MFA for the front-desk accounts and of the budget review Security budget 2026. ## What's next {#what-s-next} - [Track cyber risk in money with dashboards](https://filigran.io/docs/opencrq/use/decide/dashboards/), to read the dashboard you chose. - [Give people access with users, groups and roles](https://filigran.io/docs/opencrq/administer/users-and-roles/), for administrators who add people. --- # Set what an attack costs with the financial profile > Answer a risk scope's financial questionnaire so OpenCRQ derives what an attack costs each scenario, then correct any loss driver by hand. - URL: https://filigran.io/docs/opencrq/use/quantify/loss-drivers/ - Products: OpenCRQ 0.261123.0 - For: risk managers - Type: How-to guide What an attack costs is the other half of a risk's price, beside how often it happens. OpenCRQ breaks the cost into **loss drivers**: one line each for the forensics firm, the downtime, the notification of the people affected, the regulator's fine. Each driver is a range, minimum, most likely and maximum, in US dollars: enter the financial profile in dollars too. You do not type them one by one: you answer the **financial profile** of the risk scope, a questionnaire of 21 answers about revenue, downtime, data held and contracts, and OpenCRQ derives from it the ranges of every scenario of the scope, for every driver but one. You then correct any driver you know better. [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/) explains how the amounts enter the price. ## Before you start {#before-you-start} - You are a member of the tenant and the risk scope exists: see [Risk scopes, primary assets and supporting assets](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/). - Have the figures at hand: revenue and gross margin from finance, recovery targets from IT, the number of records and of card transactions from the data protection officer, the liability clauses from legal. Bands are enough for most answers. ## Answer the financial profile {#answer-the-financial-profile} You can answer it when you create the risk scope, on its optional **Financial profile** step, or at any time from the scope's details. In a new tenant, **Get started** asks the same questions on its **Finances** step, for the tenant's first risk scope, **Enterprise** unless you renamed it on the **Company** step. There is no **Save**: the answers save together when you leave a field or click a choice, once every answer is valid. The step counts as done once all 21 answers are given. 1. In the sidebar, open your risk scope, which the menu lists after **Budget Reviews**, click **Details**, then the **Financial profile** tab. It shows how many answers are given, and each answer with the loss drivers it **Informs**. 2. Click **Answer the questionnaire**. The scope's edit panel opens on its **Financial profile** tab. ![The Financial profile tab of the Edit Grand Meridian France panel with 21 of 21 answered, its A · Revenue and margin section open on a loaded daily labour cost of 450 USD, an annual revenue of 620,000,000 USD and a gross margin of 32%.](https://filigran.io/docs/shots/9ff546bb2a56a7acb42be6c08e1f1ce753899cf3b307bd94942be8709789030c.webp) 3. Answer the sections, in any order. Each card names the loss drivers its answer informs, so you can see what a blank costs before leaving it blank. 4. Click **Save**. OpenCRQ recomputes the loss estimates of every scenario of the scope, then prices again those whose amounts moved. | Section | What it asks | What it drives | | --- | --- | --- | | **A · Revenue and margin** | **Loaded daily labour cost**, **Annual revenue**, **Gross margin**, **Operating days per year** and the seasonal peak | Every driver that scales with revenue, the lost margin of an outage. The annual revenue also sets the scope's revenue band, which positions its [threat event frequency](https://filigran.io/docs/opencrq/use/threats/threat-event-frequency/), each time you enter, change or clear the amount. Clearing it clears the band too; saving the other answers leaves a band chosen on the scope as it is | | **B · Digital dependency** | The share of turnover that stops when IT stops, the **Maximum tolerable downtime (MTD)**, the **Recovery time objective (RTO)**, whether lost business comes back, how recently a restore was tested | The downtime, restoration and response drivers | | **C · Data held** | How many people's personal data you hold, card transactions, sensitive records, the largest single repository | Notification, identity protection, claims, regulatory fines, card-brand assessments | | **D · Regulatory** | The strictest regime that applies: NIS2, DORA or another sectoral supervision | **Regulatory fines** and **Incident legal counsel** | | **E · Customers and contracts** | The customer base and its B2C share, recurring revenue, revenue under SLA or breach-liability clauses, the contractual liability cap | Customer attrition, crisis communications, contractual penalties, settlements | | **F · Funds and IP** | The daily value of outbound payments and the approval ceiling above which they are verified out of band, the value of your R&D | **Stolen funds, net of recovery** and **Competitive-advantage erosion** | | **G · Extortion** | Whether your organization would pay a ransom | **Extortion payment** | | **H · Loss history** | The worst outage and the costliest incident of the past three years | Widens the worst case of the downtime drivers, and raises the floor the totals are checked against | A few answers need care: - **Loaded daily labour cost** starts empty. Left blank, OpenCRQ uses the benchmark of the scope's country, or a platform default without a country, which the card shows, and flags internal response labour as low confidence. Enter your own rate if you know it. - **Restore test recency** left blank counts as tested. A restore tested long ago or never widens the worst case of the seven drivers that hang on the restore time, from forensics to customer attrition. - The workstations and servers of the scope are no longer asked here: declare them on the scope's **Declared estate** tab, beside **Financial profile**. The counts declared there, an exact number or a range, replace the estimate from the scope's size in the forensics and restoration drivers, and lift its low-confidence flag once both are declared. See [Risk scopes, primary assets and supporting assets](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/). - **Ransom payment posture** at **No** records the extortion payment as zero in every scenario, a **declared zero**, rather than leaving it unestimated. - An outbound payment flow without an approval ceiling leaves the stolen funds unbounded. The panel warns when an answer contradicts another, such as a recovery time objective more than four times the maximum tolerable downtime. ## Read a scenario's loss estimates {#read-a-scenario-s-loss-estimates} Open a risk scenario and its **Financial Impact** tab. The **Loss Magnitude Summary** gives the **Min**, **Most Likely**, **Max** and **PERT Expected** total of an incident, and how many of the drivers shown are estimated. The table below groups the drivers by loss category, each with its **Source**: - **Auto**: derived from the financial profile. An icon marks an estimate derived through a proxy or a weak coefficient: treat it as an approximation. - **Manual**: typed by hand. A scenario prices the drivers its attack outcome and the business resources of its primary assets call for; the [business resources reference](https://filigran.io/docs/reference/opencrq/business-resources/) lists them. Drivers outside that recommendation show under **Not recommended for this scenario**: their amounts are kept and counted. ![The Financial Impact tab of Data Breach on Guest Records: a loss from $19.4M to $125.2M, $52.4M most likely and a PERT expected $59.0M, 10 of 10 drivers estimated, and the response, notification and identity protection drivers, each marked Auto: derived from the financial profile.](https://filigran.io/docs/shots/c09385b1d21cfecd824f50dc27408ba2d6f0f5f03415c2bc02dc806759f6da55.webp) ## Correct a driver by hand {#correct-a-driver-by-hand} 1. On the scenario's **Financial Impact** tab, click **Edit estimates**. 2. On the driver's row, click **Manual**, the pencil, and type its **Min ($)**, **Most Likely ($)** and **Max ($)**: zero or more, with **Min** at most **Most Likely**, and **Most Likely** at most **Max**. The totals at the top follow as you type. 3. To price a driver the scenario does not recommend, pick it in **Add a not-recommended driver**. 4. Click **Save**. A manual amount stays when the financial profile changes: OpenCRQ only recomputes the drivers in **Auto**. To return a driver to the profile, click **Auto**, the sparkles, and save; it is unavailable when the profile gives that driver no value. If someone saved the same estimates meanwhile, OpenCRQ reloads the latest values and asks you to review your edits and save again. ## Look up a loss driver {#look-up-a-loss-driver} The scope's **Details** has a **Loss Driver** tab: the catalogue of loss drivers, grouped by loss category, with the **Dwell sensitivity** of each: how much its cost tends to grow with the attacker's time inside. It describes the driver; the estimates do not read it. Click a driver for its **Loss category**, its **Scaling variable**, and **When this driver applies**: a grid of attack outcomes by business resource, marked **Applies**, **Realistic pairing, driver not called** or **Pairing not held realistic**. Loss drivers are platform reference data and cannot be edited. The [loss drivers reference](https://filigran.io/docs/reference/opencrq/loss-drivers/) lists them all. ## Check that it works {#check-that-it-works} - The scope's **Financial profile** tab counts your answers, such as **21 of 21 answered**. - A scenario's **Financial Impact** tab shows **Auto** amounts, and none reads **Not estimated** for lack of an answer. **Hardware & equipment replacement** is the exception: OpenCRQ never derives it, so enter its range in **Manual** when a scenario calls for it. While a recompute runs, a notice says the amounts shown are the previous ones. - The scenario's **Overview** shows the new **Loss magnitude (LM)**, the PERT expected total, and its **CRQ** tab a new run. **Example: The financial profile of Grand Meridian France** The risk manager of Grand Meridian France answers the 21 questions with the finance, IT and data protection teams. Among them: | Answer | Value | | --- | --- | | **Loaded daily labour cost** | `450` USD a day | | **Annual revenue** | `620,000,000` USD, which falls in the $100M-$1B band | | **Gross margin** | `32` % | | **Operating days per year** | **365 (continuous)**, seasonal peak uplift `35` % | | **Share of turnover that stops when IT stops** | `70` % | | **Maximum tolerable downtime (MTD)** | **< 6h** | | **Recovery time objective (RTO)** | **3 – 7 days** | | **Restore test recency** | **Tested over 12 months ago** | | **Personal data held** | **Yes**, **1M – 5M** individuals | | **Sensitive records** | **100k – 1M** | | **Largest single repository** | **1M – 5M** | | **Payment-card transactions** | **500k – 5M** | | **Regulatory regime** | **NIS2 important** | | **Ransom payment posture** | **No** | The panel warns that a recovery target of three to seven days is more than four times a tolerable downtime under six hours. For Data Breach on Guest Records, OpenCRQ derives ten drivers: an incident costs $19.4M at least, $52.4M most likely and $125.2M at most, a PERT expected $59.0M. Notification & call handling alone weighs $9.4M to $21.5M: OpenCRQ counts the middle of the 1M – 5M band, about 2.2 million people to notify, and the sensitive records at three times the cost. ## What's next {#what-s-next} - [Set the threat event frequency](https://filigran.io/docs/opencrq/use/threats/threat-event-frequency/), the other half of the price. - [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/). - [Loss drivers](https://filigran.io/docs/reference/opencrq/loss-drivers/) and [business resources](https://filigran.io/docs/reference/opencrq/business-resources/) references. --- # Build and price a risk scenario > Create a risk scenario on the primary assets of a risk scope, let OpenCRQ price it as an annualized loss, and read the price on its CRQ tab. - URL: https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/ - Products: OpenCRQ 0.261123.0 - For: risk managers - Type: How-to guide A risk scenario is one line of your risk register, priced in money: an attack outcome, such as ransomware or a data breach, on the primary assets of a risk scope. OpenCRQ prices it as an **Annualized Loss Expectancy** (ALE), with the range of annual losses around it, and keeps the price current as threats, controls and assets change. This page creates a scenario, reads its price, and follows it in the scenario list. If you are new to the method, read [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/) first. ## Before you start {#before-you-start} - You are a member of the tenant. Every member works on risk scopes, scenarios and assets; no capability is needed. - The risk scope exists and holds at least one primary asset, with its business resources. See [Risk scopes, primary assets and supporting assets](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/). - The scope's financial profile is answered, so the scenario's losses have amounts: see [Set what an attack costs with the financial profile](https://filigran.io/docs/opencrq/use/quantify/loss-drivers/). - Threats reach the tenant from OpenCTI: see [Connect OpenCTI with a Live Stream](https://filigran.io/docs/opencrq/use/sources/opencti/). Without it, the threats of **OpenCRQ Default Threats** can stand in. A new tenant starts with them switched off: someone with **Manage Security** turns them on in the **Threats** step of **Get started**. OpenCRQ prices a scenario against the threats likely to lead to its outcome, weighed more when they target the scope's sector and country: see [Follow the threats that target your scopes](https://filigran.io/docs/opencrq/use/threats/threat-center/). A scenario that no threat weighs on stays unpriced. ## Create the scenario {#create-the-scenario} 1. In the left navigation, open your risk scope, which the menu lists after **Budget Reviews**, click **Risk Scenarios**, then **Create**. From the tenant's own **Risk Scenarios**, the wizard starts with a **Risk scope** step instead. 2. On **Outcome**, choose the attack outcome: what the attacker is after. You cannot change it after creation, because the scenario's timing assumptions and threat intelligence derive from it. The [attack outcomes reference](https://filigran.io/docs/reference/opencrq/attack-outcomes/) describes the seven. Click **Next**. ![The Create Risk Scenario wizard on its Outcome step, with the seven attack outcomes from Data Breach & Resale to Service Disruption.](https://filigran.io/docs/shots/97223102990625f907d0a237dbb8640d352c77d4fba7a510b2bba59b419a790b.webp) 3. On **Target Assets**, select the primary assets the outcome would hit. The assets under **Suggested for this outcome** hold business resources the outcome has loss drivers for; the others come under **Other assets**. Click **Next**. 4. On **Review & Create**, check the **Name** that OpenCRQ built from the outcome and the assets, and change it to the wording of your risk register. Add a **Description** and an **Owner**, then click **Create Scenario**. The scenario opens on its **Overview** tab, and OpenCRQ runs its first simulation. When **No loss driver is recommended** shows on the last step, the outcome and the business resources of these assets have no pairing in the loss model: you can still create the scenario and price any driver by hand. You can also start from a threat you follow. In **Threats > Threats**, the header of a threat offers **Quantify risk** when it names the outcome the threat best matches. It opens this wizard with that outcome chosen on **Outcome**, which you can still change. From the tenant's threat center, the wizard starts with the **Risk scope** step. See [Follow the threats that target your scopes](https://filigran.io/docs/opencrq/use/threats/threat-center/). ## Check what the price rests on {#check-what-the-price-rests-on} A scenario's tabs hold its inputs. Two of them decide most of the price: - **Threat** holds the **Threat Event Frequency (TEF)**, how many attack attempts a year the scenario faces. A new scenario takes it from the catalogue, in **Auto** mode. See [Set the threat event frequency](https://filigran.io/docs/opencrq/use/threats/threat-event-frequency/). The same tab lists the **Relevant Threats** that weigh on the scenario, whatever their source: click one to see why it weighs, and whether its probability on the outcome comes from OpenCRQ's model or from the judgment of **OpenCRQ Default Threats**. See [How a threat gets into a scenario](https://filigran.io/docs/opencrq/use/threats/threat-center/#how-a-threat-gets-into-a-scenario). When OpenCTI or OpenAEV is connected to the tenant and holds the same threat, its mark beside the threat's name opens it there, in a new tab. Hover the mark to preview what that module holds on the threat first. - **Financial Impact** holds the loss estimates, derived from the scope's financial profile. See [Set what an attack costs with the financial profile](https://filigran.io/docs/opencrq/use/quantify/loss-drivers/). **Targets** shows the supporting assets behind the primary assets, **Findings** the vulnerabilities on them, **TTP** the techniques the scenario's threats use, and **Controls** how your controls stand against those techniques. When an input is missing, the scenario says which one, with a link to the tab that fills it. To test the scenario's attackers against your defenses, click **Simulate in OpenAEV** in the scenario's header. It opens, in a new tab, the OpenAEV scenario built from one of the **Relevant Threats**: the one with the highest **Score** among those OpenAEV holds. The button shows only when OpenAEV is connected to the tenant and holds such a scenario. What the simulation proves about your controls comes back through the OpenAEV connector: see [Import OpenAEV results](https://filigran.io/docs/opencrq/use/sources/openaev/). ## Read the price on the CRQ tab {#read-the-price-on-the-crq-tab} The **Overview** tab gives the headline: the **Annual Loss Exposure**, the mean ALE that the **CRQ** tab shows as **Annualized Loss Expectancy**, and the three factors it multiplies, the **Threat event frequency (TEF)**, the **Effective susceptibility** and the **Loss magnitude (LM)**. The **Effective susceptibility** is the share of an attack's loss that lands: an eviction counts 15 % of the loss magnitude, the response it cost, a noticed impact 75 %, an unnoticed impact 100 %, a blocked attack nothing. The **CRQ** tab shows the latest run in full. ![The CRQ tab of Data Breach on Guest Records: the attack run outcomes, nearly every attack blocked before the objective, the loss event frequency with its TEF input, the annualized loss expectancy with its p10 to p90 band, and what the run rests on, with its two admitted actors.](https://filigran.io/docs/shots/b9c7471bff01fc3a27b6861edd670673ddad347e9ff0f3f4f663bb49c196cfad.webp) | Section | What it tells you | | --- | --- | | **Attack run outcomes** | The share of attacks **Blocked before the objective**, **Evicted in time**, ending in an **Impact, noticed** or an **Impact, unnoticed (lower bound)**. The four sum to one | | **Loss Event Frequency (LEF)** | How many loss events a year, with the **TEF input** the run drew from | | **Annualized Loss Expectancy (ALE)** | The mean annual loss, with its p10 to p90 band: the range the expected annual loss takes in eight worlds out of ten, as the uncertain inputs vary. It is not the range of a single year's loss. The mean is the figure that adds up across scenarios, the band is not | | **What this run rests on** | The run date, the **Worlds drawn**, the calibration and the control catalogue, the **Admitted actors**, the **Estate walked** and the **Target boost**. Two runs that differ here are not comparable | | **Actors** | Each class of attacker the run weighed, its **Share**, how often it **Lands an impact**, and its ALE. When no asset of the scope can be attacked without initial access, the card names the attack path the run did not play | | **Attacks the run could not score** | The technique and asset family pairs no control of yours contests (your gap), and those no control of the catalogue reaches (a modelling gap, absent from every figure) | | **Technique values** | For each technique, what the ALE would drop by if a control stopped it every time (**By preventing it**), if its detection were fully covered (**By detecting it**), and the two added (**Value of interdicting**). Each is a ceiling for that technique alone: the amounts overlap and do not add up across techniques | | **Simulation History** | Every run, with its ALE mean, LEF mean and technique coverage | Every **What it means and how it is computed** button explains its figure, with its caveat. OpenCRQ works in US dollars: every amount you enter and every price it gives is in dollars. ## See what changed between two runs {#see-what-changed-between-two-runs} When a scenario has two runs or more, the **Overview** tab shows **What changed** beside the **Annual Loss Exposure**. Click it, or click the exposure or one of its three factors, to open the comparison on that figure. It compares two runs of the scenario: by default the latest one and the last one at least seven days older. - The tabs choose the figure: **Annual Loss Exposure**, **Threat event frequency (TEF)**, **Effective susceptibility** or **Loss magnitude (LM)**. Each shows the figure **Before** and **After**, its change, and its curve over every run of the scenario. - **Previous run**, **7 days**, **30 days**, **90 days** and **1 year** pick the two runs, ending on the latest. A click on the curve moves the nearer of the two onto that run. **Zoom in** fits the curve to the runs compared. - The tiles below count the changes between the two runs by category: **Run results**, **Model**, **Controls**, **Critical findings**, **High findings**, **Other findings**, **Critical assets**, **High assets**, **Other assets** and **Attack frequency**. Click tiles to keep only their categories; **Show all** brings the others back. - The chronology lists each change in order, from the **Earlier run** to the **Later run**, such as a control's strength or coverage that moved or a TEF switched from automatic to manual, with a link to the tab where it happened. ![What changed for Data Breach on Guest Records, on its Annual Loss Exposure tab over 7 days: the exposure on the run of Mar 2, 2026 and on the run of Apr 12, 2026, its curve over every run since January, lower after March, and two changes, one in Other findings and one in Run results.](https://filigran.io/docs/shots/df87a3c5f9bf0b391bcdf2ee731efb65000ef6562a316dedb6844378e7846f07.webp) A change of **Model**, such as a new calibration or control catalogue, moves the figure without any change of your risk: weigh it before you report the change. ## Follow your scenarios {#follow-your-scenarios} **Risk Scenarios** lists the scenarios of the scope, or of every scope from the tenant's own entry, where each card names its risk scope above the scenario. The **Cards view** shows each scenario's ALE with its p10 to p90 band, the change over its history with a line of past prices, and its **Outcome**, **Targets**, **Owner** and last simulation. The **Lines view** shows the same as columns, with the **Status** of each scenario: - **Ready**: every input is filled in and reflected by the latest simulation; - **Stale**: inputs changed after the latest simulation; - **Incomplete**: the **Threat Event Frequency** or the **Financial Impact** was never filled in; - **Not simulated**: no simulation has run yet; - **No mapped asset**: the scope is measured over its mapped assets and holds none. ![The Risk Scenarios of Grand Meridian France as cards: Ransomware on the Booking Platform at $254K a year, down $9K, and Data Breach on Guest Records, down since January, each with its ALE, its p10 to p90 band and a line of past prices.](https://filigran.io/docs/shots/89f983cd6173028fc159b8591d05b28f27896ccf489a87ad4a58ab35df34d62e.webp) ## Keep the price current {#keep-the-price-current} OpenCRQ prices a scenario again on its own when something its price depends on changes: findings, supporting assets, controls, threats or loss estimates, and once a day for what changes with time alone, such as threat activity. These automatic runs update the price only. A full run also recomputes the what-ifs: the technique values, the CVE values, the control levers and the treatment plans. **Run CRQ**, a control's posture declared on the risk scope, and a financial profile change that moves the scenario's loss estimates each ask for one. A control's strength or coverage changed for the whole tenant recomputes that control's levers only. A card whose figures are older than the price says **Computed on** a date **before the current ALE**, and offers to recompute them. To price a scenario right away, click **Run CRQ** in its header: the run appears in the **Simulation History**. **Run CRQ** waits while OpenCRQ weighs the scenario's threats, after it is created or when its threats change: its tabs then say **Weighing the threats for this scenario. This page updates on its own once it is done.** The [background processes reference](https://filigran.io/docs/reference/opencrq/processes/) lists what runs when. To change the name, description, owner or primary assets, open **More actions** in the header and choose **Edit**. To delete a scenario, open **More actions** on its card and choose **Delete**. **Example: Price the theft of the guest records** On 9 January 2026, the shared night.audit front-desk account exported guest records from Grand Meridian's booking platform at night. The risk manager adds the risk to the register of Grand Meridian France: | Step | Value | | --- | --- | | **Outcome** | **Data Breach & Resale** | | **Target Assets** | **Guest records**, under **Suggested for this outcome** | | **Name** | `Data Breach on Guest Records` | | **Description** | Cybercriminals reach the guest records the booking platform holds, copy them and resell them: 2.4 million guests across the EU to notify, with the data protection authorities, and claims to answer. | OpenCRQ prices it on 12 January, its TEF in **Auto** mode, read in the TEF catalogue for the scope's country, sector and size. After multi-factor authentication reaches every front-desk account on 2 March, the price falls, and stays there. On 12 April, the **CRQ** tab shows nearly every attack blocked before the objective. **What changed**, on its default **7 days**, compares the run of 2 March with the latest one: one new finding and no change of controls. When attacks rarely land, the mean can sit above the p90: nearly every world prices an expected loss close to zero, and a rare one tens of millions. The ransomware scenario beside it reads $254K with p10 and p90 both at $0, for that reason. For such a scenario, report the mean and the loss exceedance curve of its **Overview**, not the band. > **With XTM One: Ask XTM One to build or explain a scenario** > > With XTM One connected, an AI agent can create a risk scenario, run a CRQ simulation and read its latest run, for example to explain why the ALE of a scenario moved between two runs. When the agent asks before running tools, its changes to a scenario, its loss estimates or the risk tolerance wait for a person to approve them, unless a rule lets them run: see the [tool approvals](https://filigran.io/docs/xtm-one/administer/ai-governance/#approve-what-agents-do). ## What's next {#what-s-next} - [Set the threat event frequency](https://filigran.io/docs/opencrq/use/threats/threat-event-frequency/) of the scenario. - [Set what an attack costs with the financial profile](https://filigran.io/docs/opencrq/use/quantify/loss-drivers/). - [Choose the treatment plan that removes the most loss](https://filigran.io/docs/opencrq/use/decide/treatment-plans/). - [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/). --- # Find a scenario, an asset or a threat by its name > Search the risk scenarios, primary assets, supporting assets, threats, risk scopes and controls of a tenant by their name from the top bar, and open the one you need. - URL: https://filigran.io/docs/opencrq/use/search/ - Products: OpenCRQ 0.261123.0 - For: risk managers, CISOs and executives - Type: How-to guide The **Search the platform...** field, at the top of every page of a tenant, finds a risk scenario, a primary asset, a supporting asset, a threat, a risk scope or a control by its name. You open the scenario a colleague named in a meeting, or the server a finding mentions, without knowing which list holds it. The results come grouped by type, and the address keeps the search, to bookmark or send to a colleague. ## Before you start {#before-you-start} Every member of a tenant can search it: no capability is needed. The search covers the whole tenant you are in, whichever risk scope is selected, and finds only what you may read: - an asset or a threat that carries a marking you are not cleared for is not among the results, as in its own list: see [Limit what people see with markings](https://filigran.io/docs/opencrq/administer/users-and-roles/#limit-what-people-see-with-markings); - a threat from OpenCTI shows only when OpenCTI lets you read it: see [Which threats you see](https://filigran.io/docs/opencrq/use/threats/threat-center/#which-threats-you-see). The field is not on the pages of the platform administration, which belong to no tenant. ## Search the tenant {#search-the-tenant} 1. Click **Search the platform...** at the top of the screen. 2. Type part of the name you are looking for, and press Enter. The **Search** page opens, titled with your search, such as "Results for “booking”". 3. Click a match to open it, or **View all** on a card to see more matches of its type. ![The Search page for booking at Grand Meridian Hotels: the Risk Scenarios card with 1 match, Ransomware on the Booking Platform, the Primary Assets card with 1, Online booking platform, and the Assets card with 2, Booking database server and booking.grand-meridian.example.](https://filigran.io/docs/shots/1973557bf1abf16959696f0d5089d743167b47d947cef61e5ba4165ce01de59c.webp) Each card holds one type, with its number of matches beside its title, and lists its first ten matches in alphabetical order, controls in the order of their catalogue. A type with no match has no card. **View all** shows when a type has more than ten matches. The cross in the field, **Clear search**, empties it. | Card | A match opens | **View all** opens | | --- | --- | --- | | **Risk Scenarios** | The scenario | The list of risk scenarios, without the search | | **Primary Assets** | The primary asset | The list of primary assets, filtered on your search | | **Assets** | The supporting asset | The **Assets** list, filtered on your search | | **Threats** | The threat, in the threat center | The threat center, filtered on your search | | **Risk scopes** | The risk scope, on its home dashboard | The list of risk scopes, without the search | | **Controls** | The **Controls** list, filtered on the control's name | The **Controls** list, filtered on your search | The address of the page holds the search, such as `/search?search=booking` after the tenant's id. Whoever opens it sees only the matches they may read. ## How a name matches {#how-a-name-matches} - A scenario, a primary asset, an asset, a risk scope or a control matches when its name contains your text, wherever it stands. Case does not matter. - Accents do not matter either for scenarios, primary assets and assets: `hotel` finds a name that holds "hôtel". For risk scopes and controls, type the accents as the name holds them. - A threat matches when its name starts with your text, as in the threat center's own search: `ember` finds Ember Tide, `tide` does not. - An asset matches by the name the **Assets** list shows: its own name, or the one its source gave it when it has none. - The search reads names only, not descriptions, and takes your text as one piece, spaces included: `booking platform` finds the Online booking platform, not the Booking database server. Spaces before and after the text do not count, and the text holds 200 characters at most. ## Check that it works {#check-that-it-works} - Search for the exact name of a scenario you know: the **Risk Scenarios** card lists it. - When nothing matches, the page says "Nothing matches this search", and offers **Open risk scenarios** and **Open assets** to browse the tenant's lists. Check the spelling, type a shorter part of the name, and for a threat, its first word. - A threat or an asset you expect is missing while its name matches: it carries a marking you are not cleared for, or, for a threat from OpenCTI, OpenCTI does not let you read it. See [Before you start](#before-you-start). - The page opened without a search, from its address, shows "Search the platform": type your search in the field at the top. **Example: Find everything about the booking platform** Claire Morel, the cyber risk manager of Grand Meridian Hotels, prepares the steering committee on the ransomware risk. She wants every object of the tenant that concerns the booking platform, in France as in Spain. She clicks **Search the platform...**, types `booking`, and presses Enter. The page "Results for “booking”" shows three cards: | Card | Count | Matches | | --- | --- | --- | | **Risk Scenarios** | 1 | Ransomware on the Booking Platform | | **Primary Assets** | 1 | Online booking platform | | **Assets** | 2 | Booking database server, booking.grand-meridian.example | No threat name starts with "booking", and no risk scope or control name contains it: there is no other card. She opens Ransomware on the Booking Platform to read its price, then comes back with the browser's back button and opens booking.grand-meridian.example, to show the committee the chain behind the platform on its **Business dependencies** tab. She then types `booking platform`: the scenario and the primary asset remain, and the **Assets** card is gone, as neither asset's name holds both words in that order. ## What's next {#what-s-next} - [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/), to work on the scenario you found. - [Build the attack surface from your assets](https://filigran.io/docs/opencrq/use/attack-surface/assets/), to read an asset and its business dependencies. - [Follow the threats that target your scopes](https://filigran.io/docs/opencrq/use/threats/threat-center/), to filter the threats by more than their name. --- # Import compliance readiness from Drata > Mirror your ISO 27001 and SOC 2 readiness from Drata into OpenCRQ, so that the controls you price carry the evidence your compliance program already collects. - URL: https://filigran.io/docs/opencrq/use/sources/drata/ - Products: OpenCRQ 0.261123.0 - For: administrators, risk managers - Type: How-to guide Your compliance program already tracks, in Drata, which security controls are in place and backed by evidence. The Drata connector mirrors that readiness into OpenCRQ every day: your ISO 27001:2022 and SOC 2 frameworks with their requirements, and the Drata controls with their state. OpenCRQ then derives the strength and coverage of its own controls from the Drata controls mapped to each, so the price of your scenarios starts from evidence rather than from a declaration. This page connects a Drata account to a tenant. For how controls weigh in the price, read [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/). ## What the connector imports {#what-the-connector-imports} - **Two frameworks**: ISO 27001:2022 and SOC 2. Other frameworks of the account, ISO 27001:2013 included, are not imported. Each comes with its readiness as Drata reports it, and its requirements, each with its code, category, whether it is in scope and whether it is ready. An archived requirement is left out. - **The Drata controls of the account**, each with its code and name, whether it is ready, monitored, backed by evidence and by a policy, and the requirements it serves. Each run replaces the whole mirror with what Drata says at that moment. The connector writes nothing else: no asset and no finding. A change to the mirror then makes OpenCRQ derive again the strength and coverage of the controls Drata controls are mapped to, as [Where it shows, and what it changes](#where-it-shows-and-what-it-changes) describes. ## Where it shows, and what it changes {#where-it-shows-and-what-it-changes} - **Compliance** lists each framework beside your own assessments, with **Drata** as its **Source** and, as **Progress**, the share of its in-scope requirements that are ready, or **Nothing in scope**. Its page shows the **Requirements** and the **Controls** as Drata reports them, with **Open in Drata**. See [Measure your compliance maturity against a framework](https://filigran.io/docs/opencrq/use/defenses/compliance/). - Each OpenCRQ control that Drata controls are mapped to shows a **Drata evidence** section on its page, titled with how many of them are ready. It lists the mapped controls with their **Code**, the **Attested levels** of strength each one vouches for (**L1** to **L3**; hover a level to read it), their **Reach**, **Org-wide** or **Subset**, and their **State**, **Ready** or **Not ready**. **Not ready** narrows the list to the controls that fail. - The readiness of the mapped controls sets the **strength** and the **coverage** of the OpenCRQ control, on the axes left automatic. An axis you set by hand is never changed. A strength level holds when one of the Drata controls that attest it is ready, at least three in four of them are, and every level below holds too; a Drata control that fails on a subset only lowers coverage, not strength. When none of the mapped controls attests the base level, L1, the section says so and Drata gives the control no level. For strength, Drata's reading weighs twice as much as the answers of a published assessment that reach the same control, except when Drata's evidence cannot prove a higher level than it reads: answers that rate the control higher then count in Drata's place. For coverage, a reading Drata measured comes first. When a Drata control leaves the mirror, the axis it fed keeps its last value. The scenarios the control protects are then priced again. See [Set how strong your controls are and read how they held](https://filigran.io/docs/opencrq/use/defenses/controls/). ## Before you start {#before-you-start} - In OpenCRQ, your role has the **Manage Security** capability. - In Drata, an API key with read scopes on frameworks and controls. If the key restricts source IP addresses, allow the address OpenCRQ's deployment calls out from. - The deployment of OpenCRQ carries that key for your tenant, keyed by the tenant's id, the first segment of the address of OpenCRQ once you are signed in to that tenant: | Variable | Required | What it holds | | --- | --- | --- | | `CONNECTORS__DRATA____API_KEY` | Yes | The Drata API key. Pass it through a secret store | | `CONNECTORS__DRATA____URL` | No | The API of your Drata region: `https://public-api.drata.com` by default, `https://public-api.eu.drata.com` for an account hosted in the EU, `https://public-api.apac.drata.com` in APAC. A key used on the wrong region is rejected | | `CONNECTORS__DRATA____WORKSPACE_ID` | No | The Drata workspace to read, `1` by default. An account without several workspaces always uses `1` | Set the key whenever you set the URL or the workspace: either one without the key stops OpenCRQ at start. With no entry for the tenant, the **Drata** card stays on the **Available** tab of **Integrations** and its page reads **Unavailable**. See the [configuration reference](https://filigran.io/docs/reference/opencrq/configuration/#connectors). ## Turn the connector on {#turn-the-connector-on} 1. Open **Integrations**, stay on the **Deployed** tab, and click the **Drata** card, under **Compliance**. Its state reads **Not configured**. 2. Click **Configure**. 3. Under **Service account**, keep **Create a new service account**, named `Drata connector` by default, or choose **Use an existing service account**. The new account is created with the integration, in the **Connectors** group; a tenant with no account to reuse offers it alone. 4. Under **Schedule**, keep **Every day** in **Frequency**, at `06:00` in the `UTC` **Time zone**, or change them. **Every 6 hours** is the most often it runs; **Every week** asks for a **Day**, and **Manual only** runs it only when you ask. **Next run** shows when the schedule runs next. ![The Configure integration panel of the Drata connector: the Service account, and a schedule of every day at 06:00 in the UTC time zone, with the next run on Apr 13, 2026, 06:00 AM (UTC).](https://filigran.io/docs/shots/ec306352be05057cb70debf11b8e7d06b790828d040edf1c7b530cf77612faf8.webp) 5. Click **Save**, then **Sync now** to run it without waiting for the schedule. A run stops after 10 minutes, and a failed run is tried again, up to 3 attempts. **Example: Bring Grand Meridian's ISO 27001 readiness into its controls** Grand Meridian Hotels runs its ISO 27001:2022 program in Drata, on an account hosted in the EU. Before the budget review "Security budget 2026", the risk manager wants the controls of Grand Meridian to start from what Drata shows as ready. The Drata administrator creates an API key with read access to frameworks and controls. The platform engineer sets the entry of Grand Meridian's tenant, `01a043da-ff47-72c2-aaa4-7da56d85c83e`, with the EU API: ```yaml services: opencrq: environment: - CONNECTORS__DRATA__01a043da-ff47-72c2-aaa4-7da56d85c83e__API_KEY=${GRAND_MERIDIAN_DRATA_API_KEY} - CONNECTORS__DRATA__01a043da-ff47-72c2-aaa4-7da56d85c83e__URL=https://public-api.eu.drata.com ``` The workspace stays `1`, the default. In OpenCRQ, the administrator opens **Configure integration**, keeps the new service account `Drata connector` and **Every day** at `06:00` `UTC`, saves and clicks **Sync now**. ISO 27001:2022 appears in **Compliance** with **Drata** as its source. On the page of each mapped control, **Drata evidence** lists the Drata controls behind it, and the controls left automatic take the strength and coverage that evidence gives. Each morning at 06:00 UTC, a Drata control that turned ready raises the control it supports, and the scenarios it protects are priced again. ## Check that it works {#check-that-it-works} 1. On the connector page, the state reads **Healthy**, and **Last run**, **Status**, **Duration** and **Processed**, counted in frameworks, describe the run. The **Logs** tab shows what it did. 2. **Compliance** lists the frameworks with **Drata** as their source, and each framework's page gives its **Last synced** date. A run that fails at once with a rejected key often means the wrong region: check `CONNECTORS__DRATA____URL`. ## What's next {#what-s-next} - [Measure your compliance maturity against a framework](https://filigran.io/docs/opencrq/use/defenses/compliance/) - [Set how strong your controls are and read how they held](https://filigran.io/docs/opencrq/use/defenses/controls/) - [OpenCRQ connectors](https://filigran.io/docs/reference/opencrq/connectors/) and the [configuration reference](https://filigran.io/docs/reference/opencrq/configuration/#connectors) --- # Import assets from Microsoft Defender > Fill OpenCRQ's attack surface with the devices, accounts and software vulnerabilities Microsoft Defender sees, rated for criticality and exposure, and kept in step every six hours. - URL: https://filigran.io/docs/opencrq/use/sources/microsoft-defender/ - Products: OpenCRQ 0.261123.0 - For: administrators, platform engineers, risk managers - Type: How-to guide The attack run of OpenCRQ only uses the techniques your estate exposes, so the price of a scenario is as good as the inventory behind it. The Microsoft Defender connector imports that inventory from Microsoft Defender for Endpoint, Microsoft Entra ID and Intune, through the Microsoft Graph API: your devices with the CVEs Defender finds on them, the accounts of your directory, and who uses which workstation. It rates each one's criticality and exposure from what Defender knows, and keeps them in step on a schedule. This page registers the application in Microsoft Entra ID, gives its credentials to OpenCRQ and turns the connector on. For how assets weigh in the price, read [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/). ## What the connector imports {#what-the-connector-imports} The connector writes **supporting assets** and **findings**. Each run reads everything again, not only what changed. **Devices.** Every device in Defender's retention window, with or without a vulnerability, since Defender keeps matching new CVEs against the last software inventory of a device that went offline. Each comes with its name, its IP and MAC addresses from its latest snapshot, its operating system release and full version, its vendor, model and subtype (switch, router, smartphone...), which refines its subcategory. A device with no name is kept and shown under a name built from its vendor, model and address. - **Exposure** follows Defender's internet-facing flag: internet facing, internal, or unknown when Defender does not say. - **Criticality** is the highest that applies: very high for a domain controller, a certificate services, federation services or Entra Connect server; high for a hypervisor or a backup server; the asset value set in Defender (very high, high or low); or one band below its primary user's (see **Primary users**): high under a very high account, medium under a high one, nothing under medium or below, as [The criticality a device takes from its user](https://filigran.io/docs/opencrq/concepts/asset-consolidation/#the-criticality-a-device-takes-from-its-user) explains. A criticality set by hand on the device outranks them all. The role names no rule rates are written in the run's log. **Software vulnerabilities.** One finding per device and CVE, with the CVSS score Defender gives, whether an exploit is available, and the software that carries it. A CVE Defender stops reporting on a device is dismissed as **No longer reported by Microsoft Defender**. CVE details then come from the [public CVE sources](https://filigran.io/docs/opencrq/use/sources/vulnerability-sources/). **Accounts.** The accounts Defender's identity inventory and logon events show over the last 30 days. Their criticality is the highest of: - their directory roles, active or eligible: very high for the roles that can grant any other, such as Global Administrator, Privileged Role Administrator or User Administrator; high for Global Reader, Security Operator, Security Reader and any other administrator role, - the privileged groups their logon tokens carry: very high for Domain, Enterprise and Schema Admins, high for Group Policy Creator Owners, medium for Cert Publishers, - the criticality level Defender gives the account. Computer accounts, whose name ends in `$`, and service identities such as SYSTEM are not imported. Neither is a disabled account that carries no display name, user principal name, account name or SID: each run removes the ones a previous run left, unless someone added something to them by hand. **Primary users.** The person each workstation is assigned to, from Intune first, then from the registered owner in Entra ID. Without these sources, the run succeeds and no workstation gets a primary user. A machine that OpenAEV also reports becomes one asset when OpenCRQ recognizes it in both reports: see [How OpenCRQ recognizes one asset in two reports](https://filigran.io/docs/opencrq/concepts/asset-consolidation/#how-opencrq-recognizes-one-asset-in-two-reports) and [Import OpenAEV results](https://filigran.io/docs/opencrq/use/sources/openaev/). ## Before you start {#before-you-start} - In OpenCRQ, your role has the **Manage Security** capability. - In Microsoft Entra ID, an app registration with a client secret, and these Microsoft Graph **application** permissions, each with admin consent: | Permission | Required | What it reads | Without it | | --- | --- | --- | --- | | `ThreatHunting.Read.All` | Yes | Advanced Hunting: devices, vulnerabilities, accounts and logon events | The run fails | | `Device.Read.All` | No | Entra devices and their registered owners | No workstation gets a primary user from Entra ID | | `DeviceManagementManagedDevices.Read.All` | No | Intune managed devices and their primary user | Primary users come from Entra ID alone | ## Give OpenCRQ the credentials {#give-opencrq-the-credentials} The credentials are not stored in OpenCRQ's database: the deployment sets them per tenant, keyed by the tenant's id, the first segment of the address of OpenCRQ once you are signed in to that tenant. The connector turns available for a tenant once all three are set. Set them together: with one or two set, OpenCRQ does not start, and the error it stops on names the missing key under `connectors.microsoft_graph.`. | Variable | What it holds | | --- | --- | | `CONNECTORS__MICROSOFT_GRAPH____AZURE_TENANT_ID` | The ID of your Microsoft Entra tenant | | `CONNECTORS__MICROSOFT_GRAPH____CLIENT_ID` | The application (client) ID of the app registration | | `CONNECTORS__MICROSOFT_GRAPH____CLIENT_SECRET` | Its client secret. Pass it through a secret store | With none of them set, the Microsoft Defender card stays on the **Available** tab of **Integrations**, and its page reads **Unavailable**: ![The Microsoft Defender connector page before its credentials are set: Unavailable, the notice to add it to the deployment configuration, the domain Vulnerability, a scheduled pull whose scope is supporting assets and findings, and a schedule of every 6 hours with no run yet.](https://filigran.io/docs/shots/136a9d99fa632f8c926dfbd77a98b90b4bb7aeda61cc5c43ef2c91e223012ce1.webp) See the [configuration reference](https://filigran.io/docs/reference/opencrq/configuration/#connectors). ## Turn the connector on {#turn-the-connector-on} 1. Open **Integrations**, stay on the **Deployed** tab, and click the Microsoft Defender card, under **Vulnerability**. Its state reads **Not configured**. 2. Click **Configure**. 3. Under **Service account**, keep **Create a new service account**, named `Microsoft Defender connector` by default, or choose **Use an existing service account**. The new account is created with the integration, in the **Connectors** group; a tenant with no account to reuse offers it alone. The connector writes the assets and findings as this account. 4. Under **Schedule**, keep **Every 6 hours** in **Frequency**, or choose another: from **Every hour** to **Every week**, or **Manual only**. A run reads the whole estate, which takes minutes on a large tenant: run it more often only if the estate changes faster. 5. Click **Save**, then **Sync now** to run it without waiting for the schedule. A run stops after 30 minutes, and a failed run is tried again, up to 3 attempts. The **Works** tab lists the runs in progress and the completed ones. A primary user source that refuses for lack of consent, or does not answer, such as Intune on a tenant without its license, does not fail the run: the primary users it named stay as they were. **Example: Import Grand Meridian's hotels from Defender** Grand Meridian Hotels manages the workstations of its front desks and the servers of its booking platform in Microsoft Defender for Endpoint, and assigns each front-desk workstation in Intune. The risk manager wants the booking servers that face the internet, and the CVEs on them, in the attack surface of Grand Meridian France. In Microsoft Entra ID, the administrator registers the application `OpenCRQ Defender connector`, creates a client secret, and grants `ThreatHunting.Read.All`, `Device.Read.All` and `DeviceManagementManagedDevices.Read.All` with admin consent. The platform engineer sets the entry of Grand Meridian's tenant, `01a043da-ff47-72c2-aaa4-7da56d85c83e`: ```yaml services: opencrq: environment: - CONNECTORS__MICROSOFT_GRAPH__01a043da-ff47-72c2-aaa4-7da56d85c83e__AZURE_TENANT_ID=${GRAND_MERIDIAN_ENTRA_TENANT_ID} - CONNECTORS__MICROSOFT_GRAPH__01a043da-ff47-72c2-aaa4-7da56d85c83e__CLIENT_ID=${GRAND_MERIDIAN_DEFENDER_CLIENT_ID} - CONNECTORS__MICROSOFT_GRAPH__01a043da-ff47-72c2-aaa4-7da56d85c83e__CLIENT_SECRET=${GRAND_MERIDIAN_DEFENDER_CLIENT_SECRET} ``` In OpenCRQ, the administrator opens **Configure integration**, keeps the new service account `Microsoft Defender connector` and **Every 6 hours**, saves and clicks **Sync now**. The booking servers arrive as internet facing when Defender flags them so, each with the CVEs Defender finds on it, and the domain controllers of the chain as very high criticality. The front-desk accounts arrive with the workstation each one uses. Every 6 hours, a CVE patched on a server is dismissed and the scenarios that reach it are priced again. ## Check that it works {#check-that-it-works} 1. On the connector page, the state reads **Healthy**, and **Last run**, **Status**, **Duration** and **Processed** describe the run. 2. **Assets** lists the devices and accounts, and **Findings** their CVEs. 3. The **Logs** tab gives, at the end of the accounts, how many disabled accounts with no identifying data were skipped and how many assets were removed. It keeps the last runs only. If the run fails at once, check the three variables and the consent for `ThreatHunting.Read.All`. ## What's next {#what-s-next} - [Build the attack surface from your assets](https://filigran.io/docs/opencrq/use/attack-surface/assets/) - [Review the findings on your assets](https://filigran.io/docs/opencrq/use/attack-surface/findings/) - [How CVE sources weigh your vulnerabilities](https://filigran.io/docs/opencrq/use/sources/vulnerability-sources/) - [OpenCRQ connectors](https://filigran.io/docs/reference/opencrq/connectors/) and the [configuration reference](https://filigran.io/docs/reference/opencrq/configuration/#connectors) --- # Import OpenAEV results > Bring the assets OpenAEV knows and the outcome of its simulations into OpenCRQ, so that your controls are priced on how they held when tested. - URL: https://filigran.io/docs/opencrq/use/sources/openaev/ - Products: OpenAEV 3.261118.0, OpenCRQ 0.261123.0 - For: administrators, security validation engineers, risk managers - Type: How-to guide A control declared strong is an assumption until an attack tests it. The OpenAEV connector imports the outcome of the simulations OpenAEV ran on your assets: which technique was prevented or detected, by which kind of security platform, and which CVEs OpenAEV found. OpenCRQ lands them as findings on your assets and audits your controls with them, technique by technique: where a control held less often than you declared, the price of a scenario reads it weaker. This page connects an OpenAEV instance to a tenant and says what comes in. For the model behind the price, read [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/). ## What the connector imports {#what-the-connector-imports} - **The asset inventory of OpenAEV**: every asset it knows, whatever its category and whether or not a simulation targeted it, except its security platforms, which detect rather than get attacked. Each comes with its name, category, criticality, internet exposure and tags; an endpoint with its hostname, addresses, platform and architecture, and the cloud provider, type and region when it has them; an AI target with its provider, endpoint, model and modality. - **The results of finished simulations**, per asset, scenario, technique and expectation (prevention or detection), one per type of security platform that reported on it, such as an EDR or a SIEM. A technique a platform type did not stop counts as exposed. Each result keeps the link to its simulation and its inject. A simulation that is scheduled, running, paused or canceled brings nothing yet. - **The CVEs OpenAEV found on each asset**, from its findings. - **The markings of each asset**, when OpenAEV enforces markings, that is when its `MARKING` preview feature is on. OpenCRQ copies the marking definitions the OpenAEV user is cleared for, and a member reads an asset only when cleared for all its markings: see [Limit what people see with markings](https://filigran.io/docs/opencrq/administer/users-and-roles/#limit-what-people-see-with-markings). A marking OpenCRQ cannot match hides the asset from everyone but the super administrator. With markings off in OpenAEV, its default, every asset comes unmarked, and every member of the tenant reads it, as every user of OpenAEV does. Two things are not imported: - **The posture score** of an asset. OpenCRQ computes the **OpenAEV Posture** of an asset's page from what the sync stored: how many of its OpenAEV findings held at their latest test, and how many found it exposed. It never asks OpenAEV live, and the tile stays empty until an OpenAEV test reports on the asset. - **Credentials of AI targets**: their token and configuration are never read into OpenCRQ. A machine that OpenAEV and Microsoft Defender both report becomes one asset in OpenCRQ when it recognizes it in both reports, such as through the Defender device id the OpenAEV agent of a Defender executor carries: see [How OpenCRQ recognizes one asset in two reports](https://filigran.io/docs/opencrq/concepts/asset-consolidation/#how-opencrq-recognizes-one-asset-in-two-reports) and [Import assets from Microsoft Defender](https://filigran.io/docs/opencrq/use/sources/microsoft-defender/). ## How often it runs {#how-often-it-runs} The connector is a job of the tenant, run **Every hour** by default. You can set another schedule, down to every hour, or **Manual only**, and **Sync now** runs it at any time. With OpenAEV's default settings, each run: 1. reads the whole inventory of OpenAEV again, 2. reads the CVE findings updated since the last completed run, never more than 7 days back, 3. reads the simulations finished since the last completed run, the oldest first, never more than 7 days back. The first run therefore reads the CVE findings and the simulations of the last 7 days, not older ones, 4. retires what a newer simulation of the same scenario no longer reports on an asset it played: the finding is dismissed as **No longer reported by OpenAEV**, and comes back by itself if OpenAEV reports it again, 5. fetches the description of the assets OpenAEV serves one by one, such as web applications and identities, within a budget of 500 calls per run: see [Limits on a large estate](#limits-on-a-large-estate). A run stops after 30 minutes and the next one resumes where it stopped. A run that fails is tried again, up to 3 attempts. A result on an asset the inventory did not return is dropped, not imported on an asset created on the spot. When OpenAEV serves its snapshot export, the connector reads it instead, at the same schedule. OpenAEV serves it only with a preview feature on, which it leaves off by default and xtm-docker turns on: see [Read the snapshot export of OpenAEV](#read-the-snapshot-export-of-openaev). ## Before you start {#before-you-start} - In OpenCRQ, your role has the **Manage Security** capability, to change the connector's account or schedule. - In OpenAEV, a user for OpenCRQ whose role has these capabilities: - **Access assets**, to read the inventory. Without it, the run fails. - **Access findings**, to read the CVEs. Without it, the run brings no CVE, and the next run reads the same window again. - **Access assessment**, so that it sees every scenario and simulation of the OpenAEV tenant. Without it, the user sees only the simulations it was granted, and no result arrives for the others, with no error to say why. When OpenAEV serves its snapshot export, the role needs another capability: see [Read the snapshot export of OpenAEV](#read-the-snapshot-export-of-openaev). - The deployment of OpenCRQ carries the OpenAEV URL and that user's token for your tenant: | Variable | What it holds | | --- | --- | | `CONNECTORS__OPENAEV____URL` | The base URL of the OpenAEV instance | | `CONNECTORS__OPENAEV____TOKEN` | The API token of the OpenAEV user. Pass it through a secret store | The tenant's id is the first segment of the address of OpenCRQ once you are signed in to that tenant. Set both together, with a valid URL: with one alone, OpenCRQ does not start. Until the deployment carries them, the connector page shows **Unavailable** and says **Add this connector to your deployment configuration to use it.** See the [configuration reference](https://filigran.io/docs/reference/opencrq/configuration/#connectors). ## Connect OpenAEV to your tenant {#connect-openaev-to-your-tenant} Once the variables are set, OpenCRQ binds the connector at its next start, under a service account it creates, `OpenAEV (deployment)`, in the **Connectors** group. The **OpenAEV** card, under **Simulation** on the **Deployed** tab of **Integrations**, then reads **Never synced**, and the connector runs **Every hour**. An account you bound yourself is never replaced at start. To change the account or the schedule: 1. Open **Integrations**, stay on the **Deployed** tab, and click the **OpenAEV** card, under **Simulation**. 2. Click **Configure**. 3. Under **Service account**, keep the account the connector writes the findings as, such as `OpenAEV (deployment)`, or choose another: **Use an existing service account** picks one of the tenant's accounts, and **Create a new service account** creates one with the integration, in the **Connectors** group, `OpenAEV connector` by default. 4. Under **Schedule**, keep **Every hour** in **Frequency**, or choose another. **Next run** shows when the schedule runs next. ![The Configure integration panel of the OpenAEV connector: the Service account to choose, and the Schedule with Every hour as the frequency and the next run on Apr 12, 2026, 11:00 AM (UTC).](https://filigran.io/docs/shots/60039d3f263df3a06b723b279284a0413734419112d4b3fe1a8f2d64e465debb.webp) 5. Click **Save**. The state reads **Never synced**. 6. Click **Sync now** to run it without waiting for the schedule. The state reads **Syncing**, then **Healthy**. **Example: Price the front desks on the latest phishing simulation** Grand Meridian's validation team simulates Velvet Harbor's phishing and credential theft on the front-desk workstations of its French hotels, in an OpenAEV instance at `https://openaev.example.com`. The risk manager wants the data breach on guest records priced on what those results show, not on declared strengths alone. In OpenAEV, the administrator gives a user `OpenCRQ reader` a role with **Access assets**, **Access findings** and **Access assessment**, and generates its token. The platform engineer sets the entry of Grand Meridian's tenant, `01a043da-ff47-72c2-aaa4-7da56d85c83e`: ```yaml services: opencrq: environment: - CONNECTORS__OPENAEV__01a043da-ff47-72c2-aaa4-7da56d85c83e__URL=https://openaev.example.com - CONNECTORS__OPENAEV__01a043da-ff47-72c2-aaa4-7da56d85c83e__TOKEN=${GRAND_MERIDIAN_OPENAEV_TOKEN} ``` After the restart, the **OpenAEV** card reads **Never synced**, bound to `OpenAEV (deployment)`. The administrator opens it and clicks **Sync now**. The first run imports the workstations OpenAEV knows, the CVEs it found or updated on them in the last 7 days, and the simulations finished in the last 7 days. Each technique the EDR did not prevent, or did not detect, becomes a finding on the workstation it reached. On those techniques, the EDR's **Engine efficacy** falls below its declaration, by as much as the tests fell short and in proportion to the share of the scope's hosts they ran on. The scenarios that reach the front desks are priced again on that efficacy. Every hour after that, a new simulation of the same scenario updates the findings. This is OpenAEV with its default settings. xtm-docker turns on OpenAEV's snapshot export: there, the role takes **Access observation snapshots** instead of **Access findings**, and the first run reads the whole export, not the last 7 days (see [Read the snapshot export of OpenAEV](#read-the-snapshot-export-of-openaev)). ## Check that it works {#check-that-it-works} 1. On the connector page, the state reads **Healthy** and the **Overview** tab shows the **Last run**, its **Status**, its **Duration** and the number **Processed**. 2. The **Works** tab lists each run, and the **Logs** tab what it did. 3. **Assets** lists the assets of OpenAEV, and **Findings** the results and the CVEs. If no result arrives while the inventory does, check that the user's role has **Access assessment**: without it, OpenAEV returns no simulation and no error. ## Start over {#start-over} **Reset state**, in the **More actions** menu of the connector page, makes the next run read again everything the connector can see, instead of what changed since the last run: the CVE findings and the simulations of the last 7 days, or the whole snapshot export when OpenAEV serves it. Nothing already imported is removed. It requires the **Manage Security** capability. ## Read the snapshot export of OpenAEV {#read-the-snapshot-export-of-openaev} When OpenAEV's `BULK_SNAPSHOT_EXPORT` preview feature is on (`openaev.enabled-dev-features=BULK_SNAPSHOT_EXPORT` in OpenAEV's configuration), OpenAEV serves a snapshot export of its results and CVEs. OpenAEV leaves it off by default; xtm-docker turns it on. The connector then reads that export instead of the simulations and the findings. Nothing is set in OpenCRQ: each run asks OpenAEV for the export first, so turning the feature on or off in OpenAEV takes effect at the next run. A `404` on the snapshot routes means the feature is off: the run reads the simulations and the findings, as in [How often it runs](#how-often-it-runs), and the log says `OpenAEV answers 404 on the snapshot routes, its BULK_SNAPSHOT_EXPORT preview feature is off: reading exercises and findings instead`. A `403` is not taken for a feature that is off: see the capability below. While a run is in progress, the **Current step** of its row in the **Works** tab says which way it reads: a run that reads the simulations and the findings starts with `OpenAEV snapshot export is off, reading exercises and findings`, and a run that reads the export shows `Reading OpenAEV attack observations of tenant …` when it reaches the results. The role of the OpenAEV user then needs: - **Access observation snapshots**, to read the export. OpenAEV shows this capability in its role screen only while the feature is on. Without it, OpenAEV answers `403`: the run fails at once, without a new attempt and without falling back to the simulations and the findings, and says `OpenAEV refused the snapshot request: the account lacks the ACCESS_SNAPSHOT_OBSERVATION capability`. - **Access assets** and **Access assessment**, as in [Before you start](#before-you-start). **Access findings** is not used. Each run then: 1. rebuilds the inventory once a day, not at every run. With it, the connector imports the asset groups of OpenAEV with their members, and the attack paths of its simulations: see [Find the assets of a group](https://filigran.io/docs/opencrq/use/attack-surface/assets/#find-the-assets-of-a-group) and [Read access relations and events](https://filigran.io/docs/opencrq/use/attack-surface/assets/#read-access-relations-and-events). A run also rebuilds it when the export names an asset the connector does not have on file; an observation whose asset is still unknown afterwards is skipped, 2. reads the results and the CVEs that changed since the previous run, from where it stopped, with no 7-day window, 3. reads the whole export again every 7 days. That full read retires the assets, scenarios and techniques OpenAEV deleted only when, at its end, OpenAEV reports its snapshot ready. Otherwise nothing is removed, and the connector reads the whole export again a day later. The first run, and the first run after **Reset state**, read the whole export: results and CVEs older than 7 days arrive too. On a large estate, this takes several runs. ## What goes stale, and when {#what-goes-stale-and-when} A result or a CVE that OpenAEV no longer reports is not deleted: its finding is dismissed as **No longer reported by OpenAEV**, and comes back by itself if OpenAEV reports it again. What dismisses it depends on what changed in OpenAEV, and on whether the connector reads the [snapshot export](#read-the-snapshot-export-of-openaev): | What changed in OpenAEV | Snapshot export off | Snapshot export on | | --- | --- | --- | | A scenario was played again | Once the new simulation has finished, the results it no longer reports on the assets it played are dismissed | The same: only a finished simulation that started later replaces the results of an earlier one, and a replay still running retires nothing | | A CVE is no longer found on an asset | A run that brings at least one CVE for an asset dismisses the CVEs of that asset it did not bring. An asset that brings no CVE at all keeps the ones it had | The same between two full reads. A full read that ends with the snapshot ready dismisses every CVE it did not bring | | An asset was deleted | Its CVEs are dismissed by the next complete inventory, at every run. Its results stay | Its CVEs are dismissed by the next complete inventory, once a day; its results, by the next full read that ends with the snapshot ready | | A scenario was deleted | Its results stay | Its results are dismissed by the next full read that ends with the snapshot ready | An inventory is complete when it read every page, listed at least one asset, and listed as many assets as OpenAEV counted. The connector then asks OpenAEV by id for each asset it no longer listed, and dismisses only the CVEs of those OpenAEV no longer finds. When the count changed while the inventory was read, the log says `OpenAEV asset inventory changed while it was read: no asset is unregistered in this run`, and no CVE is dismissed for a missing asset in that run. ## Limits on a large estate {#limits-on-a-large-estate} - **The inventory reads at most 1,000 pages of 100 assets** per OpenAEV tenant. Past 100,000 assets it is truncated, the log says `OpenAEV asset inventory truncated: pagination reached max pages`, and the results and CVEs of the assets left out are dropped. A truncated inventory dismisses nothing for a missing asset. - **The descriptions of the assets OpenAEV serves one by one** are fetched 8 calls at a time, within 500 calls per run, shared evenly among the OpenAEV tenants, what one tenant leaves going to the next. The assets never described come first, then the ones described longest ago; an asset described less than 24 hours ago waits. With one OpenAEV tenant, N such assets take about N/500 runs to be described. - **A run stops after 30 minutes**, and the next run resumes where it stopped: the first sync of a large estate takes several runs. ## What's next {#what-s-next} - [Set how strong your controls are and read how they held](https://filigran.io/docs/opencrq/use/defenses/controls/) - [Review the findings on your assets](https://filigran.io/docs/opencrq/use/attack-surface/findings/) - [Build the attack surface from your assets](https://filigran.io/docs/opencrq/use/attack-surface/assets/) - [OpenCRQ connectors](https://filigran.io/docs/reference/opencrq/connectors/) and the [configuration reference](https://filigran.io/docs/reference/opencrq/configuration/#connectors) --- # Connect OpenCTI with a Live Stream > Feed OpenCRQ the threat actors, campaigns and techniques your OpenCTI knows, through a Live Stream OpenCRQ creates at start or one of your own, kept current as analysts change them. - URL: https://filigran.io/docs/opencrq/use/sources/opencti/ - Products: OpenCTI 7.261119.0, OpenCRQ 0.261123.0 - For: administrators, risk managers, CTI team leads - Type: How-to guide OpenCRQ prices a risk scenario from the threat actors that target your sector and your country and pursue the scenario's outcome. The OpenCTI connector subscribes to an OpenCTI Live Stream and keeps those threats current: a threat created, edited, renamed, merged or deleted in OpenCTI changes the same way in OpenCRQ, and the scenarios it reaches are priced again. Once the deployment gives OpenCRQ the URL of your OpenCTI and a token, OpenCRQ creates its own stream there at start and binds it to your tenant. This page sets that up, shows how to bind a stream of your own instead, and checks what arrives. To see where threats weigh in the price, read [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/). **Diagram: How the threats of an OpenCTI Live Stream reach the risk scenarios of OpenCRQ** - OpenCTI: Knowledge base (Threats and what they target), Live Stream (Filtered, read with a token) - OpenCRQ: OpenCTI connector (One per tenant), Threats (Techniques, sectors, countries, CVEs) - Pricing: Risk scenarios (Actors admitted by sector, country, outcome) Connections: - Knowledge base → Live Stream: matches the filter - Live Stream → OpenCTI connector: replay, then live - OpenCTI connector → Live Stream: created at start - OpenCTI connector → Threats: mirrors - Threats → Risk scenarios: priced again ## What the connector reads {#what-the-connector-reads} The connector reads four kinds of object from the stream: - **Threats**: intrusion sets, threat actors (groups and individuals) and campaigns. OpenCRQ stores a threat actor group and an individual threat actor as one threat type. - **`uses` and `targets` relationships** of those threats: the techniques they use, and the sectors, countries and CVEs they target. These are the claims OpenCRQ scores. - **`attributed-to` relationships** between two threats, such as a campaign attributed to an intrusion set. One toward anything else is ignored. - **The identities that authored those relationships**, so that each claim is attributed to who made it. When the stream carries them, the connector also reads the malware a threat `uses`, with its name and types, and the reports that cite a threat, with their title, labels, publication date and the start of their description. OpenCRQ reads them with the threat's own description, motivations and goals to give each threat a probability per attack outcome. A stream without them still delivers, and each threat is then assessed from less. The connector asks OpenCTI for the relationships its rules engine inferred too. Whether a claim counts is decided by the confidence threshold of the tenant, in **Settings > Engine > Threat Relevance**: see [Set how OpenCRQ weighs threats, controls and assets](https://filigran.io/docs/opencrq/configure/quantification-engine/). ## Before you start {#before-you-start} - In OpenCTI, a user for OpenCRQ, with the **Access data sharing** capability and read access to every marking definition applied to the threats, their relationships and the identities that authored them. OpenCTI leaves out of the stream a relationship whose source or target this user cannot read, and OpenCRQ cannot tell that gap from a narrow filter. - For OpenCRQ to create its Live Stream itself, the same user also has **Manage data sharing** (`TAXIIAPI_SETCOLLECTIONS`), or **Bypass all capabilities** (`BYPASS`). Without either, you create the stream and bind it yourself. - For a person to open their threats, CVEs and assets in OpenCTI from OpenCRQ, they have an OpenCTI account under the same email address as in OpenCRQ: see [Open the same object in OpenCTI](#open-the-same-object-in-opencti). - The deployment of OpenCRQ carries the OpenCTI URL and that user's token for your tenant. Set both together, with a valid URL: with one alone, OpenCRQ does not start. Until the deployment carries them, the connector page shows **Unavailable** and says **Add this connector to your deployment configuration to use it.** See [Give OpenCRQ the URL and the token](#give-opencrq-the-url-and-the-token). - To bind a stream yourself, turn the connector on or off, reconnect it or reset it, your role in OpenCRQ has the **Manage Security** capability. To create a stream of your own, you have **Manage data sharing** in OpenCTI. ## Give OpenCRQ the URL and the token {#give-opencrq-the-url-and-the-token} The credentials are not stored in OpenCRQ's database: the deployment sets them per tenant, as two environment variables keyed by the tenant's id, and the connector reads that tenant's entry only. The tenant's id is the first segment of the address of OpenCRQ once you are signed in to that tenant. Until the deployment carries them, **Configure** on the **OpenCTI** tile of the **Threats** step of **Get started** shows both variables with that id filled in, and **Copy** copies them. For the tenant OpenCRQ creates at its first boot, the id is `INITIAL_TENANT__ID`, so you can write the variables before that boot: see [Run several tenants in one platform](https://filigran.io/docs/opencrq/administer/tenants/). | Variable | What it holds | | --- | --- | | `CONNECTORS__OPENCTI____URL` | The base URL of the OpenCTI instance | | `CONNECTORS__OPENCTI____TOKEN` | The API token of the OpenCTI user for OpenCRQ. Pass it through a secret store | After a restart with both set, the **OpenCTI** card moves to the **Deployed** tab of **Integrations**, and OpenCRQ sets up its stream. See the [configuration reference](https://filigran.io/docs/reference/opencrq/configuration/#connectors) for every connector's variables. ## Let OpenCRQ create and bind its stream {#let-opencrq-create-and-bind-its-stream} At every start, for each tenant whose URL and token the deployment carries, OpenCRQ looks in that OpenCTI for the Live Stream it manages: - **When there is none**, it creates it, named `OpenCRQ threat feed`, started and not public. Its filter is the one of [Create your own Live Stream in OpenCTI](#create-your-own-live-stream-in-opencti), with `Report` among the entity types and `Malware` among the targets of `uses`. - **When its filter differs from OpenCRQ's**, because someone edited it in OpenCTI or OpenCRQ changed it in a new version, OpenCRQ puts its own filter back. The stream's description in OpenCTI warns that edits to its filter are replaced at OpenCRQ's next start. OpenCRQ recognizes the stream by a marker in that description, not by its name: a renamed stream is still found. - **When the tenant has no stream and no service account bound**, OpenCRQ binds that stream under a service account it creates, `OpenCTI (deployment)`, in the **Connectors** group, and turns the connector on. The stream then replays its history: see [What comes in, and when](#what-comes-in-and-when). A binding made in **Configure integration** is never replaced at start, though OpenCRQ still creates or updates its own stream in OpenCTI. **Configure** binds any other stream at any time: see [Bind the stream to your tenant](#bind-the-stream-to-your-tenant). A tenant that does not exist yet when OpenCRQ starts is skipped until the next start. Every object the stream brings keeps its OpenCTI markings, so a person reads a threat only when OpenCTI lets them: see [Limit what people see with markings](https://filigran.io/docs/opencrq/administer/users-and-roles/#limit-what-people-see-with-markings). When the token's user lacks **Manage data sharing**, OpenCRQ creates and updates nothing in OpenCTI. A managed stream that is already current is still bound, since OpenCRQ does not need to change it. Otherwise, on a tenant with nothing bound, the connector stays idle and its **Stream** tab says **OpenCRQ could not create its Live Stream in OpenCTI: the deployment's token lacks the Manage data sharing capability.** With **Manage Security**, the banner adds what to do: grant the capability to that token's user and restart OpenCRQ, or press **Configure** to choose a stream. ## Create your own Live Stream in OpenCTI {#create-your-own-live-stream-in-opencti} Create a stream yourself when the token cannot have **Manage data sharing**, or when you want a narrower filter than OpenCRQ's, such as intrusion sets alone. You then bind it in **Configure integration**. OpenCRQ requests the stream without the objects each event depends on, so OpenCTI sends what the filter admits and nothing else. The filter must therefore admit the relationships, not only the threats. For each threat type it admits (`Intrusion-Set`, `Threat-Actor-Group`, `Threat-Actor-Individual`, `Campaign`), it admits: - `uses` from that type to an `Attack-Pattern`, - `targets` from that type to a `Location`, a `Sector` and a `Vulnerability`, - and, when it admits two threat types or more, `attributed-to` from a campaign to an intrusion set or a threat actor, and from an intrusion set to a threat actor. This filter is a group of alternatives, each one a set of conditions that all apply: ```json { "mode": "or", "filters": [], "filterGroups": [ {"mode": "and", "filterGroups": [], "filters": [ {"key": ["entity_type"], "operator": "eq", "mode": "or", "values": ["Intrusion-Set", "Threat-Actor-Group", "Threat-Actor-Individual", "Campaign"]} ]}, {"mode": "and", "filterGroups": [], "filters": [ {"key": ["entity_type"], "operator": "eq", "mode": "or", "values": ["targets"]}, {"key": ["fromTypes"], "operator": "eq", "mode": "or", "values": ["Intrusion-Set", "Threat-Actor-Group", "Threat-Actor-Individual", "Campaign"]}, {"key": ["toTypes"], "operator": "eq", "mode": "or", "values": ["Location", "Sector", "Vulnerability"]} ]}, {"mode": "and", "filterGroups": [], "filters": [ {"key": ["entity_type"], "operator": "eq", "mode": "or", "values": ["uses"]}, {"key": ["fromTypes"], "operator": "eq", "mode": "or", "values": ["Intrusion-Set", "Threat-Actor-Group", "Threat-Actor-Individual", "Campaign"]}, {"key": ["toTypes"], "operator": "eq", "mode": "or", "values": ["Attack-Pattern"]} ]}, {"mode": "and", "filterGroups": [], "filters": [ {"key": ["entity_type"], "operator": "eq", "mode": "or", "values": ["attributed-to"]}, {"key": ["fromTypes"], "operator": "eq", "mode": "or", "values": ["Campaign", "Intrusion-Set"]}, {"key": ["toTypes"], "operator": "eq", "mode": "or", "values": ["Intrusion-Set", "Threat-Actor-Group", "Threat-Actor-Individual"]} ]} ] } ``` To bring intrusion sets alone, keep only `Intrusion-Set` in the three lists of threat types and drop the `attributed-to` group. A relationship is named by `entity_type` and narrowed by `fromTypes` and `toTypes`: the stream filter has no `relationship_type` key. The filter editor of the OpenCTI interface does not build groups inside a group, so create the stream with the GraphQL API of OpenCTI, as a user with **Manage data sharing**. The `filters` field takes the filter above as a string; `stream_live: true` creates the stream already started: ```graphql mutation CreateRiskQuantificationStream($input: StreamCollectionAddInput!) { streamCollectionAdd(input: $input) { id name stream_live } } ``` The stream then shows in **Data > Data sharing > Live streams** of OpenCTI, with its **Stream ID**. Leave out origin filters: OpenCTI does not replay the history of a stream that has them, so the threats already in OpenCTI would never reach OpenCRQ. For the rest of what a stream shares, see [Share knowledge with your security tools](https://filigran.io/docs/opencti/use/share/feeds/#create-a-live-stream). ## Bind the stream to your tenant {#bind-the-stream-to-your-tenant} Bind a stream yourself when OpenCRQ could not create its own, when you created a stream of your own, or to change the stream a tenant reads. The connector writes the threats it receives as a service account of the tenant: the panel creates one with the integration, or binds one the tenant already has. See [Let integrations sign in with service accounts](https://filigran.io/docs/opencrq/administer/service-accounts/). 1. Open **Integrations**, stay on the **Deployed** tab, and click the **OpenCTI** card, under **Threat intelligence**. 2. Click **Configure**. The **Configure integration** panel lists the Live Streams the token can read. 3. Choose the stream in **Live Stream**. OpenCRQ judges its filter before you save: **Delivers threat actors** when it admits everything the connector reads. The filter shows below, in a **Readable** and a **Raw** tab. 4. Under **Service account**, choose the account the connector writes as: - **Create a new service account**: OpenCRQ creates it in the **Connectors** group when you save, under the **Service account name** you enter, `OpenCTI connector` by default. - **Use an existing service account**: pick one of the tenant's accounts in **Service account**. A tenant with no account to reuse offers the new one alone. A connector that already writes as an account opens on that account. 5. Click **Save**. The connector turns on and reads the stream from its beginning. ![The Configure integration panel of the OpenCTI connector: the Enabled switch, the Live Stream Threats for risk quantification with the notice that its filter admits threat actors, its filter in readable form, one group of conditions per kind of object, and under Service account, Use an existing service account chosen with the account OpenCTI connector.](https://filigran.io/docs/shots/28e86b757b745025e65280baf882d396b46bcd01a0dcea4f311ac9e2bd18b200.webp) On a new tenant where OpenCRQ bound no stream at start, the **Threats** step of **Get started** offers the same fields: click **Configure** on the **OpenCTI** tile, choose the **Live Stream** and the **Service account**, and click **Save**. **Follow in Integrations** opens the connector's page. Without **Manage Security**, the panel it opens says **An administrator configures this connector.** A judgment other than **Delivers threat actors** is advice, not a block: you can still save. | Judgment | What it means | What to do | | --- | --- | --- | | **Incompatible filter** | The filter admits threats but leaves out at least one relationship the connector reads. The notice names which ones, and what will not arrive | Widen the filter in OpenCTI | | **No threat actors** | The filter admits no threat type, so nothing would arrive | Choose another stream, or widen this one | | **Stopped in OpenCTI** | The stream refuses connections | Start it in OpenCTI | | **Cannot be judged** | The filter uses conditions OpenCRQ does not evaluate | Read the filter shown and decide | A stream with origin filters also shows **This stream replays no history**: only what OpenCTI publishes from then on arrives. Once the connector is configured, the panel shows an **Enabled** switch. Turning it off stops reading the stream and keeps its position. **Example: Feed Grand Meridian the threats Example CERT tracks** Grand Meridian Hotels prices the risk that Velvet Harbor and Ember Tide put on its hotels. Its OpenCTI instance, at `https://opencti.example.com`, holds what Example CERT shares about both intrusion sets. In OpenCTI, the administrator creates the stream with the mutation above and these values: **Name** `Threats for risk quantification`, **Description** `Intrusion sets, threat actors and campaigns with what they use and target, read by OpenCRQ for Grand Meridian Hotels.`, not public, started, and the four-group filter of this page. A user `OpenCRQ reader` with **Access data sharing**, cleared for every marking Example CERT uses, holds the token. Example CERT does not grant it **Manage data sharing**, so OpenCRQ does not create a stream of its own. The platform engineer sets the tenant's entry, `01a043da-ff47-72c2-aaa4-7da56d85c83e` being Grand Meridian's tenant id: ```yaml services: opencrq: environment: - CONNECTORS__OPENCTI__01a043da-ff47-72c2-aaa4-7da56d85c83e__URL=https://opencti.example.com - CONNECTORS__OPENCTI__01a043da-ff47-72c2-aaa4-7da56d85c83e__TOKEN=${GRAND_MERIDIAN_OPENCTI_TOKEN} ``` After the restart, the connector's **Stream** tab says that the deployment's token lacks the **Manage data sharing** capability. In **Configure integration**, the administrator picks **Live Stream** `Threats for risk quantification`, judged **Delivers threat actors**, leaves the **Service account name** of the new account at `OpenCTI connector`, and saves. The stream replays its history: Velvet Harbor arrives with its 10 techniques and Ember Tide with its 7, each with the sectors, countries and CVE it targets. OpenCRQ admits Velvet Harbor to the data breach scenarios, and Ember Tide and Velvet Harbor to the ransomware on the booking platform, and prices them. When Example CERT reports Operation Low Season, a campaign of Ember Tide against hotel chains in France and Spain, the campaign reaches OpenCRQ as OpenCTI publishes it, and the ransomware scenario is priced again. ## What comes in, and when {#what-comes-in-and-when} - **The first connection replays the stream's history**, from its first event, then follows it live. While it replays, the **Stream** tab says **This stream is still replaying its history** and shows a **Backfill** bar between the date of the first event and the date the replay will reach. The connector imports what it receives in batches, so OpenCRQ's threats lag behind the stream until the bar is full. - **Then each change arrives as OpenCTI publishes it.** The **Live tail** field reads **Reached**, and keeps reading it. - **The markings come too.** When the connector starts, OpenCRQ adds to the tenant the markings its OpenCTI user can read, under the same Structured Threat Information Expression (STIX) ids and with OpenCTI's colour and order, then each marking the stream brings. See [Limit what people see with markings](https://filigran.io/docs/opencrq/administer/users-and-roles/#limit-what-people-see-with-markings). - **A dropped connection** is retried, waiting longer between each attempt, and resumes from the last event the connector stored. - **A rejected token** turns the connector off: the state reads **Failing** and the connection **Authentication failed**. Fix the token in the deployment, then turn **Enabled** back on in **Configure integration**. - **Saving the configuration again**, even with the same stream, reads the stream from its beginning once more. Nothing already imported is removed. The threats show in **Threats**, where you can filter them by source. Which of them a scenario counts depends on the sectors and countries of its risk scope and on its outcome: see [Follow the threats that target your scopes](https://filigran.io/docs/opencrq/use/threats/threat-center/). ## Open the same object in OpenCTI {#open-the-same-object-in-opencti} With the URL and the token set, OpenCRQ also asks OpenCTI which of its objects OpenCTI holds, stream or no stream. It finds a threat by its STIX id, a CVE by its identifier, and an asset by its hostname. It asks as you, not with the token: OpenCTI answers as its user with your email address, with that user's rights. A person with no OpenCTI account under that address finds nothing there, except the threats the stream brought. - The header of a threat, of a CVE's page and of an asset's page carries the OpenCTI emblem. In colour, OpenCTI holds the object: the emblem opens it there, in a new tab, and hovering it previews the object's type, name and facts. Greyed, its hint says **Not found in OpenCTI** and how the object gets there, such as a machine with the same hostname for an asset. A threat the stream brought always opens in OpenCTI. - In **Threats > Threats**, the **Relevant Threats** of a scenario and the **Unique findings**, the OpenCTI mark beside a name shows only when OpenCTI holds the object, with the same preview. Without the variables, the emblem is greyed and its hint says **OpenCTI is not connected**. With **Manage Security**, the emblem opens the connector's page; without it, the hint says **Ask an administrator to connect OpenCTI.** See [Follow the threats that target your scopes](https://filigran.io/docs/opencrq/use/threats/threat-center/), [Build the attack surface from your assets](https://filigran.io/docs/opencrq/use/attack-surface/assets/#see-the-asset-in-opencti-and-openaev) and [Review the findings on your assets](https://filigran.io/docs/opencrq/use/attack-surface/findings/#see-the-cve-in-opencti-and-openaev). ## Check that it works {#check-that-it-works} ![The Integrations page: the figures of the connector pipeline, with one configured connector, the stream catch-up at 100% and 88 records ingested, above the Deployed connectors grouped by domain.](https://filigran.io/docs/shots/d7046cd3c6f06333d13a2e91f3eac86f17153805e0d01ed1824f5971e5940550.webp) 1. In **Integrations**, the **OpenCTI** card reads **Syncing** while the history replays, then **Healthy**. The **Stream catch-up** figure at the top reaches 100%. 2. On the connector's **Stream** tab, **Connection** reads **Connected** and **Live tail** reads **Reached**. **Read from the stream** counts the objects received, **Held** the objects the connector keeps. ![The Stream tab of the Healthy OpenCTI connector: connected, live tail reached, the stream filter judged as delivering threat actors, and the backfill bar full, with 6.4K objects read from the stream and 87 held.](https://filigran.io/docs/shots/698cfd7992944cefab5e013d48e01178d8bbfac11b4440ee93cc99908bbd3fff.webp) 3. The **Logs** tab shows what the connector did with the stream. 4. **Threats** lists the threats of the stream. If nothing arrives, open the connector page: a banner names the problem, such as **This stream cannot supply the connector** with the relationships its filter leaves out, **This stream is stopped in OpenCTI**, or **This Live Stream no longer exists in OpenCTI** when the token can no longer see it. When OpenCRQ bound no stream at start, the **Stream** tab names the capability the token lacks: see [Let OpenCRQ create and bind its stream](#let-opencrq-create-and-bind-its-stream). When the stream is right and threats are still missing, check the markings the OpenCTI user can read. ## Retire the default threats {#retire-the-default-threats} **OpenCRQ Default Threats** is a connector under **Threat intelligence** that loads threat groups and campaigns derived from MITRE ATT&CK, so that scenarios have threats before any feed is connected. A new tenant starts with it switched off: it loads once someone with **Manage Security** clicks **Enable** in the **Threats** step of **Get started**, or turns on its **Enabled** switch. Once on, it stays on when you connect OpenCTI. Once the stream reaches its live tail, the OpenCTI connector's **Overview** says **Your OpenCTI stream has caught up, and OpenCRQ Default Threats is still enabled.**: the default threats are listed beside yours, and a group both know counts once in a simulation. When your stream covers the threats you care about: 1. Click **Review Default Threats** on that notice, then **Configure**. 2. Turn the switch off. The confirmation says how many of its threats leave the tenant and how many from your other sources stay. 3. Click **Disable**. Your risk scenarios are simulated again without the default threats; past simulations keep the names of the threats they used. On a tenant whose **Get started** is open, **Disable** on the **OpenCRQ Default Threats** tile of its **Threats** step asks the same confirmation. Turning the switch back on loads the default threats again. The platform reads them from OpenCRQ's dataset repository: on a platform without internet access, `CONNECTORS__DEFAULT_THREATS__DATASET_URL` points it to a mirror of that folder, and an empty value turns the connector off for every tenant. See the [configuration reference](https://filigran.io/docs/reference/opencrq/configuration/#connectors). ## Reconnect or start over {#reconnect-or-start-over} Both actions require the **Manage Security** capability. - **Reconnect**, in the connector's header, opens the stream again at its live edge. During a replay, it asks first: the events between where the replay got to and now are not imported. - **Reset state**, in the **More actions** menu, reads the stream again from its beginning. Nothing already imported is removed. ## What's next {#what-s-next} - [Follow the threats that target your scopes](https://filigran.io/docs/opencrq/use/threats/threat-center/) - [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/) - [Import OpenAEV results](https://filigran.io/docs/opencrq/use/sources/openaev/), to measure how your controls hold against these threats - [OpenCRQ connectors](https://filigran.io/docs/reference/opencrq/connectors/) and the [configuration reference](https://filigran.io/docs/reference/opencrq/configuration/#connectors) --- # How CVE sources weigh your vulnerabilities > What NIST NVD, FIRST EPSS and CISA KEV tell OpenCRQ about each CVE, and how that turns a vulnerability on one of your assets into a likelier attack and a higher annualized loss. - URL: https://filigran.io/docs/opencrq/use/sources/vulnerability-sources/ - Products: OpenCRQ 0.261123.0 - For: risk managers, administrators - Type: Concept A CVE found on one of your servers is not a risk by itself: what matters is whether attackers exploit it, and what it lets them do. OpenCRQ reads three public sources to tell: the National Vulnerability Database of NIST describes each CVE, the Exploit Prediction Scoring System (EPSS) of FIRST gives the probability that it is exploited, and the Known Exploited Vulnerabilities (KEV) catalog of CISA lists the ones that are. They need no account and no credential. This page explains what each one brings and how it moves the price of your scenarios. The CVEs themselves, on your assets, come from [Microsoft Defender](https://filigran.io/docs/opencrq/use/sources/microsoft-defender/) and [OpenAEV](https://filigran.io/docs/opencrq/use/sources/openaev/). **Diagram: How public CVE sources and your findings weigh in the price of a risk scenario** - Public sources: NIST NVD (CVSS vector, weakness, fix), FIRST EPSS (Exploitation probability), CISA KEV (Known exploited) - Your estate: Findings (CVEs from Defender or OpenAEV) - OpenCRQ: Threat of each finding (Highest signal, lifted when two agree), Initial access (How far a finding opens the door) - Result: Annualized loss (Of each risk scenario) Connections: - FIRST EPSS → Threat of each finding: probability - CISA KEV → Threat of each finding: listing - NIST NVD → Threat of each finding: complexity - NIST NVD → Initial access: access, impact - Findings → Threat of each finding - Threat of each finding → Initial access - Initial access → Annualized loss: attack run ## What each source brings {#what-each-source-brings} | Source | What it brings | Default schedule | Shortest interval | | --- | --- | --- | --- | | **NIST NVD CVE** | For every published CVE: its CVSS base score and vector (version 4.0 first, then 3.1, 3.0 and 2.0), its weakness classes (CWE), its description and its publication dates. For the CVEs your assets carry: the references, the affected version ranges, and the fix the vendor published in the CVE record | Every day at 06:00 UTC | 6 hours | | **FIRST EPSS** | The exploitation probability of each CVE, a score between 0 and 1 that FIRST publishes once a day | Every day at 06:00 UTC | 12 hours | | **CISA Known Exploited Vulnerabilities (KEV)** | The CVEs confirmed as exploited, with the date CISA added them, the action it requires and its due date, and whether a ransomware campaign is known to use them | Every day at 06:00 UTC | 6 hours | The three write CVE details only: none of them creates an asset or a finding. A CVE matters to a scenario once Defender or OpenAEV reports it on one of your assets. ## Turn them on {#turn-them-on} The three sources are on the **Deployed** tab of **Integrations** in every deployment, under **Vulnerability**, since they carry no credential. Each still waits, **Not configured**, until an administrator with the **Manage Security** capability binds a service account to it with **Configure**, as for every connector. The schedule is set in the same panel. ![The Deployed tab of Integrations lists the CISA, FIRST and NIST cards under Vulnerability, each a scheduled pull reading Not configured, its last run Never, until a service account is bound.](https://filigran.io/docs/shots/d7046cd3c6f06333d13a2e91f3eac86f17153805e0d01ed1824f5971e5940550.webp) NIST is the only one with a setting: an API key of the NVD, `CONNECTORS__NIST____API_KEY`, optional but recommended. Without it, the NVD allows 5 requests every 30 seconds instead of 50, and OpenCRQ waits 6 seconds between two pages of 500 CVEs instead of 0.6. Each run walks the whole NVD catalog, which takes hours without a key: a run hands over to the next one before its 30-minute limit, and that one resumes at the same page. See the [configuration reference](https://filigran.io/docs/reference/opencrq/configuration/#connectors). The **Overview** of the **NIST NVD CVE** connector carries, in its **About this connector** card, the statement the NVD's terms of use require, always in English: "This product uses the NVD API but is not endorsed or certified by the NVD." ## How a CVE weighs in the price {#how-a-cve-weighs-in-the-price} OpenCRQ never prices a CVE alone. It prices what a finding, a CVE on one asset, opens to an attacker, in three steps. **How likely the flaw is to be used.** Each finding gets a threat, between 0 and 1, from the signals received on its CVE. Each signal sets a floor, and the threat is the highest floor: | Signal | Floor | | --- | --- | | Nothing is known about the flaw | 0.05 | | FIRST EPSS publishes a probability above 0 | That probability | | CISA KEV lists the CVE | 0.9 | | An active threat of the tenant, from [OpenCTI](https://filigran.io/docs/opencrq/use/sources/opencti/) or another threat source, cites the CVE, through a relationship that has not ended and passes the **Confidence gate** of **Settings > Engine > Threat Relevance** | 0.35 | When two or more of the last three agree, the threat rises a third of the way from the highest floor toward 1. A flaw listed by CISA with an EPSS probability therefore reads 0.9 lifted to about 0.93. The attack complexity in the CVSS vector then lowers the threat of a flaw that is hard to exploit, never below 0.05: a flaw that is hard to weaponize is still being exploited once someone has. **What the flaw reaches.** The CVSS vector of NIST is read as three separate statements rather than one score: how an attacker reaches the flaw (attack vector, privileges required, user interaction), how complex the attack is, and what it impacts. The same 9.8 can be a remote flaw that needs no account or a local one. The weakness classes and the vector also decide which ATT&CK techniques the flaw serves. **How far it opens the door.** For each finding and each initial access technique, OpenCRQ records two values, before any control: the finding's threat, and how far the finding opens that technique, which is how the vector reaches it times its impact on confidentiality or integrity, whichever is worse. When the attack run of a scenario tries to get in, it reads these openings on the assets of the risk scope, then meets your controls. A CISA-listed flaw on an internet-facing booking server makes initial access likelier, and the annualized loss of every scenario that reaches that server rises. ## Rules that surprise {#rules-that-surprise} - **Silence is not safety.** A CVE with no EPSS probability, or one of 0, and a CVE CISA does not list, both read as silence, not as proof that nobody exploits them. Such a flaw keeps the floor of 0.05. - **Two signals from one family count once.** Two threats citing the same CVE are one signal; an EPSS probability and a CISA listing are two. - **A finding that opens no initial access technique has no opening recorded**, which means no data, never a safe finding. - **The price does not read the finding score.** The finding score already counts your controls, which the attack run models itself. The run reads only the threat and the opening. ## What's next {#what-s-next} - [Review the findings on your assets](https://filigran.io/docs/opencrq/use/attack-surface/findings/) - [Explore the ATT&CK, CVE and CWE catalogues](https://filigran.io/docs/opencrq/configure/attack-and-vulnerability-catalogues/) - [Import assets from Microsoft Defender](https://filigran.io/docs/opencrq/use/sources/microsoft-defender/) - [OpenCRQ connectors](https://filigran.io/docs/reference/opencrq/connectors/) and the [configuration reference](https://filigran.io/docs/reference/opencrq/configuration/#connectors) --- # Follow the threats that target your scopes > Read the threat actors, intrusion sets and campaigns OpenCTI streams to OpenCRQ, see which ones weigh on a risk scenario and why, and follow their activity as it moves the price. - URL: https://filigran.io/docs/opencrq/use/threats/threat-center/ - Products: OpenCTI 7.261119.0, OpenCRQ 0.261123.0 - For: risk managers, CTI analysts - Type: How-to guide OpenCRQ prices a risk scenario against the attackers that pursue it. It does not ask you to name them: it reads the threats your OpenCTI instance streams, keeps the ones its model judges likely to lead to the scenario's outcome, weighs more the ones that target your sector or your country, and weighs each by how recently it was seen acting. The **Threats** screen, the threat center, lists them. This page reads it, explains how a threat gets into a scenario and what it changes there, and shows how a threat's return moves the price. For the model behind the price, read [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/). ## Before you start {#before-you-start} - You are a member of the tenant: every member reads the threats, those [they are cleared for](#which-threats-you-see). - OpenCTI is connected with a Live Stream. When the deployment of OpenCRQ carries OpenCTI's URL and token for your tenant, OpenCRQ creates the stream `OpenCRQ threat feed` in OpenCTI and binds it at start; otherwise an administrator with **Manage Security** chooses the stream. See [Connect OpenCTI with a Live Stream](https://filigran.io/docs/opencrq/use/sources/opencti/). Until then, the threats of **OpenCRQ Default Threats**, groups and campaigns derived from MITRE ATT&CK, can stand in. A new tenant starts with them switched off: someone with **Manage Security** clicks **Enable** in the **Threats** step of **Get started**, unless the deployment turns them off for every tenant. - The risk scopes have a **Sector** and a **Country**: they are what a threat is matched on. See [Risk scopes, primary assets and supporting assets](https://filigran.io/docs/opencrq/concepts/risk-scopes-and-assets/). ## What OpenCTI brings {#what-opencti-brings} OpenCRQ keeps three kinds of STIX objects as threats: **Threat actor**, **Intrusion set** and **Campaign**. For each one it keeps what pricing needs: - the countries and sectors it targets, each claim with its confidence; - the ATT&CK techniques it uses, and the CVEs it targets; - the threats it is attributed to, such as a campaign attributed to an intrusion set; - its first and last seen dates, motivations, goals, resource level, sophistication and labels. You cannot create or edit a threat in OpenCRQ: correct it in OpenCTI, and the stream brings the change. Besides the stream, **Analyze new bundle** imports a STIX bundle file; a threat imported this way, and only that one, can be deleted. The **Source** of a threat says which way it came: **OpenCTI**, **OpenCRQ Default Threats** or **STIX import**. ## Which threats you see {#which-threats-you-see} Two members of the same tenant can see different lists. A threat streamed from OpenCTI shows only to the members OpenCTI lets read it: - each of its markings, such as **TLP:AMBER**, is among the markings you hold in OpenCTI; - when it is restricted to authorized members in OpenCTI, you are one of them; - otherwise, when your OpenCTI instance has a platform organization you do not belong to, it is shared with one of your organizations. A user with **Bypass all capabilities** in OpenCTI is never held back by sharing or members. OpenCRQ asks OpenCTI as you, matched by your email address, and keeps the answer for a minute. When OpenCTI does not answer for you, for example because no OpenCTI user has your email address, you see only the threats with no marking and no restriction. The reports follow the same rule: a report you cannot read in OpenCTI does not tell you which threats it cites. A threat imported from a STIX bundle or from **OpenCRQ Default Threats** follows the clearance of your groups in OpenCRQ instead, on the markings the tenant defines: a marking the tenant does not define holds no one back. See [Give people access with users, groups and roles](https://filigran.io/docs/opencrq/administer/users-and-roles/). The prices are the same for everyone: OpenCRQ weighs every threat it mirrors, including those some members cannot see. ## Read the threat center {#read-the-threat-center} Three figures head the list, for the whole catalogue whatever the filters: **Active threats**, the threats seen in the last 90 days out of all of them; **Strong match with your outcomes**, the threats at 60% or more on one of your attack outcomes; and **Targeted CVEs**, the CVEs the threats target in claims at or above the **Confidence gate**, with how many of them are findings on your estate. 1. Go to **Threats > Threats**. Each line is a threat, with its **Type**, its **Top outcome**, its **Observed activity**, the number of **CVE** and **TTP** it carries and its **Source**. When OpenCTI or OpenAEV is connected to the tenant and holds the same threat, its mark shows beside the threat's name. Hover it to see the threat's type and name in that module; click it to open the threat there, in a new tab. ![The threat center of Grand Meridian Hotels, 2 Active threats out of 9: Ember Tide matches Ransomware at 99% and its campaign Operation Low Season at 71%, both Active and last observed on Apr 8, 2026, and Velvet Harbor matches Data Breach & Resale at 71%, Dormant since its last activity on Jan 9, 2026.](https://filigran.io/docs/shots/ad51280a0a0dec77310a117df0e8fe8ba346a33cca3a8f114a7c6f596cbf419e.webp) 2. Read the **Top outcome**: the attack outcome the threat most likely leads to, with that probability. A model OpenCRQ ships gives each threat a probability for each attack outcome, from what its sources say of it: its description and the reports about it, its declared motivations and goals, its labels, its malware and its techniques. Only an outcome above 50% is named. For a threat of **OpenCRQ Default Threats**, the dataset OpenCRQ publishes can give judged probabilities instead. They replace the model's on the outcomes they cover, and the model fills the others. When the judgment covers every outcome, the threat's **Attack outcomes** card says "Judged by OpenCRQ on" and the date of the judgment. Choose an outcome in **Filter by outcome** to compare every threat on that outcome: the column becomes **Probability**. 3. Read the **Observed activity**: - **Active**: last observed less than 90 days ago, with the date beside it. The chip is red under 14 days. - **Dormant**: longer ago. - **Not dated**: no source gives a date of activity. Only observed dates count: the start and stop times of the threat's relationships, its last seen date (its first seen date when it has none), and those of the threats attributed to it, such as a campaign attributed to an intrusion set. Such a date climbs through attributions stated at or above the **Confidence gate**, up to three levels, and not from a campaign attributed to more than three threats. The date a report was written does not make a threat active. An observed date a source places after today counts as today. 4. Select a threat. Its header gives its type, its MITRE ATT&CK group ID when it has one, its last observed activity, the outcome it best matches, how many of your countries and sectors it targets, and its **Resource level**. Its buttons: - **Quantify risk**, when OpenCRQ has enough data on the threat to assess its attack outcomes: it opens the [risk scenario wizard](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/) with the outcome it best matches chosen, even one at 50% or below. - The emblems of OpenCTI and OpenAEV, always in that order. An emblem in colour means the module holds the threat: for a threat from the stream, OpenCTI always does. Hover it for the threat's type and name there, the figures that module gives when it gives any, and what you find there: "See the reports, relationships and context of this object in OpenCTI." Click it to open the threat there, in a new tab. - A greyed emblem when the module does not hold the threat: hover it to read "Not found in OpenCTI" (or OpenAEV) and how the threat gets there, by its STIX id. When the module is not connected to the tenant, the hover says "OpenCTI is not connected" (or OpenAEV), with the fields it would show. With **Manage Security**, the emblem opens the connector's page; without it, the hover reads "Ask an administrator to connect OpenCTI." - A menu, for a threat imported from a STIX bundle, to delete it. The modules answer with your own rights: an emblem stays greyed when the module holds the threat but does not let you read it. The threat's **Overview** shows its **Description**, the countries and sectors of yours it targets under **This concerns you**, its **Attack outcomes**, each with its **Probability** and **Weighs on** when it is above 50%, its **Profile**, with its **Declared intent**, and its **Attributions**, as a list or a graph. **Locations & Sectors** maps the **Targeted countries** and lists the locations and sectors, marking those that concern you. **CVE** lists the CVEs it targets, filtered **On your estate** or not, and **TTP** its techniques, with how your controls hold against each in **Prevention** and **Detection**. The "i" beside a control's figure opens its **Engine efficacy**. When OpenAEV tested a control on a technique the control does not declare, the engine leaves those tests out. The dialog then offers "Declare on" and the control's name, which links the technique to the control on that function without leaving the threat. Each line links back to OpenCTI when the threat came from the stream. ![The overview of Ember Tide, an intrusion set, with Quantify risk and the emblems of OpenCTI and OpenAEV in its header: Active, last activity observed on Apr 8, 2026, a best match of 99% on Ransomware, three countries and sectors of yours, and its attack outcomes, Ransomware at 99% and Data Theft Extortion at 76% marked Weighs on.](https://filigran.io/docs/shots/74e9404b69b1638618d7ddd363337af2f01238281c2cb552d000ff24d7af7264.webp) ## How a threat gets into a scenario {#how-a-threat-gets-into-a-scenario} A risk scenario names an attack outcome on primary assets of a risk scope, never an attacker. A threat weighs on the scenario when the model gives it a probability above 50% of leading to the scenario's outcome; the further above, the more it weighs. Its sources must also say something of what it is after: a description, a report summary of more than 100 characters, a declared motivation or goal, or, for a threat attributed to no more than three others, one of them that does. Techniques and malware alone are not enough: its **Attack outcomes** then read **Not enough data on this threat to assess its attack outcomes.** A threat whose probabilities the dataset of **OpenCRQ Default Threats** judges needs none of this: the judgment stands as its evidence. Targeting a scope does not make a threat weigh on its own: it raises the weight of a threat that already weighs. Targeting the risk scope's country multiplies it by 2.5, its sector by 4, both by 10. A country or sector claim whose confidence is below the **Confidence gate** does not count. Open a scenario's **Threat** tab to see the **Relevant Threats** that weigh on it, each with: - its **Score**, out of 100: the relevance times the threat's activity. A threat with no dated activity counts as active once, **Assumed activity age (days)** ago (365 by default); - its **Relevance**, **Strong**, **Moderate** or **Weak**, from its probability on the outcome and its targeting; - its **Observed activity** and **Resource level**; - the **Countries** and **Sectors** it targets, the one that matches your scope first and highlighted; - beside its name, the mark of OpenCTI or OpenAEV when that module holds it: it opens the threat there, in a new tab. Click a line to see why the threat weighs: its **Score**, **Relevance** and **Observed activity**. Under **Why the relevance is**, the panel gives the country, the sector and the attack outcome it matches, with the claims behind each. The attack outcome says where its probability comes from: **Assessed by OpenCRQ's internal model**. When the dataset of **OpenCRQ Default Threats** judged it, it says "Judged by OpenCRQ on" and the date instead. The "i" beside the **Score** opens the calculation (**How the threat score is computed**), and recalls that the score counts every object mirrored from OpenCTI, including those some members cannot see there: it is not computed again for what each member can read. ![The Relevant Threats of the scenario Ransomware on the Booking Platform, 5 entities by Score: Ember Tide at 74, Strong, observed 4 days ago; Operation Low Season at 13, Moderate, 4 days ago; Velvet Harbor at 5 and Harbor Syndicate at 0, Weak, 3 months ago; each targeting France and the hospitality sector.](https://filigran.io/docs/shots/6073a5b824776eaae305ad0ac5899eaf8ac56013d7105415aaf105b30239d7c8.webp) A scenario that no threat weighs on is not priced: OpenCRQ prices it again once a source brings a threat that qualifies. While OpenCRQ weighs the threats of a new or changed scenario, its tabs say **Weighing the threats for this scenario. This page updates on its own once it is done.** ## What a threat changes in the price {#what-a-threat-changes-in-the-price} A threat does not change how often attacks come: the [threat event frequency](https://filigran.io/docs/opencrq/use/threats/threat-event-frequency/) does. It changes who attacks and how far they get. - **Each threat takes a share of the attacks**, in proportion to its weight. Records that share a name, an alias or a MITRE ATT&CK group ID count as one attacker, at the weight of the strongest. A threat seen recently weighs more: its weight halves every 180 days after its last observed activity, or every 365 days after the last date a source wrote about it, when that date is more recent. A threat no source dates weighs one eighth of a threat active today, whatever the settings. Targeting your country multiplies it by 2.5, your sector by 4, both by 10. And the higher its probability on the outcome, the more it weighs. - **Each threat plays as its class.** OpenCRQ gives every threat an actor class, from its labels in OpenCTI (state-sponsored, ransomware, hacktivism, crimeware), else from its resource level. For a threat of **OpenCRQ Default Threats**, the dataset can state the class instead. For a campaign, that class can be the one of the groups it is attributed to. The class sets the attacker's capability, patience and stealth in the attack run. The classes are **State sponsored**, **Organized cybercrime** (ransomware and extortion labels), **Hacktivist**, **Opportunistic crime**, and **Unclassified actor** when nothing says. A scenario's **CRQ** tab shows the **Admitted actors** and, in its **Actors** card, the share of attacks each class takes, how often it lands an impact and the loss it accounts for. The weighting and the gate are set for the tenant in **Settings > Engine > Threat Relevance**, which needs **Manage Security**: **Confidence gate** (**probably true (60)** by default), **Observed anchor half-life (days)** (180) and **Authored anchor half-life (days)** (365). **Assumed activity age (days)** (365), on the same page, only sets the **Score** of a threat with no dated activity: it does not change the price. See [Set how OpenCRQ weighs threats, controls and assets](https://filigran.io/docs/opencrq/configure/quantification-engine/). **Example: Ember Tide is back** On 10 April 2026, OpenCTI reports a new campaign against hotel chains, Operation Low Season, attributed to Ember Tide. The stream brings it to Grand Meridian Hotels the same day. In the threat center, the campaign reads **Active**, and so does Ember Tide: its own last observed activity is 5 January 2026, but the campaign attributed to it was observed in April, and that date climbs to Ember Tide. The campaign matches **Ransomware** at 71%, Ember Tide at 99%; Ember Tide's overview lists the campaign under **Attributions**. On the **Threat** tab of the scenario Ransomware on the Booking Platform (Grand Meridian France), the **Relevant Threats** are the five threats above 50% on **Ransomware**. Ember Tide leads with a **Score** of 74 and a **Strong** relevance, ahead of its campaign Operation Low Season at 13: both were observed 4 days ago. Velvet Harbor, also admitted for Data Breach & Resale, scores 5, and Harbor Syndicate and Velvet Harbour, a second record of Velvet Harbor under another spelling, score 0: their last activity is 3 months old, so they weigh little. On the **CRQ** tab, the **Actors** card splits the attacks between the classes of these threats, with the share each one takes, how often it lands an impact, and the part of the $254K of annual loss it accounts for. The amounts are in US dollars. Example CERT marks Ember Tide **TLP:AMBER** in OpenCTI. A colleague whose OpenCTI account does not hold that marking does not find Ember Tide in the threat center, nor on the **Threat** tab. The scenario's price is the same for both of you: Ember Tide still weighs on it. ## Check that it works {#check-that-it-works} - The threat center lists the threats of your OpenCTI stream, with **OpenCTI** as their **Source** and a **Last ingested** date in the **Profile** of their overview. - Each risk scenario's **Threat** tab lists its **Relevant Threats**, and its **CRQ** tab counts its **Admitted actors**. - A member who misses a threat a colleague sees holds fewer markings in OpenCTI, or no OpenCTI account with the same email address. Check it in OpenCTI, where the markings are granted. ## What's next {#what-s-next} - [Set the threat event frequency](https://filigran.io/docs/opencrq/use/threats/threat-event-frequency/) of a scenario. - [Review the findings on your assets](https://filigran.io/docs/opencrq/use/attack-surface/findings/): a CVE that an active threat cites scores higher. - [Connect OpenCTI with a Live Stream](https://filigran.io/docs/opencrq/use/sources/opencti/). --- # Set the threat event frequency > Read the attack frequency OpenCRQ's catalogue gives a risk scope for its country, sector and size, and replace it with your own estimate for a risk scenario when you know better. - URL: https://filigran.io/docs/opencrq/use/threats/threat-event-frequency/ - Products: OpenCRQ 0.261123.0 - For: risk managers - Type: How-to guide The **Threat Event Frequency** (TEF) of a risk scenario is how many attack attempts it faces in a year, successful or not, as a range: a minimum, a most likely value and a maximum. OpenCRQ draws from that range in every simulated world, so the frequency scales the whole price. By default, a scenario takes its frequency from OpenCRQ's catalogue, read for its risk scope's country, sector and size. This page shows how to read that frequency, and how to set your own when your incident data or your threat intelligence says otherwise. [How OpenCRQ quantifies risk](https://filigran.io/docs/opencrq/concepts/how-risk-is-quantified/) explains where the frequency enters the price. ## Before you start {#before-you-start} - You are a member of the tenant and the risk scenario exists: see [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/). - The risk scope has a **Country**, a **Sector** and an **Employee Count** (its **Identity**). The employee count weighs the most. Without it, the scope's revenue band, set by the **Annual revenue** of its financial profile, gives its size. A part left empty reads every value of it: every country, every sector, or every size. ## How the catalogue reads a scope {#how-the-catalogue-reads-a-scope} The catalogue gives, for each attack outcome, a range of attempts per year by country, by sector and by size class, in employees: 0-9, 10-49, 50-249, 250-999, 1,000-4,999 and 5,000 or more. OpenCRQ reads the row of the scope's country, sector and size class: - When the catalogue has no row for that sector in that country, it reads the country's row for every sector, then for every sector and every size, then the same rows for every country. - Without an employee count, OpenCRQ reads the size classes the revenue band spans, at $100K to $600K of revenue per employee, and mixes their ranges by weight. Without a revenue band either, it mixes every size class alike. Some rows do not measure their country, sector or size for themselves: their figure comes from wider data, and their range is wider. The screen marks those parts, so that you know which figures to challenge first. ## Read the catalogue's frequency for a scope {#read-the-catalogue-s-frequency-for-a-scope} 1. In the sidebar, open your risk scope, listed by name above **All risk scopes**, and click **Threat Event Frequency**. The line under the title names the catalogue in force: its version, its date and its sources. 2. Read **Profile**. **Attack attempts per year** is the sum of the most likely values of every attack outcome, with how often that is in plain words. **Range** goes from the sum of the outcomes' minimums to the sum of their maximums, on a scale from 0.01 to 100 a year. Beside them, **Country**, **Sector** and **Size** show what the catalogue read for the scope. ![The Threat Event Frequency of Grand Meridian France: 0.702 attack attempts a year, about once every 1.4 years, read for France, Hospitality and 4,200 employees, the size marked as not measured.](https://filigran.io/docs/shots/275c54a2d366245e0aa874ca45235c66ece5c9201b0baa1c52dafc271fd95aae.webp) 3. Read **Attack outcomes**: for each outcome, the **Attempts per year** at its most likely value, the **Range**, the **Recurrence** in plain words, and the **Risk Scenarios** of the scope that use it. A **Country**, **Sector** or **Size** with an info icon is a part the catalogue does not measure for the scope. Hover it to read why: | Part | What the hint says | What it means | | --- | --- | --- | | **Country** | Not filled in, or not measured | The figure comes from every country, or the country's level comes from a group of countries. | | **Sector** | Not filled in, or not measured | The figure comes from every sector, of the country or of every country, or from other countries' surveys of that sector. | | **Size** | Not filled in, inferred from the revenue, or not published by the surveys | The figure is the average across all sizes, the mix of the classes the revenue band spans, or extended from the sizes the surveys publish. | A scope without an employee count shows **Fill in the employee count** next to its size: it opens the scope to edit. Of the three parts, the size moves the figure the most. In the **Risk Scenarios** column, **Manual** says a scenario of that outcome runs on a frequency typed by hand that differs from the catalogue's. **To recompute** says a scenario in **Auto** mode was estimated before the latest change to the scope, or on another catalogue. Hover the chip to read the catalogue's value and each scenario's. To compare scopes, open **Threats > Threat Event Frequency** instead. Its **Risk scopes** tab lists every scope with its **Country**, **Sector** and **Size**, its **Attempts/yr**, its **Range**, and one column of attempts a year per attack outcome. Type in **Search a risk scope...** to filter, and click a row to open that scope's frequency. ![The Risk scopes tab of Threat Event Frequency: Grand Meridian France and Grand Meridian Spain, both Hospitality, with their employee counts, attempts a year, range and one column per attack outcome.](https://filigran.io/docs/shots/6c57424d7eff1e8f4b7baa8068cbde2a36c523bac356443f25f44ee2ae002c12.webp) Its **Simulator** tab gives the frequency of any profile, before you create a scope or to see what a change would do. Under **Simulated profile**, choose a **Country**, a **Sector** and a **Number of employees**, or **Unknown** and then a **Revenue band**. **Start from a risk scope** loads a scope's profile to change from there, and **Back to the default profile**, or back to the profile of that scope, undoes your changes. Without a scope, the simulator starts from the United States of America, Finance, and a revenue of $100M to $1B. ## Keep the catalogue's frequency {#keep-the-catalogue-s-frequency} A new scenario is in **Auto** mode. On its **Threat** tab, the **Threat Event Frequency (TEF)** card shows the catalogue's **Min (events/year)**, **Likely (events/year)** and **Max (events/year)** for its attack outcome, read only. Under them come the attack outcome and the country, sector and size the catalogue read, with the same info icon on a part it does not measure. **See it in the threat event frequency** opens the scope's frequency on that outcome. When the country, the sector, the employee count or the revenue band of the scope changes, OpenCRQ recomputes the frequency of every scenario of the scope in **Auto** mode, then prices them again. ## Set the frequency by hand {#set-the-frequency-by-hand} Use your own estimate when you have a better source than the catalogue: your incident history, your sector's incident reports, or what your CTI team sees targeting you. 1. Open the risk scenario and its **Threat** tab. 2. On the **Threat Event Frequency (TEF)** card, click **Manual**, the pencil. The three fields open with the values the catalogue gave, ready to edit. 3. Type the **Min (events/year)**, **Likely (events/year)** and **Max (events/year)**. Count attempts, successful or not: the attack run decides how many get through your controls. **Likely** must be above zero, **Likely** at least **Min**, and **Max** at least **Likely**. ![The Threat Event Frequency card of Ransomware on the Booking Platform in Manual mode with 1, 3 and 10 events a year, 51.9 times the catalogue's 0.0578.](https://filigran.io/docs/shots/4809fad5061718fb2b65a1848555b7066f2be74a28ed68f6a67158341173d527.webp) There is no save button: OpenCRQ saves the range a second after you stop typing, as soon as it is valid, and prices the scenario again on it. Under the fields, **Catalog** recalls the catalogue's value and range for the scope today, and how many times the catalogue your estimate is; hover that ratio to read the outcome, country, sector and size it compares with. Click **Run CRQ** to price the scenario right away. To go back to the catalogue, click **Auto**, the sparkles: OpenCRQ reads the catalogue's frequency for the scope as it is today. ## Check that it works {#check-that-it-works} - The **CRQ** tab of the scenario shows your range as **TEF input**, and a new line in its **Simulation History**. - On the scope's **Threat Event Frequency**, the scenario carries **Manual** in the **Risk Scenarios** column of its outcome. **Example: Set the ransomware frequency from the sector's incident reports** On 12 January 2026, the catalogue gives Grand Meridian France, a French hospitality company of 4,200 employees, 0.0578 ransomware attempts a year (range 0.026 to 0.13), about once every 17 years. Its **Size** carries the info icon: the surveys do not publish the 1,000-4,999 class for French hospitality, so the figure is extended from the published sizes. The risk manager reads the hospitality sector's incident reports and the campaigns Example CERT tracks against hotel chains, and estimates attempts at Grand Meridian's size far more often. On 19 January, on the **Threat** tab of Ransomware on the Booking Platform, they click **Manual** and type: | Field | Value | | --- | --- | | **Min (events/year)** | `1` | | **Likely (events/year)** | `3` | | **Max (events/year)** | `10` | The card reads 51.9 times the catalogue. The next run prices the scenario from a **TEF input** of 1.000 - 3.000 - 10.000 events/year. The data breach scenario beside it stays in **Auto**, at the catalogue's 0.046 to 0.24 attempts a year. > **With XTM One: Ask XTM One about a frequency** > > With XTM One connected, an AI agent can read a scenario's frequency, in either mode, and set a manual range, for example from the campaigns OpenCTI reports against your sector. When an XTM One administrator makes such tools ask first, the change waits for your approval in **Ask Ariane**: see [XTM One in OpenCRQ](https://filigran.io/docs/xtm-one/use/in-opencrq/). ## What's next {#what-s-next} - [Set what an attack costs with the financial profile](https://filigran.io/docs/opencrq/use/quantify/loss-drivers/), the other half of the price. - [Build and price a risk scenario](https://filigran.io/docs/opencrq/use/quantify/risk-scenarios/), to read the price on the CRQ tab. - [Follow the threats that target your scopes](https://filigran.io/docs/opencrq/use/threats/threat-center/). --- # OpenCTI > Use OpenCTI to structure, explore, enrich, automate and share cyber threat intelligence, and find the pages to read first for your role. - URL: https://filigran.io/docs/opencti/ - Products: OpenCTI 7.261119.0 - Type: Overview OpenCTI stores what you know about threats as Structured Threat Information Expression (STIX) 2.1 objects and the relationships between them: reports, threat actors, malware, indicators, vulnerabilities, sightings. Feeds and connectors bring the data in; analysts explore, enrich and qualify it; playbooks, dashboards and feeds put it to work. ## Start here {#start-here} Pick your role: each tab gives your goal and the pages to read first, in order. **CTI analysts** You structure what you know about threats, link it, and share it under the right markings. 1. [Data model](https://filigran.io/docs/opencti/concepts/data-model/): which entity, relationship and container holds each thing you know. 2. [Explore knowledge](https://filigran.io/docs/opencti/use/explore/): what every entity page shows, and how to find what the platform already knows. 3. [Import from files](https://filigran.io/docs/opencti/use/ingest/files/): turn a PDF report or a STIX bundle into knowledge you review before it is written. 4. [Export knowledge to a file](https://filigran.io/docs/opencti/use/share/export/): send a report to a partner CERT as a PDF or a STIX file, within its markings. **SOC analysts** You get the context of a suspicious IP address, domain or hash in seconds, then work the incident. 1. [Search for knowledge](https://filigran.io/docs/opencti/use/explore/search/): find an observable and what is known about it. 2. [Pivot and investigate](https://filigran.io/docs/opencti/use/analyze/pivot/): follow its links to the infrastructure and the threat behind it. 3. [Handle incidents and requests in cases](https://filigran.io/docs/opencti/use/analyze/cases/): open an incident response case, gather the evidence and split the work into tasks. 4. [How indicators age and expire](https://filigran.io/docs/opencti/use/analyze/indicators-lifecycle/): why an indicator scores what it does, and when it leaves your detection tools. **CTI team leads** You set the team's priorities, organize its work and automate what it does by hand. 1. [Follow your priority threats with PIRs](https://filigran.io/docs/opencti/use/analyze/pir/): tell the platform which threats matter to the business you serve. 2. [How intelligence gets into OpenCTI](https://filigran.io/docs/opencti/use/ingest/): choose the sources that feed the team, and how their data reaches the knowledge base. 3. [Automate with playbooks](https://filigran.io/docs/opencti/use/automate/playbooks/): triage, enrich and route new intelligence without anyone touching it. 4. [Build dashboards](https://filigran.io/docs/opencti/use/dashboards/): follow the team's work and the threats, and give each customer its own view. **SOC managers** You get intelligence into every detection tool, with indicators that expire on time, and measure what your defenses catch. 1. [Share knowledge with your security tools](https://filigran.io/docs/opencti/use/share/feeds/): stream or serve indicators to the SIEM and the EDR, filtered on score and validity. 2. [How indicators age and expire](https://filigran.io/docs/opencti/use/analyze/indicators-lifecycle/): how scores fall and indicators are revoked. 3. [Age indicators with decay rules](https://filigran.io/docs/opencti/configure/decay/): tune how long each kind of indicator stays active. 4. [Measure your defenses against a threat](https://filigran.io/docs/opencti/use/analyze/security-coverage/): which techniques of a threat your defenses prevent and detect. **Administrators** You decide who signs in, who sees what, and what each team may change. 1. [How access control works](https://filigran.io/docs/opencti/administer/access-control/): users, groups, roles, organizations and markings, and how they combine. 2. [Configure single sign-on](https://filigran.io/docs/opencti/administer/sso/): sign in with your identity provider and map its groups. 3. [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/): give each team its roles, its markings and its default settings. 4. [Grant rights with roles](https://filigran.io/docs/opencti/administer/roles/): let analysts create without deleting, and keep administration to a few. **Platform engineers** You deploy the XTM platform, which always runs OpenCTI with the other modules, and keep OpenCTI healthy and up to date. 1. [How OpenCTI works](https://filigran.io/docs/opencti/concepts/architecture/): the platform, the workers, the managers and the connectors, and what each one needs. 2. [Requirements](https://filigran.io/docs/deploy/plan/requirements/): what the host must provide, and the versions of the databases, queues and storage OpenCTI supports. 3. [Install with Docker Compose](https://filigran.io/docs/deploy/install/docker-compose/): the whole XTM platform, OpenCTI with every other module, behind your reverse proxy. 4. [Upgrade](https://filigran.io/docs/deploy/upgrade/): move to a new release and what to check before. **CISOs and executives** You see what threatens the business and what the teams achieve, without the procedures. 1. [Build dashboards](https://filigran.io/docs/opencti/use/dashboards/): the threats targeting your sector this quarter, on one screen. 2. [Follow your priority threats with PIRs](https://filigran.io/docs/opencti/use/analyze/pir/): the threats ranked against the scope you care about, ready for a briefing. 3. [Measure your defenses against a threat](https://filigran.io/docs/opencti/use/analyze/security-coverage/): how much of a threat your defenses stop. ## Automate with playbooks {#automate-with-playbooks} A playbook processes intelligence as it arrives: it filters, enriches and changes data, then saves it, shares it or tells the right people. No code, and every run is traced. - [Choose a playbook component](https://filigran.io/docs/opencti/use/automate/playbooks/choose-a-component/): Which component filters, enriches, saves or notifies. - [Create a playbook](https://filigran.io/docs/opencti/use/automate/playbooks/create/): From an empty canvas to a running playbook. ![A playbook that listens for new reports, adds their content, then routes hospitality-sector reports to be marked in progress, saved and sent to the CTI team, and notifies the duty analyst otherwise.](https://filigran.io/docs/shots/d564323283ef75243dae6421f12d78cad49bc13880cf4eac212af71f87084412.webp) > **With XTM One: AI agents in your playbooks** > > A playbook can hand a step that filters cannot express, such as reading a report's description, to an XTM One AI agent: the **Transform with AI agent** component returns the bundle, changed or not, and the playbook carries on. See [Create a playbook](https://filigran.io/docs/opencti/use/automate/playbooks/create/). ## Browse OpenCTI {#browse-opencti} **Concepts** - [How OpenCTI works: platform, workers, managers and connectors](https://filigran.io/docs/opencti/concepts/architecture/): What OpenCTI is made of, which parts keep state and which scale, and the path a piece of data takes from a connector to the knowledge base and the live stream. - [Data model](https://filigran.io/docs/opencti/concepts/data-model/): How OpenCTI represents what you know about a threat, as entities, observables and relationships that carry their own source and confidence, and where you find each type. - [Nested objects](https://filigran.io/docs/opencti/concepts/nested-objects/): Why the author, markings, labels and external references of an OpenCTI object are shared objects of their own, what that changes for your analysis, and how STIX bundles convert. - [Containers](https://filigran.io/docs/opencti/concepts/containers/): How reports, groupings and cases keep what a source said together without owning the knowledge they hold, and what that changes when you add, share or delete. - [Deduplication](https://filigran.io/docs/opencti/concepts/deduplication/): How OpenCTI recognizes an object it already has, why two objects become one or stay apart, and how confidence decides what an incoming duplicate can change. - [Reliability and confidence](https://filigran.io/docs/opencti/concepts/reliability-confidence/): How OpenCTI rates the reliability of sources and the confidence of information, and how max confidence levels decide who can create and change knowledge. - [Meaning of dates](https://filigran.io/docs/opencti/concepts/dates/): Which date of an OpenCTI object answers which question, which dates come from the source and which from your platform, and how imports move them. - [Data processing](https://filigran.io/docs/opencti/concepts/data-processing/): What OpenCTI does to each object on its way in, from the STIX bundle to the knowledge base, why it explains what analysts see, and what administrators set to control it. **Use** - [Explore knowledge](https://filigran.io/docs/opencti/use/explore/): How the OpenCTI knowledge menus are organized, and how to read any entity page, from what it is and who says so to its links, sources, files and history. - [Delete and restore knowledge](https://filigran.io/docs/opencti/use/delete-restore/): Delete entities and relationships in OpenCTI, find them in the trash, and restore them or delete them permanently before the retention period ends. - [Set up your profile](https://filigran.io/docs/opencti/use/profile/): Set your OpenCTI profile the way you work - language, theme, date format, notifications - secure it with two-factor authentication, and manage your API tokens. - [How intelligence gets into OpenCTI](https://filigran.io/docs/opencti/use/ingest/): The ways intelligence gets into OpenCTI, how connectors and built-in feeds turn it into STIX bundles that workers write, and where you manage them. - [Build dashboards](https://filigran.io/docs/opencti/use/dashboards/): Build an OpenCTI dashboard that answers one standing question, such as the threats targeting your sector this quarter, and share it with your team and leadership. - [Work with graphs](https://filigran.io/docs/opencti/use/analyze/graphs/): Read and act on the knowledge graphs of OpenCTI containers, investigations and entities, with focus, layouts, filters, selection and image export. - [Pivot and investigate](https://filigran.io/docs/opencti/use/analyze/pivot/): Start an OpenCTI investigation from a few entities, expand it along their relationships, enrich them, roll back an expansion, and turn the findings into a report or a case. - [Follow your priority threats with PIRs](https://filigran.io/docs/opencti/use/analyze/pir/): Turn what your organization most needs to know into an OpenCTI PIR that flags, scores and follows the threats targeting your locations and industries. - [Handle incidents and requests in cases](https://filigran.io/docs/opencti/use/analyze/cases/): Open an incident response, a request for information or a request for takedown in OpenCTI, put the evidence in it, split the work into tasks and close it. - [How indicators age and expire](https://filigran.io/docs/opencti/use/analyze/indicators-lifecycle/): What the score, the validity dates, the decay and the revocation of an OpenCTI indicator mean for detection, and what happens when you or a source change them. - [Measure your defenses against a threat](https://filigran.io/docs/opencti/use/analyze/security-coverage/): Measure which techniques and vulnerabilities of a threat your defenses prevent and detect, tested on a schedule by OpenAEV or entered from your own tests, and follow the scores in OpenCTI. - [How OpenCTI infers new relationships](https://filigran.io/docs/opencti/use/enrich/inferences/): How the OpenCTI rules engine derives new relationships from existing ones, how to recognize inferred knowledge, and what the inference rules do. - [Enrich knowledge from external sources](https://filigran.io/docs/opencti/use/enrich/connectors/): Enrich OpenCTI entities and observables with data from external sources, on demand, in bulk, automatically on arrival or from a playbook. - [Merge duplicates](https://filigran.io/docs/opencti/use/enrich/merge/): Merge duplicate OpenCTI entities of the same type into one, keep their relationships, and know which fields survive before you confirm. - [Refine content with AI](https://filigran.io/docs/opencti/use/enrich/refine-content/): Use Ask AI in OpenCTI to fix, shorten, lengthen, retone, summarize or explain text, generate a report from a container, and search in natural language. - [Automate with playbooks](https://filigran.io/docs/opencti/use/automate/playbooks/): What OpenCTI playbooks do for a CTI team, how data flows through them, what to decide before building one, and when to use them rather than other automation. - [Get alerted when knowledge changes](https://filigran.io/docs/opencti/use/automate/notifications/): Get alerted when knowledge changes in OpenCTI with live triggers, instance subscriptions and digests, and read your alerts in one place. - [Change many objects at once](https://filigran.io/docs/opencti/use/automate/background-tasks/): Update, enrich, share, merge or delete many OpenCTI objects at once with a background task, then follow its progress in the task list. - [Approve drafts step by step](https://filigran.io/docs/opencti/use/automate/draft-workflow/): Define the statuses a draft goes through before it reaches the OpenCTI knowledge base, who can move it forward, and what happens at each step. - [Track the progress of reports and cases](https://filigran.io/docs/opencti/use/automate/entity-workflows/): Track the progress of reports, cases and other OpenCTI entities with statuses, and assign the people responsible for them. - [Share knowledge with your security tools](https://filigran.io/docs/opencti/use/share/feeds/): Publish a filtered part of the OpenCTI knowledge base to a SIEM, an EDR, a firewall or another platform, as a live stream, a CSV feed or a TAXII collection, and keep them in sync. - [Export knowledge to a file](https://filigran.io/docs/opencti/use/share/export/): Export an OpenCTI entity, a list or part of a container to a STIX, CSV, text or PDF file, choose what markings it may contain, and download it from the platform. - [Send intelligence by email](https://filigran.io/docs/opencti/use/share/dissemination-lists/): Send a finished intelligence document from an OpenCTI report or case to a list of recipients outside the platform, in blind copy, and keep the lists of recipients up to date. **Configure** - [Customize entity types](https://filigran.io/docs/opencti/configure/entities/): Set mandatory fields, default values, custom fields, confidence scales, references, hidden types, statuses and templates for each OpenCTI entity type. - [Turn inference rules on or off](https://filigran.io/docs/opencti/configure/rules/): Turn OpenCTI inference rules on or off, know what each rule creates, and weigh the effect of a rule on your data before you enable it. - [Age indicators with decay rules](https://filigran.io/docs/opencti/configure/decay/): Create OpenCTI decay rules that lower indicator scores over time and revoke stale indicators, and choose which indicators each rule applies to. - [Delete old data automatically](https://filigran.io/docs/opencti/configure/retention/): Delete old OpenCTI knowledge, import files, workbenches and logs automatically with retention policies, and check what a policy will delete first. - [Send notifications by email or webhook](https://filigran.io/docs/opencti/configure/notifiers/): Create OpenCTI notifiers that send notifications by email or to a webhook, write their EJS templates, test them and choose who can use them. - [Brand your PDF reports](https://filigran.io/docs/opencti/configure/fintel-designs/): Give the PDF reports your team sends to customers and partners your own logo and colors with a fintel design, make it the default, and apply it when you export. - [Keep benign values out of indicators](https://filigran.io/docs/opencti/configure/exclusion-lists/): Stop OpenCTI from creating indicators for benign values, such as your own IP ranges or popular domains, with exclusion lists that apply to every source. - [Customize the emails OpenCTI sends](https://filigran.io/docs/opencti/configure/email-templates/): Write email templates for administrative messages to OpenCTI users, such as onboarding or maintenance notices, and send them on creation, in bulk or one by one. - [Search inside files](https://filigran.io/docs/opencti/configure/file-indexing/): Index the text of the files stored in OpenCTI so that users can search inside them, and choose which files are indexed, up to what size. - [Repair data after an upgrade](https://filigran.io/docs/opencti/configure/data-sanity/): The background operations OpenCTI runs to repair data consistency after an upgrade, how they are scheduled, and how to estimate, run or stop them. - [Audit who did what](https://filigran.io/docs/opencti/configure/activity/): What OpenCTI activity records about who did what, where and when, the difference between knowledge history, audit and extended activity, and where each one goes. - [Set the platform parameters](https://filigran.io/docs/opencti/configure/parameters/): Set the OpenCTI platform title, appearance, announcements, map files, themes and custom labels, and check its version, license, dependencies and managers. - [Manage labels, vocabularies and templates](https://filigran.io/docs/opencti/configure/taxonomies/): Manage the labels, kill chain phases, vocabularies, status templates, case templates and custom fields that classify OpenCTI data, so every team classifies the same way. - [Connect to XTM Hub](https://filigran.io/docs/opencti/configure/xtm-hub/): Connect OpenCTI to the XTM Hub to deploy its content in one click, then follow, repair or remove the connection, and know who may deploy what. - [Usage telemetry and privacy](https://filigran.io/docs/opencti/configure/telemetry/): The anonymous usage data OpenCTI sends to Filigran, how and how often it is sent, what is never collected, and how to stop it. - [Map CSV files to knowledge](https://filigran.io/docs/opencti/configure/mappers/csv/): Build an OpenCTI CSV mapper that turns the rows of a partner's CSV file into linked entities and relationships, test it on a sample, and use it for file imports and CSV feeds. - [Map JSON APIs to knowledge](https://filigran.io/docs/opencti/configure/mappers/json/): Build an OpenCTI JSON mapper that turns the response of a partner's API into linked entities and relationships with JSON paths and identifiers, then use it in a JSON feed. **Administer** - [How access control works](https://filigran.io/docs/opencti/administer/access-control/): How OpenCTI decides what each user can do and see, through users, groups, roles, capabilities, organizations and markings, and where to set each of them. - [Manage users](https://filigran.io/docs/opencti/administer/users/): Create, edit, disable, merge and delete OpenCTI users, read what each user can do and has done, manage their API tokens, and end their sessions. - [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/): Create an OpenCTI group, give it roles, markings and a confidence level, choose its members, and set the defaults its users get. - [Grant rights with roles](https://filigran.io/docs/opencti/administer/roles/): How OpenCTI capabilities nest and add up across roles, how to build a role that grants only what a team needs, the built-in roles, and the capabilities that apply in drafts. - [Create accounts for integrations](https://filigran.io/docs/opencti/administer/service-accounts/): Create OpenCTI service accounts for connectors, feeds and scripts, give them an API token and the right groups, and convert users to service accounts. - [Configure single sign-on](https://filigran.io/docs/opencti/administer/sso/): Let people log in to OpenCTI with your identity provider, map its groups to OpenCTI groups, and keep an emergency local access. - [Manage login providers in the UI](https://filigran.io/docs/opencti/administer/authentications/): Create and edit OpenCTI login providers (OIDC, SAML, LDAP, headers, certificate) in the Authentications screen, map groups, and set password and session policies. - [Protect sensitive configuration](https://filigran.io/docs/opencti/administer/sensitive-configuration/): Limit who can change the OpenCTI settings that can break ingestion or hide data, such as built-in roles and groups, TLP markings and the platform organization. - [How OpenCTI decides who sees what](https://filigran.io/docs/opencti/administer/segregation/): How OpenCTI decides who sees each object of one shared knowledge base, with markings, organization sharing and authorized members, and which one to use. - [Separate data between organizations](https://filigran.io/docs/opencti/administer/organizations/): Turn on organization segregation in OpenCTI, delegate user management to organization administrators, and share knowledge with organizations by hand or with playbooks. - [Restrict access with markings](https://filigran.io/docs/opencti/administer/markings/): Create marking definitions in OpenCTI, give groups access to them, apply default markings, and limit the markings that can leave the platform. - [Restrict one object to chosen people](https://filigran.io/docs/opencti/administer/sharing/): How OpenCTI restricts one object, such as a dashboard, a report or an organization, to chosen users, groups or organizations, and when to use it rather than markings. - [Let users request access](https://filigran.io/docs/opencti/administer/request-access/): Let OpenCTI users ask for knowledge they cannot see because of organization segregation, and set who validates or declines these requests. - [Set platform security policies](https://filigran.io/docs/opencti/administer/policies/): Set the platform-wide security policies of OpenCTI, such as the platform main organization, user visibility, the classification banner and the messages shown at login. - [Cookies](https://filigran.io/docs/opencti/administer/cookies/): The two browser cookies OpenCTI sets, what each one does, how long it lives, the configuration keys that control it, and when it is removed. - [Send emails from OpenCTI](https://filigran.io/docs/opencti/administer/smtp/): Configure the mail server OpenCTI sends emails through from the interface, with basic or OAuth2 authentication, and test it without restarting the platform. --- # How access control works > How OpenCTI decides what each user can do and see, through users, groups, roles, capabilities, organizations and markings, and where to set each of them. - URL: https://filigran.io/docs/opencti/administer/access-control/ - Products: OpenCTI 7.261119.0 - For: administrators - Type: Concept OpenCTI decides, for every user, what they can do and which data they can see. It uses role-based access control (RBAC): a user belongs to groups, each group carries roles, and each role is a list of capabilities. Markings and organizations then limit the data each user sees. You set all of it in **Settings > Security**, which this part of the documentation covers. ## What access control is good for {#what-access-control-is-good-for} | Goal | Example | | --- | --- | | Give each team the actions it needs | Analysts create and update knowledge; only leads delete or merge | | Keep sensitive data to the people cleared for it | Only the incident response group sees data marked TLP:RED | | Separate the entities you serve | Each member organization sees only what is shared with it | | Set people up at their first login | A single sign-on login puts users in the group that matches their directory group | | Protect the platform from mistakes | Only a few administrators can change the built-in roles or the platform organization | ## How it works {#how-it-works} **Diagram: Users get what they can do from the roles of their groups, and what they can see from markings and organizations** - Who: User (A person or a service account) - Grouped by: Group (Membership, defaults, confidence), Organization (Data segregation) - Grants: Role (A set of capabilities), Allowed markings (Which data is visible) Connections: - User → Group: member of - User → Organization: member of - Group → Role: has roles - Group → Allowed markings: allows | Element | What it is | Where you set it | | --- | --- | --- | | User | A person, or a service account for a machine | **Settings > Security > Users** | | Group | A set of users that receives roles, allowed markings, a maximum confidence level and defaults | **Settings > Security > Groups** | | Role | A named set of capabilities | **Settings > Security > Roles** | | Capability | The right to do one kind of action, such as **Delete knowledge** or **Manage credentials** | In a role | | Marking definition | A label on data, such as TLP:AMBER, that only the groups allowed to see it can see | **Settings > Security > Marking definitions** | | Organization | A segregation unit: users see the data shared with their organizations | **Settings > Security > Organizations** | Five rules explain most of what you will see: 1. **Capabilities add up.** A user gets every capability of every role of every group they belong to. No capability removes another: to give fewer rights, use a group with a narrower role. 2. **Groups carry everything.** Roles, allowed markings, the maximum confidence level, the default dashboard and the hidden entity types are set on groups. A user in no group with a role can do nothing. 3. **A capability says what, markings and organizations say which.** A user who can update knowledge still sees only the objects whose markings their groups allow and, with organization segregation, the objects shared with their organization. 4. **Confidence limits changes.** A user creates or changes data only up to their maximum confidence level: the highest of their groups, unless one is set on the user. Without one, they cannot write at all. 5. **Bypass all capabilities bypasses almost everything.** A user with it has every capability, sees all data and has a maximum confidence level of 100. Only the right to change [sensitive configuration](https://filigran.io/docs/opencti/administer/sensitive-configuration/) is set apart. [How OpenCTI decides who sees what](https://filigran.io/docs/opencti/administer/segregation/) explains how markings, organizations and authorized members combine to decide who sees an object. **Example: Work out what an analyst of a member hotel can do and see** Example CERT runs the platform for the hotel sector and has set itself as the platform main organization. Ana Duval, of Grand Meridian Hotels, belongs to one organization and one group: - **Organization**: Grand Meridian Hotels. - **Group**: CTI analysts, with the Analyst role (**Access knowledge**, **Create / Update knowledge**, **Upload knowledge files**, **Import knowledge**, **Ask for knowledge enrichment**), the allowed markings TLP:CLEAR, TLP:GREEN and TLP:AMBER, TLP:GREEN as maximum shareable marking, and a maximum confidence level of 75. Applying the five rules: - **What she can do.** She creates reports and indicators and updates them, but cannot delete or merge anything: no group of hers gives **Delete knowledge** or **Merge knowledge**. - **Which data she sees.** The objects shared with Grand Meridian Hotels, plus the types that are never segregated, such as sectors and locations, and among them only those marked up to TLP:AMBER. The Velvet Harbor report that Example CERT shared with the hotel shows; a TLP:RED incident case of Example CERT does not, even if someone shares it with the hotel. - **How much she can change.** An indicator another analyst rated at a confidence of 80 stays read-only for her: 80 is above her 75. - **What she can release.** Her exports and public dashboards carry data up to TLP:GREEN only. To let her delete only what she created, do not add **Delete knowledge** to the Analyst role, which every analyst shares. Give her a second group whose role has it, and turn on **Do not allow these users to delete content created by other users** on both her groups: the option applies only when every group of a user has it. See [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/#group-options). ## Secure choices first {#secure-choices-first} Each choice below closes a gap that administrators often find too late: | Choice | Why | | --- | --- | | Keep **Bypass all capabilities** to a few named administrators | It opens all data, whatever its markings and organizations, and every setting. Protect the built-in groups and roles too, with [sensitive configuration](https://filigran.io/docs/opencti/administer/sensitive-configuration/) | | Keep the Default group narrow | Every new user joins it unless told otherwise. Out of the box it gives **Access knowledge** and no marking: users see only unmarked data until another group opens more | | Map groups from your identity provider, and turn on **Prevent platform default groups association** | Rights then come from the directory at each login, not from memberships added by hand and forgotten. Read [how a login provisions the account](https://filigran.io/docs/opencti/administer/sso/#how-a-login-provisions-the-account) for the exact rules | | Set a **Max Confidence Level** below 100 on analyst groups | Data from your most reliable sources then cannot be overwritten by mistake. Groups created by single sign-on get `app:group_confidence_level:max_confidence_default`, 100 unless you lower it | | Set **Maximum shareable marking definitions** on every group | Without it, members can export everything they can read | | Give **Restrict organization access** to a few roles | With organization segregation, it decides who releases data to other organizations | ## Pages of this section {#pages-of-this-section} | To | Read | | --- | --- | | Create, disable or delete accounts, and end sessions | [Manage users](https://filigran.io/docs/opencti/administer/users/) | | Give users their rights, markings and confidence level | [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/) | | Look up what each capability allows | [Grant rights with roles](https://filigran.io/docs/opencti/administer/roles/) and the [capability reference](https://filigran.io/docs/reference/opencti/capabilities/) | | Give connectors and scripts an account | [Create accounts for integrations](https://filigran.io/docs/opencti/administer/service-accounts/) | | Log users in with your identity provider | [Configure single sign-on](https://filigran.io/docs/opencti/administer/sso/) and [Manage login providers in the UI](https://filigran.io/docs/opencti/administer/authentications/) | | Limit who changes the settings that can break the platform | [Protect sensitive configuration](https://filigran.io/docs/opencti/administer/sensitive-configuration/) | | Decide who sees which object | [How OpenCTI decides who sees what](https://filigran.io/docs/opencti/administer/segregation/), [Separate data between organizations](https://filigran.io/docs/opencti/administer/organizations/), [Restrict access with markings](https://filigran.io/docs/opencti/administer/markings/) and [Restrict one object to chosen people](https://filigran.io/docs/opencti/administer/sharing/) | | Let users ask for data they cannot see | [Let users request access](https://filigran.io/docs/opencti/administer/request-access/) | | Set the platform organization, login messages and other rules | [Set platform security policies](https://filigran.io/docs/opencti/administer/policies/) | | Set session cookies and the mail server | [Cookies](https://filigran.io/docs/opencti/administer/cookies/) and [Send emails from OpenCTI](https://filigran.io/docs/opencti/administer/smtp/) | ## Who sees the Security menu {#who-sees-the-security-menu} **Settings > Security** shows each page only to the users whose role has its capability: | Capability | Pages | | --- | --- | | **Manage credentials** | **Users**, **Groups**, **Organizations**, **Roles**, **Sessions**, **Policies**, **Email templates** and **SMTP configuration** | | **Manage authentication** | **Authentications** | | **Manage marking definitions** | **Marking definitions** | | **Manage dissemination lists** | **Dissemination list** | An organization administrator without **Manage credentials** sees only **Users** and **Organizations**, limited to the organizations they administer. ## What's next {#what-s-next} - [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/), to set up the groups users belong to. - [Manage users](https://filigran.io/docs/opencti/administer/users/), to create accounts. - [Grant rights with roles](https://filigran.io/docs/opencti/administer/roles/), to create roles, and the [capability reference](https://filigran.io/docs/reference/opencti/capabilities/), everything a role can grant. --- # Manage login providers in the UI > Create and edit OpenCTI login providers (OIDC, SAML, LDAP, headers, certificate) in the Authentications screen, map groups, and set password and session policies. - URL: https://filigran.io/docs/opencti/administer/authentications/ - Products: OpenCTI 7.261119.0 - For: administrators - Type: How-to guide The **Authentications** screen holds every way users can log in to OpenCTI: the local form, the single sign-on (SSO) providers, and the platform-wide login policies. This page walks you through adding an OpenID Connect (OIDC), SAML or LDAP provider, mapping its groups, hardening the login, and recovering if you lock yourself out. Read [Configure single sign-on](https://filigran.io/docs/opencti/administer/sso/) first to choose a strategy. ## Before you start {#before-you-start} - **Edition.** Every login provider other than **Local** needs an Enterprise Edition license: OIDC, SAML, LDAP, **HTTP headers** and **Client Certificate**. Without it, you can still create providers, but their **Status** shows the Enterprise Edition chip and OpenCTI refuses the logins that go through them. The local form, the password policy, two-factor authentication, sessions and the IP allow list work without the license. See [Editions and licensing](https://filigran.io/docs/start/editions/). - **Capabilities.** **Manage authentication** opens the screen. It lets you create, edit and delete OIDC, SAML and LDAP providers, and edit the IP allow list. Some settings check another capability: - editing **Local**, **HTTP headers** and **Client Certificate**, and **Enforce two-factor authentication**, also needs **Manage credentials**; - **Max concurrent sessions (0 equals no maximum)** needs **Manage parameters**. - `app:base_url` is the URL users reach OpenCTI at (see [Basic parameters](https://filigran.io/docs/reference/opencti/configuration/#basic-parameters)). The callback URLs shown in the forms are built from it. - You can register an application at your identity provider (IdP) and read the claims or attributes it returns. - You know the password of a local account with **Manage authentication**, in case a provider fails. See [If you are locked out](#if-you-are-locked-out). ## Find your way in the screen {#find-your-way-in-the-screen} Open **Settings > Security > Authentications**. From top to bottom, the screen shows: - **Platform-wide settings**: **Two-factor authentication** and **Sessions**. See [Set platform-wide login policies](#set-platform-wide-login-policies). - **Built-in strategies**: **Local**, **HTTP headers** and **Client Certificate**. They always exist: you can turn them on or off and edit them, not delete them. Their **Authentication type** is `FORM` for a login form and `SSO` for a login button. - **SSO providers**: your OIDC, SAML and LDAP providers. **Authentication strategy** shows the protocol and the login type, such as `OIDC (SSO)` or `LDAP (FORM)`. Their **Status** is **Active**, **Disabled**, **Starting** while the provider loads, or **Error** when it is enabled but failed to start. *(OpenCTI 7.260811 and later)* The **IP access allow list** card sits under the platform-wide settings. ![The Authentications screen with the two-factor and session settings at the top, the Local, HTTP headers and Client Certificate strategies, then the list of SSO providers with their status and the Create Authentication button.](https://filigran.io/docs/shots/71968611856a78d9470ec3cc461e9f2caf81cde5e729e5dcdf7231bdcc43890c.webp) If the screen shows a banner about environment variables instead of the list of SSO providers, `app:authentication:force_env` is on. The providers then come from the configuration file, and only the password policy and two-factor authentication can change here. See [Configure single sign-on](https://filigran.io/docs/opencti/administer/sso/#configure-the-providers). ## Add an OIDC provider {#add-an-oidc-provider} 1. Click **Create Authentication** and choose **Create OIDC**. 2. Enter a **Configuration name**. It names the provider in the list and, unless you set a **Login button label**, on the login button. Under the name, **Callback URL** shows `/auth//callback`. The identifier is the name in lower case, with dashes in place of other characters. ![The Create OIDC Authentication panel with its Configuration, Groups and Organizations tabs, the Configuration name field and, under it, the Callback URL line that fills in from the name.](https://filigran.io/docs/shots/215017cbade98e190e1875d6b772866a64b32b763804bd15e44ad73e460a2d1f.webp) 3. Register that callback URL as a redirect URI of a new client application at your IdP. To keep a URL that is already registered, open **Callback URL**: - **Override identifier** lets you type the **Provider identifier** yourself, in lower-case letters, digits and dashes. Renaming the provider then no longer changes its URL. - **Override callback URL** lets you type a **Callback URL override**, for example when a proxy in front of OpenCTI rewrites paths. It must still contain `/auth//callback`. Otherwise a red icon warns you, and the IdP sends users back to a URL that OpenCTI does not answer. 4. Fill in **Issuer** (the base URL of the IdP, where OpenCTI reads its discovery document), **Client ID** and **Client secret**. For the secret, choose **Set a new secret** or **Use external secret** (see [Keep secrets out of the database](#keep-secrets-out-of-the-database)). 5. Check the **User information mapping**. The defaults read the standard claims: `user_info.email`, `user_info.name`, `user_info.given_name` and `user_info.family_name`. **Email expression** and **Name expression** are required, and OpenCTI refuses a login that returns no email. 6. Open **Protocol & Scopes** if the IdP needs more than the defaults (see the table below). 7. Open the **Groups** tab and map the IdP groups (see [Map groups and organizations](#map-groups-and-organizations)). Do the same in **Organizations** if you segregate data by organization. 8. Leave **Enable OIDC authentication** on and click **Create**. The status turns **Starting**, then **Active** once OpenCTI has reached the issuer. **Error** means it could not: open **Logs**. | Setting in **Protocol & Scopes** | Default | Effect | | --- | --- | --- | | **Scopes (comma-separated, defaults to openid email profile)** | `openid email profile` | The scopes OpenCTI asks for. Add the one your IdP needs to return groups, for example `groups` | | **Audience** | Empty | Sent as the `audience` parameter of the authorization request, for IdPs that require it | | **Logout remote** | Off | On logout, OpenCTI also sends the user to the end-session endpoint of the IdP, which ends their IdP session. When it is off, only the OpenCTI session ends, and the next click on the login button may log the user back in without a password | | **Logout callback URL** | Empty | Where the IdP sends the user after a remote logout (`post_logout_redirect_uri`). Register it at the IdP. Used only with **Logout remote** | | **Use proxy** | Off | OpenCTI reaches the issuer through the outgoing proxy of the platform, `HTTPS_PROXY` or `HTTP_PROXY`, unless the IdP host is in `NO_PROXY`. Turn it on when the platform has no direct internet access. See [Network and security](https://filigran.io/docs/reference/opencti/configuration/#network-and-security) | **Example: Log in with Microsoft Entra ID through OpenID Connect** Grand Meridian Hotels signs its staff in with Microsoft Entra ID, and OpenCTI is reached at `https://opencti.example.com`. The platform reaches the internet only through the corporate proxy. - **Configuration name**: `Entra ID`. **Callback URL** shows `https://opencti.example.com/auth/entra-id/callback`: register it as a web redirect URI of the app registration in Entra ID. - **Login button label**: `Log in with Microsoft Entra ID`. - **Issuer**: `https://login.microsoftonline.com/3f6c2a1e-8b4d-4e2a-9c71-5d0e8f2b7a14/v2.0`, the v2.0 endpoint of your tenant. - **Client ID**: the application (client) ID of the app registration, for example `0b7e5c9d-2f41-4a8e-b6d3-91c4e7a20f55`. - **Client secret**: **Use external secret**, then `entra_client_secret (env)`, defined as `SECRETS__ENTRA_CLIENT_SECRET__VALUE` in the platform configuration. The secret never reaches the database. - **User information mapping**: keep the defaults. The userinfo endpoint of Entra ID returns `email`, `name`, `given_name` and `family_name`. - **Protocol & Scopes**: **Use proxy** on, since `HTTPS_PROXY=http://proxy.example.com:3128` is set on the platform. **Logout remote** on, with **Logout callback URL** `https://opencti.example.com/`, so that logging out of OpenCTI on a shared front-desk workstation also ends the Entra session. - **Groups** tab: see [the mapping example](#map-groups-and-organizations). The login page then shows a `Log in with Microsoft Entra ID` button, and the first login of each employee creates their account. ## Add a SAML provider {#add-a-saml-provider} Click **Create Authentication**, choose **Create SAML**, and enter a **Configuration name** in the **Create SAML Authentication** panel. The callback URL is the assertion consumer service (ACS) URL to register at the IdP. It is built and overridden the same way as for OIDC. Then fill in: | Field | What to enter | | --- | --- | | **Issuer** | The identifier of OpenCTI at the IdP (its entity ID). It must match the client registered there exactly | | **SAML URL (entry point)** | The URL of the IdP where OpenCTI sends the login request | | **IDP certificate** | The certificate of the IdP, in PEM format, used to check its responses | The defaults read the user from the `email` and `name` attributes, the groups from `groups` and the organizations from `organizations`. Change them to the attribute names your IdP sends. **Want assertion signed** and **Want authn response signed** make OpenCTI reject a response whose assertion, or whose whole response, the IdP did not sign. Turn on the one your IdP signs. To sign the requests OpenCTI sends: - Fill in **Private key**, under **IDP certificate**. - In **Security & Signing**, fill in **Signing certificate** and register the same certificate at the IdP. - Choose the **Signature algorithm** and enter the **Digest algorithm** the IdP expects, for example `sha256`. The algorithm is `sha1`, `sha256` or `sha512`; **None** leaves the choice to the SAML library. Prefer `sha256` or above. To receive encrypted assertions, fill in **Decryption private key** in **Security & Signing**, and give the matching **Decryption certificate** to the IdP. On the IdP, choose AES-128 or AES-256 (CBC or GCM) for the assertion, and RSA-OAEP-MGF1P for the key. **Identifier format (NameID)**, in **Security & Signing**, is the NameID format OpenCTI asks for, for example `urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress`. Leave it empty unless the IdP rejects the request because of its NameID policy. **Request behavior** changes the login request itself. Leave every switch off unless your IdP needs it: | Setting | Effect when on, or when filled | | --- | --- | | **Logout remote** | On logout, OpenCTI also sends a SAML logout request to the IdP, which ends the IdP session | | **Force reauthentication** | The IdP asks for credentials at every login, even when the user already has an IdP session | | **Disable requested authn context** | The request no longer states how the user must authenticate. Turn it on when the IdP refuses logins made in another way, for example with Windows integrated authentication or a passwordless method | | **Authentication context (comma-separated)** | The authentication context classes to request instead, for example `urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport` | | **Disable request ACS URL** | The request no longer carries the callback URL: the IdP uses the one registered for the client | | **Skip request compression** | OpenCTI sends the request without deflate compression, for IdPs that cannot read it | | **SSO Binding type** | `HTTP-Redirect` or `HTTP-POST`: how the request travels to the IdP | Paste a key or a certificate with its `-----BEGIN` and `-----END` lines and its line breaks, or on one line without those two lines. If your IdP exports PKCS12, convert it: `openssl pkcs12 -in keystore.p12 -out newfile.pem -nodes`. > **Tip** > > When the IdP rejects a signed request, compare the certificate fingerprints on both sides with `openssl x509 -in signing-cert.pem -noout -fingerprint -sha256`. Then check the algorithm, the binding and the **Issuer**. Decryption fails with `oaep decoding error` when the key does not match the certificate at the IdP. It also fails when the IdP uses another OAEP digest: try SHA-1 there. **Example: Log in through the SAML provider of a sharing community** The Harbor sharing community runs a SAML identity provider at `idp.example.com`, where OpenCTI is registered as the client `opencti`. - **Configuration name**: `Harbor community SSO`, which gives the callback URL `https://opencti.example.com/auth/harbor-community-sso/callback` to register at the IdP. - **Issuer**: `opencti`, exactly as the client is named at the IdP. - **SAML URL (entry point)**: `https://idp.example.com/realms/cti/protocol/saml`. - **IDP certificate**: the signing certificate from the metadata of the IdP, pasted with its `BEGIN` and `END` lines. - **Want assertion signed**: on, so that OpenCTI refuses an assertion the IdP did not sign. - **Request behavior**: **Logout remote** on, so that leaving OpenCTI also ends the community session. - **Groups** tab: keep `groups` in **Groups expressions** and map `harbor-analysts` to **Platform group** Harbor analysts. Leave **Enable SAML authentication** on and click **Create**. Members of the community then log in with the button, and land in Harbor analysts when the IdP lists them in `harbor-analysts`. ## Add an LDAP provider {#add-an-ldap-provider} LDAP checks the login and password typed in the login form against your directory. Click **Create Authentication**, choose **Create LDAP**, enter a **Configuration name** in the **Create LDAP Authentication** panel, then fill in: | Field | What to enter | | --- | --- | | **LDAP URL** | The directory server, for example `ldaps://dc.example.com:636` | | **Bind DN** and **Bind credentials** | The account OpenCTI uses to search the directory | | **Search base** and **Search filter** | Where and how to find the user. `{{username}}` is replaced by the login typed, for example `(mail={{username}})` | | **Group base** and **Group filter** | Where and how to find the user's groups. `{{dn}}` is replaced by the user's distinguished name, for example `(member={{dn}})` | The defaults read the email from `mail`, the name from `givenName` and the groups from `cn`. **Enable LDAP authentication** is on by default: the login page shows the form as soon as you click **Create**. **Search & Authentication** holds the rest. Most directories need none of it: | Setting | Default | Effect | | --- | --- | --- | | **Allow self-signed certificates** | Off | Accepts a directory certificate that no trusted authority signed. Only for a test directory: anyone on the network path could then impersonate the server and read passwords | | **Search attributes (comma-separated)** | All | The user attributes to read. Keep the ones your mapping uses, such as `mail,givenName,sn` | | **Group search attributes (comma-separated)** | All | The group attributes to read. Keep the one in **Groups expressions**, such as `cn` | | **Username field** and **Password field** | `username` and `password` | The names of the form fields that carry the login and the password. The OpenCTI login form always sends `username` and `password`: leave both empty, or every login fails | | **Credentials lookup** | Empty | Stored with the provider, but this version does not use it to log in. Leave it empty | **Example: Check logins against Active Directory** The hotel group keeps its accounts in Active Directory, and people log in with their email address and directory password. - **Configuration name**: `Corporate directory`. - **LDAP URL**: `ldaps://dc.example.com:636`, so that passwords travel over TLS. - **Bind DN**: `CN=svc-opencti,OU=Service Accounts,DC=example,DC=com`, a read-only account. **Bind credentials**: **Use external secret**, then `ldap_bind_password (env)`. - **Search base**: `OU=Staff,DC=example,DC=com`. **Search filter**: `(mail={{username}})`, to match the email typed in the form. - **Group base**: `OU=Groups,DC=example,DC=com`. **Group filter**: `(member={{dn}})`. - **Search & Authentication**: **Allow self-signed certificates** off, since the domain controller has a certificate from the corporate authority, which the platform trusts. - **Groups** tab: map `CTI-Analysts` to CTI analysts and `SOC-Analysts` to SOC analysts. A member of the `CTI-Analysts` directory group who logs in with `ana.duval@example.com` lands in CTI analysts. ## Map groups and organizations {#map-groups-and-organizations} The **Groups** and **Organizations** tabs work the same way for every provider except **Local**. Read [how a login provisions the account](https://filigran.io/docs/opencti/administer/sso/#how-a-login-provisions-the-account) for the rules behind them. | Setting | What it does | | --- | --- | | **Groups expressions** | Where to read the groups in what the IdP returns. For OIDC, use `user_info.` for the userinfo endpoint, or `tokens.id_token.` and `tokens.access_token.` for a claim inside a token. Quote a claim that contains dots: `user_info."https://idp.example.com/groups"` | | **Groups splitter** | The character that separates several groups in one value, such as `,` | | **Groups mapping** | Pairs of **Provider group** and **Platform group**. The platform group must exist with this exact name, or OpenCTI refuses the login, unless **Auto create groups** is on | | **Default groups** | Groups given to every user of this provider, whatever the IdP returns | | **Auto create groups** | Creates a mapped group that does not exist yet. The new group has no role and no marking. Its maximum confidence level is `app:group_confidence_level:max_confidence_default`, 100 by default: see [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/#confidence-levels) | | **Prevent platform default groups association** | New users of this provider do not get the groups granted by default at user creation | *(OpenCTI 7.260811 and later)* **Extend platform groups** keeps the groups a user received in OpenCTI by hand. At login, only the groups that appear in the mapping are added or removed. The **Organizations** tab has the same settings for organizations: **Organizations expressions**, **Organizations splitter**, **Organizations mapping** (**Provider organization** and **Platform organization**), **Default organizations** and **Auto create organizations**. To put users in the platform organization, map the value to the exact name of that organization. The special value `settings_platform_organization` does not work as a target in this version: OpenCTI looks for an organization with that name, refuses the login when **Auto create organizations** is off. When it is on, the user does land in the platform organization, but OpenCTI also creates an empty organization named `settings_platform_organization`. To find the right expression, log in once, click **Logs** on the row of the provider and open an entry. Its details show every claim the IdP returned. For example, groups in a custom claim of the ID token need the expression `tokens.id_token._groups`. A mapping then turns `Admin` into `Administrators`. **Example: Map Entra ID groups found in the ID token** With the groups claim turned on in the app registration, Entra ID puts the object IDs of the user's groups in the ID token, not their names: ```json { "email": "ana.duval@example.com", "name": "Ana Duval", "groups": ["8d2f4c1a-6b3e-4f7d-9a21-0c5e7b9d3f48", "5a90e3d2-7c14-4f8b-a6e5-3b21d9c8f710"] } ``` In the **Groups** tab of the Entra ID provider: - **Groups expressions**: `tokens.id_token.groups`. - **Groups mapping**: **Provider group** `8d2f4c1a-6b3e-4f7d-9a21-0c5e7b9d3f48`, **Platform group** `CTI analysts`. Add a second line for the Entra group of the SOC, mapped to `SOC analysts`. - **Auto create groups**: off, so that a typing error blocks the login instead of creating an empty group. - **Prevent platform default groups association**: on, so that Entra users get only the groups you mapped. Ana lands in CTI analysts only: the second object ID has no mapping and is ignored. ## Keep secrets out of the database {#keep-secrets-out-of-the-database} Client secrets, private keys and bind credentials can be stored in two ways: - **Set a new secret** stores the value in the database, encrypted with the platform encryption key. When you edit the provider, **Keep existing secret** leaves it unchanged. - **Use external secret** stores only the name of a secret defined in the OpenCTI configuration. OpenCTI reads its value when the provider starts. Define an external secret as `SECRETS____VALUE`: it appears in the list as ` (env)`. To fetch it from CyberArk instead, set `SECRETS____CREDENTIALS_PROVIDER__SELECTOR=cyberark` and the CyberArk variables: ```bash SECRETS__OIDC_CLIENT_SECRET__CREDENTIALS_PROVIDER__SELECTOR=cyberark SECRETS__OIDC_CLIENT_SECRET__CREDENTIALS_PROVIDER__CYBERARK__URI=https://cyberark.example.com/AIMWebService/api/Accounts SECRETS__OIDC_CLIENT_SECRET__CREDENTIALS_PROVIDER__CYBERARK__APP_ID=opencti SECRETS__OIDC_CLIENT_SECRET__CREDENTIALS_PROVIDER__CYBERARK__SAFE=cti SECRETS__OIDC_CLIENT_SECRET__CREDENTIALS_PROVIDER__CYBERARK__OBJECT=oidc SECRETS__OIDC_CLIENT_SECRET__CREDENTIALS_PROVIDER__CYBERARK__FIELD_TARGETS=["client_secret"] ``` OpenCTI splits the CyberArk content on `:` and gives each part to a field of `FIELD_TARGETS`, in order. When a value itself contains `:`, choose another separator with `SECRETS____CREDENTIALS_PROVIDER__CYBERARK__DEFAULT_SPLITTER`. If CyberArk cannot be reached, OpenCTI logs `Remote credentials data fail to fetch, fallback`, and a provider whose required secret is missing shows the **Error** status. Each field then appears in the **Use external secret** list as `: (cyberark)`, here `oidc_client_secret:client_secret (cyberark)`. ## Add a setting the form does not show {#add-a-setting-the-form-does-not-show} Each OIDC, SAML and LDAP form ends with **Extra configuration**. Click **+**, choose a type, and enter the key and the value of an option of the underlying Passport library. OpenCTI passes it as is. ## Configure the built-in strategies {#configure-the-built-in-strategies} Click **Update** on the row of a built-in strategy to edit it, in the **Update Local Authentication**, **Update HTTP Headers Authentication** or **Update Client Certificate Authentication** panel. **Local** is the email and password form. Its panel turns it off with **Enable local authentication** and sets the **Local password policies**. The policies set the minimum and maximum length, and the minimum number of symbols, digits, words, lowercase and uppercase characters. `0` means no constraint. *(OpenCTI 7.260811 and later)* **Password validity duration in days** makes passwords expire: above `0`, a password expires that many days after it was set. The user must then set a new one before doing anything else. When they do, their other sessions end. To force a change now, click **Force password change** in the user's **Password** tab. For several users, select them in the users list and update their **Force password change date**. Changing the duration moves the expiry date of every local account by the difference: from 90 to 30 days, a password due in 80 days is then due in 20, and one due in 50 days has already expired. Going from `0` to a duration gives every local account that duration from now. Setting `0` clears every expiry date. The change leaves out the users created by single sign-on and the platform administrator. Before you turn local login off, log in through another provider and check the groups and organizations you got. The switch stays locked while no other provider is enabled. **HTTP headers** logs users in from headers that a reverse proxy sets after authenticating them. Turn on **Enable header authentication**, then enter the header names in the **User information mapping** (by default `x-email`, `x-name`, `x-firstname` and `x-lastname`) and in the **Groups** tab. **Logout URI** is saved with the strategy, but this version does not use it: after logout, OpenCTI sends the user back to the page they came from, and the proxy headers can log them in again at the next click on the login button. **Headers audit** lists other headers whose values OpenCTI records in the activity log with every action of these users, for example the `x-request-id` header that your proxy adds: click **Add**, then enter a **Header name**. Only use this strategy behind a proxy that removes these headers from incoming requests: anyone who can send them directly can log in as anyone. **Client Certificate** logs users in with a certificate chosen in the browser. Turn on **Enable client certificate authentication**. By default it reads the email from `subject.emailAddress`, the name from `subject.CN`, the groups from `subject.OU` and the organizations from `subject.O`. Leave the first and last name expressions empty when your certificates have no such fields. It needs OpenCTI to serve HTTPS itself (`app:https_cert:*`, see [Network and security](https://filigran.io/docs/reference/opencti/configuration/#network-and-security)). Otherwise its status stays **Disabled**, with the warning **Client certificate requires the platform to be configured with HTTPS**. *(OpenCTI 7.261117 and later)* ## Stop users from reusing a password {#stop-users-from-reusing-a-password} **Number of recent passwords that cannot be reused (0 equals disabled)**, in the **Update Local Authentication** panel, refuses a new password that matches one of the last passwords of the account. The count includes the current password: `1` refuses only the current one, `5` the current one and the four before it. It accepts `0` to `24`; `0`, the default, turns the rule off. ![The Update Local Authentication panel with Number of recent passwords that cannot be reused set to 5, under Password validity duration in days.](https://filigran.io/docs/shots/fe8013d39d336f168ebb2863a692f1382cb4547a242813e9df2adedd8ac4541a.webp) The rule applies to every local account, whoever sets the password: the user in their profile, at a forced change or after a forgotten password, or an administrator in the user's **Password** tab. It leaves out the users of a single sign-on provider and the service accounts, which have no password of their own. Each password form lists the rule in its **Password security policies** box: **Must be different from your last {count} passwords** for the user, **Must be different from the last {count} passwords** for an administrator, with your count in place of `{count}`. A reused password gets **This password has already been used recently. Please choose a different one.**, and the password stays as it was. OpenCTI stores one-way hashes of the old passwords, never the passwords themselves. It starts remembering when you turn the rule on: until then, it knows only the current password of each account. Lowering the count deletes the hashes no longer needed at once. `0` deletes every stored history, so turning the rule back on starts from scratch. An account that moves to single sign-on loses its history too. While the rule is on, password changes are also limited per account and per person submitting them: 5 attempts in 15 minutes by default, successful ones included. Beyond that, the form shows **Too many password change attempts. Please try again in a few minutes.** One person's attempts never block another's: an administrator can still reset the password of an account someone is guessing on. Change the limit with `app:password_change:max_attempts` (`APP__PASSWORD_CHANGE__MAX_ATTEMPTS`) and `app:password_change:window_seconds` (`APP__PASSWORD_CHANGE__WINDOW_SECONDS`), see [Network and security](https://filigran.io/docs/reference/opencti/configuration/#network-and-security). A refused reuse goes to the platform logs as `Password reuse refused`, and, with the Enterprise Edition, to the activity log with the `password_reuse` operation. Scripts that change passwords through the API must send the password on its own while the rule is on: an update that also changes another field fails with `The password must be changed on its own`. **Example: Keep hotel staff from cycling back to an old password** Grand Meridian Hotels makes local passwords expire every 90 days, and its auditors ask that a password not come back within a year and a half. - **Password validity duration in days**: `90`. - **Number of recent passwords that cannot be reused (0 equals disabled)**: `6`, the current password and the five before it, about 18 months of changes. - The default limit of 5 attempts in 15 minutes stays: no setting to add to the platform configuration. When Ana Duval's password expires, OpenCTI refuses the one she used last spring, and accepts a new one. ## Set platform-wide login policies {#set-platform-wide-login-policies} - **Enforce two-factor authentication** makes every user set up a one-time code application before they can use the platform. - **Max concurrent sessions (0 equals no maximum)** limits how many sessions a user can have at the same time. When a login goes over the limit, OpenCTI ends the user's oldest sessions. *(OpenCTI 7.260811 and later)* **Enable IP allow list**, in the **IP access allow list** card, rejects logins and requests from addresses outside **Allowed IP addresses (one per line, e.g. 192.168.1.0/24)**. Write single addresses or CIDR ranges, IPv4 or IPv6. At least one address is required. When you turn the switch on, **Excluded from IP check** fills in with three entries, so that you do not lock out what keeps the platform running: your own account, the `admin` account, and the **Default group for Service accounts** set in [Set platform security policies](https://filigran.io/docs/opencti/administer/policies/). Add others with **Add user, group or organization**, for example the analysts who travel. Remove an entry with its cross. Removing your own account or the group of service accounts first asks you to confirm in **Remove exclusion**; any other entry goes at once. Nothing applies until you click **Save**. Turning the switch off and clicking **Save** also empties the address list and the exclusions. ![The IP access allow list card with Enable IP allow list turned on, the Allowed IP addresses text area, and the Excluded from IP check list that OpenCTI filled with the admin account and the Connectors group.](https://filigran.io/docs/shots/8789977adb76d40be1e3c3a7c2df361d4227719f70e2226133e401d67a8d8e66.webp) Behind a reverse proxy, set `trust_proxy_addresses` so that OpenCTI sees the client address, not the address of the proxy (see [Network and security](https://filigran.io/docs/reference/opencti/configuration/#network-and-security)). Otherwise every request seems to come from the proxy. **Example: Harden the login of the hotel group platform** Grand Meridian Hotels lets its staff in from the head office network only, and requires a second factor from everyone. - **Enforce two-factor authentication**: on. - **Max concurrent sessions (0 equals no maximum)**: `2`, one session on the workstation and one on a laptop. - **Local password policies** of **Local**: minimum length `14`, at least `1` symbol, `1` digit and `1` uppercase character. - **Enable IP allow list**: on. **Allowed IP addresses**: `198.51.100.0/24`, the head office range, and `203.0.113.17`, the VPN gateway. - **Excluded from IP check**: keep the three entries OpenCTI added, and add the SOC analysts group, whose members work from the outsourced SOC. A login from the guest Wi-Fi of a hotel is then refused, unless the user belongs to SOC analysts, and the connectors in the Connectors group keep working. ## Check that it works {#check-that-it-works} 1. Open the login page in a private window: each enabled provider shows its button, or the login form for LDAP. 2. Log in as a test user of each mapped IdP group, then check the user's groups in **Settings > Security > Users**. 3. If the login fails, click **Logs** on the row of the provider. It keeps the last 50 entries, each with **Timestamp**, **Level**, **Message** and **Details**. **Refresh** loads the new ones. **View full details** opens **Log details**, with everything the IdP returned, and **Previous log** and **Next log** move between entries. ## If you are locked out {#if-you-are-locked-out} Add the setting to the configuration file or as an environment variable, and restart. Log in, fix the cause, then remove the setting and restart again. | Situation | Setting | Effect | | --- | --- | --- | | Local login is off, and you know the password of a local account that has **Manage authentication** | `app:authentication:force_local=true` | The local form shows again, whatever the screen says. Turn **Local** back on, then remove the setting | | Same, but the platform administrator is locked by `app:admin:externally_managed` | `app:admin:externally_managed=false` and `app:authentication:force_local=true` | The administrator defined by `app:admin:email` and `app:admin:password` is active again and can use the local form | | SSO worked before the upgrade to 7.260224 and fails since | `app:authentication:force_env=true` | Providers come from the configuration file again. OpenCTI deletes the providers stored in the database, and migrates them again at the next start without the setting | *(OpenCTI 7.260811 and later)* If the IP allow list locks you out, set `app:ip_whitelist_enabled=false` and restart: OpenCTI ignores the list until you remove the setting. See [Network and security](https://filigran.io/docs/reference/opencti/configuration/#network-and-security). ## What's next {#what-s-next} - [Configure single sign-on](https://filigran.io/docs/opencti/administer/sso/), how a login provisions the account and how to keep an emergency access. - [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/), to prepare the groups your providers map to. - [Manage users](https://filigran.io/docs/opencti/administer/users/), to check the accounts your providers create. - [Cookies](https://filigran.io/docs/opencti/administer/cookies/), for session duration and cookie security. - [OpenCTI configuration reference](https://filigran.io/docs/reference/opencti/configuration/), for every key named on this page. --- # Cookies > The two browser cookies OpenCTI sets, what each one does, how long it lives, the configuration keys that control it, and when it is removed. - URL: https://filigran.io/docs/opencti/administer/cookies/ - Products: OpenCTI 7.261119.0 - For: administrators, platform engineers - Type: Reference OpenCTI uses cookies only for sessions in the browser. API clients, such as the Python client `pycti`, connectors and workers, send an API token in the `Authorization` header and get no cookie. This page lists the cookies, the settings that control them, and when they are removed. ## The cookies {#the-cookies} | Cookie | Purpose | Lifetime | | --- | --- | --- | | `opencti_session` | Keeps the user logged in after any login: local, single sign-on, LDAP, HTTP headers or certificate | `app:session_timeout`, 20 minutes by default, renewed at every request | | `opencti_flash` | Carries an error to the interface after a request that redirects the browser fails, such as a single sign-on, certificate or HTTP headers login | 10 seconds | Both are needed for the platform to work; neither is used for anything but the session. The session cookie is `HttpOnly`: scripts in the page cannot read it. ## How the session cookie works {#how-the-session-cookie-works} **Diagram: How the OpenCTI session cookie keeps a user logged in** - Clients: Browser (Sends opencti_session on every request), API clients (Send a token, get no cookie) - OpenCTI: Platform (Checks and renews the session) - Sessions: Redis (Shared sessions by default) Connections: - Browser ↔ Platform: session cookie - API clients → Platform: Authorization header - Platform → Redis: stores the session 1. The user logs in. The server creates a session and sends the `opencti_session` cookie. With `app:session_manager` set to `shared`, the default, the session is stored in Redis; otherwise it stays in the memory of the platform node. 2. The browser sends the cookie with every request, and the server checks the session. 3. Every request pushes the expiry back by `app:session_timeout`: the session only ends after that long without activity. With several platform nodes, keep the shared session manager so every node sees the same sessions: see [Scale](https://filigran.io/docs/deploy/operate/scale/). ## Settings {#settings} | Key | Default | Effect | | --- | --- | --- | | `app:session_timeout` | `1200000` (20 minutes) | How long, in milliseconds, a session lasts without activity | | `app:session_idle_timeout` | `0` (off) | How long, in milliseconds, the interface waits without activity before it locks the screen | | `app:session_cookie` | `false` | When `true`, the cookie has no expiry date and the browser removes it when it closes | | `app:session_manager` | `shared` | Where sessions are stored: `shared` for Redis, any other value for the memory of the node | | `app:https_cert:cookie_secure` | `false` | When `true`, the browser sends the cookies over HTTPS only | | `app:https_cert:cookie_samesite` | `lax` | The `SameSite` attribute of the session cookie: `strict`, `lax` or `none`. Browsers accept `none` only with `cookie_secure` set to `true`, and `strict` can break the return from a single sign-on provider | The four `app:session_*` keys are in [Basic parameters](https://filigran.io/docs/reference/opencti/configuration/#basic-parameters), the two `app:https_cert:*` keys in [Network and security](https://filigran.io/docs/reference/opencti/configuration/#network-and-security). > **Warning** > > Set `APP__HTTPS_CERT__COOKIE_SECURE=true` whenever users reach OpenCTI over HTTPS, including behind a reverse proxy that terminates TLS. Otherwise the session cookie can travel over an unencrypted connection. For example, a one-hour session over HTTPS: ```bash APP__SESSION_TIMEOUT=3600000 APP__HTTPS_CERT__COOKIE_SECURE=true APP__HTTPS_CERT__COOKIE_SAMESITE=lax ``` ## When the cookies are removed {#when-the-cookies-are-removed} | Event | What happens | | --- | --- | | The user logs out | The server ends the session and tells the browser to delete the cookie | | The session expires | The cookie no longer matches a session; the next request fails and the interface returns to the login page | | An administrator kills the session | Same as expiry, from **Settings > Security > Sessions** or the user page. See [End sessions](https://filigran.io/docs/opencti/administer/users/#end-sessions) | | The browser closes, with `app:session_cookie` set to `true` | The browser deletes the cookie | | 10 seconds pass after an error | The browser deletes `opencti_flash` | ## What's next {#what-s-next} - [Configure single sign-on](https://filigran.io/docs/opencti/administer/sso/), for the ways users log in. - [Manage login providers in the UI](https://filigran.io/docs/opencti/administer/authentications/#set-platform-wide-login-policies), to limit concurrent sessions. - [OpenCTI configuration reference](https://filigran.io/docs/reference/opencti/configuration/), for every key. --- # Organize users in groups > Create an OpenCTI group, give it roles, markings and a confidence level, choose its members, and set the defaults its users get. - URL: https://filigran.io/docs/opencti/administer/groups/ - Products: OpenCTI 7.261119.0 - For: administrators - Type: How-to guide A group is how users get their rights in OpenCTI: its roles say what members can do, its markings say which data they can see and share, and its confidence level says how much they can change. This page shows how to create a group, set each of its options and read the result. For the model behind groups, read [How access control works](https://filigran.io/docs/opencti/administer/access-control/). ## Before you start {#before-you-start} - Your role has the **Manage credentials** capability. - The roles you want to give exist. See [Grant rights with roles](https://filigran.io/docs/opencti/administer/roles/). - To change the built-in groups (Administrators, Connectors, Default), you also need the right to change sensitive configuration. See [Protect sensitive configuration](https://filigran.io/docs/opencti/administer/sensitive-configuration/). ## Create a group {#create-a-group} 1. Open **Settings > Security > Groups** and click **Create Group**. 2. In the **Create a group** panel, enter a **Name**, a **Description** and the **Max Confidence Level** of members, from 0 to 100 (100 by default), then click **Create**. 3. Open the group and click **Update**. The **Update a group** panel has five tabs: **Overview**, **Roles**, **Markings**, **Members** and **Confidences**. Every change is saved as you make it. 4. In **Roles**, check the roles to give to members. 5. In **Markings**, check the **Allowed marking definitions** members can see, and set the other marking options described in [Group options](#group-options). ![The Markings tab of the Update a group panel for CTI analysts: TLP:CLEAR, TLP:GREEN and TLP:AMBER checked under Allowed marking definitions, the Default marking definitions selector, and TLP:GREEN chosen for TLP under Maximum shareable marking definitions.](https://filigran.io/docs/shots/499f28fe815d1e43789ae63d3ddac17e0c6e7f2d31bcceab809856ea8f483e4f.webp) 6. In **Members**, add the users. With single sign-on, prefer a group mapping, which keeps membership in sync with your directory: see [Manage login providers in the UI](https://filigran.io/docs/opencti/administer/authentications/#map-groups-and-organizations). **Example: Set up the CTI team of a hotel group** The threat intelligence team of Grand Meridian Hotels reads and writes knowledge up to TLP:AMBER, may only share TLP:GREEN outside the platform, and must not delete what others produced. - **Name**: `CTI analysts`. **Description**: `Threat intelligence team of Grand Meridian Hotels`. **Max Confidence Level**: `75`: members can create and change data up to a confidence of 75, and cannot change data rated above it. - **Roles**: Analyst, which reads and writes knowledge, imports files and asks for enrichment. It has no **Delete knowledge**, so members create and update but never delete. - **Allowed marking definitions**: TLP:CLEAR, TLP:GREEN and TLP:AMBER. - **Maximum shareable marking definitions**: TLP:GREEN for TLP, so that TLP:AMBER data never leaves in an export or a public dashboard. - **Members**: Ana Duval and Leo Martin. - **Granted by default at user creation**: off, so that new users of the platform do not join the team. Ana and Leo now see Velvet Harbor reports marked TLP:AMBER, and their user page shows a **Max Confidence Level** of 75. When Leo exports a report, he can include its content up to TLP:GREEN; asking for its TLP:AMBER content is refused. ## Group options {#group-options} | Option | Tab | Effect | | --- | --- | --- | | **Default dashboard** | Overview | The home dashboard of members who have not chosen one. The group must also be allowed on the dashboard, or a warning shows next to it on the group page | | **Hidden entity types** | Overview | Entity types hidden from members in the menus and creation forms. This declutters the interface, it does not restrict access | | **Granted by default at user creation** | Overview | New users join the group, unless their creator turns on **Don't add the user to the default groups** or their single sign-on provider prevents it. The list shows it as **Default membership** | | **Automatically authorize this group to new marking definition** | Overview | Each new marking definition is added to the allowed markings of the group, and members can share it. The list shows it as **Auto new markings** | | **Do not accumulate creators for the users of this group** | Overview | When members update an object someone else created, they are not added to its creators. Applies to a user only when all their groups have it | | **Do not allow these users to delete content created by other users** | Overview | Members can delete only what they created. Applies to a user only when all their groups have it, and never to a user who has **Bypass all capabilities** | | **Allowed marking definitions** | Markings | The markings whose data members can see. A marking also opens the lower markings of its type. See [Restrict access with markings](https://filigran.io/docs/opencti/administer/markings/) | | **Default marking definitions** | Markings | The markings proposed when members create data, for the entity types whose customization turns default markings on. Only the highest marking of each type is kept | | **Maximum shareable marking definitions** | Markings | For each marking type, the highest marking of the data members can put in file exports and public dashboards. Choose **Not shareable** to block a whole type. A type left on **No restrictions** is shareable up to what the group is allowed | | **Max Confidence Level** and overrides | Confidences | The highest confidence members can set or change, with exceptions per entity type | ## Read the group page {#read-the-group-page} The page of a group shows its effective settings in three cards, then its **Triggers and Digests** and its members. ![The page of the CTI analysts group: the Basic information card with Auto new markings and Default membership set to No, the Permissions card with the Analyst role and a Max Confidence Level of 75, and the Markings card with three allowed markings and TLP:GREEN as maximum shareable marking for TLP.](https://filigran.io/docs/shots/d829c4eed22ba9ec3ba1d315342ca18ce8b5a3921ea42a4d619b3da222cf3f8f.webp) - **Basic information**: the description, the hidden entity types, **Auto new markings** and **Default membership**. - **Permissions**: the **Roles**, the **Default dashboard**, the **Max Confidence Level** with its overrides, **No creators accumulation** and **Restrict delete to created entities**. - **Markings**: the **Default markings**, the **Allowed markings**, and the **Maximum shareable markings** of each marking type: a marking, **Not shareable**, or **No restrictions**. A warning icon next to a maximum shareable marking means the group is not allowed that marking. Members can then share only what they are allowed, whatever the maximum says: allow the marking, or choose a lower one. ## Confidence levels {#confidence-levels} A user can only create, update or delete data up to their maximum confidence level. With several groups, a user gets the **highest** maximum confidence level of their groups, unless a level is set on the user. A user with **Bypass all capabilities** always has 100. > **Warning** > > A user who gets no maximum confidence level, from a group or set on the user, cannot create or change data. The **Groups** tab of a user shows a warning next to each group without a level. A group created without a level gets `app:group_confidence_level:max_confidence_default` (`APP__GROUP_CONFIDENCE_LEVEL__MAX_CONFIDENCE_DEFAULT`), 100 by default. This covers the groups that single sign-on creates with **Auto create groups**, and the built-in groups of a new platform. The **Create a group** panel always sends a level, so the setting does not change it. See [Functional customization](https://filigran.io/docs/reference/opencti/configuration/#functional-customization). **Example: Give the groups that single sign-on creates a cautious level** Example CERT lets its identity provider create the groups of new member teams, and reviews each new group before it trusts its members' changes. In the `environment` of the `opencti` service: ```yaml APP__GROUP_CONFIDENCE_LEVEL__MAX_CONFIDENCE_DEFAULT: 30 ``` A group such as `Seaside Resorts CTI`, created at the first login of its members, then gets a **Max Confidence Level** of 30 instead of 100. Its members cannot overwrite the knowledge Example CERT rated higher until an administrator raises the level. ## Built-in groups {#built-in-groups} | Group | Role | Purpose | | --- | --- | --- | | Default | Default (**Access knowledge**) | Granted by default at user creation. It allows no marking out of the box, so a user in this group only sees data without markings | | Administrators | Administrator (**Bypass all capabilities**) | Platform administrators. Automatically authorized to new markings | | Connectors | Connector | The group of the service accounts that integrations create. Automatically authorized to new markings | The Connectors group is the **Default group for Service accounts** of a new platform: the group every service account created by an ingestion or a connector deployment joins. Change it in [Set platform security policies](https://filigran.io/docs/opencti/administer/policies/). ## Delete a group {#delete-a-group} Open the group, open the actions menu (⋮), choose **Delete** and confirm. The menu shows **Delete** only when your role also has **Delete knowledge**. Members lose the roles and markings the group gave them. A user left without a group with a role can do nothing; a user left without a confidence level can no longer write. ## Check that it works {#check-that-it-works} Open a member in **Settings > Security > Users**: the user page lists the groups, the roles and the effective **Max Confidence Level** of the user. To check what a member sees, log in as them in a private window. ## What's next {#what-s-next} - [Configure single sign-on](https://filigran.io/docs/opencti/administer/sso/), to fill groups from your identity provider. - [Restrict access with markings](https://filigran.io/docs/opencti/administer/markings/), to decide which data each group sees. - [Create accounts for integrations](https://filigran.io/docs/opencti/administer/service-accounts/), for the groups of connectors. --- # Restrict access with markings > Create marking definitions in OpenCTI, give groups access to them, apply default markings, and limit the markings that can leave the platform. - URL: https://filigran.io/docs/opencti/administer/markings/ - Products: OpenCTI 7.261119.0 - For: administrators - Type: How-to guide Markings classify each object by sensitivity, such as TLP:AMBER or PAP:RED, and OpenCTI hides an object from anyone whose groups are not cleared for its markings. This page shows how to create markings, grant them to groups, apply them by default and limit what leaves the platform. For how markings combine with organizations, read [How OpenCTI decides who sees what](https://filigran.io/docs/opencti/administer/segregation/) first. ## Before you start {#before-you-start} - Your role has the **Manage marking definitions** capability to create markings, and **Manage credentials** to edit groups. - You have decided your classification scheme. OpenCTI ships the Traffic Light Protocol (TLP:CLEAR, TLP:GREEN, TLP:AMBER, TLP:AMBER+STRICT, TLP:RED) and the Permissible Actions Protocol (PAP:CLEAR, PAP:GREEN, PAP:AMBER, PAP:RED) as markings. ## How markings grant access {#how-markings-grant-access} A marking has a **Type**, such as `TLP`, and an **Order** inside that type. To see an object, a user needs access to every marking on it, through at least one of their groups. Access to a marking also opens the markings of the same type with a lower or equal order: a group allowed TLP:AMBER sees TLP:GREEN and TLP:CLEAR. For each type, an object keeps only the markings of the highest order. When markings of the same type but different orders meet, OpenCTI drops the lower ones: at creation, when an update or a connector adds one, and when entities are merged. Markings of the same type and the same order are all kept, and so are markings of other types. A report created with PAP:AMBER, PAP:RED, TLP:AMBER+STRICT, TLP:CLEAR and the statement `Partner NDA` ends up with PAP:RED, TLP:AMBER+STRICT and `Partner NDA`. A connector therefore cannot downgrade a marking already on an object. When you pick a marking of another order of the same type by hand, OpenCTI asks you to confirm. The Structured Threat Information Expression (STIX) 2.1 standard does not allow versioning marking definitions, so a change of definition never changes the markings of existing objects indirectly. ## Create a marking {#create-a-marking} 1. Open **Settings > Security > Marking definitions** and click **Create Marking definition**. 2. Fill **Type** with the group of markings it belongs to, for example `TLP` or `Statement`. 3. Fill **Definition** with its name, for example `TLP:AMBER`. 4. Pick a **Color** and set the **Order**. A higher order is more restrictive within the type. 5. Click **Create**. ![The Create a marking definition panel with the Type, Definition, Color and Order fields, and the Cancel and Create buttons.](https://filigran.io/docs/shots/f3a535ef0611245dc3d9362835799e152a619371b7c96af5ee94be50886e0091.webp) Nobody sees data with the new marking until a group is allowed it, except users who bypass all capabilities. **Example: Keep partner reports to the CTI team** Grand Meridian Hotels receives reports from its partners under a non-disclosure agreement, and only its CTI team may read them. - **Type**: `Statement`, a type of its own, so that the marking does not interfere with TLP. - **Definition**: `Partner NDA`. - **Color**: `#d84315`, to stand out next to the TLP markings. - **Order**: `10`. It is the only marking of its type for now; a later, more restrictive statement takes a higher order. Then, in the **Markings** tab of the CTI analysts group, check `Partner NDA` under **Allowed marking definitions** and set Statement to **Not shareable** under **Maximum shareable marking definitions**. A report marked TLP:GREEN and `Partner NDA` is visible to Ana Duval and Leo Martin only, and never leaves in an export. ## Give a group access to markings {#give-a-group-access-to-markings} 1. Open **Settings > Security > Groups**, open the group and click **Update**. 2. In the **Markings** tab, under **Allowed marking definitions**, check the markings the group may see. 3. To grant every future marking to this group automatically, turn on **Automatically authorize this group to new marking definition** in the **Overview** tab. New markings also become shareable by the group. The group page lists the result under **Allowed markings** and **Auto new markings**. See [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/) for the other group settings. ## Apply markings by default {#apply-markings-by-default} Default markings are added to the objects that members of a group create. It takes two settings: 1. In the **Markings** tab of the group, under **Default marking definitions**, select the **Default markings** among the allowed ones. When you pick several of the same type, only the highest is kept. 2. Open **Settings > Customization > Entity types** and open the entity type. In its **Attributes**, edit the **Markings** attribute and turn on **Activate/Deactivate default values**. Do this for each type that should get default markings. Default values only apply to objects created afterwards. **Example: Mark every new report of the CTI team TLP:AMBER** The CTI team of Grand Meridian Hotels shares nothing by mistake: its reports start as TLP:AMBER until an analyst lowers the marking. - In the CTI analysts group, **Default marking definitions**: TLP:AMBER. - In **Settings > Customization > Entity types**, **Report**, the **Markings** attribute: **Activate/Deactivate default values** on. When Ana Duval creates a report on Velvet Harbor, the **Markings** field is already filled with TLP:AMBER. Other entity types, such as indicators, keep an empty field until you turn their default values on too. ## Limit what can leave the platform {#limit-what-can-leave-the-platform} **Maximum shareable marking definitions**, in the **Markings** tab of a group, set for each type the highest marking its members may share outside the platform: in public dashboards and file exports. Data above that level is not shared; choose **Not shareable** to block a whole type. When you set nothing for a type, every marking of that type the group is allowed is shareable. Users who bypass all capabilities can share everything. For example, with TLP set to TLP:GREEN and Statement set to **Not shareable**, members export TLP:CLEAR and TLP:GREEN data, and nothing that carries a statement marking. ## Restrict objects to named users {#restrict-objects-to-named-users} Markings restrict by clearance. To restrict one object to named users, groups or organizations, use [authorized members](https://filigran.io/docs/opencti/administer/sharing/). The **Restricted entities** list, in **Data > Restriction > Restricted entities**, shows every entity restricted this way, with its **Restriction Date**, so that you can review them. Select entities and click **Remove access restriction** in the toolbar: they become visible again to everyone their markings, and their organizations, allow. Only users with **Bypass all capabilities** see **Data > Restriction**. The screen needs an Enterprise Edition license: without it, it shows the **Access restriction** Enterprise Edition notice instead of the list. Markings themselves work without the license. See [Editions and licensing](https://filigran.io/docs/start/editions/). ![The Restricted entities list of the Data Restriction screen, with the incident response case Front-desk account compromise at Grand Meridian Hotels, its author, its markings and its Restriction Date.](https://filigran.io/docs/shots/8c20bfffe05cda711c65a5f63435b690cc2347cc7a89e4e4fa2b7c3614bcbcb8.webp) ## Check that it works {#check-that-it-works} Sign in as a member of the group, or ask one, and open a list filtered on the marking. Objects with a marking the group is not allowed must be missing. A member creating an object of a type with default values on sees the default markings filled in. ## What's next {#what-s-next} - [Separate data between organizations](https://filigran.io/docs/opencti/administer/organizations/) to restrict data by organization as well. - [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/) for the rest of the group settings. - [Configure entity types](https://filigran.io/docs/opencti/configure/entities/) for default values on other attributes. --- # Separate data between organizations > Turn on organization segregation in OpenCTI, delegate user management to organization administrators, and share knowledge with organizations by hand or with playbooks. - URL: https://filigran.io/docs/opencti/administer/organizations/ - Products: OpenCTI 7.261119.0 - For: administrators - Type: How-to guide Organization segregation lets one OpenCTI instance serve several organizations, such as business units, ISAC members or customers, each seeing only the knowledge you share with it. This page takes you from planning to a running setup, then covers delegated user management and manual and automated sharing. Read [How OpenCTI decides who sees what](https://filigran.io/docs/opencti/administer/segregation/) first: segregation filters one shared knowledge base, it does not create separate copies. ## Before you start {#before-you-start} - Your platform has an Enterprise Edition license for segregation itself: the platform main organization, **Share with an organization**, the sharing playbook step and organization administrators. Organizations as entities, and the default dashboard and hidden entity types of their members, work without it. See [Editions and licensing](https://filigran.io/docs/start/editions/). - Your role has the **Manage credentials** capability. The platform main organization is a [protected sensitive configuration](https://filigran.io/docs/opencti/administer/sensitive-configuration/) by default: one of your roles also needs the setting **Allow modification of sensitive configuration** turned on, at the top of its **Capabilities** tab. - Every user belongs to at least one organization. Once segregation is on, a user without an organization cannot log in, unless they have **Bypass all capabilities** or are a [service account](https://filigran.io/docs/opencti/administer/service-accounts/). ## Plan organizations, groups and roles {#plan-organizations-groups-and-roles} Organizations decide which objects a user sees; groups and roles decide what the user can do and up to which marking. A user can belong to several organizations and several groups: their visibility is the union of all of them. 1. Create each organization as an entity, in **Entities > Organizations**. An organization is both a piece of knowledge and a container of users, so it then appears in **Settings > Security > Organizations** for administration. 2. Add each user to their organizations, in the **Organizations** field of the user, and to their groups, in **Settings > Security > Users**. 3. Give the right capabilities to the roles of these groups. Two matter here, both under **Create / Update knowledge**: - **Restrict organization access** shows the **Share with an organization** button. It decides who can release data to other organizations: keep it to a few trusted roles. - **Manage authorized members** lets users restrict an object to named users, groups and organizations. ## Turn on segregation {#turn-on-segregation} This needs an Enterprise Edition license: without it, **Platform organization** stays disabled. 1. Open **Settings > Security > Policies**. 2. In the **Platform main organization** card, select the organization that owns the platform in **Platform organization**. 3. Read the warning about the consequences and click **Validate**. ![The Platform main organization card of the Policies page, marked Danger Zone, with the notice that setting it turns on organization sharing and segregation, and the Platform organization selector.](https://filigran.io/docs/shots/def65bc8edb962a64dc27a3f138efb63bcce1294ed582b1d90fa72389cb101f6.webp) From then on, members of the main organization see all the data their markings allow. Members of other organizations only see what is shared with one of their organizations. Service accounts count as members of the main organization without being listed among its users. The **Allow users to view users of other organizations** option of **Users visibility** turns off. ## Delegate user management to organization administrators {#delegate-user-management-to-organization-administrators} An organization administrator creates, edits and deletes the users of their organization, without access to the rest of the settings. The **Organizations admin** tab and **Grantable groups by Organization administrators** need an Enterprise Edition license. 1. In **Settings > Security > Users**, open the user, click **Update** and open the **Organizations admin** tab. It lists the organizations the user belongs to, and stays disabled while they belong to none. 2. Check the organizations this user administers. 3. In **Settings > Security > Organizations**, open the organization, click **Update** and set **Grantable groups by Organization administrators**. Organization administrators can only put their users in these groups, so they cannot grant more than you intended. On the organization page, a warning icon next to a grantable group means its roles have **Manage credentials** or **Bypass all capabilities**. An organization administrator could then give a user rights over the whole platform: remove that group from the list. *(OpenCTI 7.261030 and later)* An administrator of several organizations who clicks **Create User** in **Settings > Security > Users** can choose, in **Add a group**, among the grantable groups of all the organizations they administer. **Example: Let a member hotel manage its own analysts** Example CERT owns the platform and serves several hotel chains. Ana Duval leads the CTI team of Grand Meridian Hotels and should onboard the hotel's analysts herself. - On Ana Duval, **Organizations admin**: Grand Meridian Hotels, one of her organizations. - On the Grand Meridian Hotels organization, **Grantable groups by Organization administrators**: CTI analysts and SOC analysts. Ana now sees **Settings > Security > Users** with the members of Grand Meridian Hotels only. She can create an account for a new SOC analyst and put it in SOC analysts, but cannot make anyone a member of Administrators. ## Tailor the platform for each organization {#tailor-the-platform-for-each-organization} In **Settings > Security > Organizations**, open an organization. Its page shows two cards, then its **Triggers and Digests** and its **Users**: - **Basic information**: the **Description**, the **Organization type** and the **Contact information** of the organization entity; - **More information**: the **Hidden entity types**, the **Parent organizations** and **Child organizations**, which come from the **part-of** relationships between organization entities, the **Default dashboard**, and the **Grantable groups by organization administrators**. ![The page of the Grand Meridian Hotels organization in the security settings: the Basic information card with its type and contact, and the More information card with the CTI analysts and SOC analysts grantable groups.](https://filigran.io/docs/shots/69c0a543fd208ccc5d466800f2337b7452bf62496a9edf2a1704e2e49b3b84bf.webp) Click **Update** to open the **Update the organization** panel. **Name**, **Description**, **Organization type** (such as `csirt`, `vendor` or `constituent`) and **Contact information** describe the organization entity: analysts see them on the entity, and they change no access. Two fields act on its members: - a **Default dashboard**. This does not open the dashboard to them: add the organization to the authorized members of the dashboard, or a warning shows next to it and members land on a dashboard they cannot read; - **Hidden entity types**, on top of those hidden for the whole platform and for their groups. This only declutters the interface, it does not restrict access. To hide organizations from one another, for example the customers of a managed security provider, restrict each organization entity with [authorized members](https://filigran.io/docs/opencti/administer/sharing/): your administrators and its own members only. Do it when you create the organization, before you share anything with it. *(OpenCTI 7.261119 and later)* ### Open the default dashboard on a preset {#open-the-default-dashboard-on-a-preset} Once you choose a **Default dashboard**, a **Default preset** field shows under it. It lists the presets saved on that dashboard: each one holds values for the dashboard's variables and a time range, saved with **Save** > **Save as new preset…** on the dashboard (see [Build a dashboard](https://filigran.io/docs/opencti/use/dashboards/)). Members of the organization then open the dashboard on these values instead of its defaults. ![The Update the organization panel of Grand Meridian Hotels: Member hotel overview as the Default dashboard and, under it, the Last month preset in Default preset, with the helper text saying the dashboard opens on the values and time range of this preset.](https://filigran.io/docs/shots/dba24e7665e53603d017f7cebfcc83214244ec73c270a3be55f3820aa5db8076.webp) - Left empty, the field reads **No preset (default values of the dashboard)**: the dashboard opens on its own values. Clear the field to come back to it. - Choosing another default dashboard empties the preset, since presets belong to one dashboard. - A preset deleted from the dashboard no longer applies: members open the dashboard on its own values. - When a member's profile, their organizations and their groups point to the same dashboard, the first of them decides, in this order: the profile, the organizations, the groups. A member who chose this dashboard on their profile without a preset does not get the organization's preset. - On their home page, members always see the default preset. When they open the dashboard itself, a preset they pick there is kept in their browser and replaces the default one. **Example: Open the member dashboard on the last month** Example CERT publishes the Member hotel overview dashboard to Grand Meridian Hotels, with the organization among its authorized members. It wants the hotel's analysts to see the last month when they sign in, not the three months the dashboard shows by default. A dashboard editor saves the Last month preset on the dashboard. In the **Update the organization** panel of Grand Meridian Hotels, set: - **Default dashboard**: Member hotel overview; - **Default preset**: Last month. The hotel's analysts now land on Member hotel overview with the time range of the last month. ## Share knowledge with an organization {#share-knowledge-with-an-organization} ### By hand {#by-hand} 1. Open the entity, report or case and click **Share with an organization** in its header. 2. Select the **Organization** and click **Share**. What travels with the share depends on the object: | You share | What the organization gets | | --- | --- | | A container, such as a report, a grouping or a case | The container, and every entity and relationship it contains. A background task shares the contents | | Any other entity | The entity only. Its relationships and the entities at their other end stay hidden | Partners who see two entities but not the relationship between them get empty widgets, because dashboards are built on relationships. When you share a bare entity, share its neighborhood too, with the playbook below. On a container restricted with authorized members, the **Share with an organization** button is disabled. The authorized members list decides who sees it, even organizations the container was never shared with. ### At creation {#at-creation} Objects created by a user who is not in the main organization are shared with that user's organizations. *(OpenCTI 7.260811 and later)* The same goes for a service account that you add to other organizations. To send everything a connector ingests to an organization, add the connector's service account to that organization: no playbook needed. Everything the connector brings later is shared too, so review its scope when it changes. For selective sharing, use a playbook. ### With a playbook {#with-a-playbook} A playbook shares recurring knowledge reliably. To share an entity with its neighborhood: 1. Start the playbook on the entities to share, with **Listen knowledge events** or **Query knowledge on a regular basis** and a filter. 2. Add **Apply predefined rule** with the **Rule to apply** set to **Resolve neighbors relations and entities (add in bundle)**. The bundle now holds the entity, its relationships and the entities at their other end. 3. To release only part of it, add **Reduce knowledge** with a filter, for example observables only. 4. Add **Share with organizations** and select the **Target organizations**. *(OpenCTI 7.260811 and later)* Set **Apply to** to **All elements in the bundle**. Left on **Only main element in the bundle**, it shares the entity alone. **Apply with filters** narrows what is shared. 5. End with **Send for ingestion**. **Example: Share the threats against hotels with a member hotel** Example CERT tracks the intrusion sets that target hotels, labeled `hotel-sector`, and wants Grand Meridian Hotels to see each of them with its neighborhood. 1. **Listen knowledge events**, with a filter on the entity type Intrusion set and the label `hotel-sector`. 2. **Apply predefined rule**, **Rule to apply**: **Resolve neighbors relations and entities (add in bundle)**. 3. **Share with organizations**, **Target organizations**: Grand Meridian Hotels. *(OpenCTI 7.260811 and later)* **Apply to**: **All elements in the bundle**. 4. **Send for ingestion**. When an analyst updates Velvet Harbor, analysts of the hotel see the intrusion set, the malware and attack patterns it uses, the indicators that point to it and the relationships between them, so their dashboards are not empty. **Share with organizations** reads the database before ingestion: it fails on an object created earlier in the same playbook. Create in one playbook and share in a second. The settings of each step are in the [playbook components reference](https://filigran.io/docs/reference/opencti/playbook-components/#playbook-sharing-component). ### Sharing patterns {#sharing-patterns} - **Public data for everyone.** Create one organization, for example `All members`, and add every member's users to it. A single playbook shares TLP:CLEAR knowledge with it. - **Data for one organization.** The target organizations are fixed in the playbook step, so build one playbook per audience. To keep an organization in sync, schedule a playbook that queries what is already shared with it, resolves the neighbors and shares again. This stays manageable up to about ten organizations. - **Data for a group of organizations.** Create a cluster organization, such as `Energy`, and link each member organization to it with a **part-of** relationship. Turn on the rule **Organization propagation via participation** in **Settings > Customization > Rules engine**. Users of every organization part of `Energy` then become members of `Energy` and see what you share with it. Keep this for data meant for the whole group. ## Let users ask for access {#let-users-ask-for-access} A user who tries to create something that exists but is hidden from them gets a "Restricted entity already exists" error. Set up [request access](https://filigran.io/docs/opencti/administer/request-access/) so they can ask the owning organization instead, which shares the knowledge when it accepts. ## Check that it works {#check-that-it-works} Sign in as a member of a partner organization, or ask one. Open a report you shared with their organization and check that its entities and relationships show. Search for an entity you did not share: it must not appear in lists or search. ## Best practices {#best-practices} - Design your organizations before you turn segregation on; changing it with users and data in place is harder. - Use authorized members for anything sensitive, even inside the main organization: segregation never hides data from it. - Put organization-specific analysis in notes shared with that organization, never in the fields of a shared entity. **Access to collaborative creation** lets partner analysts write notes and opinions on what you share without the right to change the entity itself. - Review the organizations list and **Data > Restriction > Restricted entities** regularly. ## What's next {#what-s-next} - [Restrict access with markings](https://filigran.io/docs/opencti/administer/markings/) to combine clearances with organizations. - [Restrict one object to chosen people](https://filigran.io/docs/opencti/administer/sharing/) to restrict single objects. - [Automate with playbooks](https://filigran.io/docs/opencti/use/automate/playbooks/) to automate sharing. --- # Set platform security policies > Set the platform-wide security policies of OpenCTI, such as the platform main organization, user visibility, the classification banner and the messages shown at login. - URL: https://filigran.io/docs/opencti/administer/policies/ - Products: OpenCTI 7.261119.0 - For: administrators - Type: How-to guide The **Policies** screen holds the security settings that apply to the whole platform: the platform main organization, the group of service accounts, user visibility, a classification banner, and the login and error messages. This page shows how to set each of them. Login providers, password rules and two-factor authentication are elsewhere, in [Manage login providers in the UI](https://filigran.io/docs/opencti/administer/authentications/). ## Before you start {#before-you-start} - Your role has the **Manage credentials** capability, to open the screen and change the platform main organization, the user policy and user visibility. - To change the banner and the messages, your role also needs **Manage parameters**. - To set or change the platform main organization, one of your roles also needs the setting **Allow modification of sensitive configuration** turned on, at the top of its **Capabilities** tab. See [Protect sensitive configuration](https://filigran.io/docs/opencti/administer/sensitive-configuration/). Open **Settings > Security > Policies**. Every field is saved as soon as you change it or leave it; the platform main organization asks for a confirmation. ![The Policies screen with the Platform main organization, User policy, Users visibility and Platform Banner Configuration cards, and the Login messages card below them.](https://filigran.io/docs/shots/0de9f1a8fcd691d674e5d51b08673b53d3a203f95f3686a52f965d7fd509970d.webp) ## Set the platform main organization {#set-the-platform-main-organization} The **Platform main organization** card turns organization segregation on. It needs an Enterprise Edition license. Users of the main organization see all the data their markings allow; users of other organizations only see what is shared with their organization. > **Warning** > > This choice affects the whole platform. Once it is set, a user who belongs to no organization cannot log in, unless they have **Bypass all capabilities** or are a service account. Put every user in an organization before you set it. Knowledge shared with no organization becomes visible to members of the main organization only. Select the organization in **Platform organization**, read the warning and click **Validate**. Service accounts automatically count as members of the main organization, without being listed among its users. Read [Separate data between organizations](https://filigran.io/docs/opencti/administer/organizations/) before you start. ## Choose the group of service accounts {#choose-the-group-of-service-accounts} In **User policy**, **Default group for Service accounts** is the group given to the service accounts that OpenCTI creates on the fly, for example for ingestion feeds or for connectors deployed by XTM Composer. It is the Connectors group out of the box. The new accounts get exactly the rights of this group: choose one whose role can create knowledge and whose allowed markings cover what your feeds bring, or what they ingest is refused. Accounts already created keep their group. See [Create accounts for integrations](https://filigran.io/docs/opencti/administer/service-accounts/#accounts-created-for-you). ## Choose who sees other users {#choose-who-sees-other-users} In **Users visibility**, **Allow users to view users of other organizations** lets everyone see every user in assignee, participant and author lists. It is off by default, and turned off automatically when a platform main organization is set. See [who sees which users](https://filigran.io/docs/opencti/administer/users/#who-sees-which-users) for the full rule. ## Show a classification banner {#show-a-classification-banner} In **Platform Banner Configuration**, choose a **Platform banner level** (**GREEN**, **RED** or **YELLOW**) and enter the **Platform banner text**. The banner shows at the top and bottom of every screen, for example to state the classification of the platform or its purpose. It shows only when both fields are set: clear the level or the text to hide it. ## Write the login messages {#write-the-login-messages} Three Markdown fields in the **Login messages** card customize the login page: - **Platform login message** shows above the login form, for example to announce maintenance. - **Platform consent message** hides the login form until the user checks a box to agree, for example to acceptable use terms. - **Platform consent confirm text** is the text next to that box. **Example: State the classification and the acceptable use terms** The sharing platform of Example CERT holds data up to TLP:GREEN, and its members must accept the acceptable use policy before they log in. - **Platform banner level**: **GREEN**. **Platform banner text**: `TLP:GREEN - Example CERT hospitality sharing platform`. - **Platform login message**: `Authorized users only. Activity is logged.` - **Platform consent message**: `This platform holds threat intelligence shared by the hospitality sector. Do not share it outside your organization.` - **Platform consent confirm text**: `I accept the acceptable use policy`. The login page shows the message and keeps the form hidden until the box is checked. Every screen then shows a green banner at the top and bottom, so a screenshot shared by mistake still carries its classification. *(OpenCTI 7.260811 and later)* ## Write the no access message {#write-the-no-access-message} **No access to knowledge error message**, in the **Platform error messages** card, replaces the home page of users who cannot access knowledge, for example to tell them whom to ask for access. It takes Markdown. ## Check that it works {#check-that-it-works} Open the login page in a private browser window: the login message shows above the form and, if you set a consent message, the form stays hidden until you check the box. Once you log in, the banner shows on every screen. ## What's next {#what-s-next} - [Manage login providers in the UI](https://filigran.io/docs/opencti/administer/authentications/), for the password policy, two-factor authentication and the IP allow list. - [Separate data between organizations](https://filigran.io/docs/opencti/administer/organizations/), before you set a platform main organization. - [Cookies](https://filigran.io/docs/opencti/administer/cookies/), for session duration and cookie security. --- # Let users request access > Let OpenCTI users ask for knowledge they cannot see because of organization segregation, and set who validates or declines these requests. - URL: https://filigran.io/docs/opencti/administer/request-access/ - Products: OpenCTI 7.261119.0 - Edition: requires an Enterprise Edition license - For: administrators, CTI analysts - Type: How-to guide With organization segregation, some knowledge exists in OpenCTI but is not shared with every organization. A user who tries to create it again gets an error, because it already exists out of their sight. Request access turns that dead end into a workflow: the user asks for the knowledge, a validator of the owning organization accepts or declines, and on acceptance the knowledge is shared with the user's organization. This page shows how to set it up and how requests are handled. Read [Separate data between organizations](https://filigran.io/docs/opencti/administer/organizations/) first if it is new to you. ## Before you start {#before-you-start} - Your platform has an Enterprise Edition license. - A platform main organization is set in [Set platform security policies](https://filigran.io/docs/opencti/administer/policies/): request access only works with organization segregation on. - Your role has the **Manage customization** capability, to configure the Request for information entity type. - A group exists for the people who will validate requests, for example the analysts of the platform main organization. Their role needs **Restrict organization access**. ## Set up the workflow {#set-up-the-workflow} Requests are a special kind of request for information (RFI), with their own statuses. 1. Open **Settings > Customization > Entity types** and choose **Request for information**. *(OpenCTI 7.260811 and later)* Open its **Workflow** tab. 2. Next to **Specific Workflow for Request Access**, click the edit icon and add the statuses a request goes through. A new request takes the first status of the list. 3. Next to **Request access actions configuration**, click the edit icon. In **Request Access Configuration**, set: - **On approval move to status:** the status of an accepted request; - **On decline move to status:** the status of a declined request; - **Validator group membership:** the group whose members can validate or decline requests. 4. Click **Update**. The card now shows both statuses and the **Validator membership:** instead of **Disabled**. ![The Specific Workflow for Request Access card with the NEW, APPROVED and DECLINED statuses, and the Request access actions configuration card showing APPROVED on approval, DECLINED on decline and the Harbor analysts validator group.](https://filigran.io/docs/shots/f7c2bb52af90fb29eb765e817c55ee6b6967696e7bf9cd68533932cf509d8b28.webp) **Example: Let the analysts of Example CERT answer access requests** Example CERT is the platform main organization, and its analysts, in the Harbor analysts group, decide what member hotels may see. - **Specific Workflow for Request Access**: `NEW`, `APPROVED` and `DECLINED`, in this order, so that a new request starts as `NEW`. - **On approval move to status:** `APPROVED`. - **On decline move to status:** `DECLINED`. - **Validator group membership:** Harbor analysts, whose role you extend with **Restrict organization access**. Leo Martin, of Grand Meridian Hotels, then tries to create the intrusion set Velvet Harbor, which Example CERT has not shared with the hotel. He clicks **Request Access** and writes `Our web proxy saw booking-velvetharbor.example; we need the related indicators`. Lena Ortiz, of Example CERT and Harbor analysts, opens the request and clicks **Validate**: Velvet Harbor is shared with Grand Meridian Hotels, and Leo is notified. ## How a request goes {#how-a-request-goes} 1. A user creates an entity that already exists but is not shared with their organization. The error says "Restricted entity already exists, you can request access", with a **Request Access** button. 2. The user clicks it, explains why they need the knowledge, chooses one of their organizations, and sends the request. 3. OpenCTI creates a request for information that contains the requested knowledge and carries its markings. The request is restricted to the members of the validator group who belong to an organization the knowledge is shared with, or to the platform main organization when it is shared with none. Each of them gets a notification, through their own notifiers, as soon as the request is created. 4. A validator opens the request and, in the **Processing status** card, clicks **Validate** or **Decline**. On validation, the knowledge is shared with the requesting organization. The request moves to the configured status, and the requester is notified of the result. To validate or decline, a user must be able to edit the request and have the **Restrict organization access** capability, which allows sharing with organizations. ## Limits {#limits} - Knowledge restricted with authorized members cannot be requested: only organization sharing can be requested. See [Restrict one object to chosen people](https://filigran.io/docs/opencti/administer/sharing/). - Requests cannot be made or answered from inside a draft. - The **Request Access** button only shows when the whole configuration is in place: Enterprise Edition, a platform main organization, both statuses and a validator group. - Once configured, request access cannot be turned off from the form. Clearing **Validator group membership:** leaves the feature on with no valid validator: new requests then reach only the users who bypass all capabilities. Change the validator group instead of clearing it. ## What's next {#what-s-next} - [Separate data between organizations](https://filigran.io/docs/opencti/administer/organizations/), to share knowledge with organizations. - [Restrict one object to chosen people](https://filigran.io/docs/opencti/administer/sharing/), for restrictions on single objects. - [Configure entity types](https://filigran.io/docs/opencti/configure/entities/), for the other workflow settings. --- # Grant rights with roles > How OpenCTI capabilities nest and add up across roles, how to build a role that grants only what a team needs, the built-in roles, and the capabilities that apply in drafts. - URL: https://filigran.io/docs/opencti/administer/roles/ - Products: OpenCTI 7.261119.0 - For: administrators - Type: How-to guide A role decides what its users can do in OpenCTI: create knowledge, delete it, manage users, run playbooks. It is a named set of capabilities, each allowing one kind of action. This page explains how capabilities nest and add up, shows how to build a role that grants only what a team needs, and lists the built-in roles. The [capability reference](https://filigran.io/docs/reference/opencti/capabilities/) lists every capability. For the overall model, read [How access control works](https://filigran.io/docs/opencti/administer/access-control/). ## How roles give rights {#how-roles-give-rights} A role does nothing on its own. You give it to a group, and every member of the group gets its capabilities. Three rules follow: - **Rights add up.** A user's capabilities are the union of the roles of all their groups. Adding a user to a group can only give rights, never take them away. To restrict a user, remove them from the group that gives the right. - **A role says what, not which data.** Capabilities say which actions a user can take. Which objects they can see comes from markings, organizations and authorized members: see [How OpenCTI decides who sees what](https://filigran.io/docs/opencti/administer/segregation/). - **Changes apply at once.** A capability you add to or remove from a role applies to every member of its groups, without a new login. A user also needs a maximum confidence level, set on a group or on the user, to create or change knowledge, whatever their capabilities. See [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/). ## How capabilities nest {#how-capabilities-nest} The capabilities form a tree, in the order of the **Capabilities** tab. A capability **includes its parents, not its children**: - A role with **Delete knowledge** also has **Create / Update knowledge** and **Access knowledge**, the capabilities above it. When you check it, they show as checked and greyed out. - A role with **Create / Update knowledge** does not get **Delete knowledge**, **Merge knowledge** or any other capability under it. You check each one you want. So you build a role from the bottom: check the most specific capabilities the team needs, and their parents follow. **Access to admin functionalities** has no checkbox of its own: a role gets it with any of the capabilities below it, such as **Manage credentials**. **Bypass all capabilities** is different: it gives every capability, all data whatever its markings and organizations, and a maximum confidence level of 100. Keep it to the Administrators group. *(OpenCTI 7.260811 and later)* The upgrade to this version gives **Share filters** to every role that has **Access knowledge**. ## Create a role {#create-a-role} You need the **Manage credentials** capability. 1. Open **Settings > Security > Roles** and click **Create Role**. 2. Enter a **Name** and a **Description**, then click **Create**. 3. Open the role, click **Update**, and check the capabilities in the **Capabilities** tab. Each checkbox is saved at once. 4. To give the role to users, open a group in **Settings > Security > Groups**, click **Update**, and check the role in the **Roles** tab. ![The Capabilities tab of the Update a role panel for the Analyst role, with the capability tree and the capabilities the role grants checked.](https://filigran.io/docs/shots/3d0ed6e1c32b79eb02b5e7a80852bce7856856c155b8def11c417710c782b79b.webp) **Example: Give analysts the right to create but not to delete** At Grand Meridian Hotels, the CTI analysts model the Velvet Harbor campaign: they create reports, indicators and relationships, import files and enrich observables. Deleting or merging entities stays with the team lead, so that a mistake cannot erase shared knowledge. - Role **Name**: `Analyst`. **Description**: `Reads and writes knowledge, imports files and asks for enrichment.` - In the **Capabilities** tab, check **Create / Update knowledge**, **Upload knowledge files**, **Import knowledge** and **Ask for knowledge enrichment**. **Access knowledge** shows as checked, as their parent. - Leave **Delete knowledge**, **Merge knowledge** and every capability under **Access to admin functionalities** unchecked. - In **Settings > Security > Groups**, give the Analyst role to the CTI analysts group. Members of CTI analysts can now create and change knowledge, but cannot delete or merge entities. They can create drafts, but not approve them: approving a draft needs **Delete knowledge**. The team lead gets a second role with **Delete knowledge** and **Merge knowledge**, through a group of their own. ## Read a role {#read-a-role} Click a role in **Settings > Security > Roles** to open its page. The list shows, for each role, the number of **Groups with this role**. ![The page of the Analyst role: its description and the CTI analysts group under Groups using this role, then the capabilities it grants and its capabilities in drafts, side by side.](https://filigran.io/docs/shots/b1b3eb19e842ac4430998c21127ca9d1adf2dce3ff912fd8eb9fe7ccba7cb89c.webp) - **Basic information** gives the **Description** and the **Groups using this role**. Before you change or delete a role, check this list: every member of these groups is affected. - **Capabilities** lists what the role grants, parents included. **Allow modification of sensitive configuration** shows first when the role has it. - **Capabilities in Draft** lists what it grants in drafts only (Enterprise Edition). To delete a role, open the actions menu next to **Update** and choose **Delete**. The menu shows **Delete** only when your role also has **Delete knowledge**. The members of the groups that used it lose its capabilities at once. ## Sensitive configuration {#sensitive-configuration} **Allow modification of sensitive configuration** is not a capability but a setting of the role. It shows at the top of the **Capabilities** tab, with a **Danger Zone** chip, while sensitive configuration protection is on. **Bypass all capabilities** does not include it. See [Protect sensitive configuration](https://filigran.io/docs/opencti/administer/sensitive-configuration/). ## Built-in roles {#built-in-roles} | Role | Capabilities on a new platform | Used by | | --- | --- | --- | | Default | **Access knowledge** | The Default group | | Administrator | **Bypass all capabilities** | The Administrators group | | Connector | What connectors need: **Delete knowledge** and **Merge knowledge** (with **Create / Update knowledge**), **Bypass enforced reference**, **Bypass mandatory fields**, **Upload knowledge files**, **Import knowledge**, **Generate knowledge export**, **Ask for knowledge enrichment**, **Connectors API usage: register, ping, export push ...**, **Allow token usage**, **Manage connector state**, **Access data sharing**, **Manage marking definitions**, **Manage labels**, **Manage vocabularies** and **Manage kill chain phases** | The Connectors group | *(OpenCTI 7.261109 and later)* The Connector role also has **Create knowledge via Form Intake**. *(OpenCTI 7.261109 and later)* ## Capabilities added by an upgrade {#capabilities-added-by-an-upgrade} An upgrade to 7.261109 adds two capabilities, and grants each to the roles that already had the rights it splits off, so that nobody loses access: | Capability | What it allows | Granted on upgrade to the roles with | | --- | --- | --- | | **Create knowledge via Form Intake**, under **Access knowledge** | Create knowledge by submitting a [form](https://filigran.io/docs/opencti/use/ingest/forms/), without **Create / Update knowledge**. It only creates: updating an object that already exists still needs **Create / Update knowledge**, and creating a label still needs **Manage labels** | **Create / Update knowledge**, outside and in drafts | | **Manage custom fields**, under **Access to admin functionalities** | Create, change and delete the [custom fields](https://filigran.io/docs/opencti/configure/taxonomies/#custom-fields) of the platform (Enterprise Edition). Adding them to entity types stays with **Manage customization** | **Manage customization** | After the upgrade, uncheck them in the roles that should not keep them: for example, remove **Manage custom fields** from a role that customizes entity types but must not change the data model. The three roles are protected as sensitive configuration by default: only users allowed to change sensitive configuration can edit them. Create your own roles rather than widening Default: every new user joins the Default group unless you prevent it. ## Capabilities in drafts {#capabilities-in-drafts} With an Enterprise Edition license, a role can give more rights inside drafts than outside, so analysts can prepare changes without touching the main knowledge base. Set them in the **Capabilities in Draft** tab of the role. A capability the role already has outside drafts shows as checked there: a role never has fewer rights in a draft. These capabilities can be added in drafts: **Access knowledge**, **Access to collaborative creation**, **Create / Update knowledge**, **Delete knowledge**, **Merge knowledge**, **Bypass enforced reference**, **Bypass mandatory fields**, **Upload knowledge files**, **Import knowledge**, **Ask for knowledge enrichment** and **Manage labels**. *(OpenCTI 7.261109 and later)* **Create knowledge via Form Intake** can also be added in drafts: users then submit forms into the draft they work in. *(OpenCTI 7.260811 and later)* **Restrict organization access** can also be added in drafts. Creating a draft requires **Create / Update knowledge**, outside or in drafts. Validating or deleting a draft requires **Delete knowledge** outside drafts. For example, give the Analyst role **Delete knowledge** in drafts only. Analysts can then remove wrong entities from a draft they prepare, while the draft still needs the team lead, who has **Delete knowledge** outside drafts, to reach the main knowledge base. See [Approve drafts step by step](https://filigran.io/docs/opencti/use/automate/draft-workflow/). ## What's next {#what-s-next} - [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/), to give roles to users. - [Protect sensitive configuration](https://filigran.io/docs/opencti/administer/sensitive-configuration/), to control who changes the built-in roles. - [How access control works](https://filigran.io/docs/opencti/administer/access-control/), the model behind roles. --- # How OpenCTI decides who sees what > How OpenCTI decides who sees each object of one shared knowledge base, with markings, organization sharing and authorized members, and which one to use. - URL: https://filigran.io/docs/opencti/administer/segregation/ - Products: OpenCTI 7.261119.0 - For: administrators, CTI team leads, evaluators - Type: Concept OpenCTI keeps one knowledge base and decides, object by object, who may see it. Three mechanisms do it: markings, organization sharing and authorized members. This page explains how they combine, so you pick the right one before you create users and share data. You set them in **Settings > Security** and on the objects themselves. ## What each mechanism is good for {#what-each-mechanism-is-good-for} | Goal | Mechanism | Example | | --- | --- | --- | | Hide data above a user's clearance | Markings | Analysts cleared up to TLP:AMBER never see TLP:RED reports | | Serve member organizations from one intelligence base | Organization sharing (Enterprise Edition) | An ISAC shares selected reports with each member company | | Keep one sensitive object to a few people | Authorized members | An incident response case visible to three named responders | ## How OpenCTI decides who sees an object {#how-opencti-decides-who-sees-an-object} Every object is stored once. When a user opens a list or an object, OpenCTI runs up to three checks and shows the object only if they let the user through. Users with the **Bypass all capabilities** capability skip every check. **Diagram: OpenCTI shows an object to a user only when every check on the object lets the user through** - Who asks: User (Groups and organizations) - OpenCTI checks: Markings (Clearance of the groups), Organization sharing (Enterprise Edition), Authorized members (Per object, replaces sharing) - Knowledge: Object (One copy for everyone) Connections: - User → Markings: allowed markings - User → Organization sharing: member of - User → Authorized members: listed on - Markings → Object: all its markings - Organization sharing → Object: shared with - Authorized members → Object: when activated 1. **Markings.** The user needs access to every marking on the object, not only one. Access comes from the groups of the user. A marking also opens the markings of the same type with a lower order: a group allowed TLP:AMBER sees TLP:GREEN and TLP:CLEAR. This check is always on. See [Restrict access with markings](https://filigran.io/docs/opencti/administer/markings/). 2. **Authorized members.** When an object is restricted to a list of users, groups and organizations, only those members get through. See [Restrict one object to chosen people](https://filigran.io/docs/opencti/administer/sharing/). 3. **Organization sharing** (Enterprise Edition). It starts when you set a platform main organization in [Set platform security policies](https://filigran.io/docs/opencti/administer/policies/). Members of the main organization see all the data their markings allow. Members of other organizations see only what is shared with one of their organizations. An object restricted with authorized members skips this check: its members see it even when it is not shared with their organization. See [Separate data between organizations](https://filigran.io/docs/opencti/administer/organizations/). What surprises people: - **A shared object is still one object.** Every organization it is shared with sees the same version, and an edit is visible to all of them. Put organization-specific comments in a note, and share the note. - **Sharing an entity does not share its relationships or neighbors.** A partner may see a system and an IP address but not the relationship between them, and their dashboards stay empty. Sharing a container, such as a report or a case, with **Share with an organization** also shares its contents. - **Visibility adds up.** A user in several organizations and groups sees the union of what each one opens. - **Some types are never segregated by organization.** Organizations, sectors and locations, and objects such as labels and markings, are visible to every user who can access knowledge, unless authorized members restrict an organization. - **Hiding entity types is not a restriction.** [Hidden entity types](https://filigran.io/docs/opencti/configure/parameters/) only declutter the interface; the API still serves them. **Example: Let a hotel chain see only what you release to it** Example CERT runs one OpenCTI instance for the hotel chains it serves. The CTI team of Grand Meridian Hotels must read the intelligence the CERT releases to it, and nothing about the other chains. - In [Set platform security policies](https://filigran.io/docs/opencti/administer/policies/), the **Platform organization** of the **Platform main organization** card is Example CERT. The CERT's own analysts belong to it: they see everything their markings allow. - The Grand Meridian analysts get **Organizations**: Grand Meridian Hotels, and **Groups**: CTI analysts, a group allowed markings up to TLP:AMBER. - On the report on Velvet Harbor's attacks against hotel booking systems, an analyst of the CERT uses **Share with an organization** and picks Grand Meridian Hotels. The entities and relationships the report contains are shared with it too. - The organization entity of each other chain is restricted with authorized members to Example CERT, so that Grand Meridian does not see who else the CERT serves. The Grand Meridian analysts now see that report and its contents, as long as they are marked TLP:AMBER or lower. Reports the CERT shares with another chain, or with no one, stay invisible to them, and so does a TLP:RED report even when it is shared with them. ## Markings, organizations and authorized members {#markings-organizations-and-authorized-members} | You need | Use | | --- | --- | | Users who must not see data above their clearance | Markings | | Partners who read the same intelligence, each seeing only what you release to them | Organization sharing | | Customers who must not know each other exist | Organization sharing, plus authorized members on each organization entity | | One sensitive object hidden from everyone else, even inside the main organization | Authorized members | | Data that must never sit in the same database | Separate platforms: no mechanism replaces that | ## What's next {#what-s-next} - [Restrict access with markings](https://filigran.io/docs/opencti/administer/markings/) to set clearances. - [Separate data between organizations](https://filigran.io/docs/opencti/administer/organizations/) to set up organizations and share with them. - [Restrict one object to chosen people](https://filigran.io/docs/opencti/administer/sharing/) to restrict one object. - [Access control](https://filigran.io/docs/opencti/administer/access-control/) for users, groups and roles. --- # Protect sensitive configuration > Limit who can change the OpenCTI settings that can break ingestion or hide data, such as built-in roles and groups, TLP markings and the platform organization. - URL: https://filigran.io/docs/opencti/administer/sensitive-configuration/ - Products: OpenCTI 7.261119.0 - For: administrators, platform engineers - Type: How-to guide Some OpenCTI settings can stop ingestion, hide data from users or break automations when they change. Sensitive configuration protection, on by default, lets only a few administrators change them. This page shows what is protected, how to give administrators the right to change it, and how to change the protected scope. ## What is protected {#what-is-protected} A protected setting shows in red with a **Danger Zone** chip. Users without the right still see it, but its actions are disabled for them. | Area | What cannot change without the right | Configuration key under `protected_sensitive_config` | | --- | --- | --- | | Roles | The roles named in `protected_names`: Administrator, Connector and Default | `roles` | | Groups | The groups named in `protected_names`: Administrators, Connectors and Default | `groups` | | Marking definitions | The markings listed in `protected_definitions`: every TLP and PAP marking | `markings` | | Rules | Turning inference rules on or off | `rules` | | Platform organization | Setting or changing the **Platform main organization** in [Set platform security policies](https://filigran.io/docs/opencti/administer/policies/) | `platform_organization` | | Enterprise Edition | Turning Enterprise Edition on or off | `ce_ee_toggle` | | File indexing | Starting, pausing or resetting file indexing | `file_indexing` | | Connectors | Resetting the state of a connector | `connector_reset` | ![The Roles list, where the Administrator, Connector and Default roles carry a Danger Zone chip and the Analyst role does not.](https://filigran.io/docs/shots/af0b67e0a3c054fb6fbeb960f47556e8d1590df4e0f3a53f8b8ae4685d807827.webp) ## Who has the right {#who-has-the-right} **Allow modification of sensitive configuration** is a setting of a role, at the top of its **Capabilities** tab. A user has the right when one of their roles has this setting on. - Out of the box, no role has it, not even Administrator: **Bypass all capabilities** does not include it. - The platform administrator, the account defined by `app:admin:email`, always has it. - The setting itself is not protected: any user with **Manage credentials** can turn it on in a role that is not protected. Give **Manage credentials** only to trusted administrators. Treat this protection as a guard against mistakes in the interface, not as a separate layer of access control. What a user may do still comes from the capabilities of their roles: see [Grant rights with roles](https://filigran.io/docs/opencti/administer/roles/). ## Before you start {#before-you-start} - Your role has the **Manage credentials** capability, to create roles and groups. - To change a protected role or group afterwards, such as Administrators, you are logged in as the platform administrator or already have the right. ## Let administrators change protected settings {#let-administrators-change-protected-settings} Give the right through a dedicated role and group, so you can see at a glance who holds it. 1. Open **Settings > Security > Roles** and click **Create Role**. Name it, for example, Danger Zone Administration, and click **Create**. 2. Open the role, click **Update**, and check **Allow modification of sensitive configuration** at the top of the **Capabilities** tab. 3. Open **Settings > Security > Groups** and click **Create Group**. Name it, for example, Danger Zone Administrators. 4. Open the group, click **Update**, check the role in its **Roles** tab, and add the people who may change protected settings in its **Members** tab. **Example: Let two platform engineers change protected settings** At Example CERT, only the two engineers who run the platform may change the built-in groups and the TLP markings. - Role **Name**: `Danger Zone Administration`, with **Allow modification of sensitive configuration** checked and no other capability. - Group **Name**: `Danger Zone Administrators`, **Description**: `Platform engineers allowed to change protected settings`, with the Danger Zone Administration role. - **Members**: the two engineers, who also stay in Administrators for their other rights. The engineers can now update the Connectors group and the TLP:AMBER marking. Other administrators still see these settings in red, with the **Danger Zone** chip and their actions disabled. To give the right to all your administrators instead, add the Danger Zone Administration role to the Administrators group. That group is itself protected, so do it as the platform administrator, or as a member of the new group. ## Check that it works {#check-that-it-works} Log in as a member of the new group and open **Settings > Security > Roles**, then the Administrator role: its **Update** button is enabled. For a user without the right, the role shows the **Danger Zone** chip and **Update** is disabled. ## Change what is protected {#change-what-is-protected} The protected scope is set in the configuration, under `protected_sensitive_config`. Each area has an `enabled` key, and roles, groups and markings take the list of protected names. A list replaces the default one: repeat the built-in names you want to keep. **Example: Protect the CTI team and let analysts manage inference rules** Example CERT wants the CTI analysts group and its Analyst role to be as hard to change as the built-in ones, and lets its senior analysts turn inference rules on and off. In the docker compose file, the `opencti` service gets: ```yaml services: opencti: environment: PROTECTED_SENSITIVE_CONFIG__GROUPS__PROTECTED_NAMES: '["Administrators","Connectors","Default","CTI analysts"]' PROTECTED_SENSITIVE_CONFIG__ROLES__PROTECTED_NAMES: '["Administrator","Connector","Default","Analyst"]' PROTECTED_SENSITIVE_CONFIG__RULES__ENABLED: 'false' ``` After a restart, the CTI analysts group and the Analyst role show the **Danger Zone** chip, and turning an inference rule on or off no longer needs **Allow modification of sensitive configuration**. To turn the whole protection off, set `PROTECTED_SENSITIVE_CONFIG__ENABLED=false` and restart. Every key and its default is in [Protect Sensitive Configurations](https://filigran.io/docs/reference/opencti/configuration/#protect-sensitive-configurations). ## What's next {#what-s-next} - [Grant rights with roles](https://filigran.io/docs/opencti/administer/roles/), for the capabilities a role can carry. - [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/), to manage the members of the new group. - [Set platform security policies](https://filigran.io/docs/opencti/administer/policies/), where the platform organization is set. --- # Create accounts for integrations > Create OpenCTI service accounts for connectors, feeds and scripts, give them an API token and the right groups, and convert users to service accounts. - URL: https://filigran.io/docs/opencti/administer/service-accounts/ - Products: OpenCTI 7.261119.0 - For: administrators, platform engineers - Type: How-to guide A service account is a user for a machine: a connector, an ingestion feed or a script that calls the API. It authenticates with an API token, never with a password, so it cannot log in to the web interface. This page shows how to create one, how it differs from a user, and how to convert an account. For the general model, read [How access control works](https://filigran.io/docs/opencti/administer/access-control/). ## Before you start {#before-you-start} - Your role has the **Manage credentials** capability. - A group gives the rights the account needs, and its role includes **Allow token usage**, without which the token is refused. For connectors, the built-in Connectors group, with the Connector role, is the usual choice. See [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/). ## Create a service account {#create-a-service-account} 1. Open **Settings > Security > Users** and click **Create User**. 2. Turn on **This user is a service account**. 3. Enter a **Name**. The **Email address** is optional: without one, OpenCTI generates a random address. *(OpenCTI 7.261109 and later)* The form hides the password fields while the switch is on, and clears what you typed in them: a service account has no password. 4. Choose the **Groups** of the account, for example Connectors. To keep it out of the groups granted by default, such as Default, turn on **Don't add the user to the default groups**. 5. Click **Create**, then open the account. 6. Click **Generate Token**. In the **Generate a new token** panel, give the token a **Name** and a **Duration**: **30 days**, **60 days**, **90 days**, **1 year** or **Unlimited**, the default. Click **Generate**. 7. Copy the token from the **Token details** panel: OpenCTI keeps only a fingerprint, so nobody can read it again once the panel is closed. Put it in the configuration of the connector or script, as `OPENCTI_TOKEN` for a connector. ![The Create a user panel with the This user is a service account switch turned on at the top, above the Name and Email address fields.](https://filigran.io/docs/shots/818ec50ed1b9cafda0b1ee273b80923eafa73b142f4c617ce1eaaf6dddcdc288.webp) **Example: Give the IP reputation connector an account of its own** Example CERT runs an IP reputation enrichment connector and wants its enrichments traced to it, not to an administrator. - **This user is a service account**: on. - **Name**: `IP reputation connector`. **Email address**: empty, OpenCTI generates one. - **Groups**: Connectors. **Don't add the user to the default groups**: on. - Token **Name**: `ip-reputation-2026`. **Duration**: **1 year**, with a reminder to rotate it before January 2027. In the docker compose file of the connector: ```yaml services: connector-ip-reputation: environment: OPENCTI_URL: https://opencti.example.com OPENCTI_TOKEN: ${IP_REPUTATION_CONNECTOR_TOKEN} ``` Every enrichment the connector writes then shows IP reputation connector as its creator, and revoking its token stops this connector without touching the others. ## How a service account differs from a user {#how-a-service-account-differs-from-a-user} - **No password.** It cannot log in to the web interface, only call the API with its token, and has no password to change. - **No notifications.** It receives no notifications or digests, and its page has no **Triggers and Digests**. - **Always in the platform organization.** When a platform organization is set, a service account counts as a member of it, in addition to its own organizations, so organization segregation never blocks its ingestion. It can also log in without any organization. - **Visible to all.** Every user who can pick users in a list sees service accounts, whatever their organizations. - **Not held back by authorized members.** It reads and changes objects restricted to named users, groups or organizations, even when it is not one of them, as long as it has their markings. A connector can therefore keep updating a restricted report or case. See [Restrict one object to chosen people](https://filigran.io/docs/opencti/administer/sharing/#rules-that-surprise-people). The **API Tokens** section of the account lists its tokens with when each was **Last Used**, or **Never used**, and when it **Expires At**. A token that expires within seven days shows **Expires soon**: generate the next one, update the connector, then revoke the old one. **Revoke** a token when the connector that used it is removed, or when it leaked. An expired token is refused, and the connector stops writing. ## Accounts created for you {#accounts-created-for-you} Some integrations create their account themselves, for example a TAXII, RSS or CSV feed set to create its user on the fly. These accounts join only the group set as **Default group for Service accounts** in [Set platform security policies](https://filigran.io/docs/opencti/administer/policies/), the Connectors group on a new platform, not the groups granted by default. If no group is set there, OpenCTI refuses to create them. ## Convert a user into a service account {#convert-a-user-into-a-service-account} Open the user and click **Convert**, then **Convert** in the dialog. - **User to service account**: the password is deleted, so the account can no longer log in to the interface. It joins the platform organization and stops receiving notifications. Its ID and tokens stay, so what it created keeps its author and integrations keep working. You can convert it back. - **Service account to user**: OpenCTI generates a random password, and the user sets their own with the forgotten password flow. If the account was created as a service account, its address is random: give it a real email address first, or the user cannot receive the reset email. The account leaves the platform organization unless it is a member of it. ## Check that it works {#check-that-it-works} Start the connector or script. In the **API Tokens** section of the account, **Never used** gives way to the date the token was **Last Used**, and a connector appears in the list of connectors once it has registered. If the connector logs `You are not allowed to use API Access Tokens`, the roles of the account lack **Allow token usage**. ## What's next {#what-s-next} - [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/), to give the account only the rights it needs. - [Grant rights with roles](https://filigran.io/docs/opencti/administer/roles/#built-in-roles), for the capabilities of the Connector role. - [Manage login providers in the UI](https://filigran.io/docs/opencti/administer/authentications/#set-platform-wide-login-policies), to exclude service accounts from the IP allow list. --- # Restrict one object to chosen people > How OpenCTI restricts one object, such as a dashboard, a report or an organization, to chosen users, groups or organizations, and when to use it rather than markings. - URL: https://filigran.io/docs/opencti/administer/sharing/ - Products: OpenCTI 7.261119.0 - For: administrators, CTI analysts, CTI team leads - Type: Concept Roles say what a user can do everywhere; sometimes you need to decide access for one object instead. OpenCTI does it with **authorized members**: a list of users, groups or organizations that restricts the object to them, each with an access level. This page explains how they work, where they apply, and when to use them rather than markings or organizations. ## What it is good for {#what-it-is-good-for} | Goal | Example | | --- | --- | | Share a workspace with your team | A dashboard visible to the threat intelligence group only, editable by its lead | | Keep a sensitive investigation to a few people | An incident response case only its responders can open, inside an organization that sees everything else | | Hide organizations from one another | Each customer of a managed security provider sees only its own organization entity | ## How it works {#how-it-works} By default, everyone whose markings and organization allow it can access an object. Once you restrict it, **only** the authorized members can access it, each with an access level: | Level | Allows | | --- | --- | | **can view** | Read the object | | **can edit** | Read and change it | | **can manage** | Read, change and delete it, and change its authorized members | **Diagram: Authorized members add a check on one object, after the capabilities and markings of the user** - User: Analyst (Opens or edits a report) - Platform-wide checks: Capabilities (Role allows the action), Markings (Groups cleared for them) - Object check: Authorized members (Replaces organization sharing) - Restricted object: Report (Only listed members reach it) Connections: - Analyst → Capabilities: action - Analyst → Markings: clearance - Capabilities → Authorized members: allowed - Markings → Authorized members: cleared - Authorized members → Report: view, edit or manage Authorized members add a check; they do not replace the others. A member still needs the capabilities for the action and the markings of the object. Every restricted object must keep at least one member with **can manage**, so nobody creates an object no one can manage. Users with **Bypass all capabilities** always have full access. ### Where they apply {#where-they-apply} | Objects | Who has access without a restriction | | --- | --- | | Custom dashboards and investigations | Only the creator, who gets **can manage** | | Priority intelligence requirements (PIR) | Everyone can view; the creator manages | | Reports, groupings, incident responses, requests for information, requests for takedown and feedbacks | Everyone the markings and organizations allow | | Organizations | Everyone | | Drafts | Everyone who can access drafts | Sharing dashboards and investigations works in Community Edition. Restricting knowledge objects and organizations needs an Enterprise Edition license: without it, the padlock is disabled. ### Restrict an object {#restrict-an-object} For a knowledge object, such as a report or an organization, your role needs the **Manage authorized members** capability. On any object, you need **can manage** once it is restricted. 1. Open the object and click the padlock, **Manage access restriction**, in its header. When the header has no room for it, and for a dashboard or an investigation, choose **Manage access restriction** in the actions menu (⋮). 2. For a knowledge object, turn on **Activate access restriction**. 3. Under **Add new specific access**, select a user, group or organization, choose its **Access right** and click **Add**. For an organization, **Advanced options** > **Groups restriction** narrows the access to the members of some groups. 4. Click **Save**. The padlock shows the object is restricted. When you turn on the restriction, OpenCTI lists you with **can manage**, so that you keep control of the object. For reports, groupings, incident responses, requests for information and requests for takedown, you can also set authorized members in the creation form. **Example: Keep an incident case to its responders** The incident response "Booking system intrusion at a hotel chain" holds exports of guest records from a member hotel. Until the investigation closes, only the SOC analysts who work it may change it, and the CTI analysts may read it to link it to Velvet Harbor. - **Activate access restriction**: on. You stay listed with **can manage**. - **Add new specific access**: SOC analysts, **Access right** **can edit**, then **Add**. - **Add new specific access**: CTI analysts, **Access right** **can view**, then **Add**. After **Save**, other users no longer find the case in lists or searches, even members of the platform organization, unless they have **Bypass all capabilities**. A SOC analyst can change it only if their role also has **Create / Update knowledge**. The IP address, the domain and the Velvet Harbor intrusion set in the case stay visible to everyone their markings allow: restrict them too if they must stay hidden. ### Rules that surprise people {#rules-that-surprise-people} - **Contents keep their own access.** Restricting a report does not restrict the entities it contains. - **Restriction replaces organization sharing.** Members of a restricted object see it even when it is not shared with their organization. On a restricted container, **Share with an organization** is disabled until you remove the restriction. - **No "everyone" with a platform organization.** When a platform main organization is set, you cannot grant access to all users on knowledge; name the groups or organizations instead. - **Not in drafts.** You cannot change the authorized members of an object from inside a draft. - **Service accounts are not held back.** A [service account](https://filigran.io/docs/opencti/administer/service-accounts/) reads and changes every restricted object, even when it is not among its authorized members, so that integrations keep working on restricted reports and cases. It still needs the markings of the object. Give connectors a service account, never a person's account, or their writes on restricted objects fail. - **Organizations.** A restricted organization disappears, for users who are not its authorized members, from lists, author fields and sharing targets. Use it to hide organizations from one another when you segregate by organization. *(OpenCTI 7.260811 and later)* A service account listed with **can manage** also manages the object and its authorized members; otherwise it gets **can edit**. ### Find and lift restrictions {#find-and-lift-restrictions} Users with **Bypass all capabilities** see every restricted object in **Data > Restriction > Restricted entities**, with the date the restriction was set, and can remove a restriction there. The list needs an Enterprise Edition license. **Restricted drafts** does the same for drafts. A playbook can also set or remove restrictions in bulk, with **Manage access restrictions** and **Remove access restrictions**: see [Playbook components](https://filigran.io/docs/reference/opencti/playbook-components/). ## Authorized members and the alternatives {#authorized-members-and-the-alternatives} | You want to | Use | | --- | --- | | Decide what a user can do everywhere | [Grant rights with roles](https://filigran.io/docs/opencti/administer/roles/) | | Hide classified data from users who are not cleared | [Markings](https://filigran.io/docs/opencti/administer/markings/) | | Separate the data of the organizations you serve | [Separate data between organizations](https://filigran.io/docs/opencti/administer/organizations/) | | Restrict one object to a few people | Authorized members | | Let users ask for an object they cannot see | [Let users request access](https://filigran.io/docs/opencti/administer/request-access/) | ## What's next {#what-s-next} - [How OpenCTI decides who sees what](https://filigran.io/docs/opencti/administer/segregation/), for how authorized members combine with markings and organizations. - [Let users request access](https://filigran.io/docs/opencti/administer/request-access/), the workflow that shares restricted knowledge on request. - [Access control](https://filigran.io/docs/opencti/administer/access-control/), the model behind capabilities. --- # Send emails from OpenCTI > Configure the mail server OpenCTI sends emails through from the interface, with basic or OAuth2 authentication, and test it without restarting the platform. - URL: https://filigran.io/docs/opencti/administer/smtp/ - Products: OpenCTI 7.261119.0 - For: administrators, platform engineers - Type: How-to guide OpenCTI sends notifications, digests, password resets and disseminated files by email. This page shows how to set the mail server from the interface, so a change applies at once, without editing the configuration file or restarting the platform. *(OpenCTI 7.260811 and later)* ## Before you start {#before-you-start} - Your role has the **Manage credentials** capability. - You know the host name and port of your mail server, and the account OpenCTI sends with. Port 25 is not accepted here: use 465 (SSL/TLS) or 587 (STARTTLS). - For OAuth2, you have registered OpenCTI as an application with your mail provider and hold a client ID, a client secret, a refresh token and the issuer URL. The refresh token must carry the scope that allows sending mail over SMTP: `https://outlook.office.com/SMTP.Send` with `offline_access` for Microsoft 365, `https://mail.google.com/` for Google Workspace. Without it, the mail server rejects the authentication of every email. ## How the interface and the configuration file share the job {#how-the-interface-and-the-configuration-file-share-the-job} The mail server can come from two places: the `smtp` keys of the [platform configuration](https://filigran.io/docs/reference/opencti/configuration/#smtp-service), or this screen. The screen wins when its **Use configuration in interface** setting is on. Open **Settings > Security > SMTP configuration** to see which one applies: - **A warning says you cannot configure a new SMTP integration here.** The `smtp:forced_sender_email` key is set. The table shows the values of the configuration file, read-only. To use the screen, remove that key and restart the platform. - **The table is empty, with only an Update button.** Nothing is set on the screen yet: the configuration file applies. - **A message says SMTP is configured through a backend configuration.** Settings are saved on the screen, but **Use configuration in interface** is off: the configuration file applies. - **The table lists your settings, next to a Test button.** The screen applies. In the table, **SMTP enabled** is the **Enable email sending** switch of the screen, and **Use configuration in interface** says whether the screen applies. ## Configure the mail server {#configure-the-mail-server} 1. Open **Settings > Security > SMTP configuration** and click **Update**. The **Update SMTP configuration** panel opens. 2. Turn on **Enable email sending**, and **Use this configuration instead of the platform config file**. With **Enable email sending** off, OpenCTI sends no email at all and reports no error: password resets, notifications and disseminated files never leave the platform. 3. Fill **Sender email address**, the `From:` address of every email. 4. Fill **Hostname** and **Port**. Turn on **Use SSL/TLS** for port 465, and **Reject unauthorized certificates** to refuse servers with an invalid certificate. 5. Choose the **Authentication type**: - **Basic**: fill **Username** and **Password**. - **OAuth2**: fill **OAuth user** (the mailbox address), **OAuth client ID**, **OAuth client secret**, **OAuth issuer** (the OpenID Connect issuer URL) and **OAuth refresh token**. Set **Refresh token expiration date** to the date your provider revokes the token: it only serves as a reminder. 6. Click **Save**. The table shows the new settings; the password and the client ID appear masked. **Example: Send through the corporate mail relay with STARTTLS** Example CERT sends its notifications through the relay `smtp.example.com`, which accepts authenticated clients on port 587. - **Enable email sending** and **Use this configuration instead of the platform config file**: on. - **Sender email address**: `cti-platform@example.com`, an address the relay is allowed to send as. - **Hostname**: `smtp.example.com`. **Port**: `587`. - **Use SSL/TLS**: off. On port 587 the connection starts in clear text, then upgrades to TLS with STARTTLS. - **Reject unauthorized certificates**: on, so that OpenCTI refuses a relay whose certificate it cannot verify. - **Authentication type**: **Basic**. **Username**: `cti-platform@example.com`. **Password**: the password of that mailbox, from your vault. After **Save**, click **Test** and send a test email to `soc@example.com`. OpenCTI encrypts the password, the client secret and the refresh token before it stores them. With OAuth2, it gets an access token from the issuer with the refresh token and renews it before it expires. When the provider issues a new refresh token, OpenCTI stores it in place of the old one. A mail server set on the screen ignores the TLS versions and ciphers of the configuration file: `smtp:tls_min_version`, `smtp:tls_max_version` and `smtp:tls_ciphers` apply only to the server of the file. *(OpenCTI 7.261030 and later)* The connection timeouts of the file, `smtp:connection_timeout` and `smtp:greeting_timeout`, 10 seconds each by default, apply to both. ![The SMTP configuration table lists each setting with its value, under the menu, Test and Update buttons.](https://filigran.io/docs/shots/38086089f985ffaaef41aa1f8b0b337f3ed0aa48e668b69dfb5f02a6963ca023.webp) ## Check that it works {#check-that-it-works} 1. Click **Test**. 2. Enter an **Email address** you can read and click **Send**. 3. Open that mailbox. The confirmation only means the mail server accepted the message. If nothing arrives, check the spam folder and the logs of the mail server. With OAuth2, a banner warns users who can manage credentials when the refresh token is about to expire, then when it has expired. Get a new token from your provider and paste it in **OAuth refresh token** before that date. ## Go back to the configuration file {#go-back-to-the-configuration-file} Open the menu (⋮) next to **Test** and choose **Remove configuration**. In the **Delete SMTP configuration** dialog, click **Delete**. The settings of the screen are deleted, and the `smtp` keys of the configuration file apply again at once, without a restart. ## Which sender address is used {#which-sender-address-is-used} The `From:` address of an email is, in this order: 1. the **Sender email address** of this screen, when the screen applies; 2. the `smtp:forced_sender_email` key; 3. the **Sender email address** of the [platform parameters](https://filigran.io/docs/opencti/configure/parameters/). The display name is the **Platform title** of Parameters, unless the feature sending the email sets its own. ## Set the mail server in the configuration file {#set-the-mail-server-in-the-configuration-file} The `smtp` keys of the [platform configuration](https://filigran.io/docs/reference/opencti/configuration/#smtp-service) set the mail server at startup, in every version, unless the SMTP configuration screen applies. Change them, then restart the platform. `smtp:enabled` (`SMTP__ENABLED`), `true` by default, turns email sending on or off. With `false`, OpenCTI skips the mail server check at startup, logs `SMTP disabled by configuration`, and sends no email at all, without any error: password resets, notifications and disseminated files never leave the platform. Set it to `false` on a platform that must not send email, such as a test copy of production. When the SMTP configuration screen applies, its **Enable email sending** switch decides instead. *(OpenCTI 7.261109 and later)* `smtp:reject_unauthorized` (`SMTP__REJECT_UNAUTHORIZED`), when you leave it unset, follows `tls:reject_unauthorized` (`TLS__REJECT_UNAUTHORIZED`), the platform-wide certificate check, `false` by default. A later version turns the platform-wide check on by default: set this key yourself, to `true` once OpenCTI trusts the certificate of your relay, so that the change of default does not change how OpenCTI connects to it. See [Check certificates on every outgoing connection of OpenCTI](https://filigran.io/docs/deploy/configure/certificates/#check-certificates-on-every-outgoing-connection-of-opencti). *(OpenCTI 7.260811 and later)* `smtp:auth_type` (`SMTP__AUTH_TYPE`) chooses how OpenCTI authenticates to the mail server: - `basic`, the default: with `smtp:username` and `smtp:password`. When `smtp:username` is empty, OpenCTI sends without authentication. - `oauth2`: with an access token that OpenCTI gets from your identity provider. It needs the five keys below, which have no default. If one is missing, every email fails with `SMTP OAuth2 configuration is incomplete`. | Key | Variable | Value | | --- | --- | --- | | `smtp:oauth_user` | `SMTP__OAUTH_USER` | The address of the mailbox OpenCTI sends from | | `smtp:oauth_client_id` | `SMTP__OAUTH_CLIENT_ID` | The client ID of the application registered with your provider | | `smtp:oauth_client_secret` | `SMTP__OAUTH_CLIENT_SECRET` | Its client secret | | `smtp:oauth_issuer` | `SMTP__OAUTH_ISSUER` | The OpenID Connect issuer URL of the provider. OpenCTI reads its discovery document to find the token endpoint | | `smtp:oauth_refresh_token` | `SMTP__OAUTH_REFRESH_TOKEN` | A refresh token with the scope that allows sending mail over SMTP, as described in [Before you start](#before-you-start) | OpenCTI exchanges the refresh token for an access token before it sends, keeps the access token in memory, and renews it five minutes before it expires. Unlike the screen, the configuration file is never rewritten: when your provider issues a new refresh token, OpenCTI does not keep it. Replace `SMTP__OAUTH_REFRESH_TOKEN` and restart the platform before the token you gave expires, or every email fails. **Example: Send through a mail relay over TLS** Example CERT sends through `smtp.example.com`, which accepts authenticated clients on port 465 with TLS from the first byte. In the docker compose file, the `opencti` service gets: ```yaml services: opencti: environment: SMTP__HOSTNAME: smtp.example.com SMTP__PORT: 465 SMTP__USE_SSL: 'true' SMTP__REJECT_UNAUTHORIZED: 'true' SMTP__TLS_MIN_VERSION: TLSv1.2 SMTP__USERNAME: cti-platform@example.com SMTP__PASSWORD: ${SMTP_PASSWORD} ``` `SMTP__USE_SSL` opens the connection over TLS, and `SMTP__REJECT_UNAUTHORIZED` refuses a relay whose certificate does not verify. If the relay uses a private certificate authority, give its root certificate to `NODE_EXTRA_CA_CERTS` rather than turning the check off. `SMTP_PASSWORD` comes from the `.env` file next to the compose file. The `From:` address is the **Sender email address** of the [platform parameters](https://filigran.io/docs/opencti/configure/parameters/). *(OpenCTI 7.260811 and later)* **Example: Send through Microsoft 365 with OAuth2** Example CERT's mailbox `cti-platform@example.com` is hosted on Microsoft 365, where the tenant has basic authentication turned off. The platform team registered OpenCTI in Microsoft Entra ID, with the `https://outlook.office.com/SMTP.Send` and `offline_access` scopes, and keeps the secrets in the `.env` file next to the compose file: ```yaml services: opencti: environment: SMTP__HOSTNAME: smtp.office365.com SMTP__PORT: 587 SMTP__USE_SSL: 'false' SMTP__REJECT_UNAUTHORIZED: 'true' SMTP__AUTH_TYPE: oauth2 SMTP__OAUTH_USER: cti-platform@example.com SMTP__OAUTH_CLIENT_ID: ${SMTP_OAUTH_CLIENT_ID} SMTP__OAUTH_CLIENT_SECRET: ${SMTP_OAUTH_CLIENT_SECRET} SMTP__OAUTH_ISSUER: https://login.microsoftonline.com/${ENTRA_TENANT_ID}/v2.0 SMTP__OAUTH_REFRESH_TOKEN: ${SMTP_OAUTH_REFRESH_TOKEN} ``` On port 587 the connection upgrades to TLS with STARTTLS, so `SMTP__USE_SSL` stays `false`. After the restart, OpenCTI gets an access token from Entra ID and sends as `cti-platform@example.com`; the platform team puts the refresh token's expiry date in its calendar. ## What's next {#what-s-next} - [Notifiers](https://filigran.io/docs/opencti/configure/notifiers/) to send notifications by email. - [Customize the emails OpenCTI sends](https://filigran.io/docs/opencti/configure/email-templates/) to shape the emails of the platform. - The [SMTP Service keys](https://filigran.io/docs/reference/opencti/configuration/#smtp-service) of the configuration reference, for timeouts and TLS versions. --- # Configure single sign-on > Let people log in to OpenCTI with your identity provider, map its groups to OpenCTI groups, and keep an emergency local access. - URL: https://filigran.io/docs/opencti/administer/sso/ - Products: OpenCTI 7.261119.0 - Edition: requires an Enterprise Edition license - For: administrators, platform engineers - Type: How-to guide Single sign-on (SSO) lets people log in to OpenCTI with their account in your identity provider (IdP), instead of a password stored in OpenCTI. This page helps you choose a strategy and explains how a login creates the user and sets its groups. It also shows how to keep an emergency access. You then create the providers in [Manage login providers in the UI](https://filigran.io/docs/opencti/administer/authentications/). ## Before you start {#before-you-start} - Your platform has an Enterprise Edition license. Without it, you can still configure providers, but only local login (email and password) works. - Your role has the **Manage authentication** capability. - You have administrator access to your IdP, to register OpenCTI as a client application. - `app:base_url` is the public URL users reach OpenCTI at (see [Basic parameters](https://filigran.io/docs/reference/opencti/configuration/#basic-parameters)). Callback URLs are built from it. - You know the password of a local administrator account, in case the IdP is unreachable. See [Keep an emergency access](#keep-an-emergency-access). ## Choose a strategy {#choose-a-strategy} A strategy is either a **form** or a **button** on the login page. With a form, the user types a login and a password, checked by OpenCTI or by LDAP. With a button, the IdP or the request identifies the user, who comes back logged in. | Strategy | How the user logs in | How many | | --- | --- | --- | | Local | Email and password form | One, on by default | | OpenID Connect (OIDC) | Button, then the IdP login page | Several providers | | SAML 2.0 | Button, then the IdP login page | Several providers | | LDAP | Login form, checked against your directory | Several providers | | Client certificate | Button, then a certificate chosen in the browser. OpenCTI must serve HTTPS itself | One | | HTTP headers | Button. OpenCTI reads the identity from headers set by your reverse proxy | One | All the form strategies share one login form. OpenCTI checks the email and password against each enabled LDAP provider, then against the local accounts, and logs the user in with the first that accepts them. A user unknown to the directory can therefore still log in with a local password while **Local** is on. Prefer OIDC or SAML in production, and keep local login for emergency access. When it migrates a configuration file, OpenCTI turns the older Google, GitHub, Facebook and Auth0 strategies into OIDC providers. GitHub and Facebook are not OIDC providers: their migrated issuer is a placeholder that you must replace. Set new providers up as OIDC. ## How a login provisions the account {#how-a-login-provisions-the-account} OpenCTI trusts the IdP: it does not ask for a password, and it creates the account the first time someone logs in. Every login then refreshes the account from what the IdP returns. **Diagram: A single sign-on login creates or updates the user, then sets its groups and organizations from the mapping** - Identity provider: Identity provider (Authenticates and returns claims) - Platform: User mapping (Email identifies the account), Group mapping (Provider value to platform name) - Stored: User account (Created at first login), Groups and organizations (Replaced at each login) Connections: - Identity provider → User mapping: claims - User mapping → User account: create or update - Identity provider → Group mapping: groups - Group mapping → Groups and organizations: mapped names Five rules explain most of what you will see: 1. **The email identifies the user.** OpenCTI looks up the account by the email the IdP returns, and refuses the login when there is none. A new account gets the groups marked **Granted by default at user creation**, unless the provider has **Prevent platform default groups association** on. 2. **Groups come from the mapping.** You map each value the IdP returns (a group, a role, a claim) to the name of an OpenCTI group. Values without a mapping are ignored. The **Default groups** of the provider are added to the mapped ones. 3. **A missing group blocks the login.** When a mapping or a default group names a missing group, OpenCTI refuses the login, unless **Auto create groups** is on. A group created this way has no role: give it one, or its members can do nothing. 4. **Groups are replaced at every login.** When the mapping gives at least one group, the user's groups become exactly those groups. Groups added by hand, and the default groups granted at creation, disappear. When nothing maps, groups stay as they are. 5. **Organizations work the same way.** The organization mapping replaces the user's organizations at every login. A missing organization blocks the login, unless **Auto create organizations** is on. *(OpenCTI 7.260811 and later)* To keep groups added by hand, turn on **Extend platform groups**. At login, OpenCTI then adds or removes only the groups that appear in the mapping. **Example: Follow the first Entra ID login of an analyst** Ana Duval logs in for the first time with Microsoft Entra ID. The ID token returns `ana.duval@example.com` and the object ID of the Entra group mapped to CTI analysts. No account has this email, so OpenCTI creates one with the groups granted by default at user creation, then replaces them with CTI analysts, the only mapped group. Ana gets the Analyst role, a maximum confidence level of 75 and the TLP:AMBER clearance of that group. If an administrator later adds her to SOC analysts by hand, her next login removes it again, as rule 4 says. > **Warning** > > A user needs a maximum confidence level, usually inherited from a group, to create or change data. Check that the groups you map to have one. See [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/). ## Configure the providers {#configure-the-providers} OpenCTI stores its providers in the database. Create and edit them in **Settings > Security > Authentications**: [Manage login providers in the UI](https://filigran.io/docs/opencti/administer/authentications/) describes each field. ![The SSO providers list of the Authentications screen, with the Corporate IdP OpenID Connect provider, its status and its Update and Logs actions, next to the Create Authentication button.](https://filigran.io/docs/shots/b931ccefc55041efbd24104cb6df5dbb6069927bc90bfc9a43621a96a4f3ea2e.webp) **Providers in the configuration file.** At startup, OpenCTI migrates the `providers` it finds in `config/production.json` or in `PROVIDERS__*` environment variables into the database. It migrates OIDC, SAML and LDAP providers, the older OAuth strategies as OIDC, and the client certificate and HTTP headers settings. A provider whose identifier already exists in the database is skipped. Once logins work, remove the providers from the file. A provider you delete in the interface comes back at the next start while it is still in the file. > **Warning** > > After the migration, open each SAML provider and check **Want assertion signed** and **Want authn response signed**: turn on the one your identity provider signs, as you would for a new provider. The [7.260224 migration notes](https://filigran.io/docs/deploy/upgrade/breaking-changes/opencti/7-260224-sso-migration/) cover the details. **Keep using the file.** Set `app:authentication:force_env` to `true` (see [Functional customization](https://filigran.io/docs/reference/opencti/configuration/#functional-customization)) and restart. OpenCTI then deletes the providers stored in the database and loads them from the file only. The interface can no longer change them, except the password policy and two-factor authentication. This mode is a deprecated safeguard: plan to move back to the interface. In the file, each provider is an entry of `providers` with a `strategy`, an optional `identifier` and a `config`. - **Local login needs no entry.** The built-in `local` provider is declared by default, as `providers:local:strategy` (`PROVIDERS__LOCAL__STRATEGY`), and its value is not read (see [Network and security](https://filigran.io/docs/reference/opencti/configuration/#network-and-security)). You turn local login on or off in the **Local** settings of the interface. The file decides it only when OpenCTI first creates these settings, on a new platform or at the upgrade that moved providers to the database, and at every start with `force_env`. Local login is then on, unless `providers:local:config:disabled` is `true`. - **Keep secrets out of the file and the database.** A provider created in the interface can read its client secret, private key or bind password from a named secret of the platform configuration, under `secrets` (for example `SECRETS__ENTRA_CLIENT_SECRET__VALUE`), or from CyberArk. See [Keep secrets out of the database](https://filigran.io/docs/opencti/administer/authentications/#keep-secrets-out-of-the-database). The identifier sets the callback URL, `/auth//callback`. Without one, an OIDC provider gets `oic`, a SAML provider `saml` and an LDAP provider `ldapauth`. Each entry of a groups mapping is `:`, so a group name cannot contain a colon. The examples below are the `environment` of the `opencti` service in a docker compose file, with secrets read from its `.env` file. **Example: Log in with Microsoft Entra ID through OpenID Connect** Grand Meridian Hotels signs its staff in with Microsoft Entra ID. In the Entra admin center, register an application with the web redirect URI `https://opencti.example.com/auth/entra/callback`. Create a client secret, and under **Token configuration** add the `email` optional claim and a groups claim emitting group IDs to the ID token. ```yaml services: opencti: environment: PROVIDERS__ENTRA__STRATEGY: OpenIDConnectStrategy PROVIDERS__ENTRA__IDENTIFIER: entra PROVIDERS__ENTRA__CONFIG__LABEL: Log in with Microsoft Entra ID PROVIDERS__ENTRA__CONFIG__ISSUER: https://login.microsoftonline.com/3f6c2a1e-8b4d-4e2a-9c71-5d0e8f2b7a14/v2.0 PROVIDERS__ENTRA__CONFIG__CLIENT_ID: 0b7e5c9d-2f41-4a8e-b6d3-91c4e7a20f55 PROVIDERS__ENTRA__CONFIG__CLIENT_SECRET: ${ENTRA_CLIENT_SECRET} PROVIDERS__ENTRA__CONFIG__REDIRECT_URIS: '["https://opencti.example.com/auth/entra/callback"]' PROVIDERS__ENTRA__CONFIG__GET_USER_ATTRIBUTES_FROM_ID_TOKEN: 'true' PROVIDERS__ENTRA__CONFIG__GROUPS_MANAGEMENT__TOKEN_REFERENCE: id_token PROVIDERS__ENTRA__CONFIG__GROUPS_MANAGEMENT__GROUPS_PATH: '["groups"]' PROVIDERS__ENTRA__CONFIG__GROUPS_MANAGEMENT__GROUPS_MAPPING: '["8d2f4c1a-6b3e-4f7d-9a21-0c5e7b9d3f48:CTI analysts","c41e9a07-3d5b-4b62-8f1e-2a7d6c90b3e5:SOC analysts"]' ``` The issuer holds the tenant ID, and the mapping turns the object IDs of two Entra groups into the OpenCTI groups CTI analysts and SOC analysts. The email, the name and the groups are read from the ID token. Staff who belong to neither Entra group log in with the groups granted by default at user creation. The login page shows **Log in with Microsoft Entra ID** next to the local form, which stays on for emergency access. When a user belongs to more than 200 groups, Entra ID leaves the groups claim out of the token. Emit only the groups assigned to the application to avoid it. **Example: Log in through a SAML identity provider** The sharing community logs its members in through a SAML identity provider at `idp.example.com`, where OpenCTI is registered as the client `opencti` and the assertion carries the `email`, `name` and `groups` attributes. ```yaml services: opencti: environment: PROVIDERS__SAML__STRATEGY: SamlStrategy PROVIDERS__SAML__CONFIG__LABEL: Log in with Harbor community SSO PROVIDERS__SAML__CONFIG__ISSUER: opencti PROVIDERS__SAML__CONFIG__ENTRY_POINT: https://idp.example.com/realms/cti/protocol/saml PROVIDERS__SAML__CONFIG__SAML_CALLBACK_URL: https://opencti.example.com/auth/saml/callback PROVIDERS__SAML__CONFIG__CERT: ${SAML_IDP_CERT} PROVIDERS__SAML__CONFIG__WANT_ASSERTIONS_SIGNED: 'true' PROVIDERS__SAML__CONFIG__MAIL_ATTRIBUTE: email PROVIDERS__SAML__CONFIG__ACCOUNT_ATTRIBUTE: name PROVIDERS__SAML__CONFIG__GROUPS_MANAGEMENT__GROUP_ATTRIBUTES: '["groups"]' PROVIDERS__SAML__CONFIG__GROUPS_MANAGEMENT__GROUPS_MAPPING: '["harbor-analysts:Harbor analysts","harbor-contractors:Harbor contractors"]' ``` `SAML_IDP_CERT` holds the signing certificate of the IdP, on one line without its `BEGIN` and `END` lines. OpenCTI rejects assertions that are not signed with it. Without `MAIL_ATTRIBUTE` and `ACCOUNT_ATTRIBUTE`, OpenCTI reads the email and the name from the `nameID` of the assertion. **Example: Check logins against the corporate directory with LDAP** The hotel group keeps its accounts in Active Directory. People type their email address and their directory password in the login form, and OpenCTI searches the directory with a read-only service account. ```yaml services: opencti: environment: PROVIDERS__LDAP__STRATEGY: LdapStrategy PROVIDERS__LDAP__CONFIG__URL: ldaps://dc.example.com:636 PROVIDERS__LDAP__CONFIG__BIND_DN: CN=svc-opencti,OU=Service Accounts,DC=example,DC=com PROVIDERS__LDAP__CONFIG__BIND_CREDENTIALS: ${LDAP_BIND_PASSWORD} PROVIDERS__LDAP__CONFIG__SEARCH_BASE: OU=Staff,DC=example,DC=com PROVIDERS__LDAP__CONFIG__SEARCH_FILTER: '(mail={{username}})' PROVIDERS__LDAP__CONFIG__MAIL_ATTRIBUTE: mail PROVIDERS__LDAP__CONFIG__ACCOUNT_ATTRIBUTE: displayName PROVIDERS__LDAP__CONFIG__GROUP_SEARCH_BASE: OU=Groups,DC=example,DC=com PROVIDERS__LDAP__CONFIG__GROUP_SEARCH_FILTER: '(member={{dn}})' PROVIDERS__LDAP__CONFIG__GROUPS_MANAGEMENT__GROUP_ATTRIBUTE: cn PROVIDERS__LDAP__CONFIG__GROUPS_MANAGEMENT__GROUPS_MAPPING: '["CTI-Analysts:CTI analysts","SOC-Analysts:SOC analysts"]' ``` The group search returns the directory groups the user is a member of, and their `cn` is matched against the mapping: members of `CTI-Analysts` land in CTI analysts. Without `ACCOUNT_ATTRIBUTE`, the name is read from `givenName`. **Identity provider with a private certificate authority.** If your own certificate authority issued the IdP certificate, OpenCTI fails with `unable to get local issuer certificate`. Mount the root certificate, with its full chain, into the container and point `NODE_EXTRA_CA_CERTS` to it, then restart. For example: `NODE_EXTRA_CA_CERTS=/cert_volume/ca.crt`. Do not turn certificate validation off. See [Certificates](https://filigran.io/docs/deploy/configure/certificates/). ## Keep an emergency access {#keep-an-emergency-access} If the IdP is down or a mapping is wrong, nobody can log in through SSO, administrators included. Keep a local administrator account, with a strong password stored in your vault, and use it only in that case. The platform administrator is the account defined by `app:admin:email` and `app:admin:password` (see [Basic parameters](https://filigran.io/docs/reference/opencti/configuration/#basic-parameters)). OpenCTI resets its password to `app:admin:password` at every start. Keep local login on until you have logged in through SSO with the right groups and organizations. Three safety nets protect local login: - The **Local** settings do not let you turn local login off while no other provider is enabled. - At startup, OpenCTI turns local login back on when no other provider can work. - With **Local** off, the login form, when an LDAP provider shows it, still accepts the email and password of the platform administrator. If you are locked out anyway, [If you are locked out](https://filigran.io/docs/opencti/administer/authentications/#if-you-are-locked-out) gives the recovery steps with `app:authentication:force_local`. ## Check that it works {#check-that-it-works} 1. Open the login page in a private browser window. Each SSO provider shows its button, with its label. 2. Log in with an IdP account that belongs to a mapped group. 3. As an administrator, open the user in **Settings > Security > Users** and check its groups and organizations. 4. If the login fails, click **Logs** on the row of the provider in **Settings > Security > Authentications**. The logs show what the IdP returned and why OpenCTI refused the login. ## What's next {#what-s-next} - [Manage login providers in the UI](https://filigran.io/docs/opencti/administer/authentications/), every field of the providers. - [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/) and [Roles](https://filigran.io/docs/opencti/administer/roles/), to prepare the groups you map to. - [Organizations](https://filigran.io/docs/opencti/administer/organizations/), to prepare the organizations you map to. - [OpenCTI configuration reference](https://filigran.io/docs/reference/opencti/configuration/), for `app:base_url` and the authentication keys. --- # Manage users > Create, edit, disable, merge and delete OpenCTI users, read what each user can do and has done, manage their API tokens, and end their sessions. - URL: https://filigran.io/docs/opencti/administer/users/ - Products: OpenCTI 7.261119.0 - For: administrators - Type: How-to guide Every person and every machine that uses OpenCTI has a user account, listed in **Settings > Security > Users**. This page shows how to create, change, disable and delete users, how to read what a user can do and has done, and how to control their API tokens and sessions. A user's rights come from their groups: read [How access control works](https://filigran.io/docs/opencti/administer/access-control/) first if the model is new to you. ## Before you start {#before-you-start} - Your role has the **Manage credentials** capability. An organization administrator manages only the members of the organizations they administer: see [Separate data between organizations](https://filigran.io/docs/opencti/administer/organizations/). - The groups you want to give exist. See [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/). ## Kinds of accounts {#kinds-of-accounts} | Kind | How it logs in | How it is created | | --- | --- | --- | | User | Email and password, or single sign-on | By hand, or at the first single sign-on login | | Service account | API token only, never the web interface | By hand, or by an integration. See [Create accounts for integrations](https://filigran.io/docs/opencti/administer/service-accounts/) | The page of a service account shows **Account type**: **Service account**. For a user created by a single sign-on login, the **Password** tab is disabled: their password lives in the identity provider. ## Create a user {#create-a-user} With single sign-on, you do not create users: OpenCTI creates each account at its first login. See [Configure single sign-on](https://filigran.io/docs/opencti/administer/sso/#how-a-login-provisions-the-account). 1. Open **Settings > Security > Users** and click **Create User**. 2. Enter a **Name** and an **Email address**. **Firstname**, **Lastname** and **Description** are optional. 3. Enter a **Password** and its **Confirmation**. The password must follow the password policy, set on the local strategy in [Manage login providers in the UI](https://filigran.io/docs/opencti/administer/authentications/#configure-the-built-in-strategies). 4. Choose the **Organizations** and the **Groups** of the user. The user also joins the groups granted by default at user creation, unless you turn on **Don't add the user to the default groups**. The tooltip next to it names those groups. 5. Optionally, change the **Account Status** (**Active** by default), set an **Account Expire Date**, or choose an **Email template** to send the user. 6. To give this user a maximum confidence level of their own, instead of the one their groups give, turn on **Enable user Max Confidence Level** and set the level. 7. Click **Create**. **Example: Give a new analyst access to the CTI team's work** Leo Martin joins the threat intelligence team of Grand Meridian Hotels, which signs in with local accounts. - **Name**: `Leo Martin`. **Email address**: `leo.martin@example.com`. **Firstname**: `Leo`. **Lastname**: `Martin`. - **Password** and **Confirmation**: a temporary password that follows the policy, given to Leo by phone. - **Organizations**: Grand Meridian Hotels. **Groups**: CTI analysts. - **Don't add the user to the default groups**: on, so that Leo gets only the rights of CTI analysts. - **Enable user Max Confidence Level**: off, so that Leo inherits 75 from CTI analysts. The user page then shows the Analyst role, the CTI analysts group and a **Max Confidence Level** of 75: Leo can read and write knowledge up to TLP:AMBER. ![The page of the user Ana Duval: her email address, 2FA state, API tokens and account status under Basic information, and her Analyst role, CTI analysts group and Max Confidence Level of 75 under Permissions.](https://filigran.io/docs/shots/cdb40f8ebbe734cdabd71279e955f9eb4fb06b197de0cd0740a8fd342e1215dc.webp) > **Warning** > > A user needs a maximum confidence level, from a group or set on the user, to create, update or delete data. Check the **Max Confidence Level** on the user page after you create the user. ## Edit a user {#edit-a-user} Open the user and click **Update**. The panel has five tabs: | Tab | What you change | | --- | --- | | **Overview** | **Name**, **Email address**, **Firstname**, **Lastname**, **Description**, **Language**, **Organizations**, **Account Status** and **Account Expire Date** | | **Password** | A new **Password** and its **Confirmation**. Disabled for single sign-on users and for the platform administrator, whose password comes from `app:admin:password` | | **Groups** | The groups of the user. Each group shows its maximum confidence level, or a warning when it has none | | **Organizations admin** | The organizations this user administers, among their own organizations. Requires Enterprise Edition | | **Confidences** | A **Max Confidence Level** for this user, and a level per entity type with **Add a specific max confidence level for an entity type** | *(OpenCTI 7.261109 and later)* A service account has no password: its panel has no **Password** tab. A level set on the user replaces the levels of their groups, even when it is lower, and also replaces the per-type levels of the groups. Without one, the user gets the highest level among their groups. To add or remove groups or organizations for many users at once, select them in the list, click **Update** in the toolbar, choose **Add** or **Remove**, then **Groups** or **Organizations**. Click **Convert** on the user page to turn a user into a service account, or back, one account at a time. See [Create accounts for integrations](https://filigran.io/docs/opencti/administer/service-accounts/#convert-a-user-into-a-service-account). *(OpenCTI 7.260811 and later)* To make a user choose a new password at their next request, click **Force password change** in the **Password** tab. The user page then shows the date under **Password valid until**. Passwords can also expire on their own: see the password policy in [Manage login providers in the UI](https://filigran.io/docs/opencti/administer/authentications/#configure-the-built-in-strategies). *(OpenCTI 7.261117 and later)* ### Set a password the user has not used before {#set-a-password-the-user-has-not-used-before} When the local strategy sets **Number of recent passwords that cannot be reused (0 equals disabled)**, the password you set in the **Password** tab must differ from the user's current password and their recent ones. See [Stop users from reusing a password](https://filigran.io/docs/opencti/administer/authentications/#stop-users-from-reusing-a-password) for the rule itself. The **Password security policies** box above the field says how many: **Must be different from the last 5 passwords** for a value of 5, **Must be different from the current password** for 1. ![The Password tab of the Update User panel for Leo Martin: the Password security policies box reads Must be different from the last 5 passwords, above the Password and Confirmation fields and the Force password change and Update buttons.](https://filigran.io/docs/shots/0bc51f416f1deded2e2585555f7b8b6ecb4fbe57187e0e22c08060602e053ada.webp) Only the platform knows the previous passwords, so this line gets no check mark while you type. A password the user already had is refused when you click **Update**, with **This password has already been used recently. Please choose a different one.**, and the account keeps its password. - **Create User** does not show the rule: a new account has no previous password. - While the rule is on, you get 5 password changes per user in 15 minutes by default, successful ones included, then **Too many password change attempts. Please try again in a few minutes.** Your attempts never block another administrator, nor the user, on the same account. - Through the API, send the password alone in its `fieldPatch`: while the rule is on, a password sent with other fields is refused with `The password must be changed on its own`. **Example: Reset the password of a compromised account** Grand Meridian Hotels keeps the last 5 passwords: **Number of recent passwords that cannot be reused (0 equals disabled)** is `5`. Leo Martin reports that he typed his password on a fake booking page. You open his user page, click **Update**, then the **Password** tab, and the box reads **Must be different from the last 5 passwords**. The temporary password you gave Leo when he joined is refused: he used it before. You enter a new one in **Password** and **Confirmation** and click **Update**, then click **Force password change** so that Leo picks his own at his next request. ## Disable a user {#disable-a-user} Disable an account rather than delete it: the user can no longer log in, and everything they created, shared or own stays in place. Open the user, click **Update**, and set **Account Status** to **Inactive** or **Locked**. OpenCTI ends the open sessions of the user at once. At the next login, the user sees the message of their status. An account also stops working when its **Account Expire Date** passes: OpenCTI refuses the login and sets the status to **Expired**. To change many accounts at once, select them in the list, click **Update** in the toolbar, choose **Replace**, then **Account status** or **Account expiration date**. **Example: Close the access of a contractor at the end of the engagement** Sam Reyes, of the Harbor contractors group, works for the sharing community until 30 June 2026. When you create his account, set **Account Expire Date** to 30 June 2026, 6:00 PM. From that evening, OpenCTI refuses his logins and sets his status to **Expired**, without anyone having to think of it. If the engagement ends early, set **Account Status** to **Inactive** instead: his open sessions end at once, and the objects he created keep him as their creator. *(OpenCTI 7.260811 and later)* The same toolbar action sets a **Force password change date** for all the selected users. ### Statuses and their messages {#statuses-and-their-messages} Two keys of the platform configuration, in [Functional customization](https://filigran.io/docs/reference/opencti/configuration/#functional-customization), shape account statuses: - `app:locked_account_statuses` defines the statuses that block login, besides **Expired**, with the message each one shows at login. By default, **Inactive** and **Locked**: `app:locked_account_statuses:Inactive` (`APP__LOCKED_ACCOUNT_STATUSES__INACTIVE`) and `app:locked_account_statuses:Locked` (`APP__LOCKED_ACCOUNT_STATUSES__LOCKED`). - `app:account_statuses_default` (`APP__ACCOUNT_STATUSES_DEFAULT`), `Active` by default, is the status of an account created without one: at the first single sign-on login, by an integration, or through the API. The creation form always sends the status you choose. The value must be `Active`, `Expired` or a status of `app:locked_account_statuses`, or the platform refuses to start. **Example: Hold new single sign-on accounts until an administrator approves them** Grand Meridian Hotels signs its staff in with Microsoft Entra ID, but only people the CTI team lead approves may use OpenCTI. In the docker compose file, the `opencti` service gets: ```yaml services: opencti: environment: APP__ACCOUNT_STATUSES_DEFAULT: Inactive APP__LOCKED_ACCOUNT_STATUSES__INACTIVE: Your account waits for approval. Write to cti-admin@example.com with your team and your manager's name. APP__LOCKED_ACCOUNT_STATUSES__LOCKED: Your account is locked for security reasons. Write to soc@example.com to unlock it. ``` After a restart, the first login of a newcomer creates their account as **Inactive** and shows them the approval message. The administrator finds the account in **Settings > Security > Users**, checks its groups, and sets **Account Status** to **Active**. Accounts that feeds create for themselves are **Inactive** too: activate them when you create the feed. The platform administrator always starts **Active**. Since **Inactive** now means waiting for approval, close the accounts of people who leave with **Locked**. > **Note** > > When a platform organization is set in [Set platform security policies](https://filigran.io/docs/opencti/administer/policies/), a user who belongs to no organization cannot log in. Service accounts and users with **Bypass all capabilities** are not affected. ## Delete a user {#delete-a-user} On the user page, open the actions menu (⋮), choose **Delete**, and confirm. The menu shows **Delete** only when your role also has **Delete knowledge**. Deleting a user also: - ends their open sessions; - deletes their notifications, triggers and digests; - deletes the investigations and dashboards where they are the only administrator; - turns private the public live streams, TAXII collections and CSV feeds that share data with this user's rights. Give them another user to make them public again. *(OpenCTI 7.261109 and later)* ## Merge two accounts of the same person {#merge-two-accounts-of-the-same-person} When one person ends up with two accounts, for example a local account and the one their first single sign-on login created, merge the old account, the **source**, into the one they keep, the **target**. OpenCTI moves to the target what the source created, owns and takes part in: authorship of knowledge, history, assignments and participations, authorized-member entries, triggers, feeds, streams, TAXII collections, playbooks, investigations and dashboards. It ends the source's sessions, sets it to **Expired** and marks it as merged into the target. The names, email addresses and passwords of both accounts stay as they are. The merge has no screen: it is a GraphQL API call, which needs **Bypass all capabilities**. Run it from the [playground](https://filigran.io/docs/develop/apis/graphql/#use-the-playground), or with a token of an administrator. 1. Read the IDs of both accounts in the URL of their user pages, and pass them as the `source` and `target` variables. 2. Run a dry run, the default: OpenCTI computes what it would change and changes nothing. ```graphql mutation($source: ID!, $target: ID!) { userMerge(sourceId: $source, targetId: $target) { status message report { merge_id total_updated handlers { handler changes { entity_type count } alerts { kind message blocking } } } } } ``` 3. Read the `alerts`. A `blocking` alert stops the real run: the target lacks the right to manage the authorized members it would receive, or a public feed, TAXII collection or live stream would share more data under the target's rights. 4. Choose what happens to the source's groups and organizations with `rightsStrategy`: `STRICT`, the default, removes them from the source without giving them to the target; `UNION` also gives them to the target. Roles and capabilities are never copied. 5. Run the merge, with `options: {dryRun: false, rightsStrategy: STRICT}`, plus `acknowledgeExposureChange: true` once you have checked a blocking alert. OpenCTI computes the plan again and refuses with `Platform state changed between the dry pass and the real pass, nothing was written` if the platform changed in between. Every run is written to a journal, kept 30 days: `userMergeJournal(mergeId: $mergeId)`, with the `merge_id` of the report, gives each step, its status and the number of objects it updated, even if your connection was cut. With activity logging, the activity log also records `merges user into user `. The source account cannot be deleted from the user page afterwards. When `userMergeSourceDeletionReadiness(sourceId: $source, targetId: $target)` returns `allowed: true`, delete it with `userMergeDeleteSource(sourceId: $source, targetId: $target)`. Otherwise its `blockers` say what remains. This cannot be undone. **Example: Merge Leo Martin's local account into his single sign-on account** Grand Meridian Hotels moved to Microsoft Entra ID. Leo Martin's first single sign-on login created a second account, `l.martin@example.com`, while his reports and his triggers stay on his local account, `leo.martin@example.com`. The administrator runs the dry run with the local account as source, reads 214 objects to move and no blocking alert, then runs it for real, keeping the default `STRICT`: Leo's single sign-on account already gets its groups from Entra ID. ```graphql mutation { userMerge( sourceId: "3f9c2a71-5d0e-4b8a-9c61-2e7f0a4d8b15" targetId: "a81e6c04-7b2f-4f39-8d5a-6c0b9e3f1a72" options: {dryRun: false, rightsStrategy: STRICT} ) { status message report { merge_id total_updated } } } ``` The answer reads `SUCCESS`. Leo's reports now name his single sign-on account as their creator, his triggers notify that account, and his local account shows **Expired**. ## Read the user page {#read-the-user-page} The user page has three tabs: **Overview**, **Analytics** and **History**. Use them to check an account before you change it, or to review what someone did, for example before an account is closed. ### Overview {#overview} - **Basic information**. For a user: the **Email address**, the **2FA state**, the **API Tokens**, **Firstname**, **Lastname**, **Account status** and **Account expiration date**. For a service account: **Account type**, **Account status**, **Account expiration date**, **API Tokens**, and who created it and when. To reset the two-factor authentication of a user who lost their device, click the delete icon next to **2FA state**. The user can then set it up again. - **Permissions**: the **Roles**, **Groups** and **Organizations** the user gets, their open **Sessions**, their **Hidden entity types** and their effective **Max Confidence Level**. A tooltip next to the level says where it comes from: a group, the user, or **Bypass all capabilities**. Per-type levels follow, each marked **from group** with the group's name, or **from user**. - **Triggers and Digests**: the notifications sent to the user. Service accounts have none. - **Operations**: the **Number of operations** of the user per month. Requires Enterprise Edition. - **History**: the latest changes the user made, with links to every entity and relationship they created. It requires the **Access security activity** capability. Each line gives the date, then the user's name and what they did; a line too long for the card is cut, and hovering over it shows it whole. *(OpenCTI 7.260811 and later)* For a user, **Basic information** also shows **Password valid until**, the date the password must be changed. *(OpenCTI 7.261119 and later)* Every line of the **History** card reads as plain text on one line, including changes recorded by earlier versions whose values held formatting or line breaks, such as a rich-text description. ### Analytics {#analytics} **Analytics** charts the activity of the user, from the activity log. It requires Enterprise Edition. | Chart | What it tells you | | --- | --- | | **Login to the platform** | When the user logged in | | **Knowledge generation** | How many objects they created, updated and deleted | | **Top global search keywords** | What they searched for | | **Top events** | The actions they took most | | **Top authors of read and exported entities**, **Top read or exported entities** and **Latest exports** | What they read and took out of the platform | Searches, reads and exports are recorded only for the users, groups and organizations that extended activity listens to. For anyone else, these charts stay empty: see [Choose what activity is recorded](https://filigran.io/docs/opencti/configure/activity/configuration/). ### History {#history} **History** lists every change the user made to the knowledge. With the **Access security activity** capability, it also lists their actions from the activity log, such as logins and exports. A change made with a commit message, when an entity type requires an external reference, shows an icon: click it, **View commit message**, to read the **Commit message**. ## API tokens {#api-tokens} A token lets a person or a script call the API with the rights of the user. The user's role needs **Allow token usage**, without which every token of the user is refused. Users generate their own tokens on their profile. As an administrator, you see, generate and revoke the tokens of any user on their page. The date a token was last used is updated at most once a minute, to spare Redis: `app:token_activity_period` (`APP__TOKEN_ACTIVITY_PERIOD`), in seconds, 60 by default. 1. On the user page, click **Generate Token** next to **API Tokens**. The **Generate a new token** panel opens. 2. Enter a **Name** that says what the token is for. 3. Choose a **Duration**: **30 days**, **60 days**, **90 days**, **1 year** or **Unlimited**, the default. Prefer a limited duration: a leaked token stops working on its own. 4. Click **Generate**. The **Token details** panel shows the token. 5. Copy the token and give it to its owner. OpenCTI keeps only a fingerprint: once you close the panel, nobody can read the token again. The **API Tokens** list shows, for each token, when it was **Last Used**, or **Never used**, and when it **Expires At**. A token that expires within seven days shows **Expires soon**; after that date it shows **Expired** and is refused. To stop a token at once, click the **Revoke** icon on its line, then confirm with **Revoke** in the **Revoke API Token** dialog. Before you revoke a token, check that no connector or script still uses it: their next call is refused. For a connector, a feed or a shared script, create a [service account](https://filigran.io/docs/opencti/administer/service-accounts/) rather than a token on a person's account: the token then survives the person leaving, and the data it writes is traced to the integration. **Example: Let an analyst script the weekly hospitality report** Ana Duval runs a script that pulls the reports on the hospitality sector every Monday. On her profile, she generates a token: - **Name**: `Weekly hospitality report script`, so that the token is easy to find and revoke. - **Duration**: **90 days**, to limit the damage if the token leaks. The script calls the API with this token and sees exactly what Ana sees. On Ana's user page, you see the token, when the script last used it and when it expires. When Ana leaves the team, revoke it there. ### Send an email {#send-an-email} With an Enterprise Edition license, click **Send email** on the user page, choose an **Email template** and click **Send**, for example to resend the welcome email. See [Customize the emails OpenCTI sends](https://filigran.io/docs/opencti/configure/email-templates/). ## End sessions {#end-sessions} A session starts at each login. **Settings > Security > Sessions** lists the open sessions, grouped by user. Each one shows when it started, and how many minutes it has left out of its full length, as in `18 minutes left / 20`. ![The Sessions screen lists the open sessions under the name of each user, each with the time it started and the minutes it has left out of 20.](https://filigran.io/docs/shots/6a10ad0a615e9d06af237241831cd6b34049af64e6e20fb8836071367708bd6a.webp) - To end one session, click its delete icon in **Settings > Security > Sessions** and confirm. - To end all the sessions of a user, open the user page and click the delete icon next to **Sessions**, with the tooltip **Kill all sessions**. Disabling or deleting a user ends their sessions on its own. End them by hand when you suspect a session was stolen, or to make a user log in again. How long a session lasts is set by `app:session_timeout`, 20 minutes without activity by default. See [Cookies](https://filigran.io/docs/opencti/administer/cookies/). To limit how many sessions a user can open at the same time, set **Max concurrent sessions** in [Manage login providers in the UI](https://filigran.io/docs/opencti/administer/authentications/#set-platform-wide-login-policies): beyond it, a new login ends the oldest sessions of the user. ## Who sees which users {#who-sees-which-users} Lists of users across OpenCTI, such as assignees, participants and filters, can be limited to the people of your own organizations. *(OpenCTI 7.260811 and later)* A user sees all other users when their role has **Manage credentials**, **Manage Playbooks** or **Manage customization**, or when no platform organization is set and **Allow users to view users of other organizations** is on in [Set platform security policies](https://filigran.io/docs/opencti/administer/policies/). With a platform organization set, that option has no effect. Otherwise, a user sees only the users in no organization, the users of their own organizations, and service accounts. Only direct membership counts: a user who belongs to an organization only through the **Organization propagation via participation** rule does not see its other members, and they do not see that user. ## Check that it works {#check-that-it-works} Log in as the user in a private window, or read the user page: **Roles**, **Groups** and **Max Confidence Level** show what the user can do. To check what they see, compare their **Organizations** with the sharing of the data, and their groups' allowed markings with the markings of the data. ## What's next {#what-s-next} - [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/), to give users their rights. - [Create accounts for integrations](https://filigran.io/docs/opencti/administer/service-accounts/), for connectors and scripts. - [Configure single sign-on](https://filigran.io/docs/opencti/administer/sso/), to create users from your identity provider. --- # How OpenCTI works: platform, workers, managers and connectors > What OpenCTI is made of, which parts keep state and which scale, and the path a piece of data takes from a connector to the knowledge base and the live stream. - URL: https://filigran.io/docs/opencti/concepts/architecture/ - Products: OpenCTI 7.261119.0 - For: platform engineers, evaluators, administrators - Type: Concept OpenCTI is a stateless platform and its workers, in front of four services that keep the data: Elasticsearch or OpenSearch, RabbitMQ, Redis and S3 storage. The platform serves the interface and the GraphQL API, and runs the managers, its background jobs. Workers write queued data through that API, and connectors bring data in and send it out. This page explains what each part does, which parts you can multiply, and the path a piece of data takes. With it, you can plan a deployment, read its logs and find where a delay comes from. How OpenCTI fits in the XTM stack, next to XTM One and OpenAEV, is in [The XTM stack](https://filigran.io/docs/deploy/plan/architecture/). ## What OpenCTI is made of {#what-opencti-is-made-of} **Diagram: OpenCTI is a stateless platform and its workers, used by people and connectors, with four services behind them that keep the data** - Clients: Users (Web interface and API scripts), Connectors (Register through the API; import, enrich, export, stream) - OpenCTI: Platform (Interface, GraphQL API, managers), Workers (Write queued data) - Services that keep the data: Elasticsearch (Knowledge and search), RabbitMQ (Queues for workers and connectors), Redis (Streams, locks, sessions), S3 storage (Files, imports, exports) Connections: - Users → Platform: interface and API - Connectors → RabbitMQ: push bundles - Platform → Elasticsearch: read and write - Platform → RabbitMQ: feeds, requests - RabbitMQ → Workers: consume - Workers → Platform: write through API - Platform → Redis: events and locks - Platform → S3 storage: files | Part | What it is | Keeps data | Configured in | | --- | --- | --- | --- | | Platform | A Node.js application: the web interface, the GraphQL API and the managers | No | [Basic parameters](https://filigran.io/docs/reference/opencti/configuration/#basic-parameters) | | Workers | Python processes that take messages from RabbitMQ and write them through the platform API | No | Their own environment | | Connectors | Python processes, one per integration, that import, enrich, analyze, export or stream data | No | Their own environment | | Elasticsearch or OpenSearch | The knowledge base and its search indices, prefixed `opencti` by default | Yes | [Elasticsearch](https://filigran.io/docs/reference/opencti/configuration/#elasticsearch) | | RabbitMQ | The queues between the platform, its workers and its connectors | Messages in transit | [RabbitMQ](https://filigran.io/docs/reference/opencti/configuration/#rabbitmq) | | Redis | The live streams, the locks between platforms, the sessions and the progress of connector jobs | Yes, the streams | [Redis](https://filigran.io/docs/reference/opencti/configuration/#redis) | | S3 storage (MinIO, or RustFS in xtm-docker) | Files: uploads, imports, exports and support packages, in the bucket `opencti-bucket` by default | Yes | [S3 Bucket](https://filigran.io/docs/reference/opencti/configuration/#s3-bucket) | The platform, the workers and the connectors keep nothing on disk: everything they need survives in the four services. You [back up](https://filigran.io/docs/deploy/operate/backup/) those four, and you add or replace platforms and workers at will. The versions each service needs are in [Requirements](https://filigran.io/docs/deploy/plan/requirements/). To try the whole stack on one host, follow the [Quick start](https://filigran.io/docs/deploy/quick-start/). ## The platform and its GraphQL API {#the-platform-and-its-graphql-api} The platform is the center of OpenCTI. It serves the web interface and the [GraphQL API](https://filigran.io/docs/develop/apis/graphql/), and every other part goes through that API: the interface, workers, connectors and your own scripts. The API checks permissions, resolves duplicates and writes to Elasticsearch. Then it records each change as an event in a Redis stream. Every query, mutation and subscription of the API, with the capability it requires, is in the [GraphQL schema reference](https://filigran.io/docs/reference/opencti/graphql-schema/). For production, you can run several platforms behind a load balancer, all connected to the same Elasticsearch, Redis, S3 storage and RabbitMQ. They share the work: - Each API request is served by the platform that receives it. Sessions are kept in Redis by default, so a user can land on any platform. - Each manager runs on one platform at a time. Every platform starts its managers, and each run first takes the manager's lock in Redis. The platform that gets the lock runs it, and the others skip that run. If that platform stops, another one takes the lock. How to run platforms as a cluster is in [Scale](https://filigran.io/docs/deploy/operate/scale/#run-opencti-as-a-cluster). ## Workers {#workers} Workers are standalone Python processes. They take the messages that connectors and the platform put in RabbitMQ and write them through the platform API. Writing is asynchronous: a connector hands its data to a queue and moves on, and the workers write it as fast as the platform and Elasticsearch accept it. To write faster, start more workers. Each worker sends its writes to a platform, so more workers need more platforms to receive them: count one platform for every three workers. Past a point, the throughput of the Elasticsearch cluster is the limit. xtm-docker starts three workers for one platform. The machines each part needs are in [Sizing](https://filigran.io/docs/deploy/plan/sizing/), and how to add workers and platforms is in [Scale](https://filigran.io/docs/deploy/operate/scale/). ## Managers {#managers} Managers are background components inside the platform. Each one does one job: apply inference rules, record history, lower the score of indicators, delete expired data, run playbooks, send notifications. Some read the live stream and react to every change. Others run on a schedule. Each manager has an `enabled` key in the configuration, and almost all are on by default. For example, `rule_engine:enabled`, or the environment variable `RULE_ENGINE__ENABLED`, turns the rules engine off on the platform that reads it. Intervals are configuration keys too, such as `expiration_scheduler:interval`, in milliseconds. The [manager reference](https://filigran.io/docs/reference/opencti/managers/) lists every manager of your version with how it runs, its default and its keys. The keys are also in the [Engines, Schedules and Managers](https://filigran.io/docs/reference/opencti/configuration/#engines-schedules-and-managers) section of the configuration reference. To see which managers a running platform has turned on, open the [managers list](https://filigran.io/docs/opencti/configure/parameters/#check-dependencies-and-managers) of the platform parameters. *(OpenCTI 7.261117 and later)* ### The ingestion health manager {#the-ingestion-health-manager} The ingestion health manager checks, every minute, the connectors, feeds and synchronizers that are running. It looks at the user each one runs as (missing, inactive, not a service account, lacking a capability), at the heartbeat and the errors of connectors, and at the runs of feeds and synchronizers that fail or that their source refuses. Their health shows on their screens. When a health turns degraded, critical or recovered, the manager records an `ingestion_health` event in the activity log. It runs by default: `ingestion_health_manager:enabled` (`INGESTION_HEALTH_MANAGER__ENABLED`) turns it off, and `ingestion_health_manager:interval` sets its period, in milliseconds (60000 by default). > **Note: Turn a manager off on every platform** > > In a cluster, a manager keeps running as long as one platform has it on. To stop a manager, turn it off in the configuration of every platform. > **With XTM One: Registration with XTM One** > > The XTM One registration manager runs when `xtm:xtm_one_token` (`XTM__XTM_ONE_TOKEN`) is set. It registers the platform with XTM One at `xtm:xtm_one_url` (`XTM__XTM_ONE_URL`, `https://common.xtm1.filigran.io` by default): 30 seconds after start, then every 5 minutes, so XTM One always knows the platform. How to set it up is in [Connect the modules](https://filigran.io/docs/deploy/configure/connect-modules/). ## Connectors {#connectors} Connectors are separate Python processes that connect to the platform with the token of an OpenCTI user, usually a [service account](https://filigran.io/docs/opencti/administer/service-accounts/). A connector registers through the GraphQL API and receives the connection details of RabbitMQ from the platform. It then sends its data to its queue in RabbitMQ, not to the API. Everything a connector writes is written as its user. That user's groups decide which markings the connector can write, and its max confidence level decides what it can overwrite. [Data processing](https://filigran.io/docs/opencti/concepts/data-processing/) explains these checks. Each connector has one of six types: | Type | What it does | Examples | | --- | --- | --- | | `EXTERNAL_IMPORT` | Pulls data from a remote source, converts it to Structured Threat Information Expression (STIX) 2.1 and sends it to OpenCTI | MITRE ATT&CK, MISP, CVE | | `INTERNAL_ENRICHMENT` | Listens for new entities or user requests, and adds data from a remote source | Shodan, DomainTools, IPinfo | | `INTERNAL_IMPORT_FILE` | Extracts data from files uploaded through the interface or the API. See [Import from files](https://filigran.io/docs/opencti/use/ingest/files/) | STIX 2.1, PDF, text, HTML | | `INTERNAL_ANALYSIS` | Reads the text of a container and proposes the entities it mentions, on its **Content** tab | Document import, in analysis mode | | `INTERNAL_EXPORT_FILE` | Generates an export of one object or a list. See [Export knowledge to a file](https://filigran.io/docs/opencti/use/share/export/) | STIX 2.1, CSV, PDF | | `STREAM` | Reads a live stream of the platform and acts on each event | Splunk, Elastic Security, QRadar | The available connectors are in the [XTM Hub integrations library](https://hub.filigran.io/cybersecurity-solutions/open-cti-integrations). How they are deployed, by hand or by XTM Composer, is in [How integrations run](https://filigran.io/docs/deploy/integrations/how-they-run/). How administrators choose, deploy and follow them in the interface is in [Connectors](https://filigran.io/docs/opencti/use/ingest/connectors/). ## The path of a piece of data {#the-path-of-a-piece-of-data} **Diagram: A connector's data goes through a RabbitMQ queue to a worker, which writes it through the platform API into Elasticsearch, and each change becomes a live stream event** - Source: Connector (Converts data to STIX 2.1) - Queue: RabbitMQ (Push queue of the connector) - OpenCTI: Worker (Takes messages from the queue), Platform API (Checks, merges and writes) - Stored: Elasticsearch (Knowledge indices), Redis (Live stream) - Reacts: Stream readers (Managers, stream connectors, live streams) Connections: - Connector → RabbitMQ: STIX bundle - RabbitMQ → Worker: consume - Worker → Platform API: API call - Platform API → Elasticsearch: write - Platform API → Redis: change event - Redis → Stream readers: read events Take Example CERT's advisory "Velvet Harbor targets hotel booking systems", brought in by an `EXTERNAL_IMPORT` connector: 1. The connector fetches the advisory from its source and converts it to a STIX 2.1 bundle: the report, the intrusion set Velvet Harbor, its malware, its indicators and the relationships between them. 2. The connector splits the bundle into one message per object and sends them to its push queue in RabbitMQ. It goes on with its work; the messages wait until a worker is free. 3. A worker takes a message and writes its object through the platform API. 4. The platform checks the connector's permissions, merges the object with what already exists, and writes it to Elasticsearch. The object now appears in searches. 5. The platform records each change as an event in the live stream, in Redis. 6. Everything that reacts to changes reads that stream: the rules engine and other managers, the synchronizers of other platforms and `STREAM` connectors. Connectors and remote platforms read it through the platform's stream API, not from Redis. The other services play their part on the side: - **S3 storage** holds files. A file you upload is stored there, then an `INTERNAL_IMPORT_FILE` connector reads it and sends what it finds through the same path. Exports, once generated, are stored there too. - **Redis** keeps the live stream to a set length: 2,000,000 events by default (`redis:trimming`, `REDIS__TRIMMING`; 0 keeps every event). A consumer that falls further behind than that misses events. Redis also holds the activity and notification streams, the manager locks, the sessions and the progress of connector jobs. - **RabbitMQ** also carries work in the other direction. The platform puts enrichment, analysis, import and export requests in the queue of the connector that handles them. The built-in feeds (CSV, JSON, RSS and TAXII) run inside the platform, not as connectors. They enter the path at step 2: the platform puts their objects in the queue for the workers. ## Find where a delay comes from {#find-where-a-delay-comes-from} When data arrives slower than expected, follow the path: | What you see | Likely cause | What to do | | --- | --- | --- | | A connector's queue keeps growing | Too few workers, or platforms too busy to take their writes | Add workers, then platforms, as [Scale](https://filigran.io/docs/deploy/operate/scale/) describes | | Workers are busy but writes are slow | The throughput of Elasticsearch | Check the search engine's own monitoring and [Sizing](https://filigran.io/docs/deploy/plan/sizing/) | | A stream connector or a remote platform misses events | It fell further behind than the trimmed live stream | Raise `redis:trimming`, or find why the consumer is slow | | A connector has not run for a while | The connector stopped, or its user lost a right | Its status in [Connectors](https://filigran.io/docs/opencti/use/ingest/connectors/#follow-what-connectors-import), then its logs | *(OpenCTI 7.261117 and later)* Before reading logs, look at the health the [ingestion health manager](#the-ingestion-health-manager) gives each connector, feed and synchronizer: it names what fails, such as a user that is no longer active or a missing heartbeat. The messages waiting in each connector's queue show in [Connectors](https://filigran.io/docs/opencti/use/ingest/connectors/#follow-what-connectors-import). The [observability metrics](https://filigran.io/docs/deploy/operate/metrics/) of the platform show each step, and the [metrics reference](https://filigran.io/docs/reference/opencti/metrics/) lists them. ## What's next {#what-s-next} - [The XTM stack](https://filigran.io/docs/deploy/plan/architecture/): OpenCTI next to XTM One, OpenAEV and XTM Composer, and the services they share. - [Sizing](https://filigran.io/docs/deploy/plan/sizing/): how many platforms and workers, and how large each service. - [Scale](https://filigran.io/docs/deploy/operate/scale/): add workers, run platforms as a cluster, cluster the services. - [How integrations run](https://filigran.io/docs/deploy/integrations/how-they-run/): deploy and manage connectors. - [Data processing](https://filigran.io/docs/opencti/concepts/data-processing/): what the platform does to each object on the way in. - [OpenCTI configuration reference](https://filigran.io/docs/reference/opencti/configuration/): every key, including those of the managers. --- # Containers > How reports, groupings and cases keep what a source said together without owning the knowledge they hold, and what that changes when you add, share or delete. - URL: https://filigran.io/docs/opencti/concepts/containers/ - Products: OpenCTI 7.261119.0 - For: CTI analysts, CTI team leads - Type: Concept A container keeps together what one source said or one piece of work found. The report "Velvet Harbor targets hotel booking systems" holds the intrusion set, its malware, its techniques, its indicators and the relationships Example CERT asserts between them. The objects themselves stay independent: Velvet Harbor is the same Intrusion Set in every report and case that mentions it. This page explains which container fits which work, how a container holds knowledge, and what that changes when you add, find, share or delete. ## Which container for which work {#which-container-for-which-work} | Container | Use it to | Menu | | --- | --- | --- | | Report | Keep what a source published at a date, as it said it: a vendor advisory on Velvet Harbor, your own monthly brief on the hospitality sector | **Analyses > Reports** | | Grouping | Keep objects together before you can say what they mean, such as the domains of a phishing wave you are still analyzing | **Analyses > Groupings** | | Note | Add your text, analysis or caveat to one or more objects or relationships | **Analyses > Notes** | | Opinion | Say how much you agree with an object someone else created | On the object's **Overview** | | Observed Data | Record raw observations: which observables were seen, how many times and over which period | **Events > Observed datas** | | Incident response, Request for information, Request for takedown | Carry an investigation or a request to its end, with tasks and assignees. See [Handle incidents and requests in cases](https://filigran.io/docs/opencti/use/analyze/cases/) | **Cases** | | Task | Track work to do by a date, usually inside a case | **Cases > Tasks** | | Feedback | Hold a user's feedback on an object | **Cases > Feedbacks** | Reports, groupings, notes, opinions and observed data come from Structured Threat Information Expression (STIX) 2.1. Cases, tasks and feedbacks are OpenCTI's own, and are exported as STIX custom objects. ## How a container holds knowledge {#how-a-container-holds-knowledge} **Diagram: A container points to objects it does not own, so one intrusion set or one relationship can be in a report and a case at once** - Containers: Report (Velvet Harbor targets hotel booking systems), Incident response (Booking system intrusion at a hotel chain) - Knowledge: Intrusion Set (Velvet Harbor), Relationship (Velvet Harbor uses Velvet Loader), Malware (Velvet Loader), Domain name (booking-velvetharbor.example) Connections: - Report → Intrusion Set: contains - Report → Relationship: contains - Report → Malware: contains - Incident response → Intrusion Set: contains - Incident response → Domain name: contains A container points to its content; it does not own it. Each object it holds is linked to it, as authors and markings are linked to every object (see [Nested objects](https://filigran.io/docs/opencti/concepts/nested-objects/)). Three consequences follow: - **One object, many containers.** Velvet Harbor is in Example CERT's report and in the incident response "Booking system intrusion at a hotel chain". Whatever you learn about it, you learn once, and every container shows it. - **A container can hold relationships.** The report contains "Velvet Harbor uses Velvet Loader", not only the two objects: the report states that link. When two sources state the same link, both reports contain the same relationship, and the page of the relationship lists both. - **A container records who said what.** The author, the date and the confidence of a report are those of the source. The objects inside keep their own, so a weak link, such as "Velvet Harbor uses Harbor Stealer" at confidence 30, stays weak inside a confident report. ## Add knowledge to a container {#add-knowledge-to-a-container} You add to a container from its tabs. The **Knowledge** tab shows the content as a graph, a correlation view or an ATT&CK matrix, and as a timeline on reports and cases, and whatever you create there joins the container. The **Content** tab holds the text and files of the container: map words of the text to objects, and the objects join it. The **Entities** and **Observables** tabs list the content by family, and **Add entity** adds existing objects or creates new ones. *(OpenCTI 7.261030 and later)* The **Relationships** tab lists the relationships the container holds, with filters. ![The Entities tab of the report Velvet Harbor targets hotel booking systems lists the intrusion set Velvet Harbor and the sector Hospitality, with the Add entity button above the list.](https://filigran.io/docs/shots/d514d8292bd6cc8cffdee2e68d8538f5741f263a92fdba0cc4b6a1ee978f8ce9.webp) When you create an object from a container, the **Markings** field starts with the markings of the container. Check them before you save: a container's markings do not travel to its content, so each object is visible according to its own markings. An indicator taken from a TLP:RED report is usually TLP:RED too. The tabs, views and the content mapping are described step by step in [Explore analysis](https://filigran.io/docs/opencti/use/explore/analysis/). ## Find every source on a subject {#find-every-source-on-a-subject} Every entity has an **Analyses** tab that lists the containers it is in: from the malware Harbor Stealer, you reach every report that mentions it. On a report, a grouping or a case, **Correlated containers** lists the other containers that share part of its content, a quick way to find the earlier reports on the same campaign. Container lists can also be filtered on their content. See [Pivot and investigate](https://filigran.io/docs/opencti/use/analyze/pivot/). ## Share a container {#share-a-container} What travels with a container depends on how you restrict or share it: - **Markings** apply to each object on its own. A reader who lacks TLP:AMBER does not see a TLP:AMBER report, but may see the objects inside that carry other markings. - **Share with an organization** requires the Enterprise Edition. On a report, a grouping, an observed data or a case, it shares the container and all its content with the organization, and every object added later is shared too. See [Separate data between organizations](https://filigran.io/docs/opencti/administer/organizations/#share-knowledge-with-an-organization). - **Authorized members** restrict the container itself to chosen users, groups or organizations. See [Restrict one object to chosen people](https://filigran.io/docs/opencti/administer/sharing/). How the three combine is in [How OpenCTI decides who sees what](https://filigran.io/docs/opencti/administer/segregation/), and how to send a report out of the platform is in [Export knowledge to a file](https://filigran.io/docs/opencti/use/share/export/). ## Remove and delete {#remove-and-delete} - **Removing an object from a container** deletes only the link. The object stays in the platform and in its other containers. - **Deleting a container** keeps its content by default, and the container goes to the [trash](https://filigran.io/docs/opencti/use/delete-restore/). When you delete a report and some of its objects are in no other container, the dialog counts them and offers **Also delete these elements**, so that you do not leave orphans behind. > **With XTM One: Summarize a container** > > On a container, **AI Insights** writes a **Container summary** of its content. It needs an Enterprise Edition license and a configured AI service. > > *(OpenCTI 7.260811 and later)* > > When XTM One is connected, you choose the AI agent that writes the summary with **Select agent**. ## What's next {#what-s-next} - [Data model](https://filigran.io/docs/opencti/concepts/data-model/): the objects a container holds. - [Explore analysis](https://filigran.io/docs/opencti/use/explore/analysis/): read and build reports, groupings, notes and opinions. - [Handle incidents and requests in cases](https://filigran.io/docs/opencti/use/analyze/cases/): work on incident responses and requests with tasks. - [Import from files](https://filigran.io/docs/opencti/use/ingest/files/): turn a document into a report with its content. - [Export knowledge to a file](https://filigran.io/docs/opencti/use/share/export/): export a report and its content as a STIX 2.1 bundle. --- # Data model > How OpenCTI represents what you know about a threat, as entities, observables and relationships that carry their own source and confidence, and where you find each type. - URL: https://filigran.io/docs/opencti/concepts/data-model/ - Products: OpenCTI 7.261119.0 - For: CTI analysts, evaluators, developers - Type: Concept OpenCTI stores what you know about threats as a graph. Velvet Harbor is an Intrusion Set, 203.0.113.10 is an IPv4 address, and "Velvet Harbor uses Velvet Loader" is a relationship between two objects. Each statement is an object of its own, with its author, its confidence, its markings and its dates. This page explains which object holds each thing you know, the rules of the graph and what they change for your analysis, and where each type lives in the interface. ## What you know, as OpenCTI stores it {#what-you-know-as-opencti-stores-it} | What you know | How OpenCTI stores it | In the demo data | | --- | --- | --- | | Who is behind an attack, and what they run | Entities: Threat Actor Group, Intrusion Set, Campaign | Harbor Syndicate, Velvet Harbor, Operation Night Desk | | What they use | Entities: Malware, Tool, Attack Pattern, Vulnerability, Channel | Velvet Loader, Spearphishing Attachment, CVE-2024-3400 | | Who and where they target | Entities: Sector, Organization, Individual, Country, Region | Hospitality, Grand Meridian Hotels, France | | A technical fact seen on a network or a system | Observables: IPv4 address, Domain name, URL, File and about 30 more | 203.0.113.10, booking-velvetharbor.example | | A detection rule to deploy | Indicator: a pattern, a score and a validity period | The indicator 203.0.113.10, based on the IP address | | A link between two things | Relationship, typed and directed, with its own source and confidence | Velvet Harbor `uses` Harbor Stealer, at confidence 30 | | Something seen somewhere | Sighting, with a count and first and last seen dates | The indicator 203.0.113.10 seen in a hotel network | | What one source said, kept together | Container: Report, Grouping, Note, Opinion, Observed Data, case | The report "Velvet Harbor targets hotel booking systems" | | How a piece of knowledge is classified | Meta objects: markings, labels, external references, kill chain phases | TLP:AMBER, the label `hotel-sector` | ## How the graph is built {#how-the-graph-is-built} **Diagram: OpenCTI knowledge is a graph of containers, entities and observables, linked by relationships that are objects of their own** - Containers: Report (Velvet Harbor targets hotel booking systems) - Entities: Intrusion Set (Velvet Harbor), Malware (Velvet Loader), Sector (Hospitality), Indicator (Pattern on 203.0.113.10) - Observables: IPv4 address (203.0.113.10), Domain name (booking-velvetharbor.example) Connections: - Report → Intrusion Set: contains - Report → Malware: contains - Intrusion Set → Malware: uses - Intrusion Set → Sector: targets - Indicator → Intrusion Set: indicates - Indicator → IPv4 address: based on - Domain name → IPv4 address: resolves to Four rules explain most of the model, and most of what surprises analysts: 1. **Every link is an object.** A relationship has its own author, confidence, markings and dates, and its own page. "Velvet Harbor uses Harbor Stealer" is rated 30 because a single source says so, while "Velvet Harbor uses Velvet Loader" is rated 75. A report can contain a relationship, and a note or an opinion can be about one. 2. **Not every pair of types can be linked.** OpenCTI only accepts the relationship types that make sense between two types: an Intrusion Set `uses` a Malware, an Indicator `indicates` an Intrusion Set. The creation forms only offer the types allowed between the two objects you picked. The [data model reference](https://filigran.io/docs/reference/opencti/data-model/) gives the relationships each type can start. 3. **One fact, one object.** OpenCTI recognizes an object it already has, so two reports that name Velvet Harbor point to the same Intrusion Set, and two sources that say "Velvet Harbor uses Velvet Loader" share one relationship. Each report still lists it, so you see every source of a fact. [Deduplication](https://filigran.io/docs/opencti/concepts/deduplication/) gives the properties that identify each type. 4. **Author, markings and labels are links too.** In STIX, an object names its author, markings and labels inside its own attributes. OpenCTI stores each of these as a relationship, so you can pivot on them: from Example CERT to everything it authored. See [Nested objects](https://filigran.io/docs/opencti/concepts/nested-objects/). The page of a relationship shows what makes it an object: its description, its confidence, its author, its markings and the containers that state it. ![The page of the relationship Velvet Harbor uses Harbor Stealer: its description says a single source links them, its confidence level is low, and the report it comes from is listed under Latest containers about the object.](https://filigran.io/docs/shots/f59fb58219fc53c174a2f47ea89911358ccf1561c62825752bbfcf6df9c87896.webp) ### Observables and indicators are separate objects {#observables-and-indicators-are-separate-objects} An observable records a fact: the IP address 203.0.113.10 exists and was seen. An indicator records a detection: the pattern `[ipv4-addr:value = '203.0.113.10']`, with a score, a validity period and the threat it `indicates`. The indicator is `based-on` the observable. The split matters for your work. You can keep an observable as context, without asking anyone to block it. Only an indicator ages: its score drops over time and the indicator is revoked when the score reaches the revoke score of its decay rule, while the observable stays. See [How indicators age and expire](https://filigran.io/docs/opencti/use/analyze/indicators-lifecycle/). ### Threat Actor is split in two {#threat-actor-is-split-in-two} OpenCTI divides the STIX Threat Actor into **Threat Actor Group**, such as Harbor Syndicate, and **Threat Actor Individual**, a person with a date of birth, a job title and links such as `citizen-of`, `employed-by` or `reports-to`. Both are exported as STIX `threat-actor`, so other tools see a standard object. ## Model what you know {#model-what-you-know} A few analytical tasks, and the objects they take: | Task | How to model it | | --- | --- | | Attribute a campaign | Operation Night Desk `attributed-to` Velvet Harbor, which is `attributed-to` Harbor Syndicate. Each link carries its own confidence, so a weak attribution stays visibly weak | | Follow how an actor's techniques change | One `uses` relationship per Attack Pattern, with a **Start time** and a **Stop time**: Velvet Harbor used Spearphishing Attachment from March to September 2025, then Valid Accounts from October 2025 | | Map a disinformation campaign | A Campaign `uses` the Narrative "Hotel chains hide guest data breaches". A Channel `uses` the same Narrative, `publishes` the fake articles as Media content observables and `amplifies` other Channels. A narrative can be `subnarrative-of` a broader one | | Record a victim's incident | An Incident, such as the unauthorized access to Grand Meridian Hotels' booking database, `attributed-to` Velvet Harbor and `targets` Grand Meridian Hotels | What the dates of a relationship mean, and which ones the platform sets, is in [Meaning of dates](https://filigran.io/docs/opencti/concepts/dates/). ## Where each type lives in the interface {#where-each-type-lives-in-the-interface} The left menu groups the types by family, in nine menus: | Menu | Types | | --- | --- | | **Analyses** | Reports, groupings, malware analyses, security coverages, notes, external references | | **Cases** | Incident responses, requests for information, requests for takedown, tasks, feedbacks | | **Events** | Incidents, sightings, observed data | | **Observations** | Observables, artifacts, indicators, infrastructures | | **Threats** | Threat actors (group and individual), intrusion sets, campaigns | | **Arsenal** | Malwares, channels, tools, vulnerabilities | | **Techniques** | Attack patterns, narratives, courses of action, data components, data sources | | **Entities** | Sectors, events, organizations, security platforms, systems, individuals | | **Locations** | Regions, countries, administrative areas, cities, positions | Relationships have no menu of their own. You find them on the **Knowledge** tab of the objects they link, and all of them in **Data > Relationships**. How to read any entity page, from who says so to its links and sources, is in [Explore knowledge](https://filigran.io/docs/opencti/use/explore/). The [data model reference](https://filigran.io/docs/reference/opencti/data-model/) lists every type of your version in the order of the menus. ## What OpenCTI adds to STIX 2.1 {#what-opencti-adds-to-stix-2-1} The model is Structured Threat Information Expression (STIX) 2.1, so a bundle from a partner imports without conversion and an export is read by any STIX tool. OpenCTI adds what analysts need and the standard lacks: - **Entities** for cybercrime, disinformation and case management: Channel, Narrative, Event, Language, Administrative Area, Security Platform, Threat Actor Group and Individual, the cases, Task and Feedback. - **Observables** for fraud and information systems: Cryptocurrency wallet, Bank account, Payment card, Phone number, Credential, Tracking number, Hostname, User agent, Media content, Persona, SSH key, AI prompt and others. - **Relationship types**, 15 of the 59 OpenCTI knows: `publishes`, `amplifies` and `subnarrative-of` for channels and narratives, `employed-by`, `citizen-of`, `national-of` and `resides-in` for individuals, `cooperates-with` and `part-of` between groups, and others. These types and attributes are exported as STIX custom objects and custom properties, such as `x_opencti_score`, so another tool still reads the standard part. How to work with the model through the API is in [Integrate and extend](https://filigran.io/docs/develop/). ## Attributes of a type {#attributes-of-a-type} Each type adds its own attributes to the common ones: author, markings, labels, confidence and dates. *(OpenCTI 7.261117 and later)* A System, such as a hotel chain's booking platform, also describes the asset it is: **System category** and **System subcategory**, **Internet facing**, **Criticality**, **Environment**, **Platform** and **Asset owner**. All but **Asset owner**, a free text, take their values from vocabularies, and the values of **Criticality** and **Internet facing** are fixed. These fields follow the asset taxonomy of OpenAEV, so a System maps to an OpenAEV or XTM One asset. You can filter on each of them. - The [data model reference](https://filigran.io/docs/reference/opencti/data-model/) gives, for each type of your version, the attributes it adds, which ones are required and the inherited attributes of each family. - **Settings > Customization > Entity types** lets administrators make attributes mandatory or give them default values. See [Entity types](https://filigran.io/docs/opencti/configure/entities/). - The [GraphQL schema reference](https://filigran.io/docs/reference/opencti/graphql-schema/) documents every type and attribute of the API, for scripts and integrations. - To read every type of the API, such as `IntrusionSet`, with its fields, open the [GraphQL schema reference](https://filigran.io/docs/reference/opencti/graphql-schema/). The **Playground** button of the **API access** card of your profile opens the GraphQL playground to run queries; it needs the **Allow token usage** capability and shows while the playground is on (`app:graphql:playground:enabled`). Its schema documentation stays empty unless an administrator allows introspection (`app:graphql:playground:force_disabled_introspection`, `true` by default, see [Harden](https://filigran.io/docs/deploy/operate/harden/#graphql-playground)). ## What's next {#what-s-next} - [Containers](https://filigran.io/docs/opencti/concepts/containers/): reports, groupings and cases, and how they hold knowledge. - [Deduplication](https://filigran.io/docs/opencti/concepts/deduplication/): how OpenCTI recognizes an object it already has. - [Reliability and confidence](https://filigran.io/docs/opencti/concepts/reliability-confidence/): what the confidence of an object and of a source change. - [Explore knowledge](https://filigran.io/docs/opencti/use/explore/): browse each family of types. - [Create knowledge manually](https://filigran.io/docs/opencti/use/ingest/manual/): create entities and relationships in the interface. - [Data model reference](https://filigran.io/docs/reference/opencti/data-model/): every type, its attributes and its relationships. --- # Data processing > What OpenCTI does to each object on its way in, from the STIX bundle to the knowledge base, why it explains what analysts see, and what administrators set to control it. - URL: https://filigran.io/docs/opencti/concepts/data-processing/ - Products: OpenCTI 7.261119.0 - For: CTI analysts, administrators - Type: Concept OpenCTI does not store data as it arrives. Each object from a connector, a feed, a file or another platform is checked, matched against what you already have, and written within the trust of its source. Once it is written, background processes go on with it: they infer relationships, age indicators and run your automations. This page follows an object through these steps. It explains what you see as an analyst, such as a report that fills in over a few minutes or a feed that does not overwrite your assessment. It also lists what administrators set to control each step. ## The path of an object {#the-path-of-an-object} **Diagram: A STIX bundle is split into one message per object, each written by a worker through the platform checks, then consolidated by background processes** - Sources: Source (Connector, feed, file, platform) - Queue: Split bundle (One object per message) - Writing: Worker (Sends objects to the API), Platform (References, markings, duplicates, confidence) - Knowledge: Knowledge base (Created or updated) - After writing: Background processes (Rules, decay, playbooks) Connections: - Source → Split bundle: STIX bundle - Split bundle → Worker: fewest references first - Worker → Platform: API call - Platform → Knowledge base: write - Knowledge base → Background processes: live stream - Background processes → Platform: new knowledge Most data arrives as a Structured Threat Information Expression (STIX) 2.1 bundle. Take Example CERT's advisory "Velvet Harbor targets hotel booking systems", with its intrusion set, malware, indicators and relationships: 1. **The bundle is split.** It becomes one message per object, ordered so that an object comes after the objects it refers to: the label `hotel-sector` and the author Example CERT before the report that points to them. 2. **Workers write each object.** Several workers take the messages from the queue in parallel and send each object to the platform, as the user of the connector, the feed or the person who imported the file. 3. **References are resolved.** The platform finds each object the incoming one refers to. A relationship whose source or target is missing is rejected and tried again later. Another missing reference, such as a label or an object of a report, can hold the object back for a few attempts; then the platform writes it without that reference. 4. **Access is checked.** The user must hold every marking of the object, or the object is rejected. An Indicator must also have a valid pattern that no [exclusion list](https://filigran.io/docs/opencti/configure/exclusion-lists/) excludes. 5. **Duplicates are resolved.** The platform looks for an object it already has. It creates the object, or updates the existing one within the limits of confidence. 6. **The change is published.** Each creation and update becomes an event in the live stream, which the background processes, the streams and the notifications read. How the platform, its workers and its queues carry these steps is in [How OpenCTI works](https://filigran.io/docs/opencti/concepts/architecture/). When the data goes to a [draft](https://filigran.io/docs/opencti/use/ingest/drafts/) instead, as an import from a file usually does, steps 2 to 5 happen inside the draft and nothing reaches the live stream. Approving the draft sends its content through the same path, as the user who approved it. ## What it explains for your analysis {#what-it-explains-for-your-analysis} | What you see | Why | Where it is set | | --- | --- | --- | | A report appears, then its content fills in over a few minutes | Objects are written one by one, by several workers at once | Not configurable | | A report lacks an object its source listed | The object was rejected (a marking its source may not write, an excluded or invalid indicator), or arrived too late | The connector user's groups, [Keep benign values out of indicators](https://filigran.io/docs/opencti/configure/exclusion-lists/) | | A feed did not overwrite the description or the confidence you set | The feed's confidence, capped at its max confidence level, is lower than the object's confidence | [Reliability and confidence](https://filigran.io/docs/opencti/concepts/reliability-confidence/) | | Two sources about Velvet Harbor point to the same Intrusion Set | The name of one is an alias of the other | [Deduplication](https://filigran.io/docs/opencti/concepts/deduplication/) | | Velvet Harbour and Velvet Harbor Group stay separate from Velvet Harbor | Their names are not aliases of each other yet | Merge them, as [Merging](#merging) explains | | A relationship appears that nobody created | An inference rule derived it from existing facts | [Turn inference rules on or off](https://filigran.io/docs/opencti/configure/rules/) | | An indicator's score drops, then the indicator is revoked | Its decay rule lowers the score over time | [Age indicators with decay rules](https://filigran.io/docs/opencti/configure/decay/) | | A partner does not see a report you see | Markings or organizations hide it from them | [How OpenCTI decides who sees what](https://filigran.io/docs/opencti/administer/segregation/) | ## Deduplication {#deduplication} The platform identifies each object by a few properties, such as the name and aliases of an Intrusion Set or the value of an IP address. Data that matches an existing object enriches it instead of creating a copy: the report keeps its own link to it, and the object gains the new source's details. Relationships match on their type, their source and their target. When they have dates, the start and stop times must also be within 30 days of the existing ones. So "Velvet Harbor uses Spearphishing Attachment from March 2025" and the same link starting in October 2025 stay two relationships, which is how you follow an actor's techniques over time. The properties of each type are in [Deduplication](https://filigran.io/docs/opencti/concepts/deduplication/). ## Confidence levels {#confidence-levels} Every user, and so every connector, feed and synchronizer, has a max confidence level, set on its groups or on itself. It caps the confidence of what the user creates. When an object already exists, an update whose confidence, capped at its source's max confidence level, is equal to or higher than the object's confidence replaces its values. An update below it can only fill fields that are still empty and add labels and external references. A community feed at 40 cannot overwrite the Intrusion Set your team rated 80. See [Reliability and confidence](https://filigran.io/docs/opencti/concepts/reliability-confidence/). ## Markings and organizations {#markings-and-organizations} Markings, such as the Traffic Light Protocol (TLP) levels, classify data. A user only sees, and can only write, data whose markings their groups allow: a connector whose user may not write TLP:RED loses every TLP:RED object of its source. With the Enterprise Edition, organizations add a second barrier: an object shared with some organizations is only visible to their members, and a report or a case shared with an organization shares its content too. See [How OpenCTI decides who sees what](https://filigran.io/docs/opencti/administer/segregation/). ## Merging {#merging} Some duplicates cannot be recognized: Velvet Harbour and Velvet Harbor Group are the same actor as Velvet Harbor for you, but nothing in their names says so. A user with the **Merge knowledge** capability merges them. Select two to four entities of the same type in a list and choose **Merge**. You keep one entity, and the others are merged into it: their names become aliases, and their relationships and containers move to the kept entity. See [Merge duplicates](https://filigran.io/docs/opencti/use/enrich/merge/). ## Inference rules {#inference-rules} The rules engine derives knowledge from what you have. For example, when an Indicator indicates Velvet Harbor and is sighted at Grand Meridian Hotels, a rule infers that Velvet Harbor targets Grand Meridian Hotels. Another rule raises an Incident when a valid Indicator is sighted. Every rule is off until an administrator turns it on: - Turning a rule on applies it to all existing data in the background, then to every change. - Turning a rule off deletes everything it inferred. Inferred knowledge is marked as such, with the rule and the facts it comes from. See [How OpenCTI infers new relationships](https://filigran.io/docs/opencti/use/enrich/inferences/), and [Turn inference rules on or off](https://filigran.io/docs/opencti/configure/rules/) to turn rules on. ## Indicator decay {#indicator-decay} An Indicator loses value with time. Its decay rule, chosen by the type of observable it detects, lowers its score over time and revokes it when the score reaches the revoke score. A source that sends the indicator again with a new score restarts the decay. See [How indicators age and expire](https://filigran.io/docs/opencti/use/analyze/indicators-lifecycle/) and [Age indicators with decay rules](https://filigran.io/docs/opencti/configure/decay/). ## What administrators control {#what-administrators-control} Most of these steps follow settings that administrators own. Each one changes what analysts get: | Setting | Effect | Where | | --- | --- | --- | | Max confidence level of each connector's user | Which sources can overwrite which knowledge | [Create accounts for integrations](https://filigran.io/docs/opencti/administer/service-accounts/), [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/) | | Markings allowed to each connector's groups | Which classified objects a source can bring in | [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/), [Restrict access with markings](https://filigran.io/docs/opencti/administer/markings/) | | Exclusion lists | Indicators that are never created, such as your own IP ranges | [Keep benign values out of indicators](https://filigran.io/docs/opencti/configure/exclusion-lists/) | | Inference rules | The relationships the platform derives | [Turn inference rules on or off](https://filigran.io/docs/opencti/configure/rules/) | | Decay rules | How fast indicators lose their score, and when they are revoked | [Age indicators with decay rules](https://filigran.io/docs/opencti/configure/decay/) | | Relationship date window: `relations_deduplication:past_days` and `relations_deduplication:next_days` (`RELATIONS_DEDUPLICATION__PAST_DAYS`, `RELATIONS_DEDUPLICATION__NEXT_DAYS`), 30 days each | When two dated relationships count as one | [Functional customization](https://filigran.io/docs/reference/opencti/configuration/#functional-customization) | | Playbooks | Your own processing steps on incoming data | [Automate with playbooks](https://filigran.io/docs/opencti/use/automate/playbooks/) | | Retention rules | Which data is deleted after a while | [Retention](https://filigran.io/docs/opencti/configure/retention/) | ## What's next {#what-s-next} - [How OpenCTI works](https://filigran.io/docs/opencti/concepts/architecture/): the platform, workers and queues behind these steps. - [Deduplication](https://filigran.io/docs/opencti/concepts/deduplication/): the properties that identify each type. - [Reliability and confidence](https://filigran.io/docs/opencti/concepts/reliability-confidence/): who can write what. - [How intelligence gets into OpenCTI](https://filigran.io/docs/opencti/use/ingest/): the ways data gets into OpenCTI. - [Automate with playbooks](https://filigran.io/docs/opencti/use/automate/playbooks/): add your own processing steps to incoming data. --- # Meaning of dates > Which date of an OpenCTI object answers which question, which dates come from the source and which from your platform, and how imports move them. - URL: https://filigran.io/docs/opencti/concepts/dates/ - Products: OpenCTI 7.261119.0 - For: CTI analysts, SOC analysts, developers - Type: Concept When you follow Velvet Harbor, "new this week" can mean three things: what Example CERT published this week, what reached your platform this week, or what the actors did this week. OpenCTI keeps a date for each, and a filter, a sort or a dashboard widget only answers your question if it uses the right one. This page tells you which date answers which question, which dates the source sets and which your platform sets, and how a new import moves them. ## Which date answers your question {#which-date-answers-your-question} | Your question | Date to use | | --- | --- | | What did my sources publish this week? | **Publication date** of reports, otherwise **Original creation date** | | What reached my platform this week? | **Platform creation date** | | What changed in my platform recently? | **Modification date** | | When was this actor or campaign active? | **First seen** and **Last seen** | | When did Velvet Harbor use this technique? | **Start time** and **Stop time** of the relationship | | When was 203.0.113.10 seen in our network? | **First seen** and **Last seen** of the sighting | | Is this indicator still worth detecting? | **Valid from** and **Valid until** | A report that a connector imports today about a campaign of last spring has a **Platform creation date** of today, a **Publication date** of the day the source published it, and objects whose **First seen** is last spring. A dashboard of "reports this week" built on **Platform creation date** therefore includes old reports that a new feed brought in. Build it on **Publication date** to follow what sources say now. ## How dates reach an object {#how-dates-reach-an-object} **Diagram: Some dates come from the source, some from your instance, and imports move each by its own rule** - Source: Original creation date (When the source wrote it), Threat dates (First seen, start time, valid from) - OpenCTI: Create or update (By you, a connector or a feed) - Stored on the object: Platform creation date (Set once), Modification date (Each real change), Source dates (Kept or widened) Connections: - Original creation date → Create or update: travels in STIX - Threat dates → Create or update: travels in STIX - Create or update → Platform creation date: first creation - Create or update → Modification date: every change - Create or update → Source dates: confidence decides Every entity and relationship carries four dates about the data itself. The overview of an object shows them in its **Basic information** card. | Label | Set by | Meaning | | --- | --- | --- | | **Original creation date** | The source | When the source created the data. When neither the source nor its connector gives it, the date of the import | | **Modification date**, on the overview | The source, then your platform | When the source last changed the data, as received at the import. After that, the date of each change in your platform | | **Platform creation date** | Your platform | When the object was created in this platform. It never changes | | **Modification date**, in lists, filters and dashboards | Your platform | When the object last changed in this platform | The first two travel with the data when it is shared in Structured Threat Information Expression (STIX) 2.1: a partner CERT that receives your report sees the same **Original creation date**. The last two belong to each platform: the partner's platform sets its own **Platform creation date** when it imports your report. ![The Basic information card of a report shows its Original creation date and Modification date near the top, and its Platform creation date further down.](https://filigran.io/docs/shots/752ba2f11959006ec5247801042e37487e824271d9f99d0462f91f1af65d89db.webp) > **Note: Two "Modification date" fields** > > On the overview, **Modification date** is the STIX modification date, which first holds the source's date. In lists, filters and dashboards, **Modification date** is the platform's own date of last change. They differ for an object that has not changed since its import. ## Dates of the threat {#dates-of-the-threat} Some types carry dates that describe what happened, not when the data was written: | Type | Dates | Meaning | | --- | --- | --- | | Intrusion Set, Campaign, Malware, Infrastructure, Threat Actor, Incident | **First seen**, **Last seen** | When the threat or its activity was first and last observed | | Relationship | **Start time**, **Stop time** | When the relationship was true, such as the period an intrusion set used a technique | | Sighting | **First seen**, **Last seen**, **Count** | When and how often the sighted object was seen at that place | | Report | **Publication date** | When the report was published | | Indicator | **Valid from**, **Valid until** | When the indicator is worth detecting. See [Indicator lifecycle](https://filigran.io/docs/opencti/use/analyze/indicators-lifecycle/) | | Observed Data | **First observed**, **Last observed**, **Number observed** | The period and number of the observations | Dated relationships are how you follow an actor over time: Velvet Harbor uses Spearphishing Attachment from March to September 2025, then Valid Accounts from October 2025. Each period is the **Start time** and **Stop time** of a "uses" relationship. ## How a new import moves the dates {#how-a-new-import-moves-the-dates} When an object is updated, by hand or because a source sends it again, each date follows its own rule: - **Platform creation date** never changes. - **Modification date**, both fields, moves to the date of the change, whenever something actually changes. An import that brings nothing new leaves it as it is. - **Original creation date** only moves back: when a source sends an older date, the platform keeps the older one. - **Start time** of a relationship only moves back and **Stop time** only moves forward. **First seen** and **Last seen** of a sighting, and **First observed** and **Last observed** of observed data, do the same. The period widens to cover what every source reported. When it widens, a sighting adds the incoming **Count** to its own, and observed data adds the incoming **Number observed**. - **First seen** and **Last seen** of an entity, such as an Intrusion Set or a Campaign, do not widen: a source allowed to change the entity replaces them with its own values, even later ones. An Infrastructure keeps its values and only takes the source's when it has none. *(OpenCTI 7.261030 and later)* Observed data also has a **Number seen**, which counts the times the observation was received: each import adds to it, whether the period widens or not. A source is "allowed to change" an object when its confidence is at least the object's. A source with a lower confidence only fills the dates that are empty. See [What an incoming duplicate can change](https://filigran.io/docs/opencti/concepts/deduplication/#what-an-incoming-duplicate-can-change). **Example: Two sources report when Velvet Harbor used spearphishing** Your platform holds the relationship "Velvet Harbor uses Spearphishing Attachment", with **Start time** 4 March 2025, **Stop time** 30 September 2025 and a confidence of 75. A partner feed sends the same relationship at confidence 80, with **Start time** 20 February 2025 and **Stop time** 15 October 2025. Both dates are within 30 days of yours, so the platform treats it as the same relationship. The feed's confidence is higher, so the period widens to 20 February – 15 October 2025: the relationship now covers what both sources saw. If the same feed sent a **First seen** of June 2025 for the Intrusion Set itself, Velvet Harbor's **First seen** would move from March to June 2025. Check the **History** tab of the entity before you quote its first activity. ## Dates that identify objects {#dates-that-identify-objects} Some dates take part in recognizing an object, so a different date can mean a different object: - Two reports with the same name but different **Publication date** values are two reports. - Incidents, groupings, notes, opinions and cases are identified with their **Original creation date**. - Two relationships between the same objects are the same relationship only when their start times and stop times are within 30 days of each other, by default. See [Deduplication](https://filigran.io/docs/opencti/concepts/deduplication/) for the full rules. ## In the API and in STIX bundles {#in-the-api-and-in-stix-bundles} For developers who write connectors or query the GraphQL API, the dates above map to these fields: | Label | API field | In an exported STIX 2.1 object | | --- | --- | --- | | **Original creation date** | `created` | `created` | | **Modification date**, on the overview | `modified` | `modified` | | **Platform creation date** | `created_at` | `created_at`, in the OpenCTI extension | | **Modification date**, in lists | `updated_at` | `updated_at`, in the OpenCTI extension | | **Publication date** | `published` | `published` | The OpenCTI extension is the `extension-definition--ea279b3e-5c71-4632-ac08-831c66a786ba` entry of the object's `extensions`. The API also has `refreshed_at`, which moves each time the object or one of its relationships changes, and which you can filter on. A connector should send `created`, `modified` and `published` as the source gives them, never the time of its run. These dates identify reports, incidents, notes and cases: a run date creates a new object at each run. The [filter keys reference](https://filigran.io/docs/reference/opencti/filter-keys/) lists every date you can filter on. ## What's next {#what-s-next} - [Deduplication](https://filigran.io/docs/opencti/concepts/deduplication/): how dates help recognize duplicates, and what an incoming duplicate can change. - [Search for knowledge](https://filigran.io/docs/opencti/use/explore/search/): filter on dates. - [Indicator lifecycle](https://filigran.io/docs/opencti/use/analyze/indicators-lifecycle/): how **Valid until** and the score of an indicator change over time. - [Data model](https://filigran.io/docs/opencti/concepts/data-model/): the families of objects and their attributes. --- # Deduplication > How OpenCTI recognizes an object it already has, why two objects become one or stay apart, and how confidence decides what an incoming duplicate can change. - URL: https://filigran.io/docs/opencti/concepts/deduplication/ - Products: OpenCTI 7.261119.0 - For: CTI analysts, administrators, developers - Type: Concept OpenCTI never stores the same object twice. When you, a connector or a feed create an object, the platform computes its identifiers from a few properties, looks for an object that already has one of them, and updates that object instead of creating a new one. This is called an upsert. This page explains which properties identify each type, why two objects became one or stayed apart, and what an incoming duplicate may change. With it, you can predict whether two sources will meet on the same Intrusion Set, and why a description did or did not change after an import. ## What deduplication is good for {#what-deduplication-is-good-for} | Goal | Example | | --- | --- | | Consolidate several sources on one object | Three feeds report Velvet Loader: one Malware, with the aliases, labels and references of all three | | Recognize an object under another name | A report names "Harbor Mantis", an alias of Velvet Harbor: the report links to the existing Intrusion Set | | Re-import without creating noise | A connector sends the same indicators every hour: they are updated, not duplicated | | Protect trusted knowledge | A low-confidence feed cannot overwrite the description your analysts wrote | ## How the platform recognizes an object {#how-the-platform-recognizes-an-object} **Diagram: OpenCTI computes the identifiers of each incoming object, looks for existing objects with them, then creates, updates or merges** - Incoming: New object (From a user, connector or feed) - Platform: Compute identifiers (Standard ID, aliases, hashes), Look up (Same identifiers in the base) - Result: Create (Nothing found), Update (One match, within confidence), Merge (Several matches) Connections: - New object → Compute identifiers: properties - Compute identifiers → Look up: identifiers - Look up → Create: no match - Look up → Update: one match - Look up → Merge: several matches - Merge → Update: then update Every object has several identifiers, and a match on any of them is a match: - **The standard ID**, shown as **Standard STIX ID**. The platform computes it from the ID contributing properties of the type, listed in [Properties that identify entities](#properties-that-identify-entities) and [Properties that identify observables](#properties-that-identify-observables). The same properties always give the same ID, on every OpenCTI instance. - **Other STIX IDs**, shown as **Other STIX IDs**: the IDs the object had in the sources it came from, and its former standard IDs. - **One ID per alias**, for types with aliases: the ID the object would have if the alias were its name. - **One ID per hash**, for files, artifacts and X.509 certificates. Names are compared without case and without spaces around them: "Velvet Harbor" and "velvet harbor " give the same ID. Aliases, MITRE IDs and label values are compared the same way. Then the platform acts on what it found: | Found | What happens | | --- | --- | | Nothing | The object is created | | One object | That object is updated with the incoming data, within the limits of confidence | | Several objects | Observables that share hashes are merged into one, then updated. For other types, the platform updates the object that has the computed standard ID, or the one that already carries the incoming STIX ID. When the incoming STIX ID belongs to a second object, it merges the two first, keeping the one with the higher confidence | | An object you cannot see | The creation fails with "Restricted entity already exists". When request access is set up, you can ask for access to it. See [Let users request access](https://filigran.io/docs/opencti/administer/request-access/) | An automatic merge needs the same confidence as a manual one: the user or connector must have a max confidence level at least equal to the confidence of every object merged. Otherwise, the platform does not merge and updates one of the objects. ## Why two objects did not become one {#why-two-objects-did-not-become-one} Deduplication only recognizes an identifier, never a resemblance. Two objects stay apart when no name, alias, hash or STIX ID of one matches the other: - **A spelling that differs beyond case and spaces.** "Velvet Harbour" is not "Velvet Harbor". - **An alias that is not declared.** "Velvet Harbor Group" is a different name until someone adds it as an alias of Velvet Harbor. - **A different type.** A Threat Actor Group and an Intrusion Set named Velvet Harbor are two objects, as are a group and an individual Threat Actor of the same name. - **A property that identifies the type.** Two reports with the same name but different publication dates are two reports. - **Aliases restricted by your administrator.** Only the aliases that match the rules of the type count as identifiers (see [Names and aliases](#names-and-aliases)). ![Searching intrusion sets for velvet shows three cards, Velvet Harbor, Velvet Harbor Group and Velvet Harbour, each with its own aliases under Known as.](https://filigran.io/docs/shots/3553a489d2d91d21f4cb75f3f3d2286b5885d0bb50b9f08bdb1d8fad5461a66a.webp) When you know two objects are the same, [merge them](https://filigran.io/docs/opencti/use/enrich/merge/): you need the **Merge knowledge** capability. The merged names become aliases of the kept object, so the next import of any of those spellings lands on it. **Example: Three sources, three Velvet Harbors** Example CERT reports Velvet Harbor, with the aliases FIN99 and Harbor Mantis. Saltmarsh CERT reports "Velvet Harbour", alias "Harbour Mantis"; Bluefin Labs reports "Velvet Harbor Group", alias "VHG". None of these names or aliases is an identifier of Example CERT's object, so your platform shows three Intrusion Sets. You merge the two others into Velvet Harbor: their names become aliases of Velvet Harbor, and their relationships and reports move to it. From then on, a Saltmarsh CERT report that names "Velvet Harbour" links to Velvet Harbor directly. ## Properties that identify entities {#properties-that-identify-entities} | Type | ID contributing properties | | --- | --- | | Attack Pattern, Course of Action | MITRE ID when present, otherwise name | | Campaign, Channel, Event, Infrastructure, Intrusion Set, Language, Malware, Narrative, Tool, Vulnerability | Name | | Threat Actor (group or individual) | Name and type: a group and an individual can share a name | | Incident | Name and original creation date | | Data Component, Data Source | Name | | Indicator | Pattern | | Organization, Individual, Sector, System, Security Platform | Name and identity class | | Region, Country, City | Name and location type | | Administrative Area | Name | | Position | Latitude and longitude when present, otherwise name | | Report | Name and publication date | | Grouping | Name, context and original creation date | | Note | Content and original creation date | | Opinion | Opinion and original creation date | | Observed Data | The objects it contains | | Incident response, Request for information, Request for takedown, Feedback, Task | Name and original creation date | | Malware Analysis | Product, result name and submission date | | Label | Value | | Marking definition | Definition type and definition | | Kill chain phase | Kill chain name and phase name | | External reference | URL, otherwise source name and external ID | *(OpenCTI 7.260811 and later)* The abstract of a Note also contributes to its ID, with its content and creation date. ### Names and aliases {#names-and-aliases} For Attack Patterns, Campaigns, Channels, Courses of Action, Events, Incidents, Infrastructures, Intrusion Sets, Languages, Malware, Narratives, Threat Actors, Tools, Vulnerabilities, identities (except Security Platforms) and locations, each alias is an identifier too. As a result: - Creating a Malware named like the alias of an existing Malware updates the existing one. - The names and aliases of a type form one set of unique values. Adding an alias that is already the name or an alias of another object of the same type fails with "This update will produce a duplicate". To bring the two together, [merge them](https://filigran.io/docs/opencti/use/enrich/merge/). For administrators: generic aliases, such as "APT" or a product name, can make unrelated objects meet. The `aliases_identifier_rules` key (`ALIASES_IDENTIFIER_RULES`) restricts which aliases count as identifiers, with a list of regular expressions per type in lower case, such as `intrusion-set`. Without a rule for a type, every alias counts. See [Functional customization](https://filigran.io/docs/reference/opencti/configuration/#functional-customization) in the configuration reference. ## Properties that identify observables {#properties-that-identify-observables} Observables follow the ID contributing properties of the [STIX 2.1 specification](https://docs.oasis-open.org/cti/stix/v2.1/stix-v2.1.html), extended to the observable types that OpenCTI adds. | Type | ID contributing properties | | --- | --- | | Domain name, Email address, Hostname, IPv4 address, IPv6 address, MAC address, URL, User agent, Text, Phone number, Cryptocurrency wallet, and the other single-value types | Value | | File, Artifact, X.509 certificate | The first hash found, in this order: MD5, SHA-1, SHA-256, SHA-512, SHA3-256, SHA3-512, SSDEEP, SDHASH, TLSH, LZJD. Without a hash: name for a file, URL for an artifact, serial number or subject for a certificate | | Autonomous system | Number | | Directory | Path | | Email message | Sender, subject and body | | Mutex | Name | | Network traffic | Start, end, source, destination, source and destination ports, protocols | | Process | Command line, and the process ID (PID) when a command line is given | | Software | Name (without case), CPE, SWID, vendor and version | | User account | Account type, user ID and login | | Windows registry key | Key and values | | Bank account | IBAN | | Payment card | Card number | | Media content | URL | | SSH key | SHA-256 fingerprint | | Persona | Name and type | Every hash of a file is an identifier. A file known by its MD5 and a file known by its SHA-256 become one object as soon as an import carries both hashes: the platform merges them. If they disagree on a hash of the same algorithm, it refuses the import with a "Hashes collision" error. ## How relationships are matched {#how-relationships-are-matched} A relationship is identified by its type, its source, its target, its start time and its stop time. To absorb small differences of dates between sources, the platform matches an incoming relationship with an existing one when: - the type, the source and the target are the same, and - the start time and the stop time, when the incoming relationship has them, are within 30 days of the existing ones. An incoming relationship without start and stop times matches any relationship with the same type, source and target. A relationship also matches by its STIX ID, like any object. Sightings work the same way, with their first seen and last seen dates. Relationships created by [inference rules](https://filigran.io/docs/opencti/use/enrich/inferences/) exist once per source, type and target. For administrators, three configuration keys change the matching, in [Functional customization](https://filigran.io/docs/reference/opencti/configuration/#functional-customization): | Key | Variable | Default | Effect | | --- | --- | --- | --- | | `relations_deduplication:past_days` | `RELATIONS_DEDUPLICATION__PAST_DAYS` | 30 | How many days before the incoming dates still match | | `relations_deduplication:next_days` | `RELATIONS_DEDUPLICATION__NEXT_DAYS` | 30 | How many days after the incoming dates still match | | `relations_deduplication:created_by_based` | `RELATIONS_DEDUPLICATION__CREATED_BY_BASED` | false | When true, the date window only matches relationships of the same author: two sources keep two relationships | A wider window merges more periods into one relationship; a narrower one keeps distinct periods of activity apart but multiplies relationships. ## What an incoming duplicate can change {#what-an-incoming-duplicate-can-change} When the platform updates an existing object, the [confidence levels](https://filigran.io/docs/opencti/concepts/reliability-confidence/) decide what changes. The confidence of the incoming data is its own confidence, capped by the max confidence level of the user or connector that sends it. The platform compares it with the confidence of the existing object. Observables have no confidence, so for them the incoming data always counts as equal or higher. | Data | Incoming confidence equal or higher | Incoming confidence lower | | --- | --- | --- | | Single values, such as the description | Replaced by the incoming value, if it is not empty | Filled only if empty | | Lists, such as aliases | Incoming values added | Filled only if empty | | Labels and external references | Added | Added | | Markings and other references | Added. An object keeps one marking per type, the highest: TLP:AMBER replaces TLP:GREEN, never the reverse | Filled only if empty | | Author | Replaced only if the incoming confidence is strictly higher | Filled only if empty | | Confidence | Set to the incoming confidence | Kept | | Score, validity and revocation of an indicator | Updated, see [Indicator lifecycle](https://filigran.io/docs/opencti/use/analyze/indicators-lifecycle/) | Kept | Three more rules complete the picture: - **Nothing is removed.** An upsert adds and replaces; it never empties a field or removes a value. Only a synchronizer set to **Use perfect synchronization** replaces data exactly, removals included. See [Live streams](https://filigran.io/docs/opencti/use/ingest/streams/). - **Identifiers and creators always accumulate.** Whatever the confidence, the source's STIX ID goes into **Other STIX IDs**, and the user or connector joins the **Creators**. - **Dates only widen.** When the confidence allows the change, the original creation date keeps the oldest value, a relationship keeps the earliest start time and the latest stop time, and a sighting keeps the earliest first seen and the latest last seen. See [Meaning of dates](https://filigran.io/docs/opencti/concepts/dates/#how-a-new-import-moves-the-dates), which also explains the dates that do not widen. Sharing with organizations follows its own rule: an incoming duplicate only adds organizations when the sender has the **Restrict organization access** capability and the platform runs the Enterprise Edition. **Example: A community feed meets Velvet Harbor** Example CERT's analysts rated Velvet Harbor 75 and wrote its description. A community feed, whose account has a max confidence level of 40, sends Velvet Harbor with another description, the label `hospitality`, the alias "VH Crew" and the author "Community Feed". The description, the aliases and the author stay as your analysts set them, because 40 is lower than 75. The label is added, because labels are always added. The feed's STIX ID goes into **Other STIX IDs**, and its account joins the **Creators**, so you can see that the feed also reported Velvet Harbor. ## Standard STIX ID and the source's ID {#standard-stix-id-and-the-source-s-id} This section is for developers who correlate OpenCTI data with a source or write connectors. The **Standard STIX ID** is the ID OpenCTI computes, not always the ID the source used. A TAXII feed may call an object `malware--1234…`, while OpenCTI computes another ID from its name. That is what lets two sources that know the same malware under different IDs meet on one object. The computation is a UUID version 5 over the canonical JSON of the ID contributing properties, as STIX 2.1 recommends: Velvet Harbor is always `intrusion-set--4e78bb64-59c9-51e3-b1b9-ac8133e1c8e0`. The source's ID is not lost: it goes into **Other STIX IDs**, and the platform finds the object by it on the next import. To correlate OpenCTI data with a source, look at **Other STIX IDs** and at the external references, not only at the standard ID. When you edit a property that contributes to the ID, such as a name, the platform computes a new standard ID. If another object already has it, the change fails with "This update will produce a duplicate". For observables, the platform merges the two instead. The [errors reference](https://filigran.io/docs/reference/opencti/errors/) lists these errors with the others. ## What's next {#what-s-next} - [Merge entities](https://filigran.io/docs/opencti/use/enrich/merge/): bring two objects together by hand. - [Reliability and confidence](https://filigran.io/docs/opencti/concepts/reliability-confidence/): how confidence levels are set and computed. - [Meaning of dates](https://filigran.io/docs/opencti/concepts/dates/): which dates widen on an import, and which identify objects. - [Data processing](https://filigran.io/docs/opencti/concepts/data-processing/): where deduplication happens on the way in. - [OpenCTI configuration reference](https://filigran.io/docs/reference/opencti/configuration/#functional-customization): the deduplication keys. --- # Nested objects > Why the author, markings, labels and external references of an OpenCTI object are shared objects of their own, what that changes for your analysis, and how STIX bundles convert. - URL: https://filigran.io/docs/opencti/concepts/nested-objects/ - Products: OpenCTI 7.261119.0 - For: CTI analysts, developers - Type: Concept In OpenCTI, the author, the markings, the labels and the external references of an object are objects of their own, linked to it. Example CERT is one Organization that authors hundreds of reports, and `hotel-sector` is one label carried by every object of the sector. That is why you can open a label or an author and list everything that carries it, why renaming a label renames it everywhere, and why an object never holds two TLP markings. This page explains that model and its consequences for your work; developers find at the end how it maps to Structured Threat Information Expression (STIX) 2.1 bundles. ## What it is good for {#what-it-is-good-for} | Goal | Example | | --- | --- | | Pivot on context | From the label `hotel-sector`, list every report, malware and indicator of the sector | | Follow a source | From the Organization Example CERT, list everything it authored, and filter any list on **Author** | | Keep one copy of shared context | One TLP:AMBER marking and one Example CERT, referred to by thousands of objects | | Count on context | Chart the indicators of each author, or the reports of each label, on a dashboard | | Exchange plain STIX | Import and export standard STIX 2.1 without thinking about the conversion | ## How OpenCTI stores the context of an object {#how-opencti-stores-the-context-of-an-object} **Diagram: Each nested reference of a STIX object becomes a link to a separate, shared object in OpenCTI** - STIX object: Intrusion Set (Velvet Harbor) - OpenCTI graph: Author (Example CERT), Marking (TLP:AMBER), Label (hotel-sector), External reference (An advisory URL) - Shared with: Other objects (Reports, malware, indicators) Connections: - Intrusion Set → Author: created_by_ref - Intrusion Set → Marking: object_marking_refs - Intrusion Set → Label: labels - Intrusion Set → External reference: external_references - Label → Other objects: same label object - Author → Other objects: same author In a STIX bundle, an object carries part of its context inside itself: a reference to its author, references to its markings, its labels, its external references. OpenCTI turns each of them into a separate object and a link to it. You see these links as fields of the object, in its **Basic information** card and in its **External references** card: | Context | Object in OpenCTI | Shown on the object as | | --- | --- | --- | | Author | An identity, such as an Organization, an Individual or a System | **Author** | | Markings | A marking definition, such as TLP:AMBER | **Marking** | | Labels | A label | **Labels** | | External references | An external reference: a source name, a URL, an external ID | **External references** | | Kill chain phases, of attack patterns, malware, tools, indicators, infrastructures and relationships | A kill chain phase | **Kill chain phases** | | Content of a report or a case | Any object | The content tabs of the container, see [Containers](https://filigran.io/docs/opencti/concepts/containers/) | | Organizations an object is shared with | An Organization | **Organizations sharing** | Observables have their own links, stored the same way: the address a domain name resolves to, the source and destination of network traffic, the parent directory of a file, and others. ![The Basic information card of Velvet Harbor shows its marking TLP:AMBER, its author Example CERT and its labels hotel-sector and phishing, each a link to an object of its own.](https://filigran.io/docs/shots/6ec935eb31740eda67e3d98b6872ea3873a688eb185a3d03ed01714ceae873c1.webp) ## What it changes for your work {#what-it-changes-for-your-work} 1. **Context objects are shared.** A label or an external reference exists once. Changing it, for example correcting the URL of an Example CERT advisory, changes it on every object that refers to it. 2. **Context is deduplicated like any object.** Two imports of the same external reference, with the same URL, give one object; two feeds that send the label `Hotel-Sector` and `hotel-sector` give one label. See [Deduplication](https://filigran.io/docs/opencti/concepts/deduplication/). 3. **An object holds one marking per type.** When an update adds TLP:AMBER to an object marked TLP:GREEN, the object becomes TLP:AMBER; a later TLP:GREEN does not lower it. Markings are what restrict access, see [Markings](https://filigran.io/docs/opencti/administer/markings/). 4. **An object has one author.** An incoming duplicate replaces the author only with a strictly higher confidence, so the author of a report stays stable when several feeds relay it. See [What an incoming duplicate can change](https://filigran.io/docs/opencti/concepts/deduplication/#what-an-incoming-duplicate-can-change). 5. **These links are not knowledge.** They do not appear among the relationships of the **Knowledge** tab. To say that Velvet Harbor targets the hospitality sector, create a "targets" relationship to the Sector: a label `hotel-sector` helps you find objects, but states nothing about the threat. **Example: Find everything Example CERT said about the hotel sector** You want every object Example CERT published on the hospitality sector, to brief a new member hotel chain. In **Data > Entities**, filter on **Author** is Example CERT and **Label** is `hotel-sector`: the reports and the Intrusion Set Velvet Harbor come up together, whatever their type, because they all link to the same Example CERT and the same label. If Example CERT renames its advisory site, one change to each external reference updates every object that cites it. ## For developers: nested references in STIX bundles {#for-developers-nested-references-in-stix-bundles} STIX holds this context in two forms. **Nested references** point to other objects by their identifier, in properties ending in `_ref` or `_refs`. **Nested objects** are embedded whole, such as an external reference or a kill chain phase. Labels are plain strings. An incoming Intrusion Set: ```json { "type": "intrusion-set", "spec_version": "2.1", "id": "intrusion-set--4e78bb64-59c9-51e3-b1b9-ac8133e1c8e0", "created": "2025-10-22T09:00:00.000Z", "modified": "2025-10-22T09:00:00.000Z", "name": "Velvet Harbor", "aliases": ["FIN99", "Harbor Mantis"], "created_by_ref": "identity--ac6f7b3a-7aa5-558d-a1bd-4a4f52840f9e", "object_marking_refs": ["marking-definition--f88d31f6-486f-44da-b317-01333bde0b82"], "labels": ["hotel-sector", "phishing"], "external_references": [ {"source_name": "Example CERT", "url": "https://cert.example.com/advisories/velvet-harbor"} ] } ``` `created_by_ref` points to the Organization Example CERT and `object_marking_refs` to TLP:AMBER. The platform stores each reference as a reference relationship, with these types and these input fields in the GraphQL API: | In a bundle | Relationship type | GraphQL input field | | --- | --- | --- | | `created_by_ref` | `created-by` | `createdBy` | | `object_marking_refs` | `object-marking` | `objectMarking` | | `labels` | `object-label` | `objectLabel` | | `external_references` | `external-reference` | `externalReferences` | | `kill_chain_phases` | `kill-chain-phase` | `killChainPhases` | | `object_refs` | `object` | `objects` | | `granted_refs`, in the OpenCTI extension | `granted` | `objectOrganization` | **On import**, the platform resolves each reference to an existing object or to an object of the same bundle. A relationship whose source or target is missing waits and is sent again; another missing reference delays the object for a few attempts, then the platform writes it without that reference. See [The path of a bundle](https://filigran.io/docs/opencti/concepts/data-processing/#the-path-of-an-object). **On export**, the platform writes the references back as standard STIX properties. What STIX 2.1 does not allow on a cyber observable, such as an author, labels or a score, goes into the OpenCTI extensions of the object. The OpenCTI extension `extension-definition--ea279b3e-5c71-4632-ac08-831c66a786ba` also carries the internal ID and the platform dates. Velvet Harbor's command and control address, trimmed: ```json { "type": "ipv4-addr", "spec_version": "2.1", "id": "ipv4-addr--570130c0-7daf-5d1e-992f-58b53b447312", "value": "203.0.113.10", "extensions": { "extension-definition--ea279b3e-5c71-4632-ac08-831c66a786ba": { "extension_type": "property-extension", "id": "8a3d108f-908c-4833-8ff4-4d6fc996ce39", "type": "IPv4-Addr", "created_at": "2026-01-12T09:15:00.000Z", "updated_at": "2026-01-12T09:15:00.000Z" }, "extension-definition--f93e2c80-4231-4f9a-af8b-95c9bd566a82": { "extension_type": "property-extension", "labels": ["c2"], "description": "Command and control server of Velvet Harbor.", "score": 80, "created_by_ref": "identity--ac6f7b3a-7aa5-558d-a1bd-4a4f52840f9e" } } } ``` A reference that holds one value, such as `created-by`, accepts one relationship per object. *(OpenCTI 7.261030 and later)* Adding a `created-by` relationship through `relationAdd` on an object that already has an author replaces the author. ## What's next {#what-s-next} - [Containers](https://filigran.io/docs/opencti/concepts/containers/): how `object_refs` turns a report into a container of knowledge. - [Deduplication](https://filigran.io/docs/opencti/concepts/deduplication/): how references are matched and what an incoming duplicate may add. - [Markings](https://filigran.io/docs/opencti/administer/markings/): how marking definitions restrict access. - [Export](https://filigran.io/docs/opencti/use/share/export/): export objects and lists as STIX 2.1. - [Data model](https://filigran.io/docs/opencti/concepts/data-model/): the families of objects and relationships. --- # Reliability and confidence > How OpenCTI rates the reliability of sources and the confidence of information, and how max confidence levels decide who can create and change knowledge. - URL: https://filigran.io/docs/opencti/concepts/reliability-confidence/ - Products: OpenCTI 7.261119.0 - For: CTI analysts, administrators - Type: Concept OpenCTI rates knowledge on two axes. **Reliability** says how much you trust a source, such as Example CERT or a commercial vendor. **Confidence** says how credible a piece of information is, whoever said it. Confidence also does a third job: every user, connector and feed has a **Max Confidence Level**, and the platform compares it with the confidence of an object to decide who may change it. This page explains how to read an assessment such as B2, what your confidence rating protects, and why a feed could not overwrite your analysis, or why you could not edit an object. ## What it is good for {#what-it-is-good-for} | Goal | Example | | --- | --- | | Assess a piece of knowledge at a glance | A report from Example CERT, a usually reliable source (B), with information rated probably true (2): B2 | | Work only with trusted sources | Filter a list of indicators on the reliability of their author, to leave out an unreliable scanner feed | | Protect what your analysts validated | A feed with a max confidence level of 30 cannot overwrite an Indicator your team rated 75 | | Rank connectors and feeds by trust | Example CERT's feed writes at 80, an unreliable scanner feed at 30 | ## Reliability of a source {#reliability-of-a-source} Reliability measures the trust you have in a source, based on its history and its means. You usually set it once per organization or person, because it takes the whole history with that source to judge it. You set reliability on the objects that can be authors: Organizations, Individuals and Systems. You can also set it on a Report, to rate the original author when the report reached you through a provider, and on an Indicator. The overview of an object shows its **Reliability**. When the object has none, it shows the reliability of its author, marked "of author". To work only with reliable sources, filter lists on **Reliability (self or author)**, which takes the object's own reliability or else its author's. Reliability is an open vocabulary, `reliability_ov`, that you change in **Settings > Taxonomies > Vocabularies**. By default, it holds the reliability scale of the [Admiralty code](https://en.wikipedia.org/wiki/Admiralty_code), from "A - Completely reliable" to "F - Reliability cannot be judged", as the [vocabularies reference](https://filigran.io/docs/reference/opencti/vocabularies/#reliability-ov) lists them. See [Manage labels, vocabularies and templates](https://filigran.io/docs/opencti/configure/taxonomies/). ## Confidence of information {#confidence-of-information} Even a reliable source can be wrong. Confidence rates the credibility of the information itself, from what is known about the subject and how well other sources corroborate it. Analysts who know the subject usually set it. > **Note: Why confidence, and not credibility** > > Intelligence doctrine separates the credibility of information from the confidence of an assessment. Most teams use a single confidence level, so OpenCTI merges credibility into confidence. Teams that want both axes use confidence with reliability. Every entity and every relationship has a **Confidence level**: a number from 0 to 100. Observables, such as IP addresses and domain names, have none: they carry a score instead, and any user who can update knowledge can change them. A scale gives meaning to the numbers, with ticks and labels. You set the scale per entity type in **Settings > Customization > Entity types**, on the confidence attribute, and you can start from a template with **Selected scale template**: | Template | Levels | | --- | --- | | Admiralty, the default | The credibility scale of the Admiralty code: "6 - Truth Cannot be judged" at 0, "5 - Improbable" from 1, "4 - Doubtful" from 20, "3 - Possibly True" from 40, "2 - Probably True" from 60, "1 - Confirmed by other sources" from 80 | | Objective | How the information was obtained rather than how much you believe it: "Cannot be judged" at 0, "Told" from 1 (reported to the source, not checked), "Induced" from 25 (inferred from similar information), "Deduced" from 51 (a logical conclusion), "Witnessed" from 75 (seen by the source itself) | | Standard | The historical levels of OpenCTI: "Low" from 1, "Med" from 30, "High" from 70 | You can change any template into a custom scale; the number stored on the object does not change, only its label. With the Admiralty code on both reliability and confidence, the overview of an object reads like the NATO notation: A1, B2, C3. ![The Basic information card of a report shows the author Example CERT, its reliability B - Usually reliable marked of author, and a confidence level of 2 - Probably True.](https://filigran.io/docs/shots/54af31ba1ae132d0f30aba3aefe0969fefedbb613404878acd63c729e106fb46.webp) **Example: Read B2 on a Velvet Harbor report** Your organization rates Example CERT "B - Usually reliable". Its report "Velvet Harbor targets hotel booking systems" reaches your team, and your analyst who follows the hospitality sector rates it 60, "2 - Probably True". A SOC analyst who opens the report reads B2 in **Basic information**: a usually reliable source with probably true information, so the indicators in it deserve to be blocked. A national CSIRT that uses the Objective scale instead rates what it saw during an incident "Witnessed", what it concluded from its investigation "Deduced" or "Induced", and what it relays without checking "Told". ## What your confidence level controls {#what-your-confidence-level-controls} Users do not all have the same expertise, and connectors, feeds and synchronizers each write as a user. The **Max Confidence Level** of a user says how far you trust what it writes; when an override exists for the entity type of an object, the override applies instead. It works as a ceiling: - **On creation**, the confidence of a new object is the confidence it comes with, capped at the creator's max level. An object created without a confidence gets the creator's max level. - **On update and deletion**, a user can change or delete an object only if its confidence is not above the user's max level. Otherwise the change fails with "User effective max confidence level is insufficient to update this element". Adding labels and external references is the exception: any user who can update knowledge can add them. - **On a change of confidence**, a user cannot set a confidence above their own max level: the value is capped. An object that had no confidence gets the user's max level at its first change. - **On a merge**, the user needs a max level at least equal to the confidence of every entity merged. - **On an incoming duplicate**, the confidence decides which values are replaced and which are only filled when empty. See [What an incoming duplicate can change](https://filigran.io/docs/opencti/concepts/deduplication/#what-an-incoming-duplicate-can-change). A user without any max confidence level cannot create or update knowledge: the platform answers "User has no effective max confidence level and cannot create this element". For you as an analyst, this has two consequences. The confidence you give an object protects it: a feed whose level is below it can add labels and fill empty fields, but cannot rewrite your description or your aliases. And when you cannot edit an object, its confidence is above your level: ask a colleague with a higher level, or your administrator. ## How the effective level is computed {#how-the-effective-level-is-computed} This section is for administrators, who set the levels. **Diagram: A user's effective max confidence level comes from their groups, unless the user has their own, and it caps what they create and change** - Configuration: Groups (Highest group level wins), User (Optional level and overrides) - Result: Effective level (0 to 100, per entity type) - Applied to: Creation (Confidence capped), Update and delete (Only up to that level) Connections: - Groups → Effective level: max of groups - User → Effective level: replaces groups - Effective level → Creation: caps - Effective level → Update and delete: allows You set a **Max Confidence Level** on groups and, optionally, on users, in the **Confidences** tab of their edition panel. Each can also have overrides, with **Add a specific max confidence level for an entity type**. The user's effective level is computed this way: 1. The effective max level is the highest max level among the user's groups. 2. The overrides of all groups add up. When two groups override the same entity type, the higher value wins. 3. If the user has their own max level, turned on with **Enable user Max Confidence Level**, it replaces everything that comes from the groups, overrides included. 4. Each override set on the user replaces the value that comes from the groups for that entity type. 5. A user with the **Bypass all capabilities** capability always has an effective level of 100, without overrides. A group's max level is required: a group without one shows a warning, because its members might not be able to create data. The details view of a user shows the effective **Max Confidence Level**, and its tooltip says which group it is inherited from. See [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/#confidence-levels) and [Manage users](https://filigran.io/docs/opencti/administer/users/). The level of a connector is the level of the account it writes as. Give each source a level that matches your trust in it: a feed set too high overwrites your analysts' work; a feed set too low cannot correct its own earlier data once an analyst has raised its confidence. See [Connectors](https://filigran.io/docs/opencti/use/ingest/connectors/). **Example: Rank the sources of a hotel group's CTI team** The analysts of Grand Meridian Hotels write at 75, through their group CTI analysts. The feed of Example CERT, rated "B - Usually reliable", writes as a service account at 80. The Example Scanner Feed, rated "E - Unreliable", writes at 30. When the scanner feed sends the Indicator of 203.0.113.10, which your analysts rated 75, it cannot change their description, but it can add its label and fill a field they left empty. When Example CERT's feed sends it at 80, its description replaces theirs, and 80 becomes the confidence of the Indicator. ## What's next {#what-s-next} - [Deduplication](https://filigran.io/docs/opencti/concepts/deduplication/): how confidence decides what an incoming duplicate can change. - [Organize users in groups](https://filigran.io/docs/opencti/administer/groups/#confidence-levels): set max confidence levels and overrides. - [Entity types](https://filigran.io/docs/opencti/configure/entities/): customize the confidence scale of a type. - [Manage labels, vocabularies and templates](https://filigran.io/docs/opencti/configure/taxonomies/): change the reliability vocabulary. - [Connectors](https://filigran.io/docs/opencti/use/ingest/connectors/): the account and confidence level a connector writes with. --- # Audit who did what > What OpenCTI activity records about who did what, where and when, the difference between knowledge history, audit and extended activity, and where each one goes. - URL: https://filigran.io/docs/opencti/configure/activity/ - Products: OpenCTI 7.261119.0 - Edition: requires an Enterprise Edition license - For: administrators, auditors, CISOs and executives - Type: Concept Activity answers "who did what, where and when" in OpenCTI. It records the administration and security actions of every user, and, for the users you choose, what they read, download, export or search. Security, audit and compliance teams use it to detect misuse and to prove how the platform is run. You find it in **Settings > Activity**. It requires an Enterprise Edition license, and the **Access security activity** capability to see the events, choose who is listened to and set up alerts. ## What it is good for {#what-it-is-good-for} | Goal | Example | | --- | --- | | Investigate an incident | List everything a user did in the hour before their account was disabled | | Detect misuse | Be alerted when someone fails to log in, or tries an action they are not allowed to | | Watch sensitive users | Record what contractors read and export, not only what they change | | Feed your SIEM | Ship the audit log of the platform to your log pipeline | | Prove compliance | Export the changes made to roles, groups and authentication over a quarter | ## Three kinds of records {#three-kinds-of-records} | Kind | What it covers | Recorded for | Where you see it | | --- | --- | --- | --- | | Knowledge history | Creation, update and deletion of STIX knowledge: reports, indicators, relationships | Everyone, without Enterprise Edition | The **History** of each entity, and the events screen with **Include knowledge** | | Audit | Administration and security actions: logins, users, groups, roles, settings, connectors, feeds, customization | Everyone, as soon as Enterprise Edition is on. It cannot be turned off | The events screen and the audit log | | Extended activity | Reads of knowledge and dashboards, file uploads and downloads, imports, exports, enrichments, global searches | Only the users, groups and organizations you [listen to](https://filigran.io/docs/opencti/configure/activity/configuration/) | The events screen | Extended activity is off by default because it records a lot: every read is an event. Turn it on for the people who need it. ## How it works {#how-it-works} Every action a user takes through the interface or the API is handed to the activity listener. The listener drops extended actions of users nobody listens to, writes administration actions to the audit log, and passes everything else to the activity manager. The manager stores the events, shown in **Settings > Activity > Events**, and checks them against your activity triggers. **Diagram: Every user action goes to the activity listener, which writes the audit log and feeds the events screen and the triggers** - User actions: Administration actions (Always recorded), Reads, files, commands (Listened users only) - OpenCTI: Activity listener (Enterprise Edition), Activity manager (Indexes and alerts) - Results: Audit log (File and console), Events screen (History index), Activity triggers (Notify recipients) Connections: - Administration actions → Activity listener: event - Reads, files, commands → Activity listener: event - Activity listener → Audit log: administration only - Activity listener → Activity manager: activity stream - Activity manager → Events screen: index - Activity manager → Activity triggers: match filters Rules that surprise people: - **Nothing is recorded before you listen.** Extended activity starts when you add a user, a group or an organization; past actions are not recovered. - **Reads are counted once an hour.** A user who opens the same report ten times in an hour leaves one read event. - **The audit log holds administration events only**, by default. The events screen holds both kinds. To ship extended events to the log as well, see [Choose what activity is recorded](https://filigran.io/docs/opencti/configure/activity/configuration/#send-activity-to-your-log-pipeline). - **Demo mode hides names.** On a platform in demo mode, the names in the activity are redacted. [Activity events](https://filigran.io/docs/opencti/configure/activity/events/) explains every event type and scope, and the [audit event reference](https://filigran.io/docs/reference/opencti/audit-events/) lists each event the platform publishes. ## Activity and the other tools {#activity-and-the-other-tools} | You want to | Use | | --- | --- | | See what changed on one entity | Its **History** tab, available to every user who can see the entity | | See what a user did across the platform | The events screen, filtered on that user, or the **History** tab of the user in **Settings > Security > Users** | | Be told about an administration or security event | An [activity trigger](https://filigran.io/docs/opencti/configure/activity/triggers/) | | Be told about new or changed knowledge | A [knowledge trigger](https://filigran.io/docs/opencti/use/automate/notifications/) | | Chart activity over time | A dashboard widget with the **Activity & history** perspective: see [widgets](https://filigran.io/docs/opencti/use/dashboards/widgets/) | ## What's next {#what-s-next} - [Choose what activity is recorded](https://filigran.io/docs/opencti/configure/activity/configuration/) to choose who is listened to and where the audit log goes. - [Activity events](https://filigran.io/docs/opencti/configure/activity/events/) to read and export the events. - [Get alerted on security events](https://filigran.io/docs/opencti/configure/activity/triggers/) to be notified of the events that matter. --- # Choose what activity is recorded > Choose the users, groups and organizations whose reads, files and exports OpenCTI records, and send the audit log to files, the console or your log pipeline. - URL: https://filigran.io/docs/opencti/configure/activity/configuration/ - Products: OpenCTI 7.261119.0 - Edition: requires an Enterprise Edition license - For: administrators, platform engineers - Type: How-to guide OpenCTI records the administration and security actions of every user without any setting. This page shows how to add extended activity for chosen users, groups or organizations, and how to route the audit log to your log pipeline. Read [Audit who did what](https://filigran.io/docs/opencti/configure/activity/) first for what each kind of record covers. ## Before you start {#before-you-start} - Your platform has an Enterprise Edition license. - Your role has the **Access security activity** capability. - To change where the audit log goes, you can edit the platform configuration and restart the platform. ## Listen to users, groups or organizations {#listen-to-users-groups-or-organizations} Extended activity records what people read, upload, download, import, export and search. It costs storage and indexing time, so listen to the people who need it rather than to everyone. 1. Open **Settings > Activity > Configuration**. 2. In **Extended activity logging**, choose a user in **Add a user**, a group in **Add a group**, or an organization in **Add an organization**. It is added to the list below at once. 3. Repeat for everyone to listen to. A group or an organization covers all its members. ![The Extended activity logging card with the Add a user, Add a group and Add an organization fields, above a list holding one group and one user.](https://filigran.io/docs/shots/491072086ffb4a74e8eb88d63ed763958a29c692e5fccb8cb28882d934124b68.webp) Recording starts right away; actions taken before are not recovered. To stop listening, click the delete icon on the line of the user, group or organization. ## Check that it works {#check-that-it-works} Log in as a listened user, open a report and download one of its files. In **Settings > Activity > Events**, filter on that user: a `read` event and a `file` event with the scope `download` appear. See [Activity events](https://filigran.io/docs/opencti/configure/activity/events/). ## Send activity to your log pipeline {#send-activity-to-your-log-pipeline} Besides the events screen, OpenCTI writes audit events as JSON lines to a daily `audit.log` file and to the console, where a container log collector picks them up. Set these keys in the platform configuration, or as environment variables, then restart the platform: | Key (environment variable) | Default | Use it to | | --- | --- | --- | | `app:audit_logs:logs_files` (`APP__AUDIT_LOGS__LOGS_FILES`) | `true` | Write the `audit.log` file, one per day | | `app:audit_logs:logs_directory` (`APP__AUDIT_LOGS__LOGS_DIRECTORY`) | `./logs` | Choose the folder of the file. In a container, mount a volume there, or the files are lost when the container is replaced | | `app:audit_logs:logs_max_files` (`APP__AUDIT_LOGS__LOGS_MAX_FILES`) | `7` | Choose how many daily files are kept. Older files are deleted | | `app:audit_logs:logs_console` (`APP__AUDIT_LOGS__LOGS_CONSOLE`) | `true` | Write the events to the console | | `app:audit_logs:logs_in_transports` (`APP__AUDIT_LOGS__LOGS_IN_TRANSPORTS`) | `["administration"]` | Add `extended` to also write extended events to the file and the console | | `app:audit_logs:trace_request_headers` (`APP__AUDIT_LOGS__TRACE_REQUEST_HEADERS`) | `["user-agent", "x-forwarded-for"]` | Choose the HTTP headers recorded with each event | Turning off both `logs_files` and `logs_console` stops the audit log, not the activity: the events screen and the triggers keep working. **Example: Log the work of external contractors in detail** Example CERT lets the contractors of its partner Harbor Security work on its platform, and its security team must keep a trace of everything they read and download, in its log pipeline as well as in OpenCTI. 1. In **Settings > Activity > Configuration**, choose the Harbor contractors group in **Add a group**. Every current and future member of the group is listened to, such as Sam Reyes. 2. Add the analysts of the team who handle sensitive cases one by one in **Add a user**, rather than their whole group. 3. Write the extended events to the console and to the `audit.log` file too, keep 30 daily files on a mounted volume, and record the client address the reverse proxy sets, then restart the platform. With Docker Compose: ```yaml services: opencti: environment: APP__AUDIT_LOGS__LOGS_IN_TRANSPORTS: '["administration","extended"]' APP__AUDIT_LOGS__LOGS_DIRECTORY: /opt/opencti/audit APP__AUDIT_LOGS__LOGS_MAX_FILES: 30 APP__AUDIT_LOGS__TRACE_REQUEST_HEADERS: '["user-agent","x-forwarded-for","x-real-ip"]' volumes: - opencti-audit:/opt/opencti/audit volumes: opencti-audit: ``` When Sam Reyes downloads the PDF of the report "Night-time exports from a hotel booking platform", the events screen shows a `file` event with the scope `download`, and the same event reaches the log collector as a JSON line. Analysts outside the listened group and users leave only their administration and security events, which keeps the volume low. The [configuration reference](https://filigran.io/docs/reference/opencti/configuration/) lists these keys with the rest. The format of a log line is in [Activity events](https://filigran.io/docs/opencti/configure/activity/events/#audit-log-format). ## What's next {#what-s-next} - [Get alerted on security events](https://filigran.io/docs/opencti/configure/activity/triggers/) to be notified of the events that matter. - [Activity events](https://filigran.io/docs/opencti/configure/activity/events/) for every event type and scope. - The [audit event reference](https://filigran.io/docs/reference/opencti/audit-events/), which marks each event as audit or extended. --- # Activity events > Every activity event OpenCTI records, by type and scope, which ones are audit and which are extended, and how to read, filter and export them. - URL: https://filigran.io/docs/opencti/configure/activity/events/ - Products: OpenCTI 7.261119.0 - Edition: requires an Enterprise Edition license - For: administrators, auditors, SOC managers - Type: Reference This page explains which events the OpenCTI activity records and when, and the screen where you read them. The [audit event reference](https://filigran.io/docs/reference/opencti/audit-events/) lists every event the platform publishes, with the message it writes and whether it is audit or extended. Each event has a type, a scope that refines it, an access (audit or extended) and a status (success or error). Use the types and scopes to filter the events screen and to write [activity triggers](https://filigran.io/docs/opencti/configure/activity/triggers/). For the difference between audit and extended activity, read [Audit who did what](https://filigran.io/docs/opencti/configure/activity/). ## The events screen {#the-events-screen} Open **Settings > Activity > Events**. You need an Enterprise Edition license and the **Access security activity** capability. Dashboard widgets with the **Activity & history** perspective open the same list, at `/dashboard/audits`. ![The Events screen of Settings, Activity: a list of events with their timestamp, user, event type, event scope and message, under the filter bar and the Include knowledge checkbox.](https://filigran.io/docs/shots/6d10b814305658c4279f36b78a13773029663d447b5fd38cd6ae22984f34737b.webp) - Each line gives the **Timestamp**, the **User**, the **Event type**, the **Event scope** and a **Message** such as ``creates user `jdoe@example.com` ``. - Click a line to open **Activity raw detail**: the message of the event, the fields it changed with their old and new values, and the **Raw data**. When the event concerns an element that still has a page, **Instance context** gives a **View the element** link to it. - Search the messages, and add filters, for example on the event type, the event scope or the user. - Tick **Include knowledge** to add the [knowledge history](https://filigran.io/docs/opencti/configure/activity/#three-kinds-of-records) to the list. The checkbox shows when you also have the **Access knowledge** capability. - Export the list as CSV with the export button. The file holds the 5,000 most recent events that match your filters, with one column per field: identifiers, type, scope, status, timestamp, user, element concerned, message and changes. ## Event types and scopes {#event-types-and-scopes} | Type | Scopes | Access | Recorded when | | --- | --- | --- | --- | | `authentication` | `login`, `logout`, `forgot` | Audit | A user logs in, fails to log in (status error), is refused because of their IP address, logs out, or goes through a password reset | | `read` | `read` | Extended | A user opens an entity, a relationship, a dashboard or an investigation. Counted once an hour per user and element | | `read` | `unauthorized` | Audit | A user tries to read something their capabilities do not allow | | `mutation` | `create`, `update`, `delete` | Audit, or extended for personal objects | A user creates, changes or deletes a platform object: [Audit events](#audit-events) and [Extended events](#extended-events) say which | | `mutation` | `unauthorized` | Audit | A user tries a change their capabilities do not allow | | `file` | `read`, `download` | Extended | A user opens or downloads a file | | `file` | `create`, `delete` | Extended | A user uploads a file, a new version of a file, or an analyst workbench, or deletes one | | `file` | `disseminate` | Audit | A user sends files to a dissemination list | | `command` | `search` | Extended | A user runs a global search | | `command` | `enrich`, `analyze` | Extended | A user asks a connector to enrich or analyze an entity | | `command` | `import`, `export` | Extended | A user asks for a file import or an export | | `command` | `send` | Audit | An administrator sends an [email template](https://filigran.io/docs/opencti/configure/email-templates/) to a user | ## Audit events {#audit-events} Audit events are recorded for every user as soon as Enterprise Edition is on, and written to the audit log. They cover the creation, update and deletion of the objects that shape the platform: users, groups, roles and authentication settings; platform parameters; customization such as entity settings, custom fields, rules, retention and decay rules; connectors and ingestion feeds; data sharing feeds and streams; and collaboration objects shared with others. For example, creating a user writes ``creates user `jdoe@example.com` `` in the audit log. The [audit event reference](https://filigran.io/docs/reference/opencti/audit-events/) lists each of these events by area, with its type, scope and message, so that you can pick the right ones for a filter or a trigger. ## Extended events {#extended-events} Extended events are recorded only for the users, groups and organizations you [listen to](https://filigran.io/docs/opencti/configure/activity/configuration/). Besides the reads, files and commands of the table above, they cover part of the user's own work: the background tasks they launch or delete, the drafts they create or delete, the triggers they create for themselves, the public dashboards they publish or remove, and the dashboards, investigations, playbooks and JSON mappers they duplicate or import. The [audit event reference](https://filigran.io/docs/reference/opencti/audit-events/) marks each of them as extended. Other personal actions are audit events, recorded for everyone: creating, changing or deleting a dashboard or an investigation, a trigger made for someone else, and the changes users make to their own profile. You do not need to listen to a user to see who deleted a dashboard. ## Audit log format {#audit-log-format} Each audit event is also written as one JSON line to the audit log file and to the console: ```json { "category": "AUDIT", "level": "info", "message": "creates user `jdoe@example.com`", "auth": { "email": "admin@example.com", "ip": "10.0.0.12", "user_id": "…", "socket": "query" }, "resource": { "version": "…", "type": "mutation", "event_scope": "create", "event_access": "administration", "data": { "id": "…", "entity_type": "User", "input": {} } }, "timestamp": "2026-01-15T10:00:00.000Z", "version": "7.261030.1", "source": "backend" } ``` `level` is `error` for failed actions. `auth` carries the user and the origin of the request, including the HTTP headers listed in `app:audit_logs:trace_request_headers`. Values of the fields listed in `app:app_logs:logs_redacted_inputs`, such as passwords, are replaced by `*** Redacted ***`. To choose where the log goes, see [Choose what activity is recorded](https://filigran.io/docs/opencti/configure/activity/configuration/#send-activity-to-your-log-pipeline). ## Watch the platform from your SIEM {#watch-the-platform-from-your-siem} Once the audit log reaches your SIEM, the platform is one more system the SOC monitors. Match on these fields of the JSON line: | To detect | Match | | --- | --- | | Failed logins, such as password guessing on one account | `resource.type` is `authentication`, `resource.event_scope` is `login` and `level` is `error`. The message names the account, as in ``detects `login failure` for `jdoe@example.com` `` | | A user trying to go beyond their role | `resource.event_scope` is `unauthorized` | | Changes to who can do what | `resource.type` is `mutation` and `resource.data.entity_type` is `User`, `Group` or `Role` | | Where a request came from | `auth.ip`, and the headers listed in `app:audit_logs:trace_request_headers` | The log carries extended events, such as reads and downloads, only when `app:audit_logs:logs_in_transports` includes `extended`. Inside OpenCTI, [activity triggers](https://filigran.io/docs/opencti/configure/activity/triggers/) catch the same events without a SIEM. ## What's next {#what-s-next} - [Get alerted on security events](https://filigran.io/docs/opencti/configure/activity/triggers/) to be notified of some of these events. - [Choose what activity is recorded](https://filigran.io/docs/opencti/configure/activity/configuration/) to listen to more users. - The [audit event reference](https://filigran.io/docs/reference/opencti/audit-events/) for the full list of events. --- # Get alerted on security events > Get notified of administration and security events in OpenCTI, such as failed logins or unauthorized actions, as soon as they happen or in a regular digest. - URL: https://filigran.io/docs/opencti/configure/activity/triggers/ - Products: OpenCTI 7.261119.0 - Edition: requires an Enterprise Edition license - For: administrators - Type: How-to guide An activity trigger watches the [activity events](https://filigran.io/docs/opencti/configure/activity/events/) and notifies chosen recipients when one matches its filters, so you do not have to watch the events screen. This page shows how to create a live trigger, which notifies at once, and a digest, which groups the events of live triggers over a period. To be notified about knowledge rather than activity, use [knowledge triggers](https://filigran.io/docs/opencti/use/automate/notifications/). ## Before you start {#before-you-start} - Your platform has an Enterprise Edition license. - Your role has the **Access security activity** capability. - The events you want to watch are recorded: extended events, such as reads and downloads, need the users to be [listened to](https://filigran.io/docs/opencti/configure/activity/configuration/). - To notify by email, the platform can send emails: see [Send emails from OpenCTI](https://filigran.io/docs/opencti/administer/smtp/). ## Create a live trigger {#create-a-live-trigger} 1. Open **Settings > Activity > Alerting** and click **Create Live trigger**. The **Create a live activity trigger** panel opens. 2. Enter a **Name** and a **Description** that say what the trigger watches. 3. In **Notifiers**, choose how recipients are told: **User interface** for the notification center, **Default mailer** for an email, or a [notifier](https://filigran.io/docs/opencti/configure/notifiers/) you created. Leave it empty for a trigger that only feeds a [digest](#create-a-digest): it then tells nobody on its own. 4. In **Recipients**, add the users, groups or organizations to notify. At least one is required. 5. Add filters to keep only the events that matter. Combine them as in any OpenCTI filter. | Filter | Matches | Example | | --- | --- | --- | | **Event type** | The type of event | `authentication` | | **Event scope** | The scope within the type | `login` | | **User** | The user who acted | A contractor account | | **Group** | A group of the user who acted | `Administrators` | | **Organization** | An organization of the user who acted | A partner organization | 6. Click **Create**. ![The Create a live activity trigger panel with the Name and Description fields, the notifiers and recipients fields, and the filter bar limited to activity filters.](https://filigran.io/docs/shots/863cea0465380bb12f328e1284e8c6bb21d788418daf2a92fab50bb8b7a38ef1.webp) For example, to hear about login failures, filter on **Event type** `authentication` and **Event scope** `login`; failed logins carry the status error. To catch attempts to go beyond one's rights, filter on **Event scope** `unauthorized`. **Example: Alert administrators when a contractor oversteps** The contractors of Harbor Security work on the Example CERT platform with limited rights. The administrators want to know at once when one of them tries an action their role does not allow. - **Name**: `Contractor unauthorized actions` - **Description**: `Harbor contractors trying actions outside their role` - **Notifiers**: **User interface** and **Default mailer** - **Recipients**: the **Administrators** group - Filters: **Event scope** `unauthorized`, and **Group** `Harbor contractors` The two filters combine with AND, so analysts of Example CERT who hit a missing capability do not raise the alert. When Sam Reyes, a member of Harbor contractors, tries to delete a report, every administrator gets a notification and an email naming Sam Reyes and the refused action. ## Create a digest {#create-a-digest} A digest sends, at a set time, the events that one or more live triggers caught over the last period: the last day for a daily digest, the last week for a weekly one. When none of its triggers caught anything, no digest is sent. Use it for events worth a weekly review rather than an immediate alert, and create the live triggers first. 1. In **Settings > Activity > Alerting**, click **Create Regular digest**. The **Create a regular activity digest** panel opens. 2. Enter a **Name** and a **Description**. 3. In **Triggers**, choose the live triggers to group. At least one is required. 4. Choose the **Period**: **hour**, **day** (the default), **week** or **month**. For a week, choose the **Week day**; for a month, the **Month day**. Except for an hourly digest, set the **Time** of sending, in your browser's time zone. It starts at 12:00 AM. 5. Choose at least one notifier in **Notifiers** and at least one recipient in **Recipients**, then click **Create**. A recipient of the digest only gets the events of the live triggers they are also a recipient of: add them to those triggers too. ![The Create a regular activity digest panel with the Name, Description and Triggers fields, the Period set to day, the Time field, and the Notifiers and Recipients fields.](https://filigran.io/docs/shots/329494b170da24d53b38274921335aa3e3a420104dec568e0cf8b69f06389755.webp) ## Check that it works {#check-that-it-works} Make the trigger fire: for a login trigger, log out and log in again, or enter a wrong password. The recipients get a notification, in their notification center or by email, that names the user and the event. If nothing arrives, check the filters against the event in **Settings > Activity > Events**. ## Change or delete a trigger {#change-or-delete-a-trigger} Open the row menu of the trigger in **Settings > Activity > Alerting** and choose **Update** or **Delete**. **Update** opens **Update an activity live trigger** or **Update an activity digest trigger**, with the fields of the creation panel; each change is saved when you leave the field. The list shows the **Type** of each trigger, live or digest, and its **Notification** channels. ## What's next {#what-s-next} - [Activity events](https://filigran.io/docs/opencti/configure/activity/events/) for every type and scope you can filter on. - The [audit event reference](https://filigran.io/docs/reference/opencti/audit-events/) for the message of each event a trigger can catch. - [Notifiers](https://filigran.io/docs/opencti/configure/notifiers/) to send notifications to a webhook or another channel. --- # Repair data after an upgrade > The background operations OpenCTI runs to repair data consistency after an upgrade, how they are scheduled, and how to estimate, run or stop them. - URL: https://filigran.io/docs/opencti/configure/data-sanity/ - Products: OpenCTI 7.261119.0 - For: platform engineers, administrators - Type: Reference *(OpenCTI 7.260811 and later)* The data sanity manager is a background process that repairs data when a new version of OpenCTI changes how data is computed, for example how two entities are recognized as the same. After an upgrade, it is why some entities get merged without anyone asking. This page lists its operations, how they run, what they write to the logs, and the API calls that let you estimate, schedule or stop them. ## How operations run {#how-operations-run} **Diagram: How the data sanity manager repairs data after an upgrade** - Upgrade: New version (Brings new operations) - Manager: Data sanity manager (Every 10 minutes, one node) - Data: Knowledge (Repaired once per operation) - Control: Health screen (Data > Health > Operations), GraphQL API (Estimate, schedule, stop) Connections: - New version → Data sanity manager: operations to run - Data sanity manager → Knowledge: estimate, then repair - Health screen → Data sanity manager: schedule a run - GraphQL API → Data sanity manager: dry run, run - The manager runs on the platform nodes every 10 minutes by default, one node at a time: a lock keeps two nodes from running it together. - Every operation is of type `run_once`: the manager runs it once, at its first cycle after the upgrade that brings it. It logs the estimated impact first, then applies the changes. It does not run it again unless you schedule a new run. - An operation still marked as running after 24 hours, for example because the node restarted, is considered stale and runs again at the next cycle. - A failure is recorded with its message, and the next operations still run. - An operation whose result cannot be recorded stays marked as running: later cycles skip it until it turns stale. Stop it to release it sooner. | Key (environment variable) | Default | Effect | | --- | --- | --- | | `data_sanity_manager:enabled` (`DATA_SANITY_MANAGER__ENABLED`) | `true` | Turns the manager off. The operations an upgrade brings then wait until it is on again | | `data_sanity_manager:interval` (`DATA_SANITY_MANAGER__INTERVAL`) | `600000` | Time between two cycles, in milliseconds. A scheduled run waits up to this long | | `data_sanity_manager:stale_running_threshold` (`DATA_SANITY_MANAGER__STALE_RUNNING_THRESHOLD`) | `86400000` (not in `default.json`) | Time, in milliseconds, after which a run still marked as running is considered stale. An invalid value falls back to the default with a warning | The [configuration reference](https://filigran.io/docs/reference/opencti/configuration/#engines-schedules-and-managers) lists them with the other managers. ## Operations {#operations} ### Case sensitive Duplicated ID {#case-sensitive-duplicated-id} | | | | --- | --- | | Identifier | `caseSensitiveDuplicatedId` | | Type | `run_once` | | Entity types | Attack Pattern, Course of Action | OpenCTI used to tell entities apart by case, so `Phishing` and `phishing` could exist as two attack patterns. The identifier is now computed without case, so these entities are duplicates. The operation recomputes the identifier of every Attack Pattern and Course of Action, groups the entities that now share one, and merges each group into a single entity. The entity kept is the one with the most relationships, then the oldest, so the fewest relationships move. Relationships, markings, labels and STIX identifiers of the others are kept on it. A group that fails to merge is logged and skipped; the rest of the run goes on. ## Follow and control operations {#follow-and-control-operations} ### With the GraphQL API {#with-the-graphql-api} The same actions exist in the GraphQL API, as the [GraphQL schema reference](https://filigran.io/docs/reference/opencti/graphql-schema/) lists them, with a token of a user who has **Bypass all capabilities**. Every call takes the identifier of the operation. | Call | Kind | Does | | --- | --- | --- | | `dataSanityOperations` | Query | Lists the operations with their state and last run | | `dataSanityOperationDryRun(operation_name)` | Query | Returns `estimated_impact`, a count per entity type, without changing data | | `dataSanityOperationRequestRun(operation_name)` | Mutation | Schedules a run for the next cycle | | `dataSanityOperationStop(operation_name)` | Mutation | Marks the operation as done and cancels a scheduled run. It does not interrupt a run in progress | Estimate before you schedule: the dry run counts what a run would change, per entity type, and changes nothing. Stop an operation that a node restart left running when you do not want it to start again by itself once it turns stale, for example during a migration window; schedule it again with `dataSanityOperationRequestRun` when you are ready. `dataSanityOperations` then returns `last_run_success: false` and `last_run_message: "Operation stopped manually"` for it. For example, to estimate the impact of the duplicate merge: ```graphql query { dataSanityOperationDryRun(operation_name: "caseSensitiveDuplicatedId") { estimated_impact { key count } } } ``` ## Follow operations in the logs {#follow-operations-in-the-logs} Every line of the manager in the platform logs starts with `[DATA_SANITY_MANAGER]`. The ones to watch after an upgrade: | Message | Means | | --- | --- | | `Estimating run_once impact before actual run` | The estimate, logged with its `result` before any change | | `Executing data sanity operation` | The run starts, with the `operation` identifier | | `Data sanity operation completed successfully` | The run ended, with `executionTimeMs` | | `Operation marked as running but considered stale` (warning) | A run left running for longer than `data_sanity_manager:stale_running_threshold` is allowed to run again | *(OpenCTI 7.261030 and later)* | Message | Means | | --- | --- | | `Data sanity operation failed` (warning) | The run stopped on an error, given in `cause` | | `Data sanity operation result could not be recorded` (error) | The run ended but its state was not saved: the operation stays marked as running | A run you schedule with `dataSanityOperationRequestRun` logs the same messages, the estimate included. The merge operation also logs its progress per entity type: the number of entities evaluated, the number of groups to merge, and each merge, so that you can follow a long run on a large platform. ## What's next {#what-s-next} - [Configuration reference](https://filigran.io/docs/reference/opencti/configuration/) for every `data_sanity_manager` key. - [GraphQL schema](https://filigran.io/docs/reference/opencti/graphql-schema/) for the types `DataSanityOperation` and `DataSanityExecution`. --- # Age indicators with decay rules > Create OpenCTI decay rules that lower indicator scores over time and revoke stale indicators, and choose which indicators each rule applies to. - URL: https://filigran.io/docs/opencti/configure/decay/ - Products: OpenCTI 7.261119.0 - For: SOC managers, administrators, CTI analysts - Type: How-to guide A decay rule lowers the score of indicators as they age and revokes them when the score gets too low, so that your SIEM and EDR stop alerting on stale indicators. OpenCTI ships with built-in rules for the common observable types; this page shows how to add your own, for example a faster decay for a noisy feed, and what your detection tools receive at each step. What the score means for analysts is in [Indicator lifecycle](https://filigran.io/docs/opencti/use/analyze/indicators-lifecycle/). ## Before you start {#before-you-start} - Your role has the **Manage customization** capability. - The indicator decay manager is running. It is on by default (`indicator_decay_manager:enabled` in the [configuration reference](https://filigran.io/docs/reference/opencti/configuration/)); when it is off, the page says so and no score changes. ## How a rule is chosen {#how-a-rule-is-chosen} OpenCTI picks the rule of an indicator once, when the indicator is created: **Diagram: When an indicator is created, an exclusion rule wins over decay rules** - Created: New indicator (Score and filters) - Rules: Exclusion rules (Any active match wins), Decay rules (Highest order that matches) - Lifecycle: Never decays (Valid until has no end), Score lowered (Revoked at revoke score) Connections: - New indicator → Exclusion rules: checked - Exclusion rules → Never decays: match - Exclusion rules → Decay rules: no match - Decay rules → Score lowered: applies 1. If an active [decay exclusion rule](https://filigran.io/docs/opencti/configure/decay/exclusions/) matches, the indicator never decays. 2. Otherwise, among the active decay rules that match the indicator, the one with the highest **Order** applies. 3. An indicator created already revoked gets no decay rule. Then the rule sticks. Changing the filters of a rule, or editing the indicator so that it matches another rule, does not move indicators that already have a rule. Only new indicators follow the new settings, with one exception: when a source sends an existing indicator again with a new score, and its confidence allows the update, the decay restarts from that score under the rule that matches at that moment. ## The built-in rules {#the-built-in-rules} Four rules come with the platform: one for IP address and URL indicators, one for domain names, one for files and artifacts, all with order 1, and a default rule with order 0 for every other indicator. They are active and cannot be changed or deleted. Their lifetime, decay factor, reaction points and revoke score are in the [decay rule reference](https://filigran.io/docs/reference/opencti/decay-rules/). To replace a built-in rule, create a rule that matches the same indicators with a higher order: 2 or more. The list in **Settings > Customization > Decay rules** shows the **Order** of every rule, its **Creation date**, whether it is **Active**, and how many **Impacted indicators** it holds. ![The list of decay rules: a custom rule with order 5 above the four built-in rules with order 1 and 0, each with its number of impacted indicators.](https://filigran.io/docs/shots/dec9acc1c85440e5a46d5adcd4051cb33257ce0c67de55db6c7d82fbd1f07e55.webp) ## What your detection tools receive {#what-your-detection-tools-receive} Decay changes the indicator itself, so every consumer sees it: [live streams](https://filigran.io/docs/opencti/use/share/feeds/#create-a-live-stream) send each change as an update, and [CSV feeds and TAXII collections](https://filigran.io/docs/opencti/use/share/feeds/) apply their filters to the new values. - **The score changes only at reaction points.** Between two points, the indicator keeps its last score, even though the life curve falls continuously. A rule without reaction points leaves the score untouched until the indicator is revoked. - **Valid until is set at creation** to the date the score will reach the revoke score. - **At that date, the indicator is revoked**: **Revoked** becomes true, **Detection** becomes false and the score drops to the revoke score. - **Changes land within minutes.** The indicator decay manager runs every minute and updates up to 10,000 indicators per pass (`indicator_decay_manager:interval` and `indicator_decay_manager:batch_size`). The expiration manager revokes indicators past their **Valid until** every 5 minutes (`expiration_scheduler:interval`). When more indicators are due at once, the backlog takes several passes. So place a reaction point on every score threshold your integrations filter on. If the EDR feed keeps indicators with a score greater than 60, a reaction point at 60 takes an indicator out of the feed when the curve reaches 60; without it, the indicator stays in the feed until the next point or its revocation. ## Create a decay rule {#create-a-decay-rule} 1. Open **Settings > Customization > Decay rules** and click **Create Decay Rule**. The **Create a decay rule** panel opens. 2. Give the rule a **Name** and a **Description** that says which indicators it is for. 3. Choose the indicators it applies to. *(OpenCTI 7.260811 and later)* Add filters on any of these keys: **Author**, **Creator**, **Marking**, **Label**, **Main observable type**, **Indicator type** and **Pattern type**. A rule without filters applies to every indicator. *(OpenCTI 7.261117 and later)* The keys also offer the [custom fields](https://filigran.io/docs/opencti/configure/taxonomies/#custom-fields) added to the **Indicator** type, by their label: a rule can then select the indicators that hold a given value in that field, set by an analyst or sent by a source. 4. Set the decay curve: - **Lifetime (in days)**: how long the score takes to fall from its initial value to 0. It starts at 365; - **Decay factor**: the shape of the curve. It starts at 1; a higher factor makes the score fall faster at the start, a lower one keeps it high longer. The built-in rules use 0.3 to 0.7. 5. Add **Reaction points**: click **Add a reaction point** for each score at which OpenCTI updates the indicator, and **Remove this reaction point** to drop one. With points at 60 and 40, an indicator created at 80 is updated to 60, then to 40, when the curve reaches them. Keep every point above the revoke score. 6. Set the **Revoke score**: the indicator is revoked when its score reaches this value. It starts at 0, which revokes the indicator only at the end of its lifetime. 7. Set the **Order**. It starts at 1, the order of the built-in rules: give the rule a higher order than any other rule that matches the same indicators. 8. Turn on **Active**, or leave it off to activate the rule later, and click **Create**. A new rule is inactive unless you turn it on. ![The Create a decay rule panel with the filters, Lifetime (in days), Decay factor, Reaction points, Revoke score, Order and Active fields.](https://filigran.io/docs/shots/1d197322ece63426e4e7967632941a3422ffc0bf4fde4df8fb195ee100d894a1.webp) **Example: Expire scanner IP addresses within days** The Example Scanner Feed sends thousands of IPv4 addresses of mass scanners a day, each with a score of 50. Under the built-in IP and URL rule they stay active for about 20 days, long after the scanners have moved on, and the SOC gets alerts on addresses that no longer scan anyone. - **Name**: `Noisy feed IP addresses` - **Description**: `Faster decay for IP indicators from the Example Scanner Feed` *(OpenCTI 7.260811 and later)* - Filters: **Main observable type** is `IPv4 address`, and **Author** is `Example Scanner Feed`, so indicators from other sources keep the built-in rule. - **Lifetime (in days)**: `30` - **Decay factor**: `0.8`, a steep fall at the start - **Reaction points**: `70` and `40` - **Revoke score**: `20` - **Order**: `5`, above the built-in rule (order 1) - **Active**: on An indicator the feed creates at score 50 then goes through these steps; the **Life curve** on the page of the rule draws the same curve: ```text Day 0 score 50 created by Example Scanner Feed, rule "Noisy feed IP addresses" Hour 15 score 40 reaction point: the indicator is updated Day 9 score 20 revoke score: the indicator is revoked, detection tools drop it ``` An indicator created at 80 by the same feed reaches 70 within hours, 40 after about six days and is revoked after about 15 days. When two rules that match the same indicator have the same order, OpenCTI picks one by an internal identifier drawn at random when each rule was created: the choice stays the same on a given platform, but it is neither the oldest rule nor one you can predict. Give each custom rule its own order. ## Check a rule {#check-a-rule} Click a rule in the list to open its page. **Configuration** recalls its settings, **Impact** counts the indicators **currently impacted by this rule**, and **Life curve** draws how the score falls over time, with the reaction points and the revoke score. *(OpenCTI 7.260811 and later)* In **Configuration**, **Decay indicator filter** shows the filters of the rule. When it is empty, the rule matches every indicator. ![The page of a custom decay rule with its configuration on the left, the number of impacted indicators, and the life curve falling from 100 to the revoke score.](https://filigran.io/docs/shots/9720998609fb33bb24e4bed1711f59396d290ce8ffd48dc50f9dc960e2cb7cf7.webp) On an indicator, the lifecycle button next to its score shows the rule applied and the dates of the next score changes. See [Indicator lifecycle](https://filigran.io/docs/opencti/use/analyze/indicators-lifecycle/). ## Change, deactivate or delete a rule {#change-deactivate-or-delete-a-rule} On the page of a custom rule, **Update** opens **Update a decay rule**, where you change any setting, and the menu next to it offers **Deactivate** (or **Activate**) and **Delete**. Built-in rules have neither. A change applies to the indicators created afterwards; indicators already under the rule keep the settings they got. An inactive rule is skipped when new indicators are created; indicators already under it keep it. To keep some indicators out of decay altogether, open the **Decay exclusion rules** tab of the same screen: see [Keep indicators from decaying](https://filigran.io/docs/opencti/configure/decay/exclusions/). ## When two sources disagree on a score {#when-two-sources-disagree-on-a-score} Two sources of equal trust can keep resetting the score of the same indicator. To stop that loop, a source cannot set a score it already set in the past. For example: source 1 creates an indicator at 90, source 2 raises it to 95, then source 1 sends 90 again: that last update is ignored. You can also lower the confidence level of the user of one source, so that the other one wins. See [Reliability and confidence](https://filigran.io/docs/opencti/concepts/reliability-confidence/). ## What's next {#what-s-next} - [Keep indicators from decaying](https://filigran.io/docs/opencti/configure/decay/exclusions/) for indicators that must never expire. - [Indicator lifecycle](https://filigran.io/docs/opencti/use/analyze/indicators-lifecycle/), what analysts see. - [How OpenCTI works](https://filigran.io/docs/opencti/concepts/architecture/) for the managers that run in the background. --- # Keep indicators from decaying > Keep some OpenCTI indicators out of decay, such as detection rules or feeds that manage their own lifecycle, with decay exclusion rules. - URL: https://filigran.io/docs/opencti/configure/decay/exclusions/ - Products: OpenCTI 7.261119.0 - For: SOC managers, administrators - Type: How-to guide A decay exclusion rule keeps matching indicators out of decay: their score never falls and they are never revoked automatically. Use one for indicators that must stay active, such as YARA or Sigma detection rules, and for sources that already manage the lifecycle of their indicators. Read [Age indicators with decay rules](https://filigran.io/docs/opencti/configure/decay/) first for how decay works. ## Before you start {#before-you-start} - Your role has the **Manage customization** capability. - You know how to recognize the indicators to exclude: their author, creator, marking, label, main observable type, indicator type or pattern type. > **Warning** > > Once an indicator falls under an exclusion rule, it stays there: deleting the rule or changing its filters does not bring the indicator back into decay. Test your filters before you activate a rule. ## Create an exclusion rule {#create-an-exclusion-rule} 1. Open **Settings > Customization > Decay rules** and select the **Decay exclusion rules** tab. 2. Click **Create Decay Exclusion Rule**. The **Create a decay exclusion rule** panel opens. 3. Give the rule a **Name** and a **Description** that says why these indicators are excluded. 4. Add at least one filter. The keys are **Creator**, **Author**, **Marking**, **Label**, **Main observable type**, **Indicator type** and **Pattern type**. *(OpenCTI 7.261117 and later)* The keys also offer the [custom fields](https://filigran.io/docs/opencti/configure/taxonomies/#custom-fields) added to the **Indicator** type, by their label. 5. Leave **Active** off for now and click **Create**. A rule is created inactive unless you turn on **Active**. 6. Check the filters once more, then open the menu of the rule in the list and choose **Enable**. ![The Create a decay exclusion rule panel, with its warning about rules without filters, the filter selector and the Active switch turned off.](https://filigran.io/docs/shots/844f28ed1e9ab794fdec53976832b7f469db0f56787f766d490c67ad2c2d7d7e.webp) > **Warning** > > A rule without filters matches every indicator, so no indicator would ever expire again. The creation panel warns you about it. **Example: Keep Example CERT detection rules active** Example CERT writes YARA and Sigma rules for the files and logs of Velvet Harbor intrusions. A rule stays valid as long as the malware does not change, so its score must not fall like the score of an IP address. - **Name**: `Example CERT detection rules` - **Description**: `YARA and Sigma rules written by our analysts: reviewed by hand, never expired` - Filters: **Pattern type** is `yara` or `sigma`, and **Author** is `Example CERT` - **Active**: off at creation, then **Enable** from the row menu once the filters are checked YARA and Sigma rules from other authors keep decaying under the built-in default rule, and STIX indicators of Example CERT, such as the IP addresses of Velvet Harbor, still expire. On a Velvet Harbor YARA rule created afterwards, the lifecycle button names **Example CERT detection rules**. ## How exclusion rules apply {#how-exclusion-rules-apply} - **No order.** Exclusion rules are not ranked like decay rules. An indicator that matches any active exclusion rule is excluded, so several rules add up as alternatives. - **Before decay rules.** When an indicator matches both an exclusion rule and a decay rule, the exclusion rule wins. - **Revoked or not.** An indicator is checked against exclusion rules even when its source creates it revoked. When OpenCTI evaluates the rules depends on what happens to the indicator: | Event | What happens | | --- | --- | | Creation | The indicator falls under an exclusion rule if it matches one; otherwise under a decay rule | | Upsert: a source sends the same indicator again | An indicator that now matches an exclusion rule moves under it, for example after a new label or when the creator in your filter sends it. An indicator already excluded stays excluded | | Update by a user or a playbook | Nothing changes: an indicator under a decay rule stays under it, even if it now matches an exclusion rule | For example, with a rule that filters on the creator of a trusted feed, an indicator first created by another source decays normally, until the trusted feed sends it too. From then on it is excluded. ## What your detection tools receive {#what-your-detection-tools-receive} An excluded indicator keeps the score its source or an analyst sets: no reaction point lowers it, and decay never revokes it. Decay computes no **Valid until** for it either. A **Valid until** that its source sets still applies, and the indicator is revoked when that date passes. So an exclusion rule keeps indicators in every feed and stream that selects them until someone revokes them or that date passes. Filter those feeds on the author or the label if some consumers must not get them. ## See which rule applies to an indicator {#see-which-rule-applies-to-an-indicator} On an indicator, the lifecycle button next to its score differs when the indicator is excluded. Click it to see the name of the exclusion rule; if you can manage customization, the name links to the rule. ## Change, disable or delete a rule {#change-disable-or-delete-a-rule} Open the menu of a rule in the list: **Update** opens **Update a decay exclusion rule**, where you change its name, description and filters, **Disable** (or **Enable**) switches it, **Delete** removes it. None of these change indicators that are already excluded; they only affect indicators evaluated from then on. ## What's next {#what-s-next} - [Age indicators with decay rules](https://filigran.io/docs/opencti/configure/decay/) for the indicators that should decay. - [Indicator lifecycle](https://filigran.io/docs/opencti/use/analyze/indicators-lifecycle/), what analysts see on an indicator. --- # Customize the emails OpenCTI sends > Write email templates for administrative messages to OpenCTI users, such as onboarding or maintenance notices, and send them on creation, in bulk or one by one. - URL: https://filigran.io/docs/opencti/configure/email-templates/ - Products: OpenCTI 7.261119.0 - Edition: requires an Enterprise Edition license - For: administrators - Type: How-to guide An email template is a one-time message to OpenCTI users: a welcome email with the platform address and, when needed, an API token, a notice about a process change, a warning before maintenance. This page shows how to write a template, test it, and send it to new users, to a selection of users or to one user. Templates are not used for knowledge notifications or for disseminating reports: those go through [notifiers](https://filigran.io/docs/opencti/configure/notifiers/) and dissemination lists. ## Before you start {#before-you-start} - Your platform has an Enterprise Edition license. - Your role has the **Manage credentials** capability. - The platform can send emails: see [Send emails from OpenCTI](https://filigran.io/docs/opencti/administer/smtp/). OpenCTI comes with one template, "Built-In Template For Onboarding", that you can adapt rather than start from scratch. ## Create a template {#create-a-template} 1. Open **Settings > Security > Email templates** and click **Create Email template**. The **Create a template** panel opens. 2. Fill in the fields, then click **Create**. The template opens in the **Template Editor**. | Field | What to enter | | --- | --- | | **Name** | How you find the template in lists | | **Description** | Optional: when to use it | | **Email subject** | The subject line users see | | **Display name of the sender** | The sender name shown next to the platform's sender address | 3. Write the body in the editor. Format the text and insert images as in any rich text editor. 4. Add variables from the side panel, which lists them under **Attributes of the user** and **Attributes of the platform**: click **Copy attribute name to clipboard** next to a variable and paste it where the value should appear. 5. Click **Save template**. The tab shows **You have unsaved changes** until you do. ![The Built-In Template For Onboarding open in the Template Editor, with the body on the left and the side panel listing the attributes of the user and of the platform.](https://filigran.io/docs/shots/2e279b2a1c00fb010378e41a9fe78f051ed282688ee4296890ba616d65f06846.webp) ## Variables {#variables} | Variable | Replaced by | | --- | --- | | `$user.firstname` | First name of the recipient | | `$user.lastname` | Last name | | `$user.name` | User name | | `$user.user_email` | Email address | | `$user.account_status` | Account status, such as Active | | `$user.objectOrganization` | The organizations the user belongs to, separated by commas | | `$user.account_lock_after_date` | The date the account expires, empty if none | | `$user.api_token` | A new API token, created for the recipient when the email is sent | | `$settings.platform_url` | The URL of the platform | > **Warning** > > Each email that contains `$user.api_token` creates a new token, named `Template generated token`, for its recipient, test emails included. Use it only in onboarding emails, remind users to keep it secret, and revoke the tokens your tests create. The side panel lists this variable as `$user.token_user`; write `$user.api_token`, which is the name OpenCTI replaces. **Example: Welcome analysts from member hotel chains** Example CERT opens its platform to the security teams of the hotel chains it serves. Each new account should get a welcome email that says where to log in and which organization the account belongs to. - **Name**: `Member onboarding` - **Description**: `Sent when an account is created for a member hotel chain` - **Email subject**: `Your access to the Example CERT threat intelligence platform` - **Display name of the sender**: `Example CERT` The body, with the variables pasted from the side panel: ```text Hello $user.firstname, Your account on the Example CERT threat intelligence platform is ready. Log in at $settings.platform_url with the address $user.user_email. Your account belongs to: $user.objectOrganization. Start with the reports labelled hotel-sector, such as the latest analyses of the Velvet Harbor intrusion set. Questions go to cti@example.com. The Example CERT team ``` For Leo Martin of Grand Meridian Hotels, created with the template chosen in **Email template**, the email reads "Hello Leo," and gives the platform address and "Grand Meridian Hotels". The template leaves out `$user.api_token` on purpose: members log in through the interface and need no API token. ## Test a template {#test-a-template} Click the **Send test email** button in the template's header. OpenCTI sends the email to your own address, with the variables filled with your account's values, so you see it as a recipient will. ## Change or delete a template {#change-or-delete-a-template} Open the template from the list. In the menu of its header, **Update** opens **Update a template**, where you change the name, the description, the subject and the sender name; the body stays in the **Template Editor**, saved with **Save template**. **Delete** removes the template. ## Send a template {#send-a-template} | To | Do this | | --- | --- | | A new user, when you create the account | In the user creation form of **Settings > Security > Users**, choose the template in **Email template** | | Several users | In **Settings > Security > Users**, select the users, click **Send email** in the toolbar, choose the template and click **Send** | | One user | Open the user, click **Send email**, choose the template and click **Send** | A playbook can also send a template, with the **Send email from template** component: see [Create a playbook](https://filigran.io/docs/opencti/use/automate/playbooks/create/). Every email sent is recorded in the [activity events](https://filigran.io/docs/opencti/configure/activity/events/). Organization administrators can send a template from the page of a user they manage, but only users with **Manage credentials** see the **Email templates** menu and create, change or delete templates. ## Rendering limits {#rendering-limits} OpenCTI fills the variables of a template in an isolated worker thread, with a memory limit and a 5-second timeout, so that a faulty template cannot slow down the platform. A template that exceeds them fails to render, and the email, test emails included, is not sent. Notifier templates and the platform's own emails go through the same workers. *(OpenCTI 7.261030 and later)* The limits are configuration keys. Raise them, then restart the platform, only if large templates or large notification digests fail to render: | Key (environment variable) | Default | Effect | | --- | --- | --- | | `safe_ejs:idle_pool_size` (`SAFE_EJS__IDLE_POOL_SIZE`) | `2` | Workers kept ready between renders. A render beyond them starts a new worker | | `safe_ejs:max_renders_per_worker` (`SAFE_EJS__MAX_RENDERS_PER_WORKER`) | `1000` | Renders after which a worker is replaced by a fresh one | | `safe_ejs:resource_limits:max_old_generation_size_mb` (`SAFE_EJS__RESOURCE_LIMITS__MAX_OLD_GENERATION_SIZE_MB`) | `50` | Main memory of a worker, in MB | | `safe_ejs:resource_limits:max_young_generation_size_mb` (`SAFE_EJS__RESOURCE_LIMITS__MAX_YOUNG_GENERATION_SIZE_MB`) | `10` | Memory for short-lived objects, in MB | | `safe_ejs:resource_limits:code_range_size_mb` (`SAFE_EJS__RESOURCE_LIMITS__CODE_RANGE_SIZE_MB`) | `10` | Memory for compiled code, in MB | | `safe_ejs:resource_limits:stack_size_mb` (`SAFE_EJS__RESOURCE_LIMITS__STACK_SIZE_MB`) | `4` | Stack size, in MB | They are in the [Technical customization](https://filigran.io/docs/reference/opencti/configuration/#technical-customization) section of the configuration reference. ## What's next {#what-s-next} - [Access control](https://filigran.io/docs/opencti/administer/access-control/) to create users and organize them in groups. - [Notifiers](https://filigran.io/docs/opencti/configure/notifiers/) for notifications about knowledge. --- # Customize entity types > Set mandatory fields, default values, custom fields, confidence scales, references, hidden types, statuses and templates for each OpenCTI entity type. - URL: https://filigran.io/docs/opencti/configure/entities/ - Products: OpenCTI 7.261119.0 - For: administrators - Type: How-to guide Each entity and relationship type of OpenCTI has its own settings page: which attributes are mandatory, which values creation forms fill in by default, whether every change must cite a source, whether the type shows in the interface, and how its overview looks. This page walks through those settings and what each one also does to the API and to connectors, so that the forms your analysts use match the way your team works without blocking the data that comes in. ## Before you start {#before-you-start} - Your role has the **Manage customization** capability. - The **Templates** tab needs an Enterprise Edition license. *(OpenCTI 7.261109 and later)* So do custom fields. Everything else works without it. ## Open the settings of a type {#open-the-settings-of-a-type} 1. Open **Settings > Customization > Entity types**. The list shows, for each type, whether it has a **Workflow status**, **Enforce references**, **Automatic references at file upload**, and whether it is **Hidden in interface**. 2. Click a type, for example **Report**. *(OpenCTI 7.260811 and later)* The page shows the **Visibility** and **References** cards, which apply to every type, then tabs for the settings this type supports: **Workflow**, **Attributes**, **Templates**, **Overview Layout** and **Custom Views**. A type only shows the tabs and options it supports. A greyed-out option says **This configuration is not available for this entity type** when you hover its information icon. ![The settings page of the Report type, with the Visibility and References cards above the Workflow, Attributes, Templates, Overview Layout and Custom Views tabs.](https://filigran.io/docs/shots/12f1187dd486f7c46aa052f33f20c3b62724ab92868960a02a2cf0c50a9e3e71.webp) To change one of these options for several types at once, tick the types in the list and click the matching button of the toolbar: **Automatic references at file upload**, **Hidden in interface** or **Enforce references**. In the dialog, turn **Enable this feature** on or off, then click **Update**. The dialog names the selected types that do not support the option; they are left unchanged. ## Hide a type {#hide-a-type} Hide the types your team does not use, for example Narrative and Channel if you do not track disinformation. A hidden type disappears from menus and creation forms; existing objects of that type stay in the database. 1. Open the type in **Settings > Customization > Entity types**. 2. Under **Hidden in interface**, turn on **Hide in the platform**. The same card shows where else the type is hidden: **Hidden in groups** and **Hidden in organizations**. To hide a type only for some users, edit their group in **Settings > Security > Groups** or their organization in **Settings > Security > Organizations** and fill **Hidden entity types**. The field of the same name in **Settings > Parameters** lists every type hidden platform-wide. See [Platform parameters](https://filigran.io/docs/opencti/configure/parameters/). ## Require references {#require-references} The **References** card has two options, both off by default: | Option | What it does | | --- | --- | | **Create external reference at upload** | Each file uploaded to an object of this type also becomes an external reference of that object | | **Enforce references** | An object of this type cannot be created without at least one external reference, nor changed without naming the external reference that justifies the change. In the interface, a change opens the **Reference modification** dialog, where the user picks the references and can add a **Message** | **Enforce references** is checked by the platform, not only by the forms: it applies to the API too. Users whose role has the **Bypass enforced reference** capability skip it. The default Connector role has it, so connectors keep importing; an integration that runs with a user without it gets the error `You must provide at least one external reference for this type of entity/relationship`. The option slows down manual work, so keep it for the types where every change must be traced, such as reports and incidents. Two platform settings complete these options: - `app:reference_attachment` (`APP__REFERENCE_ATTACHMENT`), off by default: when on, every new external reference must come with an attached file, on every type. Users with **Bypass enforced reference** are exempt. See the [configuration reference](https://filigran.io/docs/reference/opencti/configuration/#maps-references). - `app:enforce_references` (`APP__ENFORCE_REFERENCES`) is a legacy list of types. Only a 2023 migration reads it, to copy it into the **Enforce references** option of each type; setting it today changes nothing. See the [configuration reference](https://filigran.io/docs/reference/opencti/configuration/#functional-customization). ## Make attributes mandatory and set default values {#make-attributes-mandatory-and-set-default-values} The **Attributes** tab lists the attributes of the type, with a **Mandatory** column and a **Default value(s)** column. A greyed-out icon means the setting is fixed by the data model: an attribute that Structured Threat Information Expression (STIX) requires is always mandatory. 1. Open the **Attributes** tab of the type. 2. Click an attribute. The **Update the attribute** panel opens. 3. Turn on **Mandatory** to make creation forms refuse an object without this attribute. 4. Fill **Default value** to prefill the creation forms. 5. Click **Update**. Mandatory attributes are checked on every creation, in forms and through the API, except for users whose role has **Bypass mandatory fields**. The default Connector role has it, so connectors keep creating objects without the attribute. For everyone else, set a default value when the attribute is often unknown at creation time. ![The Update the attribute panel for the Report types attribute of reports, with the Mandatory switch and a Default value field set to threat-report.](https://filigran.io/docs/shots/0ab1ec7bbc04b4ed5bf033da56ffe81e53ce58a8cf48607b28d1e7de3f3b0da2.webp) **Example: Route every report and trace every incident** At Example CERT, a report without a type cannot be routed: the SOC reads threat reports, the hotel members read incident reports. Most reports the team writes are threat reports. The hotel members also ask that every change to an incident cite its source document. 1. In **Settings > Customization > Entity types**, open **Report**, then the **Attributes** tab. 2. Click **Report types**, turn on **Mandatory** and set **Default value** to `threat-report`. Click **Update**. 3. Back in the list, open **Incident** and, in the **References** card, turn on **Enforce references**. 4. Open **Narrative**, then **Channel**, and turn on **Hide in the platform** for both: the team does not track disinformation. 5. Ask the platform engineer to require a file on every new external reference: ```yaml services: opencti: environment: APP__REFERENCE_ATTACHMENT: "true" # every new external reference needs a file ``` An analyst who creates the report "Velvet Harbor infrastructure moves to new hosting" finds **Report types** marked with an asterisk and already set to threat-report; they change it to incident only for incident write-ups. A CSV import of reports without a type also gets threat-report. When the analyst changes the severity of an incident, OpenCTI asks for the external reference behind the change, and a new reference needs the hotel's report attached. The connectors, whose role bypasses both checks, keep importing. Narrative and Channel no longer appear in the menus. Default values apply wherever OpenCTI creates an object of this type without the attribute: creation forms, and CSV and JSON imports that use a mapper. A mapper can set its own default, which wins over the one set here. See [Map CSV files to knowledge](https://filigran.io/docs/opencti/configure/mappers/csv/#fill-missing-values). A few attributes behave differently: - **Markings**: there is no value to pick. **Activate/Deactivate default values** applies the default markings of the creator's group when an object is created without markings. - **Authorized members**: setting a default needs an Enterprise Edition license. ## Adjust the confidence scale {#adjust-the-confidence-scale} Attributes with a scale, such as **Confidence**, have a **Scale configuration** section in the same panel. Pick a scale in **Selected scale template**, or change **Limits** and **Ticks** under **Customize scale** to name your own levels, then click **Update**. The scale changes how the levels read in forms and lists; a user still cannot set a confidence above their own maximum level. See [Reliability and confidence](https://filigran.io/docs/opencti/concepts/reliability-confidence/). *(OpenCTI 7.261109 and later)* ## Add custom fields to an entity type {#add-custom-fields-to-an-entity-type} A custom field, created in [Manage labels, vocabularies and templates](https://filigran.io/docs/opencti/configure/taxonomies/#custom-fields), appears in the forms of a type once you add it here. Adding, changing and removing a custom field requires the Enterprise Edition; whether it is mandatory and its default value are set per type. 1. Open the **Attributes** tab of the type. Under the attributes, the **Custom fields** card lists the custom fields of the type, with their **Label**, **Technical name**, **Type**, whether they are **Mandatory**, and their **Default value**. 2. Click **Add custom field**. In the **Add a custom field** dialog, pick the field in **Custom fields**, turn on **Mandatory** if every object of this type must have a value, then click **Add**. 3. To set a default value, open the menu of the field in the card, choose **Update**, fill **Default value**, then click **Update**. For a **Date** field, **Use current date/time (@now)** fills the creation date of each object instead of a fixed date. ![The Custom fields card of the Attributes tab of the Report type, with its Add custom field button and the Member impact and Affected booking platform fields, their technical names, types, mandatory flags and default values.](https://filigran.io/docs/shots/9036ea5da787fd7fa0c9fec95cac771b8c3761fc06ba2f52530e2fe63690ad9d.webp) A mandatory custom field and a default value work like those of a built-in attribute: they apply to every creation, in forms, imports and the API, and users whose role has **Bypass mandatory fields** skip the mandatory check. *(OpenCTI 7.261117 and later)* OpenCTI checks a default value when you save it, so that every new object gets it. The default of an **Integer** field must be a whole number within the bounds of the field; the dialog shows **The value must be an integer** or **The value must be between min and max value** and keeps **Update** greyed out until you fix it. The default of a **Decimal** field can be any number, such as `0.75`. The platform refuses a value outside the options of a selection list, or a date it cannot read, in the API too. **Remove**, in the menu of the field, takes it off this type: OpenCTI warns that **The values stored for this custom field will be permanently removed from all existing entities of this type.** Without the Enterprise Edition, the card stays, but a mandatory custom field can only be made optional. ## Set up statuses {#set-up-statuses} The **Workflow** tab sets the processing statuses an object of this type moves through, for example New, In progress and Analyzed. Statuses come from the status templates of **Settings > Taxonomies > Status templates**. How to design and use them is in [Track the progress of reports and cases](https://filigran.io/docs/opencti/use/automate/entity-workflows/); the draft workflow is in [Approve drafts step by step](https://filigran.io/docs/opencti/use/automate/draft-workflow/). *(OpenCTI 7.261030 and later)* The tab also has the **Entity status sync** switch, off by default. Turn it on when you receive this type from another OpenCTI instance through a [live stream](https://filigran.io/docs/opencti/use/ingest/streams/). Without it, OpenCTI keeps the internal reference of the remote status as it is, and that reference matches no local status. With it, OpenCTI applies the local status that has the same name: - if a local status matches, the object gets it; - if none matches, a new object gets the default status of its workflow, and an object already synchronized keeps its current status. The option only affects objects received from a live stream. Both platforms need statuses with the same names for this type. In Enterprise Edition, the **Workflow** tab of some types also holds the settings of request access. See [Let users request access](https://filigran.io/docs/opencti/administer/request-access/). ## Create FINTEL templates {#create-fintel-templates} On container types, such as reports, groupings and cases, the **Templates** tab holds FINTEL templates: document models that turn a container into a finished intelligence file. Users pick a template when they generate a file from the container. 1. Open the **Templates** tab of a container type and click **Create a new template**, the **+** of the **FINTEL Templates** card. 2. Give the template a **Name**, leave **Template published** off until it is ready, and click **Create**. The template opens on the **Template Editor** tab. 3. Write the content in the editor. 4. Add the data the document shows, in the panel on the right: - **Add attributes of the instance** picks attributes of the container, such as its name or publication date; - **Add related data** builds a widget, a list or a chart of objects linked to the container, as in a [dashboard widget](https://filigran.io/docs/opencti/use/dashboards/). 5. Copy the variable name of each widget and paste it where it belongs in the content. 6. Open **Template Preview**, pick a container in **Entity**, and check the result. 7. Click **Save template**, then turn on **Template published** to offer the template to users. Until you publish it, the template shows **Not published** next to its name and users cannot pick it. A widget that the content does not use shows a warning icon; only those can be deleted. **Import a template** loads a template exported from another platform. The row menu of a template exports or deletes it. The look of generated files, such as colors and logos, comes from its [fintel design](https://filigran.io/docs/opencti/configure/fintel-designs/). *(OpenCTI 7.260811 and later)* The default template is already selected when a user generates a file from a container of this type. Turn on **Set as default** in the template form, or choose **Set as default** in its row menu; **Remove default** brings back an empty choice. A type has one default template at most: OpenCTI asks before it replaces the current one. *(OpenCTI 7.261030 and later)* Under **Export defaults**, **Include cover page by default** and **Include back page by default** set the **Page options** that the export dialog starts with for this template. Both are on when you create a template. Turn off the cover page for a document that should open on its content, such as a one-page daily brief. Users can still change both options when they export. ## Rearrange the overview {#rearrange-the-overview} The **Overview layout customization** card sets the order of the widgets on the **Overview** tab of every object of this type, and which ones take the full width. Drag the widgets into the order you want, turn on **Full width** for the ones that need room, and check the **Preview**. **Reset to default layout**, next to the card title, restores the original layout. *(OpenCTI 7.260811 and later)* ## Add custom views {#add-custom-views} The **Custom Views** tab lists the extra tabs built for this type, made of widgets, that users see on each object. Create one with **Create a new custom view**, import one with **Import a custom view**, or take one from **Import from Hub**. How to build them is in [Add a dashboard tab to entity pages](https://filigran.io/docs/opencti/use/dashboards/custom-views/). The **Status** of each view says whether users see it: **View is enabled** or **View is disabled**. The **Create custom view** panel, and the **Update custom view** panel that **Update** opens, have the **Set as default custom view** switch: the default view replaces the overview as the tab users land on. The row menu of a view also offers **Enable** or **Disable**, and **Set as default** or **Remove default**. ## Check that it works {#check-that-it-works} Open the creation form of the type, for example from **Analyses > Reports** for reports: mandatory attributes show an asterisk, and default values are filled in. A hidden type no longer appears in the menu or in the **Entity type** lists of forms. With **Enforce references** on, change a field of an existing object: the **Reference modification** dialog asks for a reference before it saves. Then check that your connectors still import: their user needs **Bypass mandatory fields** and **Bypass enforced reference** if you made attributes mandatory or references enforced on the types they create. ## What's next {#what-s-next} - [Track the progress of reports and cases](https://filigran.io/docs/opencti/use/automate/entity-workflows/) to design the statuses of a type. - [Map CSV files to knowledge](https://filigran.io/docs/opencti/configure/mappers/csv/), which use the default values set here. - [Brand your PDF reports](https://filigran.io/docs/opencti/configure/fintel-designs/) for the look of generated documents. - [Platform parameters](https://filigran.io/docs/opencti/configure/parameters/) for the list of hidden types. --- # Keep benign values out of indicators > Stop OpenCTI from creating indicators for benign values, such as your own IP ranges or popular domains, with exclusion lists that apply to every source. - URL: https://filigran.io/docs/opencti/configure/exclusion-lists/ - Products: OpenCTI 7.261119.0 - For: administrators, CTI analysts - Type: How-to guide An exclusion list holds values you know to be legitimate, such as your own address ranges, your domains or well-known services. OpenCTI refuses to create an indicator whose STIX pattern contains one of these values, whatever the source. This page shows how to create a list, check that every platform node uses it, and keep it up to date. ## Before you start {#before-you-start} - Your role has the **Manage customization** capability. - Your values are in a plain text file (`.txt`) with one value per line, or ready to paste. A file is limited to 10 MB by default (`app:exclusion_list:file_max_size`, see [Functional customization](https://filigran.io/docs/reference/opencti/configuration/#functional-customization) in the configuration reference). - Each list holds one family of types: IP addresses (**IPv4 address**, **IPv6 address**), or the other observable types. A list cannot mix both. ## How values match {#how-values-match} | Type | Write values as | Matches | | --- | --- | --- | | **IPv4 address**, **IPv6 address** | An address, `192.168.20.10`, or a CIDR range, `192.168.0.0/16` | The address, or every address in the range | | **Domain name** | A name, `example.com`, or a name that starts with a dot, `.example.com` | The exact name. With a leading dot, every subdomain, such as `www.example.com` and `booking.eu.example.com`, but not `example.com` itself: list both values to cover the name and its subdomains | | **URL** | A full URL, `https://www.example.com/login`, or its end from a dot, `.example.com` | The exact URL. With a leading dot, a URL that ends with that value: `.example.com` matches `https://www.example.com` but not `https://www.example.com/login` | | **File**, **Artifact** | A hash, such as a SHA-256 | A pattern that contains one of the hashes in the list | | **Hostname**, **Email address** | The value | The exact value | Write values in the case your sources use, in practice lowercase for domains and hashes: a value in another case is not reliably matched. ## Create an exclusion list {#create-an-exclusion-list} 1. Open **Settings > Customization > Exclusion lists** and click **Create Exclusion List**. The **Create an exclusion list** panel opens. 2. Enter a **Name** and a **Description** that says where the values come from. 3. In **Apply on indicator observable types**, choose the types the values belong to. Choosing an IP type with another type shows `Incompatible types, can't mix IP types with other types`. 4. Add the values. **Upload file** is on: select your `.txt` file under **Associated file**. To type the values instead, turn **Upload file** off and paste them in **Content (1 / line)**. 5. Click **Create**. The list appears in the table, active, with its types in the **Entity type** column. ![The Create an exclusion list panel with the Name and Description fields, the observable types to apply the list on, and the Upload file switch on with its file selector.](https://filigran.io/docs/shots/1217e32b75f4fee4c9c4e41cdb8f714d41729f8f009f9a6f7b6d16b3908cf6c6.webp) **Example: Never flag the member network as malicious** The feeds Example CERT ingests sometimes report private addresses seen in sandbox runs, and a detection tool that receives `[ipv4-addr:value = '10.20.30.40']` would alert on the hotel members' own network. - **Name**: `Internal ranges` - **Description**: `Private address space of the member network` - **Apply on indicator observable types**: **IPv4 address** and **IPv6 address** - **Upload file**: on, with the file `internal-ranges.txt` in **Associated file**: ```text 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 fd00::/8 ``` Once **Status** reads **Synchronized**, a feed that sends an indicator for `10.20.30.40` gets the error `Indicator of type stix is contained in exclusion list.` and nothing is created. The member domains go in a second list, `Trusted domains`, applied on `Domain name`, with `example.com` and `.example.com` to cover the domain and every subdomain; URLs on those domains need their own values, because a leading dot only matches a URL without a path. The file limit stays at its default; to accept larger files, raise `app:exclusion_list:file_max_size`: ```yaml services: opencti: environment: APP__EXCLUSION_LIST__FILE_MAX_SIZE: 20000000 ``` ## Check that the list is applied {#check-that-the-list-is-applied} OpenCTI copies the lists to a cache on every platform node. The cards above the table show where that stands: - **Status** reads **In progress** while the nodes load the change, then **Synchronized**. - **Last modification date** is the last change to any list; **Current cache version date** is the version every node uses. When both dates match, every node applies your list. ![The Exclusion lists screen with the Status card showing Synchronized, identical Last modification date and Current cache version date, and a table of two active lists with their number of elements.](https://filigran.io/docs/shots/a35b3a6d9ad147a302f04a14e2433a30989959888948ecd49abcf9818690d176.webp) The table also gives each list's **Number of elements**, **Creation date** and whether it is **Active**. ## Keep a list up to date {#keep-a-list-up-to-date} Open the row menu of a list: - **Update** opens the **Update an exclusion list** panel to change the name, description, types or values. You can edit the values in place when the file is under 1 MB; for a larger list, turn on **Upload file** and send a new file, which replaces the old one. - **Disable** pauses the list without deleting it; **Enable** turns it back on. - **Download file** gives you the current values as a text file. - **Delete** removes the list. Every change starts a new synchronization: wait for **Synchronized** before you rely on it. ## What gets excluded {#what-gets-excluded} When a connector, a feed (CSV, JSON, RSS, TAXII), a playbook or a user creates an indicator, OpenCTI extracts the observable values from its STIX pattern. If one of them is in an active list, the indicator is not created and the source receives the error `Indicator of type stix is contained in exclusion list.` > **Note** > > Exclusion lists apply to indicators with a STIX pattern only. An observable created on its own, for example by a feed that does not create indicators, is not filtered. Indicators already in the platform stay as they are. ## What's next {#what-s-next} - [Indicator lifecycle](https://filigran.io/docs/opencti/use/analyze/indicators-lifecycle/) to see how indicators are created, scored and decayed. - [Keep indicators from decaying](https://filigran.io/docs/opencti/configure/decay/exclusions/) to keep indicators from decaying, rather than to block them. --- # Search inside files > Index the text of the files stored in OpenCTI so that users can search inside them, and choose which files are indexed, up to what size. - URL: https://filigran.io/docs/opencti/configure/file-indexing/ - Products: OpenCTI 7.261119.0 - Edition: requires an Enterprise Edition license - For: administrators, platform engineers - Type: How-to guide File indexing extracts the text of the files attached to entities, or imported into the platform, and stores it in the search engine. Once it runs, a global search also looks inside PDF reports, spreadsheets and documents, and shows the files that match. This page covers the requirements, the configuration and the controls of the indexing engine. ## Before you start {#before-you-start} - Your platform has an Enterprise Edition license. - Your role has the **Access to file indexing** capability. Starting, pausing or resetting the engine also needs the role option **Allow modification of sensitive configuration**, because file indexing is a protected setting by default, unless the platform turns that protection off: see [sensitive configuration](https://filigran.io/docs/opencti/administer/sensitive-configuration/). - The search engine can extract text from attachments. You need one of: - Elasticsearch 8.4 or later; - Elasticsearch before 8.4 with the `ingest-attachment` plugin; - OpenSearch with the `ingest-attachment` plugin. When none is met, **Settings > File indexing** shows a warning instead of the configuration. ## Choose what to index {#choose-what-to-index} Indexing takes storage in the search engine. Before you start it, open **Settings > File indexing** and set the **Configuration** card. Each change is saved at once. | Setting | Default | What it does | | --- | --- | --- | | **File types to index** | All | Tick the types to index: PDF, JSON, plain text, Markdown, CSV, HTML, Excel (`.xls`, `.xlsx`), Word (`.docx`) and OpenDocument text (`.odt`) | | **Max file size (in MB)** | 5 | Files larger than this are skipped | | **Restrict to specific entity types** | Empty: all types | Index only the files attached to entities of these types | | **Include files not related to any knowledge (data import)** | Off | Also index the files uploaded in **Data > Import** that are not attached to an entity | The **Information** card helps you size the choice before you start: **Total files in S3** and **Files volumes in S3** give what your configuration would index, and **S3 volume by file type** splits it, with the **Files count** and **Files size** of each type. Expect the search engine to grow by roughly the size of the text extracted from these files: unticking a heavy type that nobody searches, such as large CSV exports, is the most effective saving. ![The File indexing screen: the Status, Indexed files and Volume indexed cards at the top, the Control card with Start and Reset, the Information card with S3 volumes, and the Configuration card with the file types ticked and a maximum size of 5 MB.](https://filigran.io/docs/shots/a740b56a9c61790d2adb2cd740a0edbd9a8c892040745cb95da588aadd243bfe.webp) ## Start indexing {#start-indexing} 1. In the **Control** card, click **Start**. **Status** changes to **Running**. 2. Follow the progress in **Indexed files**, the number of files indexed out of the files that match your configuration, and in **Volume indexed**. The first run goes through every existing file. After that, the engine checks for new files every minute and indexes them. When the markings or the organizations an entity is shared with change, its indexed files follow, so users only find the files they are allowed to see. **Example: Search inside the PDF reports of members** The hotel members send Example CERT their incident write-ups as PDF and Word files, attached to reports. Analysts want a search for `HarborGate` to find the backdoor in those files too, without indexing the large CSV exports of **Data > Import**. The platform runs Elasticsearch 8.19, which extracts attachments without a plugin, and keeps the indexing manager on, as by default. With Docker Compose: ```yaml services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:8.19.18 opencti: environment: FILE_INDEX_MANAGER__ENABLED: "true" FILE_INDEX_MANAGER__INTERVAL: 60000 ``` In the **Configuration** card of **Settings > File indexing**: - **File types to index**: only **PDF** and **DOCX** - **Max file size (in MB)**: `10`, because some write-ups carry screenshots - **Restrict to specific entity types**: **Report** and **Incident** - **Include files not related to any knowledge (data import)**: off Then click **Start**. Once **Indexed files** reaches the total, a search for `HarborGate` lists the report "HarborGate backdoor on booking servers" and the PDF attached to it where the word appears. ## Pause or reset {#pause-or-reset} - **Pause** stops the engine; **Start** resumes it where it stopped. In the **Control** card, **Indexing manager start** is when the engine last started a pass over new files, every minute by default, and **Last indexation** is when that pass ended. If these dates stop moving while **Status** reads **Running**, check that `file_index_manager:enabled` is on and look for `File index manager` errors in the platform logs. - **Reset** stops the engine and deletes every indexed file from the search engine. Files in storage are not touched. Click **Start** again to rebuild the index from scratch. If you change the configuration after the first run, files already indexed stay indexed, and files that were excluded are not caught up. Reset, then start, to apply the new configuration to every file. ## Check that it works {#check-that-it-works} Upload a PDF to an entity, wait a minute, and search for a word that only appears in that file. The result list shows the file and the entity it belongs to. See [Search](https://filigran.io/docs/opencti/use/explore/search/). ## What's next {#what-s-next} - [Search](https://filigran.io/docs/opencti/use/explore/search/) to search knowledge and files. - [Configuration reference](https://filigran.io/docs/reference/opencti/configuration/) for `file_index_manager:enabled` and `file_index_manager:interval`, which turn the engine on and set how often it looks for new files. --- # Brand your PDF reports > Give the PDF reports your team sends to customers and partners your own logo and colors with a fintel design, make it the default, and apply it when you export. - URL: https://filigran.io/docs/opencti/configure/fintel-designs/ - Products: OpenCTI 7.261119.0 - Edition: requires an Enterprise Edition license - For: CTI team leads, administrators, CTI analysts - Type: How-to guide A fintel design gives the finished intelligence (FINTEL) documents your team sends out your own look: your logo and your colors instead of OpenCTI's. You create it once, make it the default, and every PDF an analyst exports from a report carries your brand without anyone choosing it. This page shows how to create a design, check it on real data, make it the default, and apply it to an export. What the document says comes from a fintel template, written per entity type in [Customize entity types](https://filigran.io/docs/opencti/configure/entities/#create-fintel-templates); the design only dresses it. ## What a design changes {#what-a-design-changes} A design sets four things, and only these: the content, the sections and the markings of the document come from the template and the container. | Field | Where it shows in the PDF | When left empty | | --- | --- | --- | | **Logo (png, jpg, svg or webp)** | The cover page and the back page | The white OpenCTI logo | | **Background primary color** | The cover page, which fades from this color to the secondary one, and the thin band at the top of every inner page | Near black, `#00020C` | | **Background secondary color** | The end of that fade | Deep blue, `#0015A8` | | **Text color** | The title and the text written on the cover | White | Choose a logo and a text color that stay readable on both background colors: the logo is often a white or light version of your brand mark. ## Before you start {#before-you-start} - Your platform has an Enterprise Edition license. - Your role has the **Manage customization** capability, to create and change designs. Deleting a design also needs **Delete knowledge**. Analysts only need to export: they pick designs without these capabilities. - Your logo is a PNG, JPG, SVG or WebP file, and you know your colors as hexadecimal codes, such as `#1A2B3C`. ## Create a design {#create-a-design} 1. Open **Settings > Customization > Fintel design** and click **Create Fintel Design**. The **Create a fintel design** panel opens. 2. Enter a **Name** and a **Description** that tell analysts which documents the design is for, then click **Create**. The design opens, with the OpenCTI logo and colors in the **Preview**. 3. In the **Configuration** card, upload your logo in **Logo (png, jpg, svg or webp)**. 4. Set **Background primary color**, **Background secondary color** and **Text color**. Each change is saved and shown in the **Preview** at once. ![A fintel design open on its Configuration card, with a logo and three colors set, next to the Preview of the cover page in those colors.](https://filigran.io/docs/shots/e5c03c7da7a611360e1f9cbfc21d9a0134fe59183f69d0a78f2768f537a90eed.webp) A background color must be a hexadecimal code of three or six digits after `#`. Anything else shows **Invalid hexa color code** under the field and is not saved. To change the name or the description later, click **Update**: the **Update a Fintel design** panel opens. **Example: Brand the reports sent to hotel members** Example CERT sends its hotel members monthly PDF reports on Velvet Harbor. The team lead wants them to carry the logo and colors of the Harbor CTI program, so that members recognize them at a glance, and does not want each analyst to remember a setting. - **Name**: `Harbor CTI brand` - **Description**: `Cover and colors for reports sent to hotel-sector members` - **Logo (png, jpg, svg or webp)**: `harbor-cti-logo.png`, the white version of the program's mark - **Background primary color**: `#0B3D5C`, the dark blue of the program - **Background secondary color**: `#1F7A8C`, the teal the cover fades to - **Text color**: `#FFFFFF`, readable on both blues The **Preview** shows a cover that fades from dark blue to teal, with the Harbor CTI logo and white text. Once the design is the default, an analyst who exports the report "Operation Night Desk targets European hotels" as PDF finds **Harbor CTI brand** already selected in **Fintel design**, and the PDF opens on that cover. *(OpenCTI 7.260811 and later)* ## Make a design the default {#make-a-design-the-default} The default design is selected for you wherever a design can be chosen, so analysts get your brand without picking it each time. There is one default design at most. - In the list, open the row menu of a design and choose **Set as default**. If another design is the default, confirm that it is replaced in **Replace default design?**. - You can also turn on **Set as default** when you create or update a design. - To go back to the OpenCTI look, choose **Remove default** on the current default design. An analyst can still pick another design, or none, at export time. When no design is selected, the document uses OpenCTI's look. ## Check a design on real data {#check-a-design-on-real-data} To see the design with real data before anyone exports, open a fintel template: 1. Open **Settings > Customization > Entity types** and choose the entity type, for example **Report**. 2. Open one of its fintel templates and select the **Template Preview** tab. 3. Choose an **Entity** to fill the template and a design in **Fintel design**. The preview shows the document as it will be exported. ## Apply a design to a PDF export {#apply-a-design-to-a-pdf-export} Analysts apply a design when they export a container. They need the **Upload knowledge files**, **Download knowledge export** and **Generate knowledge export** capabilities. *(OpenCTI 7.261030 and later)* 1. Open the report, or any container, and select its **Content** tab. 2. Click **Generate an export based on a template**, in the files list of the tab. The **Generate an export** dialog opens with the **HTML content files to PDF** connector already chosen. 3. Keep **Export as fintel** on and choose the **Template**. OpenCTI fills the template with the container's data. 4. Check the design in **Fintel design**. When a default design exists, it is already selected. 5. Under **Page options**, keep **Include cover page** on: the cover carries most of the design. Without it, the document only keeps the colored band at the top of each page and the logo on the back page. 6. Click **Create**. The PDF appears in the files of the container when it is ready. ![The Generate an export dialog of a report with the HTML content files to PDF connector, the template, the Harbor CTI brand design preselected in Fintel design, and the Page options.](https://filigran.io/docs/shots/a73662a38912e60eda41d84207063c6892efc8384cb64e5ef56b9e72ecebc7c2.webp) ## What's next {#what-s-next} - [Export knowledge](https://filigran.io/docs/opencti/use/share/export/) for every export format and connector. - [Customize entity types](https://filigran.io/docs/opencti/configure/entities/#create-fintel-templates) to write the fintel templates that your designs dress. --- # Map CSV files to knowledge > Build an OpenCTI CSV mapper that turns the rows of a partner's CSV file into linked entities and relationships, test it on a sample, and use it for file imports and CSV feeds. - URL: https://filigran.io/docs/opencti/configure/mappers/csv/ - Products: OpenCTI 7.261119.0 - For: CTI team leads, CTI analysts, administrators - Type: How-to guide A CSV mapper turns a spreadsheet your team receives, such as a partner's list of malicious addresses, into knowledge: entities, the relationships between them, their dates and their markings, without anyone typing them in. You describe the layout of the file once; then analysts pick the mapper when they [import a CSV file](https://filigran.io/docs/opencti/use/ingest/files/), and [Import a CSV file from a URL](https://filigran.io/docs/opencti/use/ingest/csv-feed/) apply it to a remote file on a schedule. Build one mapper per CSV layout you receive. ## Before you start {#before-you-start} - Your role has the **Manage data mappers** capability. Analysts who only use the mapper do not need it. - You have a sample of the file, no more than 100 lines and 1 MB, to test the mapper. - You know what each row says: which entities, which relationships between them. A mapper cannot invent knowledge that the file does not hold, but it can add fixed values, such as a type or a marking, to every row. ## How a mapper reads a file {#how-a-mapper-reads-a-file} A mapper is a list of **representations**. Each representation describes one object that every row produces: an entity, such as an IPv4 address, or a relationship between two entities of the same row. For each attribute of the object, you give the column that holds it, by its letter as in a spreadsheet: A, B, C. For example, a file whose rows hold an IP address in column A, a malware name in column B and a first-seen date in column C needs three representations: an **IPv4 address** reading its value from A, a **Malware** reading its name from B, and a relationship from the malware to the address, reading its start time from C. Some attributes are required by the data model, and the form marks them with an asterisk: a **Malware** needs **Is family**, which a feed rarely gives. When the file has no column for such an attribute, give it a default value (see [Fill missing values](#fill-missing-values)); otherwise the mapper stays invalid. Attributes that point to another object, such as the author, the markings or the labels, also come from representations: you add a representation of that object, then pick it in the attribute. | Attribute | Representation to add | | --- | --- | | Author | Individual, Organization or System | | Markings | Marking definition | | Labels | Label | | External references | External reference | | Kill chain phases | Kill chain phase | ## Create a mapper {#create-a-mapper} 1. Open **Data > Processing > CSV Mappers** and click **Create a CSV mapper**. 2. Give the mapper a **Name** that says whose file it reads. It is the only field required to save, so you can build the mapper in several sessions. 3. Describe the file: - turn on **My CSV file contains headers** if the first line holds column names: the mapper skips it, and any comment lines before it; - pick the **CSV separator**: **Comma**, the default, **Semicolon** or **Pipe**; - in **Char to escape line**, give the character that starts lines to skip, such as `#` for comments. 4. Next to **Representations for entity**, click the add button, expand the new representation and pick its **Entity type**. 5. For each attribute, pick the **Column index** that holds it. Mandatory attributes are marked with an asterisk. 6. Repeat for every entity of the row. Add the reference representations, such as an organization for the author, then pick them in the attribute with **Representation entity**. 7. Next to **Representations for relationship**, add each relationship, pick its type, then pick the representations at each end in `from` and `to`. 8. Click **Create**. ![The CSV mapper edition panel with the header switch, the CSV separator choice, an IPv4 address representation reading its value from column A, and a relationship representation linking it to a malware.](https://filigran.io/docs/shots/d26d8ecf86e95e55d4f144549259eccac86b4d1182b8ddc4d25f1e3a5d7e191b.webp) ## Map different types from the same columns {#map-different-types-from-the-same-columns} When one column holds the type of each row, for example `IPv4-Addr` or `Url` in column A and the value in column B, turn on **Entity dynamic mapping** in each representation. Pick the **Column index** to test, the **Operator** (**Equal** or **Not equal**) and the **Value** to compare with. The representation then only reads the rows that pass the test: an IPv4 representation for rows where A equals `IPv4-Addr`, a URL representation for rows where A equals `Url`, both reading the value from column B. ## Read dates and lists {#read-dates-and-lists} The settings button next to the column of an attribute opens **Attribute mapping configuration**: - **Date pattern**, for dates: the mapper reads ISO 8601 dates such as `2026-01-15` by default; give your own format otherwise, in the tokens of the [Luxon](https://moment.github.io/luxon/#/parsing?id=table-of-tokens) library: `dd` for the day, `MM` for the month, `yyyy` for the year, `HH:mm` for the time. `12.01.2026` reads with `dd.MM.yyyy`, `01/12/2026 14:30` with `MM/dd/yyyy HH:mm`. Mind the case: `DD.MM.YYYY`, the example the interface gives, reads nothing. A date the pattern cannot read is left empty, without an error. - **List separator**, for attributes with several values: the character between values in the cell, such as `|` or `+`. ## Fill missing values {#fill-missing-values} When a cell is empty, or the file has no column for an attribute, the mapper can put a default value instead. There are two levels: | Where | Applies to | | --- | --- | | Default value of the attribute in **Settings > Customization > Entity types** | Every object of that type created on the platform, by forms and by mappers. See [Customize entity types](https://filigran.io/docs/opencti/configure/entities/#make-attributes-mandatory-and-set-default-values) | | **Default value** in **Attribute mapping configuration** of the mapper | This mapper only, and it wins over the platform default | The panel says whether a platform default exists for the attribute, so you know what you override. A default value set at either level also makes a mandatory attribute count as mapped. Markings work differently: you choose a policy, not a marking. Decide it with the senders of the file in mind, because it controls who sees what the import creates. - **Use default marking definitions of the user**: objects get the default markings of the user who imports the file. Suits files that always carry the same sharing level. - **Let the user choose marking definitions**: the user picks the markings, among those they can see, when they select the mapper. Suits files whose senders set a TLP per delivery. **Example: Import the Velvet Harbor infrastructure list** Each month, Example CERT sends its members a CSV file of the addresses Velvet Harbor malware calls, with the date each one was first seen, written the European way. The team lead of a member CERT wants analysts to load it in a minute, under the TLP the sender sets. ```csv # Velvet Harbor infrastructure shared by Example CERT, January 2026 ip,malware,first_seen 203.0.113.31,Velvet Loader,12.01.2026 198.51.100.44,Harbor Stealer,14.01.2026 203.0.113.77,HarborGate,19.01.2026 ``` The mapper that reads it: - **Name**: `Example CERT infrastructure list` - **My CSV file contains headers**: on, **CSV separator**: **Comma**, **Char to escape line**: `#`, so the comment line and the header line are both skipped - Representation for entity **IPv4 address**: **Value** in column **A** - Representation for entity **Malware**: **Name** in column **B**; **Is family** has no column, so open its **Attribute mapping configuration** and turn on **Default value**: each name in the file is a malware family - Representation for relationship **communicates with**: `from` the Malware representation, `to` the IPv4 address representation, **Start time** in column **C**, with the **Date pattern** `dd.MM.yyyy` in its **Attribute mapping configuration** - Markings of each representation: **Let the user choose marking definitions**, so the analyst who imports the file applies the TLP the sender asked for The list shows the mapper as valid. The test finds six entities, three addresses and three malware families, and three relationships, such as Velvet Loader communicates with 203.0.113.31 since 12 January 2026. Without the date pattern, or with `DD.MM.YYYY`, the relationships have no start time; without the default on **Is family**, the mapper is invalid and cannot be picked. ## Check and test the mapper {#check-and-test-the-mapper} The list of mappers shows the **Validity** of each one: a green check when every representation has the attributes the data model requires, from a column or a default value; a red cross otherwise. Only valid mappers can be picked for an import or a feed. 1. In the creation or edition panel, click **Test**. The **Testing csv mapper** dialog opens. 2. Select your sample file and click **Test**. 3. Read the result: under **Objects found**, the number of **Entities** and **Relationships**, then the STIX 2.1 bundle the mapper produced. > **Warning** > > The test only checks the mapping. It does not check the values, such as a valid IP address, or the attributes your platform made mandatory in the entity types, such as a description, so an object of the test result can still be refused at import. The test also blocks the platform while it runs: keep test files under 100 lines and 1 MB. ## Use the mapper {#use-the-mapper} When a user uploads a CSV file in **Data > Import** or in the **Data** tab of an entity, they pick the mapper to apply. *(OpenCTI 7.260811 and later)* By default the result lands in a new [draft](https://filigran.io/docs/opencti/use/ingest/drafts/), for review before it reaches the knowledge base. The user can choose a [workbench](https://filigran.io/docs/opencti/use/ingest/workbench/) instead by changing the validation mode. To read the same layout from a URL on a schedule, pick the mapper in a [CSV feed](https://filigran.io/docs/opencti/use/ingest/csv-feed/). For platform engineers: the built-in connector that runs CSV imports is set by the `import_csv_built_in_connector` keys ([Engines, schedules and managers](https://filigran.io/docs/reference/opencti/configuration/#engines-schedules-and-managers)), and `app:csv_ingestion:max_bundle_size` (1000 objects by default) sets the size of the bundles a CSV import sends to the workers ([Technical customization](https://filigran.io/docs/reference/opencti/configuration/#technical-customization)). ## Duplicate, export and import mappers {#duplicate-export-and-import-mappers} The menu of each mapper in the list offers **Update**, **Duplicate**, **Delete** and **Export**. - **Duplicate** a mapper before changing a layout that works: the **Duplicate a CSV mapper** panel opens prefilled, with " - copy" after the name. Test the copy on the new file, then switch the feed or tell analysts. - **Export** a mapper to a JSON file, and load it on another platform with **Import a CSV mapper**. Files exported from OpenCTI versions older than 6.6 are refused. ## What's next {#what-s-next} - [Import files](https://filigran.io/docs/opencti/use/ingest/files/), where analysts apply a mapper. - [Import a CSV file from a URL](https://filigran.io/docs/opencti/use/ingest/csv-feed/) to read a remote CSV file on a schedule. - [Map JSON APIs to knowledge](https://filigran.io/docs/opencti/configure/mappers/json/), the same idea for JSON. --- # Map JSON APIs to knowledge > Build an OpenCTI JSON mapper that turns the response of a partner's API into linked entities and relationships with JSON paths and identifiers, then use it in a JSON feed. - URL: https://filigran.io/docs/opencti/configure/mappers/json/ - Products: OpenCTI 7.261119.0 - For: CTI team leads, developers, administrators - Type: How-to guide A JSON mapper turns what a partner's API returns, such as the threats it tracks and the addresses they use, into knowledge in OpenCTI: entities, the relationships between them, their dates and markings. You describe the layout of the response once: where the items are, which attribute each field fills, and how the items relate to each other. Then a [JSON feed](https://filigran.io/docs/opencti/use/ingest/json-feed/) calls the API on a schedule and applies the mapper to each response. Build one mapper per JSON layout. If you have not built a [CSV mapper](https://filigran.io/docs/opencti/configure/mappers/csv/) yet, skim it first: representations, reference attributes and default values work the same way. ## Before you start {#before-you-start} - Your role has the **Manage data mappers** capability. - You have a sample of the API response, no more than 50 lines and 1 MB, to test the mapper. Ask the provider for one, or save one from their documentation. ## The JSON paths you need {#the-json-paths-you-need} A JSON path says where a value sits in the document. Four forms cover most feeds: | Path | Reads | | --- | --- | | `$` | The whole document, or the current item | | `$.name` | The field `name` | | `$.threats[*]` | Every element of the array `threats` | | `$.threats[*].addresses[*].ip` | The field `ip` of every address of every threat | OpenCTI evaluates the paths with the [JSONPath-Plus](https://github.com/JSONPath-Plus/JSONPath) library, so filters such as `$.threats[?(@.score > 50)]` work too. ## How a mapper reads JSON {#how-a-mapper-reads-json} A JSON document is a tree, while a mapper is a flat list of **representations**, one per kind of object. Three paths connect the two: 1. The **Entity path mapping** of a representation selects the items it turns into objects, for example `$.threats[*]` for every element of a `threats` array. 2. Each attribute has a **JSON Path** that reads its value inside one item: `$` is the item itself. 3. The **Identifier** of a representation is a path to a value that names each item, such as `$.name`. Other representations use it to find that item when they refer to it: a relationship, or an attribute such as the author. Items that share an identifier make a single object: the first one read is kept. **Diagram: A JSON mapper finds items with a path, names them with an identifier, then links them** - JSON file: $.threats[*] (One item per threat), $.threats[*].addresses[*] (One item per address) - Representations: Intrusion Set (Identifier $.name), IPv4 address (Identifier $.ip), Relationship (Matches identifiers) - OpenCTI: STIX bundle (Objects and links) Connections: - $.threats[*] → Intrusion Set: entity path - $.threats[*].addresses[*] → IPv4 address: entity path - Intrusion Set → Relationship: to - IPv4 address → Relationship: from - Relationship → STIX bundle: creates The identifier is what CSV mappers do not need: in a CSV file, everything on a row belongs together; in JSON, a relationship must say which items it links. ## An example {#an-example} **Example: Read the threats and addresses of a partner API** The partner API `https://api.example.com/v1/threats` returns the threats it tracks, with the IP addresses each one uses: ```json { "threats": [ { "name": "Velvet Harbor", "first_seen": "2025-03-04T00:00:00Z", "addresses": [ { "ip": "203.0.113.31" }, { "ip": "198.51.100.44" } ] } ] } ``` To create an Intrusion Set, two IPv4 addresses and a relationship between each address and the intrusion set, the mapper `Threats and addresses` has three representations: | Representation | Entity path mapping | Identifier | Attributes | | --- | --- | --- | --- | | Intrusion Set | `$.threats[*]` | `$.name` | name: `$.name`; first seen: `$.first_seen` | | IPv4 address | `$.threats[*].addresses[*]` | `$.ip` | value: `$.ip` | | Relationship **related to** | `$.threats[*]` | | `from`: the IPv4 address representation, identifier `$.addresses[*].ip`; `to`: the Intrusion Set representation, identifier `$.name` | The relationship reads each threat. Its `from` path returns the two IP addresses of the threat, which match the identifiers of two IPv4 objects; its `to` path returns the name of the threat. The test finds three entities, Velvet Harbor, 203.0.113.31 and 198.51.100.44, and two relationships: each address related to Velvet Harbor. An identifier can combine several paths separated by commas, when one value is not enough to tell items apart. If you leave the identifier of a reference empty, the reference points to every object of that representation. That suits a single author for the whole document, for example. ## Create a mapper {#create-a-mapper} 1. Open **Data > Processing > JSON Mappers** and click **Create a JSON mapper**. 2. Give the mapper a **Name**. It is the only field required to save. 3. Next to **Representations for entity**, click the add button, expand the new representation and pick its **Entity type**. 4. Fill the **JSON Path** of **Entity path mapping**, and the **JSON Path** of **Identifier** if other representations refer to this one. 5. Fill the **JSON Path** of each attribute. Mandatory attributes are marked with an asterisk. 6. For an attribute that points to another representation, such as the author, pick it in **Representation entity**. Then fill the **JSON Path** that, read from the current item, returns the identifiers of the items to link. *(OpenCTI 7.260811 and later)* Each representation you pick gets its own path, under it, labelled **Identifier** followed by the name of the representation: until you pick one, the attribute shows **Select a representation first**. 7. Next to **Representations for relationship**, add each relationship: its type, its entity path, and the representations and identifiers at each end in `from` and `to`. 8. Click **Create**. ![The JSON mapper edition panel with an IPv4 address representation, its entity path mapping, its identifier path and the JSON path of its value.](https://filigran.io/docs/shots/45be80e799f31bb60fe8d3ee6aa9bde22521fd8ec726af71564a25c4d8f67e2b.webp) ## Read dates and lists, fill missing values {#read-dates-and-lists-fill-missing-values} The settings button next to the path of an attribute opens **Attribute mapping configuration**, with the same options as in CSV mappers: a **Date pattern** when dates are not in ISO 8601, in [Luxon](https://moment.github.io/luxon/#/parsing?id=table-of-tokens) tokens such as `dd/MM/yyyy`; a **List separator** when one string holds several values; and a **Default value** for when the field is missing. When a path returns an array, a multiple attribute such as the labels takes every value, without a separator. Markings take a policy: **Use default marking definitions of the user** or **Let the user choose marking definitions**. See [Map CSV files to knowledge](https://filigran.io/docs/opencti/configure/mappers/csv/#fill-missing-values). ## Check and test the mapper {#check-and-test-the-mapper} The list shows the **Validity** of each mapper: a mapper is valid when every representation has all its mandatory attributes mapped. Only valid mappers can be used. 1. In the creation or edition panel, click **Test**. The **Testing JSON mapper** dialog opens. 2. Select your sample file and click **Test**. 3. Read the number of **Entities** and **Relationships** under **Objects found**, and the STIX 2.1 bundle produced. If a relationship is missing from the result, check that its identifier paths return exactly the values the identifiers of the other representations return. A reference that can hold only one object, such as the author, fails when its path matches several. > **Warning** > > The test checks the mapping only, not the values or the settings of the entity types, so an object of the test result can still be refused when the feed runs. It also blocks the platform while it runs: keep the sample small. ## Use the mapper {#use-the-mapper} Pick the mapper when you create a [JSON feed](https://filigran.io/docs/opencti/use/ingest/json-feed/). The feed calls the API on a schedule and applies the mapper to each response. The menu of each mapper in the list offers **Update**, **Duplicate**, **Delete** and **Export**. When the provider changes its API, **Duplicate** the mapper first: the **Duplicate a JSON mapper** panel opens prefilled, so you can adapt and test the copy while the feed keeps running on the original. Load an exported mapper on another platform with **Import a JSON mapper**. ## What's next {#what-s-next} - [Import from a JSON API](https://filigran.io/docs/opencti/use/ingest/json-feed/), which run the mapper. - [Map CSV files to knowledge](https://filigran.io/docs/opencti/configure/mappers/csv/), for CSV files. - [Customize entity types](https://filigran.io/docs/opencti/configure/entities/) for the platform-wide default values. --- # Send notifications by email or webhook > Create OpenCTI notifiers that send notifications by email or to a webhook, write their EJS templates, test them and choose who can use them. - URL: https://filigran.io/docs/opencti/configure/notifiers/ - Products: OpenCTI 7.261119.0 - For: administrators, developers - Type: How-to guide A notifier is the channel a notification goes through: the notification center of the interface, an email, or an HTTP call to another tool such as a chat or a ticketing system. This page shows how to create your own notifiers and write their templates, so that users can pick them in their triggers and digests, and playbooks can use them. Two notifiers are built in and cannot be changed: **User interface**, which writes to the notification center, and **Default mailer**, which sends the standard OpenCTI email. Everything else is a custom notifier. *(OpenCTI 7.261117 and later)* A third built-in notifier, **Ingestion health default mailer**, sends ingestion health activity events to the recipient's email address. It cannot be changed either. ## Before you start {#before-you-start} - Your role has the **Manage customization** capability. - For email notifiers, the platform can send email. See [SMTP](https://filigran.io/docs/opencti/administer/smtp/). - For a webhook, you have the URL of the receiving service and know the JSON body it expects. ## Choose a connector {#choose-a-connector} Each custom notifier is built on one of three connectors: | Connector | Sends | You set | | --- | --- | --- | | Platform mailer | An email whose HTML you write, to the recipient's address | `title` (the subject) and `template` (the body), both EJS templates, required; `url_suffix`, optional, which your template reads as a variable | | Simple mailer | An email in the standard OpenCTI layout, to the recipient's address | `title`, the subject as an EJS template, required; then, all optional: `header`, a line under the platform title, and `footer`, a line above the copyright, both plain text where `[text](https://...)` becomes a link; `logo`, the URL of an image shown at the top; `background_color`, a CSS color for the band above it; `url_suffix`, added to the **View** link of each event, after `?source=email&` | | Generic webhook | An HTTP request with a JSON body | `verb` (`GET`, `POST` or `PUT`), `url` and `template` (the JSON body, as an EJS template), required; `params` (query string) and `headers`, optional, as name and value pairs | `url_suffix` tags the traffic the email brings, for example `utm_source=opencti&utm_medium=email`. > **Warning** > > The **DELETE** verb of the Generic webhook is stored with a leading space in this version, and the call fails. Use `POST` or `PUT`. A notifier works per recipient. When a trigger or a digest has several recipients, for example a group, OpenCTI renders the template and sends once for each of them, with the data that recipient is allowed to see. A mailer then reaches each analyst; a webhook is called once per recipient, so a chat channel would get the same message several times. Attach a webhook notifier to a trigger with a single recipient, such as the user who owns the channel. Not a service account: OpenCTI sends no notification to a service account, whatever the notifier. ## Create a notifier {#create-a-notifier} 1. Open **Settings > Customization > Notifiers** and click **Create Notifier**. 2. Fill **Name** and **Description**. Users see them when they choose a notifier. 3. Pick the **Notification connector**. Its fields appear under the form. 4. In **Accessible for**, add the users, groups or organizations that may use the notifier. Users with **Manage customization** always see every notifier. 5. Fill the fields of the connector. For a template, see [Write a template](#write-a-template). 6. Click **Test**. In the **Testing notifier** dialog, pick a sample in **Choose target** (**Sample Notification**, **Sample Digest** or **Sample Activity Alert**) and click **Test** again. A mailer sends the sample to your own email address; a webhook calls its URL. The dialog shows **OK** or the error. 7. Click **Create**. ![The Testing notifier dialog with the Choose target list set to Sample Notification and the Test button.](https://filigran.io/docs/shots/f95f34acb25f3049b9801875e78d2ced71ae4c18425f10fad83f8bc08d5b8c93.webp) ![The Notifiers page with the Configuration card on top and the list of custom notifiers, including the two Microsoft Teams samples.](https://filigran.io/docs/shots/14d3cfd0fde60ae159666fcf176e6c6942a6a0ced7f2c70141f0d1405ef6aead.webp) The notifier now appears in the notifier lists of triggers, digests, activity alerts and the **Send to notifier** playbook component, for the users of **Accessible for**. To change it, open the menu of its row and choose **Update**: the **Notifier edition** panel opens, with the same fields and **Test** button; click **Save**. To remove it, choose **Delete**: triggers that used it stop sending through it. *(OpenCTI 7.260811 and later)* The **Configuration** card at the top of the page has one platform setting: **Automatically notify users when they are assigned as participant or assignee**. When it is on, users get a notification each time someone adds them as assignee or participant of an object. The platform also comes with two webhook notifiers for Microsoft Teams, ready to adapt. See [Microsoft Teams notifier samples](https://filigran.io/docs/opencti/configure/notifiers/samples/). ## Write a template {#write-a-template} Templates use [EJS](https://ejs.co/), HTML or JSON with tags that insert data: | Tag | Does | | --- | --- | | `<%= value %>` | Inserts the value, escaped: for HTML in a mailer, for a JSON string in a webhook | | `<%- value %>` | Inserts the value as it is, for example `<%- JSON.stringify(data) %>` | | `<% code %>` | Runs JavaScript without output, for loops and conditions | ### The data a template receives {#the-data-a-template-receives} | Variable | Contains | | --- | --- | | `content` | A readable summary: a list of `{title, events}`, where each event has `operation`, `message` and `instance_id`. `notification_content` is the same list | | `data` | The full events: a list of `{notification_id, type, message, instance}`, where `instance` is the STIX 2.1 object, with its OpenCTI extension | | `notification` | The trigger: `id`, `name`, `trigger_type` (`live` or `digest`) and `created` | | `user` | The recipient, as `user.user_email` | | `settings` | The platform: `platform_title`, `platform_email`, `platform_base_url` and `platform_theme` | | `platform_uri` | The base URL of the platform, to build links such as `<%= platform_uri %>/dashboard/id/<%= content[0].events[0].instance_id %>` | | `doc_uri`, `background_color` | The documentation URL, and the background color of the platform theme | Anything else is removed before rendering: a template cannot read other fields of the trigger, the user or the settings. The `message` of an update says who made it, for example ``[report] Velvet Harbor infrastructure moves to new hosting - `jdoe` adds `hotel-sector` in `Label` ``. *(OpenCTI 7.261117 and later)* A test sends samples that exist nowhere in the platform. Each `instance` holds only `id`, `type`, `entity_type` and `name`: the report `[TEST] Sample report`, plus the malware `[TEST] Sample malware` in **Sample Digest**, or the synchronizer `[TEST] Sample synchronizer` in **Sample Activity Alert**. `notification` holds `created`, `trigger_type` and a `name`, such as `[TEST] Sample live trigger` or `[TEST] Sample digest trigger`. Guard the other fields with `|| ''`. *(OpenCTI 7.261030 and later)* Each `instance` of `data` also carries `objectMarking`: its markings, each with `definition_type`, `definition`, `x_opencti_color` and `x_opencti_order`, limited to the markings the recipient can see. Use it to print the TLP in the message: `<%= (data[0].instance.objectMarking || []).map(function(m) { return m.definition; }).join(', ') %>`. `content` and `data` are lists. A live trigger sends one notification per event, so they hold one element. A digest groups the events of a period, so they can hold many: loop over them. ```ejs <% content.forEach(function(item) { %>

<%= item.title %>

    <% item.events.forEach(function(event) { %>
  • <%= event.operation %>: <%= event.message %>
  • <% }) %>
<% }) %> ``` In the Platform mailer and the title of the Simple mailer, `octi.markdownToHtml()` turns a Markdown text into HTML, for example a description: `<%- octi.markdownToHtml(data[0].instance.description) %>`. *(OpenCTI 7.261117 and later)* ### Title variables {#title-variables} The `title` of a Platform mailer, the subject of its email, also takes variables, shorter to write than EJS tags. When you pick **Platform mailer**, the form says so above the `title` field, with a **See the available variables** link, suggests `e.g. New alert: $notification.name` in the empty field, and reminds you under it that a missing value is left empty. - A variable starts with `$` and one of the variables of [the data a template receives](#the-data-a-template-receives): `notification`, `notification_content`, `content`, `data`, `user` or `platform_uri`. `.field` and `[index]` go further down: `$notification.name`, `$notification_content[0].title`, `$data[0].instance.name`. - A text, a number or a true or false value is inserted as it is. A list of such values is joined with commas, for example `$data[0].instance.labels`. `.length` gives the size of a list, for example `$data.length`, the number of events. - A path that leads nowhere, or to an object, gives an empty text: the email is sent anyway. - Any other `$`, such as `$settings` or a price, stays as written. Variables are read outside EJS tags only, and a title can mix both. - The subject is plain text: neither variables nor `<%= %>` escape HTML characters, so `&` stays `&`. Line breaks and runs of spaces become a single space. The Simple mailer's title takes EJS only. **Example: Name the trigger and the report in the email subject** The CTI lead of Example CERT receives the alerts of the trigger "New hotel-sector reports" by email, and wants to sort them in the mailbox without opening them. The administrator creates a Platform mailer with this `title`: ```text [OpenCTI] $notification.name: $notification_content[0].title ``` When the report "Velvet Harbor infrastructure moves to new hosting" matches the trigger, the subject reads `[OpenCTI] New hotel-sector reports: Velvet Harbor infrastructure moves to new hosting`. **Test** with **Sample Notification** sends `[OpenCTI] [TEST] Sample live trigger: [TEST] Sample report`. For a daily digest, where the first entity says little, `[OpenCTI] $notification.name: $data.length events` counts the events instead. ![The Create a notifier panel with the Platform mailer connector, its title field holding two variables, the See the available variables link above it and the EJS hint under the template.](https://filigran.io/docs/shots/0f113db80abcbe957b09d194c76d117bad77f5eb047cfc565961ca53e4e64e55.webp) ### A webhook body {#a-webhook-body} The rendered webhook template must be valid JSON, because OpenCTI parses it before sending. Inside a JSON string, use `<%= %>`: it escapes quotes and line breaks for you. ```ejs { "text": "<%= content[0].events[0].message %>", "link": "<%= platform_uri %>/dashboard/id/<%= content[0].events[0].instance_id %>", "labels": <%- JSON.stringify(data[0].instance.labels || []) %> } ``` To see everything a template receives, test a notifier whose template prints the variables, such as `<%- JSON.stringify(data) %>` in a mailer. **Example: Post new hotel-sector reports to the SOC chat** The SOC of Example CERT works in a chat tool whose incoming webhook takes a JSON body with a `title` and a list of `events`. The SOC lead attaches it to their own trigger "New hotel-sector reports", live or in a daily digest, so that the channel gets each message once, with one line per report, its labels and a link. - **Name**: `SOC chat webhook` - **Description**: `Posts notifications to the SOC channel of the chat tool` - **Notification connector**: **Generic webhook** - **Accessible for**: the **SOC analysts** group, so that only the SOC can post to its channel - `verb`: `POST` - `url`: `https://chat.example.com/hooks/soc-cti` - `headers`: `Content-Type` set to `application/json` - `template`: ```ejs { "title": "<%= notification.name || 'OpenCTI notification' %>", "events": [<% data.forEach(function(entry, index) { %><% if (index > 0) { %>,<% } %> { "operation": "<%= entry.type %>", "message": "<%= entry.message %>", "name": "<%= entry.instance.name || '' %>", "labels": <%- JSON.stringify(entry.instance.labels || []) %>, "link": "<%= platform_uri %>/dashboard/id/<%= entry.instance.id %>" }<% }) %> ] } ``` The template loops over `data`, so it works for a live trigger, with one event, and for a digest, with many; the comma goes between events only, which keeps the JSON valid. Each `|| ''` covers a field that some events lack: the test samples carry no labels, so **Test** with **Sample Notification** or **Sample Digest** returns **OK** too. When an analyst labels the report "Velvet Harbor infrastructure moves to new hosting" with hotel-sector, the report starts to match the trigger, so the event reads as a creation, and the channel receives: ```json { "title": "New hotel-sector reports", "events": [ { "operation": "create", "message": "[report] Velvet Harbor infrastructure moves to new hosting", "name": "Velvet Harbor infrastructure moves to new hosting", "labels": ["hotel-sector"], "link": "https://opencti.example.com/dashboard/id/report--5f1a5e3c-7b8d-4c2e-9a41-3d6f0b2c8e17" } ] } ``` ### Keep templates light {#keep-templates-light} Templates run in a sandbox, with a time limit of 5 seconds and a memory limit. A template that loops for too long or builds very large strings fails, and its notification is not sent: the platform logs `Publisher manager notification processing error`. Use `content` for readable text and `data` only for the fields you need, and test with **Sample Digest**, the largest sample. *(OpenCTI 7.260811 and later)* For platform engineers, these settings bound what a notifier may take: - `publisher_manager:webhook_timeout` (`PUBLISHER_MANAGER__WEBHOOK_TIMEOUT`), 300000 ms by default: how long OpenCTI waits for a webhook to answer. - `notification_manager:max_digest_content_size` (`NOTIFICATION_MANAGER__MAX_DIGEST_CONTENT_SIZE`), 500 MB by default: beyond it, a digest is cut and a warning is logged. *(OpenCTI 7.261030 and later)* - `safe_ejs:resource_limits:max_old_generation_size_mb` (`SAFE_EJS__RESOURCE_LIMITS__MAX_OLD_GENERATION_SIZE_MB`), 50 MB by default: the memory of each template render. Raise it if large digests fail to render. See [Technical customization](https://filigran.io/docs/reference/opencti/configuration/#technical-customization). The first two are in [Engines, schedules and managers](https://filigran.io/docs/reference/opencti/configuration/#engines-schedules-and-managers). ## What's next {#what-s-next} - [Microsoft Teams notifier samples](https://filigran.io/docs/opencti/configure/notifiers/samples/), two Microsoft Teams templates to start from. - [Get alerted when knowledge changes](https://filigran.io/docs/opencti/use/automate/notifications/), where users create triggers and digests. - [Get alerted on security events](https://filigran.io/docs/opencti/configure/activity/triggers/), alerts on user activity. - [Playbook components reference](https://filigran.io/docs/reference/opencti/playbook-components/) for **Send to notifier**. --- # Microsoft Teams notifier samples > The two Microsoft Teams webhook notifiers OpenCTI ships with, one for live triggers and one for digests, their templates and how to adapt them. - URL: https://filigran.io/docs/opencti/configure/notifiers/samples/ - Products: OpenCTI 7.261119.0 - For: administrators, developers - Type: Reference OpenCTI creates two sample notifiers when the platform is first installed, in **Settings > Customization > Notifiers**. Both use the Generic webhook connector to post a card to a Microsoft Teams channel. They do nothing until you give them the webhook URL of your channel. This page gives their templates and what to change; how notifiers and templates work is in [Send notifications by email or webhook](https://filigran.io/docs/opencti/configure/notifiers/). | Notifier | Use it with | Posts | | --- | --- | --- | | Sample of Microsoft Teams message for live trigger | Live triggers | One card per event, with the operation, the date, the event message and a `See in OpenCTI` button | | Sample of Microsoft Teams message for digest trigger | Digests | One adaptive card with the name and date of the digest, then one linked line per event | Both are set to `POST` to `https://YOUR_DOMAIN.webhook.office.com/YOUR_ENDPOINT`. ## Adapt a sample {#adapt-a-sample} 1. Create an incoming webhook in the Teams channel that should receive the notifications, following the [Microsoft documentation](https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook), and copy its URL. 2. In **Settings > Customization > Notifiers**, open the menu of the sample and choose **Update**. The **Notifier edition** panel opens. 3. Replace the `url` with the URL of your webhook. 4. In the `template`, replace the hard-coded platform address of the links with `<%= platform_uri %>`: `https://YOUR_OPENCTI_URL` in the live sample, `https://localhost:3000` in the digest sample. 5. In **Accessible for**, add the users or groups that may pick this notifier in their triggers. Keep the list short: the card is posted once per recipient of each trigger that uses the notifier, so one trigger per channel, owned by one user, avoids duplicate cards. See [Choose a connector](https://filigran.io/docs/opencti/configure/notifiers/#choose-a-connector). 6. Click **Test**. In the **Testing notifier** dialog, choose **Sample Notification** for the live sample or **Sample Digest** for the digest sample in **Choose target**, click **Test**, and check the card in Teams. 7. Click **Save**. ![The Notifier edition panel of a Microsoft Teams sample, showing the Generic webhook connector, the POST verb, the webhook URL placeholder and the start of the template.](https://filigran.io/docs/shots/2c56ac8b9717c9560a03e18b3e07ed4dbf47b57f4d15194f77669b514803bc11.webp) To keep the samples as models, duplicate their settings into a new notifier instead: create a notifier with the Generic webhook connector and paste the template. ## Live trigger template {#live-trigger-template} The template of **Sample of Microsoft Teams message for live trigger**, as shipped. A live trigger sends one event per notification, so the template reads the first event only. ```ejs { "type": "message", "attachments": [ { "contentType": "application/vnd.microsoft.card.thumbnail", "content": { "subtitle": "Operation : <%=notification_content[0].events[0].operation%>", "text": "<%=(new Date(notification.created)).toLocaleString()%>", "title": "<%=notification_content[0].events[0].message%>", "buttons": [ { "type": "openUrl", "title": "See in OpenCTI", "value": "https://YOUR_OPENCTI_URL/dashboard/id/<%=notification_content[0].events[0].instance_id%>" } ] } } ] } ``` ## Digest template {#digest-template} The template of **Sample of Microsoft Teams message for digest trigger**, as shipped. A digest holds several groups of events, so the template loops over `notification_content` and over the events of each group, and adds a comma between items so that the result stays valid JSON. ```ejs { "type": "message", "attachments": [ { "contentType": "application/vnd.microsoft.card.adaptive", "content": { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "Container", "items": [ { "type": "TextBlock", "text": "<%=notification.name%>", "weight": "bolder", "size": "extraLarge" }, { "type": "TextBlock", "text": "<%=(new Date(notification.created)).toLocaleString()%>", "size": "medium" } ] }, <% for(var i=0; i { "type": "Container", "items": [<% for(var j=0; j { "type" : "TextBlock", "text" : "[<%=notification_content[i].events[j].message%>](https://localhost:3000/dashboard/id/<%=notification_content[i].events[j].instance_id%>)" }<% if(j<(notification_content[i].events.length - 1)) {%>,<% } %> <% } %>] }<% if(i<(notification_content.length - 1)) {%>,<% } %> <% } %> ] } } ], "dataString": <%-JSON.stringify(notification)%> } ``` `notification_content` is the same list as `content` in the [template variables](https://filigran.io/docs/opencti/configure/notifiers/#the-data-a-template-receives). ## What's next {#what-s-next} - [Send notifications by email or webhook](https://filigran.io/docs/opencti/configure/notifiers/) to write your own templates. - [Get alerted when knowledge changes](https://filigran.io/docs/opencti/use/automate/notifications/), where users attach a notifier to a trigger or a digest. --- # Set the platform parameters > Set the OpenCTI platform title, appearance, announcements, map files, themes and custom labels, and check its version, license, dependencies and managers. - URL: https://filigran.io/docs/opencti/configure/parameters/ - Products: OpenCTI 7.261119.0 - For: administrators - Type: How-to guide The **Parameters** page holds the settings that apply to the whole OpenCTI instance: its name, its look, the banners every user sees and the themes they can pick. It also tells you which version and edition run, which services the platform depends on and which managers are on. This page walks through it card by card, then covers the interface customizations that live in the configuration instead: custom labels, a script snippet and the demo mode. ## Before you start {#before-you-start} - Your role has the **Manage parameters** capability, under **Access to admin functionalities**. - **Third-party analytics** and **Remove Filigran logos** need an Enterprise Edition license. See [Editions and licensing](https://filigran.io/docs/start/editions/). - Settings fixed at deployment, such as the base URL or the mail server, are configuration keys, not parameters. They are listed in the [OpenCTI configuration reference](https://filigran.io/docs/reference/opencti/configuration/); the ones that customize the interface are in [Customize beyond the parameters](#customize-beyond-the-parameters). ## Open the parameters {#open-the-parameters} Open **Settings > Parameters**. The fields of the cards save as soon as you leave or change them: there is no save button. Announcements and themes open their own form. ## Read the platform summary {#read-the-platform-summary} *(OpenCTI 7.261030 and later)* The **OpenCTI platform** card at the top gives the **Version**, the **Edition** (**Community** or **Enterprise**), the **Architecture mode** (**Standalone** or **Cluster**), the **Number of node(s)**, how many **Managers** are enabled and the **Platform identifier**, with a **Copy** button. Support and the XTM Hub ask for this identifier. When XTM One is not configured, the card also shows **AI Powered**: the AI provider in use, **Disabled**, or **Missing token**. **AI Powered** reads **Disabled** for one of two reasons, given in its tooltip: the Enterprise Edition is off, or AI is turned off on the platform (**AI is not enabled**). AI is turned on in the **Enterprise Edition** card of **Settings > Filigran Experience**; the provider and its token are set in the [AI configuration](https://filigran.io/docs/reference/opencti/configuration/#ai-service). On a Community instance, the **OpenCTI platform** card has the **Manage your Enterprise Edition license** button, which starts the [Enterprise Edition](https://filigran.io/docs/start/editions/). Once the Enterprise Edition is on, two more cards show the license: - **Enterprise Edition**: the **Organization** the license was issued to, its **Creator** and its **Scope**. **Global** means the license works on every platform of your organization; **Current instance** means it is tied to this platform's **Platform identifier** and does not validate elsewhere. - **License**: the **Start date**, the **Expiration date** and the **License type**. A warning appears when the license expires in less than three months. To turn the Enterprise Edition off, click **Disable Enterprise Edition** in the **Enterprise Edition** card, then **Validate**. Your data stays intact. The button is missing when the license comes from the `app:enterprise_edition_license` configuration key. When this toggle is a [protected sensitive configuration](https://filigran.io/docs/opencti/administer/sensitive-configuration/), only users allowed to change sensitive configurations can use it. ## Set the name and the sender {#set-the-name-and-the-sender} The **Configuration** card holds: - **Platform title**: the name in the browser tab, and the sender name of the emails the platform sends. - **Platform favicon URL**: the icon of the browser tab. - **Sender email address**: the address notifications come from. When a sender is forced, in the [SMTP configuration](https://filigran.io/docs/opencti/administer/smtp/) or with the `smtp:forced_sender_email` key, the field is greyed out and the forced address is used. *(OpenCTI 7.261030 and later)* - **Google Analytics (v4)**, under **Third-party analytics** (Enterprise Edition): a measurement ID such as `G-XXXXXXXXXX`. To show a consent message at login, set it in [Set platform security policies](https://filigran.io/docs/opencti/administer/policies/). ## Change the appearance {#change-the-appearance} *(OpenCTI 7.261030 and later)* The **Appearance** card sets defaults for every user. Users can override the theme, the language and the date formats in their profile. - **Default theme**: one of the themes of the **Themes** card. - **Language**: **Automatic** follows the browser. - **Date format in tables** and **Time in tables**: how dates appear in lists. - **Hidden entity types**: entity types removed from menus and creation forms, without restricting access. - **Remove Filigran logos** (Enterprise Edition): hides the Filigran logos of the interface. **Hidden entity types** removes entity types from menus and creation forms. It only declutters the interface. It is not access control: users can still read and write these types through the API. Groups and organizations can hide more types for their members; the list of types says so next to a type they already hide, for example (Hidden in Groups : Contractors). ## Post an announcement {#post-an-announcement} An announcement is a banner at the top of the interface, for example before a planned downtime. 1. In the **Platform announcement** card, click the **+** button (**Add**). 2. In the **Create a message** panel, write the **Message** and pick a **Color**. ![The Create a message panel of a platform announcement, with its Message and Color fields, the Recipients field and the Dismissible and Activated switches above the Create button.](https://filigran.io/docs/shots/d262a37dc98ca8d6df3a4f370776aacf1cd1791cce0a12cc0c9d7656bc3fa0d7.webp) 3. To target some people only, fill **Recipients** with users, groups or organizations. Leave it empty to reach everyone. 4. Turn on **Dismissible** to let each user close the banner. Leave it off for a banner that stays. 5. Turn on **Activated**, then click **Create**. The card lists each announcement with its color, message, status, whether it is dismissible and its recipients. Its menu (⋮) updates or deletes it. Only one banner shows at a time, and an active dismissible announcement takes precedence over a permanent one. When a user closes a dismissible banner, the next active announcement shows. The browser remembers the closing, so the banner shows again in another browser. If you update an announcement, it shows again to users who had closed it. **Example: Warn every user before an upgrade** Example CERT upgrades its platform on Saturday 17 January 2026, from 08:00 to 10:00 UTC. Analysts, members and contractors must all know a few days ahead, and must not be able to miss it. - **Message**: the text below. - **Color**: `#ff9800`, an orange that reads as a warning in both themes - **Recipients**: empty, to reach everyone - **Dismissible**: off, so the banner stays until the upgrade - **Activated**: on ```text OpenCTI is upgraded on Saturday 17 January 2026, 08:00 to 10:00 UTC. The platform is unavailable during the upgrade: save your work before 08:00. ``` Every user sees the orange banner at the top of each page from now on. After the upgrade, open the menu (⋮) of the announcement and choose **Delete**, or update it with a short "Upgrade done" message and turn on **Dismissible**. *(OpenCTI 7.260811 and later)* ## Replace the map files {#replace-the-map-files} The **Map configuration** card holds the files that map widgets are drawn from. File formats and how to build them are in [Map tiles](https://filigran.io/docs/deploy/configure/maps/). *(OpenCTI 7.261030 and later)* It has two rows, **Custom map** (a `.pmtiles` file) and **Custom country boundaries** (a `.json`, `.geojson` or `.gz` file). Each row reads **Default**, with **Using the bundled map** or **Using the bundled boundaries**, while the file shipped with OpenCTI is in use, and **Custom** once you upload one. Its menu (⋮) has **Upload**, or **Download**, **Replace** and **Delete** for a custom file. Changes can take up to five minutes to reach every browser. ## Brand the interface with themes {#brand-the-interface-with-themes} The **Themes** card lists the themes users can pick. *(OpenCTI 7.261030 and later)* The built-in **Filigran Dark** and **Filigran Light** themes can be viewed and exported, not changed or deleted. 1. Click the **+** button (**Create a custom theme**), or **Import a theme** to load a JSON file exported from another platform. 2. Give the theme a **Name**, at least two characters and different from the other themes. 3. Set the colors as six-digit hexadecimal values, such as `#122e52`, and the logos as image URLs. 4. Under **Login Page Customisation**, open **Select a background type** under **Right panel customization** and pick what fills the right panel of the login page: **Add background color** (one **Background color**), **Add background gradient** (a **First color** and a **Second color**) or **Image URL** (an image address in **Add image URL**). Once chosen, the image type reads **Add background image**. Changing the type clears the values of the previous one. 5. Click **Create**. 6. To apply the theme to everyone, select it as the **Default theme**. Users who chose another theme in their profile keep theirs. | Property | Use | | --- | --- | | **Background color** | Page background | | **Paper color** | Cards and panels | | **Navigation color** | Navigation | | **Primary color** | Buttons, links and highlights | | **Secondary color** | Secondary highlights | | **Accent color** | Selected items | | **Text color** | All text. Keep enough contrast with the paper and navigation colors | | **Logo URL** | Expanded left navigation | | **Logo URL (collapsed)** | Collapsed left navigation | | **Logo URL (login)** | Login page | A logo field takes the web address of an image, a path on the platform that starts with `/`, or the image itself as a base64 data URL, such as `data:image/png;base64,...`. A data URL keeps the theme working when the platform cannot reach the image host. Use a wide image for **Logo URL** and **Logo URL (login)**, and a square one for **Logo URL (collapsed)**: each logo is scaled down to fit its place. An empty field keeps the OpenCTI logo. While a user works in a draft, the navigation shows the orange OpenCTI logos instead of yours. To copy a theme to another platform, open its menu (⋮) and choose **Export**: you get a JSON file. **Delete** removes a custom theme. The default theme cannot be deleted: select another **Default theme** first. ### The theme file {#the-theme-file} **Import a theme** takes one JSON file holding one theme, with the keys of an export. You can also write it by hand, for example from your brand guide: | Key | Field | | --- | --- | | `name` | **Name**. Required | | `theme_background`, `theme_paper`, `theme_nav`, `theme_primary`, `theme_secondary`, `theme_accent`, `theme_text_color` | The seven colors, in that order of the table above, as hexadecimal values. Required | | `theme_logo`, `theme_logo_collapsed`, `theme_logo_login` | The three logos. Optional | | `theme_login_aside_color`, `theme_login_aside_gradient_start`, `theme_login_aside_gradient_end`, `theme_login_aside_image` | The right panel of the login page: one color, two gradient colors, or an image. Optional | The import fails with **Failed to import theme** when a theme of the same name exists: change the `name` in the file, or delete the other theme first. *(OpenCTI 7.261030 and later)* The import also refuses a file with a key that is not in the table, a color that is not hexadecimal, or a logo or image that is not an `http` or `https` address, a path starting with `/`, or a PNG, JPEG, GIF, WebP or SVG data URL. **Example: Brand the platform for Example CERT** Example CERT wants its own colors on the platform it shares with member hotel chains, and its logo on the login page. The communications team sends the colors; the logos are on the CERT website. The administrator writes `example-cert.json` and imports it with **Import a theme**: ```json { "name": "Example CERT", "theme_background": "#0b1d33", "theme_paper": "#12294a", "theme_nav": "#081526", "theme_primary": "#2fa4d9", "theme_secondary": "#f2a900", "theme_accent": "#7fd1f5", "theme_text_color": "#e8eef5", "theme_logo": "https://www.example.com/brand/example-cert-wide.png", "theme_logo_collapsed": "https://www.example.com/brand/example-cert-square.png", "theme_logo_login": "https://www.example.com/brand/example-cert-wide.png", "theme_login_aside_gradient_start": "#0b1d33", "theme_login_aside_gradient_end": "#2fa4d9" } ``` The theme appears in the **Themes** card. Once it is selected as the **Default theme**, users who kept the default see the Example CERT colors and logo when they reload the page, and the login page shows a blue gradient beside the logo. ## Check dependencies and managers {#check-dependencies-and-managers} *(OpenCTI 7.261030 and later)* The **Dependencies** card gives the version of each service the platform relies on: the **Search engine** (Elasticsearch or OpenSearch), **RabbitMQ**, **Redis** and, once registered, **XTM One**. The **Managers** card lists the background managers, grouped by domain, such as **Core platform**, **Knowledge**, **Ingestion and connectors**, **Notifications**, **Enterprise Edition** and **Telemetry and Filigran ecosystem**. Filter them with **All**, **Enabled** and **Disabled**, plus **Enterprise Edition** on a Community platform, or search them by name. The [manager reference](https://filigran.io/docs/reference/opencti/managers/) says what each one does and which configuration keys control it. A manager reads **Enabled** when the configuration turns it on and **Disabled** when it turns it off. The status describes the configuration, not whether the manager is working right now. In a cluster, a manager reads **Enabled** when at least one node turns it on. On a Community platform, managers that need the Enterprise Edition read **Enterprise Edition**. ![The Managers card with the All, Enabled and Disabled filters above managers grouped under Core platform, Knowledge, Ingestion and connectors, Notifications, Enterprise Edition and Telemetry and Filigran ecosystem.](https://filigran.io/docs/shots/c9256b54ed211beb8d06411496b9e467191a2ae8a7f07b0826356adb7f2d241c.webp) To turn a manager on or off, set its `enabled` key in the [Engines, Schedules and Managers](https://filigran.io/docs/reference/opencti/configuration/#engines-schedules-and-managers) section of the configuration and restart the platform. [How OpenCTI works](https://filigran.io/docs/opencti/concepts/architecture/) explains what each manager does. ## Customize beyond the parameters {#customize-beyond-the-parameters} Three customizations have no field on this page. They are configuration keys, read when the platform starts, so a change needs a restart. | Key | Environment variable | Default | Effect | | --- | --- | --- | --- | | `app:translations` | `APP__TRANSLATIONS` | `{}` | Replaces labels of the interface, per language. A JSON object maps a language code, such as `en-us` or `fr-fr`, to the labels to replace and their new text. A label you do not list keeps its built-in text | | `app:script_snippet` | `APP__SCRIPT_SNIPPET` | empty | HTML inserted in every page of the interface, such as an inline `