Skip to content

Lesson 3 of 14 · 13m

IOCs Rot, TTPs Endure

Pyramid of Pain economics: hash feeds die on recompile, while a Sysmon 10 rule on lsass catches the next unnamed credential-dump tool.

An IOC is a value: a file hash, an IP address, a domain, a mutex name, a registry key. A TTP is a behavior: dumping LSASS memory, installing a service for persistence, staging output to ADMIN$. The difference matters because they fail differently. Change one byte in a binary — recompile it, pack it, flip a flag — and every hash IOC dies. The technique that binary performs does not care.

David Bianco drew this as the Pyramid of Pain in 2013: six tiers of indicator types, ranked by how much it costs the adversary to change them. Hashes are trivial — gcc -O2 produces a different hash than gcc -O0 and the malware is identical. IPs are easy — a new droplet is a command away. Domains cost a registration and burn when sinkholed. Host and network artifacts — pipe names, user-agent strings, file paths — require retooling. Tools require a rebuild of capability. TTPs, at the peak, require the adversary to retrain how they operate. Every tier up the pyramid is a tier the adversary pays real cost to evade — and a tier your detection survives.

The feed fallacy

The wrong mental model is feed-driven security: subscribe, ingest, blocklist, declare defended. Feeds are worth the disk space — blocking a known-bad IP is free coverage against reused infrastructure, and adversaries reuse infrastructure more than their OPSEC suggests. But feed content is yesterday's war. The indicator was extracted from somebody else's incident response, which means by the time it reaches your blocklist the adversary has had days to move. Worse, hash-only detection trains you to think detection is about values. It is about behavior with values attached.

The second wrong model is the inverse: "TTP detection is too fuzzy, everything is an anomaly." It is not. Opening lsass.exe with GrantedAccess 0x1010 or 0x1fffff shows up in Sysmon event ID 10 regardless of whether the process doing it is named mimikatz.exe, procdump64.exe, or rundll32.exe invoking comsvcs.dll, MiniDump — a living-off-the-land trick that dumps LSASS with a signed Microsoft binary. Write the detection at the behavior and every future credential-dump tool is caught before it exists.

The middle tiers deserve their honesty too. Host artifacts — mutex names, pipe names like \\.\pipe\msagent_##, hardcoded file paths, service names — are the sweet spot many hunters skip: they survive recompiles (the string is baked into the tool's operation, not its hash) and they're cheap to query. When a tool's documentation leaks its default artifact set, you get feed-grade detection for free and the adversary pays a retooling cost to evade it.

What the record shows

NotPetya, June 27, 2017. The payload was cryptographically novel — no hash feed on earth covered it — and it spread through networks in minutes using EternalBlue plus WMIC and PsExec carrying credentials harvested from memory. Every detection keyed to the lateral-movement shape — service installs on remote hosts, WmiPrvSE.exe spawning shells, ADMIN$ writes — fired on behavior that was days old as a sample but years old as a technique.

SUNBURST inverted the same lesson from the other side. The backdoored component, SolarWinds.Orion.Core.BusinessLayer.dll, was signed with SolarWinds' own certificate — reputation-clean by every file-based measure. What persisted for months was the pattern: DNS requests whose subdomains encoded victim identity under avsvmcloud.com. An artifact, not a hash. That is what survived long enough to be found.

The practice

Tag everything you find with ATT&CK technique IDs — T1021.002 for SMB/Admin shares, T1003.001 for LSASS memory, T1053.005 for scheduled tasks — because that is the vocabulary that survives tool swaps. Spend IOCs where they are strong: edge blocks, watchlists, enrichment that adds context to a real finding. Build detection at the highest pyramid tier you can express in your telemetry. And when a hunt turns up an IOC, do not write a rule named after it — write the rule that catches the next one.

The operational formula, stated plainly: feed the IOCs to the blocklists, hunt the TTPs in the telemetry, and spend the artifacts tier on everything in between.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.