I went looking for the security gate in Copilot for Visual Studio and didn't find one. That's the finding. It's also the most useful thing I can tell a team deciding whether to count Copilot among their controls.
What does Copilot in Visual Studio actually do for security?
I read the Visual Studio 2026 release notes and GitHub's July update changelog on 14 October 2026. The notes are a long page, and the tool I used to read it covered only the first 100,000 of its 328,000 characters, so treat "I found none" as strong, not final. What's there:
- Review Selection (the 18.8 line). Select code, right-click, choose Copilot Actions, then Review Selection. Inline comments come back with a suggestion you can apply.
- Review of uncommitted changes, which Copilot code review already did.
- Review Commit, added in 18.9.0 on 11 August 2026. Right-click a commit in the Git Repository window, or select two commits to review the range.
- A NuGet MCP server, since 18.3.0 on 10 February 2026, that lets Copilot list packages with known vulnerabilities and update them on request.
Every one of those is general review or dependency help. The release notes list the security advisories for Visual Studio itself, which is a different subject: patches to the product, not scanning of your code.
Where is the scanner GitHub did ship?
Elsewhere. /security-review is a command in the Copilot CLI (public preview, experimental mode) and, from 14 July 2026, in the GitHub Copilot app. It looks at in-flight changes and returns high-confidence findings scored by severity and confidence, for five classes: injection, cross-site scripting, insecure data handling, path traversal and weak cryptography.
GitHub's own announcement calls it a lightweight, on-demand check that complements code scanning, Dependabot and secret scanning. It doesn't claim to replace them. Press coverage adds that it does no CVE matching, no taint analysis across files and no dependency scanning, and that real-world false-positive and false-negative rates haven't been measured at scale. I found no confirmation that it has reached Visual Studio.
Why can't a local review be a gate?
Because a gate needs evidence somebody else can check. The 18.9.0 notes say commit reviews stay local to your Visual Studio session. The comments appear in your editor, you read them, and nothing is written anywhere your pipeline can see.
Think about what a required check is. It's a status on a pull request that a reviewer, an auditor, or a branch rule can look at later. A private suggestion in someone's IDE has none of those properties. It's good practice, and it's a courtesy to your future self. It's not a control.
That isn't a flaw in the product. It's the design: private feedback before you push. I like it for that. The mistake is putting it in a compliance table next to CodeQL.
Where do the false positives and false negatives come from?
Three places, and they pull in different directions.
A model that reports vulnerabilities in safe code. The press coverage of /security-review admits LLMs can do this, and the confidence filter is the stated defense. Nobody has published how well the filter works.
A model that misses real ones. Amro and Alalfi tested Copilot code review on labeled vulnerable samples from open-source projects, and reported it often missed SQL injection, cross-site scripting and insecure deserialization, with feedback mostly about minor issues like style and typos. The page I read gives no detection rates, so I can't give you a percentage. The direction is clear enough.
A scanner that is right about the package and wrong about your risk. The NuGet route finds known-vulnerable packages. A reported vulnerability doesn't show your code reaches it. Updates can hit a breaking major version, leave a transitive dependency behind, or fix one advisory by introducing another.
A security check you can't reproduce in CI is advice. Advice is welcome, but it isn't a gate.
Is the tooling itself a risk?
Worth a line. On 8 September 2026 Microsoft published CVE-2026-81380 and CVE-2026-81381 against GitHub Copilot and Visual Studio Code: a command-injection flaw rated Important, and insufficiently protected credentials. Those name Visual Studio Code, not Visual Studio, so don't conflate the two. The lesson transfers anyway: an AI assistant with access to your editor and your credentials is also a dependency with a security record. Put it in the register next to the packages you audit.
What would I put in the gate instead?
Three layers, in this order.
- A scanner that runs in CI and posts a status. CodeQL, Semgrep or Sonar, whatever you have. It's deterministic and versioned, and the result lives on the pull request. What it can't see is measurable too: CWE classes you can count in a small run. If your gate sits on legacy code, expect it to be noisy on day one.
- Dependabot or equivalent for packages, with the reachability question answered by a human for anything rated high, plus a first-seen check on new names, since an invented package name has no advisory to find.
- Copilot review as the optional layer, run before pushing, with the expectation that it will miss things. Don't count it in the control list.
When the AI review is the thing that's advisory and unpinned, you've made the right call. When someone writes "reviewed by Copilot" in a security checklist, ask which model, which run, and where the record is. The published numbers on AI review accuracy don't support promoting it.
My opinion, which you may not share: until a Visual Studio review can post a status to a pull request, I'd describe Copilot there as a spell checker for security mistakes. Useful. Not load-bearing.