Skip to content

CONCEPT Cited by 1 source

Confused deputy problem

The confused deputy problem occurs when a trusted intermediary (the "deputy") is tricked into misusing its legitimate authority on behalf of an attacker who lacks that authority directly. The deputy acts within its permissions but performs an action it was never asked to perform by its legitimate principal.

Classic formulation

Originally described in capability-based security: a compiler service with write access to billing records was tricked by a user (who lacked billing access) into overwriting billing data, because the compiler ran with its own elevated privileges regardless of the requester's intent.

In AI agent systems

AI agents are a modern instantiation of the confused deputy. An agent running on valid credentials can perform any action its identity allows. When an attacker plants instructions in data the agent processes (indirect prompt injection), the agent may execute those instructions using its legitimate permissions — it becomes a confused deputy executing attacker-directed actions under its own authority.

The two gaps that compose into this attack:

  1. Prompt injection — the agent can't reliably distinguish instructions from data.
  2. Purpose-blind authorization — identity-based access control sees who is acting but not why, so it doesn't object when the agent performs an authorized action for the wrong reason.

Mitigation

Seen in

Last updated · 593 distilled / 1,805 read