Claude Code Security Reviewer plugin

An Anthropic GitHub Action that checks pull request changes for vulnerabilities with Claude and leaves comments

  • 6,626 ★ on the repository
  • Last commit
  • MIT
Plugin

Extended access

Why this level

  • Sends code changes to the Anthropic API
  • Posts PR comments and is not hardened against prompt injection
All reasons and checks
Needs a VPN

anthropics/claude-code-security-review

Install

Works in

Manual install

name: Security Review

permissions:
  pull-requests: write
  contents: read

on:
  pull_request:

jobs:
  security:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          ref: ${{ github.event.pull_request.head.sha || github.sha }}
          fetch-depth: 2

      - uses: anthropics/claude-code-security-review@main
        with:
          comment-pr: true
          claude-api-key: ${{ secrets.CLAUDE_API_KEY }}

Save as .github/workflows/security.yml and add the CLAUDE_API_KEY secret.

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • Sends code changes to the Anthropic API
  • Posts PR comments and is not hardened against prompt injection

This is third-party code. Review the repository files before installing.

What it does

The action runs on a pull request, gives Claude only the changed files and looks for security issues: injections, auth flaws, secret leaks, weak crypto, XSS, unsafe deserialization. Findings are posted as comments on specific lines with an explanation and fix advice. A separate filter drops noisy findings such as DoS and rate limiting. Scan and filter instructions can be extended with your own files, and the same logic is available in Claude Code via /security-review.

Who it is for. For GitHub teams that want an extra security pass on every PR.

Good fit when

  • You want automatic vulnerability checks on PRs
  • Classic SAST produces too many false positives
  • You want checks tuned to your company's rules

Not a fit when

  • PRs come from untrusted external contributors without prior approval
  • You need deterministic, reproducible scan results

Example request

Add automatic Claude security review of PRs to this repository

Limitations

It needs an Anthropic API key enabled for both the Claude API and Claude Code; Anthropic accounts and billing are not available from Russia. The authors state the action is not hardened against prompt injection, so use it only on trusted PRs. Results are non-deterministic and do not replace a full audit.

How to disable. Delete .github/workflows/security.yml or remove the action step from the workflow.

FAQ

Is the whole repository scanned?

No, for PRs only changed files are analyzed.

Can I use it without GitHub Actions?

Yes, Claude Code has a /security-review command you can customize by copying security-review.md into .claude/commands/.

Discussion

No questions or reviews yet.

Plugins

AgentShield audits the .claude folder for plaintext keys, broad permissions, dangerous hooks and risky MCP servers and grades the setup from A to F

CLIExtended access1.3KRepository stars

A marketplace of 22 hook plugins for Claude Code: safety, cost control, observability and automation

PluginExtended access567Repository stars

A Claude Code hook that rates Bash command risk with rules and Haiku, asking for approval only on risky commands

PluginExtended access6Repository stars

An audit script for macOS and Windows that shows what widens the agent's reach in Claude Desktop and changes nothing itself

CLIExtended access300Repository stars
Official

Anthropic's reference set for defending code: threat-model, vuln-scan, triage and patch skills in Claude Code plus an autonomous vulnerability pipeline

SkillBroad access7.7KRepository stars

Comparison with similar tools

Entries that share the main search query, and how they differ.

EntryOfficialRepository starsMain difference
Claude Code Security Reviewer (this entry)no6,626
Bug Hunterno540an adversarial code-audit skill
OpenQodexno1,033openQodex reviews your change before a push
Mantisyes2,66519 Google skills to find

README in short

The README provides a ready workflow, a prompt injection warning and an input table: model, timeout, excluded directories, custom instructions. It describes the Python architecture, review stages and vulnerability classes. The /security-review command in Claude Code and its customization are covered separately. MIT licensed.

README badge

Report a problem

Foxx AIClaude Code Security Reviewer
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.