Evidence · DiggingBeagle record
pmo-platform security advisory: long command bypass in PreToolUse hooks
Seven agent security hooks used printf piped to grep -q under pipefail; a long multiline command could make the writer receive SIGPIPE and prevent the policy matcher from firing. Fixed in 5.13.1.
- Source role
- primary disclosure
Evidence record
Claim-level citations (2)
- supportsLong 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.
Advisory summary and affected matchers: seven PreToolUse hooks under pipefail
- supportsLong commands bypassed seven coding-agent PreToolUse policy hooks: 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.
Advisory Evidence, Reachability and Remediation: 96KB repro, affected versions and v5.13.1