Independent analysis by NHI Mgmt GroupSource article: Reva.AI, “When AI Agents "Go Rogue"” (October 23, 2026)

TL;DR: AI agents can search, code, call APIs and act across systems, but Reva.AI shows that identity and permission checks alone do not answer whether an action fits the current task. The deeper control gap is runtime authorization against purpose, context, behavior and impact, because broad access and prompt-only boundaries fail once agents chain actions at machine speed.


At a glance

What this is: NHI Mgmt Group's analysis, drawing on Reva.AI's blog post: AI agent security needs runtime authorization because identity and permission checks alone do not decide whether an action is appropriate for the task at hand.

Why it matters: IAM and security teams need to treat AI agents as runtime actors whose access must be evaluated per action, not just at login or onboarding, especially when tools, data and external systems are in play.


Context

AI agent governance fails when programmes assume a valid identity and a broad permission set are enough to authorise every downstream action. Once an agent can choose tools, chain requests and move between systems, access control has to answer a different question: not just who is acting, but whether this action belongs in the current task.

That gap is most visible in environments that let agents search data, write code, call APIs and interact with external systems. Those capabilities are useful only if the organisation can separate allowed identity from allowed intent, otherwise a technically permitted action can still be operationally wrong.

The security problem is therefore not limited to one product or one protocol. It sits at the point where task scope, delegated authority and machine-speed execution meet, which is why runtime policy has to sit beside existing identity controls.


Key questions

Q: How should teams scope AI agents without over-granting access?

A: Teams should scope AI agents to the smallest resource set needed for the task and avoid reusing the human account’s full access token. The agent’s entitlement should reflect the job it will perform, not the full breadth of what the user could do manually across the tenant.

Q: Why do prompt injection attacks create governance risk for AI agents?

A: Prompt injection creates governance risk because the model often sits in the control path between text input and tool execution. If attackers can change what the model treats as authoritative, they can influence access decisions, data exposure, or downstream actions without compromising a traditional account. That makes prompt provenance and instruction hierarchy part of AI identity governance.

Q: What is MCP in the context of AI security?

A: MCP is a standard way for AI agents to connect to tools and data sources through a client-server pattern. For security teams, the important point is that MCP does not remove identity controls. It still relies on secrets, scopes, and lifecycle management for every connected system.

Q: What should teams do when an AI agent reaches production scope unexpectedly?

A: Treat the agent as over-scoped until the human owner revalidates its delegated authority, then immediately restrict tool calls, data access and environment reach to the approved task, target or environment. Revoke any broad tokens, reset credentials if needed, and replace standing access with JIT access plus explicit approval. Record the accountable owner, intended runtime scope and rollback path before returning it to production.


Technical breakdown

Why identity and permission checks are not enough for AI agents

Traditional authorization was built to answer whether an identity is allowed to request an action. AI agents complicate that model because they can decide which tools to call, combine data from multiple sources and adapt their plan while the task is still in flight. That means the same identity can behave differently across steps, even when each individual request looks valid. In practice, the control problem shifts from static entitlement to continuous judgement about purpose, context and blast radius. The challenge is not that identity stops mattering, but that identity alone no longer tells you whether the action is appropriate for the task that is actually happening. See the AI Agent Authorisation Guide.

Practical implication: Treat agent authorization as a per-action decision problem, not a one-time access grant.

How prompt injection and retrieved content become action paths

Indirect prompt injection works because content retrieved as data can also influence the model as if it were instruction. That breaks the assumption that the retrieval layer is informational only. When an agent reads messages, documents or tool output, the system has to distinguish between material that should be shown to the model and material that should be allowed to steer follow-on behaviour. Without that distinction, attacker-controlled text can shape disclosure, tool use or destination choice. The risk is especially acute when sensitive data and untrusted content enter the same context window, because the model may treat the attacker’s text as part of the workflow rather than as hostile input. See the Agentic AI Security Guide.

Practical implication: Separate retrieval authorisation from instruction influence and evaluate follow-on actions independently.

Why MCP connections create new trust boundaries

MCP makes it easier for agents to connect to tools and data sources, but every connection expands the trust boundary. A server can return manipulated content, request excessive privilege or expose local credentials through broad filesystem access. Tool approval is therefore not the same as authorization for every invocation, argument, destination or data transfer. The architectural issue is that one approved server can become a multi-step exfiltration path once information moves from one tool to another. That is why tool connectivity has to be governed at the level of individual calls and destinations, not only at the level of initial approval. See the MCP Security Guide.

Practical implication: Authorise each tool call and data transfer separately instead of treating server approval as blanket trust.


Threat narrative

Attacker objective: The objective is to turn an apparently legitimate agent workflow into unauthorised data exposure, external interaction or operational change.

  1. Entry occurs when an agent is given legitimate access to tools, retrieved content or connected systems that exceed the immediate task scope.
  2. Escalation happens when the agent follows a chain of actions across tools, environments or data sources that expands beyond the original intent.
  3. Impact occurs when the chain reaches production systems, confidential data or external destinations that were never meant to be in scope for the task.

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

Runtime authorization is the missing control layer for agentic systems. Identity tells you who or what is acting, but it does not tell you whether the next action belongs inside the current task. Once an agent can select tools, combine sources and continue without approval at each step, static permissioning becomes a weak proxy for decision control. The practitioner conclusion is that agent security has to move from identity-only gating to action-level judgement.

The assumption that trusted instructions are sufficient has collapsed. The governance premise was designed for systems that followed human-paced approval loops and stable task boundaries. That assumption fails when an agent can re-plan mid-session, chain tool use and continue execution without a new human decision. The implication is not simply that more policy is needed, but that the control model must stop relying on instructions as if they were enforceable boundaries.

Task scope is now a security attribute, not a documentation detail. Reva.AI frames the core issue correctly when it checks purpose, context, behaviour and impact before allowing an action. That reflects a broader shift in identity governance: access is only meaningful when it is tied to the moment, destination and consequence of use. The practitioner conclusion is to govern scope at runtime, not only at provisioning.

Agent trust debt is created when broad access persists after the task changes. A reusable credential, open egress path or blanket tool approval may look efficient, but it leaves the organisation paying for trust that no longer matches the work being done. That debt shows up as chained actions, cross-environment movement and delayed detection. The practitioner conclusion is to treat overbroad agent access as a governance liability, not just a tuning issue.

Agentic AI demands a new boundary between authorization and observation. Logging is necessary, but it is too slow to serve as the primary safety mechanism when actions can unfold at machine speed. Behaviour has to be checked before consequential execution, especially where the chain can touch production, confidential information or external destinations. The practitioner conclusion is to make runtime denial part of the operating model, not an after-action investigation tool.

From our research library:

What this signals

Runtime decisions will matter more than standing privilege as agent usage expands. Access models that assume a stable permission set are already too blunt for systems that can change tools, targets and timing within one workflow. The next governance step is to decide what must be evaluated at the point of action, not just at the point of enrolment.

Agent trust debt: When organisations let reusable access persist across tasks, they accumulate hidden exposure that only becomes visible when behaviour drifts or crosses an environment boundary. That debt will show up first in production workflows, not in toy demonstrations, because the risk comes from chained access, not from isolated prompts.

Access reviews are a poor fit for agents that acquire and release privilege inside a single workflow. Systems with least-privileged AI access had a 17% incident rate vs 76% for over-privileged systems, and organisations failing to scope AI access properly are 4.5x more likely to experience a security incident, according to the 2026 Infrastructure Identity Survey. The practical implication is that issuance-time controls and runtime checks now matter more than periodic certification alone.


For practitioners

  • Define task-scoped agent access Specify the exact tasks, tools, destinations and data classes each agent may use, then narrow access to the minimum needed for the current job. See the AI Agent Authorisation Guide.
  • Separate retrieval from instruction authority Treat retrieved messages, files and tool output as untrusted input, and require a separate policy decision before that content can influence disclosure or follow-on actions.
  • Gate high-impact actions at runtime Require additional policy checks or human approval for deletion, privilege changes, sensitive exports, production changes and other actions with meaningful blast radius.
  • Audit cross-tool data paths Map how data moves from internal sources into browsers, messaging tools, storage services and external endpoints so chained exfiltration paths can be blocked.

Key takeaways

  • AI agents change the authorization problem from permission checking to action suitability, so identity alone is no longer enough.
  • The most damaging failures come from broad access, weak containment and chains of actions that look harmless one step at a time.
  • Runtime policy evaluation is the control that closes the gap between what an agent may do and what it should do in context.

Related NHI Mgmt Group resources: AI Agent Authorisation Guide · AI Agent Observability, Audit and Incident Response Guide · Agentic AI Security Guide · MCP Security Guide


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

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseThe article centres on agents making privileged actions that exceed task scope.
ASI02 — Tool MisuseTool chaining and cross-system calls are the main abuse path discussed here.
ASI09 — Human-Agent Trust ExploitationPrompt injection and trusted content steering are core to the examples cited.
Recommendation — Apply ASI03 to constrain agent privileges to the specific action and context in flight. Review each tool invocation for abuse potential instead of trusting the agent’s overall session. Treat retrieved content as untrusted input and separate it from instructions before execution.
OWASP Non-Human Identity Top 10NHI-05 — Overprivileged NHIAgents are non-human identities whose broad, persistent access creates the central risk.
NHI-08 — Environment IsolationThe incidents hinge on test boundaries failing and work escaping into live systems.
Recommendation — Reduce standing access for agents and make privilege task-specific and time-bounded. Enforce hard isolation between evaluation, test and production environments for agent workflows.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe post is about authorizing actions beyond identity and permission alone.
Recommendation — Align entitlements with the exact resources and actions an agent needs in context.
MITRE ATT&CKTA0006;TA0008 — Credential Access; Lateral MovementThe examples involve access expansion, cross-system movement and chained abuse paths.
Recommendation — Map agent overreach to credential access and lateral movement patterns in detections.
NIST AI RMFGOVERN — AI Governance and AccountabilityRuntime authorization is a governance control for managing AI behaviour and accountability.
Recommendation — Establish governance for agent decision rights, review gates and accountable overrides.

Key terms

  • Runtime Authorisation: Runtime authorisation is the practice of deciding access while a task is in progress, rather than only at provisioning time. It matters for NHIs because credentials and entitlements can change risk mid-session, especially when automation or AI agents interact with sensitive systems.
  • Indirect Prompt Injection: Indirect prompt injection is an attack where malicious instructions are hidden inside content that an AI system reads later. The model may treat that content as context rather than as hostile input, which can influence tool use, data access, or workflow actions if controls are weak.
  • Tool Misuse: Tool misuse occurs when an agent uses an allowed integration in a way that exceeds its intended task, scope, or risk tolerance. The problem is often not access alone but the combination of valid credentials, broad permissions, and unbounded action sequencing.
  • Task-Scoped Access: Task-scoped access is permission granted for one defined purpose and removed once the task is complete or the session expires. For non-human identities, it reduces standing privilege and limits how long an attacker can exploit a stolen credential.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity security 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 November 4, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org