Bookmarks

IoC — indicator of compromise

An observable trace of an attack — a piece of data that makes it possible to recognise malicious activity or its aftermath: a file hash, an address, a domain, a query string.

Also: indicators of compromise, signs of compromise, IoC feed

checked 9 Nov

All terms

An attack leaves traces behind: a malicious file with a distinctive hash, the address of a command-and-control server, a domain a loader was downloaded from. Each such trace is an indicator of compromise: other systems and organisations use it to recognise the same attack on their side. Indicators are shared in reports and threat intelligence feeds, and they drive hunting queries in SIEM and EDR.

What can serve as an indicator

SignalExampleHow long it lives
File hashSHA-256 of a malicious fileyears
IP addressaddress of a command-and-control serverhours or days
Domaindomain that served the malicious payloaddays
URLaddress of a phishing email pagedays
Traffic stringa User-Agent string typical of an attacker’s toolweeks
Host artefactfile name, registry key, scheduler taskmonths

From discovery to retirement

An indicator goes through a four-step cycle, and its lifetime is written right into the object: in STIX 2.1 an indicator carries the fields valid_from and valid_until — outside that window it is considered stale. The more specific the signal, the longer it stays useful: a file hash keeps for years, while the address of a command-and-control server can change within a day.

  1. Discovery: traces of one’s own incident, vendor reports and threat intelligence-sharing groups, commercial and open feeds.
  2. Description: the STIX 2.1 format; the pattern itself is written in the STIX, YARA, Sigma or Snort language.
  3. Hunting: searches across logs and telemetry — in a SIEM, EDR or firewall; a match goes to a SOC analyst.
  4. Retirement: an indicator is withdrawn once the addresses have changed owners or the matches have turned false.
jsonAn indicator in STIX 2.1: what to look for (pattern), how the pattern is defined (pattern_type) and when it takes effect
{  "type": "indicator",  "spec_version": "2.1",  "indicator_types": ["malicious-activity"],  "name": "Sample indicator",  "pattern": "[ file:hashes.'SHA-256' = '4bac27393bdd9777ce02453256c5577cd02275510b2227f473d03f533924f877' ]",  "pattern_type": "stix",  "valid_from": "2015-12-21T19:59:17Z"}

Indicators and the ATT&CK matrix

Indicators are the “fast” part of cyber threat intelligence: concrete facts that search systems — SIEM, IDS, EDR — match traffic and events against. In its incident response guidance NIST advises hunting for indicators of compromise on attacked and adjacent hosts and recording what is found in the incident description. The slow part is the MITRE ATT&CK matrix: it describes adversary behaviour in the language of tactics and techniques and does not go stale along with domains. A single investigation can be described in both languages: “a file with this SHA-256” is an indicator, “a phishing attachment with a macro” is a technique. Indicators are exchanged between organisations over TAXII: a protocol that describes the API for publishing and retrieving collections of STIX objects.

IoC has a second meaning — inversion of control: a development principle under which an object does not create its own dependencies; the Spring framework is built on it. It has nothing to do with traces of an attack.

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • MITRE ATT&CK matrix

    MITRE ATT&CK describes how attacks are carried out: tactics and techniques. An IoC is an individual trace of a specific attack.

  • EDREndpoint detection and response

    EDR is a defence tool that spots suspicious behaviour on its own; an IoC is the data such behaviour is hunted with.

  • CVECVE identifier

    A CVE is a number of a known vulnerability in software; an IoC is a trace of an attack that is under way or has already happened.

In depth in the references

where the topic is covered in detail