OpenCTI Hands-on Handbook繁中

OpenCTI Architecture: Platform, Workers and Dependencies

Understand the roles of OpenCTI, workers, connectors, Elasticsearch, Redis, RabbitMQ and S3 before preparing a reproducible lab.

Handbook v1.10.1OpenCTI 7.261124.0About 5 minutes

Understand the system before reaching for the restart button.

The first time you open an OpenCTI Compose file, you may wonder why a single intelligence platform needs so many services. You have not missed anything: the platform assigns different jobs to components suited to them. This chapter explains those roles before considering the resources your lab needs.

By the end, you should be able to answer three questions: where web requests arrive, why an import can still be waiting in a queue, and which data must survive a container rebuild. These answers will also guide later troubleshooting.

Seven roles, each with a specific job.

ComponentService name in this labWhat it does
OpenCTI platformopenctiProvides the web interface, API, and core knowledge management features.
Search and knowledge storageelasticsearchHolds searchable data and indexes. Disk capacity, memory, and backups are essential.
Coordination and cachingredisSupports caching, events, and coordination. The word ‘cache’ does not mean it is safe to clear arbitrarily.
Message queuerabbitmqQueues work and passes it between components. Receiving a job does not mean the job is complete.
Object storageminioProvides S3-compatible storage for files and related content. This lab uses Silo.
Background processingworkerProcesses import jobs retrieved from the queue.
Connectorsconnector-import, connector-exportHandle STIX file imports and exports. Different connector types have different triggers.

This table simplifies responsibilities to help beginners locate problems. It does not imply that every component follows one linear path. For architecture details and supported alternatives, consult the official architecture and infrastructure requirements.

Conceptual flow · Not a network packet capture
Reader's browser → OpenCTI UI / GraphQL API
                          ↕
               Elasticsearch / Redis / S3

Data source → Connector → Import queue → Worker → Platform knowledge
                                             ↓
                             Verify with queries and relationships

If a connector is running but new objects are missing, trace its jobs and the worker rather than immediately assuming the source is empty. If the API returns an object but the interface does not show it, check filters, markings, and user permissions next.

Define the lab's scope first.

This handbook uses a single node, one worker, and a small teaching dataset. The initial lab does not enable the whole XTM suite or pull large external feeds. This keeps results traceable: which command created a record, and which check established that it exists.

The host is an Apple Silicon arm64 machine with 64 GB of physical memory. A dedicated Colima virtual machine has 6 CPUs, 16 GiB of memory, and a 60 GiB data disk. This is the tested configuration, not a guarantee for every workload or a statement of official minimum requirements. Production sizing also depends on retention, concurrent queries, import throughput, attachments, and backup space.

One host does not mean one localhost.

Inside a container, localhost refers to that container itself. The worker reaches the platform through http://opencti:8080; in the Mac browser, use http://localhost:18080. Mixing up these addresses is a common first mistake and an easy one to fix.

We bind only the platform's port 18080 to 127.0.0.1. Elasticsearch, Redis, RabbitMQ, and object storage do not publish external ports. The lab's database settings are not a production configuration for an internet-facing service. Read the security chapter before providing access to a team.

Confirm Docker works before troubleshooting OpenCTI.

On Linux, use Docker Engine with the Compose plugin. On Windows, use a configured Linux container environment. On macOS, Docker Desktop or Colima can provide that environment. Installation differs by operating system; choose the appropriate version from the official Docker site. This lab follows the macOS workflow provided by the official Colima project.

macOS / Homebrew · Preparation used for this lab
brew install colima docker docker-compose
colima start --profile opencti-tutorial --cpu 6 --memory 16 --disk 60 --vm-type vz
docker context show
docker version
docker compose version

If Docker cannot find Compose, follow the Homebrew installation output to add /opt/homebrew/lib/docker/cli-plugins to the ~/.docker/config.json file's cliPluginsExtraDirs array. This path is for Homebrew on Apple Silicon. Do not overwrite the entire existing configuration or paste credentials from it into an issue report.

If Docker is already available, you do not need another Colima environment. First verify that the Docker context points to the intended local environment, so you do not accidentally create the lab containers on a remote host.

Check Elasticsearch kernel settings inside the Linux environment running the containers.

This lab sets vm.max_map_count to 1048576. On macOS, containers run inside a Linux virtual machine, so change the value there rather than applying the same command to macOS itself. This is a host-level setting affecting that VM; verify it again after rebuilding the environment.

Colima environment used in this lab
colima ssh --profile opencti-tutorial -- sudo sysctl -w vm.max_map_count=1048576
colima ssh --profile opencti-tutorial -- sysctl vm.max_map_count

For a native Linux deployment, follow the official Elastic guidance for vm.max_map_count and separately configure persistence across reboots. One successful command does not establish that a setting is permanent.

Your acceptance checks are: the Docker client can reach the server, Compose is available, the context is correct, and you know where data will be stored. Once these are in place, start the services in the next chapter.

Want to understand how more security tools work? Explore security tools and concepts at SecTools.tw.

Every step is worth recording

Finished this chapter?

Mark it when you are ready. Opening or scrolling through a chapter does not complete it automatically. You can undo your choice.

View my progress

Progress is saved only in this browser. No account or automatic device sync. Clearing site data also removes progress.

KEEP YOUR CURIOSITY ALIVE

Make sense of intelligence.
Keep exploring real security questions.

Explore incidents, perspectives and tools at SecTools.tw, and find your next question worth investigating.

SecTools.tw

Search the handbook