By NHI Mgmt Group Editorial TeamBased on Okta: “From Code to Control: The Blueprint for Securing AI Agents at Enterprise Scale” (December 18, 2025)

TL;DR: AI agents are already in use at 91% of organizations, yet only 10% have a well-developed management strategy and nearly half lack formal governance, according to Okta and The Times. The governance gap is now an identity risk, because autonomous agents operate continuously with permissions and data access that legacy IAM was not built to constrain.


At a glance

What this is: Okta’s analysis says AI agent adoption has outpaced governance, leaving non-human identities with access and oversight gaps that legacy IAM was not designed to handle.

Why it matters: IAM, PAM and NHI teams need to treat AI agents as governed identities, because unmanaged access, over-privilege and weak lifecycle controls now create immediate enterprise risk.

By the numbers:

  • 91% of organisations are already utilizing AI agents.
  • Only 10% have a well-developed strategy for managing these non-human identities.
  • 91% of organisations are already utilizing AI agents while only 10% have a well-developed strategy for managing them.

Context

AI agents are software identities that act with runtime discretion, consume data, and call tools across systems. In this article, Okta argues that adoption has moved far ahead of governance, leaving enterprises with a class of non-human identity that traditional IAM assumptions do not cover.

The governance gap matters because agent behaviour breaks the human session model that many identity programmes still rely on. When access is continuous, goal-driven, and API-heavy, ownership, authorization, and offboarding become identity problems rather than just application design issues.


Key questions

Q: How should security teams govern AI agents when autonomy expands faster than oversight?

A: Security teams should treat agent governance as an identity and access problem, not just an AI operations issue. Start by inventorying every non-human identity, mapping what each agent can access, and assigning a clear owner. Add access reviews, logging, and kill-switch controls. Without those basics, autonomy expands faster than accountability and teams lose sight of what the agent can touch or change.

Q: Why do long-lived API keys create more risk for AI agents?

A: Long-lived API keys increase risk because they persist across tasks, deployments, and runtime changes. If one is exposed in a container, pipeline, or config file, the attacker can reuse it until it is manually revoked. For AI agents, that persistence creates a larger blast radius than the workload actually needs.

Q: What breaks when AI agents inherit access from users and service accounts?

A: The main failure is that inherited access can be broader than the agent’s actual task, so privilege becomes easier to reuse than to govern. Once an agent can chain tool calls across systems, the original approval no longer describes the full blast radius. Security teams need to treat inherited access as a live identity surface, not a one-time provisioning artifact.

Q: How do security teams respond when an AI agent needs to be contained quickly?

A: Containment should include pausing the agent and removing the access it can exercise, not just turning off execution. If permissions remain active, the investigation is still exposed to the same risk. A practical response plan needs quarantine, deprovisioning, and an investigation path that preserves evidence.


Technical breakdown

Why legacy IAM breaks down for AI agents

Traditional IAM assumes a human starts a session, completes work, and ends the session. AI agents do not fit that pattern because they operate continuously, chain API calls, and may act without direct human oversight. That means authentication alone is not enough. The control problem shifts to how identity is issued, constrained, observed, and revoked across the full runtime of the agent. Once an agent can decide when to call tools and how long to keep working, static identity assumptions stop holding.

Practical implication: identity teams need controls built around runtime issuance and revocation, not just login events.

Static secrets and over-provisioned service accounts

The article identifies two common failure modes: hard-coded API keys or long-lived tokens, and broad service account permissions. Both create a large blast radius if the agent, its code path, or its connected system is compromised. In NHI terms, this is not just credential storage risk. It is lifecycle risk, because the credential outlives the task and often the ownership context. Over-provisioning turns a single agent compromise into a multi-system issue, especially when the agent can use those privileges across cloud and SaaS environments.

Practical implication: replace standing credentials and broad service account scope with task-bounded issuance and tighter entitlement boundaries.

Fine-grained authorization for context-aware retrieval and actions

Okta’s analysis points to the need for data-level authorization, especially where agents use RAG or standard protocol-based access to multiple sources. Application-level permissions are too coarse when an agent can retrieve, combine, and synthesise data from different silos. The technical issue is not just access to a document or API, but whether the agent is authorised for that specific relationship, record, or action at that moment. This is where policy engines, relationship-based access, and explicit approval flows matter more than broad role grants.

Practical implication: enforce policy at the data or action layer when an agent’s output depends on multiple source systems.


Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

AI agent governance is now an identity discipline, not an AI add-on. Okta’s central finding is that deployment has already normalised AI agents faster than governance structures can absorb them. That means the primary control question is no longer whether an agent can do the task, but whether the organisation can bind that task to a managed identity with ownership, scope, and lifecycle. The implication is that identity programmes must treat agents as first-class subjects of governance, not as extensions of application automation.

Static credential trust debt is the clearest failure mode in agentic environments. Hard-coded API keys and long-lived tokens create a trust pattern that persists after the task, after the developer, and often after the risk changes. The article’s point is not simply that secrets leak, but that the surrounding governance model lets those secrets remain operational too long. The implication is that enterprises must stop treating secret storage as a separate problem from identity lifecycle.

Least privilege loses meaning when agent permissions are over-broadened to preserve autonomy. Okta’s discussion of the “super-admin” problem shows how autonomy pressure often leads to broad service account grants that defeat the purpose of access design. Once an agent can traverse API chains and cloud services with elevated scope, the control plane becomes reactive instead of preventive. The implication is that privilege boundaries for AI agents must be designed around task and context, not convenience.

Shadow AI turns governance failure into discovery failure. The most dangerous unmanaged agents are not necessarily malicious, but invisible. If security teams cannot inventory which non-human identities exist, they cannot assign accountability, review access, or deprovision safely. That makes discovery a governance control, not just an inventory exercise. The implication is that identity visibility is now a prerequisite for controlling autonomous or semi-autonomous workloads.

Named concept: agent identity control plane. The article points toward a model in which identity becomes the operating layer for agent security, lifecycle control, and approval enforcement. That concept is useful because it clarifies that authentication, authorization, secret handling, and containment all converge at identity for AI agents. The implication is that practitioners should evaluate whether their identity architecture can act as the primary control plane for non-human actors.

From our research library:

What this signals

Agent identity control plane: AI agents force identity teams to move beyond login-centric thinking and treat access, approval, and revocation as runtime controls for non-human actors. That changes the programme from managing sessions to managing continuous authority, which is a much stricter operating model.

Enterprises should expect governance pressure to concentrate on discovery, lifecycle, and containment rather than on feature-by-feature AI policy. The practical question is whether the identity programme can identify agents, constrain them to task scope, and revoke them fast enough when behaviour drifts.


For practitioners

  • Inventory shadow AI identities Discover unmanaged agents across cloud and SaaS estates, then assign ownership, business purpose, and lifecycle status before they remain active in production.
  • Eliminate standing secret exposure Move API keys, service account credentials, and OAuth tokens out of code and configuration into managed vault workflows with automated rotation and revocation.
  • Reduce over-provisioned agent scope Issue role templates that are narrowly bounded to the task, then continuously review whether the agent still needs the same entitlement set across systems.
  • Apply fine-grained authorization to agent retrieval Use relationship-based policies at document and record access points so RAG-style agents can only retrieve data that is authorised for the current context.
  • Build an emergency containment path Prepare a universal logout or token revocation process that can cut off active agent sessions when anomalous behaviour appears, before the action chain completes.

Key takeaways

  • AI agent adoption is already mainstream, but governance maturity is still lagging, which creates a direct identity security gap.
  • The most damaging failure modes are standing credentials, over-broad service accounts, and weak visibility into unmanaged agents.
  • Identity teams need runtime control, fine-grained authorization, and rapid token revocation if agents are to be governed safely.

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, OWASP Agentic AI Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationThe article centres on how AI agents authenticate and remain governed across runtime sessions.
NHI-05 — Overprivileged NHIThe super-admin problem and broad service accounts are central to the article's risk model.
NHI-07 — Long-Lived SecretsHard-coded keys and long-lived tokens are identified as a core failure mode in agent deployments.
Recommendation — Bind AI agent authentication to managed identities and eliminate unmanaged credential paths. Reduce agent entitlement scope to the minimum required for each task and workflow. Replace long-lived secrets with short-lived, rotated credentials managed outside agent code.
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseThe article describes agents abusing broad privileges across systems when governance is weak.
Recommendation — Constrain agent privilege paths and monitor for cross-system identity abuse.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsFine-grained authorization and lifecycle control are central to the article's guidance.
Recommendation — Apply authorization controls that limit agent access to the specific data and actions required.
MITRE ATT&CKTA0006;TA0008 — Credential Access; Lateral MovementThe article warns that compromised agents can spread through chained API and service access.
Recommendation — Map agent credential exposure to credential access and lateral movement detections.

Key terms

  • AI Agents: AI agents are autonomous software entities that act within organisational environments and make runtime decisions within assigned boundaries. They can hold identities, authenticate to systems, and exercise permissions, which makes them comparable to other non-human identities that require inventory, governance, and continuous activity monitoring.
  • Shadow AI: AI agents, copilots, or connected tools operating without full visibility or governance from security teams. Shadow AI becomes an identity problem when those systems authenticate with unmanaged tokens, service accounts, or OAuth apps that can reach production resources.
  • AI Agent Identity Control Plane: The AI Agent Identity Control Plane is the governance layer that creates, manages, monitors, and revokes identities used by autonomous AI agents. It coordinates authentication, authorization, policy enforcement, credential lifecycle, and auditability across tools, data, and services, so agent actions remain attributable, constrained, and continuously governed.
  • Fine-Grained Authorization: Fine-grained authorization is access control that evaluates specific resources, actions, and context rather than granting broad application-level permission. For AI agents, this is the difference between merely connecting to a system and being limited to the exact data or action the task requires.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on May 30, 2026.
Updated on October 8, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org