Confused deputy problem
The confused deputy problem is a security flaw in which a program or intermediary is induced to use its legitimate authority on behalf of a principal who lacks permission.
Authorization in Action
The confused deputy problem is a security failure in which an authorized intermediary is induced to use its own authority for another principal without correctly applying that principal's permissions.
- How it is used
- Uses the problem to motivate authorization checks that preserve requester and delegation context across intermediaries.
- How deep it goes
- Defines the failure and works through gateway, escalation, service-mesh, and agent enforcement scenarios.
- Examples
- Uses department salary access, tenant support escalation, document indexing, and AI-agent tool invocation as examples.
- What you can do after
- Evaluate intermediary requests by identifying the initiating authority and constraints that a policy decision must consider.
Read how Authorization in Action explains confused deputy problem →
AI Governance
The confused deputy problem is a security flaw in which a program with legitimate authority is tricked into using that authority on behalf of someone who lacks it.
- How it is used
- Protects enterprise AI assistants from exposing data through service accounts with broader privileges than their users.
- How deep it goes
- Defines the flaw and explains user-context queries, including the need to propagate identity through connected components.
- Examples
- Contrasts a broadly privileged chatbot involved in a data breach with ClaimAssist's customer-scoped queries and excluded records.
- What you can do after
- Configure assistant queries to use the requesting user's identity and exclude unnecessary sensitive data.
Also covered in
- Vibe EngineeringIn early access (MEAP)
Related concepts
- policy enforcement pointaddressed by · A policy enforcement point is a system component or boundary that enforces access-control decisions on requests to allow or prevent operations.
- API gatewayaddressed by · An API gateway is a server-side intermediary that provides an entry point for client requests to backend APIs or services and routes or mediates those requests.
- principle of least privilegeaddressed by · The principle of least privilege is a security principle that grants each user, process, or other subject only the permissions necessary for its authorized tasks.
Questions about confused deputy problem
What is confused deputy problem?
The confused deputy problem is a security flaw in which a program or intermediary is induced to use its legitimate authority on behalf of a principal who lacks permission.
Which Manning books explain confused deputy problem?
Authorization in Action and AI Governance.
What kinds of confused deputy problem are there?
Kinds of confused deputy problem include AI CLI tool.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

