Jargonautica
Security and Privacy

Confused Deputy

The classic security problem underneath most agent attacks. The agent has legitimate permissions, an attacker cannot use those permissions directly, so the attacker persuades the agent to use them on their behalf. The agent is not compromised; it is doing what it was asked by the wrong party.

Technical view

Arises when authority is ambient rather than tied to the requester’s identity, so any instruction reaching the agent inherits the agent’s privileges. Mitigations include propagating the end user’s identity and entitlements to every downstream call rather than using a shared service account, capability-based rather than ambient authority, per-action confirmation for irreversible operations, and separating the components that read untrusted content from those that hold credentials.


Part of AI Terminology Index, section: Security and Privacy.

How it connects

Confused Deputy links to 8 other terms. The faint lines are links between those terms. See it in the full graph.

Least PrivilegeLeast PrivilegePrompt InjectionPrompt InjectionAgentAgentThreat ModelThreat ModelZero TrustZero TrustTool Use and Function CallingTool Use and Functi…Indirect Prompt InjectionIndirect Prompt Inj…Authentication and AuthorisationAuthentication and …Confused Deputy