You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Write Guard Skips Command Substitutions Inside an Unquoted-Delimiter Heredoc in a Substitution #2999
The guard skips a heredoc body inside a command substitution whether or not its delimiter is quoted. With an unquoted delimiter bash still runs a $(...) or backtick inside the body. With constructed text, a double-quoted substitution holding cat fed an unquoted-delimiter heredoc whose body contains a $(...) running a hooks-bypass commit is allowed. The same text at top level is denied.
Possible Direction
Read the command substitutions inside an unquoted-delimiter heredoc body as commands, in the substitution reading and at top level alike. Found in review of the README update for #2990.
Activity
Describe the Write Guard's Quoted Directory, Command Word, and Substi…
ptr727 commentedon Oct 15, 2026
Claimed for an engineering-track lane (handoff #3040 resume). Branch:
feature/guard-hidden-commands-3010. Predicted file set:host-setup/agent-safety/claude/gh-write-guard.py,host-setup/agent-safety/claude/test_install.py,host-setup/agent-safety/README.md,host-setup/agent-safety/claude/README.md.Read Commands Hidden in Config, Environment, Aliases, and Other Shell…