You are reading the documentation of OpenCTI 7.260309 LTS · 7.260309.0-lts.8, supported until 2027-04.Latest is 7.261119.0 →
Concept

How OpenCTI infers new relationships

How the OpenCTI rules engine derives new relationships from existing ones, how to recognize inferred knowledge, and what the inference rules do.

OpenCTIFor CTI analysts and SOC analysts

Some relationships in OpenCTI were written by no one: the rules engine deduced them from the knowledge you entered. If an intrusion set targets France and France is located in Europe, the engine states that the intrusion set targets Europe, so a search for threats against Europe finds it. This page explains how these inferences work, how to tell them from what analysts entered, and why you cannot edit them. Administrators turn each rule on or off in Settings, then Customization, then Rules engine; analysts read the result.

What it is good for

GoalExample
Complete victimologyTargeting of a country rolls up to its region, targeting of a subsidiary to its parent organization
Follow attributionsWhat an intrusion set uses or targets is also true of the threat actor it is attributed to
Turn sightings into alertsA sighting of a valid indicator in your systems raises an incident
Keep reports self-containedA report that contains an indicator also gets the observable it is based on

How it works

YOUR KNOWLEDGERULES ENGINEINFERRED KNOWLEDGEIntrusion set targets FranceAsserted by a sourceFrance located at EuropeAsserted by a sourceTargeting propagationActive rule: IF ... THEN ...Intrusion set targets EuropeExplained by the rule, removed with itsfacts
  1. Intrusion set targets France → Targeting propagation: condition 1
  2. France located at Europe → Targeting propagation: condition 2
  3. Targeting propagation → Intrusion set targets Europe: creates
An active rule turns two existing relationships into a new, inferred one

A rule is a statement of the form IF these relationships exist, THEN create this one. When an administrator activates a rule, the engine first applies it to all existing data, then to every change as it happens.

Three behaviors surprise people:

  1. Inferred knowledge follows its facts. When a relationship a rule relied on is deleted, the inferred relationship is deleted too. You cannot edit or delete an inferred relationship yourself; change the facts instead.
  2. Inferred relationships combine their sources. They carry the markings of all the facts they come from, and the average of their confidence levels.
  3. One relationship can have several explanations. When two rules, or the same rule from two sets of facts, lead to it, it stays as long as one explanation holds.

Recognize inferred knowledge

  • In graphs, an inferred relationship is a dashed line in the warning color, and an inferred entity carries a wand badge. See Work with graphs.
  • In lists, a wand icon at the end of the line marks an inferred relationship.
  • On the relationship page, the description reads Inferred knowledge, there is no edit button, and the Inference explanation section shows the rule and draws the facts that produced it.
OpenCTI 7.260309.0-lts.8

The inference rules

Each rule is off until an administrator activates it. The rules fall into categories that match the goals above: alerting, correlation, parent-child propagation, victimology and report propagation.

Three examples:

RuleIFTHEN
Location propagationLocation A is located at B, and B at CA is located at C
Usage propagation via attributionA uses B, and A is attributed to CC uses B
Observables propagation in reportsA report contains an indicator based on an observableThe report also contains the observable and the relationship

Report propagation rules apply to reports only, not to other containers.

ExampleFind Velvet Harbor among the threats against Europe

Your reports say that Velvet Harbor targets France and Spain, and nobody wrote that it targets Europe. An administrator has activated Targeting propagation via location. Open Velvet Harbor in Threats, then Intrusion sets, then its Knowledge tab: a targets relationship to Europe shows with the wand icon. Open it: its description reads Inferred knowledge, and Inference explanation draws the facts behind it, Velvet Harbor targets France and Spain, both located in Europe. A colleague who lists the threats targeting Europe now finds Velvet Harbor. If an analyst deletes the targeting of France as wrong, the relationship to Europe stays, explained by Spain. It disappears only when no explanation is left, and inferences chain: Velvet Harbor also targets the booking database server of Grand Meridian Hotels, located in France, so the platform still infers that it targets France, and from there Europe.

The inference rule reference lists every rule of your version with what it infers.

Rules and the alternatives

You want toUse
Derive the same kind of relationship everywhere, alwaysAn inference rule
Apply a rule to some data only, or onceA playbook with Apply predefined rule, or a background task
Add knowledge from an external sourceAn enrichment connector

What's next

NextMerge duplicates
OpenCTI
Cyber threat intelligence as a knowledge graph: ingest, analyze, automate, share.

Published

Overview