Repository navigation
Description
Consolidates two trap.d fragments from the v0.42.0 release gate 3 audit (round 2 and round 4), both re-checked directly against .github/scripts/check_release_tree.py:839-889 while curating trap.d/ (2026-10-07) -- still true.
1. command builtin not in _UNSCOPED_COMMANDS. The set at line 840-851 lists shells, interpreters, package managers, downloaders and wrapper commands (xargs, sudo, eval, exec, source, ., find, awk, nohup, timeout, added for #879) -- but not command. bash_grant_problem("Bash(command curl:*)") returns None (not flagged), while Bash(sudo curl:*) and Bash(env curl:*) are correctly refused. No shipped allowed-tools grant in this repo currently uses command, so this matters only for a future grant.
2. Other wrapper spellings and a backslash-separated .. escape also missed. Same set/function: nice and stdbuf are not listed either, and the .. path-escape check at line 876 (if ".." in p.split("/")) only splits on forward slash, so a path with backslash-separated .. segments instead of forward-slash ones is not caught. Bash(nice:*), Bash(stdbuf:*) and that backslash-escaped form all return None from bash_grant_problem, while Bash(timeout 5 bash:*) and the forward-slash /../ form are correctly refused (the auditor's own positive control). No shipped file in this repo currently carries any of these four missed grants.
What would settle it: add command, nice, stdbuf to _UNSCOPED_COMMANDS, and widen the .. path-escape check to split on both forward and backslash separators (or normalize separators before the check) -- docs/releasing.md also still says wrapper commands are "not yet" covered, which understates current coverage and is worth correcting alongside the code fix.
Original fragments: trap.d/879.wrapper-grant-missing-command-builtin.md, trap.d/879.wrapper-grant-spellings-missed.md (deleted by this same curate pass).
[AI-generated]
Activity
curate: promote 2 rules, decline 11 fragments (5 new issues, 3 alread…
fix(#950): catch command/nice/stdbuf and backslash .. escapes in the …