Confused Deputy Software-based System Vulnerability
Jump to navigation
Jump to search
A Confused Deputy Software-based System Vulnerability is a software-based system vulnerability in which a privileged program (the deputy) is tricked by a less-privileged caller into misusing its own authorization on the caller's behalf.
- AKA: Confused Deputy Problem, Confused Deputy Vulnerability, Confused Deputy Attack, Ambient Authority Vulnerability.
- Context:
- It can typically arise in computer security when a software-based computing system relies on ambient identity-based access control rather than binding each explicit permission to the specific object and caller intent.
- It can typically occur because the deputy holds dual authority — acting both under its own elevated privileges (such as writing billing logs or invoking tools) and on user-supplied targets or parameters passed during an access control task.
- It can typically produce unauthorized privilege escalation without requiring memory corruption or credential theft, simply by redirecting legitimate deputy actions onto protected resources.
- It can typically appear in web browsers, operating-system services, cloud IAM roles, and modern agentic software systems where an agent harness holds broader credentials than the untrusted content it processes.
- It can typically expose a severe failure mode when an artificial intelligence (AI) agent executes privileged software tool calls steered by untrusted documents through an LLM prompt injection attack.
- It can often be prevented at the software architecture layer by passing unforgeable object capabilities, enforcing explicit per-action caller provenance, and separating deputy authority from caller-supplied names.
- It can often be caught during a verification task or software testing audit using negative software test cases that supply out-of-scope targets to privileged wrappers.
- It can often motivate strict governance system gates and explicit principal authorization checks before any irreversible write or credentialed API call executes.
- It can range from a classic single-host compiler overwriting a protected billing file (Hardy, 1988) to cross-tenant cloud service impersonation or multi-tool AI agent exfiltration across an agent fleet.
- It can range from an accidental parameter-passing software defect inside one software system to an architectural weakness spanning federated microservices and web sessions.
- ...
- Examples:
- Classic compiler billing-file overwrite, in which a compiler privileged to append to a protected billing file accepts a user-supplied output filename pointing to that billing file and overwrites it under its own authority (Hardy, 1988).
- Cross-site request forgery and cloud service impersonation, in which a browser or cloud service acting as a privileged deputy submits authenticated requests triggered by an untrusted third party.
- Agentic tool-use confused deputy exploit, in which an AI agent reading untrusted external text is induced via an LLM prompt injection attack to invoke a credentialed software tool on protected workspace or wiki targets.
- ...
- Counter-Examples:
- Privilege Escalation, which is the broader outcome or exploit class of gaining elevated rights by any mechanism (including kernel bugs or misconfigurations) rather than specifically tricking a legitimately privileged intermediary into misusing its ambient authority.
- LLM Prompt Injection Attack, which is the adversarial input technique that hijacks language-model instruction following, whereas a confused deputy vulnerability is the underlying authority-separation flaw that lets the deputy act on those hijacked instructions.
- Access Control Task, which is the defensive security task of enforcing selective resource restrictions rather than the authority-confusion vulnerability itself.
- See: Software-based System Vulnerability, Privilege Escalation, LLM Prompt Injection Attack, Access Control Task, Access Control, Authorization, Computer Security, Software-based Computing System, Agentic Software System, Agent Harness, Negative Software Test Case, Governance System.
References
2003
- (Miller, Yee & Shapiro, 2003) ⇒ Mark S. Miller, Ka-Ping Yee, and Jonathan Shapiro. (2003). "Capability Myths Demolished." Technical Report SRL2003-02, Systems Research Laboratory, Johns Hopkins University. Retrieved: 2026-12-03.
- Analyzes the confused deputy problem as a structural consequence of ambient authority in access-control-list systems and proves how object-capability design eliminates confused-deputy vulnerabilities by coupling designation with authorization.
1988
- (Hardy, 1988) ⇒ Norm Hardy. (1988). "The Confused Deputy (or why capabilities might have been invented)." ACM SIGOPS Operating Systems Review, 22(4), 36–38. Retrieved: 2026-12-03.
- Introduces the confused deputy problem through the Fortran compiler billing-file incident, showing how a legitimately privileged program can be manipulated into misusing its own authority when caller identity and object authority are decoupled.