Concept

Deduplication

How OpenCTI recognizes an object it already has, why two objects become one or stay apart, and how confidence decides what an incoming duplicate can change.

OpenCTIFor CTI analysts, administrators and developers

OpenCTI never stores the same object twice. When you, a connector or a feed create an object, the platform computes its identifiers from a few properties, looks for an object that already has one of them, and updates that object instead of creating a new one. This is called an upsert. This page explains which properties identify each type, why two objects became one or stayed apart, and what an incoming duplicate may change. With it, you can predict whether two sources will meet on the same Intrusion Set, and why a description did or did not change after an import.

What deduplication is good for

GoalExample
Consolidate several sources on one objectThree feeds report Velvet Loader: one Malware, with the aliases, labels and references of all three
Recognize an object under another nameA report names "Harbor Mantis", an alias of Velvet Harbor: the report links to the existing Intrusion Set
Re-import without creating noiseA connector sends the same indicators every hour: they are updated, not duplicated
Protect trusted knowledgeA low-confidence feed cannot overwrite the description your analysts wrote

How the platform recognizes an object

INCOMINGPLATFORMRESULTNew objectFrom a user, connector or feedCompute identifiersStandard ID, aliases, hashesLook upSame identifiers in the baseCreateNothing foundUpdateOne match, within confidenceMergeSeveral matches
  1. New object → Compute identifiers: properties
  2. Compute identifiers → Look up: identifiers
  3. Look up → Create: no match
  4. Look up → Update: one match
  5. Look up → Merge: several matches
  6. Merge → Update: then update
OpenCTI computes the identifiers of each incoming object, looks for existing objects with them, then creates, updates or merges

Every object has several identifiers, and a match on any of them is a match:

  • The standard ID, shown as Standard STIX ID. The platform computes it from the ID contributing properties of the type, listed in Properties that identify entities and Properties that identify observables. The same properties always give the same ID, on every OpenCTI instance.
  • Other STIX IDs, shown as Other STIX IDs: the IDs the object had in the sources it came from, and its former standard IDs.
  • One ID per alias, for types with aliases: the ID the object would have if the alias were its name.
  • One ID per hash, for files, artifacts and X.509 certificates.

Names are compared without case and without spaces around them: "Velvet Harbor" and "velvet harbor " give the same ID. Aliases, MITRE IDs and label values are compared the same way.

Then the platform acts on what it found:

FoundWhat happens
NothingThe object is created
One objectThat object is updated with the incoming data, within the limits of confidence
Several objectsObservables that share hashes are merged into one, then updated. For other types, the platform updates the object that has the computed standard ID, or the one that already carries the incoming STIX ID. When the incoming STIX ID belongs to a second object, it merges the two first, keeping the one with the higher confidence
An object you cannot seeThe creation fails with "Restricted entity already exists". When request access is set up, you can ask for access to it. See Let users request access

An automatic merge needs the same confidence as a manual one: the user or connector must have a max confidence level at least equal to the confidence of every object merged. Otherwise, the platform does not merge and updates one of the objects.

Why two objects did not become one

Deduplication only recognizes an identifier, never a resemblance. Two objects stay apart when no name, alias, hash or STIX ID of one matches the other:

  • A spelling that differs beyond case and spaces. "Velvet Harbour" is not "Velvet Harbor".
  • An alias that is not declared. "Velvet Harbor Group" is a different name until someone adds it as an alias of Velvet Harbor.
  • A different type. A Threat Actor Group and an Intrusion Set named Velvet Harbor are two objects, as are a group and an individual Threat Actor of the same name.
  • A property that identifies the type. Two reports with the same name but different publication dates are two reports.
  • Aliases restricted by your administrator. Only the aliases that match the rules of the type count as identifiers (see Names and aliases).
OpenCTI 7.261119.0

When you know two objects are the same, merge them: you need the Merge knowledge capability. The merged names become aliases of the kept object, so the next import of any of those spellings lands on it.

ExampleThree sources, three Velvet Harbors

Example CERT reports Velvet Harbor, with the aliases FIN99 and Harbor Mantis. Saltmarsh CERT reports "Velvet Harbour", alias "Harbour Mantis"; Bluefin Labs reports "Velvet Harbor Group", alias "VHG". None of these names or aliases is an identifier of Example CERT's object, so your platform shows three Intrusion Sets.

You merge the two others into Velvet Harbor: their names become aliases of Velvet Harbor, and their relationships and reports move to it. From then on, a Saltmarsh CERT report that names "Velvet Harbour" links to Velvet Harbor directly.

Properties that identify entities

TypeID contributing properties
Attack Pattern, Course of ActionMITRE ID when present, otherwise name
Campaign, Channel, Event, Infrastructure, Intrusion Set, Language, Malware, Narrative, Tool, VulnerabilityName
Threat Actor (group or individual)Name and type: a group and an individual can share a name
IncidentName and original creation date
Data Component, Data SourceName
IndicatorPattern
Organization, Individual, Sector, System, Security PlatformName and identity class
Region, Country, CityName and location type
Administrative AreaName
PositionLatitude and longitude when present, otherwise name
ReportName and publication date
GroupingName, context and original creation date
NoteContent and original creation date
OpinionOpinion and original creation date
Observed DataThe objects it contains
Incident response, Request for information, Request for takedown, Feedback, TaskName and original creation date
Malware AnalysisProduct, result name and submission date
LabelValue
Marking definitionDefinition type and definition
Kill chain phaseKill chain name and phase name
External referenceURL, otherwise source name and external ID

The abstract of a Note also contributes to its ID, with its content and creation date.

Names and aliases

For Attack Patterns, Campaigns, Channels, Courses of Action, Events, Incidents, Infrastructures, Intrusion Sets, Languages, Malware, Narratives, Threat Actors, Tools, Vulnerabilities, identities (except Security Platforms) and locations, each alias is an identifier too. As a result:

  • Creating a Malware named like the alias of an existing Malware updates the existing one.
  • The names and aliases of a type form one set of unique values. Adding an alias that is already the name or an alias of another object of the same type fails with "This update will produce a duplicate". To bring the two together, merge them.

For administrators: generic aliases, such as "APT" or a product name, can make unrelated objects meet. The aliases_identifier_rules key (ALIASES_IDENTIFIER_RULES) restricts which aliases count as identifiers, with a list of regular expressions per type in lower case, such as intrusion-set. Without a rule for a type, every alias counts. See Functional customization in the configuration reference.

Properties that identify observables

Observables follow the ID contributing properties of the STIX 2.1 specification, extended to the observable types that OpenCTI adds.

TypeID contributing properties
Domain name, Email address, Hostname, IPv4 address, IPv6 address, MAC address, URL, User agent, Text, Phone number, Cryptocurrency wallet, and the other single-value typesValue
File, Artifact, X.509 certificateThe first hash found, in this order: MD5, SHA-1, SHA-256, SHA-512, SHA3-256, SHA3-512, SSDEEP, SDHASH, TLSH, LZJD. Without a hash: name for a file, URL for an artifact, serial number or subject for a certificate
Autonomous systemNumber
DirectoryPath
Email messageSender, subject and body
MutexName
Network trafficStart, end, source, destination, source and destination ports, protocols
ProcessCommand line, and the process ID (PID) when a command line is given
SoftwareName (without case), CPE, SWID, vendor and version
User accountAccount type, user ID and login
Windows registry keyKey and values
Bank accountIBAN
Payment cardCard number
Media contentURL
SSH keySHA-256 fingerprint
PersonaName and type

Every hash of a file is an identifier. A file known by its MD5 and a file known by its SHA-256 become one object as soon as an import carries both hashes: the platform merges them. If they disagree on a hash of the same algorithm, it refuses the import with a "Hashes collision" error.

How relationships are matched

A relationship is identified by its type, its source, its target, its start time and its stop time. To absorb small differences of dates between sources, the platform matches an incoming relationship with an existing one when:

  • the type, the source and the target are the same, and
  • the start time and the stop time, when the incoming relationship has them, are within 30 days of the existing ones.

An incoming relationship without start and stop times matches any relationship with the same type, source and target. A relationship also matches by its STIX ID, like any object. Sightings work the same way, with their first seen and last seen dates. Relationships created by inference rules exist once per source, type and target.

For administrators, three configuration keys change the matching, in Functional customization:

KeyVariableDefaultEffect
relations_deduplication:past_daysRELATIONS_DEDUPLICATION__PAST_DAYS30How many days before the incoming dates still match
relations_deduplication:next_daysRELATIONS_DEDUPLICATION__NEXT_DAYS30How many days after the incoming dates still match
relations_deduplication:created_by_basedRELATIONS_DEDUPLICATION__CREATED_BY_BASEDfalseWhen true, the date window only matches relationships of the same author: two sources keep two relationships

A wider window merges more periods into one relationship; a narrower one keeps distinct periods of activity apart but multiplies relationships.

What an incoming duplicate can change

When the platform updates an existing object, the confidence levels decide what changes. The confidence of the incoming data is its own confidence, capped by the max confidence level of the user or connector that sends it. The platform compares it with the confidence of the existing object. Observables have no confidence, so for them the incoming data always counts as equal or higher.

DataIncoming confidence equal or higherIncoming confidence lower
Single values, such as the descriptionReplaced by the incoming value, if it is not emptyFilled only if empty
Lists, such as aliasesIncoming values addedFilled only if empty
Labels and external referencesAddedAdded
Markings and other referencesAdded. An object keeps one marking per type, the highest: TLP:AMBER replaces TLP:GREEN, never the reverseFilled only if empty
AuthorReplaced only if the incoming confidence is strictly higherFilled only if empty
ConfidenceSet to the incoming confidenceKept
Score, validity and revocation of an indicatorUpdated, see Indicator lifecycleKept

Three more rules complete the picture:

  • Nothing is removed. An upsert adds and replaces; it never empties a field or removes a value. Only a synchronizer set to Use perfect synchronization replaces data exactly, removals included. See Live streams.
  • Identifiers and creators always accumulate. Whatever the confidence, the source's STIX ID goes into Other STIX IDs, and the user or connector joins the Creators.
  • Dates only widen. When the confidence allows the change, the original creation date keeps the oldest value, a relationship keeps the earliest start time and the latest stop time, and a sighting keeps the earliest first seen and the latest last seen. See Meaning of dates, which also explains the dates that do not widen.

Sharing with organizations follows its own rule: an incoming duplicate only adds organizations when the sender has the Restrict organization access capability and the platform runs the Enterprise Edition.

ExampleA community feed meets Velvet Harbor

Example CERT's analysts rated Velvet Harbor 75 and wrote its description. A community feed, whose account has a max confidence level of 40, sends Velvet Harbor with another description, the label hospitality, the alias "VH Crew" and the author "Community Feed".

The description, the aliases and the author stay as your analysts set them, because 40 is lower than 75. The label is added, because labels are always added. The feed's STIX ID goes into Other STIX IDs, and its account joins the Creators, so you can see that the feed also reported Velvet Harbor.

Standard STIX ID and the source's ID

This section is for developers who correlate OpenCTI data with a source or write connectors.

The Standard STIX ID is the ID OpenCTI computes, not always the ID the source used. A TAXII feed may call an object malware--1234…, while OpenCTI computes another ID from its name. That is what lets two sources that know the same malware under different IDs meet on one object. The computation is a UUID version 5 over the canonical JSON of the ID contributing properties, as STIX 2.1 recommends: Velvet Harbor is always intrusion-set--4e78bb64-59c9-51e3-b1b9-ac8133e1c8e0.

The source's ID is not lost: it goes into Other STIX IDs, and the platform finds the object by it on the next import. To correlate OpenCTI data with a source, look at Other STIX IDs and at the external references, not only at the standard ID.

When you edit a property that contributes to the ID, such as a name, the platform computes a new standard ID. If another object already has it, the change fails with "This update will produce a duplicate". For observables, the platform merges the two instead. The errors reference lists these errors with the others.

What's next

NextReliability and confidence
OpenCTI
Cyber threat intelligence as a knowledge graph: ingest, analyze, automate, share.

Published

Overview