security-hooks
Skill7 starsChanged 14 months agoMITView on GitHub
Use this skill to install ready-made Claude Code hooks for security — a ConfigChange compliance audit trail (logs every settings/skill change), plus PreToolUse guards and optional HTTP notifications for security-relevant events. Covers command, http, and prompt hook types.
In this repository15 other files it gives its agents.
- chrome-devtools-optimizer/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- batch-security-migrationSkill
- chrome-devtools-optimizerSkill
- claude-guideSkill
- cybersecurity-policy-generatorSkill
- docx-smart-extractorSkill
- gdpr-auditorSkill
- incident-response-playbook-creatorSkill
- pdf-smart-extractorSkill
- plugin-security-checkerSkill
- sbomSkill
- security-memory-templatesSkill
- security-report-builderSkill
- xlsx-smart-extractorSkill
The file
Files
Security Hooks Collection
Ready-made hooks for security and compliance.
Copy the entries you want from hooks/hooks.json into your
.claude/settings.json (or a plugin's hooks/hooks.json), then review them in /hooks.
What's included
| Hook | Event | Purpose |
| Config audit trail | ConfigChange | Appends every settings/skills change to ~/.claude/security-audit.log (JSONL) — compliance evidence. (#41) |
| Dangerous-bash guard | PreToolUse (Bash) | Prompt-hook that flags destructive shell commands before they run. |
| Sensitive-file write guard | PreToolUse (Write/Edit) | Warns on writes to credential/financial file patterns. |
| HTTP notify (optional) | ConfigChange / SessionEnd | POSTs a security event to a webhook (Slack/SIEM). Off until you set the URL. (#35) |
Install
# inspect the ready-made config
cat hooks/hooks.json
# merge the entries you want into your settings (review in /hooks afterwards)
# (the audit-trail command writes to ~/.claude/security-audit.log)The ConfigChange event (v2.1.49) matches user_settings, project_settings,
local_settings, policy_settings, skills. HTTP hooks (v2.1.63) POST JSON and read a
JSON response. All hooks receive session_id, cwd, permission_mode, hook_event_name.
Security note: hooks run with your privileges. Review every entry before enabling; the command hook here only appends to a local log and never executes scanned content.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

