
Indicators of compromise (IOCs) are technical artifacts or observables, such as a file hash, IP address, domain, registry key or email sender, that suggest an attack is imminent, under way or has already happened. Security teams match IOCs against logs and endpoint data to detect and scope intrusions, and a match is evidence to investigate and does not prove a breach.
Indicators of compromise fall into network, host, file and email artifacts, and they differ mainly in how long they stay useful. Terminology differs by source. NIST SP 800-150 defines an indicator as a technical artifact or observable and lists tactics, techniques and procedures (TTPs) as a separate category of threat information, while RFC 9424 uses a broader IOC model that can include observable attack techniques. RFC 9424 (section 3.1) and David Bianco’s Pyramid of Pain (2013, updated 2014, cited in the RFC) put hashes at the base, trivial to change, and tools and TTPs at the top, hardest to change.
| Type | Example (placeholder) | Where it is seen | How long it stays useful |
| File hash | SHA-256 0000…dead (fake) | Endpoint detection and response (EDR), email gateway | Short: changes on recompile |
| IP address | 203.0.113[.]45, a command-and-control (C2) server | Firewall, proxy | Short: rotated or reassigned |
| Domain or URL | login.example[.]com | Domain Name System (DNS) logs, proxy | Short to medium |
| Host artifact | New registry run key or scheduled task | EDR, event logs | Medium: tied to the tool |
| Email artifact | Sender domain, subject, attachment name | Email gateway | Short |
| Observable behavior or technique (broader RFC 9424 usage), top of the Pyramid of Pain | Shadow copy deletion before encryption | EDR, security information and event management (SIEM) | Long: costly to change |
Repeated connections at regular intervals to infrastructure assessed as command-and-control may indicate beaconing, but cadence alone is not conclusive. Behaviors are usually tracked as TTPs, and RFC 9424 places them at the top of its pyramid; the section on IOC and IoA below explains how they relate to indicators of attack.
Teams use IOCs to alert on or block known-bad activity, search past telemetry, and share findings as cyber threat intelligence.
IOCs are loaded into SIEM rules, EDR policies, blocklists and DNS filters, so a match alerts or blocks. In retro-hunting, analysts search historic data, such as logged DNS queries, proxy logs and EDR telemetry, for a new indicator to see if it appeared earlier.
A shared indicator should include its source, first-seen and last-seen dates, confidence and the applicable Traffic Light Protocol (TLP) label, which defines how recipients may share the information. Structured Threat Information Expression (STIX) describes threat data and Trusted Automated Exchange of Intelligence Information (TAXII) is the protocol that exchanges it; a threat intelligence platform de-duplicates indicators from many feeds. The guide to STIX and TAXII covers both in depth. RFC 9424 describes an IOC lifecycle of discovery, assessment, sharing, deployment, detection, reaction and end of life. The threat intelligence lifecycle is broader and starts from intelligence requirements.
Treat a match as a lead: validate, scope, contain, then learn.
For the full response process, see NIST SP 800-61 Revision 3 (2025), which places incident response within cybersecurity risk management activities as described by the NIST Cybersecurity Framework (CSF) 2.0.
Ransomware investigations use both technical IOCs and behavioral indicators. Some appear before encryption and create time to act; others appear only after impact.
Before encryption, CISA’s #StopRansomware Guide points hunters to C2 beacons such as Cobalt Strike, credential dumping, unexpected endpoint-to-endpoint connections, unexpected remote monitoring and management (RMM) software, and changes that impair backups or shadow copies (MITRE ATT&CK T1490). It also lists exfiltration signs: abnormal outgoing data, tools such as Rclone and Rsync, and tunneling with Chisel or Cloudflared. After encryption come mass file renames with new extensions and ransom notes (ATT&CK T1486).
Illustrative example (hypothetical, placeholder values): a team loads the C2 domain c2.example[.]com from an advisory into its SIEM with source and date. A retro-hunt finds a host that resolved it and then connected to it two weeks earlier; after confirming the connection in proxy logs, the team isolates the host and retires the domain once it ages out.
Legitimate administration tools such as PsExec can also appear in intrusions, so their presence is an investigative lead rather than proof of malicious use.
Indicators for specific malware families are covered in what an infostealer is and how stolen credentials are traded and how to spot a remote access trojan.
Common mistakes are trusting stale indicators, loading them without context, and treating IOC matching as complete coverage.
Stale indicators. IP addresses and domains are reassigned or abandoned, so blocklists without expiry dates collect false positives.
No context. An indicator without source, dates or confidence cannot be prioritized, and more indicators produce more alerts without more security. Context such as actor, campaign and recommended action makes indicators usable.
Shared infrastructure. A cloud-hosted IP that is reassigned between users, or a compromised legitimate website, is not malicious by itself; RFC 9424 notes this reduces an indicator’s precision.
CYFIRMA’s DeCYFIR, its platform for External Threat Landscape Management (ETLM), delivers indicators with context and a Block or Monitor recommendation through its API and STIX and TAXII options, with CSV export, and the organization’s own controls decide what is enforced.
An IOC traces activity someone has already observed, so novel tooling and zero-day exploits may pass IOC matching, though reused infrastructure or tooling later in the intrusion may still match. An indicator of attack (IoA) detects attacker behavior as it happens, even for an unseen actor; the two are complementary layers. Behaviors such as shadow copy deletion can serve as either: recorded as evidence from an investigation, they are indicators of compromise; written as a rule that fires while the behavior happens, they work as indicators of attack.
A common example of an indicator of compromise is the hash of a malicious file, the IP address of a command-and-control (C2) server, or a registry key created by malware.
An IOC is generally derived from previously observed malicious activity, yet it can still match an intrusion that is happening now; an IoA flags behavior in progress. Use both.
There may be no exploit-specific IOC before a zero-day is observed. Defenders may still detect reused infrastructure, tooling, post-exploitation artifacts or behavior, and retro-hunting can reveal earlier activity.
A file hash is an IOC because it fingerprints a known-malicious file. It matches only that exact file, because any change to the file produces a new hash.
Security teams share IOCs in STIX format through TAXII or through open-source sharing platforms such as MISP, with TLP labels limiting onward sharing.
IOCs come from incident investigations, malware analysis, threat intelligence feeds, government advisories and sharing communities.
Before encryption, common ransomware IOCs include C2 traffic, credential dumping, unexpected remote monitoring and management (RMM) software, large outbound transfers and shadow copy deletion. After encryption, they include ransom notes and mass file renames.
No. A match is a lead to validate, because shared infrastructure, stale data or legitimate tools can cause false positives.
An IOC is a technical artifact or observable associated with malicious activity. It becomes useful when it carries source, context, confidence and an expiry date, so favor durable, well-sourced indicators and pair them with behavioral detection.