Skip to main content
Back

Cyber Monday Deal: Get 20% off all AlphaSignal Pro subscriptions. Subscribe here. Use discount code LAUNCH2026. Ends soon.

Anthropic's Claude Security Now Blocks GitHub Merges With Multi-Agent Vulnerability Scans

Anthropic's Claude Security plugin now runs as a GitHub Action, triages SARIF scanner output, maps your attack surface, and can block merges on risky PRs.

  • Claude Security plugin for Claude Code now runs as a GitHub Action that reviews PRs and can block merges.
  • New Vulnerability Triage takes a SARIF file and returns valid findings ordered by fix priority.
  • Attack Surface Analysis finds exposed code paths you may not need and proposes patches to test.
  • Live terminal view streams each stage of a scan as it runs, instead of waiting silently.
  • Multi-agent design: separate verifier agents confirm findings and review patches before delivery.
  • Beta on paid plans, Claude API, and cloud providers; GitHub Action does not support subscription sign-in.

Anthropic has extended its Claude Security plugin for Claude Code into continuous integration. A new GitHub Action reviews pull requests for vulnerabilities, proposes committable fixes, and can block merges. The plugin also adds SARIF finding triage, attack surface analysis, and live scan progress.

A security agent at the PR gate

Until now, the plugin ran inside an interactive Claude Code session against a repository or diff. Multiple agents map the architecture, build a threat model, search for vulnerabilities, and independently verify findings. The GitHub Action runs that workflow automatically for pull requests, where maintainers can review suggested patches or configure serious findings to stop a merge.

CI runs require Anthropic API billing or supported cloud-provider billing. Pro and Max subscription credentials cannot authenticate the Action. Each scan can consume substantial tokens because several agents inspect the code and repeat parts of the analysis during verification.

Three ways to shrink the security queue

Capability Input Result
Vulnerability Triage A SARIF report Findings filtered for likely validity and ranked by remediation priority
Attack Surface Analysis A repository or focused code scope Exposed or unnecessary code paths, with proposed hardening or removal patches
Live scan view An active scan Stage-by-stage progress in the terminal

Vulnerability Triage accepts SARIF 2.1.0 files, the standard JSON format emitted by tools such as CodeQL, Semgrep, and Snyk. It evaluates the reported issues, removes findings it judges irrelevant or invalid, and orders the remaining work. That workflow targets a common static-analysis bottleneck: reviewing large reports filled with false positives and low-impact warnings.

Attack Surface Analysis searches for reachable code that may no longer serve a purpose, including unused endpoints, legacy authentication flows, and dormant handlers that still accept input. It can draft patches that remove those paths or restrict access. The live view exposes scan stages as they run, giving developers progress information before the final report is ready.

Discovery and verification stay separate

A scan assigns discovery and verification to separate agents. Findings enter the final report only after independent verifier agents analyze them, reducing unsupported or duplicate results.

Each run creates a timestamped directory containing:

  • A Markdown report with each finding’s ID, severity, confidence, exploit scenario, and remediation recommendation
  • A JSONL file containing the same findings for scripts and data pipelines
  • A SARIF 2.1.0 log with CWE mappings for GitHub code scanning
  • A revision stamp that records the exact commit analyzed

Patch generation receives a second review as well. An agent independent of the patch author inspects the diff, checks for newly introduced weaknesses, and runs the project’s tests when they are available. If that reviewer cannot confirm the fix, preserve expected behavior, and rule out new vulnerabilities, the plugin returns a note instead of a patch.

The plugin never applies patches automatically. It writes each approved change to an individual file such as patches/F1.patch, which a developer can inspect and apply with:

git apply patches/F1.patch

Install it in one command

Claude Code users can install the plugin from Anthropic’s official marketplace:

/plugin install claude-security@claude-plugins-official

The plugin’s Python tooling depends only on the standard library and requires Python 3.9 or later on PATH. Scans use the model selected for the current Claude Code session. Pro subscribers must first enable dynamic workflows through /config because multi-agent orchestration depends on that setting.

Layer it over deterministic scanners

Claude Security serves as a deeper reasoning layer within Anthropic’s broader security tooling. Each related product covers a different point in the development cycle:

  • The Security Guidance plugin identifies issues while Claude generates code.
  • /security-review performs a one-time branch review.
  • Code Review analyzes pull requests for Team and Enterprise customers.
  • The managed Claude Security product monitors connected repositories.
  • The Claude Security plugin performs multi-agent scans, triage, attack surface analysis, and patch generation.

Anthropic recommends running the plugin alongside static analysis and dependency scanning. Conventional scanners provide repeatable rule, package, and signature checks. Claude’s agents add architecture, control-flow, and exploitability analysis that can help prioritize those results.

Treat the CI agent as privileged

CI agents need their own threat model because they process untrusted pull-request content and may receive repository access, workflow credentials, or write permissions. Claude Code’s GitHub Action has previously received patches for a permission bypass and a prompt-injection path that could expose workflow secrets under specific conditions.

The disclosed permission issue received a CVSS 4.0 score of 7.8. Its checkWritePermissions function trusted any GitHub App actor as having write access. Both disclosed issues were fixed, but they illustrate the risks created when an LLM agent combines untrusted input with privileged CI capabilities.

Teams can reduce that exposure with standard CI controls:

  • Grant the Action only the repository permissions required for its configured behavior.
  • Withhold secrets from workflows triggered by untrusted forks.
  • Keep human review and branch protection around proposed changes.
  • Pin Action versions and review updates before deployment.
  • Audit workflow triggers, actor checks, and paths that can write to the repository.

Choose the cadence by risk

Vulnerability Triage suits teams that already generate SARIF reports faster than they can review them. The GitHub Action is a stronger fit for repositories where deeper pull-request analysis justifies additional latency and token use, including services that handle authentication, payments, or sensitive user data. Attack Surface Analysis works well as a periodic repository audit.

Large repositories can limit scans to focused scopes such as authentication code, API handlers, or payment flows. Narrowing the input reduces token consumption and keeps reports tied to the code under active review.

Scan results can vary between runs because model output is nondeterministic. Anthropic recommends recurring scans, and teams enabling merge blocking should first run the Action without enforcement to measure runtime, token cost, and false-positive rates on their own codebase.