3.4.5. Indicators of Compromise (IOCs)
💡 First Principle: An indicator of compromise is a forensic artifact showing that a system has been, or is being, attacked. Some are atomic values you can search for and block (a hash, an address); others are behaviors you can only recognize in context (one account in two places at once). Analysts need both: atomic IOCs are precise but easy for an attacker to change, while behavioral IOCs are harder to evade but take judgment to read.
| IOC | What it looks like | What it tells you / caution |
|---|---|---|
| Hash | Cryptographic fingerprint (e.g., SHA-256) of a known malicious file | Finds the identical file anywhere; change one byte and the hash changes, so it misses recompiled or polymorphic variants |
| IP address | Known command-and-control, scanning, or exfiltration address | Easy to block; attackers rotate addresses and use shared cloud hosting, so expect short shelf life and false positives |
| Domain | Phishing, C2, or malware-hosting domains, including newly registered lookalikes and algorithmically generated (DGA) names | Blockable at DNS; a newly registered lookalike domain is a strong signal |
| Malicious processes | Unknown processes, known tools in odd locations, or legitimate binaries with the wrong parent or arguments | Process lineage (a document app launching PowerShell) is often the clearest fileless indicator |
| File system artifacts | Dropped files, executables in temp or user profile folders, new services or scheduled tasks, renamed extensions, ransom notes | Shows what the attacker left behind and how they persist |
| Timestamp | Activity at 3 a.m. for a 9-to-5 account, or file times altered to blend in (timestomping) | Timelines connect events; a file dated before the system was even installed is suspicious |
| Log manipulation | Cleared logs (Windows Security Event ID 1102, "The audit log was cleared"), gaps in log sequences, logging or audit policy disabled | Attackers erase evidence, so missing or deleted logs are an indicator themselves. Forwarding logs to a SIEM keeps a copy local tampering can't reach |
| Excessive resource consumption | Sustained CPU, memory, disk, or bandwidth with no business reason | Cryptomining, ransomware encryption, DDoS participation, or bulk exfiltration |
| Plaintext strings | Readable text inside a binary, memory dump, script, or packet capture: C2 URLs, IP addresses, ransom-note text, attacker commands, credentials sent in clear | Running a strings tool on a suspicious file often reveals its purpose and infrastructure without executing it |
| Account lockout | Many accounts locking out, or one account locking repeatedly | Brute force against one user, or spraying that tripped thresholds; locked-out users may be the first to report an attack |
| Impossible travel | Sign-ins from places too far apart for the time between them | Credential or session theft (rule out VPN and cloud egress points first) |
| Concurrent sessions | The same account active at the same time from different devices or locations where one is expected | Shared or stolen credentials, or a hijacked session running alongside the real user |
Reading IOCs in a scenario: look for combinations. A sign-in from a new country, then a new mailbox forwarding rule, then an outbound burst of email is an account takeover. A document spawning PowerShell, a new scheduled task, and periodic connections to a newly registered domain is malware execution, persistence, and command and control. One indicator raises a question; several pointing the same way answer it. Feed confirmed IOCs back into blocklists and share them (section 3.1.3) so the same infrastructure can't be reused against you or your peers.
⚠️ Exam Trap: Missing or cleared logs are not "no evidence" — log manipulation is an indicator in its own right. And a hash match is the most precise file indicator but the most brittle: if a scenario says the malware is recompiled or polymorphic for each victim, hash-based detection won't help and behavioral indicators will.