Open to everyone Reading, lesson 73 of 100, 2 min read
Threat hunting and detection metrics
Hunting, not just waiting
Alerts catch what you already know to look for. Threat hunting is proactively searching for attackers who slipped past detection, starting from a hypothesis:
- "If someone stole a staff password, they might have created mailbox forwarding rules. Let's list all external forwarding rules."
- "Ransomware groups often use remote-administration tools. Which machines ran such tools this month, and who approved it?"
- "An attacker on our network would scan for file shares. Which workstations connected to more than 20 other machines yesterday?"
Each hunt either finds something, or confirms a gap is clean and often produces a new automated alert so the next time is automatic.
Measuring detection
Two numbers matter most:
| Measure | Meaning | Aim |
|---|---|---|
| Mean time to detect (MTTD) | How long, on average, from the start of an attack to noticing it | As short as possible: hours, not months |
| Mean time to respond (MTTR) | How long from detection to containment | Minutes to hours for serious alerts |
Other useful measures: percentage of devices sending logs, percentage of critical alerts reviewed within the target time, and number of detections tested in the last quarter.
Test your detections
Run safe, planned exercises: sign in from a test account with many wrong passwords, create a harmless test file with a known "malware test" signature, add a test forwarding rule. Check that each alert fires and reaches the right person. Detections that are never tested quietly break.
Purple teaming
When attackers (red team) and defenders (blue team) work together, running techniques one at a time and checking detection after each, it is called purple teaming. It is one of the fastest ways to improve monitoring.
Tip
Start small: pick one hypothesis a month, spend an afternoon on it, and write down what you learned.