Claude Security
An official Anthropic plugin for Claude Code that scans a whole codebase or selected changes, asks independent agents to verify candidate vulnerabilities, and turns confirmed findings into patch files for the user to review and apply.
Project overview
Claude Security is a security-review component in Anthropic's official Claude Code plugin directory. It assigns codebase or change review to multiple security-research agents, builds an inventory and threat model, and asks independent verifiers to challenge candidate findings. Confirmed issues can be converted into standalone patch files, but the plugin does not apply, commit, or push them for the user. It is intended for repositories that the user controls and already trusts. Because it runs under the current Claude Code session permissions and adds no isolation, unfamiliar code should be opened only inside an OS-level sandbox.
Core capabilities
Full or scoped repository scans
The scan inventories components, develops a threat model, and allocates researcher agents by target size. Large repositories focus on attacker-reachable production code and add a dedicated committed-secret pass.
Security review of changes
A change scan begins with a committed diff, follows relevant data flow, and reports only flaws that the change participates in introducing or exposing. Uncommitted work is outside that diff.
Independent finding verification
Candidate findings go to independent verifiers that re-check the attack path in code. Workflow code calculates the vote tally and severity instead of trusting the reporting agent's claim.
Structured reports
Each completed scan produces Markdown, JSONL, SARIF 2.1.0, and a revision stamp with coverage, verification state, and whether uncommitted changes were included.
Controlled patch suggestions
Each confirmed finding gets an isolated temporary workspace and its own patch. A failed review produces a decline note, while the user's working tree remains unchanged.
Installation and usage
First confirm that the repository is code you control and trust. Install from Anthropic's official marketplace and reload plugins in Claude Code. For a first check, use a small test repository without sensitive data and verify the menu, permission prompts, and output path before running a wider scan.
Let an AI Agent install it
Send this prompt to Codex, Claude Code, or another AI agent that can work with your local environment.
Help me install Claude Security from https://github.com/anthropics/claude-plugins-official/tree/main/plugins/claude-security. First read the component README, LICENSE, SECURITY.md, and .claude-plugin/plugin.json. Check Claude Code, Python 3.9+, the repository trust boundary, and Git state before using the official marketplace commands and reloading plugins. After installation, only confirm the /claude-security menu and the report path it would write. Ask me before starting a scan, accepting significant time or token cost, reading sensitive directories, enabling extra network access, overwriting files, or applying any patch.- Claude Code
- Python 3.9 or newer available on PATH
- Access to github.com
- A Git checkout for change scans or patch suggestions
- A test repository that you control and trust
/plugin marketplace add anthropics/claude-plugins-official
/plugin install claude-security@claude-plugins-official
/reload-plugins- 1Confirm trust and runtime requirements
Start only in a test repository that you control. Confirm Python 3.9+ is on PATH. For change scans or patch suggestions, also confirm the directory is a Git checkout and the relevant work is committed.
- 2Add the official marketplace and install
In Claude Code, run /plugin marketplace add anthropics/claude-plugins-official, then /plugin install claude-security@claude-plugins-official and /reload-plugins. Omit the first command if the marketplace is already configured.
- 3Open the menu and choose a minimal target
Run /claude-security and verify all three jobs. For a first check, choose Scan codebase and restrict it to a small directory without sensitive data. Review the effort, scope, and time-and-token confirmation before the scan starts.
- 4Inspect the report and coverage
Open CLAUDE-SECURITY-<timestamp>/ after completion. Confirm that Markdown, JSONL, SARIF, and the revision stamp match the current commit, then read Coverage to see what was not scanned and why.
- 5Review redaction and patches
Manually inspect reports for credentials and sensitive code before sharing. If you later choose Suggest patches, review every .patch file and note, then apply it separately only after checking the change and project test results.
After installation and /reload-plugins, run /claude-security and confirm that Scan codebase, Scan changes, and Suggest patches appear. If you continue with a minimal scan, scope it to a small directory without sensitive data, explicitly accept the time and token cost, and check for a CLAUDE-SECURITY-<timestamp>/ directory containing Markdown, JSONL, SARIF, and a revision stamp. These steps were not executed for this listing.
- If the official marketplace is already available, marketplace add can be omitted. The README requires it only when Claude Code cannot find the marketplace.
- The plugin asks for confirmation of potential time and token cost before scanning. An unanswered prompt in automation or unattended use is not consent.
- For untrusted code, the component documentation recommends sandboxing the entire session with sandbox-runtime because the plugin has no sandbox of its own.
- Telemetry can be disabled with DISABLE_TELEMETRY=1, DO_NOT_TRACK=1, or CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1. CLAUDE_SECURITY_SCAN_TIP=off disables only the post-push scan suggestion.
Use cases
Pre-release repository review
Build a threat model for a repository or service directory that you control and receive independently verified findings plus an explicit coverage record.
Branch and commit security review
Review committed changes for new inputs, dangerous operations, and permission changes without assigning unrelated pre-existing issues to the current change.
SARIF integration
Send the generated SARIF 2.1.0 log to a code-scanning dashboard or IDE while keeping JSONL and the revision stamp for tracking.
Candidate patches for confirmed findings
Generate one-finding patch files in temporary copies of the repository and let maintainers decide manually whether to apply each reviewed result.
Assessment
This assessment is based on the component README, skill, job guides, workflow, hooks, license, and security policy; it does not present documentation review as hands-on use. Claude Security's main strength is a traceable pipeline from inventory and threat modeling through research, adversarial verification, structured reporting, and patch suggestions, with explicit coverage and revision records. Its constraints are equally important: scans consume model time and tokens, results are nondeterministic, the plugin trusts the repository and inherits session permissions, redaction is best effort, and the proprietary license substantially limits use and redistribution.
Why it may be useful
- Complete component-level documentation for installation, jobs, outputs, permissions, telemetry, licensing, and security reporting
- Independent verification before findings reach the report, with both human-readable and machine-readable output
- Patch generation does not change the user's working tree or automatically commit, push, or open pull requests
- Coverage and revision stamps help users interpret what a clean result actually examined
What to know first
- No installation or end-to-end test was performed, so detection rate, false positives, performance, and token cost were not independently measured
- The trust model is unsuitable for unfamiliar code unless the entire session is sandboxed
- Scans are nondeterministic and do not replace traditional security tools or human review
- The component is not Apache-2.0 open-source software; internal use, host, and redistribution are restricted by proprietary terms
README
Claude Security
Overview
An official Anthropic plugin for Claude Code that scans a whole codebase or selected changes, asks independent agents to verify candidate vulnerabilities, and turns confirmed findings into patch files for the user to review and apply. Deep vulnerability scanning and patch suggestions for trusted code, run entirely inside a Claude Code session.
Getting started
- First confirm that the repository is code you control and trust. Install from Anthropic's official marketplace and reload plugins in Claude Code. For a first check, use a small test repository without sensitive data and verify the menu, permission prompts, and output path before running a wider scan.
- The plugin provides three jobs: scan a codebase, scan changes, and suggest patches, available through the /claude-security menu or a direct natural-language request.
- A scan sizes its researcher agents by target and effort, then asks an independent panel to challenge candidate vulnerabilities.
- After installation and /reload-plugins, run /claude-security and confirm that Scan codebase, Scan changes, and Suggest patches appear. If you continue with a minimal scan, scope it to a small directory without sensitive data, explicitly accept the time and token cost, and check for a CLAUDE-SECURITY-<timestamp>/ directory containing Markdown, JSONL, SARIF, and a revision stamp. These steps were not executed for this listing.
Configuration
/plugin marketplace add anthropics/claude-plugins-official
/plugin install claude-security@claude-plugins-official
/reload-pluginsRead the complete README on GitHub →