Sign in
Explore
Add-ons · HookTesting & SecurityReviewedRuns shell commands

claude-security/hooks.json

Shows the Claude Security banner when its menu opens, times out an unanswered scan question after 60 seconds, and suggests a scan after a push.

Kind
Hook
Works with
Claude Code
Source
anthropics/claude-plugins-official @ 58267944f921
Path
plugins/claude-security/hooks/hooks.json
License
Apache-2.0
Jobs
Guardrails
InstallInstall it from a plugin marketplace.
/plugin install claude-security@claude-plugins-official
{
  "description": "Shows the Claude Security banner when the /claude-security menu opens, reports usage counts after the plugin's helper scripts run, closes the yes/no question asked before a scan starts if it is left unanswered for 60 seconds, and suggests a scan of the changes after a branch is pushed or a pull request opened.",
  "hooks": {
    "UserPromptExpansion": [
      {
        "matcher": "^claude-security:claude-security$",
        "hooks": [
          {
            "type": "command",
            "command": "sh \"${CLAUDE_PLUGIN_ROOT}/hooks/hooks.sh\" banner"
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "sh \"${CLAUDE_PLUGIN_ROOT}/hooks/hooks.sh\" metrics || true",
            "if": "Bash(py* *claude-security*scripts/*.py *)",
            "async": true,
            "asyncRewake": true,
            "timeout": 10
          },
          {
            "type": "command",
            "command": "sh \"${CLAUDE_PLUGIN_ROOT}/hooks/hooks.sh\" tip push || true",
            "if": "Bash(git push *)",
            "timeout": 5
          },
          {
…