Subscribe to the Non-Human & AI Identity Journal
Threats, Abuse & Incident Response

Dwell Time

← Back to Glossary
By NHI Mgmt Group Updated June 8, 2026 Domain: Threats, Abuse & Incident Response

Dwell time is the period between an attacker gaining access and defenders detecting or removing them. Shortening dwell time matters because most damage happens while the attacker remains unnoticed. In identity-led environments, reducing dwell time depends on visibility into access paths, privileges, and session behaviour.

Expanded Definition

Dwell time is the interval between initial attacker access and the moment defenders detect, contain, or remove that access. In NHI security, the term matters because attackers often stay hidden by abusing service accounts, API keys, tokens, or automation paths rather than interactive logins. The practical distinction is not just whether access exists, but how long that access persists without being surfaced by monitoring, controls, or response workflows.

Definitions vary across vendors when dwell time is discussed alongside mean time to detect or mean time to respond, so practitioners should treat it as an exposure window, not a single metric. The most useful lens is to ask whether the attacker can continue using legitimate identity paths while remaining invisible to policy enforcement. For governance context, NIST CSF 2.0 frames detection and response as core operational outcomes, and the NIST Cybersecurity Framework 2.0 helps anchor those outcomes in repeatable security practice.

The most common misapplication is treating dwell time as only a malware problem, which occurs when organisations ignore long-lived NHI credentials and machine-to-machine sessions.

Examples and Use Cases

Implementing dwell time reduction rigorously often introduces monitoring and response overhead, requiring organisations to weigh faster containment against operational noise and automation cost.

  • An attacker steals a CI/CD API key and quietly uses it to modify deployments for days before alerts trigger, extending dwell time across build and release systems.
  • A compromised service account keeps valid access after a change event because offboarding and rotation are delayed, a pattern highlighted in NHIMG research on the Ultimate Guide to NHIs.
  • A cloud token is reused from an unfamiliar region, but session-level telemetry is weak, so defenders only discover the compromise after data access has already occurred.
  • A workload identity continues calling internal APIs with excessive privilege until behaviour baselines reveal abnormal lateral movement, showing why identity-aware detection matters.
  • An organisation correlates identity events with NIST Cybersecurity Framework 2.0 detect and respond functions to shorten the time between first access and containment.

In practice, dwell time reduction is strongest where access is continuously verified, secrets are rotated promptly, and machine identities are inventoried well enough to spot what should not still be active.

Why It Matters in NHI Security

Dwell time is a direct measure of how long an attacker can exploit identity trust before control catches up. For NHIs, that window is often wider than teams expect because machine identities are numerous, lightly monitored, and frequently granted privileges that persist far beyond their intended use. NHI Mgmt Group research shows that only 5.7% of organisations have full visibility into their service accounts, which means most teams cannot reliably tell which identities are still active during an incident.

That visibility gap has consequences: if secrets, tokens, or certificates are not tied to strong lifecycle controls, compromise can survive normal user-focused detection logic. The same Ultimate Guide to NHIs also notes that 80% of identity breaches involved compromised non-human identities such as service accounts and API keys, underscoring how much attacker persistence depends on identity sprawl. In other words, dwell time is not just a forensic metric, it is a governance signal about whether identity controls are actually constraining adversary movement.

Organisations typically encounter dwell time as an urgent metric only after unauthorized automation, data access, or cloud abuse has already been confirmed, at which point shortening it becomes operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0DE.AE-1Dwell time reflects how long anomalous activity remains undetected.
NIST CSF 2.0RS.AN-1Response analysis determines how quickly defenders can contain active access.
OWASP Non-Human Identity Top 10NHI-02Secret exposure and weak lifecycle controls prolong attacker access windows.

Use identity-centric incident analysis to reduce attacker persistence after access is found.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on June 8, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org