TExcelTAD

Coverage Mapping to MITRE ATT&CK

"Are we protected against ransomware groups?" is a question no SOC can answer with a yes or no, but it can answer a better one: which of the techniques those groups use would we detect, how well, and with which data? MITRE ATT&CK gives the shared vocabulary for that: a public knowledge base of adversary tactics (the goal of a step: initial access, execution, persistence, credential access, lateral movement, exfiltration…), techniques and sub-techniques (how the goal is achieved, with IDs such as T1059.001 for PowerShell), each with procedure examples from real intrusions, the data sources that can reveal it, and mitigations. This lesson maps a small rule set onto ATT&CK, scores coverage honestly, and produces a layer file for the ATT&CK Navigator.

The structure in one table

Level Example ID form
Tactic Credential Access TA0006
Technique OS Credential Dumping T1003
Sub-technique LSASS Memory T1003.001
Procedure "the group used a memory-dump tool against lsass.exe" in the technique's examples
Data component Process Access (OS API call to read another process's memory) listed per technique

The Enterprise matrix has 15 tactics, from Reconnaissance and Resource Development (before the attacker touches you) to Impact; version 19 (April 2026) split the older Defense Evasion tactic into Stealth (TA0005, hiding and blending in) and Defense Impairment (TA0112, breaking security tools and logging), so older material and older mappings count 14. Techniques can belong to several tactics (Valid Accounts, T1078, is initial access, persistence, privilege escalation and stealth at once). ATT&CK is updated about twice a year (v20, October 2026, was current when this lesson was written and keeps the 15 tactics); record which version your mapping uses.

Coverage is more than "has a rule"

A technique is not "covered" because a rule mentions it. Useful coverage levels:

Level Meaning
0 none No data, no rule
1 data The telemetry exists and is searchable (a hunter could find it)
2 rule A rule exists but is untested or known to cover only some procedures
3 tested A rule with passing positive and negative tests and an end-to-end validation in the last 90 days

Then weight techniques by relevance: the techniques your threat intelligence says the adversaries you care about actually use (Threat Intelligence).

A coverage report

python · try it yourself
import json
import pandas as pd

TECH = {  # technique -> (name, tactics); a small subset of ATT&CK Enterprise v20
    "T1566":     ("Phishing", ["initial-access"]),
    "T1078":     ("Valid Accounts", ["initial-access", "persistence", "privilege-escalation", "stealth"]),
    "T1110":     ("Brute Force", ["credential-access"]),
    "T1204.002": ("User Execution: Malicious File", ["execution"]),
    "T1059.001": ("PowerShell", ["execution"]),
    "T1053.005": ("Scheduled Task", ["execution", "persistence", "privilege-escalation"]),
    "T1098":     ("Account Manipulation", ["persistence", "privilege-escalation"]),
    "T1003.001": ("LSASS Memory", ["credential-access"]),
    "T1558.003": ("Kerberoasting", ["credential-access"]),
    "T1033":     ("System Owner/User Discovery", ["discovery"]),
    "T1021.002": ("SMB/Windows Admin Shares", ["lateral-movement"]),
    "T1071.004": ("Application Layer Protocol: DNS", ["command-and-control"]),
    "T1567":     ("Exfiltration Over Web Service", ["exfiltration"]),
    "T1486":     ("Data Encrypted for Impact", ["impact"]),
    "T1685.005": ("Clear Windows Event Logs", ["defense-impairment"]),
}
# Level per technique from the rule repository and data inventory (0 none, 1 data, 2 rule, 3 tested)
LEVEL = {"T1566": 2, "T1078": 2, "T1110": 3, "T1204.002": 3, "T1059.001": 3, "T1053.005": 1, "T1098": 3,
         "T1003.001": 2, "T1558.003": 3, "T1033": 1, "T1021.002": 1, "T1071.004": 2, "T1567": 0, "T1486": 1, "T1685.005": 3}
# Techniques used by the threat groups in our intel profile (relevance)
PRIORITY = {"T1566", "T1078", "T1059.001", "T1003.001", "T1021.002", "T1567", "T1486", "T1053.005"}

rows = [(t, n, tac, LEVEL[t], t in PRIORITY) for t, (n, tacs) in TECH.items() for tac in tacs]
df = pd.DataFrame(rows, columns=["technique", "name", "tactic", "level", "priority"])
by_tactic = df.groupby("tactic", sort=False).agg(techniques=("technique", "size"),
                                                   tested=("level", lambda s: (s == 3).sum()),
                                                   avg_level=("level", "mean")).round(2)
print(by_tactic.to_string())

pri = df[df.priority].drop_duplicates("technique")
print(f"\npriority techniques: {len(pri)}, tested: {(pri.level == 3).sum()}, "
      f"rule or better: {(pri.level >= 2).sum()}, no rule: {list(pri[pri.level < 2].technique)}")

layer = {"name": "lab.test detection coverage", "domain": "enterprise-attack",
         "description": "0 none, 1 data, 2 rule, 3 tested",
         "techniques": [{"techniqueID": t, "score": LEVEL[t], "comment": "priority" if t in PRIORITY else ""}
                        for t in TECH],
         "gradient": {"colors": ["#ffffff", "#66b1ff"], "minValue": 0, "maxValue": 3}}
print("\n" + json.dumps(layer)[:150] + " ...")
                      techniques  tested  avg_level
tactic                                             
initial-access                 2       0       2.00
persistence                    3       1       2.00
privilege-escalation           3       1       2.00
stealth                        1       0       2.00
credential-access              3       2       2.67
execution                      3       2       2.33
discovery                      1       0       1.00
lateral-movement               1       0       1.00
command-and-control            1       0       2.00
exfiltration                   1       0       0.00
impact                         1       0       1.00
defense-impairment             1       1       3.00

priority techniques: 8, tested: 1, rule or better: 4, no rule: ['T1053.005', 'T1021.002', 'T1567', 'T1486']

{"name": "lab.test detection coverage", "domain": "enterprise-attack", "description": "0 none, 1 data, 2 rule, 3 tested", "techniques": [{"techniqueID ...

The per-tactic table looks reassuring: credential access averages 2.67 with two of three techniques tested, execution 2.33. The priority line tells a different story. Of the eight techniques that the adversaries in the intel profile actually use, one (PowerShell) has a tested detection, three more have untested rules, and four have no rule at all: scheduled tasks, SMB lateral movement, exfiltration over web services and ransomware encryption. The well-covered techniques (brute force, Kerberoasting, log clearing) are good work, but on what this adversary does, the SOC is mostly blind in the middle and at the end of the attack. Exfiltration has no data at all (level 0).

The JSON at the end is a layer for the ATT&CK Navigator, the web tool that colours the matrix by score; load it there (add the versions block with the ATT&CK and layer-format versions your Navigator expects) to get the familiar heat map, and keep it in the detection repository so it is regenerated on every change.

What the map does not tell you

  • A technique is many procedures. T1059.001 PowerShell covers interactive commands, encoded commands, scripts run from memory and PowerShell without powershell.exe. A "tested" level means some procedures are detected; the variant lists from Testing Detections say which.
  • Coloured cells invite gaming. A rule that matches one string per technique turns a matrix green without detecting much. Coverage reports should link each cell to the rules and their tests.
  • Prevention counts too. A technique blocked by a control (macros from the Internet blocked, LSASS protection on) needs less detection; record mitigations next to detections.
  • Detection is not response. A tested rule that fires into an unstaffed queue covers nothing in practice.

How coverage gaps are closed

  1. Pick gaps by priority and data. Priority technique with level 1 (data, no rule) is the cheapest win: the telemetry exists. Level 0 needs a data-source project first.
  2. Research procedures from the technique's ATT&CK page, threat reports and purple-team results.
  3. Write, test, deploy through the detection-as-code pipeline.
  4. Validate with an emulation of the procedure in the lab (Atomic Red Team tests are organised by technique ID, see Purple-Team Exercises).
  5. Re-score and publish the updated layer.

Pitfalls

  • Mapping to tactics only. "We cover credential access" hides that only one of its many techniques has a rule.
  • Forgetting the version. Technique IDs are occasionally revoked or moved; in v19, for example, Clear Windows Event Logs moved from T1070.001 (Indicator Removal) to T1685.005 (Disable or Modify Tools, under Defense Impairment). Map against a recorded ATT&CK version and update deliberately.
  • Treating ATT&CK as a checklist to complete. No organisation detects every technique; the matrix is for choosing where to invest.

Practice

1. Which two priority techniques would you work on first, and why?

T1021.002 (SMB/Windows Admin Shares) and T1053.005 (Scheduled Task) are priority techniques at level 1: the data already exists (Windows security and Sysmon events), so a rule and tests are all that is missing. T1567 (exfiltration over web services) is level 0 and needs proxy or cloud logs first; T1486 needs file-activity telemetry or canary files.

2. Count Valid Accounts (T1078) once or four times in the per-tactic table?

The program counts it under each of its four tactics, which is right for a per-tactic view (it really does serve all four) but inflates totals if you add the tactic rows. For overall counts, deduplicate by technique, as the priority line does with drop_duplicates.

3. Add a "mitigated" flag and show T1204.002 as mitigated because Internet macros are blocked. How should it affect the report?

Keep the detection level as it is, and show mitigation in a separate column or a different colour. Mitigations can fail or be bypassed (a macro in a file without the Internet mark), so they lower the urgency of a gap but don't replace the detection.

Test yourself

In ATT&CK, what is T1003.001?

  1. A tactic
  2. A sub-technique (OS Credential Dumping: LSASS Memory)
  3. A threat group
  4. A CVE

Why is 'a rule mentions the technique' a weak definition of coverage?

  1. Rules can't mention techniques
  2. A technique has many procedures, and an untested rule may catch none of them
  3. ATT&CK forbids it
  4. It is too strict

What does weighting by relevance mean in coverage mapping?

  1. Sorting techniques alphabetically
  2. Prioritising the techniques that threat intelligence says your likely adversaries use
  3. Counting tactics twice
  4. Ignoring prevention

In the report, why is T1021.002 (SMB/Windows Admin Shares) a cheap gap to close?

  1. It is not a priority
  2. It is a priority technique at level 1: the telemetry exists, only a rule and tests are missing
  3. It is already tested
  4. It has no data source