Stop Claude Code from running curl | bash with a PreToolUse hook
Permission rules and secret-path guards still leave a hole: a Bash tool call can download a script and pipe it into a shell. A small PreToolUse hook stops that pattern before the command runs. The hook Save this as .claude/hooks/block-curl-pipe.sh and make it executable ( chmod +x ): #!/usr/bin/env…
Read the full story at DEV Community — AI ↗
Timeline · 2 reports
- 2026-11-17 14:40 · DEV Community — AI
If your Claude Code PreToolUse hook crashes, the command still runs - 2026-11-17 00:52 · DEV Community — AI
Stop Claude Code from running curl | bash with a PreToolUse hook