OpenCTI 7 Threat Intelligence Platform
Deploys the OpenCTI 7 stack, an open-source platform for managing cyber threat intelligence as a STIX 2.1 knowledge graph. It includes the platform, three workers, Elasticsearch, Redis, RabbitMQ, a Railway Bucket and the ten built-in connectors from the official Docker setup.
What you get
- OpenCTI platform and three worker replicas, all images pinned to 7.261008.0
- Elasticsearch 8.19 (volume), RabbitMQ 4.3 (volume) and Redis 8.2 (volume)
- A Railway Bucket for uploaded files, imports and exports instead of MinIO
- Ten connectors for STIX, CSV and text export, document and YARA import, and MITRE ATT&CK and OpenCTI reference data
- Generated credentials and an admin account created on first start
Good for
- A central threat intelligence knowledge base for a SOC or CERT team
- Mapping threat actors, campaigns and malware to MITRE ATT&CK techniques
- Importing PDF and HTML threat reports and extracting indicators
- Sharing curated intelligence as STIX 2.1 bundles, CSV or TAXII feeds
Cost
Memory across about a dozen services drives cost. Measured locally right after the reference-data import: the platform used about 0.6 GB, Elasticsearch about 2.6 GB with a 2 GB heap, and the whole stack roughly 4.5 GB at idle; usage grows with feeds and data.
Services in this template
- OpenCTI Worker · image
opencti/worker:7.261008.0 - connector-analysis · image
opencti/connector-import-document:7.261008.0 - connector-import-external-reference · image
opencti/connector-import-external-reference:7.261008.0 - connector-export-file-csv · image
opencti/connector-export-file-csv:7.261008.0 - connector-import-file-yara · image
opencti/connector-import-file-yara:7.261008.0 - connector-mitre · image
opencti/connector-mitre:7.261008.0 - Redis · image
redis:8.2 - RabbitMQ · image
rabbitmq:4.3.6-management - connector-import-document · image
opencti/connector-import-document:7.261008.0 - OpenCTI · image
opencti/platform:7.261008.0 - connector-export-file-txt · image
opencti/connector-export-file-txt:7.261008.0 - connector-export-file-stix · image
opencti/connector-export-file-stix:7.261008.0 - Elasticsearch · from
baranberkay96/opencti-railway - connector-opencti · image
opencti/connector-opencti:7.261008.0 - connector-import-file-stix · image
opencti/connector-import-file-stix:7.261008.0
Questions people ask
How do I log in?
Wait until the OpenCTI service is healthy and open its public URL. Log in with APP__ADMIN__EMAIL (default admin@opencti.io) and the generated APP__ADMIN__PASSWORD from the service variables, then change the password. MITRE ATT&CK and OpenCTI datasets begin importing immediately; those two connectors may restart once or twice on first start.
What drives the cost?
Memory, mainly Elasticsearch (2 GB heap) and the platform, across about a dozen services. Hobby is the minimum plan and Pro is recommended for real feeds, since Elasticsearch fills Hobby's 5 GB volume limit quickly.
How do I add more connectors?
OpenCTI's connector manager needs Docker, which Railway does not offer. Add each extra connector as its own Railway service using the image opencti/connector-{name}:7.261008.0, the OPENCTI_URL and OPENCTI_TOKEN from an existing connector, a new UUIDv4 CONNECTOR_ID and the connector's own settings.
How do I upgrade or send email?
Change the tag on the platform, worker and every connector together; the platform migrates its data on start. Notifications use SMTP only, which Railway allows on the Pro plan; set the SMTP__ variables on the OpenCTI service.
What are the licences?
OpenCTI Community Edition is Apache-2.0; Enterprise Edition features fall under the Filigran EE licence and stay inactive. Elasticsearch is offered under AGPL-3.0, SSPL-1.0 or Elastic License 2.0 (choice) and Redis 8 under RSALv2, SSPLv1 or AGPLv3.
Full template README
Deploy and Host OpenCTI with Railway
OpenCTI is an open-source platform for structuring, storing and sharing cyber threat intelligence as a STIX 2.1 knowledge graph. This community template deploys the full OpenCTI 7 stack on Railway: the platform, three workers, Elasticsearch, Redis, RabbitMQ, a Railway Bucket for files, and the ten built-in connectors from the official Docker setup.
About Hosting OpenCTI
OpenCTI's platform serves the web UI and GraphQL API and stores its knowledge graph in Elasticsearch. Redis holds caches and live event streams, RabbitMQ distributes work, and S3-compatible storage keeps uploaded reports and exports. Workers consume the queues and write data through the API, and connectors import or export data. This template follows the official docker-compose service by service, pins every image to the same release, generates all credentials, stores files in a Railway Bucket instead of MinIO, and loads the MITRE ATT&CK and OpenCTI reference datasets on first start.
Common Use Cases
- Building a central threat intelligence knowledge base for a SOC or CERT team
- Mapping threat actors, campaigns and malware to MITRE ATT&CK techniques
- Importing PDF and HTML threat reports and extracting indicators and observables
- Sharing curated intelligence as STIX 2.1 bundles, CSV or TAXII feeds
- Connecting external feeds and enrichment services through OpenCTI connectors
Dependencies for OpenCTI Hosting
- OpenCTI platform, worker and connectors 7.261008.0 (official
opencti/*images) - Elasticsearch 8.19
- Redis 8.2 (Railway Redis)
- RabbitMQ 4.3 with the management plugin
- S3-compatible object storage (Railway Bucket)
Deployment Dependencies
- OpenCTI Docker setup (official compose this template follows): https://github.com/OpenCTI-Platform/docker
- OpenCTI documentation, installation and configuration: https://docs.opencti.io/latest/deployment/installation/
- OpenCTI connectors catalog: https://github.com/OpenCTI-Platform/connectors
- Railway Storage Buckets: https://docs.railway.com/storage-buckets
Implementation Details
| Service | Image | Role |
|---|---|---|
| OpenCTI | opencti/platform:7.261008.0 |
Web UI, GraphQL API, background managers; public domain |
| OpenCTI Worker (3 replicas) | opencti/worker:7.261008.0 |
Processes queued bundles into the knowledge graph |
| connector-export-file-stix / -csv / -txt | opencti/connector-export-file-* |
Exports to STIX 2.1, CSV and plain text |
| connector-import-file-stix, connector-import-document, connector-import-file-yara | opencti/connector-import-* |
Imports STIX files, PDF/text/HTML reports and YARA rules |
| connector-analysis | opencti/connector-import-document |
Content analysis of reports |
| connector-import-external-reference | opencti/connector-import-external-reference |
Fetches external reference URLs as files |
| connector-opencti, connector-mitre | opencti/connector-opencti, opencti/connector-mitre |
Reference datasets (markings, sectors, countries) and MITRE ATT&CK |
| Elasticsearch | built from services/elasticsearch (elasticsearch:8.19.21) |
Knowledge graph indexes (volume) |
| RabbitMQ | rabbitmq:4.3.6-management |
Work queues (volume) |
| Redis | redis:8.2 |
Cache, streams, locks (volume) |
| Bucket | Railway Bucket | Uploaded files, imports, exports |
First login: wait until the OpenCTI service is healthy, open its public URL and log in with APP__ADMIN__EMAIL (default admin@opencti.io, change it before the first deploy if you like) and the generated APP__ADMIN__PASSWORD from the OpenCTI service variables. Change the password in your profile. MITRE ATT&CK and the OpenCTI datasets start importing immediately; on the very first start these two connectors may restart once or twice while their service accounts are created.
Adding connectors: OpenCTI's connector manager normally starts containers through Docker, which Railway does not offer. Add each extra connector as its own Railway service with the image opencti/connector-{name}:7.261008.0, OPENCTI_URL and OPENCTI_TOKEN copied from an existing connector, a new UUIDv4 CONNECTOR_ID, and the connector's own settings from the connectors catalog.
Scaling: raise the OpenCTI Worker replica count for faster ingestion. Give Elasticsearch more memory together with a larger ES_JAVA_OPTS heap, and the platform more memory together with NODE_OPTIONS, as your knowledge base grows.
E-mail: OpenCTI sends notifications over SMTP only. Add SMTP__HOSTNAME, SMTP__PORT, SMTP__USERNAME, SMTP__PASSWORD and SMTP__USE_SSL to the OpenCTI service; Railway allows outbound SMTP on the Pro plan.
Versions: every OpenCTI image is pinned to 7.261008.0. Upgrade by changing the tag on the platform, worker and all connectors together; the platform migrates its data on start. OpenCTI also publishes an LTS line if you prefer fewer upgrades.
Why Deploy OpenCTI on Railway?
OpenCTI needs several cooperating services. Railway runs them all in one project with private networking, persistent volumes, a managed S3 bucket and an HTTPS domain, so the complete stack, with reference data loaded, comes up from one template. You can scale workers and give Elasticsearch more resources from the dashboard as your intelligence grows.
View OpenCTI 7 Threat Intelligence Platform on railway.com
Similar templates
| Template | Category | DeploymentsDeploys |
|---|---|---|
| Chatwoot A customer communication platform | Other | 5,871 |
| Ubuntu-Linux Ubuntu terminal accessible via web browser | Other | 4,926 |
| Ubuntu SSH + Claude ARA TM —SSH server with root access + Claude Code pre-installed. | Other | 4,682 |
| Debian-Linux Debian terminal accessible via web browser. | Other | 2,883 |
| Code Server VS Code in the browser | Other | 2,787 |
| Kali Linux (Web Terminal) Instant Kali Linux browser terminal powered by ttyd | Other | 2,632 |