Skip to content
LowResearchPreprintLLM-specific

ParseGap: Testing What Coding Agents Authorize and What Shells Execute

Published
Record updated
View JSON

Summary

ParseGap is a differential testing framework that runs shell commands through an unmodified vendor checker and GNU Bash 5.2 in an isolated container, flagging cases where an approved command causes policy-violating effects. Across eight production coding agents it identified 17 root causes at parse, utility and confinement boundaries, and live trials triggered policy violations in all 16 agent-model pairs. The authors also propose ShellPlan, which compiles a strict Bash subset into a typed plan and dispatches approved commands via execve without a shell, admitting 0/4,174 active attacks in static suites.

Mitigation

The source proposes ShellPlan as a design to eliminate the second reading by compiling a strict Bash subset into a typed execution plan, validating utility arguments against positive capability specifications, and dispatching approved plans directly via execve without a shell. It does not describe a vendor patch or fixed version.