What it says

This paper shows that reusable allow-rules in interactive coding-agent harnesses (Claude Code, Codex CLI) create a privilege-escalation path: adversarial repository context can steer an agent performing a routine benign task into requesting plausibly justified but dangerously broad allow-rules. If the user approves, the saved rule silently covers actions outside the original task, blinding the harness and human oversight. A two-stage framework (Permission Acquisition, Authority Reuse) evaluates the risk: elicitation succeeds in 58% of instances, the acquired rules cover 56.9% of category-specific capability test cases, and conditional on approval the exploit achieves silent goal completion in 47 of 58 eligible instances (81.0%), outperforming Direct Injection and IssueTrojanBench baselines.

Claims drawn from this source

  • Untrusted repository context can steer agents to request over-permissive reusable allow-rules. In a benign-task setting, adversarial content planted in the repository induces the agent to propose plausibly justified yet dangerously broad allow-rules; approval persists this rule and covers matching actions without further oversight.
  • Over-permissive rules are elicited in 58% of experimental instances across Claude Code and Codex CLI. Across production platforms including Claude Code and Codex CLI, adversarial repository context elicits the target allow-rules in 58% of experimental instances.
  • Acquired rules have a large semantic blast radius. Once approved, the rules cover 56.9% of category-specific capability test cases in the Permission Capability Coverage (PCC) benchmark.
  • Conditional on approval, exploit completes goals silently in 81.0% of eligible instances. Conditional on rule approval, the exploit achieves verified, silent goal completion in 47 of 58 eligible instances; this heavily outperforms IssueTrojanBench (20/58) and Direct Injection (1/58) baselines.
  • Codex and Claude Code generalize authority along different axes. Codex abstracts across behavioral history (heterogeneous wget invocations collapse into a tool-wide “wget” rule while an isolated download keeps a rigid boundary); Claude Code abstracts over static command syntax, so an unquoted parameter like curl reports -v induces the broad wildcard rule curl reports *.
  • Agents follow dataflow, not narratives. Merely telling the agent a target operation is relevant triggered it 0 of 3 runs; structured as an executable dependency (blocking artifact gate or mainline consumer), it induced the target in 3 of 3 runs.
  • Strong agents route around non-dominant attacks. Against highly capable models such as claude-sonnet-5, the agent avoided the prescribed adversarial action by reconstructing required state from alternative local files, cached fixtures, or direct state writes; effective attack steps must causally dominate the execution graph.
  • Static defenses without immutable ceilings leave this blind spot. Defenses such as CapScope derive an immutable authority ceiling before reading untrusted context; reusable dynamic permissions persisted as context-free syntactic rules enable attacks analogous to classical permission re-delegation, where the confused deputy is the permission harness itself.