Cybersecurity

Indicator of compromise (IOC)

Observable technical artifact (IP address, domain, file hash, user agent) that signals an intrusion is underway or has already happened.

Loupe en métal brossé posée devant une plaque de verre dépoli couverte de rangées de points gris, un seul point bordeaux au centre de la lentille, sur fond sombre
Indicateur de compromission (IOC) — Image générée par IA (Qwen-Image 2.1, ComfyUI local)

An indicator of compromise (IOC) is an observable technical trace suggesting that an attack is imminent, underway, or has already succeeded. NIST defines it as a technical artifact or observable of exactly that kind. In practice, it is what a security team searches for in its logs and endpoints to find out whether it has been hit.

What an IOC looks like

Families of indicators

IOCs come in several forms, all of which can be checked against an IT environment:

  • Network: an IP address, domain name or URL the attacker uses to control tools or move data out.
  • File: the cryptographic hash of a piece of malware, which identifies it uniquely.
  • Web request: a distinctive user agent, a telltale probe path, a sequence of requests an attack tool always sends the same way.
  • Host: a registry key, a scheduled task, a file name dropped in an unusual place.

Where IOCs come from

Indicators are a by-product of incident investigations. When a CSIRT, a security vendor or a national CERT analyzes an attack, it publishes the traces it found so others can look for them in their own systems. France's CERT-FR, for instance, publishes indicator sets in MISP format, meant for searching historical logs or for live detection.

The Pyramid of Pain: not all IOCs are equal

In 2013, security researcher David J. Bianco introduced the Pyramid of Pain, which ranks indicators by how much trouble you cause an attacker when you detect them.

Bottom: precise but easy to dodge

The base of the pyramid holds file hashes, then IP addresses and domain names. A hash is as accurate as an indicator gets, yet changing a single byte of the file produces a new one. Blocking an IP address barely slows the attacker down: they simply rent another.

Middle: artifacts and tools

Higher up sit the traces left on the network or on hosts (an unusual user agent, a registry key), then the tools themselves. Detecting these forces the attacker to rework or replace their tooling, which costs more.

Top: behavior

The top layer is tactics, techniques and procedures (TTPs): how the attacker actually operates. This is the level MITRE ATT&CK documents. Detecting behavior rather than an address forces the attacker to change methods, the most expensive outcome for them. The takeaway is simple: IOCs are useful, but detection that relies on them alone is brittle.

Sharing, scoring and reviewing indicators

Open formats

IOC sharing runs on standard formats. STIX 2.1, published by OASIS, is a language for exchanging threat intelligence; its Indicator object holds a detection pattern, a valid-from date, an optional valid-until date and a confidence score from 0 to 100. TAXII is the companion protocol for transporting that data. MISP, an open source platform, is used to collect, store and share indicators between organizations.

Confidence, aging and false positives

Indicators do not last forever. A cloud IP address an attacker used in November may belong to a legitimate business in December. A good IOC set therefore records each entry's source, confidence level and review date, and retires what has expired. Without that discipline, false positives pile up, analysts learn to ignore alerts, and the whole setup loses its value.

What executives should take away

  • IOCs serve both detection and investigation: an indicator published today can also show whether you were breached three months ago, as long as the logs are still there.
  • Quality beats volume: a few trusted feeds (national CERTs, sector groups, trusted partners) are worth more than a flood of unreviewed indicators.
  • IOCs are not enough: they need to be backed by behavior-based detection and defense in depth.
  • Sharing is a collective reflex: an organization that shares its indicators after an incident helps others protect themselves, which is the whole point of NIST's guidance on threat information sharing.

Standards and Specifications

NIST — Indicators of Compromise

Definition from the NIST Computer Security Resource Center glossary, taken from SP 800-61r3 and adapted from SP 800-150

STIX 2.1 (OASIS)

Open language and serialization format for exchanging threat intelligence; the Indicator object carries a detection pattern, a validity window and a 0 to 100 confidence score

MITRE ATT&CK

Knowledge base of adversary tactics and techniques based on real-world observations: the behavior layer that sits above IOCs

Frequently Asked Questions

What is the difference between an IOC and an IOA?

An IOC is a known artifact: an address, a domain or a file hash already tied to an attack. It says "this has been seen in an attacker's hands". An IOA, or indicator of attack, describes intent or a chain of behavior instead: an office application spawning a command shell, then trying to read stored credentials. IOCs are often confirmed after the fact, while IOAs aim to catch the attack as it unfolds, whatever tools are used. The two work together: IOCs are easy to automate, IOAs hold up better when attackers swap their tooling.

Why do IOCs go stale?

Because attacker infrastructure changes hands. An IP address rented from a cloud provider is released and then reassigned to a legitimate customer; a domain expires and gets bought by someone else. An indicator that is never reviewed ends up blocking or flagging innocent third parties. That is why STIX gives each indicator a start date and an optional end date of validity, and why well-run IOC sets carry a review date.

Does an IOC match prove we have been compromised?

No. A match is a lead to investigate, not a verdict. It may come from an indicator that is too generic, an address shared by thousands of sites, a legitimate testing tool or a researcher scanning the internet. Check the indicator's confidence level, age and source, then correlate with other evidence: did the request succeed, was a file dropped, did an account start behaving differently? The security team or CSIRT makes the call.

What should executives expect from IOC management?

Three things. First, that the organization consumes reliable indicator feeds, from national CERTs or sector sharing groups, and checks them against its own logs. Second, that it can hunt backwards: an IOC published today also reveals an intrusion from months ago, provided the logs were kept long enough. Third, that detection does not stop at IOCs: an attacker can change an IP address in minutes, but changing methods is far harder, so behavior monitoring matters too.

Resources and Documentation