Event Hooks
Community

semgrep-plugin

3 events · 4 hooks

Install
1
Install the plugin
$
npx claudepluginhub anthropics/claude-plugins-official --plugin semgrep

Want just this hook?

Then install: npx claudepluginhub u/[userId]/[slug]

Risk Indicators
Modifies files
Source

Defined in hooks/hooks.json

Configuration
{
  "PostToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "semgrep mcp -k post-tool-cli-scan"
        }
      ],
      "matcher": "Write|Edit"
    }
  ],
  "SessionStart": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "semgrep mcp -k inject-secure-defaults"
        }
      ],
      "matcher": "startup"
    },
    {
      "hooks": [
        {
          "type": "command",
          "command": "${CLAUDE_PLUGIN_ROOT}/scripts/check_version.sh"
        }
      ],
      "matcher": "startup|resume|clear|compact"
    }
  ],
  "UserPromptSubmit": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "semgrep mcp -k inject-secure-defaults-short"
        }
      ],
      "matcher": ""
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": false,
    "matchAllTools": false,
    "touchesFileWrites": true
  },
  "typeStats": {
    "command": 4
  },
  "eventStats": {
    "PostToolUse": 1,
    "SessionStart": 2,
    "UserPromptSubmit": 1
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 1,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 4
  }
}
Stats
Stars2
Forks0
Last CommitFeb 26, 2026

Similar Hooks