security-guidance/hooks.json
Warns on risky edits with pattern checks, and runs a diff-based review when a session stops.
- Kind
- Hook
- Works with
- Claude Code
- Source
- anthropics/claude-plugins-official @ 58267944f921
- Path
- plugins/security-guidance/hooks/hooks.json
- Jobs
- Guardrails, Review
- Topics
- Security audits, Guardrails & permissions
Credit
- Made by
- anthropics
- Original
- github.com/anthropics/claude-plugins-official/blob/58267944f9…
- License
- Apache-2.0
Listed by Skill Manifest; not made by us.
InstallInstall it from a plugin marketplace.
/plugin install security-guidance@claude-plugins-official
Install factsScanned 2 Nov 2026
- Adds
- Entries under `hooks` in .claude/settings.json
- Hook on SessionStart
- Hook on UserPromptSubmit
- Hook on PostToolUse
- Hook on Stop
- Runs scripts
- Yes
- ${CLAUDE_PLUGIN_ROOT}/hooks/sg-python.sh
- hook command runs on every matching event
- Uses the network
- None found
- Needs secrets
- None found
- Source revision
- 58267944f921
- Licence
- Apache-2.0
- Last activity
- 1 Nov 2026
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
{
"description": "Security guidance plugin — pattern-based warnings on edits, git-diff-based LLM review on stop",
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/sg-python.sh\" \"${CLAUDE_PLUGIN_ROOT}/hooks/ensure_agent_sdk.py\"",
"timeout": 180
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/sg-python.sh\" \"${CLAUDE_PLUGIN_ROOT}/hooks/security_reminder_hook.py\""
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/sg-python.sh\" \"${CLAUDE_PLUGIN_ROOT}/hooks/security_reminder_hook.py\""
}
],
"matcher": "Edit|Write|MultiEdit|NotebookEdit"
},
{
"hooks": [
{
"type": "command",
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/sg-python.sh\" \"${CLAUDE_PLUGIN_ROOT}/hooks/security_reminder_hook.py\"",
…