Confused Deputy Problem
The Confused Deputy Problem is a security flaw in which a trusted program, the 'deputy', uses its own privileges to carry out an action requested by another party that does not have the right to perform that action itself.
What is Confused Deputy Problem?
The deputy is not compromised in the usual sense. It is simply unable to distinguish between authority it holds for its own purposes and authority it should exercise only for particular requesters. In AI systems, this often occurs when an application or agent connects to tools using a single shared credential. Every user of that application, and any instruction that reaches the agent through prompt injection, can then trigger actions with the application's full permissions, regardless of what the individual user is allowed to do.
Why is Confused Deputy Problem Important?
AI agents are natural confused deputies: they act on instructions from users, documents, web pages, and tool outputs, and they often hold broad credentials to many systems. Without per-user authorization at the point where tools are called, an agent may send emails, read records, or change data that the requesting user could never access directly. Addressing the problem requires binding each action to the identity of the user or agent making the request and checking that identity's permissions before the action is executed.
Common use cases
The confused deputy problem is relevant to AI agents, enterprise copilots, MCP servers that authenticate at the application level, multi-tenant AI applications, OAuth integrations, and any system in which an AI component performs actions on behalf of multiple users.