Lesson 12 of 12 · 25m
Writing IOCs an IR Team Can Actually Use
The pyramid of pain, indicators with role, confidence, and expiry, what to leave out, behavior detections as Sigma, and the handoff that gets acted on at 2 a.m.
Your deliverable isn't the analysis — it's what IR does with it at 2 a.m. while three other alerts fire. I've watched a raw sandbox indicator list pushed straight to the firewall: it included time.windows.com, www.msftconnecttest.com, and the lab's INetSim address 10.0.0.1, which overlapped a production subnet. The malware kept running; the finance VLAN didn't. Indicators without context are a liability you ship to someone else.
The pyramid of pain
David Bianco's pyramid ranks indicators by the cost a detection imposes on the attacker: hashes (trivial to change) → IPs (easy) → domains (simple) → network/host artifacts (annoying) → tools (challenging) → TTPs (tough). The wrong mental model is picking one layer — usually hashes, because they're easy to list. Ship the whole stack: hashes answer "is it on any box right now"; artifacts and behaviors are what still fire after tomorrow's rebuild.
Every indicator carries context
type,value,role,status,confidence,first_seen,expires,how_to_look
sha256,7f3a9c41e2b8...7c9b,packed dropper invoice_0412.exe,observed,high,2024-03-18,never,EDR file hash search
domain,cdn-telemetry-update[.]top,primary C2,observed,high,2024-03-18,2024-06-18,DNS + proxy logs
ip,203.0.113[.]47,backup C2 :8443,configured,medium,2024-03-18,2024-04-18,check for shared hosting first
mutex,Kx7_SvcUpd_7731,host artifact,observed,high,2024-03-18,never,EDR mutex/handle queryRole tells IR what a hit means — a hit on the backup C2 is different news than a hit on the dropper. Status separates what you saw from what you extracted. Expiry keeps the block list sane: IPs get reassigned in weeks, domains live longer, hashes never expire but stop mattering after a rebuild. how_to_look is the EDR query — worth more than the string, because "DNS + proxy logs" is a task someone can execute.
What to leave out
Every false positive costs the same thing: trust in the next indicator you send. A firewall rule that kills time.windows.com for a finance VLAN teaches IR to read your reports skeptically, which is worse than sending fewer indicators. So subtract, aggressively: sandbox noise (the INetSim IP, connectivity checks, CDN domains, your VM's hostname); legitimate services used as C2 — hand over the URL path or token, not the domain a company depends on; and hashes of abused LOLBins — blocking rundll32.exe is a career-limiting move. A small normalizer helps:
const raw = `hxxps://cdn-telemetry-update[.]top/api/v2/gate.php\nCDN-TELEMETRY-UPDATE[.]TOP\n203.0.113[.]47\n10.0.0.1\nwww.msftconnecttest.com`;
const noise = [/^10\./, /^192\.168\./, /(^|\.)msftconnecttest\.com$/];
const refang = s => s.trim().replace(/\[\.\]/g, ".").replace(/^hxxp/i, "http");
const host = s => (/^https?:\/\//i.test(s) ? new URL(s).hostname : s).toLowerCase();
const kept = [...new Set(raw.split("\n").map(refang).map(host))].filter(h => !noise.some(rx => rx.test(h)));
console.log(kept.map(h => h.replace(/\./g, "[.]"))); // deduped, noise dropped, re-defanged for the reportBehavior beats hashes: hand over a detection
title: Rundll32 Running DllRegisterServer From Users Public
status: experimental
description: Kestrel loader stage 2 (CASE-2291) - rundll32 loading a DLL from C:\Users\Public
logsource:
product: windows
category: process_creation
detection:
selection:
Image|endswith: '\rundll32.exe'
CommandLine|contains|all: ['\Users\Public\', 'DllRegisterServer']
condition: selection
falsepositives:
- None seen in 30 days of fleet process telemetry
level: highThat's a Sigma rule — the detection survives the rebuild, the IP change, the re-pack. A hash list dies by Tuesday; rundll32 loading from C:\Users\Public works next month too. Ship both, because they answer different questions: the Sigma rule hunts the technique across the fleet going forward, and the hash answers "was this exact file ever here" in the past. The falsepositives field is not boilerplate — "none seen in 30 days of fleet telemetry" is the evidence that lets a responder deploy it during an incident instead of scheduling a review for it.
Field notes
- Put "how to look" next to "what to look for" — the query is the deliverable; the string is the payload of it.
- Lead the report with a three-line TL;DR: what it is, what it does, what to do now. The detail is for whoever asks.
- Export STIX 2.1 / MISP for the TIP (
[file:hashes.'SHA-256' = '7f3a...']), but the human-readable table is what actually gets read. - Say what you didn't check — "did not test with admin privileges" saves IR from false confidence.
- Expiry is not optional on volatile indicators. A stale IP block is someone else's outage.
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
A Fake GTA 6 ISO Didn’t Install a Game. It Installed a Wiper.
A fake GTA 6 ISO used a believable installer error to cover remote-access malware, browser-data theft, and destructive file wiping. The “License not found” message wasn’t the crack failing. It was there so the victim would stop looking.
CVE-2025-62718: Critical Axios SSRF Vulnerability Explained
A critical SSRF flaw in Axios was used in a North Korean supply chain attack. Here's what it does and how to patch it today.
A Minecraft Mod Is a Program. In 2026, Attackers Started Acting Like It.
A Minecraft mod is a Java program that runs with your account's full permissions, and nothing in the game checks what it does.
Hacktivism, 2021 to Today: From Steel Mills to Power Grids
Part 1 ended on a 70-gigabyte breach in 2021. Since then, hacktivists derailed trains, dumped molten steel on camera, and reached grids in three countries.