Back to Hooks

Dangerous Command Blocker

Hooks security 1,322 Scanned by NVIDIA SkillSpector

Advanced protection against dangerous shell commands with multi-level security. Blocks catastrophic operations (rm -rf /, dd, mkfs), protects critical paths (.claude/, .git/, node_modules/), and warns about suspicious patterns. Features: catastrophic command blocking, critical path protection, smart pattern detection, and detailed safety messages.

Install Command
npx claude-code-templates@latest --hook security/dangerous-command-blocker
View on GitHub
claude-code — dangerous-command-blocker

Scanned by NVIDIA SkillSpector

Automated static analysis (no LLM) · v2.12.0 · 2026-10-17

Partial analysis: some checks could not run on this component.

11 observations
scanner score 45/100

SkillSpector looks for patterns such as shell commands, credential access, network calls or unpinned dependencies. An observation is something worth reading in the files before you install, not a confirmed vulnerability. Components that run code locally, like hooks, MCP servers and security tooling, naturally show more of them.

  • Tool Parameter Abuse ×4
    Tool Misuse · dangerous-command-blocker.py:39
  • Tool Parameter Abuse ×3
    Tool Misuse · SKILL.md:3
  • Tool Parameter Abuse ×3
    Tool Misuse · dangerous-command-blocker.json:2
  • Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: shell.
    MCP Least Privilege · SKILL.md:1

Learn more about NVIDIA SkillSpector.

Content

JSON
{
"description": "Advanced protection against dangerous shell commands with multi-level security. ..."
"supportingFiles": [
{3 keys}
]
"hooks": {
"PreToolUse": [1 item]
}
}

Stack Builder

0 components

Your stack is empty

Browse components and click the + button to add them to your stack for easy installation.