Skip to content
NewA calmer, faster ZeroHour

ParseGap finds coding-agent shell checks diverge from Bash execution

Original title: ParseGap: Testing What Coding Agents Authorize and What Shells Execute

arXiv cs.CRby Jieyu Li ()1 min read1
AI summary · x-ai/grok-4.7Summaries by Vani AI

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.

Key facts
  • 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.
Security assessment · AI, from the article

Impact: Approved commands still cause policy-violating file or program effects

ProductAffected
Mistral Vibe—
Gemini CLI—
OpenAI Codex CLI—
tree-sitter-bash—
Explain this AI news with Vani AIWhat was announced, what is new and why it matters, in a new chat

From the original article

1 min read at arxiv.org

LLM 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.

arXiv cs.CR

By Jieyu Li · arxiv.org

Read the full article at arXiv cs.CR

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.