· by · 6 min read

An honest ATT&CK matrix


It’s a staple of security steering committees: the MITRE ATT&CK matrix, with green cells wherever a detection rule exists. It’s reassuring. It’s also, nearly always, misleading.

Not because anyone is lying. Because the question it answers (“do we have a rule tagged with this technique?”) isn’t the one people think they’re asking (“would we detect this technique?”). I wanted to measure that gap with public data, on a single technique.

What a rule-coloured matrix shows

Starting point: the public SigmaHQ repository, already dissected in the alert fatigue post. Nearly all of its 3,154 rules in rules/ carry ATT&CK tags. I matched those tags against the ATT&CK v20 technique list bundled with pySigma and counted, per tactic, the share of techniques with at least one rule (directly or through a sub-technique).

Bar chart of the share of ATT&CK v20 techniques per tactic with at least one tagged SigmaHQ rule. Privilege-escalation 100% (13 of 13), credential-access 89% (16 of 18), impact 87%, persistence 86%, discovery 85%, collection 82%, initial-access 82%, lateral-movement 78%, stealth 74%, command-and-control 72%, defense-impairment 67%, execution 64%, exfiltration 60%, resource-development 56%, reconnaissance 50%.
Colour the matrix by rule tags and nearly everything looks “covered”. Chart: PurpleLog, SigmaHQ tags (commit c04ad420b46c) and ATT&CK v20.

Impressive at first glance: 100% for privilege escalation, 89% for credential access. On a slide, that’s an almost entirely green matrix.

Two numbers should cool things down. Of the 390 technique and sub-technique IDs with at least one rule, 84 have exactly one. And 345 rules carry no technique tag at all, so they never appear on the matrix however useful they may be.

The coverage ladder

A green cell can mean three very different things. I think of them as three rungs:

  1. Tagged: a rule carries the technique’s tag.
  2. Fed: the logs the rule needs are actually being collected.
  3. Tested: the rule has been run against data containing the technique, and it fired.

Most matrices stop at rung one. To see what the other two look like, I took a technique everyone wants covered: T1003.001, credential theft from LSASS memory. SigmaHQ has 73 rules for it, which makes it one of the best-served techniques in the repository.

Rung three needs data. OTRF Security-Datasets publishes, under the MIT licence, 24 datasets recorded during credential access simulations: cmd_lsass_memory_dumpert_syscalls, psh_lsass_memory_dump_comsvcs, rdp_interactive_taskmanager_lsass_dump, several Mimikatz variants. 129,024 Windows events in all. I ran the 73 rules over them with the same approach as in the post on testing Sigma rules: SQL conversion via pySigma’s SQLite backend, then execution.

Ladder bar chart for T1003.001: 73 tagged rules, 69 executable as SQL, 15 that fire at least once on the corpus, and 10 of those that don’t use Sysmon event 10.
From 73 tagged rules to 15 that fire, then 10 without Sysmon event 10. Chart: PurpleLog, SigmaHQ rules run over 24 OTRF datasets.

Of 73 rules, 69 could run (one doesn’t convert to SQL, three produce a query SQLite rejects). And of those 69, 15 fire at least once, on a corpus that is entirely about credential theft. The other 54 stay silent.

Why 54 silent rules aren’t 54 useless rules

Read this part carefully, because the number invites a bad reading.

A rule that stays silent on this corpus can be excellent. Many target tools or variants that simply aren’t in these 24 datasets: a different dumping utility, a different file name, a different method. The corpus doesn’t contain everything and no corpus ever will. Others rely on fields the harness doesn’t map, since there’s no conversion pipeline, as covered in the previous post.

What the number does say is that 15 rules are proven on real data, and for the other 54 we don’t know. An honest matrix colours those differently.

Output of run_lsass.py: the 15 SigmaHQ T1003.001 rules that fire on the corpus, with their log source and hit count. Five use process_access, one create_remote_thread (1,483 hits), three file_event, three process_creation and three the security log. Summary line: 15 of 69 rules fire, 5 need process_access (Sysmon 10).
The 15 active rules and the log source each one depends on. Real output, capture: PurpleLog.

The middle rung, the one everybody forgets

Look at the first column of that capture. Five of the fifteen active rules rely on process_access, i.e. Sysmon event 10. And the Sysmon configs post showed that SwiftOnSecurity’s configuration, one of the most widely deployed, doesn’t collect that event at all.

So with that config, those five rules exist, carry the right tag, colour the right cell… and will never get a single log line to look at. Ten remain. The matrix doesn’t move a pixel.

That’s the “fed” rung, and it’s probably the costliest in false confidence because nothing flags it. A rule without data doesn’t throw an error. It goes quiet, exactly like a rule that sees nothing suspicious.

A word on the 1,483

One rule in the list fires 1,483 times, 1,478 of them on a single dataset, a Mimikatz simulation hitting the SAM database. I didn’t go through those events one by one, so I won’t say whether they’re repeated true positives or noise. Either way, 1,478 alerts for one tool run is a rule that needs aggregating before it goes anywhere near an alert queue. A green cell says nothing about that cost either.

Climbing the rungs in practice

Checking the “fed” rung doesn’t involve attacking anything. For each rule, read its logsource, translate it into a real source (this Sysmon event, that Windows log, this SIEM table), and confirm that source actually arrives, with the expected fields, from the machines that matter. It’s inventory work: dull and extremely worthwhile. The script from the Sysmon post covers part of it for a given config.

The “tested” rung needs data that contains the technique. Public datasets like OTRF’s are a great start, but they don’t cover everything and they age. Beyond that, you replay the technique in a lab with purpose-built purple teaming tooling and freeze the result in an expectations file like the one in the previous post. Once that’s done, the rung can’t be lost by accident: every rule change reruns the test.

One rule is one hypothesis

Back to the 84 techniques and sub-techniques that rest on a single rule. A rule is one way of seeing a technique: one field, one pattern, one source. If the attacker sidesteps that exact pattern (a different tool name, a different method, a different switch), the cell stays green and the technique walks through.

That isn’t an argument for piling on rules at random. It’s an argument for knowing, cell by cell, how many independent hypotheses the coverage rests on. A cell backed by three rules on three different sources and a cell backed by one aren’t equally solid, even when the matrix paints them the same colour.

What I’d put on the slide

A three-colour matrix instead of a two-colour one: tagged, fed, tested. MITRE’s ATT&CK Navigator lets you score every cell; three levels are enough. The matrix will be less green. It will also be true, and it will show where the work is: tagged but not fed means collect; fed but not tested means replay.

And for every cell on the third rung, I’d want to click through to the dataset and the test result behind it. Coverage you can’t replay is coverage you’re assuming.

References