security: lockdown template ships Bash git catch-all + drops interpreter denies #115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: background security review on coilysiren/agent-guard@ed3bbb1 (
.claude/settings.json).Finding (HIGH, Agent/Subprocess Permission Bypass): The lockdown output narrowed
deny:and replaced the per-subcommand git allowlist (Bash(git blame:*),Bash(git diff:*),Bash(git log:*),Bash(git show:*),Bash(git status:*),Bash(git rev-parse:*),Bash(git ls-files:*),Bash(git config --get:*),Bash(git branch:*),Bash(git remote:*)) with a catch-allBash(git:*). Plus the deny list dropped entries forbash,sh,zsh,dash,ksh,fish,python,python3,node,deno,ruby,perl,powershell,pwsh,cmd,cscript,wscript,mshta,rundll32,regsvr32,osascript,exec,env,xargs,echo*$*,printf*$*.Reviewer's concern:
Bash(git:*)permits dangerous flags likegit -c core.sshCommand=...andgit fetch --upload-pack=...that yield command execution. The dropped interpreter denies expand the shell-out surface.Question for triage:
agent-guard hook pre-tool-use/coily hook pre-tool-use) covering risky git invocations + interpreter shells dynamically, making the static deny list redundant?Affected output: every
coily lockdown --apply --replaceconsumer. Visible in coilysiren/agent-guard at the post-merge regen.