Authorization for AI agents

Hand-drawn winding ribbon of sand and moss hatching held at seven points by short terracotta bars, above a long straight terracotta rail, over dense flowing sand, umber, linen and moss pen strokes.

Authorization for AI agents decides which actions a language-model agent may take with a service. The agent may act under its own authority or under authority that a person or another system delegated to it. In controlled tests, checking each action outside the model sharply cut the effects of attacks, at a cost to legitimate tasks that varied from almost none to large (Debenedetti et al., 2025; Kabbinamakki Suresh & Gao, 2026; Hagverdiyev, 2026). The standards are young. The Model Context Protocol has published four versions of its authorization rules since March 2025, and several proposals for delegation between agents are individual drafts (Model Context Protocol, 2025b; Model Context Protocol, 2025c; Model Context Protocol, 2025a; Model Context Protocol, 2026a; Aimable, 2026; Asor, 2026).

The main disputes are whether agents need a new protocol or an extension of OAuth, and how a chain of agents handing work to each other should be recorded. A third question is practical rather than contested: people asked to approve each action often approve actions that exceed the task.

Who an agent acts for

An agent’s identity and its permission to act are separate questions. The working-group draft that profiles existing standards for agents distinguishes the agent’s identifier from the systems that decide whether it may use a tool or model. It recognises agents acting on behalf of a user, on behalf of a system, or on their own behalf (Kasselman et al., 2026). General ways of deciding who may do what are covered in Authorization models.

Delegation keeps both parties visible, which impersonation does not. The OAuth token-exchange standard distinguishes delegation, where a distinct actor represents the subject, from impersonation (Jones et al., 2020b). OAuth is the common protocol by which a person lets an application use a service for them through an access token; its mechanics are covered in OAuth and delegated authorization.

Cloud vendors implement this two-party model. In Microsoft Entra’s on-behalf-of flow, the token represents the signed-in user and also identifies the calling agent (Microsoft, n.d.b). Google Cloud’s delegated identity applies both the user’s consented permissions and the agent’s own outbound rules, and its logs record both identities (Google Cloud, n.d.a).

The vocabulary is not settled. A position paper calls the goal authenticated delegation: credentials specific to the agent, plus a transparent translation of permissions written in natural language into scoping rules (South et al., 2025). Industry writers speak of “non-human identity” or “machine identity and access management” for agents, devices and workloads alike. One vendor uses “agentic access management” for a pattern that combines originating identity, delegation, per-request policy, enforcement and audit (Farahmand, 2026; Pomerium, n.d.).

Prompt injection as an authorization failure

Prompt injection, where an agent obeys instructions hidden in text it reads, becomes an authorization failure when the agent then uses its own permissions for someone else’s purpose. Language-model applications blur the line between data and instructions (Greshake et al., 2023). One paper argues that the same action can be legitimate or a violation depending on whose instruction led to it and whether it serves the authorized objective (Siu et al., 2026). The classic name for this is the confused deputy: a privileged program tricked by a less privileged caller into misusing its own authority (Cloud Security Alliance AI Safety Initiative, 2026).

Demonstrations show that an attack path exists; incident reports show that one was used. Early demonstrations of indirect injection covered both deployed and synthetic applications (Greshake et al., 2023). EchoLeak, a flaw in Microsoft 365 Copilot that could leak data without any action by the victim, was found privately and patched before disclosure (Reddy & Gujral, 2025).

Cline’s postmortem records an actual unauthorized release. An unauthorized party published a version of the Cline command-line tool on 17 February 2026, an incident limited to that package. The same postmortem says the company had introduced a prompt-injection vulnerability in its agent-assisted triage workflow (Rizwan, 2026).

Training the model and checking its actions protect different layers. Instruction-hierarchy training made GPT-3.5 more robust in its authors’ evaluations (Wallace et al., 2024). A later benchmark found that, across the models it evaluated, conflicting instructions reduced performance relative to ordinary instruction-following (Zhang et al., 2025e). Design tenets from the US National Institute of Standards and Technology (NIST) separate the logic that plans an action from the systems that decide whether it is allowed (Booth et al., 2026).

Enforcement outside the model Weak evidence: few or small studies support this

Checking each tool call against a policy the model cannot change reduced attack success sharply in every controlled test. The evidence comes from a few benchmark studies, each run by the defence’s own authors. The broader case for placing authority outside the model is set out in Tools for AI agents. The studies below used different models, policies and measures, so their numbers apply only within each study.

Defence and settingUnauthorized outcomeLegitimate tasks
CaMeL information-flow checks, Gemini 2.5 Pro on AgentDojoSuccessful attacks fell from 300 to zero.Tasks completed with no attack fell from 73.2% to 41.2%.
AgentCap runtime capabilities, GPT-4o on AgentDojoAttack success fell from 45.63% to 5.09%.Tasks completed under attack rose from 73.61% to 74.88%; with no attack, 3.1 points lower.
Progent, model-generated fixed policy on AgentDojoAttack success fell from 39.9% to 2.5%.Maintained, by the authors’ report.
Task-scoped credentials in a paired replay, several modelsHarmful execution fell from 8.9–37.8% with broad credentials to zero with scoped ones.In a six-task extension, 5 of 24 tasks with broad and 6 of 24 with scoped authority.

Sources: (Debenedetti et al., 2025; Kabbinamakki Suresh & Gao, 2026; Shi et al., 2026d; Hagverdiyev, 2026). AgentDojo is a benchmark of agent tasks seeded with injected instructions. Attack success is the share of attacks that achieved their goal.

The cost to legitimate work depends on the defence and the task. CaMeL tracks where each piece of data came from and enforces policies when a tool is called. Its authors name a failure built into the design: tasks whose required actions depend on untrusted data (Debenedetti et al., 2025). In its own tests, AgentCap lowered task completion with no attack by 3.1 points for GPT-4o and 7.2 points for GPT-5.4. Its team wrote each domain’s policy from the tool schemas and task descriptions, then froze it before the runs (Kabbinamakki Suresh & Gao, 2026).

Attack success and task completion do not show how much authority a defence leaves open. One evaluation of five defences found that this open privilege cannot be derived from either number. It reported no attack-success rate of its own, because the tested attack already failed against its undefended agent (Sharma et al., 2026). A system called TACIT compared its own runs with CaMeL’s published figures rather than rerunning CaMeL, and identified a string-matching limit in one AgentDojo result it analysed (Odersky et al., 2026).

Guarantees for one agent do not carry over to agents that call other agents. A follow-up with one shared author found that CaMeL’s individual guarantees do not compose when agents invoke other agents as tools (Peters-Gill et al., 2026). How agents pass work to each other is covered in Coordination between AI agents.

Task scope and attenuation

Least privilege for agents means giving each task only the authority it needs, and letting that authority only shrink as it passes from agent to sub-agent. This narrowing is called attenuation. AgentCap issues short-lived capability tokens with a budget, and lets a child task inherit only equal or smaller budget and lifetime (Kabbinamakki Suresh & Gao, 2026). The proposed Agentic Principal Chain similarly carries delegated scope and budgets forward while restricting them (Muruaga, 2026).

Scoping limits what an attack can do even when the model is fooled. A paired replay holds the model’s decision fixed and varies only the credential it holds. With broad bearer credentials, 8.9% to 37.8% of attacked decisions led to harmful execution, depending on the model; all three scoped conditions recorded zero (Hagverdiyev, 2026). In controlled scenarios, AgentCap rejected all nine attempts to enlarge delegated authority or reuse it across unrelated sessions (Kabbinamakki Suresh & Gao, 2026).

The hard part is deriving the scope from the task. Progent reports keeping task completion by combining a generic allowance for harmless read-only tools with policies a model generates and updates (Shi et al., 2026d). Another study found that removing residual authority in a trace-backed counterfactual reduced utility substantially (Zhu & Wang, 2026). The working-group draft leaves out of scope how a task is translated into authorization requirements, a step one practitioner calls the “mission shaping problem” (Kasselman et al., 2026; McGuinness, 2026b).

Proposals bind authority to intent in different ways. Agentic JWT ties each agent action to a token of verifiable user intent and, optionally, to a workflow step (Goswami, 2025). A mission-bound OAuth draft would record the approved task authority at the authorization server and issue only tokens carrying a subset of it (McGuinness, 2026a).

The Model Context Protocol

The Model Context Protocol (MCP), which connects agents to tools and data, defines authorization at the HTTP transport boundary. In the July 2026 profile, authorization is optional. Implementations that use HTTP should follow it, so a client can call a restricted server on behalf of a resource owner. Servers reached over standard input and output (stdio) should take credentials from the environment instead (Model Context Protocol, 2026a).

The profile has changed with each revision of the specification:

RevisionChange
26 March 2025The example assumed the MCP server also acted as the authorization server, while allowing a separate one.
18 June 2025The MCP server became an OAuth resource server and the client an OAuth client acting for the resource owner. Servers had to publish metadata pointing to their authorization server, and could not pass the client’s token on to upstream services.
25 November 2025Clients were advised to identify themselves by an HTTPS URL pointing to their metadata, and to request only the scopes their operations need.
28 July 2026Dynamic client registration was deprecated and kept only for backward compatibility.

Sources: (Model Context Protocol, 2025b; Model Context Protocol, 2025c; Model Context Protocol, 2025a; Model Context Protocol, 2026a).

Organisations can grant access to many servers at once. The stable Enterprise-Managed Authorization extension of July 2026 lets a client obtain an MCP access token using identity established at the company’s single sign-on. Users then no longer connect and authorize the client to each managed server (Model Context Protocol, 2026b). A related OAuth working-group draft (-06, 31 October 2026) proposes using a trusted single sign-on identity to obtain a token for a third-party API (Parecki et al., 2026a).

Approving a particular tool call is left to each host. The July 2026 Tools specification says there should always be a human able to deny tool invocations, but mandates no interaction model (Model Context Protocol, 2026e). In one source-code study, 32 of 41 popular open-source MCP hosts and SDKs had no approval step by default. Paired with destructive tools, 60.7% of host and tool combinations had no enforced human approval by default (Yao et al., 2026).

MCP servers in public registries

Public measurements show an uneven move to the newer MCP rules. A preprint of May 2026 sampled 7,973 live remote servers and found that 40.55% exposed tools without authentication (Zhou et al., 2026a).

MeasurementResult
August 2026 registry census186 of 263 servers asking for credentials named a metadata URL in their challenge.
October 2026 preregistered sample of 3,000 endpoints726 of 878 servers requiring authorization gave both a standard challenge and valid metadata.
End-of-October 2026 registry census of 9,467 OAuth endpoints34% supported URL-based client metadata; 64% still offered only dynamic registration.
November 2026 editorial catalogue38 of 168 ranked servers verified on the July 2026 specification or later, with the revision checked on 118.

Sources: (MCP Hunter, 2026; Glintbase Research, 2026; protogrid, 2026; Top MCPs Editorial, 2026). The preregistered sample ran from one home connection in Nigeria with back-to-back repeats, so it does not estimate stability over time (Glintbase Research, 2026).

Delegation between agents and the IETF drafts

Agent-to-agent protocols pass the authorization question to another layer. The Agent2Agent (A2A) specification has a task state that lets an agent ask its client to obtain authorization. It does not define the scope, format, validity or revocation of the authorization obtained (A2A Protocol, n.d.).

At the Internet Engineering Task Force (IETF), which publishes internet standards, the documents on agent delegation are at different stages. An Internet-Draft is a working document. A working-group draft has been adopted by one of the IETF’s groups, such as WIMSE (workload identity); an individual draft has not. An RFC is a published specification. The table gives each document’s status in November 2026.

DocumentStatusProposal
OAuth 2.0 Token Exchange (RFC 8693)Published RFC, January 2020Delegation by a distinct actor, as opposed to impersonation.
AI Identity Management System (AIMS)WIMSE working-group draft -01, 2 November 2026Best practices for agent authentication and authorization using workload identity and OAuth.
Attenuating Authorization TokensActive individual draft -02, 26 October 2026A holder derives offline a token with equal or narrower authority, within lifetime and depth limits.
Verifiable Attenuated DelegationActive individual draft -03, 27 October 2026Binds the chain to one accountable principal and names the agent acting at each hop.
Mission-Bound AuthorizationActive individual draft -02, 2 November 2026Tokens carry a subset of an approved mission’s authority.
Agent Authorization use cases and gap analysisActive individual draft -05, 27 October 2026Gaps in authorization context, delegation chains and mass revocation.
On-Behalf-Of User AuthorizationExpired individual draft -02, 26 August 2025Name the delegated agent in the request and authenticate it in the token exchange.
Agent Operation AuthorizationExpired individual draft -02, 16 March 2026A token representing one confirmed agent operation.

Sources: (Jones et al., 2020b; Kasselman et al., 2026; Aimable, 2026; Asor, 2026; McGuinness, 2026a; Chen et al., 2026c; Thilina & Dissanayaka, 2025; Liu et al., 2026b).

Recording a chain of agents

Participants disagree on how much a delegation chain should reveal. On the OAuth mailing list in November 2026, Prasad favoured optional disclosure of only part of the chain in an initial draft. McGuinness favoured leaving provenance and selective disclosure for follow-on work (Prasad, 2026).

The IETF 127 meeting in November 2026 heard separate agenda items on cross-domain transaction tokens, transaction tokens for agents, and the OAuth actor profile (Internet Engineering Task Force, 2026b). A hackathon team at the same meeting reported testing a multi-domain delegation prototype built on workload identity and OAuth across seven runtimes (Petrov & Pelov, 2026).

Privacy across organisations is a further open point. AIMS calls for cross-domain exchanges to disclose only what the target decision needs. A later comparative draft characterises it as requiring data minimisation but leaving correlation across trust domains unresolved (Kasselman et al., 2026; Molas Carol, 2026).

Extending OAuth or a new protocol Contested: studies disagree on this

Protocol designers disagree on whether agents need new infrastructure. Rosenberg and White propose an OAuth 2.1 extension (draft -02, 1 November 2026) so an agent obtains tokens when it accesses a resource, through human or other approval. They argue that riding on OAuth’s deployment is the faster path (Rosenberg & White, 2026).

Hardt argues that OAuth lacks the identity, governance and federation agents need across trust domains. His AAuth Protocol (draft -11, 25 September 2026) is a new protocol designed for agents, and lets resources wrap existing OAuth infrastructure (Hardt, 2026). The AIMS working-group draft takes a third course, profiling existing standards and emerging specifications as a reusable foundation (Kasselman et al., 2026).

How fine-grained an agent’s identity should be is also unsettled. NIST’s tenets call for an agent credential and permission lifecycle distinct from the human it serves (Booth et al., 2026). Microsoft’s guidance for systems serving many customers presents a shared agent identity and a per-customer identity as alternative deployment choices (Choong et al., 2026).

Human approval Weak evidence: few or small studies support this

Asking a person to approve each action catches some overreach, but people approve much of it. In a simulated agent study, rules written in advance by users blocked 20.1 percentage points less overreach than approval of each action, and 14.5 points less than automated review of each action (Yan, 2026). Under a stricter correction for multiple comparisons, the gap with human approval stayed significant, while the gap with automated review did not (p = .0679, above the usual .05 threshold) (Yan, 2026).

Participants often pushed decisions back to the moment of action. In the same study, they chose to be asked at runtime for 114 of the 140 rules they wrote. Of the 148 overreaching actions that ran under their rules, 133 ran after a participant approved them (Yan, 2026).

Attention to approval prompts fades. In a study of coding-agent practitioners, 25.2% of survey respondents reported limited or declining attention to permissions. Participants described clicking through familiar prompts and skipping review under time pressure (Salerno et al., 2026). In another survey, developers who said they carefully reviewed most or all generated code were asked about agent actions: 61% often approved at least one type without close review (Wu et al., 2026d). Agent tools are covered more broadly in AI coding agents.

Declining attention also appears in earlier work on security warnings outside agents. A field experiment found that adherence to mobile app permission warnings fell over three weeks (Vance et al., 2018). Practitioners adjust their scrutiny to trust, the importance of the task, time pressure and the consequences of an action (Salerno et al., 2026).

Controls in deployed agents Weak evidence: few or small studies support this

Deployed agents mostly rely on three controls: written policy, approval at runtime, and configured tool scope. A survey of 21 production agent systems drew on their public documentation, blogs, system cards and incident reports. As of April 2026, it found scope configuration in 16, runtime approval in 15 and policy specification in 14 (Wang et al., 2026q).

Products implement these controls differently:

  • GitHub Copilot CLI gives deny rules precedence over allow rules and saved approvals (GitHub, n.d.b).
  • Claude Code’s sandbox applies operating-system restrictions on files and network to supported shell commands and their child processes (Anthropic, n.d.e).
  • Microsoft Copilot Studio can run a tool through the end user’s own connection to the service, asking the user to connect if none exists (Microsoft, 2026e).

Designs trade control against effort. Walkthroughs of five commercial agents found a tendency toward either high user control at high overhead, or low overhead with less control and transparency. The authors call for enforcement that relies less on users answering prompts (Michael & Roesner, 2026).

Revocation

Revoking a credential does not by itself stop work that is already under way. The OAuth revocation standard (RFC 7009, August 2013) lets revoking one token revoke related tokens, depending on the authorization server’s policy (Lodderstedt et al., 2013). An active individual draft by Chen and Su (-01, 30 October 2026) proposes batch, cascading and conditional revocation for agents, with verifiable audit trails (Chen & Su, 2026).

A separate proposal targets the work already admitted. Watts’s active individual draft (-04, 16 November 2026) notes that a token reported inactive does not prove that work admitted elsewhere has stopped. Its closure check is forward-looking: it cannot reverse effects that passed the point of irreversible commitment (Watts, 2026).

Audit evidence

Audit proposals separate the record of a decision to allow an action from evidence that the action happened. One draft architecture (-01, 7 September 2026) links intent, delegation, authorization and execution through distributed records, propagated context, optional attestation and transparency logs (Kühlewind & Birkholz, 2026). A receipts draft (-11, 22 November 2026) pairs a signed decision receipt with an outcome receipt. An outcome receipt shows only that its signer stated an effect; proving the effect occurred needs other evidence (Gruszka, 2026).

Linking records across services also tracks the user. The architecture’s authors caution that the chain identifier needed to correlate records also lets anyone correlate a user’s activity across the services their agent touches (Kühlewind & Birkholz, 2026). Another proposal (-02, 20 November 2026) recommends pseudonymous subject identifiers where appropriate and controlled access to audit exports. It adds that workload identity evidence and token claims do not by themselves show that authority narrowed at each hop (Munoz, 2026).

The audit work has no IETF group yet. At IETF 127 in November 2026, the area director declined to charter an AUDIT working group in its proposed form. The charter went back to its proponents for revision, to be evaluated at a second birds-of-a-feather session (Internet Engineering Task Force, 2026a).

Further reading

  • Kasselman et al. (2026): the IETF working-group draft that profiles workload identity and OAuth for agents, with its vocabulary for agents acting on behalf of others.
  • Debenedetti et al. (2025): the CaMeL paper, which enforces data-flow policies at each tool call and reports both its security gain and its cost to tasks.
  • Model Context Protocol (2026a): the current MCP authorization profile, with its rules for clients, servers and authorization servers.
  • Yan (2026): a simulated study comparing user-written rules, per-action human approval and automated review.
  • Wang et al. (2026q): a survey of the permission controls in 21 production agent systems.
  • Watts (2026): a draft that separates revoking a token from confirming that delegated work has stopped.

Known gaps

What this article cannot tell you yet.

  1. Each benchmark figure for the defences comes from the team that built the defence; independent replications of the AgentCap and paired-replay results do not yet exist.
  2. How often permission checks, approvals and scoped credentials prevent harm in everyday deployments is unknown; public scans cover only what reachable servers advertise, not how private deployments enforce individual actions.
  3. How often people approve actions beyond their intent outside of studies is unknown.
  4. Whether revocation reliably stops work an agent has already started is unmeasured in deployments; the mechanisms for it are proposals.
  5. There is no common way yet to bind a delegation chain to concrete task authority.

References

Solid source
Rated highly trustworthy by the research, and every passage taken from it was found in it.
Weak source
Rated low, or a passage taken from it was not found in it.
Medium trust
Rated medium by the research.
Not checked
Rated high, but its passages could not all be checked against it.
Show all 69 references