What is Indicator of compromise?
A piece of technical evidence that suggests an attack has happened or is under way: a malicious IP address, domain, file hash, registry key or email sender. IOCs are shared so others can search for the same attack.
Analysts pull IOCs out of investigations and threat reports, then search logs and endpoints for them or load them into blocklists. They differ in shelf life. File hashes and IPs are easy for attackers to change, so they expire quickly; behaviours and tooling patterns (the upper levels of the "pyramid of pain") last longer and are more valuable. Good IOC handling adds context (where it was seen, when, how confident the source is), checks for false positives before blocking (a shared hosting IP may also serve legitimate sites), and respects sharing labels such as the Traffic Light Protocol.
Source: NIST CSRC Glossary (NIST SP 800-61r3).
Practice it in a lab
Free, hands-on labs that teach Indicator of compromise. 31 more labs also cover it.
- Extract IOCs from a threat report (beginner, ~40 min)
- Extract IOCs from a threat report with a local LLM, score it against your own regex, and catch the IOCs it invents (intermediate, ~75 min)
- Hunt for IOCs in your logs with grep, awk, and jq (beginner, ~50 min)
- Pivot on indicators of compromise (IOCs) with VirusTotal and OTX (beginner, ~45 min)
- Scan your own machine for indicators of compromise with LOKI (beginner, ~40 min)
- Cut false-positive IOCs with MISP warninglists (intermediate, ~40 min)
- Extract a C2 beacon configuration from a payload and turn it into IOCs — recover the XOR key with no key, parse the TLV, emit indicators (intermediate, ~60 min)
- Work a MISP instance for real: ingest a feed, correlate events, and export IOCs your tools can actually consume (intermediate, ~70 min)
Related terms
Related
- Extract IOCs from a threat report
- Extract IOCs from a threat report with a local LLM, score it against your own regex, and catch the IOCs it invents
- Hunt for IOCs in your logs with grep, awk, and jq
- Pivot on indicators of compromise (IOCs) with VirusTotal and OTX
- Scan your own machine for indicators of compromise with LOKI
- Cut false-positive IOCs with MISP warninglists
- Extract a C2 beacon configuration from a payload and turn it into IOCs — recover the XOR key with no key, parse the TLV, emit indicators
- Work a MISP instance for real: ingest a feed, correlate events, and export IOCs your tools can actually consume
- MITRE ATT&CK
- Persistence
- False positive
- Sandbox
- Cybersecurity glossary
- Free cyber labs