By NHI Mgmt Group Editorial TeamPublished 2025-11-10Domain: Agentic AI & NHIsSource: WorkOS

TL;DR: Most agentic security failures still begin with identity mistakes, not exotic model attacks: unauthorized access, excess permissions, and weak auditability are the issues that decide production risk, according to WorkOS. The practical lesson is that authentication, authorization, and lifecycle controls remain the baseline before specialised AI security tooling adds value.


At a glance

What this is: This compares specialised AI security tooling with identity and authorization infrastructure, arguing that production agentic security still depends first on access control, auditability, and enterprise identity integration.

Why it matters: It matters because IAM teams, NHI programmes, and emerging autonomous governance efforts all need to decide whether to solve AI risk at the model layer, the identity layer, or both.

By the numbers:

👉 Read WorkOS's comparison of HiddenLayer and WorkOS for agentic security


Context

Agentic security is fundamentally an identity problem before it is a model-security problem. When an AI agent can invoke tools, access data, or act on behalf of a user, the decisive question is who or what is authorised to do so, under what conditions, and how those permissions are reviewed over time. That is why enterprise identity and access management remains the control plane that most production agentic systems inherit first.

Specialised AI security tools can add detection, red-teaming, and model-specific defence, but they do not replace authentication, fine-grained authorization, directory sync, or audit logging. For teams building production systems, the governance gap is usually not an obscure model-extraction technique. It is the gap between who can reach the agent and what that agent is allowed to do once reached.


Key questions

Q: How should security teams govern access for production AI agents?

A: Security teams should govern AI agents as identities with explicit permissions, not as generic application features. That means strong authentication, fine-grained authorization, directory sync, and audit logging before production rollout. The goal is to ensure every action is attributable to a current identity and a current policy decision.

Q: Why do enterprise AI agents still depend on traditional IAM controls?

A: Enterprise AI agents still depend on traditional IAM controls because the main failure mode is usually unauthorized access or over-permission, not model reasoning alone. Identity governance defines who can invoke the agent, what data it can reach, and whether those rights remain valid as users and roles change.

Q: What do security teams get wrong about AI agent risk?

A: Security teams often over-focus on prompt injection and model extraction while underestimating access control failure. If the agent can be reached by the wrong user or allowed to act beyond intent, model security cannot compensate. Access path design, lifecycle hygiene, and runtime policy enforcement are the real baseline.

Q: How do you know if AI agent authorization is actually working?

A: Authorization is working when each agent action can be tied to a current identity, a current policy, and a specific data or resource scope. If access reviews cannot explain who approved the entitlement, or logs cannot reconstruct the decision, the control is not operationally effective.


Technical breakdown

Enterprise authentication for agentic systems

Agentic applications inherit enterprise access requirements from the moment they are sold into real environments. SSO, federation, and directory sync are not add-ons. They establish who the user is, keep role and group changes current, and prevent stale permissions from lingering after job changes or offboarding. In practice, these controls are the first line between a useful agent and an exposed one. If the identity layer is weak, downstream AI-specific controls only observe a system that was already mis-authorised. That is why production deployment usually starts with federation and lifecycle-aware access control before any advanced AI threat tooling becomes relevant.

Practical implication: implement enterprise SSO and directory sync before scaling agent access to users or customers.

Fine-grained authorization at runtime

Fine-grained authorization answers the question that generic authentication cannot: which person can invoke which agent, on which resource, with which data, at which moment. Runtime policy checks matter because agentic workflows are dynamic and context-sensitive. A request that is valid for one user, workspace, or dataset may be invalid for another, even when the same application session is in play. Sub-10ms decisioning is relevant because access control cannot become the bottleneck, but the architectural point is broader. If authorisation is not explicit, agents will inherit implicit trust from the application layer and that trust will eventually be overextended.

Practical implication: model agent permissions explicitly and enforce them at runtime rather than embedding trust in application logic.

AI detection and response versus identity governance

AI-specific security platforms focus on prompt injection, data poisoning, model tampering, and tool-use abuse. Those are real threats, but they are layered on top of a more basic question: whether the agent should have been able to access the target in the first place. Detection helps when adversaries are already manipulating the system. Identity governance helps prevent routine misuse, overreach, and unauthorised access that occur long before sophisticated AI attacks appear. The two control families are complementary, but they are not interchangeable. Mature programmes separate model behaviour monitoring from entitlement governance so they can see both the attack surface and the access surface.

Practical implication: pair AI threat detection with identity governance, but do not treat detection as a substitute for access control.


Threat narrative

Attacker objective: The objective is to coerce an agentic system into performing actions or revealing data that the attacker should never have been able to reach through normal identity controls.

  1. Entry occurs when an unauthorized user reaches the agent through weak authentication, missing federation, or overly broad access paths.
  2. Escalation occurs when a legitimate user exceeds intended permissions because authorization is implicit, stale, or not checked at runtime.
  3. Impact occurs when the agent performs sensitive actions, exposes data, or triggers compliance failures without a reliable audit trail.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Identity is the control plane for agentic security: Most production failures in agentic systems begin with who can access the agent and what that agent can do once invoked. AI-native detection may catch model misuse, but enterprise breach paths still run through authentication, authorization, and stale entitlement management. The field should stop treating agent security as a specialised overlay on top of IAM and recognise that IAM is the foundation the agent inherits.

Tool-use governance is only as strong as the underlying entitlement model: Restricting which APIs an agent can call is useful, but it does not solve overbroad user access or weak directory hygiene. If the human or service identity invoking the agent is over-permissioned, the agent simply becomes a faster path to the same overreach. Practitioners should read AI tool governance as an authorization problem, not a model-only problem.

Runtime access decisions create more value than retrospective model defence: The most practical security gain comes from checking who can do what at the moment of action. That makes audit logs, entitlement accuracy, and lifecycle synchronization more valuable than abstract confidence in model robustness. Organisations that cannot explain an agent's access path cannot credibly explain its risk boundary.

Specialised AI security does not displace identity governance; it exposes where identity governance breaks first: The more autonomous the workflow becomes, the more obvious permission drift, weak offboarding, and unaudited access become. That does not make AI threat tooling irrelevant, but it does mean security architecture should start with access control and then add AI-specific monitoring where the risk justifies it. The practitioner conclusion is simple: secure the identity layer first, then harden the model layer.

From our research:

  • Only 52% of companies can track and audit the data their AI agents access, leaving 48% with a complete blind spot for compliance and breach investigation, according to AI Agents: The New Attack Surface report.
  • 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems, inappropriately sharing sensitive data, and revealing access credentials.
  • For a deeper view of control design, see OWASP Top 10 for Agentic Applications for the risks that runtime governance has to absorb.

What this signals

Identity governance will absorb more of the agentic AI control burden than many teams expect. With AI systems already moving beyond intended scope in most real deployments, organisations will need entitlement review, lifecycle sync, and auditability to do work that once sat outside the AI stack. The programme implication is to treat agent permissions as part of core IAM, not as an experimental sidecar.

Runtime authorisation will become a board-level proof point, not just a technical control. If enterprise customers ask who accessed what and why, your ability to answer will depend on the quality of identity telemetry, not model confidence. Teams that cannot trace actions back to current identity and policy decisions will struggle to demonstrate operational control.


For practitioners

  • Map agent access to explicit identities Assign every production agent, integration, and service path a named identity and enforce least privilege at the point of invocation. Do not let agent access inherit from broad application roles or shared tokens.
  • Tie authorization to runtime policy checks Validate each agent action against current user, resource, and data context instead of trusting session-level approval. This reduces overreach when users, groups, or data scopes change mid-session.
  • Synchronize directory changes into agent entitlements Propagate joiner, mover, and leaver events into agent permissions so access changes follow the user lifecycle. Stale group membership should not keep agent privileges alive after role changes or offboarding.
  • Separate detection from entitlement governance Use AI threat monitoring for prompt injection, model tampering, and abnormal tool use, but keep access certification, audit logging, and entitlement review in the identity stack. The two controls answer different questions.
  • Require auditability before enterprise rollout Ensure every agent action can be traced back to a user, policy decision, and resource context. If the organisation cannot answer who accessed what, when, and why, the system is not ready for regulated production use.

Key takeaways

  • The article's central point is that agentic security still fails first at the identity layer, where access and authorization decisions are made.
  • Specialised AI defence matters, but the evidence cited here shows that access visibility and permission drift remain the dominant production risks.
  • Teams should harden authentication, authorization, lifecycle sync, and auditability before treating AI-native detection as the primary control.

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 OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10Covers agent tool use, access abuse, and runtime security decisions.
NIST CSF 2.0PR.AC-4Authorization and least privilege are central to the article's access-control argument.
OWASP Non-Human Identity Top 10NHI-03Directory sync, credential scope, and access lifecycle are NHI governance issues.

Tie agent identities to NHI-03 lifecycle controls and enforce revocation on role change or offboarding.


Key terms

  • Agentic Security: Agentic security is the discipline of governing software that can choose actions, use tools, and act in production on behalf of a user or system. In practice, it combines identity control, runtime authorization, auditability, and AI-specific threat monitoring so the agent's autonomy stays inside a defined policy boundary.
  • Fine-Grained Authorization: Fine-grained authorization is the process of deciding, at runtime, exactly what a subject can do with a specific resource or action. For agentic systems, it is the control that prevents a valid login from becoming unlimited operational trust, especially when permissions, data scopes, or delegated actions change.
  • Directory Sync: Directory sync is the automated propagation of identity and group changes from an organisation's source directory into downstream applications and services. For agentic systems, it ensures joiner, mover, and leaver changes update agent entitlements quickly enough that stale access does not survive role changes or offboarding.
  • Runtime Policy Check: A runtime policy check is an access decision made at the moment an action is requested, rather than only at login or provisioning time. For agents, this matters because the same identity can request different tools or data at different moments, and each request needs a current decision.

Deepen your knowledge

Agentic security and access governance are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building controls for AI agents that inherit enterprise permissions, it is worth exploring.

This post draws on content published by WorkOS comparing HiddenLayer and WorkOS for agentic security. Read the original.

NHIMG Editorial Note
Published by the NHIMG editorial team on 2025-11-10.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org