Helpful first: A detection nobody tested is a guess · Governance is a calendar, not a binder
Thirty days to Halcyon · Case 13: The quiet rules · Episode 5 of 5
The case is closed. On Monday at 08:00, Sloane Sterling, Head of Compliance, stops by the SOC with her notebook open. She chairs the launch readiness board, and she wants one number for it: how fast would Meridian notice KS-4?
Nyx, the Threat Hunter, has the timings from 9 emulation runs since Thursday. The mean time to detect is 38 minutes.
Nyx does not like that number, and not because it is too high. Why would a correct average be the wrong number for the board?
By the end you can
- Define time to detect and time to respond from recorded timestamps
- Explain why a median and a worst case tell more than a mean
- Tell a coverage count from a tested-detection count
Each time comes from two recorded timestamps
Time to detect is the time an alert was raised minus the time the behavior began. Time to respond is the time containment was confirmed minus the time of the alert. Mean time to detect (MTTD) and mean time to respond (MTTR) are averages of those times over a stated set of cases.
Each time needs two timestamps from records, not from memory. In an emulation the start is the moment the test ran, from the test log. In a real incident it is the earliest evidence, often found days later. The alert time comes from the SIEM.
The definition must stay the same from one report to the next. Does response end when someone acts, or when someone confirms the action held? Either can work. Switching between them makes this quarter look better than last quarter for no real reason.
Nyx's 9 runs measured detection only. Each run created a known behavior on a test host and waited for the alert. Response times need a responder, so they come from real cases and from drills with someone acting.
PUT IT IN ORDER
Put these six timestamps from one drill in the order they happen.
- The rule raises the alert
- The host writes the event to its own log
- The behavior begins on the host
- The analyst confirms the isolation held
- An analyst isolates the host
- The event reaches the SIEM
Show the answer
- The behavior begins on the host
- The host writes the event to its own log
- The event reaches the SIEM
- The rule raises the alert
- An analyst isolates the host
- The analyst confirms the isolation held
Time to detect runs from the first timestamp to the alert. Time to respond runs from the alert to the confirmation. The two in between show where a slow detection lost its time: on the host, in transit, or in the rule.
A mean hides the long tail
The 9 detection times, in minutes, were 2, 3, 4, 5, 6, 9, 31, 42, and 240. They add up to 342. Divided by 9, the mean is 38 minutes.
No run took about 38 minutes. Seven were faster, and two were slower. The mean is pulled up by one value: the 240-minute run. In that run a test host lost its network link. It wrote the event on time, but the event reached the SIEM four hours later, when the link came back.
The median is the middle value when the times are sorted. With 9 values it is the fifth, which is 6 minutes. One slow run barely moves it. The worst case is the largest value, 240 minutes, and its cause is the useful part. An offline host is a problem someone can own.
Both averages share a blind spot. A run that never alerts has no time to detect, so it drops out of the mean and the median. On Thursday's first pass, 3 of 5 rules stayed silent. Their runs would simply have vanished from the times. So Nyx reports misses as a count beside the times: 9 of 9 runs alerted.
WORKED EXAMPLE
Nine detection times, worked out
- Sort the times. 2, 3, 4, 5, 6, 9, 31, 42, 240 minutes.
- Mean. 2 + 3 + 4 + 5 + 6 + 9 + 31 + 42 + 240 = 342. 342 divided by 9 is 38 minutes.
- Median. The fifth of nine sorted values: 6 minutes.
- Worst case. 240 minutes, from the run where the test host was offline.
Result: Mean 38, median 6, worst 240. The mean describes no run at all. The median describes a typical run, and the worst case points to the offline host.
Count what was tested, not what was mapped
Sloane's draft for the board has a second line: Meridian covers 70 percent of ATT&CK. Nyx asks where it came from. It is the share of ATT&CK techniques with at least one rule tagged to them.
That number counts tags. It does not say whether a rule's data arrives, how many ways of performing a technique it matches, or whether it has ever fired. On Wednesday, a green cell for scheduled tasks sat on top of no data at all.
A tested-detection count is narrower and honest. It starts from the techniques that matter, such as the four behind KS-4's three behaviors. For each one it says whether a rule fired on a harmless test, when, and on which hosts. Anyone can check it against the test records.
A metric also changes behavior once people are judged by it. This is Goodhart's law. Its best-known wording is the anthropologist Marilyn Strathern's, from 1997: when a measure becomes a target, it ceases to be a good measure. Reward green cells, and teams add tags. Reward tested detections, and teams run tests.
SORT IT OUT
Sloane lists five numbers she could put in front of the board. Does each one lead to a decision, or does it only look good?
Show the answers
- Vanity. It rises when someone adds a tag. It says nothing about data or about whether a rule fires.
- Leads to a decision. Any technique missing from the count is a test to run or a rule to fix.
- Leads to a decision. Each silent host is a gap someone can go and fix today.
- Vanity. More alerts can mean more attacks, more noise, or more rules. The number alone points nowhere.
- Leads to a decision. A long worst case comes with a cause, such as an offline host, that someone can own.
CHECK YOUR JUDGMENT
Besides the median and worst time, Sloane will read one line about coverage to the board. Nyx offers four. Which line should go in the board file?
CASE FILE · CASE 13 · ENTRY 5 OF 5
Answer the closing question correctly to add this entry to your case file.
The mean hid the worst run
Nine runs gave a 38-minute mean, but the median was 6 and one offline host took 240, so the board saw the median, the worst case, and its cause.
Review sheet: exam notes and quick reference
Log A record emitted by a system that something happened, which may later be used as evidence.
Alert A notification that a rule or model wants a human to look at one or more records.
Evidence A record you are willing to cite in a decision, with enough provenance to explain what it can prove.
SIEM A capability that collects, parses, stores, and searches security telemetry and often fires alerts.
Incident An event or set of events that actually or potentially causes a security loss requiring coordinated handling.
Mean time to detect An operational metric for how long events of a type remain unnoticed; it is only as honest as the clock and the catalog of events.