AI agent permissions go wrong when an agent answers a question with its own access and never checks what the person asking is allowed to see. A recent article by Garima Agarwal names this gap, and this piece extends that one claim.
Agarwal argues that agents should be managed like new hires
Agarwal observes that most agents run on a shared service account with broad permissions, no named owner and no review date. A service account fits a normal program, she writes, because its calls are known in advance. An agent chooses what to call at run time, so teams grant wide access to stop it failing, and the log then records what the account could do instead of what the agent did.
Her remedy borrows from how organizations already treat people: one login per agent, access scoped to the task, a log of every action, fast removal, and one named owner. She adds a rule for agents that act for a user. In her words, "The agent should only do what both of them can do." Her example is a user who cannot see salary data and asks an agent a question whose answer needs the salary field. The agent can read it, so it answers, and no alert fires.
The salary example repeats a failure documented in 1988
Agarwal cites Norm Hardy’s confused deputy problem. His account, The Confused Deputy, describes a compiler at Tymshare that was licensed to write files in its own directory so it could record usage statistics. A user supplied the name of the billing file as the destination for debugging output. The operating system saw a compiler with permission and allowed the write, and the billing information was lost.
Hardy’s diagnosis is the useful part. No line of the compiler’s code was wrong. The compiler held authority from two sources, its own license and the invoker’s, and it had no way to say which one a given request should use. Hardy also reports that the first fix, a system call to switch between the two authorities, made things more complex, and that more than two sources of authority soon turned up.
The permission check cannot live inside the agent
The agent in the salary example is in Hardy’s position. It holds its own access and receives instructions from a user, and nothing inside it records whose authority a request should use. I draw a design conclusion from that. A rule that depends on the agent remembering to apply the user’s limits is a rule that a prompt can talk it out of. The check has to sit where the data lives, and the data layer needs to know two things on every call: who the user is and which agent is acting for them.
Standards for this exist. RFC 8693, OAuth 2.0 Token Exchange, distinguishes delegation from impersonation. With delegation, the acting party keeps its own identity and the actions are understood to be taken by that party on behalf of the subject. The RFC describes composite tokens that carry both parties and a JWT "act" claim that can represent a chain of delegation. The RFC also states that whether a composite token is issued is at the discretion of the authorization server and its policy, so a team must choose to configure it. I have not tested any vendor’s agent platform against this, and I am not claiming that any of them supports it.
The intersection rule has a boundary at the agent’s own work
Agarwal’s rule is right for data a user asks the agent to retrieve. It is incomplete as a universal rule, and Hardy’s story shows why. His compiler legitimately needed its own license to write the statistics file, and that same license was the one that went wrong. An agent has the same two kinds of work. Writing its own audit entry, refreshing its own cache and recording its own errors are actions that use the agent’s authority, and an intersection with the user’s permissions would block them.
The practical standard is to label each action as one of two kinds before an agent ships. User-directed actions run on the intersection of agent and user. Agent-owned actions run on a narrow agent-only grant that cannot touch user data. The hard cases sit in between, for example an agent that computes an aggregate for a user who may see totals and not individual rows. Whether the aggregate is permitted is a policy decision the data owner has to make in advance, and I would not leave it to the agent’s judgment.
Why This Matters for Engineering Leadership
Agarwal’s approval questions ask which person an agent acts for and whether it is limited to what that person can do. A leader can make those questions testable. Ask the team to run one request as a user without access to a sensitive field and show the result. Ask where the check happens and whether it would still hold if the agent were instructed to ignore it. Ask whether the log for that request names both the user and the agent. From an AI governance view, an agent that cannot show whose authority it used for each action has no accountable answer when something goes wrong, which is the situation Hardy’s team was in with a billing file.
FAQ
What is the confused deputy problem?
It is a flaw described by Norm Hardy in 1988 in which a program holding authority from two sources cannot tell which one a request should use. At Tymshare, a compiler overwrote a billing file because a user named it as an output file and the compiler had its own license to write there.
Why do AI agents recreate the confused deputy problem?
An agent usually holds broad access of its own and takes instructions from users with narrower access. If the agent answers with its own access, the user receives data their own permissions never allowed.
What rule does Garima Agarwal propose for agent access?
In her LeadDev article, she proposes that an agent should only do what both it and its user can do.
How can a system record both the agent and the user?
OAuth 2.0 Token Exchange, defined in RFC 8693, describes delegation tokens that carry both the subject on whose behalf a request is made and the actor who holds the delegated rights. The JWT act claim can represent a chain of delegation.
Is the intersection of agent and user permissions always correct?
No. Some actions, such as writing the agent’s own audit entry, legitimately use the agent’s authority. Hardy’s compiler also needed its own license to write usage statistics. The intersection applies to the data a user asks for.
What should an engineering leader ask before approving an agent?
Ask where the user’s permissions are checked, whether the check happens outside the agent, and whether the log shows both the user and the agent for every action.
