Claude Security can now block vulnerable code from being merged on GitHub
Claude Security, a Claude Code plugin in beta, reviews pull requests as a GitHub Action and suggests fixes, Anthropic’s Claude Code team said. Users cannot run the Action by signing in with a Claude subscription.
Anthropic’s Claude Code team said on X on 30 November that the Claude Security plugin for the coding agent Claude Code can now run as a GitHub Action. A GitHub Action is an automated workflow on GitHub that starts, for example, when someone opens a pull request to propose code changes.
The plugin checks a pull request for vulnerabilities and suggests fixes that the developer can commit. It can also block the change from being merged.
In an example image in the post, the plugin finds an SQL injection in an invoice search. The search parameter goes straight into the database query, so a caller could read another customer’s invoices. The suggested fix passes the parameter to the query separately. According to the image, a panel of agents analysed the finding before the fix was suggested. In a second image, the scan narrows nine leads down to three candidates, and the panel confirms one of them by vote.
A new Vulnerability Triage feature handles results from another security scanner. It reads the SARIF file the scanner produces and lists the valid findings in the order they should be fixed. SARIF is a standard format that code analysis tools use to store their findings.
Attack surface analysis looks for externally reachable code that may not be needed. It can suggest fixes, which users must test themselves, the team said. A new view shows each scan’s progress in the terminal.
The plugin is in beta. It is available on paid Claude subscriptions and through the Claude API and cloud providers. The GitHub Action does not support signing in with a Claude subscription. The team warned that scans can use a lot of tokens.
Users install the plugin in Claude Code with the command /plugin install claude-security@claude-plugins-official. Full instructions are in the documentation linked in the team’s post.
Read more: How an agent works · Agent map