GitHub's Copilot Code Review: Can AI Spot Security Flaws Before You Commit?

Amena Amro, Manar H. Alalfi
9/17/2025
cs.SEcs.AI

No confident code implementation found for this paper.

Abstract

As software development practices increasingly adopt AI-powered tools, ensuring that such tools can support secure coding has become critical. This study evaluates the effectiveness of GitHub Copilot's recently introduced code review feature in detecting security vulnerabilities. Using a curated set of labeled vulnerable code samples drawn from diverse open-source projects spanning multiple programming languages and application domains, we systematically assessed Copilot's ability to identify and provide feedback on common security flaws. Contrary to expectations, our results reveal that Copilot's code review frequently fails to detect critical vulnerabilities such as SQL injection, cross-site scripting (XSS), and insecure deserialization. Instead, its feedback primarily addresses low-severity issues, such as coding style and typographical errors. These findings expose a significant gap between the perceived capabilities of AI-assisted code review and its actual effectiveness in supporting secure development practices. Our results highlight the continued necessity of dedicated security tools and manual code audits to ensure robust software security.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{amro2025githubs,
  title  = {GitHub's Copilot Code Review: Can AI Spot Security Flaws Before You Commit?},
  author = {Amena Amro and Manar H. Alalfi},
  year   = {2025},
  eprint = {2509.13650},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.13650v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.13650.svg)](https://codeofpaper.com/paper/2509.13650)

Discussion