Anthropic makes two interesting assertions when it comes to securing AI agents. First, that traditional access controls cannot stop an agent from misusing legitimate permissions, so monitoring the real-time actions of agents is required to prevent attacks from succeeding through sheer persistence once in the door. And secondly, that these agents need a containment ring to enforce access boundaries.
Both are noteworthy because they illustrate that current approaches are ineffective. Prompt injection detection, for example, screens what comes in. It can block the majority of jailbreak attempts or drive down indirect prompt injection success rates. But prompts that traverse models were also shown to win out 100% of the time, revealing that as a control, prompt injection detection merely delays the inevitable. It also assumes the agent is behaving maliciously on behalf of an attacker, whereas it is common for well-intentioned agents to step outside guardrails.
The second commonly used control is identity management. Agent and user identities are treated as one and the same with a scoped token which grants access for a given point in time. But this can last long enough for an agent to fire off thousands of tool calls. So the agent doesn't need to defeat the identity layer, it can simply abuse the access it's granted within that timeframe. That's why we need to look at separating user and agent access privileges as well as monitoring the agent's behaviour.
A ring around AI
Building a ring around the agent (aka containment) is the only viable approach. This sees a distinction made between what the agent is permitted to connect with versus what it is permitted to do. Its actions can then be blocked regardless of intent or identity by using the agent's prompt, skill, and persona to determine scope. Scope controls are vital because they determine precisely what the agent is allowed to do but must be continuously enforced. The debate now is over where that enforcement happens.
Existing controls cannot be used for containment because they're focused on end user interactions. EDR watches endpoints, SASE secures the path from the user device to applications, and DLP inspects data leaving the human user such as email, uploads and downloads. Much of AI agent traffic never crosses the user-to-app pathways these controls sit on, so they're unlikely to spot errant behaviour. For example, I've witnessed an authenticated agent make thousands of clean tool calls, then drift beyond its scope, probing for files it was never given. It was greenlit in terms of its identity and credentials but was not detected because the token remained valid.
Containment should also not be confused with allow listed egress. Egress controls that have an allow list of destinations, for example, can still act as a conduit for attack. Anthropic refers to an instance where an attacker hid instructions and a self-supplied API key in an agent's workspace; the agent then followed those instructions and called a permitted domain using the attacker's key, uploading the data straight to the attacker's account. So, while the destination was on the allow list and the sandbox worked, the data was still exfiltrated.
Controlling scope
Anthropic has, understandably, sought to enforce security at the model layer and limit scope there. It has a tool search capability that lets Claude dynamically discover and load tools rather than stuffing every tool definition into the context window up front. This reduces token overhead and helps the model focus on relevant tools for a given task. However, the model still decides which tools to use based on its own inference. There's no policy enforcement, no admin-defined boundaries, and no audit trail of what was made available versus what was used.
What makes sense is to use the control point at which all agents must cross. Basic AI gateways broker the call to the model and route traffic – and little else. Enterprises need visibility into and enforcement of enterprise identity (authentication and authorisation), control over actions are allowed, guardrails that prevent an agent from drifting away from its job description, and enforcement of egress policy to keep an agent in its lane.
Enterprises want to be able to cost-effectively and securely deploy agents, not just connect them. Taking the emphasis off trying to secure the LLM also allows the business to become model-agnostic, which is important because organisations will want to swap out models without compromising their agentic perimeter.
No panacea
Today, no single solution is able to cover off all the requirements needed to secure AI. It's necessary to extend a zero trust architecture to the actions that AI agents take. Building on the five pillars in CISA's Zero Trust Maturity Model extended for agentic systems in Dr. Chase Cunningham's Agentic Zero Trust research we see this requiring five layers: the model, identity, authorisation, runtime behaviour and egress and data layer. All five can then be governed at a gateway. It's the ideal place to enforce scoped jobs for agents, to monitor behaviour at runtime and assign agent personas that detail permissions down to the individual tool call.
Personas treat agents as separate entities rather than simply assigning them their user's access privileges. This is important when you consider that many agentic workflows are headless, using non-interactive agents that run inside CI/CD pipelines, scheduled automation workflows, batch processing jobs, and background orchestration tasks. Assigning an agent persona to these agents can then allow them to be authenticated, scoped, and become attributable to a specific human, agent, and/or permission boundary.
Rather than focusing on logins and identity, agentic AI security and governance must focus on runtime behaviour. By intercepting, analysing, and tightly controlling what each agent is allowed to do, the resources it can use and in what context, as well as policy enforcement and threat detection at every step, it becomes possible to focus on agent actions. In practice, this means that identity allows the agent access, a scoped persona limits what it may do with that access, and behavioural monitoring and guardrails ensure it does just that.