Several pmo-platform PreToolUse hook matchers piped entire agent-generated commands through printf into an early-exiting grep -q under pipefail. When the matching content appeared early in a sufficiently long multiline command, SIGPIPE made the pipeline fail and hooks interpreted it as no forbidden match. A November 21, 2026 maintainer advisory reproduces…
Inspect the ClaimsCase · DiggingBeagle record
Long commands bypassed seven coding-agent PreToolUse policy hooks
Several pmo-platform PreToolUse hook matchers piped entire agent-generated commands through printf into an early-exiting grep -q under pipefail. When the matching content appeared early in a sufficiently long multiline command, SIGPIPE made the pipeline fail and hooks interpreted it as no forbidden match.
New to DiggingBeagle
Public disclosure: Nov 21, 2026
The evidence is a controlled local reproduction, not an observed successful production data theft or unauthorized host compromise; long-command reachability is installation-specific.
Assessment profile
Assessment method- Setting
- research demonstration
- Exploitation
- demonstrated
- Evidence
- Grade B
- Remediation
- patch available
- AI role
- AGAINST AI
Basis and provenance
The defect is in third-party pmo-platform hooks, not the Claude Code core; the maintainer reports a corrected release. Grade B reflects the bounded cited original report, experiment, code change or provider statement, not independent replication of every downstream consequence. Impact band is unknown because the available Claim evidence cannot support a comparable realized-harm magnitude.
Assessed Nov 23, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-NOV23-PMO-PRETOOL-SIGPIPE-METHOD · CLM-NOV23-PMO-PRETOOL-SIGPIPE-RESULT · pmo-platform security advisory: long command bypass in PreToolUse hooks
At a glance
Text-matching shell policy can silently fail open when unrelated process exit codes are treated as semantic evidence of a safe command. This is a hook-enforcement bug, not a demonstrated vulnerability in Claude Code itself.
Read the implicationsThe evidence is a controlled local reproduction, not an observed successful production data theft or unauthorized host compromise; long-command reachability is installation-specific.
Limits and uncertaintyFull account
Several pmo-platform PreToolUse hook matchers piped entire agent-generated commands through printf into an early-exiting grep -q under pipefail. When the matching content appeared early in a sufficiently long multiline command, SIGPIPE made the pipeline fail and hooks interpreted it as no forbidden match.
A November 21, 2026 maintainer advisory reproduces the incorrect allow outcome for all seven affected hooks with roughly 96 KB multiline commands. The listed affected versions were >=1.05 and <5.13.1, with a 5.13.1 fix and 4,733 passing hook tests.
Text-matching shell policy can silently fail open when unrelated process exit codes are treated as semantic evidence of a safe command. This is a hook-enforcement bug, not a demonstrated vulnerability in Claude Code itself. The evidence is a controlled local reproduction, not an observed successful production data theft or unauthorized host compromise; long-command reachability is installation-specific.
Evidence and boundary review (23 November 2026). The security matcher accepted a shell pipeline exit status as if it meant a pattern was absent. With an early grep -q match and enough trailing input, printf received SIGPIPE, pipefail surfaced failure, and the hook's branch treated it as safe. This is a deterministic policy-bypass bug that persists even if every instruction document tells an agent not to bypass restrictions.
Mechanism and trust boundary
- 01
Source or controlled setup
Several pmo-platform PreToolUse hook matchers piped entire agent-generated commands through printf into an early-exiting grep -q under pipefail. When the matching content appeared early in a sufficiently long multiline command, SIGPIPE made the pipeline fail and hooks interpreted it as no forbidden match.
Boundary: Initial model, agent or software trust surface under evaluation
- 02
Observed result and authority boundary
A November 21, 2026 maintainer advisory reproduces the incorrect allow outcome for all seven affected hooks with roughly 96 KB multiline commands. The listed affected versions were >=1.05 and <5.13.1, with a 5.13.1 fix and 4,733 passing hook tests.
Boundary: Text-matching shell policy can silently fail open when unrelated process exit codes are treated as semantic evidence of a safe command. This is a hook-enforcement bug, not a demonstrated vulnerability in Claude Code itself.
Timeline
- Nov 21, 2026Event type unspecified
Research or security disclosure
Original evidence was made public; the underlying tests or incidents may have taken place earlier.
- Nov 21, 2026disclosure
Public disclosure
Claims & evidence
CLM-NOV23-PMO-PRETOOL-SIGPIPE-METHODSeveral pmo-platform PreToolUse hook matchers piped entire agent-generated commands through printf into an early-exiting grep -q under pipefail. When the matching content appeared early in a sufficiently long multiline command, SIGPIPE made the pipeline fail and hooks interpreted it as no forbidden match.supported
Basis: reported finding
- supportspmo-platform security advisory: long command bypass in PreToolUse hooksprimary disclosure
Advisory summary and affected matchers: seven PreToolUse hooks under pipefail
CLM-NOV23-PMO-PRETOOL-SIGPIPE-RESULTA November 21, 2026 maintainer advisory reproduces the incorrect allow outcome for all seven affected hooks with roughly 96 KB multiline commands. The listed affected versions were >=1.05 and <5.13.1, with a 5.13.1 fix and 4,733 passing hook tests.supported
Basis: reported finding
- supportspmo-platform security advisory: long command bypass in PreToolUse hooksprimary disclosure
Advisory Evidence, Reachability and Remediation: 96KB repro, affected versions and v5.13.1
Implications
Text-matching shell policy can silently fail open when unrelated process exit codes are treated as semantic evidence of a safe command. This is a hook-enforcement bug, not a demonstrated vulnerability in Claude Code itself.
Controls and mitigations
- Read matcher input without a premature pipe and handle unreadable policy input as deny or explicit policy failure.
Unknowns and contradictions
- The evidence is a controlled local reproduction, not an observed successful production data theft or unauthorized host compromise; long-command reachability is installation-specific.
Sources and citation
Material revision history
- Nov 23, 2026 · Canonical change recorded · new in release · revision 278