01 / 20

Indicators of
Compromise

Learn to identify the digital fingerprints attackers leave behind: from suspicious network traffic to unauthorized file changes and beyond.

Cyber Security

What Are IOCs?

An Indicator of Compromise (IOC) is a piece of forensic evidence that suggests a system or network has been breached. Think of IOCs as the digital clues left at a crime scene: just as a burglar might leave fingerprints or broken glass, a cyber attacker leaves behind data artifacts that reveal their presence.

Why IOCs Matter

★ Early Detection
Spotting IOCs quickly can reduce the time an attacker has inside your network, limiting damage.
★ Incident Response
IOCs guide responders to compromised systems, helping them contain and eradicate the threat.
★ Threat Intelligence
Sharing IOCs across organizations helps the entire community defend against known attack patterns.

Categories of IOCs

IOC Categories Network-Based Host-Based Email-Based Behavioral IPs, domains, URLs, traffic anomalies File hashes, registry changes, processes Phishing links, malicious attachments Unusual logins, privilege escalation

Network-Based IOCs

Network IOCs are artifacts found in network traffic or DNS logs that indicate malicious activity. Security teams monitor these at the perimeter and within the internal network.

1
Suspicious IP addresses: connections to known command-and-control (C2) servers or IPs on threat intelligence blocklists.
2
Unusual DNS requests: queries to newly registered domains, domain generation algorithm (DGA) patterns, or unexpected external lookups.
3
Unexpected outbound traffic: large data transfers at unusual hours or connections on non-standard ports.
4
Malicious URLs: links to phishing sites or exploit kit landing pages found in proxy logs.

Host-Based IOCs

Host IOCs are found directly on endpoints: servers, workstations, or mobile devices. They reveal that malware has executed, files have been altered, or configurations have been tampered with.

★ File Hash Changes
Known-good files replaced with malicious versions: compare MD5/SHA-256 hashes against baselines.
★ Registry Modifications
Unauthorized changes to OS registry keys used for persistence (auto-run entries).
★ Suspicious Processes
Unknown executables, processes masquerading as system services, or unusual parent-child relationships.

IOCs vs. IOAs

A common confusion is between Indicators of Compromise (IOCs) and Indicators of Attack (IOAs). Both are critical, but they serve different purposes in the security lifecycle.

IOC IOA
Timing After the event During the event
Nature Forensic evidence Behavioral patterns
Focus What happened What is happening
Example Malware file hash Lateral movement attempt
Approach Reactive detection Proactive detection

The IOC Lifecycle

Collect Gather data Analyze Identify patterns Correlate Match to threats Respond Contain & fix Feed intelligence back into collection IOC Lifecycle: Continuous Loop

How to Investigate IOCs

1
Baseline your environment: know what normal looks like: standard processes, typical traffic patterns, and approved software hashes.
2
Deploy monitoring tools: SIEM, IDS/IPS, EDR, and log aggregators to capture telemetry from hosts and networks.
3
Cross-reference threat intelligence: compare observed artifacts (hashes, IPs, domains) against public and private IOC feeds.
4
Triage alerts: prioritize based on severity, asset criticality, and confidence in the IOC match.
5
Contain and remediate: isolate affected systems, remove malicious artifacts, and patch the vulnerability that was exploited.

Example: Phishing Email IOC

Phishing Email invoice.pdf.exe SHA-256: a3f2...9b1c Malicious File C2 Server 198.51.100.47 Network IOC IOCs found: sender domain, file hash, embedded URL, C2 IP Each artifact is logged and shared via threat intelligence feeds

Example: Ransomware IOCs

A ransomware attack typically leaves a trail of IOCs across multiple categories. Security analysts piece these together during incident response.

1
File extension changes: documents renamed with extensions like .encrypted, .locked, or .crypted across multiple directories.
2
Ransom note files: new files (e.g., README_DECRYPT.txt) appearing in every directory: a clear host-based IOC.
3
Unusual encryption processes: CPU spikes from processes encrypting files in bulk, often masquerading as legitimate tools.
4
Outbound C2 communications: traffic to Tor exit nodes or unfamiliar domains for key exchange and payment instructions.

Example: Lateral Movement

Workstation Compromised File Server Targeted Domain Ctrl Final Target PsExec / RDP Pass-the-Hash Behavioral IOCs detected: Multiple failed logins → new admin account → unusual SMB traffic

Tools for Detection

★ SIEM
Security Information and Event Management: aggregates logs and correlates events from across the environment.
★ EDR
Endpoint Detection and Response: monitors individual hosts for suspicious processes, file changes, and behaviors.
★ IDS/IPS
Intrusion Detection/Prevention Systems: analyze network traffic against known signatures and anomalies.
★ Threat Intel Platforms
Databases like MISP, VirusTotal, and AlienVault OTX: centralized repositories of shared IOCs.

IOC Sharing Standards

For IOCs to be useful across organizations, they must be shared in standardized formats. This enables automated ingestion by security tools and threat intelligence platforms.

★ STIX
Structured Threat Information Expression: a language for describing cyber threat information in a standardized JSON format.
★ TAXII
Trusted Automated Exchange of Intelligence Information: a transport protocol for sharing STIX-formatted data between systems.
★ OpenIOC
An open framework by Mandiant for defining and sharing IOCs using XML-based descriptions of technical characteristics.

Common Mistakes with IOCs

✕ Relying Only on IOCs
IOCs are reactive: they catch known threats but miss novel attacks. Always pair with behavioral analysis (IOAs).
✕ Stale IOC Feeds
Threat actors rotate infrastructure constantly. Using outdated IP/domain lists generates false negatives and wastes resources.
✕ Ignoring Context
An IP flagged as malicious might be a shared CDN. Without context (confidence score, source, timestamp), analysts chase false positives.

IOC Type Summary

IOC Type Where Found Examples Tool
Network Traffic / logs Malicious IPs, DNS queries IDS/IPS, SIEM
Host Endpoints File hashes, registry keys EDR, AV
Email Mail gateways Phishing URLs, attachments Email filter
Behavioral User activity Unusual logins, privilege esc. UEBA, SIEM

Question 1 of 5

Which of the following is the best definition of an Indicator of Compromise (IOC)?

Question 2 of 5

An analyst discovers that several workstations are connecting to an unfamiliar IP address at 3:00 AM every night. What category of IOC does this represent?

Question 3 of 5

What is the key difference between an IOC and an IOA?

Question 4 of 5

A security team finds README_DECRYPT.txt files appearing across multiple directories. Which type of attack does this IOC most strongly suggest?

Question 5 of 5

Which of the following is a common mistake organizations make when using IOCs?