Back to Hooks

Ai Bash Guard

Hooks security 81 Scanned by NVIDIA SkillSpector

AI-powered bash command security guard. Before any Bash command runs, a lightweight Claude subagent evaluates it for destructive or irreversible patterns — recursive deletes, force pushes to protected branches, database drops, and credential exposure — and blocks execution with a clear explanation if flagged. Uses PreToolUse with type:agent, which is the only hook pattern that can block tool execution via AI reasoning.

Install Command
npx claude-code-templates@latest --hook security/ai-bash-guard
View on GitHub
claude-code — ai-bash-guard

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.

2 observations
scanner score 31/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 ×2
    Tool Misuse · ai-bash-guard.json:10

Learn more about NVIDIA SkillSpector.

Content

JSON
{
"description": "AI-powered bash command security guard. Before any Bash command runs, a lightwei..."
"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.