Security hooks

75 tagged Security, measured the same way as everything else here.

Browse within: claude-code-plugin 112cli 46agentic-ai 43agents 34cursor 34LLM 30ai-coding 29ai-security 28ai-tools 25mcp-server 22model-context-protocol 22skills 21hooks 20Orchestration 19

PreToolUse

25

dinhanhthi/coding-friend

Hook Claude Code

One of 8 in hooks.json

Runs before the agent uses a tool for Read, Write, Edit, Glob, Grep and apply_patch tool calls, executing privacy-block.sh and scout-block.cjs (2 commands). From dinhanhthi/coding-friend.

not rated 4 12d ago A tokens not measured original MIT

BeforeTool

26

tractorjuice/arckit-gemini

Hook Claude Code

One of 4 in hooks.json

Runs on the BeforeTool event for write_file, write_file and edit_file tool calls, executing validate-filename.py and file-protection.py via python3 (2 commands). From tractorjuice/arckit-gemini.

not rated 4 6d ago A tokens not measured original

BeforeTool

27

kenryu42/gemini-safety-net

Hook Claude Code

Runs on the BeforeTool event, running npx -y cc-safety-net hook --gemini-cli. From kenryu42/gemini-safety-net.

not rated 3 2mo ago A tokens not measured original MIT

PreToolUse

28

lsiyu241-creator/awesome-claude-cookbook

Hook Claude Code

One of 3 in settings.json

Runs before the agent uses a tool, executing pre-write.sh and pre-bash.sh (2 commands). From lsiyu241-creator/awesome-claude-cookbook.

not rated 3 5mo ago A tokens not measured copy · 100% MIT

PostToolUse

29

ronmkr/PromptBook

Hook Claude Code

One of 4 in hooks.json

Runs after a tool call finishes for Edit, Write, MultiEdit, NotebookEdit and Bash tool calls, executing sg-python.sh via bash (6 commands). From ronmkr/PromptBook.

not rated 2 6mo ago A tokens not measured original Apache-2.0

PreToolUse

30

TrevorEdris/fellowship-of-the-workflows

Hook Claude Code

One of 4 in hooks.json

Runs before the agent uses a tool for Bash, Read, Edit, Write and Bash tool calls, executing block-dangerous-commands.js and protect-secrets.js (2 commands). From TrevorEdris/fellowship-of-the-workflows.

not rated 2 5mo ago A tokens not measured

PreToolUse

31

workspace-json/codex-mcp

Hook Claude Code

Runs before the agent uses a tool for ^apply_patch$ tool calls, executing pre-edit-check.mjs via node. From workspace-json/codex-mcp.

not rated 2 3mo ago A tokens not measured original Apache-2.0

PreToolUse

32

Ezee234/symbi-gemini-cli

Hook Claude Code

One of 2 in hooks.json

Runs before the agent uses a tool for write_file, replace, run_shell_command and symbi__* tool calls, executing policy-guard.sh and policy-log.sh (2 commands). From Ezee234/symbi-gemini-cli.

not rated 1 1mo ago A tokens not measured copy · 100% Apache-2.0

SessionStart

33

Blekline/blekline-oss

Hook Claude Code

One of 4 in hooks.json

Runs when a session starts on startup and resume, executing blekline-session-start.sh. From Blekline/blekline-oss.

not rated 1 9d ago A tokens not measured AGPL-3.0

BeforeTool

34

Checkmarx/cx-agentic-ai

Hook Claude Code

One of 2 in hooks.json

Runs on the BeforeTool event for mcp_.*, WriteFile, write_file, write_.*, replace, mcp_.*, WriteFile, write_file, write_.*, replace and run_shell_command tool calls, executing cx_check.sh, cx_run.sh and cx_record_login.sh via sh with --gemini-cli (4 commands). From Checkmarx/cx-agentic-ai.

not rated 1 2d ago A tokens not measured original Apache-2.0

PreToolUse

35

igoyetche/paperboy

Hook Claude Code

One of 2 in settings.json

Runs before the agent uses a tool for Bash tool calls, executing block-dangerous-commands.sh. From igoyetche/paperboy.

not rated 0 6mo ago A tokens not measured

PreToolUse

36

javierfajardo85-rgb/aiaam-xyz

Hook Claude Code

One of 3 in settings.json

Runs before the agent uses a tool for Bash tool calls, executing bash-firewall.sh. From javierfajardo85-rgb/aiaam-xyz.

not rated 0 5mo ago A tokens not measured archived

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: