Files
ruflo/v3/@claude-flow
YovanyandClaude Opus 5.5 ef7073ab72 fix(hooks): pre-bash fails closed under cmd.exe and blocks Windows drive wipes (#5166)
pre-bash took the command from `prompt`, which falls back to
process.env.PROMPT. cmd.exe always sets PROMPT=$P$G, so under a cmd
environment an empty or command-less payload validated "$p$g" and exited 0,
defeating the #4743 fail-closed gate. The classic helper and the inline
fallback now read the command only from the hook payload.

The classic helpers, the inline fallback and the ruflo-mods guard also block
wiping or formatting a whole Windows drive: format <drive>, rd/rmdir /s
<drive>, and Remove-Item (or an alias) with -Recurse on a drive root
(C:\, C:/, C:, "C:\", C:\*). Paths below the root and Format-Table pass.

The DANGEROUS_COMMANDS list is unchanged, so ADR-404 list parity holds.
helpers.manifest.json needs re-signing with the release key.

Fixes #5166

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 17:50:56 -05:00
..
2026-11-20 22:21:35 -05:00
2026-11-19 02:12:49 -05:00
2026-11-19 02:12:49 -05:00
…