# Detection Lifecycle and Use Case Design

> Turn a threat report into a testable detection requirement: lifecycle, ATT&CK mapping, log readiness checks, detection as code, and a written use case spec.

Canonical: https://codelivly.com/rooms/detection-lifecycle-and-use-case-design
Last updated: 2026-11-23

| | |
|---|---|
| Level | Intermediate |
| Category | Cybersecurity |
| Lessons | 5 |
| Estimated time | 3 h 20 min |
| XP | 1150 |

After a credential phishing case, the SOC manager asks for coverage of what comes next: the sign in with the stolen password and the mailbox changes after it. This room follows that request at Kestrel Logistics from threat report to approved spec. You turn report observations into one testable behaviour statement, map use cases to ATT&CK v20 for coverage tracking, prove with jq and awk that the log fields exist before any rule is written, work with rules in a git repository, and finish by writing a use case spec that a reviewer can approve. Every lesson has a terminal exercise on realistic log files and scenario questions that need judgment.

## Lessons

1. From Threat to Detection Requirement (35 min)
2. Mapping Use Cases to ATT&CK (35 min)
3. Log Source and Field Readiness Checks (40 min)
4. Detection as Code Basics and Version Control (40 min)
5. Guided Lab: Write a Use Case Spec (50 min)

## Related

- [Learning path: Detection Engineering and Tuning](https://codelivly.com/learning-paths/detection-engineering-and-tuning)
- [All rooms](https://codelivly.com/rooms)
