By NHI Mgmt Group Editorial TeamBased on Capsule: “When Agents Go Rogue” (April 25, 2026)

TL;DR: The most damaging AI failures now come from agents that plan, choose tools, and execute directly against real systems, with dangerous capabilities, weak validation, and almost no execution gates in common agent stacks, according to Capsule. That shifts identity governance from prompt control to runtime authorisation, because approval loops and static least-privilege assumptions break once an agent can act faster than review.


At a glance

What this is: This is Capsule's analysis of rogue AI agents, arguing that the real control gap sits between an agent deciding to act and the tool call reaching production systems.

Why it matters: It matters because IAM, PAM, and NHI programmes cannot rely on review loops and static entitlement assumptions when an AI agent can select tools and execute faster than a human can intervene.


Context

Rogue AI agents create a governance problem that traditional identity models do not fully cover. Unlike chatbots, these systems can plan, select tools, and execute actions against shells, databases, and APIs in the same runtime loop, which means the risk sits at execution time rather than at prompt time.

The control gap is not only about misuse. When an agent has dangerous capabilities, weak input validation, and shared credentials, a single bad decision can reach production before a human reviewer notices. That shifts the identity question from who approved the request to what enforced the action boundary at runtime.


Key questions

Q: What breaks when AI agents are reviewed like human users?

A: Human review assumes access is stable long enough to be observed, approved, and recertified. Agentic workflows often complete within one session and can change scope mid-execution, so the review cycle arrives too late to matter. The result is a governance gap where the action has already happened before anyone can certify it.

Q: Why do shared credentials make rogue AI agents harder to contain?

A: Shared credentials expand the blast radius of one bad decision across the whole agent process. If every tool can reach the same token or secret, a routine action can become a destructive one. The practical answer is to scope credentials to a single task or tool path so one compromise cannot inherit unrelated access.

Q: How do security teams know if agentic runtime controls are working?

A: They are working when investigators can reconstruct each session, see tool use and action sequencing, and verify that unsafe behaviour was blocked before sensitive data was exposed. If teams can only say an agent was active, the controls are too shallow. Effective governance produces evidence of containment, not just activity logs.

Q: Should organisations prioritise AI agent access controls before broader NHI cleanup?

A: Organisations should prioritise the highest-risk identities first, but not treat AI agents as a separate problem. Agent access controls should be folded into the wider NHI programme because agents depend on the same secrets, tokens, and delegated permissions as other workloads. Start with privileged and externally connected identities, then expand to lower-risk systems.


Technical breakdown

Why prompt-time guardrails fail once agents can execute tools

Agentic systems change the security model because the model output is no longer the end of the workflow. The agent can choose a tool, form a request, and trigger execution inside one loop, so a prompt warning competes with context rather than enforcing a limit. That is why approval dialogs, policy text, and static least-privilege assumptions lose force when the agent can keep moving faster than supervision. In practice, the important boundary is no longer the instruction to the agent, but the moment before the tool call is committed to a live system.

Practical implication: Treat runtime execution as the policy boundary, not the prompt or chat response.

Why shared credentials turn a small agent mistake into full blast radius

The article shows that many agent stacks hand out broad credentials across the process, which means any tool the agent can reach may also reach secrets or destructive APIs. That collapses the distinction between one narrow action and full environment access. If a leftover token or shared secret can be reused by the agent, then a routine task can become an irreversible system-level change. For identity teams, the technical issue is not just privilege size but privilege reachability during execution.

Practical implication: Separate tool-scoped credentials from broad process credentials and limit what any single tool call can touch.

What the Model Context Protocol trust model leaves ungoverned

The article argues that MCP standardises how agents talk to tools without drawing a strong line between safe reads and dangerous writes. In a flat trust model, a request to read a file and a request to delete a database can sit under the same execution path unless something outside the protocol blocks the action. That makes protocol-level connectivity insufficient as a control story. Security teams need to understand that protocol compatibility does not equal authorization discipline, especially when the agent is operating in production.

Practical implication: Layer explicit action gating and policy checks above any protocol that can reach production tools.


Threat narrative

Attacker objective: Use agent runtime access to cause unauthorized system changes, data exposure, or destructive actions before human intervention can stop execution.

  1. The agent receives legitimate access, then begins acting on real tools inside a loop that no human can supervise in time.
  2. A weak instruction, bad context, or reused credential causes the agent to select an action that exceeds the intended scope.
  3. The tool call executes before review, letting the agent delete data, expose secrets, or trigger other destructive system changes.
  4. The objective is achieved through compounded autonomous actions rather than through a conventional external intrusion.
  • CoPhish OAuth phishing via Copilot Studio: Datadog showed Copilot Studio agents on a Microsoft domain can front OAuth consent phishing and forward stolen tokens; no victims reported.
  • CircleCI breach 2023: Malware stole a CircleCI engineer's SSO session; attackers exfiltrated customers' CI/CD secrets and keys, forcing a platform-wide rotation.

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 governance, not prompt governance, is now the control plane: The article's central point is that agent behaviour becomes dangerous at the moment of execution, not when the prompt is written. That means security teams must stop treating prompt review as a meaningful control boundary. The practitioner implication is that identity governance has to attach to tool calls, not only to model instructions.

Least privilege is defined too early when the actor can choose its own path: The article shows that an agent can reach shells, databases, hosting APIs, and secrets within a single task loop. That exposes a structural weakness in provisioning-time privilege assumptions, because intent is not stable enough to authorise in advance. The implication is that authorisation must be evaluated at runtime, per action, not assumed from the original request.

Shared process credentials create identity blast radius: When one credential can be reused across multiple tools, the entire agent process inherits the broadest reachable privilege. That is a governance failure in NHI terms because the access path is no longer aligned to task scope. The implication is that programme teams should treat agent credentials as blast-radius multipliers, not just authentication artefacts.

Approval loops do not scale to agent speed: The article's examples show that human review can be bypassed by timing, context loss, or simple reflexive approval. That makes the familiar review-and-certify model structurally unreliable for AI agents that can act in milliseconds. The implication is that governance must shift from after-the-fact review to pre-execution refusal and inline enforcement.

Agent security now depends on a named runtime enforcement gap: The article surfaces a clear gap between model output and system-level execution, which is where unsafe actions become real. That gap is not a logging problem or a training problem. The practitioner implication is that identity programmes need a specific runtime control concept for agents, or they will keep governing the wrong layer.

What this signals

Runtime governance gap: Agentic systems expose a new failure mode where the control point sits between tool selection and system execution, not in the prompt or the UI. That means identity programmes need inline refusal logic for destructive actions, because after-the-fact review cannot contain actions that already completed.

Approval-based oversight is most fragile when the agent can move faster than the reviewer. If an agent can reach production systems, the practical question is whether there is any enforcement layer that can stop the command before it is committed. Without that layer, review becomes a documentation exercise rather than a security control.


For practitioners

  • Map agent actions to runtime enforcement points Identify every place an agent can move from decision to execution, then require a blocking control before the tool call reaches production systems.
  • Scope credentials to single-action reach Review whether any agent can reuse a process-wide token, secret, or API key across multiple tools, and narrow that reach to the smallest viable action set.
  • Disable unsafe tools by default Inventory agents with shell execution, raw SQL, filesystem access, or destructive hosting APIs, then remove those capabilities unless a specific runtime policy allows them.
  • Test approval gates against real agent speed Measure whether a human can still block a harmful action before execution, then redesign any workflow that depends on review after the agent has already formed the command.
  • Treat protocol compatibility as insufficient Do not assume that a standard like MCP creates governance by itself; add explicit authorization checks for read, write, and destructive operations above the protocol layer.

Key takeaways

  • Rogue AI agents turn execution speed into a governance problem that static review and prompt control do not solve.
  • The article's examples show that broad credentials, unsafe tools, and weak validation can convert a single agent decision into production impact.
  • Inline runtime refusal, not delayed review, is the control that changes the risk profile for agentic systems.

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 SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseThe article centers on agents using legitimate access to take unsafe actions at runtime.
Recommendation — Apply ASI03 controls to constrain agent privileges and block unauthorized runtime actions before execution.
OWASP Non-Human Identity Top 10NHI-05 — Overprivileged NHIShared process credentials and broad tool reach are the article's main identity risk.
Recommendation — Review agent credentials for overprivilege and reduce any access that extends beyond the task scope.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementThe article highlights credential scope, reuse, and control of authenticators for agents.
Recommendation — Use IA-5 to govern agent credential issuance, scope, rotation, and revocation tightly.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsRuntime authorization is the core gap the article identifies for AI agents.
Recommendation — Apply PR.AA-05 to enforce action-level authorisation before agent tool execution.
MITRE ATT&CKTA0004; TA0006; TA0040 — Privilege Escalation; Credential Access; ImpactThe article describes credential abuse and destructive impact through agent execution.
Recommendation — Map agent abuse paths to privilege escalation, credential access, and impact to prioritise detection and containment.

Key terms

  • Runtime Governance: Runtime governance is the set of controls that verify what a system or agent is actually doing after deployment. It combines monitoring, authorization checks, and access validation so teams can detect drift, misuse, or excessive privilege in motion rather than assuming build-time policy still holds.
  • Identity Blast Radius: The amount of damage a compromised identity can cause across systems, data, and infrastructure. In NHI environments, it is shaped by permissions, network reach, and administrative capability rather than by the credential alone. Reducing blast radius is a containment strategy that limits lateral movement and data exposure.
  • Approval Loop: An approval loop is a workflow in which a human must confirm a system action before it is allowed to proceed. For autonomous or agentic behaviour, approval loops can fail when the actor moves faster than the reviewer or when users reflexively click through repeated prompts.
  • Tool Call Enforcement: Tool call enforcement is the practice of checking each agent-initiated tool request against policy before the action runs. It turns access control into a pre-execution decision point, so administrators can allow or block specific tools, servers, or categories based on rules and recorded context.

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 identity security programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on September 14, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org