Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By anthropics Verified Orgv0.13.1SEE LICENSE IN LICENSEIn 2 marketplaces
Scans your codebase for vulnerabilities with agents that map, hunt and independently verify each finding, then suggests patch files you apply when you choose. Hooks run on Bash calls and when its commands are invoked.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
1 critical · 1 caution to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; reads files; reads environment variables (COLORFGBG, COLORTERM, NO_COLOR, TERM, TERM_PROGRAM, WT_SESSION); reads your settings.
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
2 marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Live scan viewlive_view
Show a live map while a scan runs. For this, the plugin's own code runs inside Claude Code and reads the agents' prompts, calls and answers, the scanned files and your Claude Code settings
booleandefault true
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
Put a team of agents to work as security researchers on your codebase: map the architecture, hunt across every component, and independently verify every finding before it reaches the report. Then, if you want, turn the confirmed findings into suggested fixes delivered as targeted patch files you review and apply when you choose.
This is the in-your-session version of Claude Security, Anthropic’s hosted product for vulnerability detection and patching. It runs inside your Claude Code session, or from your shell with the claude-security command.
We recommend Claude Opus 5.5 or Fable 5.2 for best performance. Pick a model using Claude Code's /model command.
In Opus 5.5 or Fable 5.2, portions of a scan may occasionally be downgraded to Opus 4.8. The rest of the scan will complete on your chosen model. Please share feedback with /feedback so we can keep improving our cybersecurity safeguards.
A scan or a fix that you start in your Claude Code session runs under your permissions. There the plugin reads the repository you have open the same way you would, and a scan adds no isolation of its own: the directory's .git/config and its .claude/ settings and hooks apply.
That makes it a natural fit for code you control — your own repositories, where the question is which bugs are in the code rather than whether the code is trying something. Scan only code that you own or have permission to test. If you are scanning a repository that you do not trust, sandbox the whole session first (trust model), or, on Linux (not WSL 2), use the plugin's sandbox.
The plugin pre-approves only file reads and its own questions. Claude Code's own permission rules decide on each other call that Claude makes:
If a call of your session is refused, that step does not run. The plugin's instructions have Claude tell you what is missing, for example the report, or the cleaning of credential values from it. A refused call of one of a scan's agents may go unreported.
In Claude Code 2.1.271 or newer, the scan's agents start without your CLAUDE.md and AGENTS.md files; your own session still loads them. To scan without the repository's Claude Code configuration, start Claude Code with --setting-sources user (with the plugin installed at user scope).
A Read deny rule does not keep a file from every shell command that a scan runs, so keep secrets out of the whole repository and its git history.
Install from the official Anthropic marketplace, then reload plugins in the same session:
/plugin install claude-security@claude-plugins-official
/reload-plugins
If Claude Code reports that the marketplace is not found, run /plugin marketplace add anthropics/claude-plugins-official first, then retry.
Claude Code updates plugins by itself from a marketplace that has auto-update on. To update the plugin yourself, run these in your shell, not in a Claude Code session:
claude plugin marketplace update claude-plugins-official
claude plugin update claude-security@claude-plugins-official
The new version loads in your next session. claude plugin list shows the installed version.
Run /claude-security for the menu. It offers four jobs:
| Job | What it scans |
|---|---|
| Scan codebase | The whole repository, or a scoped part of it |
| Scan changes | This branch's committed diff, a pull request's diff (with its branch checked out), or the commit you have checked out |
| Vulnerability Triage | A list of findings that you already have |
| Suggest patches | A report's findings, turned into patch files |
You can skip the menu. Type the job after the command (/claude-security scan my branch at high) or ask in plain words ("run a Claude Security scan on the whole repo at medium"). A scan asks you once to confirm its time and token cost, unless your request already accepts it.
In your session, a scan reports each stage as it starts, with the detail available by running /workflows, then assembles the report when the agents are done.
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
claude plugin install claude-security@claude-plugins-officialPlugins from other owners that cover similar ground