ParseGap finds coding-agent shell checks diverge from Bash execution
Original title: ParseGap: Testing What Coding Agents Authorize and What Shells Execute
Live trials on eight production agents triggered policy violations in all 16 agent-model pairs, 14 of them under configured restrictions.
ParseGap compares an unmodified vendor command checker with GNU Bash 5.2 and flags approved commands that still cause policy-violating effects. It reports 17 root causes at parse, utility, and confinement boundaries, including a tree-sitter-bash defect affecting Mistral Vibe and Gemini CLI and an OpenAI Codex CLI allow rule that disables a read-only sandbox. The authors' ShellPlan design admitted none of 4,174 static attacks and none of 90 agent-benchmark hits.
Unconfirmed: Named frontier models used in the live trials are not identified.
- Every tested checker allowed some read-only binaries that wrote files or launched programs.
- Those utility misses covered 9 to 47 of 55 cases.
- ShellPlan's median gate latency was 1.28 ms.
- It kept 36 of 36 frontier standard-dev completions and 74 of 100 overall.
- The unguarded agent benchmark recorded 62 of 90 hits.
Impact: Approved commands still cause policy-violating file or program effects
| Product | Affected |
|---|---|
| Mistral Vibe | — |
| Gemini CLI | — |
| OpenAI Codex CLI | — |
| tree-sitter-bash | — |
From the original article
1 min read at arxiv.orgLLM coding agents authorize shell commands by parsing a command string against a policy and passing the raw string to a system shell, so the gate adjudicates one reading while the shell executes another. We present ParseGap, a differential testing framework that runs each command through an unmodified vendor checker and GNU Bash 5.
By Jieyu Li · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.