Indicators of Compromise
Table of Contents
Indicators of Compromise (IOCs) are specific pieces of evidence that suggest a system or network has been compromised by a malicious actor. They can be artifacts left behind by Malware, suspicious activity patterns, or other anomalies that indicate a breach has occurred.
Related: Pyramid of Pain Threat Intelligence Malware YARA Data Exfiltration Incident Response
Types of IOCs
Network-based
- Domain Names: Malicious domains used for command and control (C&C) or Data Exfiltration
- URLs: URLs of malicious websites or Phishing pages
- Hashes: Hash values (e.g., MD5, SHA-1, SHA-256) of malicious files
- MAC Addresses: Media Access Control addresses of compromised devices
Host-based
- File Paths: Locations of malicious files on the system
- Registry Keys: Modified registry entries associated with malware
- Process IDs (PIDs): IDs of malicious processes running on the system
- Event Log Entries: Suspicious events recorded in system logs (e.g., security logs, application logs)
Other
- Email Addresses: Email addresses used by attackers
- Account Names: Compromised usernames and accounts
- YARA Rules: Patterns and signatures used to identify malicious code
IOCs vs Pyramid of Pain — Not All IOCs Are Equally Useful
The list above treats all IOC types as equivalent, but they aren't — this is exactly what the Pyramid of Pain framework addresses. Hash values and IP addresses (bottom of the pyramid) are trivial for an attacker to change and give you only a momentary block. TTPs — how the attacker actually operates, not what specific artifact they left behind — sit at the top and are far harder to change, making them the more valuable long-term detection target.
When triaging which IOCs from an incident are worth turning into lasting detection rules versus logging once and moving on, rank them by pyramid position, not just by how many you found.
Uses of IOCs
- Threat Hunting: Actively searching for IOCs within an environment to identify potential threats
- Threat Intelligence Sharing: Sharing IOCs with other organizations to improve collective security
- Intrusion Detection: Using IOCs to create signatures for Intrusion Detection Systems to detect and block future attacks
Sources for IOC Lookup
Practical starting points when you have an artifact and need to check whether it's already known-malicious:
- File hashes: VirusTotal, Threat Intelligence platforms
- IPs/domains: AbuseIPDB, Shodan, passive DNS services
- MISP: aggregates and correlates IOCs across multiple feeds, useful when checking a large batch at once rather than one artifact at a time
Note
- IOCs can change rapidly as attackers evolve their tactics
- It's crucial to stay updated with the latest Threat Intelligence and continuously monitor for new IOCs
- Given the point above about the Pyramid of Pain: staying current matters most for the low-value, fast-changing indicator types (hashes, IPs); TTP-level detections built once tend to stay relevant far longer
Tips
- On the exam or during an engagement, if you're documenting IOCs from a compromise you caused (e.g. in a red team report), include both the low-level artifacts (file hashes, IPs used) and the higher-level TTPs (techniques employed) — the low-level ones let defenders block this specific instance, the TTPs let them build detections against your general approach
- A single IOC in isolation is weak evidence — correlate multiple IOC types together (a suspicious process AND a matching network connection AND a registry key change) before treating something as confirmed rather than merely worth investigating further