Which AI Model Finds the Most Security Bugs in Code Review?

Which AI model finds the most security bugs in code review? In our test, four models tie. Gemini 4 Neon, Claude Fable 5.2, Claude Opus 5.5 and Claude Sonnet 5.5 each caught all 58 security-bug chances. GPT-6.2 Sol caught 55 and GPT-6 Astra caught 54. Every miss sits on the same two bugs: a database left open to the internet, and a GitHub Actions check that trusts the wrong name.
The sample is small. The security set is 29 planted bugs, and each model reviewed each one twice: 58 chances. That is enough to see where Sol and Astra slipped. It is too few to rank the four models that missed nothing.
| At medium effort | Security bugs caught, of 58 | Other bugs caught, of 44 | All planted bugs, of 102 | Date tested |
|---|---|---|---|---|
| Gemini 4 Neon | 58 | 44 | 102 | 21 Nov 2026 |
| Claude Fable 5.2 | 58 | 44 | 102 | 30 Nov 2026 |
| Claude Opus 5.5 | 58 | 43 | 101 | 21 Nov 2026 |
| Claude Sonnet 5.5 | 58 | 43 | 101 | 30 Nov 2026 |
| GPT-6.2 Sol | 55 | 42 | 97 | 21 Nov 2026 |
| GPT-6 Astra | 54 | 42 | 96 | 30 Nov 2026 |
Bold marks the best value in each column. The totals in the last column match the best AI model for code review leaderboard. This post splits them in two.
How we tested, in five lines
- All six models ran inside OpenQodex, our open-source reviewer, with the same scanners, code graph and review stages.
- The planted set: 51 bugs in 19 small repositories, plus 2 clean ones. Each case file lists the kinds of each bug, and 29 of the 51 list security.
- Each model reviewed every case twice, at medium effort: 42 reviews each, 252 in all.
- Fixed rules score a catch: the finding must point at the bug's lines, name it, and file it under the right kind.
- For this post we ran no model again. A script re-read the stored results of the six runs and split each catch by the case's own label.
The 29 security bugs cover 15 kinds. The largest groups are access control (4), container settings (4), SQL injection (3), cloud resources open to the internet (3) and Kubernetes privileges (3). The rest are command injection (2), GitHub Actions permissions (2), and one each of a leaked secret, a vulnerable dependency, an unsafe shell command, GitHub Actions script injection, a missing CSRF check, path traversal, a debug server open to the network and cross-site scripting.
The two bugs Sol and Astra missed
A database open to the internet. A Terraform file creates the orders database with publicly_accessible = true. The case says AWS then gives it a public address, and the fix is to set it to false. Sol and Astra both pointed at that line in both repeats. Both called it a broken setup, not an exposure:
- Sol: "Public RDS setting in private subnets" and "Public RDS configuration without an internet gateway".
- Astra: "Public accessibility without an internet gateway" and "Public RDS configuration without an internet gateway".
Each finding was filed as a bug, not as security, so the scorer did not count it. A reader of those titles learns that the setting will not work yet. They do not learn that the database should not be public.
A GitHub Actions check that trusts the wrong name. A workflow lets a run through when github.actor == 'dependabot[bot]'. The case explains that the actor is whoever caused the latest event, not the pull request's author, so an attacker's pull request can pass the check. Sol caught it in repeat 1 as "Bot login used as an identity check". In repeat 2 its only finding on that line was "Visual tests skipped after maintainer pushes", filed as a bug. Astra raised nothing on that line in either repeat. It wrote 2 findings on that case in one review and 1 in the other.
Both misses are in infrastructure files, not application code. Every model caught all 3 SQL injection bugs, both command injection bugs and the cross-site scripting bug, in both repeats.
Where the scanners did the finding
OpenQodex runs scanners such as Semgrep, Bandit, Trivy, Checkov and zizmor before the model reads the change. The model then decides what to keep and how to label it. For the four models with a full score, 46 of their 58 security catches were on a line a scanner had also flagged. Sol had 43 such catches and Astra 42.
That leaves 12 chances that no scanner flagged, on six bugs:
- A Django order page that serves any user's order by its number.
- An Express delete route with no admin check.
- A Rails destroy action added to the list that skips the admin check.
- A Flask download route that joins the requested name into a file path.
- A Next.js page that puts the search term from the URL into the page as HTML.
- A Dockerfile change that makes the container run as root.
All six models caught all 12. So on the bugs only reasoning can find, this set shows no difference between the models at all. The differences sit in how each model labels what a scanner points at.
Severity on security bugs
Each planted bug carries a severity. Here is how often each model gave a found security bug the same severity as the case.
| Found security bugs | Same as the case | Rated higher | Rated lower |
|---|---|---|---|
| Gemini 4 Neon, of 58 | 45 | 9 | 4 |
| Claude Fable 5.2, of 58 | 41 | 4 | 13 |
| Claude Opus 5.5, of 58 | 48 | 3 | 7 |
| Claude Sonnet 5.5, of 58 | 48 | 6 | 4 |
| GPT-6.2 Sol, of 55 | 35 | 4 | 16 |
| GPT-6 Astra, of 54 | 39 | 4 | 11 |
If your alerts fire on a critical label, the lower ratings matter most. Sol rated 16 of its 55 found security bugs lower than the case, and Fable 13 of 58. Opus and Sonnet agreed with the case most often, 48 of 58 each.
Which model to pick for security review
- Catching the security bug is what counts: any of Gemini 4 Neon, Claude Fable 5.2, Claude Opus 5.5 or Claude Sonnet 5.5. This test cannot separate them. Choose on price and speed from the leaderboard.
- Severity drives your alerts: Claude Opus 5.5 or Claude Sonnet 5.5, which matched the case's severity on 48 of 58.
- You review a lot of Terraform and GitHub Actions files: check how GPT-6.2 Sol and GPT-6 Astra label what they find there. All 7 of their missed chances were in those files.
Each model has its own full test: Gemini 4 Neon vs Opus 5.5 vs GPT-6.2 Sol, Claude Fable 5.2 vs Opus 5.5, Claude Sonnet 5.5 vs Opus 5.5 and Claude Opus 5.5 vs GPT-6 Astra. Every test in the series is under AI model benchmarks.
Limits of this test
- 29 bugs, two repeats. Four models tied at 58 of 58, and nothing here breaks the tie. Sol's and Astra's gaps rest on two bugs.
- Planted bugs only. The 35 real pull requests in our main test are scored against human comments with no security label, so this post does not split them.
- Labels come from the case files. 4 of the 29 security bugs also list another kind, such as bug or maintainability. On the 25 that list only security, the result is the same: 50 of 50 for the four leaders, 47 for Sol and 46 for Astra.
- Wrong kind counts as a miss. Sol and Astra pointed at the database line but filed it as a bug. A looser scorer would have counted those four findings.
- Two test dates. Neon, Opus and Sol ran on 21 November 2026. Fable, Sonnet and Astra ran on 30 November 2026. Claude Code moved from 2.1.330 to 2.1.332, and Codex from 0.171.0 to 0.172.0. The cases, scoring rules and medium effort were the same.
- Astra's cut-off reviews do not touch this set. Five of Astra's real pull request reviews hit the time limit. All 42 of its planted reviews finished, with none failed and none retried.
- Model plus pipeline. The scanners flagged most of these bugs. A bare model, without them, could score differently.
How Qodex uses this
We run these tests to choose the models behind Qodex PR review, and they shape how we check code for security testing. The lesson from this split: the model matters less for spotting a security bug than for naming it as one. To see what Qodex flags on your own code, connect a GitHub repository and Qodex reviews your newest open pull request.
Frequently Asked Questions
Which AI model finds the most security bugs in code review?
Four models tie in our test. Gemini 4 Neon, Claude Fable 5.2, Claude Opus 5.5 and Claude Sonnet 5.5 each caught all 58 security-bug chances. GPT-6.2 Sol caught 55 and GPT-6 Astra 54.
Did any model miss SQL injection?
No. All six models caught all 3 planted SQL injection bugs in both repeats.
How big is the security sample?
29 planted security bugs, each reviewed twice by each model, so 58 chances per model. That is too small to rank the four models that caught every one.





