Unit 1: Detection lifecycle and ATT&CK coverage · Lesson 6 of 7 · 16 min
Keep tags current when ATT&CK changes
Find why sigma check rejects three tags, follow the revoked-by relationship to the new technique and retag the rules.
mission
- You are
- You are fixing the missing T1070.001.
- Situation
- ATT&CK v20 was released on 13 October 2026, two weeks after the log cleared rule was written. sigma check validates tags against the ATT&CK data in its cache.
- Goal
- Find what changed, retag the rules and the threat profile, and commit.
- Hand in
- Clean sigma check output and a commit called Retag rules for ATT&CK v20.
Run the Sigma linter
sigma check parses every rule and runs validators on it. -c ci/sigma-validation.yml turns off the D3FEND tag validator, which downloads data from the internet and cannot run in this offline lab.
sigma check -c ci/sigma-validation.yml rules/sigma
Parsing Sigma rules
Checking Sigma rules
=== Issues ===
issue=InvalidATTACKTagIssue severity=medium description=Invalid MITRE ATT&CK tagging rule=/home/analyst/detections/rules/sigma/windows/win_security_audit_log_cleared.yml tag=attack.defense-evasion
issue=InvalidATTACKTagIssue severity=medium description=Invalid MITRE ATT&CK tagging rule=/home/analyst/detections/rules/sigma/windows/win_security_audit_log_cleared.yml tag=attack.t1070.001
issue=InvalidATTACKTagIssue severity=medium description=Invalid MITRE ATT&CK tagging rule=/home/analyst/detections/rules/sigma/windows/proc_creation_win_rundll32_url_dll.yml tag=attack.defense-evasion
=== Summary ===
Found 0 errors, 0 condition errors and 3 issues.
No rule errors found.
No condition errors found.
Validation issue summary:
+-------+-----------------------+----------+------------------------------+
| Count | Issue | Severity | Description |
+-------+-----------------------+----------+------------------------------+
| 3 | InvalidATTACKTagIssue | MEDIUM | Invalid MITRE ATT&CK tagging |
+-------+-----------------------+----------+------------------------------+
you should see Three invalid ATT&CK tags: defense-evasion twice and t1070.001.
sigma- sigma-cli. Checks Sigma detection rules and converts them into queries for a SIEM. Install with pipx install sigma-cli.
Look up the old technique
jq -r '.objects[] | select(.type=="attack-pattern" and .external_references[0].external_id=="T1070.001") | "\(.name) revoked=\(.revoked)"' attack/enterprise-attack.json
Clear Windows Event Logs revoked=true
you should see Clear Windows Event Logs is revoked.
jq- Picks fields out of JSON and reshapes it. Install with sudo apt install jq, or brew install jq on a Mac.
Follow it to its replacement
When MITRE moves a technique it keeps the old object, marks it revoked and adds a revoked-by relationship to the new one.
OLD=$(jq -r '.objects[] | select(.type=="attack-pattern" and .external_references[0].external_id=="T1070.001") | .id' attack/enterprise-attack.json)
NEW=$(jq -r --arg o "$OLD" '.objects[] | select(.type=="relationship" and .relationship_type=="revoked-by" and .source_ref==$o) | .target_ref' attack/enterprise-attack.json)
jq -r --arg n "$NEW" '.objects[] | select(.id==$n) | .external_references[0].external_id + " " + .name + " (" + (.kill_chain_phases[0].phase_name) + ")"' attack/enterprise-attack.json
T1685.005 Clear Windows Event Logs (defense-impairment)
you should see T1685.005 Clear Windows Event Logs, now under Defense Impairment.
Find the new tactic names
TA0005 kept its ID but is now called Stealth. Defense Impairment is new as TA0112.
jq -r '.objects[] | select(.type=="x-mitre-tactic" and (.x_mitre_shortname=="stealth" or .x_mitre_shortname=="defense-impairment")) | .external_references[0].external_id + " " + .name' attack/enterprise-attack.json
TA0112 Defense Impairment
TA0005 Stealth
you should see TA0112 Defense Impairment and TA0005 Stealth.
Retag the two rules
Log clearing is now defense impairment. Rundll32 proxy execution is under stealth. sed -i edits a file in place.
sed -i 's/attack\.defense-evasion/attack.defense-impairment/; s/attack\.t1070\.001/attack.t1685.005/' rules/sigma/windows/win_security_audit_log_cleared.yml
sed -i 's/attack\.defense-evasion/attack.stealth/' rules/sigma/windows/proc_creation_win_rundll32_url_dll.yml
git diff --stat
rules/sigma/windows/proc_creation_win_rundll32_url_dll.yml | 2 +-
rules/sigma/windows/win_security_audit_log_cleared.yml | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
you should see Two files changed, three tag lines replaced.
sed- Edits text as it streams past, for example to replace or delete lines. Built into Linux and macOS.
git- Tracks changes to code and shows its history. Install with sudo apt install git, or brew install git on a Mac.
Check again
sigma check -c ci/sigma-validation.yml rules/sigma | tail -n 4
Parsing Sigma rules
Checking Sigma rules
Found 0 errors, 0 condition errors and 0 issues.
No rule errors found.
No condition errors found.
No validation issues found.
you should see No validation issues.
tail- Prints the last lines of a file, or follows it as it grows with -f. Built into Linux and macOS.
Fix the threat profile and commit
sed -i 's/^T1070\.001,/T1685.005,/' coverage/threat-profile.csv grep T1685 coverage/threat-profile.csv T1685.005,high,ransomware affiliate playbook git add rules coverage/threat-profile.csv git commit -q -m 'Retag rules for ATT&CK v20' git log --oneline -1 8a3f98b Retag rules for ATT&CK v20
you should see The profile now uses T1685.005 and the change is committed.
grep- Prints the lines of text that match a pattern. Built into Linux and macOS.
The log cleared rule's tags
tags:
- attack.defense-evasion
- attack.t1070.001Both tags are invalid in v20.
tags:
- attack.defense-impairment
- attack.t1685.005The rule logic did not change at all.
What a defender takes away
- 1ATT&CK changes twice a year. Validate tags in CI so changes show up as failures.
- 2Revoked techniques point to their replacement through revoked-by.
- 3Retag rules, threat profiles and reports together.
Questions
0 of 2 solved
Answer each one from what you find on your lab machine.