PreToolUse security reminder hook for Claude Code. Catches 12 common security anti-patterns in Edit/Write/MultiEdit operations BEFORE they happen — command injection (exec, os.system, subprocess shell=True), XSS (innerHTML, dangerouslySetInnerHTML, document.write), SQL injection (f-string queries, .format), unsafe deserialization (pickle, yaml.unsafe_load), code injection (eval, new Function), and GitHub Actions workflow injection. Session-state caching prevents duplicate warnings; 30-day auto-cleanup. Disable per-session with ENABLE_SECURITY_REMINDER=0. Ported from David Dworken at Anthropic.

version
2.14.1
GitHub stars
28.8K

Install

/plugin install security-guidance@claude-code-skills

Run it inside Claude Code after adding the marketplace with /plugin marketplace add alirezarezvani/claude-skills.

Contents

Discovered from source

Hooks 1

Sponsors

Details

Marketplace
alirezarezvani/claude-skills
Source
engineering/security-guidance
Author
Alireza Rezvani
Category
development
Keywords
security, hook, pretooluse, command-injection, xss, sql-injection, eval, pickle, engineering, static-analysis

More from alirezarezvani/claude-skills

All 111