Join our Newsletter — 33% off our NHI Course

What breaks when dormant accounts and overly broad permissions are not cleaned up before AI deployment?

When dormant accounts and broad permissions remain in place, organisations lose control over who can reach sensitive systems and data. That weakens compliance evidence, increases the attack surface, and makes it easier for unused or excessive access to be abused. It also undermines confidence that AI workflows are operating within approved boundaries.

Why Cleanup Gaps Become an AI Deployment Problem

AI deployment turns dormant accounts and overbroad permissions from an administrative hygiene issue into a trust-boundary problem. Models, agents, orchestration layers, and supporting services often need to reach data stores, APIs, and internal tools quickly, so any unused account or excess entitlement can become an unintended path into production systems. That matters because the deployment phase is when teams usually expand access fastest and verify it least carefully. OWASP’s Non-Human Identity Top 10 is useful here because it frames machine-access risk as an identity lifecycle problem, not just a secrets problem.

What breaks first is assurance: teams can no longer confidently say which identities are active, who owns them, or whether access still matches approved use. Dormant access also distorts audit evidence, because access reviews and least-privilege attestations stop reflecting the real blast radius. In practice, AI projects often inherit old service accounts, test credentials, and broad role grants, then treat them as harmless because no one has used them recently.

How the Failure Shows Up in Practice

Before AI goes live, dormant accounts should be removed or disabled and broad permissions should be reduced to the minimum needed for the model, agent, or workflow to function. In practice, that means separating human access from workload access, mapping each AI component to a distinct identity, and checking whether every privilege still has a current business owner. The most reliable pattern is to treat AI deployment as a privilege recalibration exercise rather than a pure application release.

When access is left broad, the AI stack can inherit permissions that exceed its intended task. A retrieval workflow may read more data than it needs, an automation agent may call administrative APIs, or a forgotten account may still authenticate to a sensitive backend long after its original owner has left. That increases the chance that a misconfigured prompt, a compromised token, or an internal misuse event turns into a wider data exposure. NHIMG research on secrets and access hygiene shows why this matters operationally: remediation delays and fragmented control make old access persist long enough to be reused or rediscovered.

  • Disable or remove dormant identities before release so they do not remain available for accidental or malicious use.
  • Scope each AI workload to its exact data set, API surface, and tool permissions, then re-check those grants after integration testing.
  • Require an owner for every non-human account so revocation, rotation, and exception handling do not stall after deployment.
  • Validate that logging can distinguish intended AI activity from legacy accounts and inherited entitlements.

This guidance tends to break down in environments with shared service accounts, legacy automation, or undocumented cross-environment roles because the AI rollout inherits access that nobody can confidently untangle.

Where the Edge Cases and Trade-offs Appear

Tighter cleanup often increases operational friction, because teams must reconcile ownership, remove legacy access, and test whether the AI system still functions after privilege reduction. That trade-off is real: the goal is not to eliminate every non-human account, but to make every remaining account necessary, attributable, and bounded.

The hardest edge case is migration work. During a staged AI rollout, teams sometimes keep broad access temporarily to avoid breaking data pipelines or support workflows, but that exception should be time-bound and visible. Another common exception is read-only access that looks harmless but still exposes sensitive data at scale, especially when the AI system can aggregate, infer, or route content into other tools. A dormant account is also not always inactive in the security sense; it may still be valid for authentication even if no one monitors it. That is why current guidance suggests reviewing both account age and effective permissions, rather than assuming inactivity means safety.

In practical terms, the question is not whether access exists, but whether the organisation can explain why it exists, who owns it, and what would happen if it were abused. Without that answer, AI deployment can amplify a minor access issue into a governance failure.

Risk and Threat Considerations

Dormant accounts and excessive permissions create a material exposure because they preserve low-visibility access paths that can be reused after ownership changes, forgotten after projects end, or abused during AI deployment when trust is being expanded quickly. The risk is not limited to one system; it can cascade across data stores, internal APIs, and automation tools that the AI stack reaches as part of normal operation.

Failure mechanism: An attacker or insider can exploit stale authentication, inherited roles, or over-permissive service access to move through systems that were never meant to remain reachable. If the AI workflow can invoke tools or query protected data through those grants, the excess access becomes an enabling control weakness rather than a harmless leftover.

Impact: The likely consequence is unauthorized data exposure, stronger lateral movement potential, and weaker evidence that access was governed within approved boundaries. In regulated environments, the same issue can also undermine auditability because access reviews no longer prove that the deployed AI is operating under current least-privilege assumptions.

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 CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-01 — Inventory and Ownership Dormant accounts are a non-human identity lifecycle issue needing ownership and inventory control.
NHI-03 — Secrets and Credential Management Broad permissions often persist through shared credentials and unmanaged access paths.
NHI-06 — Least Privilege and Authorization Overly broad permissions directly violate least-privilege expectations for AI workloads.
Recommendation — Inventory every machine identity and assign a clear owner before deploying AI. Rotate or retire stale credentials and remove unused access paths before go-live. Restrict each AI workload to the minimum permissions needed for its approved task.
CIS Controls v8 5 — Account Management Dormant accounts and excess entitlements are account lifecycle failures under CIS Controls.
6 — Access Control Management Permission sprawl and inherited access are directly addressed by access control governance.
Recommendation — Disable dormant accounts and review active access before the AI system is released. Enforce least privilege and remove unnecessary access from AI-related accounts.
NIST CSF 2.0 PR.AA-01 — Identity and Credential Management The issue concerns identity lifecycle hygiene and credential validity across deployed systems.
Recommendation — Validate identity lifecycle and credential ownership before enabling production AI access.

Practitioner Guidance

What to prioritise: Remove or disable dormant accounts before deployment, then trim permissions on the identities that remain. If an identity can still authenticate and reach production, treat it as live until proven otherwise, regardless of whether anyone believes it is unused.

What to verify: Confirm that every AI-facing account has a named owner, a documented purpose, and a current privilege scope that matches the workflow actually being deployed. The key verification is not whether the account exists, but whether the account is still needed for the exact data, tools, and actions in scope.

What practitioners underestimate: The most damaging gap is often not a dramatic privilege grant but accumulated access drift across test, staging, and production. Once AI systems inherit those grants, cleanup becomes harder because the access is now embedded in the operational path, not just in the identity store.

Practitioner takeaway: AI deployment should begin with access reduction, because any identity you cannot justify before go-live becomes a standing assumption the model, agent, or workflow may eventually exploit.