Join our Newsletter — 33% off our NHI Course
Agentic AI & Autonomous Identity

Confused Deputy

← Back to Glossary
By NHI Mgmt Group Updated November 4, 2026 Domain: Agentic AI & Autonomous Identity

A confused deputy is a privileged system that is tricked into performing an action on behalf of an untrusted requester. In agentic AI, the agent may misread malicious input as legitimate intent and then use its own authority to act, which turns a logic problem into a security incident.

What Makes a Confused Deputy Dangerous

A confused deputy is dangerous because the trusted component is not the attacker, it is the mechanism being exploited. The requester supplies input or context that causes a privileged system to act outside the user’s real intent, which can turn ordinary delegation into unauthorized access, data exposure, or unintended side effects.

In practice, the failure is usually not that the deputy lacks power, but that it cannot reliably bind authority to the right principal, purpose, resource, or action. That is why confused deputy problems appear across cloud roles, proxy services, application permissions, and AI agents that can take action on a user’s behalf.

How the Confused Deputy Pattern Appears in Systems

The pattern emerges whenever a system holds authority that the requester does not have, then makes a decision using attacker-influenced context. In cloud and API designs, that often shows up as token passthrough, weak audience checks, unsafe proxying, or a service accepting a request without verifying that the requested resource and the acting identity belong together.

In agentic AI, the same logic problem appears when an agent interprets hostile input as legitimate intent and then uses its own credentials, tool access, or delegated permissions to carry out the request. The result is not merely a bad answer, but an action executed with more authority than the original user should have received.

This is why confused deputy is closely tied to delegation design. The safer model is to make authority narrow, explicit, and context-bound, rather than letting a privileged intermediary infer permission from untrusted content or from a request that was never meant for that authority boundary.

Why Delegation Boundaries and Audience Binding Matter

Confused deputy issues are most likely when trust relationships are broad, implicit, or reused across many callers. A service that can act for multiple users, tenants, or upstream systems needs clear constraints on whose request it is executing, what resource it may touch, and whether the current context actually authorizes the action.

That is why techniques such as audience validation, resource binding, explicit consent, and narrow delegation tokens matter. They help ensure that the deputy acts only for the intended recipient and only within the intended scope, instead of treating a valid request as proof of valid authority.

For agentic systems, the same principle applies to tool use. If the agent can call external services, modify data, or trigger workflows, then each action needs a clear authority boundary, not just a general expectation that the agent is “helpful.” The security goal is to prevent an untrusted prompt, plugin, or intermediary from redirecting legitimate authority toward an unintended target.

Where the Confused Deputy Pattern Shows Up Operationally

Confused deputy is often easiest to spot in cross-boundary workflows, especially where one component is trusted to carry identity or permissions across accounts, tenants, services, or applications. It can also appear in proxy layers, MCP-style tool gateways, federation flows, and cloud role assumptions where the intermediary is more powerful than the original requester.

Operationally, this means the pattern is not limited to one product family. It can arise anywhere a privileged system is asked to act “on behalf of” someone else and the system cannot prove that the request, the caller, and the target all line up. The security consequence is usually privilege misuse, but the business consequence can be much broader, including unauthorized data access, destructive actions, or broken tenant isolation.

Recognising the pattern early matters because confused deputy problems are often design flaws, not isolated bugs. Once authority is delegated too loosely, fixing the issue usually requires changing the trust model, not just adding a validation check.

Risk and Threat Considerations

Confused deputy creates a direct privilege-abuse risk because an attacker does not need to steal the deputy’s authority, only steer it. That makes the pattern attractive in cloud delegation, API proxying, and agent workflows where the trusted intermediary can access more than the requester can.

Failure mechanism: The deputy accepts attacker-controlled context as a proxy for intent or authorization, then performs an action using its own stronger permissions against an unintended resource or scope.

Impact: The result can be unauthorized access, tenant or account boundary breaks, data exfiltration, destructive actions, or broader compromise when the privileged component becomes a force multiplier for the attacker.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10, OWASP Non-Human Identity Top 10 and OWASP API Security Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseConfused deputy arises when an agent's authority is abused by untrusted input.
Recommendation — Bind each agent action to scoped authority and per-action checks.
OWASP Non-Human Identity Top 10NHI-05 — Overprivileged NHIThe pattern depends on a non-human actor holding more authority than the requester.
Recommendation — Reduce standing privilege and narrow delegated access for non-human actors.
OWASP API Security Top 10API5 — Broken Function Level AuthorizationA deputy executing the wrong function or scope reflects authorization failure at the function layer.
Recommendation — Enforce function-level authorization on every privileged API action.
NIST SP 800-53 Rev 5IA-9 — Service Identification and AuthenticationService-to-service trust must be authenticated when a deputy acts on behalf of another party.
AC-6 — Least PrivilegeConfused deputy becomes dangerous when the intermediary has excess authority.
Recommendation — Authenticate service identities before allowing delegated actions. Limit intermediary permissions to the minimum needed for each delegated task.

Practitioner Guidance

Why practitioners should care: Confused deputy is a design and governance problem, not just a testing issue. If a system can act with more privilege than the requester, the authorization model must explicitly bind the act to the right principal, resource, and purpose.

Practitioner note: Review delegation paths, proxy layers, and agent tool calls for hidden authority amplification. When a service can carry out actions “for” a user, verify that the request cannot be replayed, redirected, or expanded beyond the intended scope.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 4, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org