Case · 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

Scope

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.

At a glance

Mechanism and trust boundary

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

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

  1. Nov 21, 2026
    Event type unspecified

    Research or security disclosure

    Original evidence was made public; the underlying tests or incidents may have taken place earlier.

  2. Nov 21, 2026
    disclosure

    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

Link to claim
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

Link to claim

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

  1. Nov 23, 2026 · Canonical change recorded · new in release · revision 278