AINewsnow

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

  1. 2026-11-17 14:40 · DEV Community — AI
    If your Claude Code PreToolUse hook crashes, the command still runs
  2. 2026-11-17 00:52 · DEV Community — AI
    Stop Claude Code from running curl | bash with a PreToolUse hook

More stories

  1. Anthropic debuts on Nasdaq after record $81.3 billion IPO — Anthropic (X)
  2. ChatGPT, Claude, Gemini and Grok helped plan terror attacks in US government test — The Independent Tech
  3. Developers increasingly run Claude Code alongside rival coding agents and alternative backends — DEV Community — AI
  4. AI Coding Agents Face Growing Scrutiny Over Security, Performance and Workflow Integration — Forbes AI
  5. Engineering leaders' Claude Code spending highlights Anthropic's revenue growth ahead of IPO — Business Insider AI
  6. Claude Code Adds Foldable iPhone Testing and JavaScript Tool-Call Batching — Anthropic (X)
  7. Anthropic Launches Linked Billing Beta for Claude API Apps — Anthropic (X)
  8. Anthropic adds opt-in 'Latest' release channel for faster Claude Desktop updates — Anthropic (X)

Read the Daily Brief: the day's most important AI stories →