Claude Code ships a security-guidance plugin for in-session vulnerability checks
Anthropic shipped an official security-guidance plugin for Claude Code. It runs automatic vulnerability checks while Claude edits files, at the end of each turn, and when Claude runs commits or pushes through its Bash tool.
Anthropic shipped an official security-guidance plugin for Claude Code, designed to catch common vulnerabilities while Claude is writing and editing code, and to help fix issues in the same session. Source: ClaudeDevs announcement.
What's new
Once installed, the plugin runs automatically and reviews Claude's changes at multiple points (lightweight checks on every edit, plus deeper reviews at end-of-turn and on Claude-run commits/pushes). Source: Claude Code security guidance docs.
The goal is to surface issues like injection risks, unsafe deserialization, and unsafe DOM APIs before they make it into a pull request. Source: Claude Code security guidance docs.
How to Install
In a Claude Code session, install the plugin from Anthropic's official marketplace:
/plugin install security-guidance@claude-plugins-official
Then activate it in the current session:
/reload-plugins
Source: Claude Code security guidance docs.
Requirements and Notes
- Claude Code CLI 2.1.144 or later
- Python 3.8+ on your
PATH - A git repository in the directory you're working in (some reviews rely on diffs against git state)
Source: Claude Code security guidance docs.
The docs also note that on first run the plugin creates a virtual environment under ~/.claude/security/ and installs the Claude Agent SDK into it, which requires pip and network access. Source: Claude Code security guidance docs.
When to use it
If you're already letting Claude Code make multi-file edits or run refactors, this plugin is a low-friction way to add security review earlier in the workflow -- before PR review, CI scanning, or human security review. Source: Claude Code security guidance docs.
Read next
Related coverage- Claude Code
Claude Code 2.1.142: `claude agents` Gains Session Flags, Fast Mode Defaults to Opus 4.7, MCP Tool Timeout Honored
Claude Code 2.1.142 (May 14, 2026) added eight dispatch flags to `claude agents`, moved fast mode's default from Opus 4.6 to Opus 4.7, and made `MCP_TOOL_TIMEOUT` lift the 60-second cap on remote MCP servers. The flags and timeout fix stand; fast mode now defaults to Opus 5.5 (v2.1.280 and later) at $8/$40 per MTok.
- Claude Code
Claude Code Routines: Schedule, API, and GitHub-Trigger Your AI Agents
Claude Code Routines is Anthropic's new way to run saved Claude Code configurations automatically -- by schedule, API call, or GitHub event. Routines run on Anthropic's cloud infrastructure with a prompt, repo, and MCP connectors. Available in research preview on Pro, Max, Team, and Enterprise plans.
- Claude Code
Claude Code Mods Let Developers Customize the CLI and Desktop App
Anthropic introduced Claude Code mods as a plugin-based way to customize how Claude Code behaves and looks. Small JavaScript or TypeScript modules can add interface elements, change tool calls, or replace built-in features. Mods run with Claude Code's access to your machine, so review their source before installing.
- Claude Code
Claude Code Adds Plugin Evals for Regression Testing and No-Plugin Baselines
Claude Code now includes `claude plugin eval`, a testing workflow for plugin and skill authors. The command can create cases and graders, run a plugin in isolated non-interactive sessions, compare results with a no-plugin baseline, generate an HTML report, and support CI gates for plugin changes. Evals require Claude Code v2.1.269 or later and consume model usage.
Frequently Asked Questions
What is the Claude Code security-guidance plugin?
Security guidance is an official Claude Code plugin that reviews Claude's code changes for common vulnerabilities and prompts Claude to fix issues in the same session.
How do you install the security-guidance plugin in Claude Code?
From a Claude Code session, run `/plugin install security-guidance@claude-plugins-official`, then run `/reload-plugins` to apply the plugin in the current session.
What are the prerequisites for the security-guidance plugin?
Anthropic's docs list Claude Code CLI 2.1.144+, Python 3.8+ on your PATH, and working inside a git repository (some review layers diff against git state).
Get an email when Claude Code changes its plans, prices or limits
We check every change against Claude Code's own pages before we send. You also get the weekly AI Catchup; one click unsubscribes.