Est.

Minimal Security Controls That Preserve Agent Effectiveness

AI agents have four separate attack surfaces that each need their own security controls.

· 11 min read · Updated
Cover illustration for “Minimal Security Controls That Preserve Agent Effectiveness”
Runtime Controls · September 23, 2026 · 11 min read · 2,434 words

An AI agent does not have one attack surface. It has at least four: the input it reads, the memory it keeps across sessions, the tools it executes, and the coordination channels it uses to talk to other agents, and each of these can be exploited on its own, without touching the others. That has a direct consequence for anyone building or buying a security control: a defense placed at one of these layers cannot be assumed to cover any other. If a system sanitizes incoming prompts, that offers no protection against a poisoned memory record from three sessions ago, and a tool-permission policy does nothing to stop one agent from manipulating a peer agent it trusts.

The root cause sits in how large language models process information. They cannot cleanly separate an instruction from a piece of data, so anything the agent reads, a retrieved document, the output of a tool call, a message from another agent, is a potential instruction, whether or not anyone intended it that way. That is an architectural property of the model, not a bug introduced by careless prompt design, and no amount of prompt hygiene closes it. A systematization of knowledge on agentic attack surfaces makes the point precisely: agentic systems expose a qualitatively different kind of risk because of autonomous decision-making, persistent state, and direct contact with external tools, and that risk comes from how the system is put together, not from any single manipulated prompt.

Most teams miss a related distinction, between attacks on the agent and attacks through the agent. An attack on the agent tries to compromise its behavior directly. An attack through the agent uses the agent's own legitimate access as a pivot to reach a downstream database or some other piece of infrastructure the agent was trusted to touch. These are not the same problem, and they do not share a fix. A 2026 threat model built around this distinction treats every tool call, every memory retrieval, and every inter-agent message as its own independent attack surface, instead of folding all of them into one extended idea of prompt injection. Microsoft's AI Red Team has traced most agent failures to three root causes: excessive functionality, excessive permissions, and excessive autonomy, each one architectural rather than a matter of sloppy prompt construction. That finding is cited directly as evidence that the architecture itself is the place to intervene. The sections that follow take each of the four layers in turn and ask what the smallest effective control looks like at that specific layer, without disturbing the other three.

Input-layer attacks and a minimal control at that layer

Input-layer compromise is not one trick but a family of attacks that all exploit the same structural weakness: untrusted content sitting in the model's context window, indistinguishable from a legitimate instruction. The dominant form is indirect injection, where the malicious payload never comes from the user. It arrives inside a web page, an email, a retrieved document, or the output of some other tool, and it enters the agent's context without the user ever knowing it happened. The systematization of agentic threats documents end-to-end compromises carried out this way, with instructions hidden inside retrieved content, as one of the leading emerging categories of risk. This is not a laboratory curiosity. In December 2025, Palo Alto's Unit 42 confirmed a first: a real-world case where a malicious indirect prompt injection was built to bypass an AI-based product ad review system. The risk has moved from proof of concept to production incident.

The clearest illustration of what this looks like at scale is the EchoLeak case, tracked as CVE-2025-32711 with a CVSS score of 9.3. Microsoft 365 Copilot pulled a malicious email into its working context during a routine task, and the model was steered into violating its own trust boundary, what researchers call an LLM Scope Violation, so it exfiltrated sensitive internal data to a server the attacker controlled. No user had to click anything or approve anything. The attack required zero user interaction. Analysts point to EchoLeak as the case that breaks a purely component-level security review: every individual piece of the Copilot system could pass inspection on its own terms, and the full attack path still worked. The weakness was not in any one part. It was in how the parts connected.

Teams who respond to this by trying to filter malicious content out of inputs are fighting a battle the attackers are currently winning. ToolHijacker, a 2026 paper by Wang et al., achieved a 96.7 percent attack success rate against GPT-4o on the MetaTool benchmark, and it did so while bypassing both prevention defenses built for exactly this threat, StruQ and SecAlign, and largely slipping past detection defenses as well. Both DataSentinel and perplexity-based filtering catch some of the malicious tool documents generated by ToolHijacker's gradient-based method, but they miss most of them. When attackers adapt, they get past nearly every published defense built on content inspection.

The minimal control that actually holds at this layer does not try to read content and judge whether it is dangerous. It tags where content came from and carries that trust level forward, keeping the channel that delivers instructions structurally separate from the channel that delivers data. The systematization of agentic threats lists input sanitization and retrieval filtering as the relevant controls here too, with an honest qualification attached: these controls lower the probability of a successful attack, they do not eliminate the class of attack. That qualification matters, because it sets the expectation correctly. Provenance tagging at the input layer bounds the risk but does not promise to extinguish it, and it does nothing to the agent's memory policy or its tool permissions, which need their own controls.

Memory as a distinct attack layer and its bounded control

Input-layer attacks are transient by nature. A poisoned document gets read, processed, and in most designs discarded once the session ends. Memory attacks are different because they persist. A successful injection written into an agent's memory can keep shaping its behavior across sessions long after the original malicious document has vanished from context, and no input-layer filter, however well built, can reach back and undo that. Memory is a genuinely separate layer because it persists across time instead of existing only within a single request.

Researchers have also shown prompt injection that spreads on its own across networks of interconnected agents that share a common memory store, and this worm-like propagation pattern is something the access controls built for ordinary shared memory systems were never designed to catch. MITRE's ATLAS framework added AI Agent Context Poisoning as a dedicated technique under the identifier AML.T0080. That addition matters as a signal: the community of people who track adversary techniques for a living now treats memory poisoning as its own stage in the attack lifecycle, not a flavor of input injection that happens to use a different storage mechanism.

The minimal control at this layer is provenance-aware memory access. Agents can still read memory freely, but writes to memory are controlled, and each item retrieved from memory carries the trust level of wherever it first came from. A high-privilege tool call cannot be triggered by a memory record whose provenance marks it as low-trust, even if that record has been sitting in memory for weeks and looks, on its face, like any other stored fact. This is the narrowest control that closes the persistence gap: it does not require rewriting how the agent reasons, and it does not block any read workflow a legitimate user has already approved. The systematization of agentic threats identifies provenance-aware state management as a necessary property of any secure agentic system, treated as separate from input-layer sanitization rather than a restatement of it.

Putting this into practice means instrumenting two specific layers of the Cloud Security Alliance's MAESTRO framework: Layer 2, which covers data operations such as vector stores, retrieval-augmented generation, and agent memory, and Layer 5, which covers evaluation and observability. Together these layers define what has to be logged and checked: memory writes, the provenance attached to each retrieval, and audits at the boundary of every session. Augment Code's MAESTRO table lists memory poisoning through log tampering and through poisoned embeddings as the representative threats sitting at this layer. Neither of those threats has anything to do with the wording of an incoming prompt; both live entirely in how memory is written, stored, and retrieved, so a memory-specific control is the only thing that reaches them.

The tool-execution layer and argument-level provenance as the minimal control

At the tool-execution layer, a compromised agent moves from a contained information problem to one that produces real-world damage. An injection that reaches context or memory is dangerous in the abstract; an injection that triggers a privileged tool call can exfiltrate a customer database, create an account with standing access, or run arbitrary code on infrastructure the agent was trusted to reach. The specifics of that campaign are not the point here so much as what it demonstrates structurally: once an agent has tool access, the attacker's job is to get the agent to use that access on their behalf, and the agent's own legitimate permissions do the rest of the work.

Overprivilege is what turns an ordinary injection into a serious breach. Agents are routinely handed far more access than their actual workflows need, so even an unsophisticated attack can produce damage out of proportion to its technical difficulty. IBM's Cost of a Data Breach Report found that the large majority of organizations that suffered an AI-related security breach lacked proper AI access controls going in. That makes overprivilege the most common vulnerability in production agent deployments, not the most exotic one, a point echoed by TIAMAT's analysis of tool abuse and overprivileged access as the leading failure mode seen in actual deployments.

Most existing defenses mediate trust at the level of the entire tool call: either the invocation is allowed, or it is blocked. That is a brittle choice, because it cannot handle the ordinary case where a single tool call carries several arguments, some of which are safe and some of which are not. Blocking the whole call breaks a workflow that should have been allowed to run; allowing the whole call lets an unsafe argument through along with the safe ones.

PACT, a 2026 paper by Fan et al., resolves this by moving enforcement down to the level of individual arguments rather than entire invocations. It assigns a semantic role to each argument inside a tool call, carries provenance information for that argument across however many planning and replanning steps the agent goes through, and checks, before the call executes, that each argument's origin satisfies the trust contract attached to its role. The reframing is significant: PACT treats agent security as a question of binding authority to a specific action, rather than filtering invocations wholesale.

PACE takes this from design principle to runtime enforcement. It proposes the call and freezes its arguments in place. It extends a provenance graph that tracks the episode's history. It expands the schema-defined effects that the call is permitted to have. And it pushes the actual enforcement decision to the last point at which it can still be made, the final enforceable boundary before the tool runs, where a concrete proposal, an authenticated source of authority, a complete runtime provenance record, and a working enforcement hook are all available together. That four-phase structure is deliberate rather than incidental: it places the check exactly where it can be enforced, not earlier, where it would block planning that turns out to be legitimate, and not later, where the call has already executed and the check arrives too late to matter.

There is a second benefit to pairing this with least-privilege decomposition, breaking a large task into subtasks that each carry only the minimum permission needed to complete it. So the blast radius of any single successful injection shrinks, since a compromised subtask can only reach what its narrow permission set allows. It also tends to improve the agent's actual performance, because each subtask runs with a smaller, more focused context window. Security and capability move in the same direction at this layer rather than trading off against each other.

Coordination attacks between agents and a bounded inter-agent control

Multi-agent systems add a fourth category of risk that input controls, memory controls, and tool-execution controls do not reach on their own. Every time one agent delegates work to another, that delegation is a new trust decision made automatically, usually with no human reviewing it. A sub-agent that has been compromised does not need to break any rule to do damage. It can use its own legitimate, properly granted capabilities to carry out an attacker's intent, and every individual action it takes along the way can look entirely ordinary when reviewed on its own.

One specific version of this is orchestrator hijack, where a compromised low-privilege sub-agent escalates its effective authority to the orchestrator level, or manipulates peer agents into carrying out attacker-controlled instructions on its behalf. Standard tool-call auditing is blind to this pattern, because each individual call made along the way appears properly authorized when checked in isolation. The 2026 threat model that frames coordination risk this way treats orchestrator hijack as its own attack class, one that needs a mitigation separate from anything built to stop tool abuse.

A concrete version of this pattern makes the problem vivid: one agent queries a database, a second agent sends an external email, and a third agent orchestrates the two. Reviewed individually, none of the three agents crosses any policy boundary or does anything anomalous. TIAMAT's multi-agent coordination scenario describes exactly this sequence, Agent A reads and Agent B sends, and detection fails because no single agent in the chain ever crosses a line a policy engine would flag. To catch this, you need audit logging that spans the entire call graph across agents, not logging scoped to any one agent's own actions.

This is the layer where the opening premise closes the loop. Input provenance, memory provenance, and argument-level tool provenance each solve a real and distinct problem, and none of them, individually or combined, accounts for a pattern where every component in a multi-agent chain behaves exactly as designed while the chain as a whole produces an unauthorized outcome. Securing an agentic system means treating input, memory, tool execution, and coordination as four separate engineering problems, each with its own minimal, bounded control, rather than looking for the one horizontal fix that was never going to cover all four.

Diagram: Four Attack Surfaces, Four Independent Controls. Visualizes: Visualize the four distinct attack layers of an AI agent system as a vertical stack or segmented flow: (1) Input — indirect injection via retrieved documents, emails, web pages…

Sources

  1. SoK: The Attack Surface of Agentic AI - Tools and Autonomy
Filed underRuntime Controls

More in Runtime Controls