arXiv

Tests exposed command-safety gaps in eight coding agents

ParseGap found 17 root causes across eight production coding agents; live trials triggered policy violations in all 16 combinations of agents and models.

Paper by Jieyu Li
A large blue command mechanism holds a straight black path, while a smaller broken gray mechanism lets dark blue-green fragments spill through.

Our read

Studied:
Preprint: system

Editor of record: Boris Djordjevic · Paperfoot

ParseGap, a testing framework, compared what eight production coding agents authorized with what GNU Bash 5.2, a program that executes commands, actually ran in isolated containers. It passed each command through an unchanged vendor checker and flagged approved commands whose effects broke policy. The tests identified 17 root causes. These included hidden commands, permitted programs that could write files or launch programs, and an OpenAI Codex CLI rule that disabled its read-only operating-system sandbox.

The researchers also built ShellPlan, which checked a restricted command language once and executed approved plans without a shell. It admitted none of 4,174 active attacks across six static test suites. In a ten-model agent benchmark, it recorded no successful attacks in 90 tests, compared with 62 without protection. Overall task completion was 74 of 100.

Why it matters

The tests showed that approving a command’s text did not always constrain what it executed. ShellPlan demonstrated a way to remove the second interpretation, with results measured on attack suites and an agent benchmark.

Caveats

Live trials covered two models; violations occurred under configured restrictions in 14 of the 16 agent-and-model combinations. ShellPlan’s results came from test suites and benchmarks using a restricted command language; the work is a preprint.

In this paper

testing coding agent command authorization against shell execution

Methods
ParseGap (this paper)ShellPlan (this paper)Mistral Vibe (evaluated)Gemini CLI (evaluated)OpenAI Codex CLI (evaluated)Qwen Code (evaluated)Roo Code (evaluated)Cline (evaluated)Continue (evaluated)OpenCode (evaluated)llm-guard (evaluated)GNU Bash 5.2
Datasets
CVE-Replay (this paper)SyntaxMatrix (this paper)Attack-1K (this paper)Fuzz-3K (this paper)Attack-BinSem (this paper)Workspace-Integrity (this paper)Benign-Dev (this paper)Benign-Ext (this paper)

Results

ShellPlan, admitted active attacks, across six static suites: 0/4,174; ShellPlan, hits, ten-model agent benchmark: 0/90; ShellPlan, median gate latency: 1.28 ms; ShellPlan, frontier standard-dev completion: 36/36 (100%); ShellPlan, overall standard-dev completion: 74/100; ShellPlan, external over-allows, outside modeled exceptions: 0/348

ShellPlan admitted 0/4,174 active attacks across six static suites and 0/90 hits in a ten-model agent benchmark (62/90 unguarded) at 1.28 ms median gate latency, preserving 36/36 (100%) frontier standard-dev completion (74/100 overall) and 0/348 external over-allows outside modeled exceptions.

Abstract

Continue, allowed active cases, on Attack-BinSem: 9/55 (16.4%); Mistral Vibe, allowed active cases, on Attack-BinSem: 20/55 (36.4%, including 7/18 execution cases)

Every studied checker admitted active Attack-BinSem cases composed purely of P1-allowlisted utilities: Continue allowed 9/55 (16.4%), Mistral Vibe allowed 20/55 (36.4%, including 7/18 execution cases), and the remaining six checkers allowed 39–47 of 55 (70.9%–85.5%, including 8–16 of 18 execution cases …

5.2. RQ1-B: Utility Divergences (D2)

ShellPlan, permitted cases, on Attack-BinSem, without utility specifications: 32/55

Utility divergences (D2) persist regardless of parser precision: an earlier prototype of ShellPlan without utility specifications still permitted 32/55 Attack-BinSem cases.

5.5. Design Requirements Derived from Empirical Divergences

Qwen Code, bypass rate, on CVE-Replay, P1: 63.6%; Qwen Code, bypass rate, on Attack-1K, P1: 43.3%

This precedence flaw accounts for Qwen Code’s 63.6% CVE-Replay and 43.3% Attack-1K bypass rates under P1.

Permission-Precedence Override (RC-16).

What it shows

Every studied checker admitted active Attack-BinSem cases composed purely of P1-allowlisted inspection utilities through argument, environment, or redirection side effects.

Every studied checker admitted active Attack-BinSem cases composed purely of P1-allowlisted utilities: Continue allowed 9/55 (16.4%), Mistral Vibe allowed 20/55 (36.4%, including 7/18 execution cases), and the remaining six checkers allowed 39–47 of 55 (70.9%–85.5%, including 8–16 of 18 execution cases …

5.2. RQ1-B: Utility Divergences (D2)

Pairing Codex CLI's isolated read-only sandbox with P1 allow rules under read-only sandbox mode disables OS sandboxing for matching allowlisted prefixes.

When paired with P1 allow rules under --sandbox read-only (Codex P1 + -s ro), however, matching allowlisted prefixes disables sandboxing across 7/33 CVE-Replay, 20/968 Attack-1K, 39/55 Attack-BinSem, and 15/28 Workspace-Integrity cases (confirmed live with zero bwrap spawns in Section 5.4; internal implementation pointers redacted pending disclosure …

5.3. RQ1-C: Confinement Divergence (D3) and Classifier Gap

If a plan is authorized under a policy, every child process created directly by ShellPlan during execution is either a direct execve dispatch of an admitted node or a probe in H.

… 2) If \Pi\vdash P\ \mathsf{ok}, every child process created directly by ShellPlan during \text{Exec}(P) is either the direct execve dispatch of a reached node passing all runtime checks (possibly through its unwrapped wrappers, with --sandbox injected for sed) or a probe in \mathcal{H}; unwrapped echo and pwd execute in-process …

Theorem 6.1 (Single Interpretation).

Under trusted base and specified utility behavior assumptions, ShellPlan guarantees that every started process is an admitted node, probe, or trusted helper, and written files are strictly bounded.

Then every process started by ShellPlan, its probes, or its dispatched nodes is a dispatched node, a probe in \mathcal{H}, or a helper directed by A1-trusted configuration, and every written file (outside A1-trusted helpers) is a redirection target satisfying Proposition 6.3, a sort temporary file, or a.git/index refresh by git status or git diff …

Theorem 6.2 (Effect Containment).

Quoted word for word from the full text on arXiv.

The paper

ParseGap: Testing What Coding Agents Authorize and What Shells Execute

Jieyu Li

arXiv, Nov 22, 2026, Open access, Preprint, not yet peer-reviewed

doi.org/10.48550/arxiv.2611.29546

arXiv:2611.29546v1 in cs.CR

AbstractPDFHTML

Comments: 20 pages, 3 figures. Preprint with coordinated-disclosure redactions (all affected vendors notified on November 22, 2026 under a 90-day disclosure window)

Cite as BibTeX
@misc{li2026parsegap,
  title = {ParseGap: Testing What Coding Agents Authorize and What Shells Execute},
  author = {Li, Jieyu},
  year = {2026},
  eprint = {2611.29546},
  archivePrefix = {arXiv},
  primaryClass = {cs.CR},
  doi = {10.48550/arxiv.2611.29546},
  url = {https://arxiv.org/abs/2611.29546}
}