·Cyber Security › Threat Intelligence

Setting up OpenCTI at home: a step-by-step guide

Install OpenCTI via Docker Compose, configure your first admin login, and wire up three free intel connectors to populate the graph.

OpenCTI is an open-source threat intelligence platform built around the STIX 2.1 data model. It gives you a searchable knowledge graph of threat actors, campaigns, tools, and IOCs — a place to keep the context you otherwise lose between browser tabs.

This is a step-by-step guide to running it at home from scratch.

Prerequisites

  • A Linux host (VPS or home server) with at least 8 GB RAM — more is better. OpenCTI boots ElasticSearch + Redis + RabbitMQ + MinIO alongside the app itself. On anything under 8 GB you’ll get OOM kills.
  • Docker and Docker Compose v2 installed. On Ubuntu:
sudo apt update && sudo apt install -y docker.io docker-compose-v2
sudo usermod -aG docker $USER

Log out and back in for the group change to take effect.

  • About 20 GB of free disk for the initial dataset and logs.

1. Clone the official Docker stack

OpenCTI publishes a reference Docker Compose repo:

git clone https://github.com/OpenCTI-Platform/docker.git opencti-docker
cd opencti-docker

2. Generate secrets and configure the .env file

OpenCTI needs several UUIDs for internal tokens. Generate them:

UUID_ADMIN=$(uuidgen)
UUID_HC=$(uuidgen)
UUID_SYNC=$(uuidgen)
UUID_HISTORY=$(uuidgen)
UUID_INDEX=$(uuidgen)

Copy the example env file:

cp .env.sample .env

Edit .env with your editor and set — at minimum:

OPENCTI_ADMIN_EMAIL=you@example.com
OPENCTI_ADMIN_PASSWORD=<pick-a-strong-password>
OPENCTI_ADMIN_TOKEN=<paste $UUID_ADMIN>
MINIO_ROOT_USER=opencti
MINIO_ROOT_PASSWORD=<another-strong-password>
RABBITMQ_DEFAULT_USER=opencti
RABBITMQ_DEFAULT_PASS=<yet-another-strong-password>
ELASTIC_MEMORY_SIZE=4G
CONNECTOR_HISTORY_ID=<paste $UUID_HISTORY>

Do not keep the default ChangeMe admin password. OpenCTI will be discovered by scanners the moment it’s reachable from the internet.

3. Boot the stack

docker compose up -d

First boot takes 10–15 minutes because ElasticSearch has to build its indices. Watch the logs:

docker compose logs -f opencti

Wait for OpenCTI is ready before continuing.

4. First login

Open http://<your-host>:8080 and log in with the email and password from your .env. You should land on an empty dashboard.

5. Add your first connectors (the point of OpenCTI)

Connectors are workers that pull data in from external feeds. Without them the UI is empty. The three best “free + zero friction” ones to start with:

MITRE ATT&CK — populates actors, techniques, malware, and tools. Uncomment the connector-mitre service in docker-compose.yml, set its ID to a new UUID, and docker compose up -d.

AlienVault OTX — community-submitted indicators. Free API key at https://otx.alienvault.com. Uncomment connector-alienvault, paste your key.

abuse.ch URLhaus — malicious URLs, no API key needed. Uncomment connector-urlhaus.

Each connector imports on an interval (default an hour). After the first cycle you’ll see entities populating under Threats → Intrusion sets and indicators under Observations.

6. Exposing it safely

Don’t port-forward :8080 to the internet. Two sane options:

  • Cloudflare Tunnel with Cloudflare Access on top, so only your email can log in.
  • Tailscale/WireGuard, keeping OpenCTI reachable only from your private network.

7. Routine maintenance

  • Back up the data/ directory (ElasticSearch indices, MinIO objects).
  • Update by pulling the latest tags for each image in docker-compose.yml, then docker compose up -d. Breaking changes are called out in the GitHub releases.
  • Prune old logs: docker compose logs --tail=0 -f to tail new only.

That gets you a working OpenCTI. The companion post on setting up MISP covers the other half of a useful home threat-intel setup.