What is cm-block-dangerous-commands?
cm-block-dangerous-commands is a Claude Code mod by rotbit that refuses destructive Bash commands (rm -rf /, force-push to main, DROP TABLE, curl | sh, ...) before Claude runs them, and tells Claude why. It is listed under Security and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | rotbit |
| Repository | rotbit/claudemods-marketplace |
| Popularity | no public popularity data yet |
| Category | Security |
| Security | Low risk (100/100) |
| Rank | #4,454 of 5,272 Claude Code mods; #464 in Security |
| License | MIT |
| Last commit | 2026-10-07 |
| Hooks | 2 events |
| Sees | Bash calls |
| Draws on | nothing |
Is cm-block-dangerous-commands safe to install?
cm-block-dangerous-commands scores 100/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 8 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.ui.toast | draws interface |
How do I install cm-block-dangerous-commands?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/rotbit/claudemods-marketplace claude plugin validate ./claudemods-marketplace/cm-block-dangerous-commands
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add rotbit/claudemods-marketplace && claude plugin install cm-block-dangerous-commands@claudemods
Or ask Claude to set it up
Paste this into Claude Code and it installs cm-block-dangerous-commands for you:
Install the "cm-block-dangerous-commands" Claude Code mod from https://github.com/rotbit/claudemods-marketplace/tree/main/cm-block-dangerous-commands. Run claude plugin validate on it first and show me what it can access before you enable it.
More from rotbit/claudemods-marketplace
This repository has 5 Claude Code mods on MCPMods.
- cm-context-meter: Puts context-window fill, 5-hour/7-day plan usage and session cost in the status line, and warns once when the context g (Low risk)
- cm-done-toast: Shows "Done in 2m 14s" and plays a short chime when a long Claude turn finishes; optional macOS/Linux system notificatio (Low risk)
- cm-git-branch: Shows the current git branch, how many files changed and ahead/behind counts in a one-line band above the prompt. (Low risk)
- cm-tool-call-counter: Counts Claude's tool calls per turn and per session, shows the count beside the spinner, and adds /tally for a per-tool (Low risk)