We make Verificate Gate, a review gate for AI-written code. Vendor benchmarks usually show the vendor winning everything, so we wrote this one to be checkable: the method was fixed before any tool ran, every tool saw identical files, and we publish the categories where other tools beat ours. The test also found a bug in Gate, which we fixed before writing this up.
The short version
- On an independent set of labelled vulnerabilities, the two model-based reviewers found almost everything (Gate 92 of 96, a plain LLM review 95 of 96); the free static analysers found far less (Semgrep 31, SonarQube 14).
- SonarQube Community was the most precise: no false claims on 98 safe files, but it found only 14 of 96 vulnerabilities.
- Against the same model reviewing on its own, Gate's advantage is precision: 19 false claims on safe files against 46, and on clean open-source code it would block 7 of 60 files against 37.
- On AI-specific mistakes (invented APIs, placeholder code, tests that cannot fail), both model-based tools caught all 30 of our cases; the static tools caught few. We wrote those cases, so treat that result as indicative only.
What we tested
Four tools, run on the same 314 Python files on 4 December 2026:
- Verificate Gate (production release of 4 Dec 2026): deterministic checks plus a model review by Claude Haiku, about one model call per file (324 calls for 314 files).
- Semgrep OSS 1.187.0 with its default rule pack (
p/default). - SonarQube Community 26.12 with its default “Sonar way” profile, including security hotspots.
- A plain LLM review: the same model family Gate uses internally (Claude Haiku), asked “Review this code for a pull request. Is it OK to merge?” with no gate around it.
Three test sets, reported separately and never pooled:
- A. OWASP Benchmark for Python (independent labels): a seeded random sample of 194 files across 14 vulnerability categories, 96 vulnerable and 98 safe variants. We removed names and paths that spelled out each file's category.
- B. AI-written-code failure modes: 30 cases we wrote, each paired with a corrected twin (60 files). This is our home ground, so it is descriptive only.
- C. Clean real-world code: 60 files from requests, Flask, Click, Werkzeug and Jinja, to measure false alarms.
Results on the independent OWASP set
“Found” means a finding correctly identified the labelled vulnerability. “False claims” means a tool said the labelled vulnerability was present in the safe variant. The OWASP score is the share found minus the share of false claims.
| Tool | Found (of 96) | False claims (of 98) | OWASP score |
|---|---|---|---|
| Verificate Gate | 92 | 19 | +76 |
| Plain LLM review | 95 | 46 | +52 |
| SonarQube Community | 14 | 0 | +15 |
| Semgrep OSS | 31 | 25 | +7 |
A separate question is whether a tool would block the merge of the safe files. Rules: Gate blocks when its decision is “rejected”; the plain review when it answers “not OK to merge”; SonarQube on any bug or vulnerability issue; Semgrep on any finding. On the 98 safe OWASP files, SonarQube would block 9, Semgrep 35, Gate 59 and the plain review all 98. These files are safe only for their labelled vulnerability; many contain other problems (dead code, unescaped output, unbounded input) that a reviewer may legitimately reject, so the block rate is not a false-alarm rate. It does show that Gate rejects a lot of messy code.
By category, SonarQube was perfect on weak hashing and insecure cookies and found nothing else, because injection (taint) analysis is not in its free edition. Semgrep's free rules were strong on SQL injection and unsafe deserialisation but raised false claims on every safe file in three categories (command injection, code injection and cookies). Gate and the plain review found nearly everything; Gate's four misses were in weak randomness (5 of 7 found, where the plain review found 7 of 7), insecure cookies and trust boundaries (6 of 7 each).
False alarms on clean, shipped code
| Tool | False alarms (of 60) | Would block the merge |
|---|---|---|
| Verificate Gate | 3 | 7 |
| Semgrep OSS | 3 | 7 |
| SonarQube Community | 3 | 3 |
| Plain LLM review | 13 | 37 |
The judge classed each tool's most serious finding per file as a real issue, a defensible note, a false alarm or nothing serious. The block column uses the rules above, and a tool can block on findings the judge classed as defensible notes, so the two columns do not add up. This is where an ungated model review struggles: it found real problems in 8 files, but raised a false alarm in 13 and would have stopped 37 of 60 well-reviewed files from merging. Gate found real issues in 7 files, with 3 false alarms and 7 blocks.
AI-written-code mistakes (our cases, indicative only)
| Tool | Found (of 30) | False claims on corrected twins (of 30) |
|---|---|---|
| Verificate Gate | 30 | 2 |
| Plain LLM review | 30 | 2 |
| Semgrep OSS | 7 | 0 |
| SonarQube Community | 3 | 0 |
The cases cover calls to functions that do not exist, placeholder implementations presented as real, tests that cannot fail, secrets written to logs, authentication checks that fail open, and SQL built from user input. Static analysers are not designed for most of these; both model-based reviewers caught all of them. Five cases per category is too few for category-level claims, and we wrote them, so we draw no conclusion beyond “static rules miss this class of mistake”.
The bug this test found in Gate
On the first run, Gate rejected 55 of the 314 files as “Syntax error: f-string”. All 55 were valid Python: they use the f-string syntax that Python 3.12 allows (PEP 701), and Gate's server was running Python 3.11, whose parser rejects it. We moved Gate to Python 3.12, added a check that fails the build if it regresses, deployed it, and re-ran Gate's part of the test on the same files. The re-run produced no syntax-error findings, and the number of safe OWASP files Gate would block from merging fell from 66 to 59 of 98. The figures in this article are from the fixed release.
Limits you should know
- Free editions only. The paid editions of Semgrep and SonarQube add cross-file and injection analysis that would likely raise their recall. CodeRabbit and other hosted reviewers were not tested.
- How findings were scored. We first scored with keyword and CWE matching, as planned. A hand check showed it missed correct findings worded in plain English, so we added a blind judge: for every file, a larger model (Claude Opus) saw the code, the label and each tool's findings without tool names, in random order. The judge is from the same vendor as the model inside Gate. We measured the judge's consistency for the three tools whose outputs did not change between our two judge runs: identical verdicts on 312 (Semgrep), 314 (SonarQube) and 300 (plain review) of 314 files; the plain review's false claims moved by 4. Gate's consistency could not be measured this way because its outputs changed with the fix. We changed the scoring after seeing the first results, the judge is from the same vendor as Gate's model, and no cross-vendor judge was used, so these results are not independently verified.
- Single file at a time. Gate and the plain review saw one file; the static analysers saw the whole OWASP project, including shared helpers.
- One run per file. Model-based tools are not deterministic. After the bug fix only Gate was re-run; the other three tools' outputs are from the single first run.
- Public test set. The OWASP Benchmark is public, so the models may have seen it in training. We only removed the file names and paths that named each category.
- A small leak. Ten OWASP files contain error messages that name their category, which may help the model-based tools.
- Speed. Gate took a median of 14.6 seconds per file and a single model call 5.8 seconds. We did not time the static analysers per file, because they scan the whole project at once.
What we take from it
Static analysers and model-based review are not substitutes. A precise static analyser in CI catches its rule set cheaply; a model-based review catches far more, including mistakes such as calls to functions that do not exist, at the cost of more noise and more time. Gate exists to keep the coverage of a model review while cutting that noise. On this test it found 92 of 96 OWASP vulnerabilities with 19 false claims on 98 safe files, against 46 for the same model unaided.
You can try it on your own code: Gate gives each network address 100 free validations a month with no sign-up, and a 30-day trial key with 2,000 a month. Related reading: catching hallucinated code and MCP servers for code review.
