Detection engineering metrics tell you whether your rules find real attacks quickly, cheaply and reliably, and the right set is small: coverage that has been tested, precision per rule, time to detect, time to ship a rule, and the debt that builds up when rules are never reviewed. Most teams start with a heat map of MITRE ATT&CK techniques and a count of rules. Both are easy to produce and both mislead. A technique cell turns green when one rule mentions it, whether or not that rule has ever fired on a true positive, and a rule count rewards volume over value.
This guide sets out a practical measurement model for a detection engineering function: what to count, how to calculate it, where the data comes from and which numbers belong in front of engineers, SOC leads and the board. It complements the SOC Detection Coverage Health Check, which is a periodic review template; this page is about the metrics you run continuously. Suggested thresholds are NHI Mgmt Group recommendations, not industry standards, so tune them to your environment.
Key takeaways
- Measure coverage only where a rule has been validated against a test or a real event. Untested mappings are claims, not coverage.
- Track precision per rule, not per SOC. A single noisy rule can hide a dozen good ones in the average.
- Split time to detect into telemetry delay, rule latency and triage delay, or you will fix the wrong stage.
- Rule debt is measurable: rules with no owner, no review date, no test or no fire in 180 days.
- Identity detections deserve their own slice, because human and non-human accounts behave differently and fail differently.
- Report a short set of KPIs upward and keep the diagnostic metrics inside the engineering team.
Why detection engineering needs its own metrics
SOC metrics such as mean time to acknowledge, tickets closed per shift and escalation rate describe how well people handle alerts. They say little about whether the alerts were worth raising or whether important activity raised nothing at all. Detection engineering sits upstream of the SOC: it builds and maintains the logic that turns telemetry into alerts. Its metrics should answer four questions.
- Coverage: for the threats we care about, do we have working detection logic and the telemetry it needs?
- Quality: when our rules fire, how often are they right, and how much analyst time does each true positive cost?
- Speed: how long from malicious activity to alert, and from a new threat report to a deployed rule?
- Sustainability: is the rule base kept current, owned and tested, or is it accumulating debt?
A team that tracks only one of these drifts. Coverage alone produces broad, noisy rule sets. Quality alone produces a small set of precise rules that miss whole tactics. Speed alone produces rushed rules with no tests. Sustainability alone produces tidy documentation for detections that do not matter. The model below keeps all four in view.
Coverage metrics: ATT&CK mapping done honestly
MITRE ATT&CK is the common language for coverage, and it is useful as long as each mapping carries evidence. Use three states for every technique or sub-technique in scope, rather than a single green cell.
| State | Definition | Evidence required |
|---|---|---|
| Claimed | A rule exists that is mapped to the technique | Rule ID and mapping tag |
| Validated | The rule fired on an emulation or replayed sample within the last review cycle | Test case ID, date and result |
| Proven | The rule fired on a confirmed true positive in production or in a purple team exercise | Incident or exercise reference |
From this you can calculate the headline coverage metric:
- Validated coverage = validated or proven techniques in scope divided by total techniques in scope.
- Claim gap = claimed but unvalidated techniques divided by claimed techniques. A claim gap above 30 per cent suggests the heat map is mostly aspiration.
Scope matters more than the denominator. Do not measure against the whole matrix. Build a prioritised list from your threat model and intelligence: the techniques used by actors who target your sector, plus the techniques that appear in your own incidents. For most organisations that list should include identity abuse such as T1078 Valid Accounts and Valid Accounts: Cloud Accounts, token theft such as Steal Application Access Token, and initial access through Exploit Public-Facing Application.
Telemetry coverage
A rule cannot fire on logs you do not collect. Track a parallel metric for data sources: for each prioritised technique, which log sources are required, and are they flowing with acceptable delay and completeness? Useful measures are:
- Source health: percentage of required log sources that delivered events in the last 24 hours.
- Field completeness: percentage of events where the fields a rule depends on (user, source IP, process command line, client ID) are populated.
- Asset coverage: percentage of in-scope hosts, tenants or accounts actually sending the source.
A rule with validated logic and 60 per cent asset coverage is a 60 per cent detection. Report the two together. NIST SP 800-92 Rev. 1 is a sound reference for planning the log management that sits under these numbers.
Identity coverage slice
Report coverage separately for identity techniques and split it by account type. Detection for human users leans on sign-in risk, impossible travel and MFA prompts. Detection for non-human identities such as service accounts, API keys, OAuth applications and workload identities leans on baselines: which IPs, which APIs, which hours and which resources a credential normally touches. Many teams find their human identity coverage is decent while non-human coverage is close to zero, because NHIs do not sign in through the same flows. The Detection Engineering for Non-Human Identities Guide covers the rule design side.
Quality metrics: precision, noise and analyst cost
Quality metrics show whether alerts are worth the time they consume. Calculate them per rule, then roll up.
| Metric | Calculation | What it tells you |
|---|---|---|
| Precision (true positive rate of alerts) | True positive alerts divided by all triaged alerts for the rule | How often the rule is right when it fires |
| Benign true positive share | Alerts where the activity happened but was authorised, divided by all alerts | Whether the rule needs context such as allow lists or change tickets |
| Alert volume per rule per week | Count of alerts | Load on the SOC; spikes signal environmental change |
| Analyst minutes per true positive | Total triage minutes for the rule divided by true positives | The real cost of a detection |
| Auto-closure rate | Alerts closed by automation without human review, divided by total | Whether suppression is hiding signal |
Precision only works if dispositions are recorded consistently. Agree a small set of closure codes (true positive, benign true positive, false positive, insufficient data) and make them mandatory in the case tool. Without that, every quality metric is noise.
Recall is harder because you rarely know the attacks you missed. Approximate it from three sources: emulation results (the share of executed test procedures that produced an alert), retrospective hunts (malicious activity found by hunting that no rule caught) and incident reviews (how the incident was actually found). The Precision vs Recall in Security Detection guide explains the trade-off and why the base rate makes precision look worse than it is for rare events.
Suggested quality thresholds
- Rules below 10 per cent precision over 30 days go on a tuning list, unless they cover a high-impact technique with no alternative.
- Rules above 50 alerts a week with fewer than one true positive a month go to review within one sprint.
- Any rule with more than 40 per cent benign true positives needs an enrichment step, not a suppression.
Speed metrics: time to detect and time to deploy
Time to detect is usually reported as one number. Break it into stages so you can see where the delay sits.
- Telemetry delay: event time to ingestion time in the SIEM or data lake. Cloud and SaaS audit logs often lag by minutes or more.
- Rule latency: ingestion time to alert time. Scheduled searches running every hour add up to an hour on their own.
- Triage delay: alert time to first analyst action. This is a SOC metric, but report it alongside so the full chain is visible.
Measure the first two from validation runs, where the start time of each test procedure is known exactly. Measure the third from case data. Report the median and the 90th percentile; averages hide the long tail that matters in a real intrusion.
The second speed metric belongs to engineering alone: time to deploy, from a trigger (a new threat report, a vendor advisory, an incident finding or a hunt result) to a rule running in production. Split it into time to triage the request, time to build and test, and time to release. Teams following the Detection as Code Guide can pull every timestamp from version control and the pipeline, which makes this metric almost free to collect.
| Request type | Suggested target |
|---|---|
| Active incident or exploited vulnerability affecting you | Rule in production within 24 hours |
| New technique used by an actor targeting your sector | Within 10 working days |
| Backlog coverage improvement | Planned in the quarterly roadmap |
Rule debt and lifecycle metrics
Rule debt is the gap between the rule base you have and the one you would build today. It accumulates quietly: log schemas change, a vendor renames a field, an application is retired, the author leaves. Debt does not show up in coverage metrics until a rule silently stops working. Track it directly.
- Ownerless rules: rules with no named owner or with an owner who has left.
- Overdue reviews: rules past their review date. A 12 month review cycle is a reasonable default; high-impact rules every six months.
- Untested rules: rules with no automated test or emulation case.
- Silent rules: rules that have not fired at all in 180 days. Some are fine (rare, high-impact events); many are broken. Validate each one.
- Broken dependencies: rules referencing fields or indexes that no longer exist. Lint for these in the pipeline.
- Undocumented rules: rules without a description, response guidance or ATT&CK mapping. The Detection Rule Documentation Template sets the minimum fields.
Combine these into a debt ratio: rules with at least one debt marker divided by total production rules. Report the trend, not just the level. A debt ratio that rises each quarter means the team is building faster than it maintains, which is the usual precursor to an alert fatigue crisis.
Lifecycle metrics complete the picture. Count rules created, modified and retired per quarter. A team that never retires rules is almost certainly carrying dead weight. A healthy pattern shows a steady retirement rate as rules are consolidated or superseded.
Validation metrics
Validation turns claimed coverage into evidence. The metrics are straightforward once a test library exists.
- Test coverage: production rules with at least one automated test, divided by total production rules.
- Test pass rate: test runs that produced the expected alert, divided by test runs. Investigate any drop immediately; it usually means a telemetry or schema change.
- Emulation detection rate: procedures in an adversary emulation plan that produced an alert, divided by procedures executed.
- Purple team findings closed: findings from exercises with a deployed fix, divided by total findings, and the median days to close.
Run unit tests on every rule change and scheduled end-to-end tests at least weekly, so pass rate becomes a leading indicator of telemetry health. The Detection Validation and Testing Guide covers test design.
KPIs by audience
Different audiences need different numbers. Sending the full metric set to the board guarantees nobody reads it.
| Audience | KPIs | Cadence |
|---|---|---|
| Board and executive | Validated coverage of priority threats; median time to detect from validation; trend in incidents found by detection versus found by third parties | Quarterly |
| CISO and SOC leadership | Validated coverage and claim gap; precision across top 20 rules by volume; analyst minutes per true positive; time to deploy for urgent requests; debt ratio | Monthly |
| Detection engineering team | Per-rule precision and volume; test pass rate; silent rules; broken dependencies; backlog age; source health | Weekly or live dashboard |
One executive measure deserves special attention: the share of incidents first identified by your own detection, as opposed to a customer, a regulator, law enforcement or a threat actor's ransom note. It is the most direct outcome measure of the whole function and it is easy to explain. For governance mapping, the Detect function of the NIST Cybersecurity Framework 2.0 gives a recognised home for these KPIs in a wider risk report.
Building the measurement pipeline
Metrics that depend on someone exporting spreadsheets will stop within a quarter. Build the data flow once.
- Rule inventory as data. Store rule metadata (ID, owner, ATT&CK mapping, data sources, review date, severity, test IDs) in the rule files themselves, in a structured header, and parse it in the pipeline.
- Alert and case data. Export alert ID, rule ID, timestamps and disposition from the SIEM and case tool to the same store. Join on rule ID.
- Test results. Write every validation run result, with procedure start time and alert time, to the store.
- Source health. Record last event time and volume per source per day.
- Dashboards. Build the three audience views from the same store so numbers agree.
- Review rhythm. Use the weekly view in a stand-up, the monthly view in the SOC leadership meeting, and the quarterly view in the risk committee. Pair the quarterly view with the Detection Engineering Maturity Model to show capability progression as well as numbers.
Protect the integrity of the metrics themselves. Analysts under volume pressure may close alerts as false positives to clear a queue, which inflates noise metrics and hides true positives. Sample closed alerts each month for quality assurance and report the disagreement rate.
Common failure patterns
- Heat map theatre. A coverage map shows 70 per cent green, but fewer than a third of the mapped rules have ever been tested.
- Rule count as a target. Teams rewarded for new rules ship near-duplicates and low-value rules, and debt climbs.
- Averaged precision. A SOC-wide false positive rate hides that three rules generate most of the noise.
- Suppression without review. Noisy rules are muted rather than fixed, and nobody tracks what has been suppressed.
- Ignoring telemetry delay. Rule latency is tuned while a SaaS audit log arrives 40 minutes late.
- No identity split. Coverage looks fine overall while service accounts and API keys have no behavioural detection at all.
- Metrics nobody acts on. Dashboards exist but no meeting owns a decision based on them.
- Inconsistent dispositions. Closure codes are optional or vary by shift, so every quality metric is unreliable.
Practitioner checklist
- Define a prioritised technique list from your threat model and incidents, and measure coverage against it rather than the whole matrix.
- Record claimed, validated and proven state for every mapping, with evidence.
- Make disposition codes mandatory and consistent in the case tool.
- Calculate precision, volume and analyst minutes per true positive for each rule.
- Break time to detect into telemetry delay, rule latency and triage delay, and report median and 90th percentile.
- Measure time to deploy from trigger to production rule, with targets by request type.
- Track rule debt markers and a debt ratio, and review the trend quarterly.
- Add automated tests to every rule and schedule end-to-end validation runs at least weekly.
- Report identity coverage separately for human and non-human accounts.
- Publish three audience views from one data store and attach each to a meeting that owns decisions.
- Sample closed alerts monthly to check disposition quality.
Standards and references
- MITRE: ATT&CK
- MITRE ATT&CK: T1078 Valid Accounts
- MITRE ATT&CK: Steal Application Access Token
- MITRE D3FEND: Knowledge graph of cybersecurity countermeasures
- NIST: Cybersecurity Framework 2.0
- NIST: SP 800-92 Rev. 1 Cybersecurity Log Management Planning Guide (initial public draft)
- NIST: SP 800-61 Rev. 3, Incident Response Recommendations and Considerations for Cybersecurity Risk Management
- CIS: CIS Controls v8.1
Related NHI Mgmt Group resources: SOC Detection Coverage Health Check · Precision vs Recall in Security Detection · Detection Engineering Maturity Model · Detection Validation and Testing Guide