Skip to main content
ConceptsSIEMXDR

What is MTTD (Mean Time to Detect)?

MTTD (mean time to detect) is the average time from the start of malicious activity to its detection: total detection time divided by the incident count. A lower MTTD gives an attacker less time to work unseen. Report it with the median and 90th percentile, because one long intrusion can drag the mean by days.

Definition

MTTD (Mean Time to Detect)
MTTD (mean time to detect) is the average time from the start of malicious activity to its detection: total detection time divided by the incident count. A lower MTTD gives an attacker less time to work unseen. Report it with the median and 90th percentile, because one long intrusion can drag the mean by days.

How MTTD (Mean Time to Detect) Works

MTTD runs from the moment malicious activity begins to the moment the SOC knows about it, either because a rule fired or because an analyst found it during a hunt. The start is usually reconstructed after the fact from forensic artifacts: a file creation time, a process start, the first log line that touched the attacker's infrastructure. The end is the alert time. Everything in between counts, so MTTD measures the whole detection pipeline: the delay before a log reaches the SIEM, how often the rule runs, enrichment, and the minutes before someone confirms the alert is real.

Rule scheduling sets a floor that faster analysts can't remove. In Microsoft Sentinel, scheduled analytics rules run at the interval you configure, on a built-in five-minute delay that absorbs ingestion lag. Near-real-time (NRT) rules run once every minute on a two-minute delay. An attack caught by an hourly scheduled rule can wait more than an hour before an incident exists, even with every analyst on shift idle.

The arithmetic is simple, and the average misleads. Take three confirmed incidents in a month:

  • a phishing payload detected after 40 minutes,
  • a brute-force login after 3 hours,
  • and a web shell a hunt found after 9 days.

Mean MTTD is about 73 hours, roughly three days, which describes none of the three. The median is 3 hours. Report the median and the 90th percentile next to the mean, split by severity or by detection source, or one long-dwell intrusion will hide every improvement you make on the rest.

MTTD stops where MTTR starts

  • MTTD covers attacker activity up to detection.
  • Mean time to acknowledge (MTTA), when a team tracks it, covers the gap between an alert's creation and the moment an analyst picks it up.
  • MTTR covers detection to the first response action that changes the incident, such as isolating a host or disabling an account; some teams read the R as recover or resolve, so check the definition before comparing numbers between teams.

The two fail for different reasons. A long MTTD points to missing logs or missing rules, a long MTTR to slow triage, missing playbooks, or approval chains.

No standard sets a good MTTD, because the number depends on what you count

Mandiant's M-Trends 2026 report, built on its 2025 incident investigations, puts global median dwell time (the days an attacker was present before detection) at 14 days, up from 11 the year before, and at 122 days for cyber espionage and North Korean IT worker cases. In 52% of those investigations the organization detected the activity itself, up from 43% in 2024. These are breaches serious enough to call in Mandiant, so they describe intrusions that got past detection; the alerts a tuned SOC closes every day sit at the other end of the curve. For known patterns covered by a tuned rule, a target in minutes is realistic. The benchmark that tells you something is your own median and 90th percentile per severity, tracked month over month.

In Microsoft Sentinel you can measure a proxy from the SecurityIncident table

The table writes a new row every time an incident is created or updated, so first keep the latest row per IncidentNumber with arg_max. CreatedTime minus FirstActivityTime then gives the minutes between the first activity in the incident's alerts and the incident's creation. Call it a proxy in the report. FirstActivityTime is the earliest event your rules saw, not the start of the intrusion, so anything the attacker did before the first alerted event is invisible and the real MTTD is longer. Keeping only incidents classified as TruePositive stops false positives from pulling the number down; open incidents have no classification yet and drop out. This version covers the last 90 days:

SecurityIncident
| where TimeGenerated > ago(90d)
| summarize arg_max(TimeGenerated, *) by IncidentNumber
| where CreatedTime > ago(90d)
| where Classification == 'TruePositive' and isnotempty(FirstActivityTime) and CreatedTime >= FirstActivityTime
| extend DetectMin = (CreatedTime - FirstActivityTime) / 1m
| summarize Incidents = count(), MeanMin = round(avg(DetectMin), 1), MedianMin = round(percentile(DetectMin, 50), 1), P90Min = round(percentile(DetectMin, 90), 1) by Severity
| order by MedianMin desc

Read the output by severity. A High median close to your rule interval plus the five-minute delay means the pipeline works as designed. A median far above it points to ingestion lag, or to a rule that only fires once an aggregation threshold is crossed, such as ten failed logins in an hour. A P90 many times the median usually means a handful of incidents were found late by a hunt or a user report, and those are the ones to review one by one. A sudden jump after a change (a new cloud tenant, a network re-architecture, a log forwarder outage) is often the first sign of a coverage gap.

What brings MTTD down:

  • log coverage across endpoints, network, identity, and cloud;
  • rules tuned well enough that analysts trust them;
  • 24/7 monitoring;
  • threat hunting that finds what rules miss;
  • and new threat intel indicators matched against historical logs as soon as they arrive.

What pushes it up:

  • an unmonitored server,
  • a SaaS app with no log forwarding,
  • alert fatigue from noisy rules,
  • and monitoring that stops at 6 p.m.

MTTD (Mean Time to Detect) in SOC Operations

MTTD sits on SOC dashboards and in quarterly reports, and a large part of it is outside an analyst's control: you can't detect what was never logged. Your part shows in two places. The first is speed once an alert lands, which depends on how fast you search and how well you rank the queue by severity and asset criticality. The second is the record you leave. When you close a true positive, set the classification honestly and write down the earliest attacker activity you found, because that timestamp is the real start of the clock and it is usually earlier than the first alert. An analyst who traces a 14:02 alert back to a 09:15 logon has moved that incident's detection time from minutes to almost five hours, and detection engineering needs to see that number to know which rule should have fired earlier. Closing a log gap or tuning a rule to fire earlier in the kill chain moves MTTD more than shaving seconds off triage. SOCSimulator scenarios time your investigations, so you can see where you lose minutes: pivoting between tools, or confirming alerts that turn out to be low risk.

Free

Practice MTTD (Mean Time to Detect) in a Real SOC

SOCSimulator provides hands-on training with realistic SIEM, XDR, and Firewall interfaces. Build real analyst skills investigating mttd (mean time to detect) scenarios with zero consequences, free.

Frequently Asked Questions

What is MTTD in cyber security?
MTTD is the average time between the start of an attack and its detection by the security team. It measures the whole detection chain: log collection, ingestion, rule scheduling, and triage. NIST defines mean time to detect as a metric that tracks the average amount of time a problem exists before it is found.
How do you calculate mean time to detect?
Subtract each incident's start time from its detection time, add the results, and divide by the number of incidents. Three incidents detected after 40 minutes, 3 hours, and 9 days give a mean of about 73 hours. Report the median (3 hours here) and the 90th percentile as well, because one long intrusion skews the mean.
What is the difference between MTTD and MTTR?
MTTD measures how long it takes to notice an attack, and MTTR how long it takes to act once you have noticed. The MTTD clock stops at detection and the MTTR clock starts there, ending at the first response action that changes the incident, such as isolating a host. A long MTTD points to missing logs or rules; a long MTTR points to slow triage or missing playbooks.
What is MTTA and MTTR?
MTTA (mean time to acknowledge) is the average time from an alert's creation to the moment an analyst picks it up. MTTR (mean time to respond) runs from detection to the first containment or closure action. MTTA shows whether the queue is staffed and sorted well, MTTR whether investigations end in action. Both start where MTTD ends.
What is a good MTTD for a SOC?
No industry standard exists. Mandiant's M-Trends 2026 puts global median dwell time at 14 days for the breaches it investigated in 2025, but those are intrusions that got past detection. For attacks a tuned rule covers, minutes is a realistic target. Track your own median and 90th percentile per severity and watch the trend.

Sources

More Concepts Terms

Career Path

SOC Analyst (Tier 1) Career Guide: Salary & Skills

Tier 1 SOC Analysts are the front line. You monitor alert queues, triage incoming detections, classify them as true or f…

Read more
Career Path

Detection Engineer Career Guide: Salary & Skills

Detection Engineers build the rules, analytics, and automated workflows that determine what the SOC can see. You transla…

Read more
Career Path

Security Engineer Career Guide: Salary & Skills

Security Engineers build and maintain the infrastructure that SOC analysts depend on. You deploy SIEMs, configure firewa…

Read more
Comparison

SOCSimulator vs LetsDefend: Comparison

SOCSimulator wins on operational realism. You get multi-tool shift simulation with SLA pressure, noise injection, and al…

Read more
Comparison

SOCSimulator vs CyberDefenders: Comparison

SOCSimulator trains the operational workflow: alert triage, correlation, and response under pressure. CyberDefenders tra…

Read more
Tool

SIEM Training Console: SOCSimulator

The SIEM console in SOCSimulator replicates the workflow of enterprise platforms like Splunk Enterprise Security, Micros…

Read more
Tool

XDR Training Console: SOCSimulator

The XDR console in SOCSimulator replicates the investigation workflow of platforms like CrowdStrike Falcon, Microsoft De…

Read more
Technique

MITRE ATT&CK® Techniques: Detection Training Library

Browse all MITRE ATT&CK® techniques with detection strategies and example alerts.

Read more
Career Path

Cybersecurity Career Paths: 2026 Guide

Explore SOC analyst career paths with salary data, required skills, and certification roadmaps.

Read more
Playbook

SOC Investigation Playbooks: Step-by-Step Guides

Practitioner investigation playbooks with decision trees and real SIEM queries.

Read more
Feature

Shift Mode: Real-Time SOC Simulation

Practice alert triage under realistic time pressure with SLA timers and noise injection.

Read more
Feature

Operations: Guided Training Operations

Structured CTF-style investigation operations covering real-world attack scenarios.

Read more