Security reviews are now available in Copilot CLI (experimental) #196523
Replies: 1 comment 1 reply
-
|
This is a really strong direction for bringing security earlier into the developer workflow. Having security review directly inside the CLI makes a lot of sense, especially for validating AI-generated code before it reaches a pull request. I like the focus on high-confidence findings instead of overwhelming developers with noise. The categories covered already address many of the most common and impactful security issues developers face day to day. A few ideas that could make this even more useful in the future: 1 Support for custom organizational or repository-specific security rules Overall, this feels like a valuable step toward making secure development more accessible and developer-friendly. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Copilot in GitHub
Body
Overview
AI is changing how developers write code, and security needs to meet developers earlier in the flow. Copilot CLI now includes an experimental
/security-reviewcommand that helps developers review code changes for potential security vulnerabilities directly from the terminal.The goal is simple: give developers a fast way to ask, "Did I just introduce a security issue?" before code makes it to a pull request.
What does it do?
The
/security-reviewcommand analyzes code changes and looks for high-confidence security issues. When it finds something worth calling out, it provides context, severity, and confidence so developers can understand the risk and decide what to do next.It is designed as a security-focused code review companion in the CLI: no tool switching, no extra dashboard, and no waiting until later in the development lifecycle to get feedback.
Why this matters
Models are getting better at writing code, but code generated or edited with AI still needs security reviews. Developers are moving faster, and security feedback needs to keep up.
By bringing security review into Copilot CLI, we are making secure development easier to access where many developers already work. This is useful when iterating locally, validating changes before opening a PR, or checking AI-generated code before it becomes part of a larger change.
What kinds of issues can it look for?
The command focuses on security-relevant code patterns that can be reasoned about from the changes being reviewed, including:
The intent is not to flag everything. The command is tuned toward findings that are likely to be useful and actionable, with an emphasis on higher-confidence results.
How does it fit with other security tools?
This is a Copilot-powered security review experience. It does not replace dedicated security tools such as code scanning, secret scanning, dependency scanning, or manual security review.
Instead, it complements them by moving an additional layer of feedback earlier in the developer workflow: a fast first pass while the developer still has the full context of the change in mind.
For now, try
/security-reviewin Copilot CLI and let us know what kind of security feedback helps you move faster with more confidence.Beta Was this translation helpful? Give feedback.
All reactions