Skip to content
IAM Insights

Briefing · Paper · source · published · Boston Identity

No app, no developer: least privilege for an AI agent has to come from the task, six security researchers argue

Four Google researchers, one also at UW Madison, join Earlence Fernandes of UC San Diego and Johann Rehberger of Embrace The Red to apply classic systems security to AI agents. Their workshop report argues that hardening the model is often not enough, and that an agent's least privilege has to be worked out from each task, because there is no app whose permissions a developer declared. Its eleven retold attacks, ten from Rehberger's own blog, are all marked as information-flow failures.

arXiv · Mihai Christodorescu, Earlence Fernandes, Ashish Hooda, Somesh Jha, Johann Rehberger, Khawaja Shams · December 1, 2025 · read

share
4 findings4 sectionsAI trustAgentic identity
10,237 words. With Mihai Christodorescu, author, Google; Earlence Fernandes, author, UC San Diego; Ashish Hooda, author, Google; Somesh Jha, author, Google; UW Madison; Johann Rehberger, author, EmbraceTheRed; Khawaja Shams, author, Google.
01

What's happening

Finding4
BI-FIND-2025-0256Lead finding

With no app developer to declare permissions, an agent's least privilege has to be predicted from its task description, the authors argue.

The authors argue that least privilege cannot reach an agent the way it reached phone apps, where a developer declares the permissions up front. "In agentic systems, there is no app developer and there is no app," they write, only a natural-language task that can change, so the agent's privilege "needs to be predicted from the task description." Their example is a browser agent asked to comment on GitLab issue 7745. It needs that issue page and write access to its comment box, and nothing else in GitLab or the user's browser session. A follow-up request to summarize the issue changes what it needs, while untrusted text is already in its context. Today, they note, an agent typically has uniform access to all tool calls, and they cite OpenAI's advice to enable only the connectors a task needs as least privilege enforced by hand. Existing work, they write, does not solve the problem of specifying the policy.

BI-FIND-2025-0258

The paper's eleven attacks are earlier public write-ups the authors did not rerun, and its Table 1 marks all eleven as failures of secure information flow.

The paper's eleven attacks are earlier public write-ups, and the authors ran none of them again. Ten cite co-author Johann Rehberger's own Embrace The Red blog posts and one, Cursor's AgentFlayer, a post by M. Simakov on Zenity's research site. The authors' Table 1 marks all eleven as failures of secure information flow and six as failures of least privilege. The other principles are ticked less often: complete mediation in three cases, and tamper resistance of the trusted base and the human as weak link in two each. The table also disagrees with the authors' own prose in two places: the Cursor text names four violated principles where the table ticks two, and the ChatGPT Operator text names only information flow where the table adds the human weak link.

high confidencebest source: vendor, technicalobserved Dec 2025EvidenceEleven case studies of real attacks
flag a problem with BI-FIND-2025-0258
Figure steps
  1. The attacker hides an instruction in a comment in a code file the developer will ask Claude Code to work on.
  2. Claude Code reads the file during the task and follows the hidden instruction.
  3. It reads an API key from the developer's .env file.
  4. It runs ping with the key placed in the hostname. Approval covered many commands that could send data to unknown domains, but ping ran without asking.
  5. Resolving that hostname is a DNS lookup, which carries the key to the attacker's domain.
Fig. 1

Claude Code asked before many commands that could send data out, but not before ping, so a key read from .env left inside an ordinary DNS lookup.

Drawn from the paper's Claude Code case and its figure 3Source dated December 1, 2025Passage: Eleven case studies of real attacks

Swipe for the full figure →

BI-FIND-2025-0257

Training a model to resist attacks is often not enough, the authors argue, so they would layer three defenses, starting with separating instructions from data.

The paper starts from the position that training a model to resist attacks is useful but often not enough, and compares the goal of a model that is always helpful and harmless with software that is always helpful and harmless. The language model sits inside the agent's trusted computing base, the parts that must work for security to hold, and it behaves probabilistically, so the authors say such a base falls short of strong guarantees and that it is unclear what an agent's security assumption could be. For the near term they would layer three defenses. Separating instructions from data "will cut out a large swath of prompt injections, but it is unlikely to fully solve" the problem, because a model that acts on data is shaped by it. On top of that go least-privilege access control and information-flow control, which they say still needs precise tracking of how data moves through a model.

flag a problem with BI-FIND-2025-0257
BI-FIND-2025-0259

Human approval left gaps in the paper's cases: Claude Code let ping run unapproved, and a hidden prompt used it to send .env secrets out in a DNS lookup.

Several of the cases turn on human approval as the control, and the paper shows where it breaks. In the Claude Code case (CVE-2025-55284), Claude Code "had implemented human approval for many shell commands that could send" data to unknown domains but let ping run without approval. A prompt hidden in a code file had it read secrets such as API keys from a .env file and send them out inside a DNS lookup. The Cursor attack required the developer to have switched off confirmation for the Jira MCP server or turned on Auto Run. For the browsing agent in the ChatGPT Operator case, the authors write that confirming every navigation step "shifts the burden to the user," who may lack the expertise or patience to judge it, and they prefer sandboxing or information-flow control there. Elsewhere they still propose approval, for Copilot's access to sensitive data, for changes to Amp's configuration files and, at a minimum, for what ChatGPT stores in its memory. They pair it with limits set before the agent runs: for Claude Code, ping and nslookup arguments restricted to trusted or user-approved domains; for Devin, a default-deny rule on reading sensitive environment files unless the current task is authorized to.

medium confidencebest source: vendor, technicalobserved Dec 2025EvidenceEleven case studies of real attacksPremise and classic security principles
flag a problem with BI-FIND-2025-0259
02

Section by section

4

showing 4 of 4

[1]

Premise and classic security principles

Mihai Christodorescu, Google · Earlence Fernandes, UC San Diego · Ashish Hooda, Google · Somesh Jha, Google; UW Madison · Johann Rehberger, EmbraceTheRed · Khawaja Shams, Google

AI trustAgentic identity

Workshop report (SAGAI 2025) argues model hardening or alignment alone is insufficient for agent security, as 50 years of systems security show. It defines the TCB, security policy, boundary and five principles (least privilege, tamper resistance, complete mediation, secure information flow, human weak link).

technical artifactfrom published text

[2]

Four challenges: probabilistic TCB, dynamic policy, fuzzy boundary, prompt injection as code loading

Mihai Christodorescu, Google · Earlence Fernandes, UC San Diego · Ashish Hooda, Google · Somesh Jha, Google; UW Madison · Johann Rehberger, EmbraceTheRed · Khawaja Shams, Google

AI trustAgentic identity

Authors argue the LLM in an agent's TCB is probabilistic, privilege must be predicted from a natural-language task (no developer, no app), agents lack abstraction layers for mediation (CaMeL, FIDES, ceLLMate named as partial approaches), and prompt injection resembles dynamic code loading without CSP/SOP-like controls.

technical artifactfrom published text

[3]

Eleven case studies of real attacks

Mihai Christodorescu, Google · Earlence Fernandes, UC San Diego · Ashish Hooda, Google · Somesh Jha, Google; UW Madison · Johann Rehberger, EmbraceTheRed · Khawaja Shams, Google

AI trustAgentic identity

Eleven published prompt-injection exploits (Copilot, Devin x2, ChatGPT memory and Operator, Amp, DeepSeek, Terminal DiLLMa, Cursor, Claude Code CVE-2025-55284, AI ClickFix), mostly Rehberger's, are mapped to violated principles and defenses. Secure Information Flow is marked in all 11; Least Privilege in 6. Analysis is the authors' own; no new experiments.

technical artifactfrom published text + figures

[4]

Open research problems and conclusion

Mihai Christodorescu, Google · Earlence Fernandes, UC San Diego · Ashish Hooda, Google · Somesh Jha, Google; UW Madison · Johann Rehberger, EmbraceTheRed · Khawaja Shams, Google

AI trustAgentic identity

Three near-term mechanisms: instruction-data separation (will not fully solve prompt injection), least-privilege access control for dynamic tasks, and information-flow control (label explosion in LLMs). Long-term: guarantees from probabilistic TCBs, security-aware model architectures. Authors say it is unclear what the agent security assumption could be.

opinionfrom published text

Terms used

AI agent
Software that uses an AI model to decide its own next steps and then acts through tools and APIs, rather than answering a single prompt. Because it acts, it needs an identity of its own.
Least privilege
Giving every account, human or machine, only the access its job needs and nothing more, so a compromise stays small.
Web agent
LLM-driven agent that perceives and acts on web pages through a browser
Trusted Computing Base
The parts of a system (code and data) that must work correctly for its security guarantees to hold; the attacker is assumed unable to alter it.
Prompt injection
Hiding instructions in text an AI model reads, such as an email or a web page, so the model does something its operator never asked for.
Information flow control
Tracking where each piece of data came from and who may see it, then blocking any step that would send it somewhere it should not go.
OpenAI Operator
OpenAI's agent that uses its own web browser to carry out tasks for a user.
API key
A long-lived secret string that lets software call a service; anyone who copies it can use it until someone revokes it.

Cited in our columns

Read next

Was this briefing useful?

Share this briefing

Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.

Follow us on LinkedInRSS feed

Working on an identity problem this research touches? Talk to Boston Identity