OpenCTI and Elastic Security integration

Learn how to sync OpenCTI indicators into Elastic Security, generate detection rules and import incidents back, with the licensing, identity and checks a team needs before building it.

On this page

How the OpenCTI and Elastic Security integration works

This section explains how a security team can send curated OpenCTI indicators and observables into Elastic Security, and how Elastic Security incidents can come back into OpenCTI as context. The page covers the supported integration method, the build sequence and the checks that close the integration. The first direction is outbound: OpenCTI selects indicators and observables that meet your filters, and a stream or export connector writes them to Elastic Security's threat intelligence index, where detection rules can match events against them. The second direction is inbound: an import connector reads Elastic Security incidents or alerts and creates the matching records in OpenCTI, so investigations add to the knowledge graph. Both directions carry data between two platforms that each have their own permissions, so the design work starts with deciding which indicator types, confidence levels and incident fields cross the boundary.

Before any design begins, confirm the exact connector name, its current version and its supported options in the OpenCTI connectors repository, and check the Elastic Security documentation for the ingest path, index settings and API authentication that the connector expects for your Elastic deployment. Those sources were not reviewed for this page, so the names and settings described here are only the shape of the work. Also confirm which Elastic subscription tier your deployment needs for the detection features you plan to use, since the subscriptions page groups detection engine, endpoint and single sign-on features under different tiers. Record the answers in the design document, because they decide the minimum OpenCTI version, the credentials the connector holds and whether detection rules are generated on the Elastic side or written by your own detection engineers.

What you need before connecting OpenCTI to Elastic Security

Five things must be in place before the connector runs: a supported OpenCTI platform, an Elastic Security deployment on the right release line, a least-privilege API identity, working network paths with trusted certificates, and a licensing check. Each one is a decision the team makes early, because a gap in any of them usually shows up later as failed syncs or missing detection features.

A running OpenCTI platform

Confirm the OpenCTI platform is healthy and on a release line your team will maintain. OpenCTI uses date-based versions such as 7.261016.0, and LTS builds carry a -lts suffix and require a specific LTS license key. Check the connector's release notes for the minimum OpenCTI version it needs, and confirm that the platform's Elasticsearch or OpenSearch, Redis, RabbitMQ and S3-compatible storage dependencies are healthy before adding another consumer.

Product life cycle docs

Elastic Security on a confirmed release line

Decide whether Elastic Security runs on Elastic Cloud or self-managed infrastructure, then pick the Elastic Stack release line the team will support. Elastic's current lines are 9.5.5 and 9.4.8, with 8.19.23 still maintained. Do not assume the connector supports the newest line. Confirm the supported Elastic version with the connector documentation or the vendor before you upgrade the cluster or lock the target version.

Elastic Security docs

A least-privilege API identity

Create a dedicated Elastic user or API key for the connector rather than reusing an administrator account. Scope it to the indices and Kibana features it writes to and reads from, such as the threat intelligence index and the detection engine for rule creation. Record who owns the credential, where it is stored, and when it rotates. Keep the same identity separate from the one used by analysts so that connector activity is traceable in audit logs.

Network paths and certificates

Map the route from the connector host to the Elastic endpoints, including any proxy, firewall rule or load balancer in between. Elastic clusters commonly use TLS, so collect the CA certificate chain the connector must trust and confirm that its hostname matches the certificate. Test the path from the same host and runtime the connector will use, since a successful browser login does not prove that a service account can reach the API.

Licensing and feature check

Confirm which Elastic subscription covers the features you plan to use. Elastic lists the detection engine, machine learning anomaly detection and case management under Platinum, which is no longer sold to new customers. Endpoint malware and ransomware prevention, host isolation and SAML or OpenID Connect single sign-on sit under Enterprise, and Basic is the free tier. New self-managed buyers should compare Basic, Enterprise and Elastic Cloud before they design the rule set.

Elastic subscriptions

Which Elastic license tier the integration needs

On Elastic Cloud, the feature set you can use depends on the subscription attached to your deployment and the Elastic Security features it includes, not on the self-managed tier table. Elastic Security itself covers the detection engine, prebuilt and custom detection rules, Timeline, Cases and machine learning anomaly detection. Because the cloud route changes how licensing and upgrades are handled, ask your Elastic account team to map each feature the integration uses to the subscription on your deployment before you commit to a design.

  • Subscription mapping: Ask which subscription level covers the detection engine, indicator match rules and case management on your deployment.
  • Authentication: Confirm whether SAML or OpenID Connect single sign-on is included for the administrative users who will create the API keys the connector needs.
  • API access: Confirm that the API key or service account permissions you plan to grant cover the calls that write threat intelligence and read incidents.
  • Upgrade cadence: Ask how stack version upgrades on the cloud deployment affect the connector's API calls and the prebuilt rule updates.
  • Support boundary: Clarify who owns licensing questions when the cloud subscription and the OpenCTI-side connector disagree.

Before you start, ask Elastic which features your subscription covers in writing and confirm each API call your connector makes against that list.

How to configure the sync in the right order

This sequence builds the Elastic side first, then the OpenCTI connector, then detections and incident import, so each direction is verified before the next one depends on it. Confirm every setting name against the connector documentation before you change anything.

  1. Create a dedicated Elastic service identity

    Your Elastic administrator creates a service account or API key used only by the OpenCTI connector. Grant the narrowest role that can write threat intelligence data to the threat intelligence index and read security incidents, and nothing broader. Check that the identity can perform the write and read operations and that it cannot administer the cluster or other indices. Done means a test request made with this identity succeeds for the intended indices and fails for an out-of-scope one. Confirm the required privileges against the connector documentation and the Elastic Security documentation for your version.

  2. Configure the OpenCTI connector connection

    Set the Elastic endpoint, the credentials for the service identity, and the TLS trust for your cluster in the connector configuration. Keep credentials in your secrets handling, not in plain configuration files shared across teams. Confirm the TLS setting names and whether the connector expects a CA certificate path or a certificate verification flag. Done means the connector starts, logs a successful connection to Elastic, and fails cleanly when you deliberately use a wrong password in a test environment.

  3. Set type, confidence and TLP filters before the first run

    Before the connector sends any data, choose which observable and indicator types to sync, the minimum confidence score, and the TLP markings allowed to leave OpenCTI. Narrow filters keep the Elastic index focused on indicators your detections can use. Document the chosen values in your change record so the SOC knows what is published. Done means the filter values are saved in the connector configuration and reviewed by the intelligence owner. Confirm each filter key name in the connector documentation, since names differ between connector versions.

  4. Run a small test batch into the threat intelligence index

    Start the connector with a small, known set of indicators, ideally a few entries you created for testing and marked with a non-sensitive label. Query the Elastic threat intelligence index and confirm that each test indicator appears with the expected type, value, confidence and source fields. Check that out-of-filter items, such as a TLP marking you excluded, are absent. Done means every test record matches what you expected, and you have noted any field mapping differences before scaling up the sync.

  5. Create detection rules that match the synced indicators

    In the Elastic detection engine, create or enable indicator match rules that compare event fields against the synced threat intelligence indicators. Start with a narrow rule set, and use prebuilt rules only after you review their behavior in your environment. Generate a harmless test event that contains a synced test indicator and confirm the rule fires and creates an alert. Done means the alert appears in the Elastic Security alerts view with the indicator that triggered it. Check your Elastic subscription level first, because detection features differ between tiers.

  6. Configure the incident import and its filters

    Set up the incident import direction in the connector configuration. Choose a start date, so the first run does not pull years of historical alerts, and define the filters for severity, status or rule type that decide which Elastic alerts become OpenCTI incidents. Confirm the start date format and filter key names against the connector documentation. Done means the import runs without errors and the filter settings match the policy agreed with your SOC.

  7. Confirm a known Elastic alert appears in OpenCTI

    Pick one alert you created in the detection step, or a known test alert, and confirm it appears in OpenCTI as an incident with the expected name, severity and linked observables. Check that the incident is not duplicated on a second run and that filtered-out alerts are absent. Done means the known alert is present once, with its fields mapped as your team intended, and you have recorded the mapping in your runbook for future troubleshooting.

Two separate paths carry data between OpenCTI and Elastic Security

The forward path starts at the OpenCTI platform, where the connector on its own host reads observables and indicators through the API and pushes them to the Elastic threat intelligence index over TLS with an API key. The detection engine then matches those indicators against events and raises alerts for analysts in Cases and Timeline. The return path runs in the opposite direction: the connector reads Elastic incidents over TLS and imports them into OpenCTI as incidents. Check that each credential is scoped to one direction and that the connector host is the only system holding both.

Forward and return paths between OpenCTI and Elastic Security, with the connector host as trust boundary.

How OpenCTI indicator fields map to Elastic Security

This table pairs each OpenCTI observable and indicator attribute with the Elastic Security field it is expected to populate, along with the incident fields that return to OpenCTI. Every row is marked to confirm in the test environment, so treat the Elastic side as a working hypothesis until one sample indicator and one sample incident have been traced end to end. Check TLP and confidence first, because those settings decide what is published at all.

OpenCTI fieldElastic Security counterpartStatus
Observable or indicator typeIndicator type used by the threat intelligence index and indicator match rulesTo confirm in test environment
Indicator value (STIX pattern value)Value compared by indicator match rules and shown on the threat intelligence entryTo confirm in test environment
Confidence scoreWhether Elastic stores a confidence value; if not, filter by confidence before streamingTo confirm in test environment
Valid from and valid untilIndicator start and expiry on the Elastic side, or expiry enforced by OpenCTI decay rulesTo confirm in test environment
LabelsTags or threat intelligence metadata carried onto the Elastic indicatorTo confirm in test environment
TLP markingNo assumed direct equivalent; confirm whether the connector sends it or whether filtering happens in OpenCTITo confirm in test environment
Source (creator or feed)Feed or provider metadata on the Elastic indicator, used for review and triageTo confirm in test environment
Elastic incident title and severityAlert or case title and severity mapped to OpenCTI incident name and severityTo confirm in test environment

Security controls for the Elastic connection

The connector sits between two platforms that both hold sensitive threat data and detection logic. Each card below covers one control that a reviewer will ask about, from the identity the connector uses to how logs are kept on both sides. Check each one in your own environment before the connector goes live.

Dedicated least-privilege Elastic identity

Create a separate Elastic API identity for the OpenCTI connector and do not reuse an analyst or administrator account. Grant only the privileges the connector needs to write to the threat intelligence index and to create or update the detection rules it manages. Keep the role's index and space scope narrow so the identity cannot read unrelated case or endpoint data. Ask your Elastic administrator to confirm which role definition the connector will use, and review it again whenever the connector version changes.

Secret storage and rotation

Store the Elastic API key or password in your secrets manager or in the container secret mechanism your platform team already audits, not in plain text in a compose file or repository. Set a rotation schedule and record who owns it. Rotation requires updating the connector configuration and restarting it, so test that path in a non-production environment first. Confirm that the OpenCTI platform logs do not echo the credential during connector startup or error handling.

TLS verification to Elastic endpoints

Keep certificate verification enabled for every connection from the connector to Elastic, including the Kibana and Elasticsearch endpoints. If your Elastic deployment uses an internal certificate authority, add that CA to the connector's trust store instead of disabling verification. Disabling verification sends the API credential and threat data over a channel that cannot be authenticated. Confirm the certificate chain with your Elastic team before the first sync, because a failed verification often looks like a generic connection error.

TLP filters on outbound data

Define which TLP markings may leave OpenCTI for Elastic Security before the stream starts. Sharing with a broader audience than the source intended is the main data handling risk in this integration. Restrict the stream to markings that your sharing rules allow for internal detection use, and exclude anything marked more restrictively. Test the filter with sample objects marked at each level and confirm the results in the Elastic index before you widen it.

Connector configuration change control

Limit who in OpenCTI can edit connector settings, including the Elastic endpoint, the identity, entity types and filters. A changed filter or endpoint can silently widen what leaves the platform. Use the OpenCTI roles and groups to separate the people who manage connectors from the people who create intelligence. Review changes to connector settings as part of your normal change process, and document who approved each change.

Audit logging on both sides

Enable audit logging in OpenCTI and in Elastic so that each sync, configuration change and authentication event can be traced to an identity. Audit logging in OpenCTI is part of the Enterprise Edition feature set, so confirm your license before relying on it. On the Elastic side, confirm which audit events your subscription includes and where they are retained. Set a retention period that matches your investigation and compliance needs and keep the records somewhere the connector identity cannot alter.

Isolated connector host

Run the connector on a host or container that does not share a trust boundary with unrelated workloads. Limit its network egress to the Elastic endpoints it must reach and to the OpenCTI platform it reads from. Restrict inbound access to the minimum your monitoring requires. A compromised neighbor on the same host could read the connector's secrets or the in-memory credentials it uses.

SSO for OpenCTI users

Defining authentication strategies and SSO in OpenCTI has been an Enterprise Edition feature since 7.260224.0. Teams that want analysts to sign in through their identity provider should confirm the license before planning that work. Connector identities are separate from user SSO and should not depend on an analyst's session. Ask Filigran or your DeployOpen contact to confirm which edition and version your deployment requires.

Authentication docs

Why the Elastic sync fails and how to fix it

This table pairs each common failure in the OpenCTI to Elastic Security sync with its likely cause and a check the team can run. Read it in order when a sync stops, since early rows cover data flow and later rows cover versions and time windows. The main takeaway is that most failures come from a mismatch between the connector's settings and what Elastic Security expects to receive.

SymptomLikely causeFix
Indicators never reach the Elastic threat intelligence indexThe connector runs but the indicator types or confidence levels it publishes are filtered out, or the target index name does not match the one the detection engine readsConfirm the connector logs show messages sent for each run, check the index name in the connector settings against the index your rules reference, and temporarily widen the indicator filter on a test set to see whether data arrives
Detection rules do not fire on synced indicatorsIndicator match rules point at a different field name than the one the synced documents use, or the rule's data view excludes the threat intelligence indexOpen one synced indicator in Discover, note the exact field names and values, then compare them with the indicator match rule's field mapping and index pattern
Authentication or role errors on writesThe API key or service account lacks index write or read privileges on the threat intelligence index, or the key belongs to a user whose role was changedTest the key directly against the cluster with a read and a write request, then review the role assigned to it in Elastic Security role management and grant only the index privileges the connector needs
TLS trust failures between connector and clusterThe cluster certificate is issued by an internal certificate authority that the connector container does not trust, or the hostname does not match the certificateConfirm the CA bundle is mounted into the connector container, verify the hostname in the certificate subject or alternative names, and test the connection from inside the container before changing connector code
Duplicate or expired indicators accumulateIndicator revocation or expiry is not carried through, so old indicators remain active, or the same indicator is published from more than one connector runCheck whether revoked and expired indicators are being deleted or marked in Elastic, align the expiry rule with the decay settings in OpenCTI, and count documents per indicator value to find duplicates
Incidents stop importing after a start date changeThe import connector keeps a stored state cursor, so a new start date earlier or later than the stored position is ignored or skips a windowCompare the start date with the connector's saved state, reset the state only if you accept reimporting that window, and confirm the chosen date falls before the earliest incident you need
Sync breaks after an Elastic or OpenCTI upgradeThe connector and platform versions no longer agree on API behavior or field schema, or the Elastic release line changed the index or API expected by the connectorRecord the OpenCTI version and the Elastic version before and after the change, check the connector's documented compatibility notes, and run the sync in a test environment before upgrading production

Generating detection rules from synced intelligence

Syncing indicators into Elastic Security and writing detection rules are two separate steps, and the second one needs its own decisions. Synced OpenCTI observables and indicators land in Elastic's threat intelligence data, where they can be matched against events, but nothing alerts on them until a rule acts on that data. Elastic's detection engine supports indicator match rules, which compare event fields against threat intelligence indicators, along with correlation rules, which link related events, and threshold rules, which fire when a count of matching events is reached. Elastic's prebuilt rules can be customized, and the rules and code in the elastic/detection-rules repository are licensed under the Elastic License v2. Its latest prebuilt rules reach the Kibana detection engine automatically, so the team should decide which of Elastic's rules it accepts as-is and which it overrides. Before generating anything, confirm which rule types the connector can create, since the connector may cover only some of them.

Start by deciding which indicators justify a rule. A bulk sync of every observable from OpenCTI will produce noise, so filter by indicator type, confidence, TLP marking and age, and keep high-confidence entries that the SOC can act on. Assign each rule an owner who is accountable for its logic, its exceptions and its retirement, and set a review cadence that compares alert volume and analyst outcomes against the intelligence it was built from. Record the rule's source indicator set, its expected behavior and the criteria for disabling it in the rule description so reviewers can audit it later.

Tune false positives before alerts reach analysts. Run new rules in a test or staging Kibana space against historical events, review the matches with the detection engineers and the owners of the affected hosts or services, and add exceptions for shared infrastructure such as CDNs, cloud providers and internal scanners. Alert suppression and threshold settings should be reviewed together so that a single noisy indicator does not flood the queue. Only promote a rule to production after the team agrees on its severity and routing, and keep the rollback step ready.

Questions teams ask before connecting OpenCTI to Elastic Security

What drives the cost and effort of connecting OpenCTI to Elastic Security?

The main cost drivers are the Elastic license tier, how many indicator types you sync, how much detection rule work you take on, identity and network changes, and the testing needed before the SOC relies on the output. Elastic Security features are split across tiers: the self-managed subscriptions page lists the detection engine and case management under Platinum, which is no longer sold to new customers, and SAML or OpenID Connect single sign-on under Enterprise. Confirm with Elastic which tier covers the features you plan to use. Each indicator type adds mapping and validation work, and rule design depends on how many detections your SOC already runs. Ask any quote to separate one-time build work from recurring upkeep such as rule tuning and upgrades.

Can our internal team connect OpenCTI to Elastic Security without a partner?

Yes, if your team has administrators for both platforms and engineers comfortable with Elastic Security and OpenCTI connectors. The work involves configuring the connector credentials, choosing which observables and indicators to sync into Elastic's threat intelligence index, designing detection rules, and handling the identity and network paths between the two systems. The main risk is less the connector setup than the rule design and tuning, since a poorly scoped sync can flood analysts with noise. A partner such as DeployOpen can take on scoping, build, testing and documentation under a written, fixed scope, while your team keeps ownership of the detections. Decide early which parts you want to keep in-house.

How long does the integration take, and what changes the duration?

The duration depends on the scope you agree before work starts, not on a fixed template. The biggest factors are the number of indicator types and entity types you sync, how many detection rules you generate and validate, whether the Elastic and OpenCTI environments are already running and reachable, and how quickly your SOC reviews rule output. Access approvals, change windows and a license decision can add waiting time that is outside the build itself. Ask for a timeline tied to named milestones, such as a working sync in a test environment, rule review, and production cutover, so you can see which dependency is holding the schedule.

What does the work need from our side?

You need administrative access to the Elastic deployment and the OpenCTI platform, including the rights to create API credentials, manage Elastic Security indices and rules, and review connector logs. A test environment is important so you can validate syncs and rules before they reach production. Your SOC should provide input on which indicators are actionable, what false positives they cannot tolerate, and how alerts should be triaged. You also need a license decision for Elastic and for OpenCTI Enterprise Edition if you plan to use features that require it. Assign one owner on each side so approvals and questions do not stall the work.

Does SSO for OpenCTI require the Enterprise Edition?

Yes. Since OpenCTI 7.260224.0, defining and using authentication strategies, including SSO, is an Enterprise Edition feature according to the OpenCTI authentication documentation. The Community Edition supports local users and LDAP for login, but SAML, OpenID Connect and the other SSO strategies need an Enterprise license. Check the OpenCTI Enterprise Edition page for current terms, and plan identity work with your identity team before the integration starts. This decision also affects who can sign in to OpenCTI to review imported Elastic Security incidents.

What happens after the first working sync?

The first working sync is an early milestone, not the end of the work. You still need to monitor connector health, check that indicators expire and update as expected, review generated detection rules against real alert volume, and tune suppression or thresholds. Imported Elastic Security incidents also need a review of how they map into OpenCTI so analysts can trust the knowledge graph. Upgrades to Elastic and OpenCTI, including OpenCTI's release and LTS lines, can change connector behavior, so plan a retest after each upgrade. Ask whether the engagement includes handover documentation, a support retainer, or periodic rule review.

How do we check that detection rules are safe to deploy?

Test rules in a non-production Elastic environment against representative logs before enabling them for the SOC. Elastic's detection rules are developed in the elastic/detection-rules repository, and the latest prebuilt rules are delivered to the Kibana detection engine automatically, so review what is updated in your environment and whether your custom rules conflict with prebuilt ones. Measure alert volume, identify indicators that create false positives, and agree with the SOC which rule types need human review. Keep rule changes under version control so you can roll back a noisy rule quickly.

How DeployOpen scopes and delivers this integration

DeployOpen plans, builds, documents and supports the OpenCTI and Elastic Security integration inside your own infrastructure. Engagements are fixed-scope, so the sync paths, detection outputs, permissions and handover materials are agreed in writing before any work starts.

How we scope

  • Inventory which OpenCTI observables and indicators should reach the Elastic Security threat intelligence index and which should stay in OpenCTI.
  • Confirm the Elastic Security subscription tier and deployment model, including whether your Elastic Stack release line supports the required features.
  • Agree in writing which detection rules are generated, which Elastic Security incidents return to OpenCTI, and who approves each path.

How we build

  • Configure the connector in a non-production OpenCTI and Elastic Security environment, using a dedicated service identity with narrowly granted index permissions.
  • Test indicator filters, entity types, confidence thresholds and expiry handling against sample data before any production sync is enabled.
  • Review generated detection rules against your alert volume and tune them, then check that the incident import maps fields the way your analysts expect.

How we hand over

  • Deliver configuration, connector settings, credential locations and permission maps as documented artifacts your team can review and version.
  • Provide a runbook covering sync schedules, failure symptoms, how to reprocess a batch and how to roll back a faulty indicator import.
  • Walk your security engineering and SOC teams through the data flows, detection rule ownership and the checks they should run after each change.

How we support

  • Support is available as a retainer for upgrades when OpenCTI or Elastic Stack release lines change, with each upgrade tested before rollout.
  • Retainers can cover periodic review of indicator volume, false-positive trends and connector health against the agreed scope.
  • Confirm with us during scoping which support hours, response paths and upgrade windows the retainer includes, since these are set in the written agreement.

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.