Claude Code Security Review: Which Plugin Fits Your Code?

Claude Code security review can start with a built-in command, and this page compares 9 plugins that add more. Three run inside Claude Code with no outside account. The other six link Claude to a security service, and you need an account there. Below, you will see what each plugin checks that the others do not, and what it needs before it runs.

What Does The Built-In Command Check?

Claude Code comes with a /security-review command, so you can run a first check before you install any plugin at all. Type it, and Claude reads the diff between your branch and the default branch on origin. The docs say it looks for risks like injection, auth issues and data exposure. You need an origin remote for it to work. Note that it makes one pass, and only over the changes on your branch. Plugins go further. Claude Security can scan the whole repo, and Security Guidance checks code as Claude writes it. Sonatype Guide checks your packages, and NightVision and StackHawk test a running app.

What Each Plugin Ships With

PluginSkillsCommandsAgentsMCP
Claude Security109No
Security Guidance000No
Security Scanning532No
Semgrep300Yes
Aikido400Yes
Sonatype Guide100Yes
Nightvision500No
Stackhawk Hawkscan100No
42crunch API Security Testing500No

Claude Security

Anthropic made this plugin to scan your code the way a security researcher would. Its agents map your app, build a threat model and hunt through every part of it. You open the /claude-security menu and pick a job. It can scan the whole repo or only your changes, down to one commit.

Each finding has to pass a second check that tries to prove it wrong, and you never see the ones that fail. It can also turn findings into patch files, but it does not apply them for you, so you choose what goes into your code.

You need Python 3.9 or newer on your PATH. You also need a paid plan, Anthropic API access or a third-party provider. The plugin makes no model calls of its own, so you do not set up a separate key.

/plugin marketplace add anthropics/claude-plugins-official
/plugin install claude-security@claude-plugins-official

Claude Security

Security Guidance

This plugin reviews the code Claude writes, in three layers. You never run it by hand, because it starts on its own once it is installed. Its findings cover flaws like injection, XSS, SSRF, hardcoded secrets and path traversal.

It checks for about 25 known risky patterns while Claude edits a file. When Claude stops, it reviews the git diff. On each commit, a reviewer reads the related files too. You can also add your team's own rules in a claude-security-guidance.md file.

You need Claude Code 2.1.144 or newer, plus Python 3.8 or newer on your PATH. The pattern warnings need no sign-in. The reviews use your Claude Code sign-in, an API key or a third-party provider.

/plugin marketplace add anthropics/claude-plugins-official
/plugin install security-guidance@claude-plugins-official

Security Guidance

Security Scanning

Seth Hobson made this plugin to cover several kinds of security work. It has 3 commands. One runs static analysis (SAST), one checks your dependencies and one hardens your app. The SAST command names Python, JavaScript, TypeScript, Java, Ruby, PHP, Go and Rust.

It is the only plugin here with skills for STRIDE threat models and attack trees. Its auditor agent also covers compliance rules for GDPR, HIPAA and SOC 2. No other plugin here names those rules.

Its files do not name any account or key that you need.

/plugin marketplace add wshobson/agents
/plugin install security-scanning@claude-code-workflows

Security Scanning

Semgrep

Semgrep's plugin scans the code that Claude writes for security flaws. It checks each file with Semgrep Code, Supply Chain and Secrets. One install brings you the Semgrep MCP server and a set of hooks.

Its hooks fire on every file write. When a scan finds a flaw, Claude rewrites the code until the scan is clean or you dismiss the finding. A skill also lets you add your own Semgrep rule, so the scan catches a pattern your team cares about.

You log in to a Semgrep account, and semgrep.dev holds your account details. The files Claude writes or edits go to scanner.semgrep.ai for the scan.

/plugin marketplace add anthropics/claude-plugins-official
/plugin install semgrep@claude-plugins-official

Semgrep

Aikido

Aikido's plugin scans the files Claude adds or changes for code flaws and exposed secrets. Its skill tells Claude to run a scan each time it writes code. If the scan finds a problem, Claude fixes it and scans again, up to 3 times.

It is the only plugin here that names infrastructure as code (IaC) in its scan. It can also list the issues in your Aikido feed, from leaked secrets to malware and cloud issues.

You sign in to an Aikido account through its setup skill. Its MCP server needs Node.js 18.19.0 or newer. Each scan request can hold up to 50 files.

/plugin marketplace add anthropics/claude-plugins-official
/plugin install aikido@claude-plugins-official

Aikido

Sonatype Guide

Sonatype's plugin checks the open source packages that your code uses. It looks for known flaws, license risks and Developer Trust Scores. It can also tell you which version to move to.

It checks a package before Claude installs or upgrades it, not just when you ask. Its skill tells Claude that it must run before Claude adds any dependency. No other plugin here steps in at that point.

You need a Sonatype Guide account and an API token. You save the token as the SONATYPE_GUIDE_TOKEN variable on your machine.

/plugin marketplace add anthropics/claude-plugins-official
/plugin install sonatype-guide@claude-plugins-official

Sonatype Guide

Nightvision

NightVision tests running web apps and REST APIs for flaws that an attacker could use. This plugin gives Claude 5 skills for that work. They set up and run a scan, and then they sort through what it finds.

It can find the REST endpoints in your source code before it tests them. A skill adds its scans to your pipeline in GitHub Actions, GitLab CI, Azure DevOps, Jenkins, Bitbucket or JFrog. It can also export what it finds as a CSV file, which no other plugin here offers.

You need a NightVision account, a project and a token. Every action runs under your own account in the NightVision MCP server.

/plugin marketplace add anthropics/claude-plugins-official
/plugin install nightvision@claude-plugins-official

Nightvision

Stackhawk Hawkscan

StackHawk's plugin runs HawkScan, which tests your running app for flaws. It writes the stackhawk.yml file and runs the scan through the CLI or Docker. Then it turns each finding into a fix task for Claude.

It is the only plugin here that names gRPC and SOAP apps, and it tests GraphQL apps too. After each commit, a hook tells Claude to scan it. Another hook speaks up when code changed in a session but no scan ran.

You need a StackHawk account and a StackHawk API key. You also need the hawk CLI or Docker on your machine.

/plugin marketplace add anthropics/claude-plugins-official
/plugin install stackhawk-hawkscan@claude-plugins-official

Stackhawk Hawkscan

42crunch API Security Testing

42Crunch's plugin checks the security of your API. It audits your OpenAPI spec and scans a running API for broken access rules, known as BOLA and BFLA. Claude asks you before it applies any fix.

It gives your spec a security score from 0 to 100, and no other plugin here scores a spec. It can also write a full openapi.json file from your API's source code.

You need a 42Crunch account and a Platform API key. Its 42c-ast tool downloads by itself the first time you use it. For a scan, your API has to be running at the URL in your spec.

/plugin marketplace add anthropics/claude-plugins-official
/plugin install 42crunch-api-security-testing@claude-plugins-official

42crunch API Security Testing

Which One Should You Start With?

Start with Claude Security if you want a deep scan of the whole repo and no outside account. Pick Security Guidance if you want checks to run on their own while Claude writes code. Security Scanning fits when you want threat models or compliance notes, also with no account. If your team already uses Semgrep or Aikido, their plugins scan the code Claude writes. Use Sonatype Guide to check a package before Claude adds it. To test a running web app, look at NightVision or StackHawk. For an API with an OpenAPI spec, pick 42Crunch.

Ad Sponsor this spot. Reach developers who pick skills