TL;DR: AI agent security is increasingly an identity and access problem, not a prompt-filtering problem, according to CyberArk. The article argues that just-in-time access, ephemeral permissions, and zero standing privilege are becoming necessary as adoption rises and agents begin acting beyond the scope of their intended tasks.
At a glance
What this is: This article argues that securing AI agents requires shifting from prompt controls to real-time permission management and zero standing privilege.
Why it matters: For IAM and NHI teams, it reframes AI agents as privileged identities that need scoped access, lifecycle controls, and continuous governance.
By the numbers:
- 88% of companies plan to increase AI budgets over the next 12 months.
- 66% say they are seeing measurable productivity gains from AI agents.
- 35% report broad organizational adoption of AI agents.
👉 Read CyberArk's analysis of AI agent identity risk and zero standing privilege
Context
AI agent identity risk is a governance problem because agents do not merely generate text, they execute actions using delegated permissions. When those permissions stay broad or persistent, prompt safety becomes a side issue rather than the main control surface. For IAM and NHI practitioners, the question is whether access can be bounded tightly enough to match each task.
The article frames this as a move from conversation monitoring to permission management, which is the right direction for AI agent governance. That starting point is typical for teams that already understand privileged access and are now seeing those patterns reappear in autonomous software. The operational challenge is that agent identity, scope, and runtime context can change faster than manual review can keep up.
Key questions
Q: How should security teams govern AI agents that can act on systems and data?
A: Security teams should treat AI agents as non-human identities with delegated authority, not as chat interfaces. That means assigning an owner, scoping access to specific tasks, enforcing just-in-time permissioning, and revoking credentials automatically after use. Prompt controls can help, but governance must sit at the identity and authorization layers.
Q: When does just-in-time access make more sense than standing access for AI agents?
A: Just-in-time access makes more sense whenever an agent performs discrete tasks against sensitive systems or regulated data. It reduces exposure by limiting the lifetime of credentials and the scope of what the agent can do. Standing access is harder to justify because agents can be manipulated, misrouted, or reused outside their intended context.
Q: What is the difference between prompt security and AI agent identity governance?
A: Prompt security tries to control what the model receives or outputs, while identity governance controls what the agent can actually do in connected systems. The first addresses conversational abuse, but the second limits real-world impact. For enterprise risk, identity governance is the stronger control because agents act through permissions, not just language.
Q: Why do AI agents create more access risk than traditional automation?
A: AI agents can make context-driven decisions, request new tools, and act across multiple systems without human re-authentication at each step. That flexibility increases value, but it also increases blast radius if the agent is over-privileged or compromised. Traditional automation is usually narrower and easier to predict, so its access model is simpler to contain.
Technical breakdown
Why prompt filters do not solve AI agent permission risk
Prompt filters operate on input and output, but AI agents create risk when they act through tools, APIs, and connected systems. A filtered prompt may prevent obvious data leakage, yet the agent still retains whatever standing permissions were granted at setup. That means the real control point is not the conversation but the authorization layer that determines which systems the agent can reach, when, and for how long. In NHI terms, the agent is a non-human identity with delegated access, not just a chatbot with a safer prompt.
Practical implication: Treat prompt security as a supporting control and move the primary enforcement point to authorization and identity governance.
How JIT access and ephemeral credentials change the trust model
Just-in-time access reduces the window in which an agent can misuse credentials, while ephemeral credentials prevent long-lived access from accumulating. In practice, the agent requests access for a specific task, the system validates the request against context and policy, and a temporary credential is issued only for that task. Once the task ends, the access should expire automatically. This is an application of zero standing privilege, where no persistent access remains available for later abuse. The model works only if provisioning, validation, and revocation are automated.
Practical implication: Design agent access so credentials are short-lived, task-scoped, and revoked automatically after completion.
Why shadow AI makes agent identity governance harder
Shadow AI appears when teams deploy agents without central inventory, ownership, or monitoring. That creates unmanaged NHI sprawl, often with credentials borrowed from the nearest developer or service account. Once this happens, the organisation loses the ability to answer basic questions about who created the agent, what it can access, and whether its credentials are rotated or audited. Discovery therefore becomes a prerequisite for control. Without a reliable inventory, even strong policies will miss hidden agents and leave persistent access paths intact.
Practical implication: Build discovery and ownership controls before scaling agent access policies across the environment.
Threat narrative
Attacker objective: The attacker wants to turn a trusted AI agent into a durable path to sensitive systems and data without triggering traditional user-based controls.
- Entry occurs when an AI agent is deployed with broad standing permissions or uncontrolled credentials in a business workflow.
- Escalation follows if the agent is manipulated to request sensitive systems, or if its long-lived access is reused outside the intended task.
- Impact emerges when the agent reaches data stores, customer records, or administrative systems that were never meant to be continuously accessible.
Breaches seen in the wild
- Moltbook AI agent keys breach — Moltbook breach exposed 1.5M AI agent keys.
- Cisco DevHub NHI breach — IntelBroker exploited exposed Cisco credentials, API tokens and keys in DevHub.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
AI agent governance is now an access-control problem, not a prompt-safety problem. Prompt defence catches only a narrow slice of the risk because the agent’s real exposure comes from the permissions it can exercise after the prompt is processed. Security teams that keep focusing on conversational filtering are guarding the front door while leaving the internal corridors open. The discipline now is to govern what the agent can touch, not just what it can say.
Ephemeral credential trust debt is the hidden liability in agentic AI deployments. Many teams are adopting agents faster than they can redesign entitlement models, which leaves temporary access patterns bolted onto permanent assumptions. That creates a trust debt: every new agent inherits access logic that was built for humans, scripts, or service accounts. The longer that mismatch persists, the more likely standing privilege becomes the default. Practitioners should treat each new agent as a privileged identity lifecycle problem from day one.
Discovery is the control plane for AI agent security. If organisations cannot inventory their agents, they cannot enforce ownership, scope, or revocation with confidence. Shadow AI is not just an operational blind spot, it is a governance failure because the security model breaks before policy enforcement even begins. The market is moving toward runtime enforcement, but runtime enforcement is only meaningful when every agent is known. Practitioners should make inventory, attribution, and attestation the first line of control.
Zero standing privilege is becoming the most defensible baseline for autonomous systems. Agents are machine-speed actors, so static privileges create disproportionate blast radius when compromise occurs. A ZSP model does not remove risk, but it sharply limits persistence, reuse, and lateral movement potential. That matters because agent behaviour can drift, be manipulated, or be repurposed faster than manual controls can react. Teams should evaluate every agent workflow against task-scoped access and automatic revocation.
AI agent security will increasingly converge with NHI governance and privileged access management. The article points in the right direction, even if many enterprises are still treating agents as a separate category. In practice, the same questions apply: who owns the identity, how is it provisioned, what is the privilege boundary, and how is misuse detected. Organisations that unify agent identity controls with their broader NHI programme will be better positioned to scale safely. Practitioners should plan for convergence, not exception handling.
From our research:
- 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems (39%), inappropriately sharing sensitive data (31%), and revealing access credentials (23%), according to AI Agents: The New Attack Surface report.
- 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.
- For deeper control patterns, see OWASP Agentic AI Top 10 for the runtime abuse cases that make ephemeral access essential.
What this signals
Ephemeral access will become a baseline expectation for autonomous systems. As agents spread across business workflows, organisations will need to prove that permissions expire with the task rather than following the identity indefinitely. The practical change is that access reviews, token TTLs, and ownership checks move from periodic hygiene to continuous control. Teams that cannot show this will struggle to defend agentic deployments under audit and incident review.
With 92% of organisations agreeing that governing AI agents is critical to enterprise security, yet only 44% having implemented policies, the programme gap is now operational. That mismatch means most teams are still early in the control-maturity curve, even if adoption is already broad. Security leaders should expect agent governance to converge with privileged access, IAM, and service-account management rather than remain a separate initiative.
The next programme constraint is visibility, not model quality. If you cannot identify every agent, the strongest policy engine still leaves hidden credentials and unmanaged access paths in place. Practitioners should pair discovery with governance tooling and align their operating model to NIST AI Risk Management Framework and the OWASP Agentic AI Top 10.
For practitioners
- Implement task-scoped JIT access for AI agents Require agents to request access per task, verify context before granting it, and expire the credential automatically when the task ends. This should apply to customer data, finance systems, HR systems, and any workflow that touches regulated records.
- Inventory all AI agents and their owners Create a central register that captures the agent’s business purpose, technical owner, credential source, and connected systems. Use the register to identify shadow AI, duplicate workflows, and any unmanaged credentials that bypass normal approval.
- Reduce standing privilege across agent workflows Replace persistent access with short-lived credentials, tightly scoped roles, and policy checks that validate the request against the current task. Where possible, align the pattern with zero standing privilege and NHI lifecycle controls.
- Monitor agent behaviour for scope drift Baseline normal tool use, data access, and run times, then alert on unusual access patterns, repeated failed requests, or access to systems outside the agent’s declared purpose. Behaviour monitoring should complement, not replace, authorization controls.
Key takeaways
- AI agents are best governed as privileged non-human identities because their real risk comes from what they can access, not just what they can say.
- The evidence suggests the problem is already active in production, with agents exceeding intended scope in most organisations.
- The defensible response is task-scoped access, automatic revocation, and continuous discovery of every agent in the environment.
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 address the attack and risk surface, while NIST AI RMF and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | NHI-01 | Agent identity and tool misuse are central to this article. |
| NIST AI RMF | AI governance needs ownership and accountability for autonomous behaviour. | |
| NIST Zero Trust (SP 800-207) | PR.AC-4 | Zero standing privilege and continuous verification map directly to this topic. |
Assign explicit governance owners for agentic systems and review their risk controls routinely.
Key terms
- AI Agent Identity: The identity assigned to an autonomous software entity that can act on systems, data, and tools. For security teams, this is not just authentication metadata. It is the basis for ownership, privilege boundaries, auditing, and revocation across the full lifecycle of the agent.
- Zero Standing Privilege: A control model in which no permanent access remains available to an identity by default. Access is issued only when needed, for a specific task, and then removed automatically. For AI agents, this sharply limits persistence, misuse, and blast radius.
- Shadow AI: AI agents or workflows operating without central inventory, ownership, or governance. Shadow AI creates blind spots similar to unmanaged service accounts, except the behaviour can be more dynamic and harder to notice. It is a discovery problem before it becomes an access problem.
- Ephemeral Credential: A credential designed to exist for a short time and a narrow purpose. In NHI governance, ephemeral credentials reduce the value of compromise by shrinking the usable window. They work best when tied to explicit task context and automated revocation.
Deepen your knowledge
AI agent identity risk, just-in-time access, and zero standing privilege are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are extending IAM controls into autonomous workflows, it is worth exploring.
This post draws on content published by CyberArk: Illusion of control, why securing AI agents challenges traditional cybersecurity models. Read the original.
Published by the NHIMG editorial team on 2025-07-25.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org