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 is a 2026 analysis of AI agent security risks, centered on runtime attack surface expansion, prompt injection, privilege escalation, memory poisoning, and MCP-related exposure.
Why it matters: It matters because IAM, PAM, and NHI programmes now need to govern agents that can select tools, persist context, and trigger actions across systems faster than post-session review can contain.
By the numbers:
- 53% of MCP servers expose credentials through hard-coded values in configuration files.
👉 Read Akto's analysis of AI agent security risks in 2026
Context
AI agent security risk is different from conventional application risk because the actor can decide what to do next, choose tools at runtime, and keep changing its attack surface as a session unfolds. For IAM and NHI programmes, that means the control problem is no longer just authentication or static entitlement management. The primary question is how to govern action, data access, and delegation when the system is behaving like an identity executor rather than a fixed application.
The article frames a familiar security pattern in a new way: prompt injection, memory poisoning, over-permissioned tools, and MCP-connected integrations all become more dangerous when the agent can act without a human gate at each step. That is why zero trust for AI agents, runtime protection, and continuous testing matter here. They address the fact that the access path itself is dynamic, not just the target environment.
Key questions
Q: How should security teams govern AI agents that can choose tools at runtime?
A: Security teams should govern runtime agent choice as an access event, not as a simple application action. That means scoping permissions to the task, limiting token lifetime, logging every tool decision, and blocking the agent from reaching systems outside its approved context. Static roles alone are not enough when the execution path changes on each run.
Q: Why do AI agents complicate zero trust architecture assumptions?
A: AI agents complicate zero trust because they make repeated, autonomous access requests after the initial authentication step. Zero trust assumes continuous verification, but agentic workflows can create many machine-driven decisions that must be authorised, logged, and bounded in real time. Teams need policy that follows each action, not just each login.
Q: What do security teams get wrong about prompt engineering for AI agents?
A: They often assume better wording is enough to create reliable control. In practice, prompt style can help, but it does not create a secure boundary when the agent is still free to reinterpret context. Real governance comes from structure, validation, and constrained action paths.
Q: How can organisations reduce AI agent runtime risk without stopping adoption?
A: By combining continuous red teaming, runtime monitoring, and strict connector governance. The goal is not to eliminate agent use but to ensure the agent cannot freely combine tools, memory, and external data into actions that were never authorised. Runtime control is the practical alternative to blanket restriction.
Technical breakdown
Why AI agent attack surfaces expand at runtime
An AI agent does not present one fixed attack surface. It can add new tool calls, new data sources, and new external interactions as it progresses through a task, which means the exposure set changes during execution. That differs from a conventional application, where inputs and routes are mostly known ahead of time. In agentic systems, the memory layer, orchestration layer, tool layer, and external connectors all create separate paths for misuse. If an attacker can influence any one of them, the agent may carry the influence forward into later actions.
Practical implication: Model the agent as a runtime identity with evolving access, not as a static app, and test the full execution path rather than the initial request only.
How prompt injection and memory poisoning change control design
Prompt injection occurs when malicious instructions alter an agent’s behaviour through direct user input or through external content the agent ingests. Indirect injection is especially difficult because the malicious instructions arrive inside webpages, emails, documents, or database records the agent was meant to process. Memory poisoning is similar in effect but targets persistent memory, so the attacker can influence later sessions without staying present. Both attacks exploit the fact that the agent trusts retrieved context as part of its job, not just the user’s prompt.
Practical implication: Treat retrieved content and persistent memory as untrusted input channels and validate them with the same rigor you apply to external APIs.
Why over-permissioned tools create privilege escalation paths
Privilege escalation in agentic systems often happens without a classic credential theft event. A manipulated agent can be coaxed into combining individually allowed tool calls into an outcome that was never authorised as a sequence. That is tool chain abuse. If the agent also has access to code execution, administrative APIs, or production systems, the blast radius increases sharply because the final action may be fully legitimate from the platform’s perspective while still violating the intended task boundary. In other words, the danger is not only access, but delegated action scope.
Practical implication: Limit each task to the smallest viable tool set and review whether a chain of allowed actions can still produce an unauthorised result.
Threat narrative
Attacker objective: The attacker wants to turn a trusted AI agent into a high-privilege execution path that can expose data, misuse tools, or trigger harmful actions at runtime.
- Entry occurs when malicious instructions arrive through direct prompt injection, indirect prompt injection, or poisoned external content the agent is required to process.
- Escalation follows when the agent uses trusted context, memory, or over-permissioned tools to extend its behaviour beyond the intended task boundary.
- Impact occurs when the agent performs unauthorised API calls, leaks credentials, or executes destructive or sensitive actions across connected systems.
Breaches seen in the wild
- Meta AI Instagram Account Takeover — 20,225 Instagram accounts hijacked via compromised Meta AI support chatbot with overprivileged access.
- Replit AI Tool Database Deletion — Replit vibe coding AI assistant deletes live production database and creates 4,000 fake user records.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Runtime security is now an identity problem, not just an application problem. AI agents do not merely consume access, they decide how to use it inside the session. That shifts the control boundary from login and entitlement issuance to action-time verification, where prompt injection, tool misuse, and context poisoning actually occur. Practitioners should read this as a governance reset for agent identities, not as an incremental hardening task.
Zero trust for AI agents only works if every tool call is treated as an independent trust decision. The article’s real signal is that one approval at task start cannot safely authorise the full execution chain. That is why agentic systems need policy at the point of action, not just policy at onboarding. The implication is that static trust models no longer define least privilege accurately enough for runtime behaviour.
Dynamic attack surface is the named concept that best captures this category. Agent access is not fixed at provisioning time because new tools, new memories, and new external data appear as the task unfolds. That assumption breaks traditional IAM planning, which expects access scope to be known before execution begins. Practitioners should treat runtime scope expansion as the core governance problem, not a side effect.
Memory poisoning creates a persistence layer for manipulation that standard session review misses. If an agent’s future behaviour can be shaped by earlier poisoned context, then post-session investigation alone is too late to preserve trust in subsequent decisions. That is especially relevant where the same agent serves multiple users or workflows. The implication is that identity governance must extend beyond access to include state integrity.
MCP-connected agents collapse the boundary between identity and integration risk. Once an agent can call tools through connectors, the security posture of each connector becomes part of the identity problem. That is why agent governance and connector governance cannot be separated in practice. For practitioners, the field is moving toward unified control of runtime identity, tool authorization, and external data exposure.
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, according to SailPoint.
- That visibility gap aligns with our analysis of AI agent attack surfaces, where runtime scope changes faster than traditional review cycles can react.
What this signals
Dynamic scope is now the planning problem. Governance programmes that assume access can be reviewed after the fact will miss the actual control point, because agent behaviour changes during execution. With 80% of organisations already seeing out-of-scope behaviour in AI agents, the operational question is no longer whether agents need access, but how tightly that access can be constrained at runtime.
For IAM and PAM teams, the next maturity step is to map agent identities, connector identities, and memory stores as a single control surface. That means provisioning, monitoring, and offboarding can no longer be owned by separate teams with different visibility. The practical challenge is to make runtime policy, auditability, and connector review part of the same operating model.
The best indicator of progress is not how many agents are deployed, but how many of them are provably bounded. If an agent can still reach unauthorised data sources, blend tools into unintended sequences, or persist poisoned context, the programme is not governing identity. It is only observing it after the fact.
For practitioners
- Constrain agent tool sets by task Define task-scoped tool allowlists so an agent can only reach the APIs, databases, and external services required for that specific workflow.
- Inspect prompt and memory ingestion paths Review every channel that can influence agent behaviour, including web content, emails, documents, vector stores, and long-term memory.
- Add runtime policy enforcement Apply policy checks at the moment of tool invocation so unauthorised actions can be blocked before execution, not after the session ends.
- Test chained tool abuse scenarios Red team multi-step actions where individually approved calls combine into an unauthorised outcome, especially when code execution or admin APIs are available.
- Track connector exposure continuously Map MCP servers, webhooks, and API integrations to the agent identities that can reach them, then reassess exposure whenever a connector changes.
Key takeaways
- AI agent security is an identity governance problem because the agent decides how to spend its access during the session.
- The strongest risk signals are runtime scope drift, poisoned context, and tool-chain abuse, not just login compromise.
- Teams need task-scoped tool controls, runtime policy enforcement, and continuous testing before agent adoption scales further.
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 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 | Prompt injection and tool misuse are central agentic AI risks in the article. |
| OWASP Non-Human Identity Top 10 | NHI-03 | Over-permissioned agents and credential exposure are non-human identity issues. |
| NIST AI RMF | MANAGE | Runtime AI risk management and monitoring are core themes of the article. |
| NIST Zero Trust (SP 800-207) | The article argues for zero-trust controls around agent actions and connectors. | |
| MITRE ATT&CK | TA0006 , Credential Access; TA0004 , Privilege Escalation; TA0009 , Collection | Prompt injection and tool abuse map to credential and privilege-oriented attack stages. |
Review agent entitlements under OWASP-NHI and remove standing access where task scope is temporary.
Key terms
- 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.
- Memory Poisoning (ASI06): An attack where malicious content is injected into an AI agent's memory or context, causing it to alter its behaviour in subsequent tasks — potentially exfiltrating secrets, escalating privileges, or acting against its intended purpose.
- 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.
- Runtime Protection: Runtime protection is a control model that observes application behavior while software is running and blocks unsafe actions as they occur. In Java estates, it helps distinguish active exploit paths from dormant vulnerable code, which is essential when patching is delayed or impossible.
What's in the full article
Akto's full blog covers the operational detail this post intentionally leaves for the source:
- Step-by-step examples of direct and indirect prompt injection patterns across agent workflows
- Runtime protection and policy enforcement approaches for blocking out-of-scope tool use
- Testing methods for multi-turn exploit chains, fuzzing, and adversarial red teaming
- Practical handling of MCP connectors, external integrations, and memory-layer exposure
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.
Published by the NHIMG editorial team on August 2, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org