Unit 1: Detection lifecycle and ATT&CK coverage · Lesson 1 of 7 · 12 min
Find your way round the detection repo
Open the Kestrel detection repository, read its history and list the open detection requests.
mission
- You are
- You have just joined the detection engineering team at Kestrel Freight.
- Situation
- The SOC runs Sigma rules on Windows logs, Suricata on the network sensors and YARA on mail attachments. Everything lives in one git repository, ~/detections.
- Goal
- Learn what is in the repo, who changed it and what people are waiting for.
- Hand in
- A count of open requests and the name of each rule's author.
Open the Terminal on the desktop. Every command in this course runs in that terminal. To read or edit a file, open it in the Text editor, or use cat and less. The repo is plain text: YAML for Sigma, one line per rule for Suricata and a small C-like language for YARA.
List the top of the repo
ls -F adds a slash after folders so you can tell them from files.
ls -F
README.md
backlog.csv
ci/
coverage/
mappings/
rules/
tests/
you should see Rules, tests, CI scripts, coverage files, a mapping folder and a backlog.
ls- Lists the files in a folder. Built into Linux and macOS.
Read the history
git log shows every commit. The format string prints the short hash, the date, the author and the subject on one line.
git log --format='%h %ad %an: %s' --date=short
3857d44 2026-10-24 Priya Nair: Update backlog and threat profile
9f9b493 2026-10-16 Dana Fox: Draft CI workflow
295436a 2026-09-30 Priya Nair: Add log cleared rule, tests and CI scripts
3be5145 2026-08-19 Tom Weber: Add certutil download rule
62bde5d 2026-07-08 Tom Weber: Add Suricata and YARA rules
e2c6b58 2026-06-11 Tom Weber: Add encoded PowerShell rule
85ccb4c 2026-05-20 Dana Fox: Add WMI and service install rules
3d048fd 2026-04-14 Priya Nair: Add LSASS comsvcs and url.dll rules
you should see Eight commits by three people since April. The CI workflow was only drafted on 16 October.
git- Tracks changes to code and shows its history. Install with sudo apt install git, or brew install git on a Mac.
See which rule types exist
ls rules/*
rules/sigma:
windows
rules/suricata:
kestrel.rules
rules/yara:
kestrel_scripts.yar
you should see Sigma rules in a windows folder, one Suricata rules file and one YARA file.
Read the open requests
backlog.csv is the team's queue. Anyone in the company can ask for a detection; the request names the ATT&CK technique it is about.
grep ',open$' backlog.csv
DR-111,2026-10-06,IR team,T1110.003,Password spraying against Kerberos,open
DR-112,2026-10-06,Threat intel,T1546.008,Accessibility feature backdoors,open
DR-113,2026-10-20,Threat intel,T1567,Uploads to file sharing sites with curl,open
DR-114,2026-10-23,IR team,T1071.001,Beaconing to telemetry-sync,open
DR-115,2026-10-24,Mail team,T1059.001,PowerShell download cradles in attachments,open
you should see Five open requests, from password spraying to download cradles in attachments.
grep- Prints the lines of text that match a pattern. Built into Linux and macOS.
Commands in this lesson
| Command | What it does |
|---|---|
ls -F | List a folder and mark folders with a slash |
git log --format=... --date=short | One line per commit with the fields you choose |
grep ',open$' file | Lines that end with ,open |
What a defender takes away
- 1A detection repo is code: history, authors and reviews all matter.
- 2The backlog ties every rule to a request and a technique.
- 3Start any new job by reading the log and the open work.
Questions
0 of 2 solved
Answer each one from what you find on your lab machine.