One yes can switch the sandbox off
Researchers showed that a booby-trapped project can make a coding agent ask its user for a broad standing permission, and once the user agrees, the attacker's later commands run without any warning.
Coding agents such as Claude Code and Codex CLI run inside a harness that stops and asks before risky actions, like downloading from the internet. To cut down on prompts, the harness lets you approve a reusable rule instead of one action: yes, and allow similar commands from now on.
The researchers planted ordinary-looking material in a repository: failing test scripts, misleading hints in the README, a neat list of commands to run. Given a routine task, the agent ran into it and asked for a broad rule, such as allowing any curl command. A user who said yes had also approved everything the attacker needed later.
Across Claude Code and Codex CLI with four model setups, agents asked for the attacker's target rule in 58% of runs. When the rule was approved, the hidden goal completed silently in 47 of 58 eligible cases (81%).
58%of runs where the agent asked for the attacker's rule
Technical details
The paper, From Approval to Abuse (arXiv 2610.22987, submitted October 16), builds the attack with four cooperating agents: a planner, a builder that writes the trap repo, a proxy that plays the victim agent, and a critic. The tested setups were Codex CLI with gpt-5.6-luna and gpt-5.6-sol, and Claude Code with claude-haiku-4.5 and claude-sonnet-5.
The approved rules covered 56.9% of the category-specific capability tests the authors ran, which measures how much an attacker could do with them. The paper is an attack study: it proposes no fix of its own, and argues that harnesses should judge a rule by its scope and its consequences after approval, citing strict-policy systems such as Progent and CapScope.
Why it mattersEvery agent tool that offers "don't ask again" has this weak point, and the person approving is the last check. Fewer, narrower rules cost a few more prompts and close it.
For youYour unattended routines live on saved allow rules. Run /permissions in every repo they touch and cut curl, wget, interpreter and wildcard npm rules down to exact commands; the Try this below is the checklist.
- harness
- The program around an AI model that runs its tools, enforces permissions and asks the user before risky steps.
- sandbox
- A fenced-off environment that limits what a program can touch, such as files outside a folder or the network.
- allow rule
- A saved permission that lets an agent run matching actions without asking again.
- curl
- A command-line tool that downloads or sends data over the web, often used to fetch and run scripts.