By NHI Mgmt Group Editorial TeamBased on Akto: “AI Agent Security Risks in 2026: Runtime Protection & Security Best Practices” (June 15, 2026)

TL;DR: AI agents are expanding enterprise attack surfaces through prompt injection, memory poisoning, privilege escalation, and MCP-connected tooling, according to Akto. Static app security controls do not map cleanly to systems that choose tools, recall context, and act at runtime without human approval.


At a glance

What this is: This analysis explains why AI agents create runtime security risks that conventional application controls miss, with prompt injection, memory poisoning, privilege escalation, and MCP-connected tooling as the main exposure points.

Why it matters: IAM, NHI, and application security teams need to govern agent behaviour at execution time because permission boundaries, tool access, and memory persistence can all change mid-task.


Context

AI agents are software systems that can plan, choose tools, and act during execution rather than simply return a fixed output. That runtime decision-making changes the identity problem: access is no longer just about who can log in, but what the system can do, when it can do it, and which external services it can reach while acting.

Akto’s article frames the issue as a security mismatch between dynamic agent behaviour and controls built for static applications. The risk is not limited to prompt injection or one malformed input. It also includes over-permissioned tooling, persistent memory, multi-agent message chains, and MCP connectors that extend the agent’s effective reach into production data and services.

For identity practitioners, the central question is how to govern a system that can choose actions after it has been authorised. That is why AI agent security sits at the intersection of NHI governance, privileged access, and runtime policy enforcement rather than traditional app hardening alone.


Key questions

Q: What breaks when AI agents are not governed at runtime?

A: Without runtime governance, an agent can shift behaviour after provisioning and still execute actions that were never reviewed in context. That is where tool chaining, MCP connections, and rapid decision-making become dangerous. Static approval cannot stop a live change in intent, so teams lose control at the point of action.

Q: Why do over-permissioned AI platform identities increase breach risk?

A: Because they turn a single workload compromise into an identity pivot. When an AI service account can create jobs, access metadata, and reach data stores, attackers can move from execution to credential reuse and exfiltration without needing to break the AI model itself. That is a privilege design failure, not an AI model failure.

Q: What are the signs that prompt injection is influencing an AI coding assistant?

A: Look for unexpected tool calls, unexplained file reads, outbound requests that do not match the developer’s task, or the agent acting on instructions that only appear inside code comments, README files or dependency content. Those signals usually mean the assistant is following untrusted input rather than the operator’s intent.

Q: How should teams respond when AI agents use third-party tools and MCP connections?

A: Teams should treat those connections as access-bearing dependencies, not as ordinary integrations. That means approving them before connection, recording them in a registry, and validating what data they can reach and what actions they can trigger. If the dependency can modify enterprise state, it belongs in the identity governance process.


Technical breakdown

Why runtime autonomy changes the attack surface

An AI agent is not a conventional application because it can break work into steps, select tools, and adapt mid-task based on what it encounters. That means the attack surface is not fixed at deployment. It expands as the agent calls APIs, reads external content, writes to memory, and exchanges messages with other agents. Security controls that only evaluate the initial request miss the later decisions that actually cause risk. In practice, the dangerous moment is often the tool invocation or context update, not the user prompt that started the session.

Practical implication: govern the execution path, not just the initial prompt or login event.

How prompt injection and memory poisoning persist across sessions

Prompt injection works when malicious instructions enter the agent’s context and influence how it plans or acts. Direct injection comes from user input. Indirect injection arrives through documents, webpages, emails, database records, or other external content the agent reads during the task. Memory poisoning is different but related: false or malicious content is written into persistent memory so it affects later sessions. Both patterns exploit the fact that agents treat retrieved context as operational input, which makes content ingestion part of the trust boundary.

Practical implication: treat retrieved content and persistent memory as governed inputs, not passive storage.

Why over-permissioned tools and MCP connectors create privilege escalation paths

Privilege escalation in agentic systems often happens without a single obviously malicious call. An attacker can steer the agent through a sequence of individually allowed actions that combine into an outcome the policy never intended. Over-permissioned tools widen that path, while MCP connectors and other integrations add more services, data sources, and execution options. The result is tool chain abuse: a legitimate sequence that produces an unauthorized outcome. In multi-agent designs, this can also become cross-agent contamination when one compromised agent relays malicious instructions to another.


Threat narrative

Attacker objective: The attacker wants the agent to perform unauthorized actions with legitimate system access so the resulting impact looks like normal agent behaviour rather than a direct exploit.

  1. Entry begins when malicious instructions arrive through direct prompt injection or through external content the agent reads during task execution.
  2. Credential or privilege misuse follows when the agent is steered into calling tools, APIs, or connectors outside the intended task scope.
  3. Escalation occurs through tool chaining, persistent memory influence, or cross-agent contamination that changes later actions without a fresh human review.
  4. Impact lands in unauthorized data access, unsafe code execution, or destructive actions in connected production 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

Runtime control gaps, not model sophistication, are the core security problem: This article shows that the decisive risk is not whether an agent sounds intelligent, but whether it can choose tools and act after initial authorisation. Controls built for static request-response systems fail once the security boundary moves into the middle of a session. Practitioners should treat runtime as the primary governance surface.

Access review processes assume privilege persists long enough to be reviewed: That assumption fails when an agent can acquire, use, and discard capability inside a single task sequence. The implication is not just that controls need more automation. It is that governance models built around periodic review do not describe the real risk window for agentic execution.

Tool chain abuse is a distinct governance pattern, not just an exploit technique: The article shows that a sequence of individually permitted actions can produce an outcome no single permission would allow. That means least privilege must be assessed across chains of behaviour, not only per tool. For identity teams, the practical lesson is that capability composition is now part of the trust model.

Identity blast radius: Agentic systems expand the impact of a single compromise because tools, memory, external data, and multi-agent messaging all become part of the execution path. That is why zero trust for AI agents is fundamentally a runtime authorization problem. Practitioners should frame agent risk as blast-radius control, not just input filtering.

MCP security is becoming an identity issue as much as an integration issue: Once connectors allow an agent to reach external services and data sources, connector governance becomes part of the access model. The field needs to treat connector inventory, permission scope, and runtime policy as one control plane. The practical conclusion is that integration sprawl is now identity sprawl in a new form.

From our research library:

What this signals

Runtime authorization is the new control plane: Agentic systems change the point of control from input validation to in-session decision governance. If an agent can choose tools, retrieve external data, and act without human approval, then access management has to follow the action path rather than the user prompt.

Identity blast radius becomes the right mental model for AI agents: One compromised agent can touch email, code, databases, and other agents in the same workflow, which makes containment more important than static trust assumptions. The governance question is no longer whether the agent is allowed to act, but how far its action can propagate before detection or containment.

AI adoption is moving faster than the controls around it: 53% of security leaders expect AI to run major portions of their infrastructure autonomously within the next three years, according to the 2026 Infrastructure Identity Survey. That makes runtime monitoring, connector governance, and agent-specific access policy a near-term programme requirement, not a future planning exercise.


For practitioners

  • Define runtime authorization boundaries Separate what an agent may request from what it may execute during the same session, and require explicit approval for any tool path that can reach production data or destructive actions.
  • Inventory external connectors and tools Map every API, MCP connector, webhook, database, and code execution path the agent can reach, then remove anything not needed for the current task scope.
  • Protect persistent memory stores Review long-term memory, vector stores, and retrieval sources for write access, poisoning risk, and unaudited context reuse across sessions.
  • Test chained tool abuse paths Red-team multi-step sequences where each individual action is allowed but the combined outcome crosses privilege or data boundaries.
  • Set continuous runtime monitoring Alert on unusual tool sequences, unexpected connector use, and context drift so containment can occur while the session is still active.

Key takeaways

  • AI agents create a governance problem because they can choose tools and act during execution, which leaves static app controls looking at the wrong moment.
  • Prompt injection, memory poisoning, and tool chain abuse show that the attack path often unfolds across multiple steps rather than one obvious malicious input.
  • Runtime authorization, connector scoping, and continuous monitoring are the controls that matter when agent behaviour changes after the initial request.

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 AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST AI RMFGOVERN — AI Governance and AccountabilityThe article centres on governing AI behaviour and accountability at runtime.
Recommendation — Establish AI governance roles that define who approves, monitors, and can halt agent actions.
OWASP Agentic AI Top 10ASI02 — Tool MisuseTool misuse and chained actions are primary risks in the article.
ASI03 — Identity & Privilege AbusePrivilege escalation through over-permissioned agents is a core theme.
Recommendation — Constrain agent tool use so allowed calls cannot combine into unauthorized outcomes. Reduce agent privileges to the minimum task scope and deny escalation by default.
OWASP Non-Human Identity Top 10NHI-05 — Overprivileged NHIThe article explicitly calls out over-permissioned agents as a frequent misconfiguration.
NHI-08 — Environment IsolationProduction access, code execution, and external services need stricter separation for agents.
Recommendation — Audit agent entitlements and remove any access not required for the current task. Isolate agent execution from sensitive environments and block direct production reach.
MITRE ATT&CKTA0006;TA0008 — Credential Access; Lateral MovementThe attack paths include credential theft and movement through connected systems.
Recommendation — Map agent compromise paths to credential access and lateral movement detections.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe article is fundamentally about controlling agent permissions and authorizations.
Recommendation — Apply PR.AA-05 to review, limit, and monitor agent permissions continuously.

Key terms

  • Agentic AI: Autonomous AI systems capable of planning, deciding, and taking actions, including calling APIs, writing code, and orchestrating other agents, with minimal human oversight. Agentic AI introduces new NHI risks as agents must authenticate to external services.
  • 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.
  • Prompt Injection (Agentic): An attack where malicious instructions are embedded in content that an AI agent reads, causing the agent to execute unintended actions using its own legitimate credentials. A primary vector for agent goal hijacking and identity abuse.
  • Tool Chain Abuse: Tool chain abuse happens when individually allowed tool calls are combined into an unauthorised outcome. Each call may look valid in isolation, but the sequence produces privilege escalation, data exposure, or destructive action that no single approval was meant to allow.

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 responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 2, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org