Subscribe to the Non-Human & AI Identity Journal

How should organisations govern AI agents that can keep gaining access over time?

Treat every AI agent as a time-bound identity with a defined purpose, explicit scope, and a removal trigger. Do not rely on informal ownership or later cleanup. If privileges can expand through exceptions, governance must be enforced at creation, during use, and at offboarding, not only in periodic reviews.

Why This Matters for Security Teams

AI agents that keep gaining access over time are not just another privileged account problem. Their risk comes from autonomy: they can chain tools, request exceptions, and continue acting after the original task has changed. That makes static entitlements and informal “owner will clean it up later” assumptions brittle. Current guidance increasingly treats agents as time-bound identities with explicit scope, expiry, and revocation triggers, not as durable service accounts with a human-style approval trail.

This is why NHI governance and agentic AI governance overlap but are not identical. The control objective is not simply to inventory credentials. It is to prevent scope creep as the agent learns, retries, delegates, and accumulates access through exception paths. NHIMG has repeatedly highlighted lifecycle discipline and credential abuse risks in its Ultimate Guide to NHIs — Lifecycle Processes for Managing NHIs and the OWASP NHI Top 10. External guidance also points in the same direction, especially the NIST AI Risk Management Framework, which pushes organisations toward governance that is contextual, measurable, and continuously evaluated.

NHIMG research from AI Agents: The New Attack Surface report found that 80% of organisations said their agents had already acted beyond intended scope. In practice, many security teams encounter this only after an agent has already accessed data or systems that were never part of the original plan, rather than through intentional design controls.

How It Works in Practice

Effective governance starts by assigning each agent a workload identity and a finite operating envelope. That means the agent should authenticate as a cryptographic workload, not as a shared human account, and its permissions should be issued only for the task in front of it. In practice, teams are moving toward short-lived, just-in-time credentials, runtime policy checks, and automatic revocation when the task completes or the agent’s context changes. The idea is simple: access should be granted because the agent needs it now, not because it once needed it.

This is where static RBAC breaks down. A role can describe a class of users, but autonomous agents do not behave like fixed roles. Their actions depend on prompts, tool outputs, error handling, and chained decisions. Best practice is evolving toward intent-based or context-aware authorisation, where policy is evaluated at request time using the task, data sensitivity, destination system, and confidence in the agent’s state. That approach aligns with the direction of the OWASP Agentic AI Top 10 and the CSA MAESTRO agentic AI threat modeling framework, both of which emphasize runtime control over assumed trust.

  • Issue short TTL credentials per task, not long-lived secrets.
  • Bind the agent to a workload identity such as SPIFFE or an OIDC-backed workload token.
  • Evaluate policy at execution time with policy-as-code, not only at onboarding.
  • Revoke access on completion, failed guardrails, or changes in tool scope.
  • Log every privileged action so audit can prove what the agent accessed and why.

NHIMG’s AI LLM hijack breach coverage and the vendor-reported LLMjacking: How Attackers Hijack AI Using Compromised NHIs examples show why secret exposure and credential reuse quickly become agent compromise paths. These controls tend to break down when agents are allowed to self-extend via exception approvals because the runtime policy layer no longer has a reliable boundary to enforce.

Common Variations and Edge Cases

Tighter control often increases operational overhead, requiring organisations to balance automation speed against review depth and break-glass friction. That tradeoff is real, especially in environments where agents support incident response, code generation, or cross-system orchestration. There is no universal standard for this yet, so current guidance suggests treating high-impact agents differently from low-risk assistants, rather than forcing one policy template across all use cases.

Edge cases matter. A customer support agent with read-only access may tolerate longer-lived tokens than a deployment agent that can modify infrastructure, but both still need expiry, revocation, and auditability. Agents that operate across multiple tools also need segmented scopes so one compromise does not become lateral movement across the stack. Where agents can request more access mid-task, the exception workflow itself becomes part of the security boundary and must be governed like code, not handled as an informal approval in chat.

For organisations comparing frameworks, the most practical reading is that NIST Cybersecurity Framework 2.0 handles the broader governance and monitoring structure, while agent-specific guidance from Ultimate Guide to NHIs — Key Challenges and Risks and OWASP Agentic Applications Top 10 fills in the runtime control gaps. The main failure mode appears when organisations assume periodic access review is enough, because agents can accumulate privilege between review cycles faster than manual governance can see it.

Standards & Framework Alignment

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

OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 A3 Covers runtime misuse and privilege growth in autonomous agents.
CSA MAESTRO T1 Addresses agent threat modeling and dynamic tool access governance.
NIST AI RMF AI RMF supports governance, measurement, and continuous oversight for agents.

Apply AI RMF governance to define ownership, monitoring, and escalation for agent access.