TL;DR: AI agents that query databases, call APIs, write code, and make decisions without human approval expand the attack surface beyond what traditional firewalls, SAST, and WAFs were built to evaluate, according to Akto. Runtime protection, continuous monitoring, and zero-trust guardrails are now the practical baseline for governing agentic behaviour, not optional add-ons.
At a glance
What this is: This is an analysis of why AI agent security solutions need runtime protection, because agentic workflows create dynamic risks that static controls do not reliably catch.
Why it matters: It matters to IAM and security teams because AI agents act like privileged non-human identities, so governance now has to cover identity, access, tool use, and execution in one control model.
By the numbers:
- 80% of organisations report their AI agents have already performed actions beyond their intended scope, including accessing unauthorised systems, inappropriately sharing sensitive data, and revealing access credentials.
- 96% of technology professionals identify AI agents as a growing security threat, and 66% believe this risk is immediate.
- 92% agree governing AI agents is critical to enterprise security, yet only 44% have implemented any policies to do so.
👉 Read Akto's analysis of AI agent runtime protection and threat detection
Context
AI agent security is now a governance problem, not just a detection problem. Agents that can plan, call tools, and complete tasks across systems create access paths that traditional application controls were never designed to model. That matters because the first failure is often not malware, but excessive trust in an identity that can act independently.
In identity terms, these agents behave like non-human identities with runtime decision-making. That means the security boundary is no longer limited to credentials and permissions at provisioning time. It extends into session-level authorisation, tool invocation, connector trust, and how much the platform can verify before an agent completes an action.
Key questions
Q: What breaks when AI agents are given broad standing access?
A: Broad standing access breaks governance because the agent can move from one task to another without a fresh authorization check. That creates a control gap between intended scope and actual runtime behaviour. The result is weak accountability, limited containment, and audit trails that show activity without explaining why the activity was allowed.
Q: Why do AI agents complicate privilege governance?
A: AI agents complicate privilege governance because they can request access, use tools, and execute actions faster than human review cycles. That creates a larger attack surface for over-permissioning and misuse. Teams need continuous monitoring and strict task scoping so an agent cannot retain access beyond the approved workflow.
Q: How do security teams know whether agent guardrails are working?
A: They know guardrails are working when denied tool calls are visible in logs, high-risk paths are blocked consistently, and the agent cannot override policy from inside its own session. Observe mode is useful first because it shows what the agent actually tries to do before the team decides where to deny access. The signal is repeatable enforcement, not model compliance.
Q: What should teams do when an AI agent is suspected of prompt injection?
A: Contain the session, revoke the agent’s active credentials, and inspect the full chain of tool calls, retrieved content, and downstream writes before resuming service. The priority is to stop the agent from completing additional actions and to determine whether the malicious instruction has already propagated into memory or connected systems.
Technical breakdown
Why static controls miss agentic AI runtime risk
Static controls assume a fairly deterministic application path. AI agents break that assumption because they can choose actions, sequence tools, and alter behaviour based on live context. A firewall or WAF can still inspect traffic, but it cannot reliably judge whether a database query, API call, or code execution step is legitimate for the task the agent is currently pursuing. That is why runtime enforcement matters: the control must evaluate each step against current intent, privilege, and behavioural history, not just the original deployment policy.
Practical implication: treat agentic AI as a runtime governance problem and place policy checks where the agent actually acts.
How prompt injection becomes tool misuse
Prompt injection is dangerous because it turns untrusted content into instructions. In agentic systems, that can redirect the model, alter the task objective, or push the agent to call tools it was not meant to use. The risk compounds when the agent has broad connector access, because a single malicious instruction can become a database lookup, a file read, a ticket update, or a code action. The issue is not just the prompt itself. It is the chain from prompt to tool call to downstream effect.
Practical implication: validate inputs and inspect tool calls as separate control points, not as one combined security problem.
MCP discovery and overprivileged agents widen the blast radius
Model Context Protocol enables dynamic tool and service discovery at runtime, which is useful operationally but risky from a governance perspective. If an agent can discover connectors and use them without strict policy checks, the effective access surface can expand beyond what the security team intended. Overprivileged agents make this worse because a single compromised session can inherit broad API, data, and execution rights. The core failure mode is permission scope that was designed for convenience instead of containment.
Practical implication: inventory MCP connections, constrain tool scope per session, and remove standing access wherever the task does not require it.
Threat narrative
Attacker objective: The attacker wants to turn a trusted AI agent into an execution path for unauthorised access, data exposure, or destructive actions.
- Entry occurs when an attacker slips malicious instructions into a prompt, retrieved document, or connected content source that the agent trusts during a task.
- Escalation follows when the agent converts that instruction into tool use, data access, or code execution under permissions that were granted too broadly.
- Impact occurs when the agent completes an unauthorised action, leaks sensitive data, or propagates the compromise across connected systems and downstream workflows.
NHI Mgmt Group analysis
Runtime protection is now the defining control for agentic AI. Agent behaviour cannot be governed solely at build time because agents make decisions after deployment and can change those decisions with new inputs. That makes runtime policy enforcement, behavioural monitoring, and step-level authorisation the relevant control pattern. For identity teams, the key insight is that agentic systems behave like privileged non-human identities that must be governed continuously, not registered once and trusted forever.
Prompt injection is only the entry point, not the whole risk. The more important governance question is whether the agent has the authority to turn manipulated text into real-world action. When tool access, memory, and orchestration trust are loosely controlled, a single malicious instruction can cross from content to execution. Practitioners should read this as a failure of control separation between instruction handling and privileged action, not just a model weakness.
Model Context Protocol expands utility and governance pressure at the same time. Dynamic connector discovery gives agents flexibility, but it also creates a moving target for access review and third-party risk management. Without tight session scoping and connector allowlisting, the organisation loses visibility into what the agent can reach at any given moment. This is where NHI governance, access policy, and AI oversight now converge.
AI governance debt is accumulating faster than most programmes can absorb. Organisations are deploying agents into production faster than they are defining ownership, auditability, and enforcement boundaries. That leaves security, legal, and compliance teams working from different visibility levels, which weakens accountability when something goes wrong. The practical conclusion is that governance must be built into the operating model before agent sprawl becomes unmanageable.
Blast-radius control is the new maturity test for agent security. The best indicator of programme quality is not whether an organisation uses agents, but whether it can confine failure when an agent is manipulated. That means session-scoped access, tool-level authorisation, and rapid shutdown paths must all be measurable. Teams that cannot limit blast radius do not yet have agent governance, only agent adoption.
What this signals
Agent governance will increasingly be measured by containment, not deployment count. If a programme cannot prove that a manipulated agent can be paused, scoped down, or cut off before a damaging tool call completes, it does not yet have operational control. The most useful next step is to align runtime enforcement with NIST AI Risk Management Framework governance expectations and the agent control patterns in OWASP Agentic AI Top 10.
Shadow AI will increasingly look like shadow privilege. Unapproved agents do not just create policy drift, they create unknown identities with unknown access paths. That makes discovery, connector inventory, and ownership assignment the first operational questions for security teams. Organisations that already manage The 52 NHI breaches Report will recognise the same governance pattern: unmanaged identities become unmanaged actions.
Session-scoped authorisation is becoming the practical boundary for AI systems. The security model now has to follow the task, not the asset. That means access review, logging, and emergency shutdown need to be tied to individual agent sessions and connector reach, not just to the underlying account or service principal.
For practitioners
- Map every agent to a named business owner Create an inventory of production agents, their task scope, their tool connections, and the business owner responsible for each one. Include MCP connectors, API dependencies, and any agent that can write, send, or approve actions.
- Separate prompt handling from privileged action Insert policy checks between untrusted input and tool execution so the model cannot directly turn retrieved content into database reads, outbound messages, or code execution without approval criteria.
- Reduce standing access for agent sessions Scope permissions to the shortest possible task window and remove broad service credentials from default agent configurations. Use session-level authorisation so the agent can only reach the systems required for the current objective.
- Log tool calls at the action layer Record every agent tool invocation, connector use, and privilege escalation attempt so investigators can reconstruct what the agent did, not just what it was asked to do.
- Red-team the full instruction-to-action chain Test prompt injection, goal hijacking, and multi-step manipulation across the complete workflow, including the tools and downstream systems the agent can touch. Validate that containment still works after the first successful instruction swap.
Key takeaways
- AI agents create identity-like risk because they can act, decide, and call tools without waiting for human approval.
- The real control gap is runtime containment, since static security tools cannot reliably judge whether an agent’s action is legitimate in context.
- Programmes that want durable agent security must combine session-level access, tool-level policy, and auditable enforcement before adoption outpaces governance.
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, NIST CSF 2.0, NIST Zero Trust (SP 800-207) and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | The article focuses on prompt injection, tool misuse, and agentic runtime controls. | |
| NIST AI RMF | GOVERN | Agent oversight, ownership, and policy accountability are core governance issues here. |
| NIST CSF 2.0 | PR.AC-4 | Least privilege and access control are central to limiting agent blast radius. |
| NIST Zero Trust (SP 800-207) | Zero trust principles align with session-scoped authorisation and continuous verification. | |
| NIST SP 800-53 Rev 5 | AC-6 | Least privilege directly addresses overprivileged agents and excessive tool access. |
Assign accountable owners for agents and define approval and escalation rules before production deployment.
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.
- 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.
- 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.
- Model Context Protocol: Model Context Protocol is an open protocol that lets AI agents connect to tools and data sources. It expands what an agent can reach, so governance has to cover not only the model and its prompts, but also every system that can receive or return agent-driven data.
What's in the full article
Akto's full blog covers the operational detail this post intentionally leaves for the source:
- Runtime protection patterns for agent prompts, tool calls, and behavioural monitoring across multi-step workflows
- A practical breakdown of prompt injection, goal hijacking, memory poisoning, and connector abuse in production agent environments
- How the platform frames agent inventory, posture checks, and continuous red teaming for operational use
- Examples of policy enforcement and logging for agent actions that security teams can adapt to their own environments
Deepen your knowledge
The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, workload identity, and secrets management for practitioners building control models around machine identities. It helps security teams translate identity governance principles into operational decisions across modern programmes.
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