Anthropic has released the Claude Security plugin (hereafter, "the plugin") for Claude Code, its AI tool for developers, in the official plugin marketplace. Multiple AI agents search a codebase for vulnerabilities, a separate agent verifies every finding before compiling them into a report, and the plugin goes on to propose fix patches. As of this writing it is in beta, and scans draw on the Claude usage allowance the user already has.
From scanning to patch proposals, all inside Claude Code
Running "/claude-security" at the Claude Code prompt opens a menu where you can choose jobs such as "Scan codebase" (a scan of the entire codebase), a scan of changes only, and "Suggest patches." You can also specify a job directly with an argument, as in "/claude-security scan my branch," or ask in natural language.
In a full scan, the agents first work out the structure of the repository and then look for vulnerabilities. Independent verification agents analyze the candidates they find, and only those that pass appear in the report. Each finding comes with its impact, an exploitation scenario, severity, confidence, and recommendations, along with a classification by CWE (the Common Weakness Enumeration, a catalog of vulnerability types).
Results are written to a timestamped directory inside the folder where Claude Code was launched. There are three formats: a Markdown report, JSONL with one finding per line, and SARIF 2.1.0, which tools such as GitHub code scanning can read.
A changes scan can target a branch diff, a pull request, or a single commit. Because it reads the whole repository as context rather than just the diff, it can also be used for pre-merge checks, according to Anthropic. The depth of the scan can be chosen from three levels, "low," "medium" (the default), and "high," and at every level the findings go through the same verification.
A separate agent reviews patches, and the user decides whether to apply them
For patch proposals, you select the findings you want to address, and patches are created in a working copy of the repository. A different agent from the one that wrote the patch then reviews it. Where possible, it runs the project's tests to confirm that the patch addresses the target finding, does not introduce new vulnerabilities, and does not change any other behavior.
Patches are never applied automatically. The user reads the note attached to each patch, applies it with git apply, and turns each one into its own pull request. You can also ask Claude to apply the patches and create the pull requests.
Also supports triage of other scanners' results and GitHub Actions
Beyond scanning and patching, the plugin offers the following features.
| Feature | Description |
|---|---|
| Vulnerability Triage | Checks against the code whether SARIF 2.1.0 files output by other scanners, or earlier scan results, are valid |
| Threat model | "/claude-security:threat-model" drafts a threat model that can be passed on to later scans |
| Attack surface analysis | "/claude-security:attack-surface-analysis" examines what is reachable from the outside and proposes changes that reduce exposure |
| GitHub Actions | Scans pull request changes and posts reviews and suggested fixes. It can also block merges and run periodic full scans |
| Hosted findings | Lets you view, within a session, the findings from "Claude Security," the product for Enterprise plans |
Findings rejected during triage are listed together in a dedicated section. Because genuine vulnerabilities with short descriptions are sometimes rejected, Anthropic asks that a person review this section.
For GitHub Actions jobs, Anthropic advises using them only in repositories where everyone with push access can be trusted. This is because anyone who can add text or code to a pull request branch can steer the scan. For pull requests from forks, jobs fail by default.
A paid plan or API access is required; pricing depends on usage
To install, run "/plugin install claude-security@claude-plugins-official" at the Claude Code prompt. In the VS Code extension or the desktop app, install it by following the plugin installation steps.
| Item | Requirement |
|---|---|
| Prerequisite | A paid plan, Anthropic API access, or a third-party provider such as Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry |
| Pro plan | Turn on "Dynamic workflows" in "/config" |
| Software | Python 3.9 or later (runnable as python3); Git for changes scans and patches |
| OS | Linux, macOS, Windows |
The plugin itself does not call a model; the agents run on the session's model. As a result, no separate API key is needed, and scans count toward the user's usage. Anthropic says scans can consume a large number of tokens, and that costs rise with the size of the repository, the depth of the scan, and the model. As of this writing, no standalone pricing for the plugin has been announced.
Anthropic also asks that you scan only code you own or are authorized to test. Scan results are not necessarily the same every time, and it recommends running scans regularly.
The author's take
Linking vulnerability detection, verification, patch creation, and independent review of those patches within the development environment people already use is a significant step. Having a separate agent verify candidates before they are listed should help developers who have long struggled with excessive false positives spend less effort reading reports. Being able to export to SARIF is also an advantage, since it makes the plugin easy to use alongside existing tools.
However, Anthropic itself acknowledges that scans are non-deterministic and that results can change even for the same code. Token consumption is also not negligible for large repositories. Using GitHub Actions comes with an operational prerequisite as well: who is able to push.
Still, developers who already use Claude Code can try it on their own repositories without any additional contract. Since the design leaves the decision to apply patches to a person, a realistic approach would be to start with a narrowly scoped "low" scan and use it to complement existing scanners.
Summary
Anthropic has released the Claude Security plugin as a beta; it performs vulnerability scanning, verification, and fix patch proposals inside Claude Code. It is aimed at developers who use Claude Code with a paid plan or the API and want to check the security of their own code. Detailed usage is covered on the official marketplace page and in the documentation.