In short.
This guide explains the Claude Security plugin for developers reviewing their own code in Claude Code, but scans consume usage and cannot guarantee complete vulnerability detection. It documents full-repository and committed-change scans, model and provider requirements, structured reports, and a patch workflow with independent agent review. Detection accuracy, patch correctness, runtime and actual costs are not assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete selected page at [https://code.claude.com/docs/en/claude-security.md], including prerequisites, model and provider notices, installation and troubleshooting, scan scope and effort, report formats, patch review and related-tool comparisons. Linked pages, marketplace contents, plugin implementation, pricing and service terms are excluded. Installation, scans, model fallback, report generation and patches were not executed; operational behavior and effectiveness remain unverified.
The overview
Identity
The resource is Anthropic's documentation page for installing and using the Claude Security plugin in Claude Code: [https://code.claude.com/docs/en/claude-security.md]. It is a practical guide, rather than the plugin's implementation or an evaluation of its results.
The plugin provides on-demand scans inside a Claude Code session. The page distinguishes it from the separate Enterprise Claude Security service, which monitors connected repositories.
Assessment
The guide gives enough detail to understand prerequisites, choose a scan scope, interpret findings and request patches. Its strongest practical features are explicit coverage reporting, revision tracking and keeping patch application under the user's control.
It supports considering the plugin as an additional security-review layer. It does not establish how many vulnerabilities it detects, how often findings are wrong or whether generated fixes preserve application behavior in practice.
Users
The guide suits developers already using Claude Code who want to examine a repository, a sensitive area such as authentication, or committed changes before merging. Beginners receive a menu-based sequence; experienced developers get effort controls, provider details and machine-readable output formats.
Using findings responsibly requires understanding the affected code and reviewing proposed changes. Teams seeking continuous repository monitoring should distinguish this session-based plugin from the managed Enterprise service.
Capabilities
The plugin can scan a whole directory, a focused code area, a branch diff, a pull-request diff or a single commit. Full scans read the working tree and can operate without version control. Change scans examine committed changes and require Git.
Reports include impact, an exploit scenario, severity, confidence and recommendations. Outputs include Markdown, JSONL and SARIF 2.1.0 with CWE weakness classifications. A revision file records the scanned commit, effort, inclusion of uncommitted changes and verification coverage.
Users can request a separate patch for selected findings. The documentation says stale findings are skipped when the relevant code has changed, and patches remain unapplied until the user accepts them.
Using it
Requirements
The documented requirements are Claude Code access through a paid plan, Anthropic API access or a supported third-party provider; dynamic workflows; Python 3.9 or later available as python3 on PATH; and Linux, macOS or Windows. Pro users must enable Dynamic workflows in /config. The Python tooling uses only the standard library.
Git is required for change scans and patch generation. Discovering open pull requests additionally requires an authenticated GitHub CLI and existing session permission to run it. Claude Code must remain open while a scan completes.
The main agents use the session's model, while some supporting steps use the sonnet alias. Third-party deployments may need explicit model-version settings, including ANTHROPIC_DEFAULT_SONNET_MODEL. The plugin requires no separate model API key or provider configuration.
Mechanism
For a default medium-effort codebase scan, agents map the architecture, construct a threat model, search for vulnerabilities and independently verify candidate findings before reporting them. Low effort skips architecture mapping and threat modeling for codebase scans; high effort adds more vulnerability hunting. Independent finding verification applies at every effort level.
Patch generation uses a scratch copy of committed code. The page says a separate agent reviews each proposed patch and runs project tests when available. A patch is delivered only when that reviewer judges that it addresses the finding, introduces no new vulnerability and otherwise preserves behavior. These are documented review conditions, not independently demonstrated guarantees.
Setup
The documented terminal installation starts with claude, followed at its prompt by /plugin install claude-security@claude-plugins-official. Choose an installation scope in the plugin details and follow the installation summary, including /reload-plugins if requested.
If the marketplace is missing, the guide specifies /plugin marketplace add anthropics/claude-plugins-official. If the plugin cannot be found in an existing marketplace, it specifies /plugin marketplace update claude-plugins-official before retrying.
Once active, /claude-security opens the scan and patch menu. Choose Scan codebase, select the scope and confirm the run. The page also describes automatic plugin updates unless disabled, and removal through /plugin or claude plugin uninstall claude-security.
Example
A documented request is /claude-security scan my public API code at high. For a repository you own, this asks for a focused scan with additional hunting. After confirming the scope, inspect the report's coverage and each finding's impact, exploit scenario and confidence.
If a report contains finding F1, use Suggest patches to request its fix. Review the patch and accompanying note before applying git apply CLAUDE-SECURITY-<timestamp>/patches/F1.patch, then handle that change in its own pull request. F1 and the timestamp are illustrative placeholders; no actual finding or patch result is established.
Assessment & evidence
Limitations
Scans are nondeterministic: repeated scans of the same code can return different findings. A report without findings does not establish that the code is secure. Large repositories may need several focused scans, and the report's coverage section states what was and wasn't examined.
Change scans exclude uncommitted edits. Patch generation requires committed code that still matches the finding. When affected code lacks tests, the patch note records that review proceeded without a test pass.
Model safeguards can trigger fallback to another model; some third-party configurations may instead return a refusal. Detection accuracy, supported-language effectiveness, runtime and the reliability of patch review are not quantified.
Reasoning
The page calls low effort, which skips architecture mapping and threat modeling, a quick first look, which suggests these steps add depth; it does not state their purpose directly. Independent verification adds another review of candidate findings, while revision stamps help connect a report to the code examined. These design choices explain the workflow's potential usefulness, but do not measure its effectiveness.
The practical trade-off is additional model usage and human review in exchange for contextual security analysis. The page explicitly recommends retaining static analysis, dependency scanning and code review alongside the plugin.
Alternatives
The page positions the security guidance plugin for checking code as Claude writes it, /security-review for a single pass over the current branch, and Code Review for multi-agent pull-request review on Team and Enterprise plans. The Claude Security plugin provides the on-demand deeper scan.
For managed repository monitoring, it points to the separate Enterprise Claude Security service. Existing static-analysis and dependency scanners provide complementary rule-based and supply-chain checks. These comparisons come from this page; the linked resources were not assessed.
Evidence
The evidence is the complete documentation page at [https://code.claude.com/docs/en/claude-security.md], captured at 2026-11-15T02:06:40.402Z.
It supports descriptions of intended behavior, prerequisites, commands and output files. It includes no observed scan results, measured costs, detection benchmarks or independent patch validation. Plugin implementation code and linked pages are outside the evidence.
Access & freshness
Costs
Each scan counts toward Claude Code usage, and the page warns that scans can consume significant tokens. Higher effort, repeated scans and patch work should be considered when evaluating usage, but their actual consumption is unknown.
The page supplies no subscription prices, token rates, per-scan estimates or separate plugin price. Total cost and runtime cannot be calculated from this evidence. Access through an existing paid plan does not establish unlimited scanning.
Rights
The page carries no copyright or licence notice for its own text, and supplies no plugin licence, redistribution permission or terms governing generated patches. Public documentation and marketplace installation instructions do not establish those rights.
Source-code processing, retention and confidentiality terms are also unspecified. Running inside a local Claude Code session does not establish offline model inference or a particular data-handling arrangement.
Freshness
This page was captured on 15 November 2026; that is a capture date, not a publication date. The page provides no plugin release number, publication date or last-update date, so the exact documented plugin version is unknown.
Automatic plugin updates and provider-dependent model aliases can change behavior over time. Compatibility with a particular installed Claude Code version, marketplace release or model deployment is not established.
Actions
Before use, confirm dynamic-workflow access, Python availability and access to both the session model and the sonnet alias. For an initial evaluation, choose a focused area you own, inspect the reported coverage and measure actual usage.
Compare findings with existing security review and scanners. Review every proposed patch and its test notes, run appropriate project checks, and use a separate pull request for each accepted patch. Confirm applicable licensing and provider data-handling terms where those affect organizational use.
