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

Turn inference rules on or off

Turn OpenCTI inference rules on or off, know what each rule creates, and weigh the effect of a rule on your data before you enable it.

OpenCTIFor administrators and CTI team leads

The rules engine derives new knowledge from what is already in OpenCTI. Each inference rule watches for a pattern, for example "A is part of B and B is part of C", and creates the missing link, here "A is part of C". This page shows how to enable a rule, what the rules create, and what to check first. CTI team leads find what each family of rules changes for their analysts in Choose the rules with the CTI team. How analysts read inferred knowledge is in Inferences.

Before you start

  • Your role has the Manage customization capability.
  • To switch a rule, one of your roles also needs the setting Allow modification of sensitive configuration turned on, at the top of its Capabilities tab: rules are a protected setting by default, marked Danger Zone, unless the platform turns that protection off. See Sensitive configuration.
  • The rule engine manager is running. It is on by default (rule_engine:enabled in the configuration reference); when it is off, the page says so and shows no rules.

Enable or disable a rule

  1. Open Settings, then Customization, then Rules engine. The top of the page shows the Total inferred entities and Total inferred relations with their change over 24 hours, the Rules engine status and the Last event processed.
  2. Find the rule. Rules are grouped by category, each with its Description and an IF / THEN diagram of what it creates.
  3. Turn on the Status switch of the rule and confirm with Enable.
OpenCTI 7.260309.0-lts.8

A progress bar under the switch shows Applying this rule on the existing data, then This rule has been applied on the existing data.

Turning a rule off works the same way, with Disable. The progress bar shows Cleaning up this rule on the existing data.

ExampleShow what Harbor Syndicate targets

Example CERT attributes the intrusion set Velvet Harbor to the threat actor group Harbor Syndicate. Velvet Harbor targets the hospitality sector, France and Spain, but the page of Harbor Syndicate shows no target: analysts who start from the group miss its victims.

In Settings, then Customization, then Rules engine, under Victimology, turn on Targeting propagation via attribution and confirm with Enable. Once the progress bar reads This rule has been applied on the existing data, the rule has drawn:

Known:     Velvet Harbor  -- attributed to -->  Harbor Syndicate
Known:     Velvet Harbor  -- targets -->        Hospitality, France, Spain
Inferred:  Harbor Syndicate  -- targets -->     Hospitality, France, Spain

The Victimology of Harbor Syndicate now lists the sector and the two countries, each relationship marked as inferred and explained by the two facts above. Total inferred relations grows by the same number. If an analyst deletes the attribution, the rule removes the three inferred relationships.

What happens when you switch a rule

  • On: a background task scans the whole knowledge base and creates what the rule infers from existing data. From then on, the rule runs each time an object or relationship that matches its conditions is created or changed.
  • Off: a background task deletes everything the rule created. Knowledge that users or connectors created is never touched.

Inferred objects and relationships are marked as inferred, and each one lists the rule and the facts it comes from. When a fact a rule relied on disappears, the rule removes what it inferred from it.

Warning

A rule can create a very large number of objects on a big knowledge base, and the initial scan loads the platform. Enable one rule at a time, outside busy hours, and watch the inferred counters before enabling the next. Disabling a rule undoes its work, but the clean-up also takes time.

The inference rules

The page groups the rules by category, described with what they change for analysts in Choose the rules with the CTI team. A few examples of what they create:

RuleIfThen
Belonging propagationA is part of B, and B is part of CA is part of C
Targeting propagation via attributionA targets B, and A is attributed to CC targets B
Raise incident based on sightingA non-revoked Indicator is sighted in an entityAn Incident linked to the Indicator and to the entity

The inference rule reference lists every rule of your version with its IF / THEN pattern and its identifier. The Relation propagation testing rule, which propagates "related to" across the whole graph, only runs in development mode.

Choose the rules with the CTI team

A rule changes what every analyst sees: the page of a threat actor gains targets, a report gains objects nobody added by hand. Decide which rules to turn on with the CTI team lead, from the way the team models its knowledge.

CategoryWhat analysts getTurn it on when
AlertingIncidents raised from sightings of valid indicators, and sightings carried between an indicator and its observablesThe SOC records sightings in OpenCTI and wants each one followed up
Correlation"Related to" relationships between entities that share an observable or an infrastructureAnalysts pivot on shared infrastructure. A common observable, such as a public DNS resolver, can relate many unrelated entities
Parent-child propagationAttributions, belongings, locations and usages carried up a chain, such as the techniques of an intrusion set shown on the threat actor it is attributed toThe team attributes intrusion sets to threat actors, or links sub-techniques, and wants the parent's page complete
Report propagationObjects implied by a report's content added to it, such as the parent location of a city or the indicators of an observableReaders of a report should find the full context without opening each object
VictimologyTargets carried to the attributed actor, to the parent organization or to the parent locationThe team follows what an actor or a sector is targeted by at every level

Tell analysts which rules are on. Inferred knowledge follows its sources: when an analyst corrects an attribution, what the rule inferred from it goes away too.

Suggest a new rule

You cannot write your own rules, because of the effect a rule can have on the data. To suggest one, open an issue on the OpenCTI GitHub repository with the pattern and what it should create.

What's next

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

Published

Overview