Skip to content

Indicators of Compromise: Identification and Use

Indicators of compromise are observable artefacts left by attackers that signal a system has been breached or is under active attack. This topic covers how investigators identify, validate, and share IOCs, the major IOC types and their evidential weight, and the techniques attackers use to evade IOC-based detection.

Last updated:

Share

An indicator of compromise (IOC) is an observable artefact on a host or network that provides evidence a security incident has occurred or is in progress. Typical IOCs include file hashes of known malware, IP addresses used by attacker infrastructure, malicious domain names, registry keys created by malware installers, anomalous user-agent strings, and file paths associated with attack tools. Investigators use IOCs to confirm that a specific threat actor or malware family has touched a given system, to scope the extent of a breach, and to share threat intelligence so that other organisations can block or detect the same threat before they are affected.

IOCs sit at the intersection of digital forensics and threat intelligence. A forensic examiner recovering artefacts from a compromised server is producing IOCs. A threat intelligence analyst consuming those artefacts and pushing them into firewall blocklists or SIEM detection rules is consuming IOCs. The two activities are coupled: the quality of the intelligence depends directly on the rigour of the forensic collection process, and the value of the forensic work depends partly on whether the findings can be operationalised quickly enough to prevent further harm.

IOC-based detection has well-documented limitations. Because most IOCs describe specific artefacts from past incidents, they detect known threats but not novel ones. Attackers who know their infrastructure is burned will rotate IP addresses, recompile malware to change file hashes, and register new domains. The result is an arms race in which the value of any single IOC decays over time. The forensic community responds by moving up the pyramid of pain toward behavioural indicators and TTPs, and by sharing IOCs faster so the window between compromise and detection narrows.

By the end of this topic you will be able to:

  • Classify the major IOC types by category and explain the evidential weight and durability of each using the pyramid of pain framework.
  • Describe the process for identifying, validating, and contextualising IOCs from a forensic investigation so they are fit for operational use.
  • Explain the STIX/TAXII standards and the role of platforms such as MISP in structured IOC sharing between organisations and national CERTs.
  • Identify the main attacker techniques for evading IOC-based detection, including hash mutation, IP rotation, and domain generation algorithms.
  • Apply IOC concepts in a forensic workflow, from initial triage through scoping, threat intel enrichment, and evidence preservation for legal proceedings.
Key terms
Indicator of Compromise (IOC)
An observable artefact on a host or network that provides evidence of a security incident. IOCs are used both for forensic investigation and for operationalising threat intelligence as detection or blocking rules.
Pyramid of Pain
A model proposed by David Bianco that ranks IOC types by the cost to an attacker of changing them when defenders start using that indicator. Hash values are at the base (trivial to change); TTPs are at the apex (costly to change).
STIX (Structured Threat Information eXpression)
An open standard that defines a data model for representing threat intelligence objects, including IOCs, threat actors, campaigns, and TTPs. STIX 2.1 is the current version, maintained by OASIS.
TAXII (Trusted Automated eXchange of Intelligence Information)
The transport protocol companion to STIX. TAXII defines how STIX data is exchanged between servers and clients over HTTPS, enabling automated ingestion of threat intelligence feeds.
Domain Generation Algorithm (DGA)
A technique used by malware to generate large numbers of candidate command-and-control domain names algorithmically, making it impractical to block the attacker's infrastructure by blocklisting individual domains.
MISP (Malware Information Sharing Platform)
An open-source threat intelligence platform that enables structured sharing of IOCs and threat intelligence using STIX and other formats. Widely deployed by national CERTs, sectoral ISACs, and large enterprises.

IOC types and the pyramid of pain

IOCs are not a single category of evidence. They range from cryptographic file hashes that precisely identify a single file, through network addresses and domain names, to behavioural patterns that describe what an attacker does rather than which specific tool they used. The pyramid of pain provides a practical way to think about this range: it orders IOC types from the base (easiest for an attacker to change) to the apex (hardest to change).

IOC typeExampleAttacker cost to changeForensic durability
Hash valuesMD5/SHA-1/SHA-256 of a malware binaryTrivial: recompile or pad the fileVery low: useful only for the exact sample
IP addressesKnown C2 server IPLow: rotate hosting or use bulletproof providerLow: may already be dead when shared
Domain namesphishing-site.netLow to moderate: register a new domainModerate: blocklists propagate quickly
Network artefactsURI pattern, User-Agent string, JA3 TLS fingerprintModerate: requires retooling the implantModerate to high: tied to the tool, not the infrastructure
Host artefactsRegistry key, mutex name, scheduled task nameModerate to high: requires code changesHigh: consistent across deployments of the same malware family
TTPsCredential dumping via LSASS memory readHigh: requires redesigning the attack approachVery high: persists across infrastructure changes

In practice, investigators collect all IOC types. Hash values and IP addresses are operationally useful for immediate blocking even if their long-term value is low. Host artefacts and TTPs feed longer-lived detection rules and threat actor attribution. A forensic report that provides only hashes and IPs has limited intelligence value; one that maps findings to the MITRE ATT&CK framework provides defenders with detection logic that outlasts the specific incident.

TTPs (Tactics,Techniques, Procedures)Host Artefacts (registry keys, mutexnames, file paths)Network Artefacts (URI patterns, JA3 TLSfingerprints)Domain Names (phishing-site.net)IP Addresses (C2 server IPs)Hash Values (MD5, SHA-1, SHA-256 of malware samples)Attacker cost to change: LOW at base, HIGH at apexDefender detection durability increases toward the topHIGHLOWCOST
The pyramid of pain: IOC types at the base are trivial for an attacker to change, so defenders who rely on them are easy to evade; IOC types at the apex require the attacker to redesign their entire approach, making TTP-based detection far more durable.

Identifying IOCs during a forensic investigation

IOC identification during an active forensic investigation follows a structured sequence. The investigator begins with triage: identifying the affected systems, preserving volatile evidence (running processes, network connections, memory), and establishing a timeline. IOC candidates emerge from this triage before the full forensic image is collected.

Network-layer IOCs are typically the first to surface. Firewall logs and NetFlow records show external connections. A connection to an IP address that has no business justification, particularly on unusual ports or at unusual hours, is an IOC candidate. DNS query logs show which domains a host has resolved. A domain that resembles a legitimate service but uses a different registrar, a recently registered date, or a non-standard TLD is a candidate for further investigation. Tools such as Zeek (formerly Bro) and Suricata produce structured logs that can be searched automatically against known-bad IOC feeds.

Host-layer IOCs require examination of the file system, registry, process list, and system logs. Key artefact sources include: the Windows registry (autorun keys such as HKCU\Software\Microsoft\Windows\CurrentVersion\Run are common persistence locations), scheduled tasks and services (malware commonly installs a service or scheduled task with a name designed to blend in with legitimate Windows processes), prefetch files (show execution history for processes on Windows systems), and the Windows Event Log (logon events, process creation events when Sysmon is installed, and PowerShell logging capture much of what attackers do on a Windows host).

Validating and contextualising IOCs

A raw IOC candidate is not yet intelligence. Validation determines whether the artefact is genuinely malicious or a false positive. Contextualisation adds the information that makes the IOC actionable: what threat actor or malware family it is associated with, how recently it was active, and how confident the attribution is.

For file hashes, validation is straightforward: submit the hash to VirusTotal or a similar multi-engine service. A hash with detections from multiple reputable engines is confirmed malicious. A hash with zero detections may be a novel sample, a legitimate file, or a targeted tool not yet seen in the wild. Novel samples with zero detections require manual or sandbox analysis before they can be treated as malicious IOCs. For IP addresses and domains, passive DNS services, BGP routing history, and WHOIS records provide context: registration date, registrar, autonomous system, and historical resolution records can confirm or contradict the initial suspicion.

Threat intelligence platforms enrich IOCs automatically by cross-referencing them against known campaigns and threat actors. A C2 IP address that appears in three previously reported APT28 campaigns is a much higher confidence IOC than one seen only once. Enrichment also flags IOCs that are no longer active: a C2 server that was taken down twelve months ago is not worth spending detection resources on, though it remains relevant for historical attribution.

False positive management is an underrated part of IOC validation. A shared IP address used by a major CDN, a domain used by a legitimate SaaS product, or a common DLL hash can generate enormous alert noise if added to a blocklist without validation. Every IOC should carry a confidence score and a source rating before it is operationalised. The Traffic Light Protocol (TLP) provides a standard for marking the permitted distribution of sensitive IOC data: TLP:RED restricts sharing to the named recipients; TLP:AMBER permits sharing within an organisation and with trusted partners; TLP:GREEN permits sharing within a community; TLP:CLEAR permits unrestricted sharing.

Attacker evasion of IOC-based detection

Sophisticated attackers treat IOC exposure as an operational risk and build their tooling and infrastructure to minimise the useful life of any indicator. Understanding these evasion techniques helps investigators prioritise higher-durability IOC types and adjust their detection strategy accordingly.

At the file hash level, attackers use polymorphic packers that repack the same underlying payload each time it is compiled, changing the hash with every build. They also add junk bytes or modify metadata to change the hash without altering functionality. Fuzzy hashing with SSDEEP or TLSH partially counters this by identifying structural similarity even when the exact hash differs, and YARA rules that match on byte sequences within the file rather than the whole-file hash are more durable than hash-only detection.

At the network level, IP rotation is cheap. Bulletproof hosting providers in jurisdictions with limited law enforcement cooperation allow rapid redeployment of C2 infrastructure. Fast-flux DNS changes the IP address a domain resolves to every few minutes, so blocklisting the IP is ineffective even if the domain itself is identified. Domain generation algorithms generate thousands of candidate C2 domains from a seed value (often the current date), so the malware can find an active C2 even if most of the generated domains have been blocklisted. Defenders counter DGAs by reverse-engineering the generation algorithm and pre-registering or pre-sinkholing the generated domains.

Living-off-the-land (LotL) techniques represent a deeper form of IOC evasion. Instead of deploying custom malware, the attacker uses tools already present on the victim system: PowerShell, WMI, certutil, and other built-in Windows utilities. These tools have legitimate uses and are not themselves IOCs. Detection requires behavioural analysis of how the tool is being used: certutil downloading a file from an external domain, or PowerShell executing a base64-encoded command, are suspicious patterns even though both binaries are legitimate system files.

Check your understanding
Question 1 of 4· 0 answered

According to the pyramid of pain, which IOC type is the most costly for an attacker to change when defenders start using it for detection?

Key Takeaways

  • IOCs range from exact file hashes and IP addresses at the low-durability end to host artefacts and TTPs at the high-durability end. The pyramid of pain maps this range to attacker cost of evasion, directing defenders toward behavioural detection that outlasts infrastructure changes.
  • Effective IOC extraction requires preserving volatile evidence first: memory images and live network state capture artefacts that disappear on reboot and that often include C2 addresses and injected code not present on disk.
  • STIX 2.1 and TAXII 2.1, implemented on platforms such as MISP, provide the structured exchange layer that converts a single organisation's incident into community-wide threat intelligence shared with national CERTs and sectoral ISACs.
  • Attacker evasion techniques, including polymorphic packing, IP rotation, DGAs, and living-off-the-land techniques, reduce the useful life of specific IOC values. Counters include fuzzy hashing, YARA rules, DGA reverse-engineering, and behavioural detection tuned to TTP patterns.
  • IOC evidence in legal proceedings must meet chain-of-custody and authentication requirements. In India this includes the section 63 certificate under the Bharatiya Sakshya Adhiniyam 2023; equivalent requirements apply under US Federal Rules of Evidence and UK criminal procedure rules.
What is an indicator of compromise (IOC)?
An indicator of compromise is an observable artefact on a network or host that provides evidence that a security breach has occurred or is occurring. Common IOCs include malicious IP addresses, file hashes, domain names, registry key modifications, and unusual process names. Investigators collect and share IOCs so that other organisations can detect the same threat in their own environments.
What is the difference between an IOC and a TTP?
An IOC is a specific observable artefact tied to a particular attack instance, such as a file hash or IP address. A TTP (tactic, technique, and procedure) describes the method the attacker used, independent of the specific artefact. TTPs are harder to change than IOCs, so intelligence based on TTPs remains useful longer. The MITRE ATT&CK framework catalogues TTPs; IOC feeds supply the instance-level observables.
What is the IOC pyramid of pain?
The pyramid of pain, proposed by security researcher David Bianco in 2013, ranks IOC types by how much it costs an attacker to change them when defenders start blocking based on that indicator. Hash values sit at the base and are trivial to change. IP addresses and domain names are easy to change. Network artefacts and host artefacts are harder. TTPs sit at the top and are the most difficult for attackers to alter, because changing a TTP requires the attacker to fundamentally redesign their approach.
What formats are used to share IOCs between organisations?
The main open standards for IOC sharing are STIX (Structured Threat Information eXpression), which defines a data model for threat intelligence objects, and TAXII (Trusted Automated eXchange of Intelligence Information), which defines the transport protocol for exchanging STIX data. OpenIOC, developed by Mandiant, is an older XML-based format still used in some legacy workflows. MISP (Malware Information Sharing Platform) is an open-source platform that implements STIX/TAXII and is widely used by national CERTs and sectoral ISACs.
How do attackers evade IOC-based detection?
Attackers evade IOC-based detection by making the specific observable change frequently. For file hashes, they recompile malware or use polymorphic packers. For IP addresses, they rotate infrastructure through bulletproof hosting or compromised servers. For domains, they use domain generation algorithms (DGAs) that automatically create thousands of potential command-and-control domains. Defenders respond by moving up the pyramid of pain and focusing detection on behaviours and TTPs rather than specific IOC values.

Test yourself on Cyber Forensics with free, timed mocks.

Practice Cyber Forensics questions

Found this useful? Pass it along.

Share

Spotted an error in this page? Report a correction or read our editorial standards.

Your journey to becoming a forensic professional starts here.

Practice with mock tests, learn from structured notes, and get your questions answered by a global forensic community, all in one place.