Tool Poisoning and the Confused Deputy Are One Problem

If you are the security or platform lead who signs off on what an agent can touch, you keep hearing about two attacks: tool poisoning and the confused deputy. They are one problem. In both, the agent spends authority it legitimately holds on instructions from someone who holds none. So the control that matters is the scope and ownership of the agent’s credentials, not how well the agent spots malicious text. Here is why, and what I would put in place first.

Two names, one failure

The Cloud Security Alliance’s March 23, 2026 research note traces the confused deputy to Norm Hardy in 1988. In Hardy’s description, a less-privileged caller tricks a privileged program into misusing its authority. His remedy was that the caller who invokes an action should carry the authority for it, rather than the program holding that authority in ambient form. An agent breaks that rule whenever it is deployed with broad credentials. The note says a deployment’s risk scales with the breadth of its credential grants. Because agents process instructions and content through the same mechanism, anyone who can write to an inbox, an issue tracker, a document or a tool output can try to steer that authority.

Tool poisoning is one route for that steering. Invariant Labs described it on April 1, 2025: malicious instructions embedded in MCP tool descriptions, visible to the model but not normally shown to users. Their example is an add tool whose description tells the model to read ~/.cursor/mcp.json and ~/.ssh/id_rsa and pass the contents in a hidden parameter. They also described two variants:

Simon Willison’s write-up from April 9, 2025 connected the two ideas directly. LLMs trust anything that sends them convincing tokens, and that makes them extremely vulnerable to confused deputy attacks.

The CSA note’s central case shows the whole chain. In the February 2026 compromise of the Cline AI coding assistant, a crafted GitHub issue title triggered an authenticated Claude coding session to install an attacker-controlled package. That package then went out as an official update to approximately 4,000 developer machines. Some component of the development workflow authorized each step. The failure was that the authority served the attacker’s goal instead of the user’s.

Why filtering is not the control

OWASP’s LLM01:2025 entry on prompt injection says plainly that, given how models work, it is unclear whether fool-proof prevention exists. Willison, writing about MCP, said we still don’t have convincing mitigations. Detection, system-prompt instructions and input filters are worth having. But a safety case that rests on the model recognizing an attack depends on a defense that the people who study the problem won’t vouch for.

So assume the agent will sometimes be confused, and decide in advance what a confused agent can reach.

What I would do

When this matters less

Some agents give the confused deputy little to spend. That is the case when an agent reads only data you control, uses only tools you wrote, and has no way to send anything outward. Check every connector before you put an agent in this category. A connector that adds an input others can write to, or authority the agent lacked, takes it out.

Before your next agent goes live, write down every credential it holds and whose authority each one represents. If you can’t name the person whose authority a given call spends, close that gap first. A better filter won’t close it for you.