TL;DR: AI agents are being instantiated at runtime, scoped to a task, and retired when that task ends, creating a governance problem that conventional identity systems were not built to handle, according to Strata Identity. The core issue is not just scale but assumption collapse: access review models assume identities persist long enough to review, while agent identities may not.
At a glance
What this is: This is an analysis of just-in-time identity provisioning for AI agents, with the central finding that runtime-created, task-scoped identities avoid the sprawl and orphaning created by pre-provisioning.
Why it matters: It matters because IAM teams now need identity controls that work for autonomous behaviour, ephemeral NHI patterns, and human delegation in the same governance model.
By the numbers:
- Agents could outnumber humans 80 to 1 by 2030.
- Gartner predicts that by 2026, 30% of enterprises will deploy AI agents capable of acting on behalf of users with minimal human intervention.
- 91.6% of secrets remain valid five days after the targeted organisation is notified, showing a critical gap in remediation procedures.
👉 Read Strata Identity's analysis of just-in-time identity provisioning for AI agents
Context
AI agent identity is becoming a runtime governance problem, not a static provisioning problem. These actors can appear, act, and disappear within a single task cycle, which breaks the assumptions behind pre-created accounts, periodic recertification, and long-lived entitlements.
For IAM programmes, the important shift is that delegation now happens to an executor that may be ephemeral and machine-speed. That creates pressure on NHI governance, Zero Trust enforcement, and audit design because the identity lifecycle is no longer predictable enough to manage with human-era processes.
Key questions
Q: How should security teams govern AI agent identities that only exist for a single task?
A: Use task-scoped provisioning, short-lived credentials, and delegated context so the identity exists only for the duration of the job. The key is to retire the agent as soon as the task completes and preserve a clear link to the delegator for audit and enforcement.
Q: Why do AI agents complicate traditional IAM lifecycle processes?
A: Traditional IAM assumes identities are durable enough to join, move, and leave over time. AI agents can be instantiated and retired within a single workflow, so lifecycle controls built around persistent accounts often create sprawl, orphaned records, and weak auditability.
Q: What breaks when organisations pre-provision identities for ephemeral AI agents?
A: Pre-provisioning creates standing accounts for actors that may never recur, which increases credential sprawl and leaves residual access after the task ends. It also makes the environment harder to review because the identity record can outlive the actual operational need.
Q: How do organisations keep AI agent access aligned with Zero Trust principles?
A: They need policies that evaluate the acting agent, the delegator, the task sensitivity, and the time of execution together. That keeps authorisation conditional and traceable rather than assuming a one-time account grant is enough for the whole workflow.
Technical breakdown
Just-in-time provisioning for agent identities
Just-in-time provisioning creates an identity only when the agent is instantiated for a task, then retires it when the task is complete. In practice, that means the identity is not a standing account but a short-lived governance object carrying scope, delegation context, and expiry. The model can range from a minimal token-based profile for ephemeral agents to a fuller directory record for recurring services. The architectural point is that identity becomes a runtime decision, not a preallocated asset.
Practical implication: teams need policy engines that can issue and retire agent identities at execution time rather than relying on account creation workflows.
Delegation context and Zero Trust for AI agents
Agent identity is not just about authentication, it is about who delegated the task, what the task is, and what the agent is allowed to do while executing it. That context allows Zero Trust policies to follow the action, not just the account. The useful distinction here is between the delegator identity and the acting identity, because auditability depends on preserving that chain. Without delegation context, an agent may look like a generic workload rather than a governed actor.
Practical implication: enforce delegation-aware policy decisions so every agent action is traceable to a specific user, system, or upstream agent.
Why pre-provisioning fails at agent speed
Pre-provisioning assumes identities are known before use, remain stable during use, and can be governed after the fact. Agentic systems break all three assumptions by scaling horizontally, spawning unpredictably, and disappearing after completion. That makes traditional directory-first lifecycle handling a poor fit because it creates credential sprawl, orphaned entries, and poor audit fidelity. The problem is not only operational burden, but also that long-lived credentials extend the exposure window for actors that were meant to be temporary.
Practical implication: replace static identity creation with task-scoped provisioning and retirement logic tied to runtime context.
Breaches seen in the wild
- Moltbook AI agent keys breach — Moltbook breach exposed 1.5M AI agent keys.
- AI LLM hijack breach — attackers used stolen AWS access keys to hijack Anthropic LLM models on Bedrock.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Task-scoped identity is the only governance model that matches agentic runtime behaviour. Agent identities that are created for a single job and retired at completion do not fit human joiner-mover-leaver assumptions. Traditional lifecycle controls were designed for durable subjects, not actors that exist for minutes or seconds. Practitioners should treat runtime provisioning as the baseline identity pattern for agentic systems, not a special case.
Long-lived agent credentials create identity blast radius that the architecture did not intend. When an agent is pre-provisioned, the credential can outlive the task, the user intent, and the operational need. That creates credential sprawl, orphaned identities, and audit records that describe access which should never have persisted. The implication is that standing access for agents is a design error, not merely a control gap.
Delegation context becomes the control plane for AI agent governance. The identity problem is no longer just who authenticated, but who delegated, under what intent, and for what task. That is why policy decisions must bind the acting agent to the delegator and the operation being performed. Practitioners who lose that chain lose the ability to explain or constrain agent behaviour.
Least privilege must be calculated at runtime, not at provisioning time. The article points to context-driven provisioning based on agent type, operation sensitivity, and delegator identity. That means privilege is conditional on the moment of execution rather than a fixed role assignment. Identity teams should assume that agent authorisation is dynamic by design and build governance around that reality.
Named concept: identity sprawl avoidance. This post describes a practical pattern for preventing runaway creation of durable identities for transient agents. That concept matters because the core governance failure is not merely excess accounts, but a model that turns every short task into a permanent identity artifact. Practitioners should recognise sprawl avoidance as a lifecycle and audit problem, not just a provisioning efficiency issue.
From our research:
- 91.6% of secrets remain valid five days after the targeted organisation is notified, showing a critical gap in remediation procedures, according to Ultimate Guide to NHIs.
- Only 5.7% of organisations have full visibility into their service accounts, which means most identity teams still cannot reliably track non-human access.
- That visibility gap is why the 52 NHI Breaches Analysis is useful as a forward reference for breach patterns tied to lingering access.
What this signals
Identity sprawl avoidance: agentic AI makes identity volume a design constraint, not an administrative inconvenience. When runtime-created actors are treated like humans, directories accumulate temporary objects that outlive their purpose and distort recertification outcomes. Teams should prepare for provisioning models that evaluate task duration, delegation, and risk before any identity is created.
The governance question is moving from whether an agent can act to how tightly its action window is bounded. That shift aligns with Zero Trust thinking, but it also exposes a new control gap: policy engines must understand the difference between an acting identity, a delegating user, and a reusable service. Practitioners who keep those roles separate will be better positioned to control autonomous workflows at scale.
For practitioners
- Classify agent identity by runtime duration Separate ephemeral agents from recurring services before assigning identity handling. Use task-scoped provisioning for short-lived agents and reserve fuller directory registration only for cases with repeated execution and stable governance needs.
- Bind every agent action to delegation context Capture the delegator, task purpose, and execution scope as part of the identity record so audit trails can show why the agent existed and who authorised the work.
- Replace standing agent credentials with short-lived tokens Minimise persistent secrets for agent workflows by issuing short-lived scoped credentials that expire when the task completes, reducing orphaned access and credential sprawl.
- Map Zero Trust controls to the acting agent Apply policy to the specific agent executing the task, not just the upstream user, so authorisation follows the actual runtime actor across APIs and clouds.
Key takeaways
- AI agent identities are becoming runtime objects, so static account models no longer match the behaviour being governed.
- The scale challenge is already material, with agent populations projected to outnumber humans 80 to 1 by 2030.
- JIT provisioning, delegation context, and short-lived credentials are the controls that preserve auditability without creating identity sprawl.
Key terms
- Just-In-Time Provisioning: A provisioning pattern that creates an identity only when it is needed and retires it when the task ends. For AI agents, the governance value is that access stays bound to a specific runtime purpose instead of becoming a durable account that can drift beyond the original delegation.
- Delegation Context: The identity and task metadata that explains who authorised an action, why it was authorised, and under what scope. In agent governance, delegation context is what preserves auditability when the acting identity is ephemeral and may be separated from the original requester by multiple execution steps.
- Identity Sprawl: The accumulation of unnecessary or poorly governed identities, tokens, and accounts that increase administrative load and attack surface. For agentic systems, sprawl happens quickly when transient actors are treated like long-lived users and every task leaves behind a permanent identity artifact.
- Task-Scoped Access: Access that exists only for a defined task and ends when that task ends. This is a practical control pattern for non-human and autonomous actors because it reduces standing privilege, narrows exposure windows, and makes the identity lifecycle match the actual work being performed.
Deepen your knowledge
AI agent identity governance is a core topic in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building controls for ephemeral agents and delegated access, it is worth exploring.
This post draws on content published by Strata Identity: just-in-time identity provisioning for AI agents. Read the original.
Published by the NHIMG editorial team on 2025-06-17.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org