Skip to main content
plugin

security-guidance · alirezarezvani — Claude Code plugin: setup and checks

security-guidance — a PreToolUse hook for Claude Code flags common insecure patterns before file edits happen. It fits security checks inside an active coding session.

MIT ★ 30,251 updated 2026-10-23

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add alirezarezvani/claude-skills
/plugin install security-guidance@claude-code-skills
Open on GitHub

What security-guidance does

The plugin adds a PreToolUse hook around Edit, Write, and MultiEdit. It detects 12 security anti-patterns, including command injection through exec, os.system, or subprocess shell=True; XSS through innerHTML, dangerouslySetInnerHTML, or document.write; and SQL injection in f-string or .format queries. It also covers pickle, yaml.unsafe_load, eval, new Function, and GitHub Actions workflow injection.

Session state is cached so the same warning is not shown repeatedly. Stale state files are cleaned up after 30 days. Set ENABLE_SECURITY_REMINDER=0 to turn the reminders off for a session.

What it helps with

  • scan edits for command injection
  • spot XSS in innerHTML and document.write
  • flag unsafe SQL query interpolation
  • check for dangerous deserialization and code execution
  • review GitHub Actions workflow injection

Example prompts for the agent

  • Check these edits for command injection and XSS before saving them.
  • Review the database changes and flag unsafe SQL query construction.
  • Inspect this GitHub Actions workflow for injection risks.

How to install security-guidance

Plugin marketplace

/plugin marketplace add alirezarezvani/claude-skills
/plugin install security-guidance@claude-code-skills

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about security-guidance

How do I install security-guidance in Claude Code?

In Claude Code, add the marketplace with /plugin marketplace add alirezarezvani/claude-skills, then install the plugin with /plugin install security-guidance@claude-code-skills.

What does security-guidance do?

Its PreToolUse hook checks Edit, Write, and MultiEdit operations for 12 common insecure patterns before they happen.

Can I disable the security reminders for a session?

Yes. Set ENABLE_SECURITY_REMINDER=0 for that session. Cached session state also prevents duplicate warnings.

Source text

security-guidance · MIT
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.

© Alireza Rezvani · MIT · alirezarezvani/claude-skills

Similar plugins

All plugins for Security →

security-guidance by other authors comes first.

security-guidance official Anthropic security-guidance — a Claude Code plugin that reviews generated code in three layers. Regex warnings fire on edits, an LLM checks the diff after every turn, and an agentic reviewer walks related files before commits. ★ 47,914repo stars security-guidance Community security-guidance — a Claude Code hook flags possible security trouble while files are edited, including command injection, XSS, and risky code patterns. ★ 2,003repo stars security-guidance rohitg00 security-guidance — a plugin that spots vulnerabilities in your code and suggests fixes. Useful when you want to catch security problems before they reach review. ★ 2,858repo stars security-guidance David Dworken security-guidance — a hook that speaks up while files are being edited, flagging possible security trouble such as command injection or XSS. ★ 1,013repo stars security-review getsentry security-review finds injections, XSS, authorization flaws, and other vulnerabilities in code. Reports only high-confidence findings. CX Codex +1 23,800installs drupal-security madsnorgaard drupal-security — a coding-agent skill that nudges you toward safe Drupal patterns: parameterized queries, escaped output, permission checks. It activates on its own while you write forms, controllers or handle user input. CX Codex +1 933installs security-auditor ovachiever security-auditor scans your code for OWASP Top 10 patterns: SQL injection, XSS, exposed secrets, broken auth. Fires on file changes and before deployments. CX Codex +1 784installs Security Code Review kousen Security Code Review walks the agent through the OWASP Top 10 during code review, pairing each risky pattern with a safer one. Handy before a release or when reading unfamiliar code. CX Codex +1 4installs security-reviewer Affaan Mustafa The security-reviewer subagent for Claude Code scans code for SQL injections, hardcoded secrets, unsafe crypto, and OWASP Top 10 issues after work on user input, authentication, or API endpoints. CX Codex ★ 6,739repo stars PHP Security Patterns TheBushidoCollective PHP Security Patterns is a Claude Code skill with PHP security examples for form handlers and database queries: input validation, prepared PDO statements and output escaping. CX Codex +1 277installs

From the same set488

The whole set →
universal-scraping-architect The universal-scraping-architect Claude Code plugin routes web scraping tasks between Firecrawl and local Python tools. It helps extract site data while keeping track of token usage and quotas. ★ 30,251repo stars commercial-skills The commercial-skills plugin handles pricing, discounts, partner deals, RFPs, and sales forecasts. Use it for per-deal and packaging decisions in Claude Code. ★ 30,251repo stars business-operations-skills business-operations-skills is a Claude Code plugin with seven skills for internal operations: process mapping, vendor management, capacity planning, internal comms, knowledge base hygiene and procurement. ★ 30,251repo stars skillopt-sleep skillopt-sleep runs offline self-evolution cycles for Claude Code: mines past sessions, replays tasks, and stages validated CLAUDE.md and SKILL.md updates for manual review. ★ 30,251repo stars aeo aeo — a Claude Code plugin that tunes content for citation by ChatGPT, Perplexity, Claude, Gemini and Mistral. E-E-A-T audits, three rewrite modes and a local citation ledger run from the terminal. ★ 30,251repo stars deepread deepread analyzes books and PDFs with an evidence-first approach. Uses five reading modes to evaluate core arguments. ★ 30,251repo stars research-orchestrator The research-orchestrator plugin routes research questions to one of six specialist skills or runs its own search and synthesis workflow. It makes the routing choice visible. ★ 30,251repo stars notebooklm Drives Google NotebookLM from Claude: reads notebooks, adds sources, generates Studio outputs and creates new notebooks. ★ 30,251repo stars

Project sponsors

Companies that keep this analytics open