Attacker dwell time is how long an attacker stays inside a network before anyone finds them.
This guide is for anyone who has read "the attackers had access for months" in a news story and wondered how that is possible. You do not need a technical background. It explains what the number means and what shortens it.
In short
- Dwell time runs from the moment an attacker gets in until someone spots them.
- The longer it is, the more time an attacker has to look around, collect data and plan the next step.
- Attackers who are found by your own team are usually found sooner than those reported by outsiders.
- Good logs, someone who reads the alerts, and practice all help bring the number down.
What you will learn
- Explain what dwell time measures and why it matters.
- Read a dwell time figure in a report and know where it came from.
- Understand why some attacks go unnoticed for a long time.
- Pick a few steps that help your team spot trouble sooner.
- Break-in (intrusion)
- an attacker getting into a system they should not be in.
- Record of events (log)
- a file where systems note who did what, and when.
- Median
- the middle value when you line up all the cases from shortest to longest.
What is attacker dwell time?
Picture a stranger who slips into a large office building with a crowd of staff. Nobody stops them. They find a spare desk and sit there for weeks, reading papers left out on desks. One day a cleaner asks who they are.
The time between the stranger walking in and the cleaner asking is the dwell time. In security, it is the gap between an attacker first getting in and the intrusion being found.
Where the comparison stops working: a stranger at a desk can be seen. An attacker inside a network often uses real staff accounts and normal tools, so their activity can look like ordinary work.
Why does it matter?
Every extra day gives an attacker more time to find valuable data, take more accounts and set up ways back in.
If you run a small business
What could happen: someone reads your email for weeks and learns when invoices are due.
Check this: ask your IT provider who looks at security alerts, and how often.
If you are a manager
What could happen: a breach is found months late, and nobody can say what was taken.
Check this: ask how long your logs are kept. The UK's cyber agency suggests at least six months [2].
If you are new to security work
What could happen: an alert fires, but it looks like normal staff activity and is closed.
Check this: learn what normal looks like for key accounts, so the odd sign stands out.
What does it look like?
Here is a made-up timeline that an investigator might write after a break-in. It shows how dwell time is worked out.
Example only. All values are made up.
Incident: EXAMPLE-0000 (FAKE) First sign of attacker: Day 0 sign-in from unknown place (1) Further activity: Day 9 new mailbox rule created (2) Found: Day 41 bank flags odd payment (3) Found by: outsider (the bank) (4) Dwell time: 41 days (5)
- In a real file, this line would contain the earliest log entry tied to the attacker, with a time and a source.
- Signs that the attacker was settling in. These were missed at the time.
- The day someone finally noticed.
- Who noticed. Here it was an outsider, not the company's own team.
- The gap from Day 0 to the day it was found.
Why this is risky: if logs only go back a few weeks, the true Day 0 may be lost. Then the dwell time looks shorter than it was.
The safer way: keep logs long enough to look back past the likely start of an attack, and check they are still arriving.
How does it work?
- The attacker gets in. This might be through a stolen password, a scam email or an unpatched system.
- They stay quiet. Using real accounts and normal tools helps them blend in with daily work.
- Someone notices. That might be your own team, an outsider such as a partner or researcher, or the attacker, for example with a ransom note.
- The team looks back. Investigators use logs to find the first sign of the attacker. That sets the start of the clock.
- Dwell time is measured. It is the gap between the first sign and the discovery.

Reports sum up many cases with a median. Mandiant's M-Trends 2025 report, covering incidents it investigated in 2024, gives a global median dwell time of 11 days, up from 10 days in 2023 [1].
The same report splits the figure by who found the attack. The median was 26 days when an outside party told the victim. It was 10 days when the organisation found it itself. It was 5 days when the attacker announced it, notably in ransomware cases [1].
A median hides the long cases. In the SolarWinds attack, the company said the attacker had access for at least nine months before a test run in October 2019 [3]. Our breach page on the SolarWinds supply chain compromise sets out the full timeline.
A worked example
This story is made up to show the idea.
Dario Marlow is office manager at Fennick Lettings, a firm of 25 people. A landlord calls to ask why their rent went to a new bank account. Nobody at Fennick changed it.
Dario calls the firm's IT provider. They look at the email logs and find a sign-in to a staff mailbox from an unknown place. It happened six weeks earlier.
The attacker had also set a mailbox rule that hid replies from the landlord. That is why nobody noticed sooner. The dwell time was about six weeks, and it was found by an outsider, the landlord.
The IT provider resets the password and removes the rule. They also turn on multi-factor authentication and set an alert for new mailbox rules.
Dario asks one more question: how far back do our logs go? The answer is 90 days. That was just enough this time. He asks for longer, in line with the six month minimum the UK's cyber agency suggests [2].
Three months later, the new alert fires on a strange rule in another mailbox. The provider removes it the same day. This time the dwell time is hours, not weeks.
Myths and mistakes
| What people think | What is true |
|---|---|
| We would notice straight away if someone got in. | Attackers often use real accounts and normal tools, so their actions can look like routine work. |
| A low median means attacks are always caught fast. | A median is the middle case. Some attacks still run for months, as the SolarWinds case shows [3]. |
| Short dwell time is always good news. | Not always. In Mandiant's data, cases the attacker announced, such as ransomware, had the shortest median [1]. |
| Logs are only for the IT team. | Logs are how investigators find Day 0 and work out what was taken [2]. |
| Once logging is on, it keeps working. | The UK's cyber agency advises checking that logs keep arriving, for example with test events [2]. |
What can I do this week?
- Ask how long your email and sign-in logs are kept. Aim for at least six months [2].
- Find out who reads security alerts, and how quickly they act on them.
- Turn on multi-factor authentication for email if it is not already on.
- Ask for an alert when someone creates a new mailbox forwarding rule.
- Check that the clocks on your systems are correct, so log times line up [2].
Checklist
- I can explain dwell time as the gap between getting in and being found.
- I know a median is the middle case, not the worst case.
- I know how long our logs are kept.
- Someone is named to review security alerts.
- We check that logs are still arriving.
- Our system clocks are set correctly.
- I know that outsiders often spot attacks later than our own team would.
Common questions
Why does dwell time differ so much between reports?
Each report counts different cases. A firm that answers big incidents sees different attacks from one that watches small businesses. Always check whose cases a figure covers and which year it describes before you compare.
Why are attacks found by outsiders found later?
If your own team is not watching, nobody inside sees the early signs. The attack is only spotted once its effects reach someone else, such as a bank, a partner or a researcher. Mandiant's 2025 report shows a longer median when outsiders reported the attack [1].
How do investigators know when an attack started?
They look back through logs for the earliest sign linked to the attacker. If logs were not kept or were deleted, the start date may never be known. That is why log retention matters.
Is dwell time the same as time to detect?
They are close. Dwell time is usually counted from the first sign of the attacker to discovery. Teams also track how fast they spot and respond to alerts. Our SOC metrics guide explains those measures.
Can a small business really shorten dwell time?
Yes. Simple steps help a lot. Turn on alerts for risky changes, keep logs for longer and name someone to read alerts. These make it far more likely that you notice trouble yourself.
Where next?
Ready for the detail? Read the practitioner guide: Detection Engineering Guide. It explains how teams build and tune the alerts that catch attackers sooner.
Also useful:
- Security Logging for Beginners
- SIEM for Beginners
- Threat Hunting for Beginners
- SOC Metrics for Beginners
Related NHI Mgmt Group resources: Detection Engineering for Beginners and Incident Response for Beginners.
Key terms
- Dwell time
- The time between an attacker first getting in and the intrusion being found.
- Logging
- Recording events, such as sign-ins and changes, so they can be reviewed later.
- Log retention
- How long logs are kept before they are deleted.
- Multi-factor authentication
- Signing in with two or more different kinds of proof, such as a password and a code from an app.
- Threat hunting
- Searching for signs of an attacker that alerts have not caught.
- Incident response
- The planned steps an organisation takes to find, contain and recover from a security incident.
Sources and further reading
- Mandiant (Google Cloud), "M-Trends 2025" report summary, Google Cloud Threat Intelligence blog, 2025. https://cloud.google.com/blog/topics/threat-intelligence/m-trends-2025 (accessed 1 Dec 2026).
- National Cyber Security Centre, "Introduction to logging for security purposes". https://www.ncsc.gov.uk/guidance/introduction-logging-security-purposes (accessed 1 Dec 2026).
- SolarWinds, "An Investigative Update of the Cyberattack", 2021. https://www.solarwinds.com/blog/an-investigative-update-of-the-cyberattack (accessed 1 Dec 2026).