Fundamentals

What is an IOC?

Clues of a cyberattack: learning to recognize indicators of compromise.

1 Introduction

An IOC (Indicator of Compromise) is like a clue at a crime scene. A burglar leaves traces behind: fingerprints, a forgotten tool, a forced lock. In cybersecurity it is the same. When attackers break into a system, they leave digital clues: a suspicious IP address, a malicious domain name, the hash of an infected file, a URL or an email address. These clues are IOCs, and they let analysts detect, understand and block attacks.

5 types

Main categories of IOCs

6 levels

In the Pyramid of Pain, from hashes to attacker behavior

STIX / TAXII

Open standards used to share IOCs between organizations

2 How It Works

Use the IOC detector below to identify and classify indicators of compromise. Paste any suspicious value (an IP, domain, hash, URL or email address) and the tool will tell you what type of IOC it is and give you context about it.

The 5 main types of IOCs

IP addresses

Servers used by attackers for command and control (C2), data exfiltration or hosting malicious content.

203.0.113[.]42

Domains

Malicious or compromised domain names used for phishing, malware delivery or C2 communication.

evil-update[.]com

File hashes

Unique fingerprints of malicious files (preferably SHA-256). The most precise type of IOC: it identifies one exact file.

7a1c9e4f02b8...

URLs

Full web addresses pointing to phishing pages, exploit kits or malware downloads.

hxxps://evil[.]com/payload.exe

Email addresses

Sender addresses used in phishing campaigns or linked to an attacker's accounts.

admin@fake-bank[.]com

Note the [.] and hxxp: analysts "defang" IOCs when they share them, so that nobody clicks on them by accident and no tool turns them into live links.

3 Detailed Analysis

The lifecycle of an IOC

1. Detection

An analyst spots suspicious activity and isolates the indicators: source IP, dropped file, contacted domain.

2. Analysis and enrichment

The IOC is verified, cross-checked with other sources and linked to a campaign or a known group of attackers.

3. Sharing

It is published through platforms such as MISP or OpenCTI, or in STIX/TAXII threat intelligence feeds, to warn the community.

4. Action

Security tools (firewall, antivirus/EDR, SIEM) use it to block or detect the threat automatically, until it expires.

The Pyramid of Pain

Not all IOCs are equally useful. In 2013, security researcher David Bianco created the Pyramid of Pain to illustrate this. At the bottom are indicators that are easy to collect but also trivial for attackers to change, such as file hashes. The higher you go, the more "pain" you cause the attacker by detecting them.

Hash values (trivial to change)

Changing a single byte or recompiling the malware gives a completely new hash. Perfect for exact matching, but easily evaded.

IP addresses (easy to change)

Attackers can switch servers, use proxies or rotate between cloud providers. Blocking one IP is a temporary fix.

Domain names (simple to change)

Registering new domains costs a little time and money. Taking a domain down hurts more than blocking an IP.

Network and host artifacts (annoying)

Traces left on the network or on machines: a specific URL pattern, a registry key, a file name. Changing them forces the attacker to modify their tools.

Tools (challenging)

Detecting the attacker's software itself forces them to find or develop new tools.

TTPs: Tactics, Techniques and Procedures (tough)

The attacker's behavior and methods, often described with the MITRE ATT&CK framework. Forcing an attacker to change their whole way of operating is the most effective defense.

Where do IOCs come from?

IOCs come from incident investigations, malware analysis, honeypots and monitoring of criminal forums. They are shared through threat intelligence feeds, platforms such as MISP or OpenCTI, CTI reports and commercial providers. The community relies on fast sharing to protect everyone sooner.

A classic trap: the MD5 hash d41d8cd98f00b204e9800998ecf8427e is the hash of an empty file. It shows up in many logs and sometimes in poorly curated IOC lists, where it can trigger a flood of false positives.

Try it on mlab.sh

Paste any text, log or report and automatically extract its IOCs: IP addresses, domains, hashes, URLs and email addresses. Quickly classify and investigate the indicators you find.

Extract IOCs on mlab.sh

4 Red Flags

Your antivirus flags a known hash

If your security software blocks a file whose hash matches a known IOC, do not try to bypass the alert or restore the file. Report it to your IT team.

Outbound traffic to a known malicious IP or domain

If a machine on your network regularly connects to a listed IP, or to recently created or random-looking domains, it may already be compromised and talking to its control server. Investigate immediately.

An email contains listed IOCs

Do the sender address, links or attachments match known indicators? Do not click anything and report the message (see Suspicious email).

Several different IOCs point to the same threat

A single indicator can be a false positive. When a suspicious IP, a related domain and a matching file hash appear together, confidence in the threat becomes very high.

IOCs linked to a known threat actor

If indicators in your network match infrastructure attributed to an advanced group (APT28, Lazarus...), treat it as a critical incident and escalate immediately.

An old IOC with no context

IOCs have a shelf life: an IP used by an attacker six months ago may now belong to a legitimate service. A raw indicator without a date, source or explanation is almost useless and generates false positives. Always check its age and context.

Related Modules