The short version
MTTD is mean time to detect: the average time between an attack starting and your team noticing it. MTTR is mean time to respond: the average time between noticing and dealing with it. Together they describe how long an attacker gets to operate. Shorter is better, but only if the numbers are measured honestly.
What MTTD and MTTR are
Both are averages over a set of incidents in a period, such as a quarter.
- MTTD = total time from start to detection, divided by the number of incidents.
- MTTR = total time from detection to the chosen end point, divided by the number of incidents.
The letters MTTR are overloaded. Depending on who is speaking, the R can mean respond, contain, resolve, recover or remediate. In incident handling it usually means respond or contain. In vulnerability management it usually means remediate: the average time from a finding being reported to the fix being confirmed. Always ask which one a report uses.
How it works
The arithmetic is simple. The hard part is collecting clean timestamps. Each incident needs at least four.
- Start. When the malicious activity began. This is often established afterwards from logs.
- Detected. When an alert fired or a person noticed.
- Contained. When the attacker could no longer cause further harm.
- Resolved. When the root cause was fixed and systems were back to normal.
A worked example with three incidents:
| Incident | Start to detected | Detected to contained |
|---|---|---|
| Phishing login | 2 hours | 1 hour |
| Malware on laptop | 1 hour | 3 hours |
| Leaked cloud key | 72 hours | 2 hours |
| Mean | 25 hours | 2 hours |
The MTTD of 25 hours describes none of the three incidents well. One slow detection dominates the average. That is why many teams also report the median, here 2 hours, and split results by severity and by type of incident.
To improve the numbers, teams work on each side separately. Better logging and better detection rules lower MTTD. Clear playbooks, pre-approved actions and automation through SOAR lower MTTR. A purple team exercise is a direct way to measure both, because the start time of the simulated attack is known exactly.
Where it falls short
These metrics are easy to quote and easy to misread.
- They only count what was found. An attack nobody detected does not appear in MTTD at all. A team that misses more can look faster.
- Definitions vary. One team stops the MTTR clock at containment, another at full recovery. Comparing against another company's figure or an industry number means little unless the definitions match.
- They can be gamed. Closing tickets quickly improves MTTR on paper without reducing risk. Counting trivial alerts as incidents pulls both averages down.
- Averages hide the worst case. One breach that ran for months matters more than fifty alerts closed in minutes.
A sound practice is to write down exactly when each clock starts and stops, keep that definition stable, and track the trend against your own history.
How Cloudgrip helps
Cerberus works on the detection side. Its AI agents read the logs, metrics, traces and events you already collect from your cloud, identity provider and applications, whether in a SIEM, an observability stack or a data warehouse. They spot attacker behavior and correlate the signals into one story: who, from where, touching what. That can shorten the time to detect and investigate. Response is proposed and runs once a person approves, unless you turn on auto-response for a specific action. Cerberus does not replace your SIEM or SOC, and your numbers still depend on the people and processes around it.
Hydra helps with mean time to remediate. It replays each exploit from a clean session before reporting it and attaches the fix, so engineers do not spend days confirming that an issue is real. After the fix is merged, Hydra attacks again to confirm it holds, which gives a precise close time. Testing on every release also means some flaws are removed before any incident clock would start.
FAQ
What is a good MTTD?
There is no universal figure, because definitions and environments differ. The useful comparison is your own trend over time, broken down by severity.
What does MTTR stand for?
It depends on context. Common meanings are mean time to respond, to contain, to resolve, to recover and to remediate. Check the definition before comparing numbers.
Should teams report the mean or the median?
Both. The mean shows the effect of bad outliers, and the median shows the typical case.