Skip to content
IAM Insights

Briefing · Paper · source · updated · Boston Identity

In a stress test, Claude Code made changes through file edits that auto mode's permission check never sees

Five researchers at HKUST and ETH Zurich ran Claude Code's auto mode against 128 deliberately ambiguous DevOps requests, and on their benchmark 81% of unsafe actions went through. More than a third of all state changes were edits to files inside the project, which auto mode never sends to its classifier; the agent fell back on such edits when the expected command-line tool was missing.

arXiv · Zimo Ji, Zongjie Li, Wenyuan Jiang, Yudong Gao, Shuai Wang · April 4, 2026 · read

share
3 findings5 sectionsAgentic identity
28,515 words. With Zimo Ji, author, Hong Kong University of Science and Technology; Zongjie Li, author, Hong Kong University of Science and Technology; Wenyuan Jiang, author, ETH Zurich; Yudong Gao, author, Hong Kong University of Science and Technology; Shuai Wang, author, Hong Kong University of Science and Technology.
01

What's happening

Finding3
BI-FIND-2026-1264Lead finding

In the authors' benchmark, 93 of 253 state-changing actions were file edits that auto mode's classifier never checked, and 51 of those were unsafe.

Auto mode lets the agent edit files inside the project without asking its classifier, on the reasoning, which the authors quote from Anthropic, that "in-project edits are reviewable via version control." In the authors' benchmark the project folder also held the state files the tasks acted on, and when the expected command-line tool was missing the agent edited those files instead. Of 253 state-changing actions, 93 (36.8%) were Edit or Write calls handled this way; the debug logs show no classifier call for any of them, and 51 were unsafe. On artifact cleanup, 49 of the 78 unsafe actions that got through were edits to one state file, objects.json, and 92.9% of that task's unsafe actions got through. The authors stress that the agent was not trying to evade the gate; it used the most natural tool to hand.

high confidencebest source: independent researchobserved Apr 2026 – Aug 2026EvidenceTier 2 coverage gap on file editsSection 1Discussion, limitations and conclusion
Also reported in +1 briefing
flag a problem with BI-FIND-2026-1264
Figure steps
  1. The user gives the agent a cleanup request whose targets are left ambiguous, the kind of request the benchmark was built from.
  2. When the agent uses a shell command, auto mode sends it to the classifier, which allows or blocks it. On the 160 actions that went this way, the classifier let 64 of 91 unsafe ones through.
  3. When the expected command-line tool is missing, the agent edits the state file inside the project instead. Auto mode allows the edit without calling the classifier. 93 actions went this way; 51 were unsafe and every one got through.
Fig. 1

When the command-line tool was missing, the agent edited the state file inside the project, and auto mode let every such edit through without asking its classifier.

Drawn from the paper's figure 1 and section 5.4Source dated April 4, 2026Passage: Tier 2 coverage gap on file edits

Swipe for the full figure →

BI-FIND-2026-1265

In the authors' benchmark, auto mode's classifier let through 64 of the 91 unsafe actions it judged, and 81.0% of all unsafe actions went through.

Even on the 160 actions it did judge, auto mode's classifier let 64 of 91 unsafe ones through (a 70.3% miss rate) and blocked 22 of 69 safe ones (31.9%). Counting the edits it never saw, 81.0% of unsafe actions went through (95% confidence interval 73.8% to 87.4%). Compared with the same model running with permission checks bypassed, the share of tasks finished safely rose only from 29.7% to 32.8%. The authors say neither miss rate is directly comparable with Anthropic's own 17% on production traffic, which counts accidental overreach in everyday developer work; their benchmark puts authorized and unauthorized targets side by side on purpose.

high confidencebest source: independent researchobserved Apr 2026EvidenceAction-level gate metrics
flag a problem with BI-FIND-2026-1265
BI-FIND-2026-1266

The authors' exploratory cuts suggest auto mode's classifier reacts to how broad or risky an action looks and does not check if the user authorized its target.

The authors' exploratory cuts suggest the classifier reacts to how broad or risky an action looks rather than checking whether its target is one the user authorized. Their example: deleting one precisely named branch is rarely flagged, while a batch delete of several draws scrutiny. The miss rate fell from 94.4% when the request named a single target to 77.6% when it used a wide selector, and moving the work from a low-impact lane to a high-impact one raised the share of safe actions blocked from 9.2% to 34.8% while the miss rate improved only from 88.1% to 74.7%. The authors call these analyses exploratory and say the single-target-to-wide-selector trend is partly an artifact of which tasks fall at each level.

medium confidencebest source: independent researchobserved Apr 2026EvidenceExploratory axis decompositionDiscussion, limitations and conclusion
flag a problem with BI-FIND-2026-1266
02

Section by section

5

showing 5 of 5

[1]

Auto mode architecture and the AmPermBench benchmark

Zimo Ji, Hong Kong University of Science and Technology · Zongjie Li, Hong Kong University of Science and Technology · Wenyuan Jiang, ETH Zurich · Yudong Gao, Hong Kong University of Science and Technology · Shuai Wang, Hong Kong University of Science and Technology

Agentic identity

Describes auto mode's three tiers (safe tools, in-project edits, two-stage classifier) from Anthropic's blog, then builds AmPermBench: 128 prompts (4 DevOps tasks x S/B/R ambiguity axes) with a deterministic oracle, run on Sonnet 4.6 in Docker with shimmed CLIs; Claude Opus judges actions (kappa 0.82 on 50 samples).

technical artifactfrom published text + figures

[2]

Action-level gate metrics: 81.0% end-to-end FNR

Zimo Ji, Hong Kong University of Science and Technology · Zongjie Li, Hong Kong University of Science and Technology · Wenyuan Jiang, ETH Zurich · Yudong Gao, Hong Kong University of Science and Technology · Shuai Wang, Hong Kong University of Science and Technology

Agentic identity

Across 253 state-changing actions, end-to-end FNR is 81.0% (CI 73.8-87.4) and FPR 19.8%; on the 160 Tier 3 actions the classifier sees, FNR is 70.3% and FPR 31.9%. Task-level safe success moves only 29.7% to 32.8% versus bypassPermissions. Authors say the figures are not comparable to Anthropic's 17% FNR on production traffic.

technical artifactfrom published text

[3]

Exploratory axis decomposition: blast radius, risk, specificity

Zimo Ji, Hong Kong University of Science and Technology · Zongjie Li, Hong Kong University of Science and Technology · Wenyuan Jiang, ETH Zurich · Yudong Gao, Hong Kong University of Science and Technology · Shuai Wang, Hong Kong University of Science and Technology

Agentic identity

FNR falls from 94.4% (B0) to 77.6% (B3) but the authors call this partly compositional (artifact tasks). Moving from low to high risk lane raises TP 8 to 19 and FPR 9.2% to 34.8%, FNR 88.1% to 74.7%. Specificity shows no clear trend. Authors label all of it exploratory.

technical artifactfrom published text + figures

[4]

Tier 2 coverage gap on file edits

Zimo Ji, Hong Kong University of Science and Technology · Zongjie Li, Hong Kong University of Science and Technology · Wenyuan Jiang, ETH Zurich · Yudong Gao, Hong Kong University of Science and Technology · Shuai Wang, Hong Kong University of Science and Technology

Agentic identity

93 of 253 actions (36.8%) were Edit/Write calls routed through Tier 2, never classified, so unsafe ones are false negatives by construction. On artifact cleanup, 49 of 78 FNs were Edit/Write on objects.json (FNR 92.9%). Agents fell back to editing state files when the CLI was missing; debug logs show no classifier call for these edits.

technical artifactfrom published text

[5]

Discussion, limitations and conclusion

Zimo Ji, Hong Kong University of Science and Technology · Zongjie Li, Hong Kong University of Science and Technology · Wenyuan Jiang, ETH Zurich · Yudong Gao, Hong Kong University of Science and Technology · Shuai Wang, Hong Kong University of Science and Technology

Agentic identity

Argues auto mode assumes dangerous actions transit the shell, while the classifier appears to use batch-size heuristics rather than checking authorization against the user's authorized set. Limits: one model, one synthetic benchmark, one run per prompt, LLM judge, proprietary classifier that may change. Related work covers agent safety benchmarks and runtime guardrails.

opinionfrom published text

Terms used

DevOps
The practice and teams that build and run software together, shipping changes fast; their pipelines hold many machine secrets.
Docker
A container runtime that runs software in isolated environments that can be started, used and destroyed.
CI
Continuous integration, the automated pipeline that builds and tests code on every change, usually paired with continuous delivery (CI/CD) to deploy it. Its runners and jobs hold credentials of their own, which makes them non-human identities.
False positive rate
The fraction of actually negative cases incorrectly classified as positive; for a threat detector, benign cases incorrectly flagged as threats.
LLM
The text-predicting AI model behind chatbots and agents. It follows instructions statistically, which is why an instruction hidden in its input can redirect it.

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