Agent Plugin

Security Guidance
Multi-layered security review system that catches vulnerabilities in Claude-generated code through pattern matching, LLM-powered diff analysis, and agentic commit reviews.
What is Security Guidance?
Security Guidance provides comprehensive vulnerability detection for code written with Claude Code through a sophisticated three-tier defense system. The first layer employs instant regex-based pattern warnings that catch approximately twenty-five known dangerous patterns the moment Claude writes or edits code, alerting to risks like unsafe YAML loading, insecure pickle deserialization, raw innerHTML assignments, and hardcoded credentials. The second layer activates when Claude completes a turn, sending the code diff to a fast language model that performs security-focused analysis and reports high-severity findings back to Claude before you even see the response, enabling automatic fixes. The third layer triggers during git commits, deploying an agentic reviewer powered by the Claude Agent SDK that reads related files across your codebase to trace data flow and identify multi-file vulnerabilities that simple pattern matching cannot detect, such as authorization bypasses, IDOR issues, and cross-file SSRF chains. Coverage spans common web vulnerability classes including injection attacks, XSS, SSRF, hardcoded secrets, authentication bypasses, unsafe deserialization, and path traversal among others. The system ships enabled by default in the official Claude Code plugin marketplace and requires minimal configuration.
Key capabilities
Real-Time Pattern-Based Warnings
Instantly detects dangerous code patterns using regex matching as Claude writes or edits files, catching approximately twenty-five known vulnerability signatures including unsafe deserialization functions, insecure YAML loading, raw HTML injection points, and embedded credentials before they enter your codebase.
LLM-Powered Diff Review on Stop
Automatically sends code diffs to Claude Opus 4.7 when Claude finishes each turn, performing intelligent security analysis that identifies high-severity vulnerabilities and feeds findings back to Claude for immediate correction before presenting the response to you.
Agentic Multi-File Commit Analysis
Activates during git commit operations to deploy an SDK-driven agent that reads related files using Read, Grep, and Glob operations, tracing data flow across your entire codebase to catch sophisticated multi-file vulnerabilities like IDOR, authorization bypass, and cross-file SSRF that pattern matching cannot detect.
Configurable Review Layers and Models
Provides granular control over each security layer through environment variables, allowing you to enable or disable pattern rules, LLM reviews, or agentic analysis independently, customize the model used for reviews, and activate higher-recall dual-review mode for critical projects.
Use cases
Preventing Injection Vulnerabilities in Web Applications
When building web applications with Claude, the plugin automatically identifies SQL injection risks, command injection patterns, and XSS vulnerabilities across templates and backend code, catching unsafe string concatenation, unescaped output, and missing parameterization before deployment.
Detecting Authentication and Authorization Flaws
For applications with user authentication, the agentic commit reviewer traces authentication flows across multiple files to identify missing authorization checks, IDOR vulnerabilities where users can access unauthorized resources, and authentication bypass patterns that single-file analysis would miss.
Catching Hardcoded Secrets Before Repository Commits
Prevents accidental exposure of API keys, database passwords, and authentication tokens by scanning for hardcoded credential patterns in edited files and commit diffs, alerting developers before sensitive data reaches version control systems.
Identifying Unsafe Deserialization in Data Processing
When Claude implements data processing pipelines that handle external input, the plugin detects dangerous deserialization patterns like unrestricted pickle.load, unsafe YAML parsing, and torch.load without weights_only protection, preventing remote code execution vulnerabilities.
Included components
Hooks
Security Guidance
Installation scope
- Python 3.8+
