Age indicators with decay rules
Create OpenCTI decay rules that lower indicator scores over time and revoke stale indicators, and choose which indicators each rule applies to.
A decay rule lowers the score of indicators as they age and revokes them when the score gets too low, so that your SIEM and EDR stop alerting on stale indicators. OpenCTI ships with built-in rules for the common observable types; this page shows how to add your own, for example a faster decay for a noisy feed, and what your detection tools receive at each step. What the score means for analysts is in Indicator lifecycle.
Before you start
- Your role has the Manage customization capability.
- The indicator decay manager is running. It is on by default (
indicator_decay_manager:enabledin the configuration reference); when it is off, the page says so and no score changes.
How a rule is chosen
OpenCTI picks the rule of an indicator once, when the indicator is created:
- New indicator → Exclusion rules: checked
- Exclusion rules → Never decays: match
- Exclusion rules → Decay rules: no match
- Decay rules → Score lowered: applies
- If an active decay exclusion rule matches, the indicator never decays.
- Otherwise, among the active decay rules that match the indicator, the one with the highest Order applies.
- An indicator created already revoked gets no decay rule.
Then the rule sticks. Changing the filters of a rule, or editing the indicator so that it matches another rule, does not move indicators that already have a rule. Only new indicators follow the new settings, with one exception: when a source sends an existing indicator again with a new score, and its confidence allows the update, the decay restarts from that score under the rule that matches at that moment.
The built-in rules
Four rules come with the platform: one for IP address and URL indicators, one for domain names, one for files and artifacts, all with order 1, and a default rule with order 0 for every other indicator. They are active and cannot be changed or deleted. Their lifetime, decay factor, reaction points and revoke score are in the decay rule reference.
To replace a built-in rule, create a rule that matches the same indicators with a higher order: 2 or more. The list in shows the Order of every rule, its Creation date, whether it is Active, and how many Impacted indicators it holds.
What your detection tools receive
Decay changes the indicator itself, so every consumer sees it: live streams send each change as an update, and CSV feeds and TAXII collections apply their filters to the new values.
- The score changes only at reaction points. Between two points, the indicator keeps its last score, even though the life curve falls continuously. A rule without reaction points leaves the score untouched until the indicator is revoked.
- Valid until is set at creation to the date the score will reach the revoke score.
- At that date, the indicator is revoked: Revoked becomes true, Detection becomes false and the score drops to the revoke score.
- Changes land within minutes. The indicator decay manager runs every minute and updates up to 10,000 indicators per pass (
indicator_decay_manager:intervalandindicator_decay_manager:batch_size). The expiration manager revokes indicators past their Valid until every 5 minutes (expiration_scheduler:interval). When more indicators are due at once, the backlog takes several passes.
So place a reaction point on every score threshold your integrations filter on. If the EDR feed keeps indicators with a score greater than 60, a reaction point at 60 takes an indicator out of the feed when the curve reaches 60; without it, the indicator stays in the feed until the next point or its revocation.
Create a decay rule
-
Open and click Create Decay Rule. The Create a decay rule panel opens.
-
Give the rule a Name and a Description that says which indicators it is for.
-
Choose the indicators it applies to.
Pick the main observable types in Apply on indicator observable types (none = ALL). A rule without types applies to every indicator.
-
Set the decay curve:
- Lifetime (in days): how long the score takes to fall from its initial value to 0. It starts at 365;
- Decay factor: the shape of the curve. It starts at 1; a higher factor makes the score fall faster at the start, a lower one keeps it high longer. The built-in rules use 0.3 to 0.7.
-
Add Reaction points: click Add a reaction point for each score at which OpenCTI updates the indicator, and Remove this reaction point to drop one. With points at 60 and 40, an indicator created at 80 is updated to 60, then to 40, when the curve reaches them. Keep every point above the revoke score.
-
Set the Revoke score: the indicator is revoked when its score reaches this value. It starts at 0, which revokes the indicator only at the end of its lifetime.
-
Set the Order. It starts at 1, the order of the built-in rules: give the rule a higher order than any other rule that matches the same indicators.
-
Turn on Active, or leave it off to activate the rule later, and click Create. A new rule is inactive unless you turn it on.
The Example Scanner Feed sends thousands of IPv4 addresses of mass scanners a day, each with a score of 50. Under the built-in IP and URL rule they stay active for about 20 days, long after the scanners have moved on, and the SOC gets alerts on addresses that no longer scan anyone.
- Name:
Noisy feed IP addresses - Description:
Faster decay for IP indicators from the Example Scanner Feed
- Apply on indicator observable types (none = ALL):
IPv4 address. This version cannot filter on the author, so the rule applies to IPv4 indicators of every source.
- Lifetime (in days):
30 - Decay factor:
0.8, a steep fall at the start - Reaction points:
70and40 - Revoke score:
20 - Order:
5, above the built-in rule (order 1) - Active: on
An indicator the feed creates at score 50 then goes through these steps; the Life curve on the page of the rule draws the same curve:
Day 0 score 50 created by Example Scanner Feed, rule "Noisy feed IP addresses"
Hour 15 score 40 reaction point: the indicator is updated
Day 9 score 20 revoke score: the indicator is revoked, detection tools drop it
An indicator created at 80 by the same feed reaches 70 within hours, 40 after about six days and is revoked after about 15 days.
When two rules that match the same indicator have the same order, OpenCTI picks one by an internal identifier drawn at random when each rule was created: the choice stays the same on a given platform, but it is neither the oldest rule nor one you can predict. Give each custom rule its own order.
Check a rule
Click a rule in the list to open its page. Configuration recalls its settings, Impact counts the indicators currently impacted by this rule, and Life curve draws how the score falls over time, with the reaction points and the revoke score.
In Configuration, Indicator observable types lists the main observable types of the rule. When it is empty, the rule matches every indicator.
On an indicator, the lifecycle button next to its score shows the rule applied and the dates of the next score changes. See Indicator lifecycle.
Change, deactivate or delete a rule
On the page of a custom rule, Update opens Update a decay rule, where you change any setting, and the menu next to it offers Deactivate (or Activate) and Delete. Built-in rules have neither. A change applies to the indicators created afterwards; indicators already under the rule keep the settings they got. An inactive rule is skipped when new indicators are created; indicators already under it keep it.
To keep some indicators out of decay altogether, open the Decay exclusion rules tab of the same screen: see Keep indicators from decaying.
When two sources disagree on a score
Two sources of equal trust can keep resetting the score of the same indicator. To stop that loop, a source cannot set a score it already set in the past. For example: source 1 creates an indicator at 90, source 2 raises it to 95, then source 1 sends 90 again: that last update is ignored. You can also lower the confidence level of the user of one source, so that the other one wins. See Reliability and confidence.
What's next
- Keep indicators from decaying for indicators that must never expire.
- Indicator lifecycle, what analysts see.
- How OpenCTI works for the managers that run in the background.