From Dev.to
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. Save th...
