PluginLow riskUnclaimed

security-guidance

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 of stale state files. Disable per-session with ENABLE_SECURITY_REMINDER=0. Ported from David Dworken's MIT-licensed plugin at github.com/alirezarezvani/aeo-box.

alirezarezvanialirezarezvani/security-guidance-plugin★ 30kVersion 2.14.5Updated Nov 17, 2026

Hosts

HostInstalls
Claude Code1 skill1 hook
CodexSkills only
OpenCodeSkills only

Members1 skill

  • security-guidanceUse when installing or tuning the PreToolUse security hook that warns before Claude writes command injection, XSS, SQL injection, unsafe deserialization, eval or GitHub Actions injection. Warns once per file and rule; ENABLE_SECURITY_REMINDER=0 turns it off.

Permissions

Full install
2.14.5

Runs on its own

  • HookClaude CodePreToolUsepython3 "${CLAUDE_PLUGIN_ROOT}/hooks/security_reminder_hook.py"
DeclaredDetected
Runs code—python
Installs—None
Runs install scripts—None
Network—alirezarezvani.comcwe.mitre.orgdocs.claude.comdocs.python.orggithub.bloggithub.compyyaml.orgreact.dev
Needs credentials—None
Outside the workspace—~/.claude
Agent tools—None

Checks

Low risk · Nothing worth a warning was found.

Not reviewed by a person · Checked by rules; the model review is not switched on yet.

Files6 files · 29.1 KB

.claude-plugin/2
  • authoring-notes.json523 B
  • plugin.json1.1 KB
hooks/2
  • hooks.json560 B
  • security_reminder_hook.py11.8 KB
skills/security-guidance/1
  • SKILL.md7.3 KB
skills/security-guidance/references/1
  • pretooluse_hook_canon.md7.9 KB

Versions

  1. #12.14.5latestNov 17, 2026

Open in Codeg

Or copy its address to search for in Codeg’s Discover.

alirezarezvani/security-guidance-plugin

No Codeg yet?Download