Home / Claude Code mods / Security / cm-block-dangerous-commands

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.

Updated 2026-10-07

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.

TypeClaude code mod
Authorrotbit
Repositoryrotbit/claudemods-marketplace
Popularityno public popularity data yet
CategorySecurity
SecurityLow risk (100/100)
Rank#4,454 of 5,272 Claude Code mods; #464 in Security
LicenseMIT
Last commit2026-10-07
Hooks2 events
SeesBash calls
Draws onnothing

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.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.ui.toastdraws interface

How do I install cm-block-dangerous-commands?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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
  3. 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)