Skip to content

Commit 7819e34

Browse files
akshithgclaude
andcommitted
add deny rules for curl pipe-to-shell and Write tool
Add curl pipe-to-shell deny rules to match existing wget coverage. curl is more common than wget and was missing from the deny list. Add Write() deny rules for shell configs to match existing Edit() rules. Edit and Write are separate tools with separate permission checks — denying Edit(~/.bashrc) does not block Write(~/.bashrc). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7db11a2 commit 7819e34

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,20 @@
1818
"Bash(dd *)",
1919
"Bash(wget *|bash*)",
2020
"Bash(wget *| bash*)",
21+
"Bash(curl *|bash*)",
22+
"Bash(curl *| bash*)",
23+
"Bash(curl *|sh*)",
24+
"Bash(curl *| sh*)",
2125
"Bash(git push --force*)",
2226
"Bash(git push *--force*)",
2327
"Bash(git reset --hard*)",
2428

2529
"Edit(~/.bashrc)",
2630
"Edit(~/.zshrc)",
2731
"Edit(~/.ssh/**)",
32+
"Write(~/.bashrc)",
33+
"Write(~/.zshrc)",
34+
"Write(~/.ssh/**)",
2835

2936
"Read(~/.ssh/**)",
3037
"Read(~/.gnupg/**)",

0 commit comments

Comments
 (0)