Anthropic has unveiled an enhancement to its Claude Security plugin, focusing on identifying vulnerabilities within GitHub pull requests before they are merged. This integration with GitHub Actions allows for a thorough examination of proposed code changes, offering developers suggested fixes and potentially blocking merges if issues exceed a set severity threshold.
Integration Into Developer Workflows
Announced on November 30, the update by Anthropic’s development team integrates seamlessly into existing developer workflows, where code tests and reviews are already conducted. The Claude Security plugin for Claude Code now operates as a GitHub Action, scrutinizing pull requests for vulnerabilities, recommending fixes, and potentially preventing merges based on the severity of the findings.
This plugin operates independently from the Claude Security service that continuously monitors connected repositories. The new GitHub Actions job zeroes in on changes introduced by pull requests, although teams can still schedule comprehensive scans of entire repositories. This distinction is crucial as a clean pull request does not guarantee the entire codebase is free from vulnerabilities.
Detailed Code Change Reviews
In a comprehensive repository scan, Claude agents map the application’s functionality, identify vulnerabilities, and verify findings through separate agents before inclusion in the final report. The terminal’s live view provides real-time updates on the scan’s progress and findings under review.
Anthropic’s demonstration of the pull request review process illustrates its practical application, such as identifying SQL injection risks. For example, the plugin detected an issue where user input was directly inserted into a database query, flagging it for review. The suggested fix entails passing the search term separately to ensure it is treated as data by the database, rather than part of the command.
Vulnerability Management and Beta Testing
The plugin also introduces a feature to review alerts from existing scanners. Vulnerability Triage accepts SARIF 2.1.0 formatted files, validating alerts against source code and prioritizing fixes. It can also analyze exposed code that may not be necessary and propose patches for testing.
Currently in beta, the plugin is available for paid Claude users within Claude Code. It requires a GitHub-hosted Linux runner and credentials for the Anthropic API or a supported cloud provider. Anthropic cautions that scans may consume significant tokens and suggests limiting use to trusted environments due to potential security disclosures during public repository reviews.
For those testing the beta, it is advisable to maintain existing security scanners and evaluate the plugin’s findings before requiring its checks. This approach aligns with previous recommendations by Cyber Security News regarding the management of secrets within Claude Code workflows.
