Use this when searching for known artefacts of compromise.
Indicators of Compromise · Detection Engineering
Indicators of compromise (IOCs) are artefacts showing a system may be compromised — malicious hashes, IP addresses, domains, file paths or registry keys — used for searching and blocking.
1. IOCs: IPs, domains, hashes, URLs from known attacks.
2. Easy to change for attackers (pyramid of pain).
3. Age out old indicators.
4. Use for retro-hunts.
5. Combine with behaviour detections.
threat intel IOC → match in telemetry → alert
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Sharing formats Narrow the fault
| Format | Use |
|---|---|
| STIX 2.1 / TAXII | Structured threat intel exchange |
| MISP | Open-source sharing platform |
| CSV / plain lists | Firewall and proxy block lists |
| Sigma / YARA / Snort | Detection rules rather than raw IOCs |
Add context (first seen, confidence, expiry) — IOCs without context cause false positives.
Step 2 Common mistakes Narrow the fault
- Using IOCs without expiry.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- IOCs are hashes, IPs, domains and file paths.
- They age quickly as attackers change infrastructure.
- Use them for sweeps and blocking.
- IOC feed ingestion — indicators
- IOC matches in logs — hits
- IOC expiry/aging — freshness
ReferenceWhy it matters1 section · depth on demand
Types and limits
| IOC type | Example | Lifetime |
|---|---|---|
| File hash | SHA-256 of a malware sample | Short: one recompile changes it |
| IP address | C2 server | Short: rented infrastructure |
| Domain | Phishing or C2 domain | Days to weeks |
| Artefacts | Mutex, registry key, file path | Longer |
IOCs are good for scoping a known incident and blocking known-bad items, but attackers change them easily (Pyramid of Pain). Expire old IOCs to avoid false positives.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Indicators of Compromise (IOCs) in detection engineering are artefacts used to build matching detections: file hashes, IP addresses, domains, URLs, registry keys, mutex names, certificate fingerprints. IOC-based detections are precise and quick to deploy but short-lived, because attackers change them easily.
Using IOCs well:
| Practice | Reason |
|---|---|
| Automate ingestion from trusted sources (TIP/MISP) | Speed |
| Attach context and expiry | Avoid stale blocks and false positives |
| Retro-hunt historical data | Find past compromise |
| Score confidence | Prioritise alerts |
| Combine with behavioural detections | Durable coverage |
IOC matches in logs are a starting point for investigation, not proof — shared hosting and CDNs make IP and domain matches ambiguous.
Pyramid of Pain
| Indicator | Cost for attacker to change |
|---|---|
| Hash values | Trivial |
| IP addresses | Easy |
| Domain names | Simple |
| Network/host artefacts | Annoying |
| Tools | Challenging |
| TTPs | Tough |
IOCs are useful for quick sweeps; durable detection targets behaviour (TTPs).
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Detection Engineering → Indicators of Compromise. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://sigmahq.io/docs/basics/rules.html · confidence 94%