Unit 1: Detection lifecycle and ATT&CK coverage · Lesson 2 of 7 · 14 min

Follow a rule through its lifecycle

Read the status, date and history fields that show where each rule sits between request and retirement.

mission

You are
You are the new detection engineer at Kestrel.
Situation
Priya asks how mature the rule set is. Sigma rules carry a status field that says how far each rule has come.
Goal
Count rules by status and read one rule's dates and history.
Hand in
The number of rules at each status.

The detection lifecycle as a loop

Stages of a detection

  1. RequestA need, tied to a technique and a log source
  2. ResearchHow the behaviour shows up in real data
  3. WriteRule as code, reviewed like code
  4. TestFires on attack data, stays quiet on normal data
  5. DeployConverted for the SIEM, shipped by CI
  6. TuneRemove false positives without losing true ones
  7. RetireDeprecate when replaced or no longer useful
01

Count rules by status

Sigma defines these statuses: experimental (new, little tested), test (tested, being tuned), stable (trusted to page someone), deprecated and unsupported.

analyst@soc-de01
grep -h '^status:' rules/sigma/windows/*.yml | sort | uniq -c
      2 status: experimental
      2 status: stable
      4 status: test

you should see Two stable, four test and two experimental rules.

grep
Prints the lines of text that match a pattern. Built into Linux and macOS.
sort
Sorts lines of text. Built into Linux and macOS.
uniq
Collapses repeated neighbouring lines. With -c it counts them. Built into Linux and macOS.
02

Read a rule header

date is when the rule was written and modified when its logic last changed. The tags link it to ATT&CK.

analyst@soc-de01
head -n 12 rules/sigma/windows/proc_creation_win_rundll32_comsvcs_minidump.yml
title: LSASS Dump Via Comsvcs MiniDump
id: 6b3c1d0e-8f2a-4c71-9d35-1e7a5b2c9f40
status: stable
description: Detects rundll32 calling the MiniDump export of comsvcs.dll, a common way to dump LSASS memory to disk.
references:
    - https://attack.mitre.org/techniques/T1003/001/
author: Priya Nair
date: 2026-04-14
modified: 2026-09-30
tags:
    - attack.credential-access
    - attack.t1003.001

you should see A stable rule from April, last modified on 30 September, tagged credential access and T1003.001.

head
Prints the first lines of a file or of piped text. Built into Linux and macOS.
03

Check dates across the repo

grep -H prints the file name in front of each match, and sed trims the folder.

analyst@soc-de01
grep -H -E '^(date|modified):' rules/sigma/windows/*.yml | sed 's#rules/sigma/windows/##'
proc_creation_win_certutil_urlcache.yml:date: 2026-08-19
proc_creation_win_net_user_add.yml:date: 2026-05-20
proc_creation_win_powershell_encoded.yml:date: 2026-06-11
proc_creation_win_rundll32_comsvcs_minidump.yml:date: 2026-04-14
proc_creation_win_rundll32_comsvcs_minidump.yml:modified: 2026-09-30
proc_creation_win_rundll32_url_dll.yml:date: 2026-04-14
proc_creation_win_wmiprvse_cmd_admin_share.yml:date: 2026-05-20
win_security_audit_log_cleared.yml:date: 2026-09-30
win_system_service_install_shell.yml:date: 2026-05-20

you should see Only one rule has ever been modified since it was written.

sed
Edits text as it streams past, for example to replace or delete lines. Built into Linux and macOS.
04

Follow one rule in git

analyst@soc-de01
git log --format='%h %ad %an: %s' --date=short -- rules/sigma/windows/proc_creation_win_rundll32_url_dll.yml
3d048fd 2026-04-14 Priya Nair: Add LSASS comsvcs and url.dll rules

you should see The url.dll rule was added in April and never touched again.

git
Tracks changes to code and shows its history. Install with sudo apt install git, or brew install git on a Mac.

What a defender takes away

  1. 1Every rule moves through request, research, write, test, deploy, tune and retire.
  2. 2The Sigma status field records how far it has come.
  3. 3git history and the date fields show how old the logic is.

Questions

0 of 2 solved

Answer each one from what you find on your lab machine.

  1. Show hint

    `grep -h '^status:' rules/sigma/windows/*.yml | sort | uniq -c`

  2. Show hint

    Look for modified: in the grep output.