PlugMyPlugin
โ† Browse

block-dangerous-commands

karanb192 โ˜… 524

This Claude Code plugin installs a PreToolUse hook that blocks dangerous Bash commands (rm targeting home/root directories, fork bombs, curl|sh, force pushes, git reset --hard, chmod 777, docker volume rm, etc.) before they execute. Three configurable safety levels (critical/high/strict) control what gets blocked, with per-level ask mode allowing you to approve or reject matches instead of hard-denying them.

Security DevOps free runs shell

Install

> /plugin marketplace add karanb192/claude-code-hooks/tree/HEAD/plugins/block-dangerous-commands
> /plugin install block-dangerous-commands

Source: https://github.com/karanb192/claude-code-hooks/tree/HEAD/plugins/block-dangerous-commands

What it's made of

1 hook

Commands
0
Agents
0
Skills
0
MCP servers
0
Hooks
1 ยท PreToolUse

What it needs & plugs into

API keys
none
Paid services
none detected
External tools
node
Talks to
nothing external detected

Facts extracted from the plugin's files. Prose generated by claude-haiku-4-5-20251001.

Is this your plugin?

Claim it to keep the card accurate and enter the weekly contest. Requires signing in as the GitHub owner (karanb192).