The skill allows arbitrary command execution, data exfiltration,
Claims to do
Hook Development for Claude Code Plugins: Hooks are event-driven automation scripts that execute in response to Claude Code events. Use hooks to validate operations, enforce policies, add context, and integrate external tools into workflows.
Actually does
This skill provides comprehensive documentation and guidance on developing Claude Code plugin hooks. It details how to configure `prompt` and `command` type hooks, which can execute `bash` scripts, use `jq` for JSON parsing, and interact with files like `hooks/hooks.json` and environment variables. It also references external documentation at `https://docs.claude.com/en/docs/claude-code/hooks`.
The skill explicitly allows for the execution of arbitrary bash commands via 'command hooks' triggered by various events, posing a critical risk for system compromise.
{"type": "command", "command": "bash ${CLAUDE_PLUGIN_ROOT}/scripts/validate.sh"}Command hooks, with access to `$CLAUDE_PROJECT_DIR` and `$CLAUDE_PLUGIN_ROOT`, can be used to read sensitive files, enumerate system information, and exfiltrate data.
Available in all command hooks: - $CLAUDE_PROJECT_DIR - $CLAUDE_PLUGIN_ROOT
Multiple matching hooks run in parallel, and while timeouts are present, command hooks can still be designed to consume excessive resources up to their timeout, potentially leading to denial of service.
All matching hooks run in parallel
Prompt-based hooks allow LLM-driven decision making and can inject context or instructions into the agent's reasoning, potentially manipulating its perception or evading oversight.
{"type": "prompt", "prompt": "Evaluate if this tool use is appropriate: $TOOL_INPUT"}[](https://mondoo.com/ai-agent-security/skills/github/anthropics/claude-code/hook-development)<a href="https://mondoo.com/ai-agent-security/skills/github/anthropics/claude-code/hook-development"><img src="https://mondoo.com/ai-agent-security/api/badge/github/anthropics/claude-code/hook-development.svg" alt="Mondoo Skill Check" /></a>https://mondoo.com/ai-agent-security/api/badge/github/anthropics/claude-code/hook-development.svgSkills can read files, run commands, and access credentials. Mondoo helps organizations manage the security risks of AI agent skills across their entire fleet.