Text in a repository made coding agents propose a dangerous rule
In tests on Claude Code and Codex CLI, the agents proposed the rule that the attacker wanted in 58% of the tests.
Claimed, not confirmed
Researchers did tests on coding agents, for example Claude Code and Codex CLI. These agents have safety software that stops each task that goes out of a set work area and gets approval from the user. The researchers put text in a repository. In 58% of the tests, the agent proposed a very wide rule that the attacker wanted. The result is from one paper.
How it works
The safety software stops each task that goes out of the work area. To decrease the number of approval steps, the user can give approval for a rule that the agent proposes. Then the software lets all tasks that the rule includes continue with no approval step.
The attacker plants text in a repository. The agent, on a usual task, then proposes a wide rule with a good cause. If the user gives approval, with the saved rule, the software cannot see the tasks of the attacker.
The numbers
- In 58% of the tests, the agent proposed the rule that the attacker wanted.
- The saved rules covered 56.9% of the tests of agent functions.
- In 47 of the 58 tests with approval (81.0%), the attack operated and the user got no warning.
What is not known
The paper gives no repair. No other group did a check of the result.
Insight: The attack now aims at the approval step
On 12 October, a paper showed that agent frameworks operated a tool call that a model only wrote again. Here the agent writes the rule and the user gives approval. This reads as an attack on the person who gives approval, not on the software: one saved approval gives access for a long time. Tool makers can limit how wide a saved rule can be. For leaders, each approval is a risk at this time.
Sources
Posted