GitHub details layered security checks for AI-generated code
GitHub describes a workflow of local reviews, pull request checks and repository scans to catch vulnerabilities in code written by AI agents, with some features in limited preview.
In plain words
GitHub says AI coding agents can produce insecure code, so it has built security checks into several stages of development. A local review examines your changes before a pull request, automated checks run on pull requests, and repository scans look at older code that has not changed. One deeper scan option is still in private preview.
What was announced
GitHub reports that its internal data showed more than 200 million detected vulnerabilities between January and October 2026, a 100% year-over-year increase, which the company links to AI agents accelerating development while sometimes introducing vulnerable code, exposing secrets or suggesting nonexistent dependencies. Its answer is a layered workflow. Before opening a pull request, developers can run /security-review in the Copilot app, Copilot CLI or Copilot Chat in VS Code; it returns prioritized findings and fix suggestions for local changes only, does not edit code, and is not a full repository audit. On pull requests, CodeQL builds a database of the code and runs high-precision queries, while AI Scanning uses agents to explore the repository and can cover languages outside CodeQL's support, such as PHP in GitHub's example.
For code that pull request checks never touch, GitHub offers Standard AI Scan of a repository's default branch for users with write access; its agent selects files to examine within a time budget, and duplicate findings are suppressed when CodeQL already covers the same issue. For higher-attention cases like releases or audits, Deep Scan, powered by Microsoft's Codename MDASH, is in private preview. GitHub cautions that no single green check certifies a whole codebase, and all findings still need human review before fixes are applied.
What it does not show
- All figures and capability claims come from GitHub's own blog post; no independent testing or confirmation is reflected.
- Deep Scan is in private preview, so its availability and behavior for most users are not established by the source.
- The vulnerability count and increase are based on GitHub's internal detection data, and the source does not describe the measurement method.
For security and IT teams
- Access
- Standard AI Scan requires write access to the repository, and Deep Scan is currently in private preview rather than generally available.
Sources
Source-support review completed 3 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Updates and corrections
No corrections so far.
First published 3 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.