OpenCTI and TheHive integration

Import TheHive cases, alerts and observables into OpenCTI as incidents so investigations enrich the knowledge graph, with TLP filters and severity mapping set before data flows.

On this page

How the OpenCTI and TheHive integration works

A team that runs TheHive for case management and OpenCTI for threat intelligence usually wants alerts and investigations to feed the knowledge graph without moving case work out of TheHive. The supported method is a connector from the OpenCTI connectors repository that imports TheHive records into OpenCTI as incidents and observables. The data flows one way, from TheHive into OpenCTI, so the connector enriches intelligence with what analysts found during investigations. It does not turn OpenCTI into a case manager: tasks, assignments, case workflow and case-level collaboration stay in TheHive, and OpenCTI holds the structured record of what was observed and how it relates to other entities.

Before deployment, confirm the exact connector name, its version and its configuration keys in that connector's documentation in the repository. Settings such as the TheHive URL, credentials, filters and import scope are defined by the connector, not by this page, and they change between releases. Check that the connector version matches the OpenCTI version you run, because OpenCTI uses date-based release numbers and connector compatibility follows the platform's release line. Ask the connector maintainers, or your TheHive administrator, which TheHive record types are covered and how case status and severity are represented in the import.

OpenCTI is developed by Filigran and stores its data in a knowledge schema based on the STIX2 standards, so every TheHive field has to land on a STIX object type with a defined meaning. Mapping decisions matter: a TheHive alert, a case and an observable are not the same kind of record, and importing them as the wrong STIX entity distorts later searches, reports and relationships. Decide in advance which TheHive records become incidents, which become observables, and how TLP markings and severity values translate, then test that mapping on a small set of cases before importing the full history.

What a TheHive to OpenCTI integration needs before setup

The integration depends on six things lining up before the connector is configured: the OpenCTI release you run, a healthy platform and its dependencies, a TheHive version and API access you can rely on, a scoped service account, a working network path, and an owner for the policy rules. Gaps in any one of them tend to show up later as missing cases or wrongly classified intelligence.

Choose the OpenCTI release line

Decide between the Community Edition and the Enterprise Edition, and between a regular release and an LTS line. Regular releases use the x.YYMMDD.z format, while LTS releases use x.YYMMDD.z-lts.n and require a specific LTS license key. Record the exact version you will run, because the connector's compatibility depends on it. Confirm the minimum OpenCTI version the TheHive connector supports in its documentation rather than assuming it.

Product life cycle docs

Running platform and dependencies

The connector writes into a working OpenCTI platform, so the platform, its Python workers and its connectors must already run. Confirm the backing services are in place: Elasticsearch 8.0 or OpenSearch 2.9 or later, Redis 7.1 or later, RabbitMQ 3.11 or later, and S3-compatible storage such as MinIO. Check that the queues drain and the search index is healthy before adding a new import, since a backlog will make imported cases look delayed.

Deployment overview

TheHive version and API access

Identify the TheHive version you run and confirm that its REST API is reachable and enabled for the integration. Confirm the minimum TheHive version and the connector's runtime requirements in the connector documentation, not from memory. Note whether your TheHive instance uses a custom base path or a reverse proxy, since those change the API URL the connector must call.

Dedicated TheHive service account

Create a service account in TheHive for the connector rather than reusing a personal analyst login. Give it read access only to the cases, alerts and observables you intend to import, and generate a dedicated API key for it. Store that key in your secrets manager, and plan a rotation date so the connector does not stop silently when the key expires.

Network paths and certificates

Map the path between the connector host and TheHive, including firewall rules, proxies and DNS names. If TheHive is served over TLS with an internal certificate authority, add that CA to the connector's trust store and confirm hostname validation passes. Test the connection from the same host and runtime that will run the connector, because a path that works from a laptop may fail from the container network.

Named owner for TLP and severity policy

Assign one person or team to decide which TLP markings may be imported, how TheHive severity values map to OpenCTI incident severity, and who signs off on changes. Without a named owner, filter settings drift and sensitive or low-value cases end up in the shared knowledge graph. Write the mapping down before the first run so the team can review it against real cases.

How TheHive records reach the OpenCTI knowledge graph in stages

The flow starts in TheHive, where the connector reads cases, alerts and observables through its API using a service account. The connector applies TLP and severity filters before it hands messages to RabbitMQ, which decouples the import from the platform. Python workers then write the records into OpenCTI, where incidents and observables join the knowledge graph. Check the trust boundary at the connector, the scope of the service account, and the filters before enabling the import.

Records cross the trust boundary through a service account and are filtered before they are written.

Configuring the TheHive connector in order

This sequence takes you from a scoped TheHive service account to scheduled imports of cases, alerts and observables into OpenCTI as incidents. Each step closes with a check, so a bad filter or credential is caught in a test environment before any production data moves.

  1. Create a scoped TheHive service account

    Ask your TheHive administrator to create a dedicated service account for the OpenCTI connector, not a personal analyst login. Grant read access only to the organizations and case types you have agreed to import, and confirm the account cannot modify cases, alerts or observables. Check the grant by signing in as that account and confirming it sees the in-scope cases and nothing outside them.

  2. Generate and store the API key securely

    Generate an API key for the service account in TheHive and store it in your secrets manager or the environment that injects secrets into your OpenCTI containers, not in a configuration file committed to version control. Record who owns the key and when it was issued so rotation can be planned. Confirm the key is absent from the connector configuration file and from any logs by searching the deployment repository and container settings.

  3. Deploy the connector in a test environment

    Deploy the TheHive import connector from the OpenCTI connectors repository into a test OpenCTI environment, using the settings documented for that connector version. Point it at a TheHive test instance or a non-production organization, and reference the API key through your secrets mechanism. Confirm the connector registers in the OpenCTI connector list and reports a healthy state before you go further.

  4. Set TLP and severity filters before the first run

    Before any import runs, configure the TLP filter so only cases and observables at the marking levels you approved are brought in, and map TheHive severity values to the OpenCTI fields your analysts use. Write the mapping down and have the intelligence owner sign it off, since it decides which records become incidents. Check the configuration by reviewing the saved filter values in the connector settings and confirming they match the approved table.

  5. Run a limited import and verify the output

    Trigger a manual run limited to one known test case or a narrow, time-bounded window. Open the result in OpenCTI and confirm the case appears as a single incident, with its alerts and observables linked to it rather than duplicated as separate objects. Review the connector logs for rejected records and confirm each rejection has a reason you understand. Repeat with a second case if the first looks correct.

  6. Enable scheduled runs after the check passes

    Only after the limited import produces the expected incidents, observables and rejection logs, enable scheduled runs in the test environment and let it run through a few cycles. Confirm each scheduled run adds only new or changed records and does not recreate existing incidents. Once the results hold, promote the same configuration to production with the same filters, the same secret reference and a documented owner for the connector.

How TheHive fields map to OpenCTI objects

This table pairs each TheHive object with the OpenCTI object it would become, the decision your team must make for it, and what to confirm before import. Use it as a planning checklist: the mapping choices are yours to make, but the exact field-level behavior must be checked in the connector's own configuration and documentation.

TheHive objectOpenCTI objectMapping decisionWhat to confirm
CasesIncidentsDecide whether every case becomes an OpenCTI incident or only cases that meet a severity, tag or status filter.Verify in the connector configuration which case fields populate the incident and whether filters can be set per case state.
AlertsIncidents, observables or excludedChoose whether alerts are imported as incidents, attached as observables, or left out because they are often noisy before triage.Confirm whether the connector imports alerts at all and how alerts relate to cases in your TheHive version.
ObservablesSTIX observablesDecide which observable types (for example IP addresses, domains, hashes) should enter the knowledge graph and which stay in TheHive.Verify the observable type mapping and how observables are linked to the imported incident in the connector documentation.
TLP markingsMarking definitionsSet which TLP levels are imported and which are skipped, so restricted material does not spread to wider OpenCTI audiences.Confirm the TLP-to-marking mapping and whether TLP filters are applied at import or only at display.
TheHive severityIncident severityAgree a severity scale translation so SOC priorities read consistently in OpenCTI reports and dashboards.Verify the severity values the connector maps and whether any values fall back to a default.
Case tagsLabelsDecide which tags are useful as labels and which are internal noise that should not reach the shared graph.Confirm how tags are imported, whether they are filtered, and how long label lists stay manageable.
Case status and closureIncident state recorded in OpenCTIDecide whether closed cases update or freeze the OpenCTI incident, and who owns reopened cases.Verify how status changes propagate on re-import and whether closure is recorded as a field or only as a date.

How TLP and severity filters decide what enters the graph

Set your TLP and severity rules before the first import, because anything written into a shared OpenCTI instance becomes visible to everyone who has access to those objects. A case imported from TheHive as an incident, with its observables and linked reports, is not easy to pull back out once analysts have enriched it, linked it to threat actors or exported it through a stream. The decision to make early is which TheHive cases, alerts and observables qualify at all. The two main levers are a severity threshold, so that only cases above a chosen level are imported, and a TLP filter, so that cases carrying restricted markings are excluded. Use both, and write down the reason for each threshold so the rule can be reviewed later.

Filters are only one layer. OpenCTI also controls visibility through markings and, in the Enterprise Edition, through organization-based data segregation, which limits which organizations' members can see particular data. If your instance is shared between teams or partners, decide which imported incidents should carry which marking and who should see them. Organization-based data segregation is an Enterprise Edition feature, so confirm with Filigran whether your intended setup needs it before you plan around it. In the Community Edition, you will need to rely on markings, a separate instance, or a narrower import scope for segregation. Test the access model with a test account from each group before importing production cases.

Confirm two behaviors with the connector documentation and a dry run on sample data. First, which TLP levels the TheHive import connector filters on, and whether the filter is an allow list or a minimum level. Second, what it does with a case or observable that has no TLP marking. Some teams assume unmarked data is treated as public, while others expect it to be skipped or assigned a default marking. Check the connector's configuration keys for TLP handling, then verify the result by importing a small set of cases with each condition and reviewing the markings written to OpenCTI. Record the outcome, since it determines what your analysts can rely on when they search the graph.

Choosing what to import from TheHive

This scope imports TheHive cases as incidents in OpenCTI and leaves raw alerts and loose observables out. It produces the smallest, most curated view of your own investigations, so the graph reflects confirmed work rather than every detection that fired. The trade-off is that OpenCTI sees only what the case team chose to open, so early signals that never became cases stay in TheHive.

  • Graph gain: incidents, their descriptions and any attached observables that the case carries, linked to your existing threat actors and campaigns where analysts add those links.
  • Noise added: low. Volume tracks case count, which is usually far below alert count.
  • TheHive team maintains: case templates, severity and TLP discipline on cases, and clean case closure so state filters behave as expected.
  • OpenCTI analysts should expect: fewer incidents, each with richer context, and gaps for activity that never escalated.

Before choosing this scope, confirm with the TheHive team that cases carry the observables and TLP markings you need, because the scope only works if those fields are filled in on the case itself.

Security controls for the TheHive connector

The TheHive connector holds a privileged path between two investigation platforms, so its access, secrets, filters and logging need the same care as the platforms themselves. The cards below cover the controls to set before the first import and the checks to repeat after each change.

Least-privilege TheHive service account

Create a dedicated TheHive user for the connector and grant access only to the organizations and case types it needs to import. Avoid reusing an analyst or administrator account, because a leaked key would then expose every case. Confirm in the connector documentation which TheHive objects it reads and whether it writes anything back to TheHive, and grant only those permissions.

API key storage and rotation

Store the TheHive API key and the OpenCTI token in a secrets manager rather than in plain environment files or container definitions. Name one owner who is responsible for rotating both credentials and for revoking them when the connector host changes. Confirm how the connector reads and stores credentials, and whether it can load them from a file or a secret reference.

TLP enforcement before publishing

Map TheHive TLP markings to OpenCTI markings and filter out restricted material before it reaches wider audiences. Test with sample cases marked TLP:RED and TLP:AMBER and check which OpenCTI groups can see the resulting incidents and observables. Treat any gap as a blocker for go-live, since imported observables can later flow into exports and other connectors.

Network restriction to the connector host

Allow only the connector host to reach the TheHive API, using firewall rules or security groups that name that host explicitly. Keep the OpenCTI platform and its workers off that path unless they need it. Confirm whether the connector supports certificate verification options for HTTPS calls to TheHive, and set them to verify the TheHive certificate chain rather than skipping checks.

Logging and audit trails

Record connector runs, errors and filter changes on the connector host and in TheHive's own audit records, and keep them outside the systems being logged. Activity monitoring and audit logs are an OpenCTI Enterprise Edition feature, so Community Edition teams need another source for platform-side evidence. Review logs on a fixed schedule so failed imports or unexpected volume changes are noticed.

Enterprise Edition docs

Change control for filter edits

Treat every change to organization, case type, status or TLP filters as a reviewed change with a named approver, a written reason and a test import in a non-production instance. Filter edits can silently widen what enters the knowledge graph or stop cases from arriving. Keep the previous filter configuration so a rollback takes minutes rather than a rebuild.

How to test the import before the team relies on it

Run a seeded test before anyone works a live case through the import. Create a test case in TheHive with a known set of observables, a known severity, a known label set and a known TLP marking, then confirm that the OpenCTI incident, its observables, labels and marking match the mapping table line for line. Use test data that exercises every mapping you rely on, including one observable type you expect to be skipped, so the test shows the filter working as well as the mapping. Record the TheHive case identifier next to the OpenCTI identifier so every later check can be traced back to the same seeded case. Confirm the expected values with the people who own the mapping, not only with the connector configuration, because the mapping table is the document the SOC will be held to.

Test access separately from data. Create a restricted TheHive case, then sign in to OpenCTI as a user who should not see it and confirm it does not appear in search, in the incident list or through a direct link to its identifier. Repeat the check with a user who has the intended access and confirm the case does appear. Next, test the lifecycle: close the seeded case in TheHive and confirm the OpenCTI behavior matches what your documented rule says, whether that is an update, a status change or an ignored event. Then reopen it and check the same thing again. For the backlog, import a large batch of historical cases while the connector is running, watch queue depth and worker behavior in OpenCTI, and confirm that the live cases still arrive within the window your analysts expect. The exact load you can handle depends on your sizing and your own data, so measure it in your environment instead of assuming it.

Write every result into a test record with the date, the OpenCTI version, the TheHive version, the connector configuration, the test case identifiers and the pass or fail outcome for each check. Keep the record with the change ticket so an auditor or a new engineer can see what was verified. Repeat the full test after every OpenCTI upgrade and every TheHive upgrade, since either side can change how fields, markings or case states are presented. The OpenCTI product life cycle explains which OpenCTI release lines receive fixes, which helps you decide when a retest is due. Do not treat a passing test from an earlier version as evidence for the current one.

Common TheHive to OpenCTI failures and their fixes

This table pairs each common symptom in a TheHive to OpenCTI import with its likely cause and the first check to run. Read it top to bottom when records, markings or severities look wrong, and start with the connector logs and the OpenCTI connector status page before changing configuration. The main takeaway is that most failures trace to credentials, filters, version mismatches or queue health rather than to the data itself.

SymptomLikely causeFirst fix
No records arriving in OpenCTIWrong TheHive URL or API key, network path blocked from the connector container, or a case filter that excludes everythingCheck the connector log for authentication or connection errors, then call the TheHive API from the connector host with the same key. Widen the filter temporarily to confirm data flows.
Duplicate incidents after re-runsImport state was reset or the connector restarted with a start date that predates existing records, so objects were re-createdConfirm the connector's start date and state settings, then review existing incidents in OpenCTI for matching external identifiers before re-importing.
Observables missing or mis-typedTheHive observable data type has no direct mapping in the connector configuration, or the observable was skipped by a filterCompare a sample observable in the TheHive API response with the OpenCTI observable created. Check the connector log for skipped or unmapped types.
TLP markings not appliedMarkings are missing from the TheHive source record, or the TLP mapping in the connector does not match the marking definitions loaded in OpenCTIVerify the TLP value on a source case in the TheHive API response, then confirm the matching marking definitions exist in OpenCTI and that the connector setting refers to them.
Severity values unexpectedSeverity mapping in the connector does not match the TheHive scale in use, so values fall back to a defaultReview the connector's severity mapping against the severity values returned by the TheHive API, then re-import a test case and check the resulting incident priority or severity field.
Connector not registering in OpenCTIConnector version does not match the OpenCTI platform version, or the connector token and connector ID in its configuration are wrongCompare the connector version with the platform version and the connector configuration keys against the connector documentation. Check the connector's entry in the OpenCTI connector status view and its startup logs.
Worker queue backlog on RabbitMQLarge initial import or too few workers for the volume, so messages accumulate faster than they are consumedCheck queue depth in the RabbitMQ management view, then review worker count and platform capacity against the sizing guidance before reducing import scope.

Questions teams ask before connecting TheHive to OpenCTI

How long does an OpenCTI and TheHive integration take to deploy?

No standard duration applies, because the timeline depends on the scope agreed for your environment. Connecting the two platforms is often the smaller part of the work. The main drivers are the number of TheHive organizations in scope, how much case and observable history you want to import, how much cleanup your cases need before they become useful incidents, and how many TLP and severity filter decisions the team must make first. A test scope with a small set of representative cases moves faster than a full historical import, because each import rule has to be reviewed against your sharing policy. Ask for a written plan that lists these items and the acceptance tests, and confirm the timeline against that list. DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

What does an OpenCTI and TheHive integration cost, and what drives it?

The cost has four components, and each has a different payer. Your internal staff time covers TheHive ownership, OpenCTI administration, TLP policy decisions and sign-off on test results. Infrastructure is the second component. The OpenCTI platform needs at least 2 cores and 8 GB RAM, Elasticsearch or OpenSearch needs 2 cores, 8 GB RAM and 16 GB SSD according to the documented sizing, and the deployment also needs Redis, RabbitMQ and S3-compatible storage. These run in your environment and recur as long as the platform runs. The third component is the Enterprise Edition license, which you need only if you want SSO or organization-based data segregation, since both are Enterprise features. Since OpenCTI 7.260224.0, authentication strategies including SSO require Enterprise. The fourth component is any partner fee, which follows a fixed-scope quote. Ask each vendor which items are one-time and which recur, and which assume infrastructure you already run.

Can our own team connect TheHive to OpenCTI without a partner?

Yes, if your team already owns three areas: TheHive administration, OpenCTI administration and the TLP policy that decides what may be shared. Your engineers also need to be comfortable with the platform dependencies, which are Elasticsearch or OpenSearch, Redis, RabbitMQ and S3-compatible storage, and with reading connector logs when imports stall. Many teams find that configuration is the easier part. The harder work is deciding which TheHive organizations map to which OpenCTI scope, how alert and case severity map to incident priority, and which observables may leave the case environment. If one of those three areas sits with another group, or nobody has run OpenCTI in production before, a partner can carry the build and leave your team with runbooks. Confirm internal coverage before you commit to a schedule.

What does the integration need from our team before work starts?

Four inputs decide whether the build moves without delays. First, API access to TheHive, using a service account scoped to the organizations and case types in scope, and a dedicated OpenCTI account whose rights match your access model. Second, a named TLP owner who makes final decisions on which TLP levels import, how they are marked and what happens to material marked above your sharing limit. Third, test cases: a set of sanitized but representative cases, alerts and observables, each with the expected result in OpenCTI, including edge cases such as merged alerts and observables without a TLP marking. Fourth, change windows for the OpenCTI platform, the TheHive side and each connector restart. Name a sign-off owner for the severity mapping too, because an incorrect mapping can misrank incidents for weeks before anyone notices.

Do we need an OpenCTI LTS release for this integration, and what does the license key mean?

The integration itself does not require an LTS release, but many teams choose one for production because it changes less often. OpenCTI regular releases use the format x.YYMMDD.z, and LTS releases use x.YYMMDD.z-lts.n, where the date is the release or LTS branching date. LTS lines arrive every 6 months, each is supported for one year, and consecutive LTS versions overlap by 6 months. After a one-month stabilization period, an LTS release receives only critical bug and security fixes. LTS releases are distributed as container images, but they require a specific LTS license key. Confirm with Filigran that your organization is entitled to the key for the line you choose before you plan the build. Non-LTS releases ship from daily to weekly and suit test environments well.

What happens after go-live: upgrades, connector changes and retesting?

Go-live starts the maintenance cycle. Four areas need planned attention. OpenCTI upgrades arrive as regular or LTS releases, and each one should be retested against the TheHive import cases, because a change to the platform or connector may alter how observables or TLP markings are read. TheHive upgrades can change API responses, so the connector tests must run after each TheHive upgrade too. Keep the TLP and severity mapping in version control alongside the test cases, so that a policy change triggers a documented retest. Watch queue depth and worker health after each change, since asynchronous writes pass through RabbitMQ and Python workers. Ongoing support, upgrades and continuous testing are available as DeployOpen retainers, and you can also run this cycle with your own staff.

What goes wrong first when TheHive cases start flowing into OpenCTI?

Four problems appear most often in the first weeks, and each one has a visible symptom. Duplicate incidents appear when cases or alerts are re-imported after a change in identifiers or a connector restart, so test re-import behavior before go-live. TLP mismatches cause overshare when markings are missing or mapped to a lighter level than the source, so check every marking mapping against your policy. Severity mapping errors place serious cases in low-priority queues, so compare a sample of cases against their OpenCTI incidents each week. Observable volume can grow quickly when every file hash or address in a case becomes an indicator, so decide early which observable types import. Queue backlogs in RabbitMQ or the workers show up as delayed incidents, so alert on queue depth from day one. Each problem is easier to prevent with a written test case than to correct after analysts start relying on the data.

How DeployOpen works on this

DeployOpen plans and builds the OpenCTI and TheHive integration inside your own infrastructure, starting from a written scope that names the case types, TLP filters and severity mapping in use. Each step is tested against your environment and documented so your team can run the connector after handover.

How we scope

  • Engagements are fixed-scope, with the TheHive instance, OpenCTI version and connector configuration agreed in writing before work starts.
  • The written scope lists which TheHive cases, alerts and observables become OpenCTI incidents and which are excluded.
  • Scope records the TLP levels, severity mapping and data owners who approve what is shared into the knowledge graph.

How we build

  • We deploy and configure the connector in your infrastructure, with service accounts and credentials held in your secrets management.
  • Test runs use representative TheHive cases to confirm incidents, observables and relationships land in OpenCTI as designed.
  • We verify TLP filtering and severity mapping with test data so restricted material cannot reach unintended OpenCTI groups.

How we hand over

  • Deliverables include the connector configuration, the field mapping and a runbook for restarts, errors and version changes.
  • We walk your platform and SOC staff through reviewing imported incidents and checking enrichment results in the knowledge graph.
  • Handover documents the access model, rollback steps and the checks your team should repeat after any OpenCTI or TheHive upgrade.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the initial handover.
  • Retainers can cover connector updates when OpenCTI or TheHive versions change, with compatibility checked before each upgrade.
  • Ask for the support hours, response expectations and upgrade responsibilities to be written into the quote before work begins.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.