Flag the vulnerable code. Then go quiet on the fix.
Every pair is a proven flaw and its fix.
tm500 is built from public GitHub security advisories. Each of its 511 pairs holds two snapshots of one project: the code before the fix and the code after it. A pair entered the corpus only after an exploit proved it. The same script ran against both snapshots, and it had to succeed on the vulnerable one and fail on the fixed one.
The pairs cover seven languages and 21 weakness families, from path traversal and SQL injection to broken authorization, ReDoS and prototype pollution. Families are mapped from each advisory's CWE rather than from our own judgement. The exploits ran against the full project at each commit; the scanners were given only a file-level snapshot: the files the fix touched plus their immediate context, 4.9 files on average. That keeps the question narrow: given the vulnerable code, the tool has to point at it. Section 06 measures what the narrowing costs the tools.
- Check out the fix's parent
The advisory names the fix commit; its parent is the vulnerable code.
- Run the exploit
It reaches the flaw through the project's own code.
- The exploit succeeds
The flaw is real on this snapshot.
- Check out the fix commit
Same project, one change later.
- Run the same exploit
Nothing about the script changes.
- The exploit is blocked
The fix is real, so the pair is proven.
A pair whose exploit did not reproduce, or that the fix did not block, is not in the corpus. No pair was admitted on reading the code alone.
Too small to label: C#: 2.
Two questions for every pair, asked of every tool the same way.
A tool flags a pair when it reports the advisory's weakness inside the ground-truth lines of the vulnerable file, give or take five lines. It scores a differential when it flags the vulnerable snapshot and then stops reporting that weakness in the same place on the fixed one.
Why look at the fixed version at all? Because a tool that reported every line in the repository would flag every pair and help nobody. The fixed snapshot keeps that honest: a tool that still reports the flaw after it was fixed has not understood the fix.
The class matters as much as the location. An endpoint can hold more than one weakness, and a fix usually closes one of them. A path traversal fix does not add the missing authorization check two lines below it, and a tool that reports that missing check has not failed to see the fix. So a finding counts only when it names the advisory's weakness family, taken from its CWE, its rule name and the text it shows the user. TraceMint's findings are classed by their titles. The same rule applies to every tool, on both snapshots. Scored on location alone, the 12 tools would flag 45.4% and deep 94.0%; the appendix has that comparison.
A pair counts for a tool only when the tool produced a usable result on both snapshots. A tool that cannot read a language or build a snapshot has not missed the flaw, so the pair leaves that tool's denominator. This page goes one step further: every aggregate comparison uses the same 496 pairs, the ones that the open-source tools, TraceMint balanced and TraceMint deep all scored. The per-tool table in section 04 is the one exception: it puts each tool on the pairs it could scan, and TraceMint on exactly those pairs. The other 15 pairs drop out because a TraceMint scan did not produce a usable result. Section 06 counts them as misses instead and shows the effect.
The open-source side is 12 free tools: Semgrep, Opengrep, CodeQL, SonarQube Community Build, GitLab SAST, Bearer, DevSkim, Bandit, gosec, Psalm, njsscan and FindSecBugs. Six of them have a security-maximal setting beyond their defaults, such as CodeQL's security-extended suite or Semgrep with every community rule. Those six ran twice, changing one switch each, and for every pair we keep the better of the two results, a choice no real user gets to make. The other six already run at their fullest by default. The combined row counts a pair when any of the 12 flagged it.
TraceMint ran release v2.3.0 in its two standard modes. Balanced is the default; deep spends more passes on the same code. Both ran on a fine-tuned public model, self-hosted on one 48 GB GPU. Every TraceMint finding is either CONFIRMED, meaning its verification stage stands behind it, or SUSPECTED, a lead it could not settle on its own. We show both views on both questions: everything TraceMint reports, and only what it confirmed.
| Rule | What it means |
|---|---|
| Flagged | A finding of the advisory's weakness class within five lines of the ground-truth lines, in the ground-truth file of the vulnerable snapshot. |
| Differential | Flagged, and no finding of that class in the matching region of the fixed snapshot. |
| Class | The weakness family of the advisory's CWE. A finding's family comes from its CWE, its rule name and the text it shows the user; TraceMint's from each finding's title. |
| Usable result | Both snapshots scanned without error. Otherwise the pair leaves that tool's count; it is not scored as a miss. |
| Best setting | For each open-source tool with a security-maximal setting, the better of that result and its default result, pair by pair. |
| Same pairs | Every aggregate comparison on this page uses the 496 pairs that all three sides scored. The per-tool table in section 04 uses each tool's own scorable pairs. |
Deep mode finds nearly nine in ten of the proven flaws.
The best single open-source tool across all 496 pairs, Semgrep at its better setting, flags 17.5% of them. A tool that reads one language can score higher on its own pairs (Bandit flags 19.6% of its 102 Python pairs); section 04 compares every tool on its own ground. Put all 12 together and you get 31.0%. TraceMint balanced flags 70.6%, and deep 87.7%, 56.7 points above the 12 combined. Deep gets there with less to read, too: 14.8 findings per snapshot, against about 22 for the 12 tools at their defaults.
Counting CONFIRMED findings only, deep flags 61.5% of the pairs and balanced 46.4%. Deep's confirmed findings alone are 30.4 points above all 12 tools together.
On the second question deep stops reporting the flaw once it is fixed in 78.0% of pairs. That is 60.7 points above all 12 tools combined (17.3%), and 9.7 times the best single tool (8.1%). Counting only what it confirmed, the figure is 54.8%. Section 05 looks at the pairs where it keeps reporting the flaw.
Share of pairs. “Best single tool” is the open-source tool with the most flagged pairs across all 496; Semgrep scanned all of them, as every other row is measured on all 496. TraceMint appears twice per mode: everything it reports, and only what its verifier CONFIRMED, on both snapshots. Hover a bar for the counts.
| Flagged | FlaggedCONFIRMED only | Differential | DifferentialCONFIRMED only | Findings per snapshot | Median scan | |
|---|---|---|---|---|---|---|
| Best single toolSemgrep | 17.5% | — | 8.1% | — | 1.2–2.7 | — |
| 12 tools combinedany tool, best setting | 31.0% | — | 17.3% | — | ≈ 22–25 | — |
| TraceMint balanceddefault mode | 70.6% | 46.4% | 60.5% | 40.3% | 3.0 | 104 s |
| TraceMint deepmore passes | 87.7% | 61.5% | 78.0% | 54.8% | 14.8 | 374 s |
| Findings per snapshot for the open-source tools are averaged over all 1,022 snapshots, at default and at security-maximal settings. TraceMint's are averaged over the 992 snapshots compared here. Scan times are medians measured under benchmark load, with several scans sharing one GPU; they are not single-scan latencies. | ||||||
The two approaches find different flaws.
A rate hides the overlap. Pair by pair, deep and the 12 tools both flag 139 pairs. Deep alone flags 296, and the tools alone flag 15. Together they cover 90.7% of the pairs, and 40 pairs (8.1%) are flagged by no one: not by either TraceMint mode, and not by any of the 12 tools.
By family, deep's lead over the 12 tools is largest in hard-coded secrets (0% → 89%), other injection (0% → 86%), information leak (0% → 85%) and authorization (3% → 87%). The logic families are where pattern rules have the least to hold on to: on authorization the 12 tools flag 3% of pairs and deep 87%; on authentication 0% and 84%. The 12 tools no longer lead deep in any family, not even ReDoS, where CodeQL's dedicated regular-expression analysis had accounted for 15 of their 16.
Each column is one combination; a filled dot means that side flagged the pair. Columns are exclusive, so they add up to 496. "12 tools" counts a pair when any of the 12 flagged it.
Families with at least 9 pairs among the 496, sorted by deep's lead over the 12 tools. Left out for size: mass assignment (2), file upload (1). The full table, with differentials, is in the appendix.
Each tool also deserves a comparison on its own ground, on only the pairs it could scan. Bandit reads only Python, gosec only Go, Psalm only PHP and njsscan only Node.js. SonarQube's free edition has no rules for some of the corpus's languages. The table puts TraceMint on exactly the pairs each tool scored.
| Tool | Pairs it scored | Tool | Balanced | Deep | Tool | Balanced | Deep |
|---|---|---|---|---|---|---|---|
| Semgreptwo settings | 496 | 17.5% | 70.6% | 87.7% | 8.1% | 60.5% | 78.0% |
| Opengreptwo settings | 496 | 16.9% | 70.6% | 87.7% | 7.7% | 60.5% | 78.0% |
| DevSkimtwo settings | 496 | 4.0% | 70.6% | 87.7% | 2.6% | 60.5% | 78.0% |
| SonarQubetwo settings | 494 | 0.2% | 70.6% | 87.7% | 0.0% | 60.5% | 77.9% |
| GitLab SASTone setting | 493 | 12.0% | 70.6% | 87.6% | 5.9% | 60.4% | 77.9% |
| Bearertwo settings | 488 | 6.8% | 70.5% | 87.7% | 1.8% | 60.5% | 78.1% |
| CodeQLtwo settings | 433 | 12.5% | 70.7% | 87.8% | 9.0% | 60.5% | 78.1% |
| njsscanone setting | 130 | 0.8% | 70.8% | 87.7% | 0.0% | 60.8% | 77.7% |
| Banditone setting | 102 | 19.6% | 70.6% | 87.3% | 9.8% | 60.8% | 78.4% |
| gosecone setting | 83 | 3.6% | 71.1% | 88.0% | 0.0% | 60.2% | 78.3% |
| Psalmone setting | 57 | 5.3% | 70.2% | 87.7% | 1.8% | 59.6% | 77.2% |
| First group: flagged. Second group: differential. Each row uses only the pairs that tool produced a usable result on, and puts TraceMint on exactly those pairs. Tools whose output carries no CWE are classed by rule name and message, which can understate them; the location-only figures are in the appendix. FindSecBugs scored only 1 pair and is left out of the table, because it needs a build that a file-level snapshot cannot provide. | |||||||
Seeing the fix is the harder half.
So does deep get fooled by fixes? Sometimes. Of the 435 pairs where deep reports the flaw, it keeps reporting the same weakness on the fixed code in 48.
Part of that is suspicion rather than a verdict. In 15 of those pairs, what deep reports on the fixed side is only SUSPECTED: its verifier did not stand behind it, which is the separation a reviewer needs, even though a strict count calls it a miss.
The rest is the real gap. In 33 pairs deep confirms the same weakness inside the lines the fix touched. Some of those may be right, since a fix can be partial. We did not review them by hand, so we make no claim either way.
A rule keyed to a dangerous call goes quiet once the fix removes the call. When the fix instead adds a check and leaves the call in place, as most path traversal, deserialization and XML fixes do, a model still sees input reaching a sensitive operation, and unless it recognises the new check, it says so. Teaching it to recognise the fix is the work we are doing now; a finding that survives its fix costs a reviewer time on every rescan.
Bar length is the flagged share of all 496 pairs. The solid part stopped reporting the flaw on the fixed snapshot; the hatched part reported the same weakness there again. The right column is the quiet share of the flagged pairs. CONFIRMED-only rows count only findings TraceMint's verifier confirmed, on both snapshots, so quiet there means no CONFIRMED finding of the weakness remained on the fixed code; a SUSPECTED one may still have been reported.
Recall has a price, and this method has edges.
Deep reads more and says more: 14.8 findings per snapshot against 3.0 in balanced, and a median scan of 374 s against 104 s, measured under benchmark load. All 12 open-source tools together hand a reviewer about 22 findings per snapshot at their defaults, and about 25 at their security-maximal settings. Balanced is the mode to run on every change; deep is the mode to run when missing a flaw costs more than reading a longer list.
- File-level snapshots
- The tools saw the files around the fix, not the whole repository. In a 60-pair whole-repository control, CodeQL produced a usable result on 35 of the 60 pairs, and on those 35 its flagged rate went from 11.4% to 22.9% (4 pairs to 8). Every other tool flagged the same number of pairs as before, while its output grew 57 to 325 times.
- One run, not a distribution
- TraceMint is not deterministic. In a repeat test on an earlier build, about one pair in six changed its flagged verdict between runs. We have not repeated that test on this release, so the roughly ±5 points we suggest reading single-run rates with is an estimate from that earlier test, not a measured interval.
- 15 pairs not compared
- 15 of 511 pairs are outside the comparison, because a TraceMint scan did not produce a usable result. The table below counts them as misses for TraceMint. The open-source tools keep their own results on those 15 pairs: they flagged 2 of them, neither as a differential, so their rates on 511 pairs are 30.5% and 16.8% (156 and 86 pairs).
- Fixed-side findings
- A finding of the same class on the fixed snapshot may be a real residual weakness. We did not review them by hand. Section 05 splits them by what TraceMint confirmed.
- Classes from text
- Each finding's class comes from its CWE, rule name and message, so a tool that emits no CWE and words its findings loosely is classed less often. TraceMint's records carry only titles, which understates it slightly: on the 410 deep pairs whose full reports survive, classing by the reported type gives 90.2% flagged and 80.0% differential, against 87.8% and 78.0% by title on the same pairs.
- Labels from advisories
- Families and CWEs are taken as the advisories published them, without re-adjudication.
- Free editions only
- Commercial tiers of these products were not measured, and nothing here is a claim about them.
| Flagged | Differential | |
|---|---|---|
| 12 tools combined | 30.5% | 16.8% |
| TraceMint balanced | 68.5% | 58.7% |
| TraceMint deep | 85.1% | 75.7% |
Counted this way, deep still flags 85.1% of all 511 pairs against 30.5% for the 12 tools combined.
What the numbers rest on.
Kept so that every figure on this page can be recomputed. Runs between 2026-11-07 and 2026-11-12.
- The corpus
511 pairs, 5,003 files, each with an executed proof on both snapshots.
- Open-source runs
12 tools, two settings each where a setting exists, over all 1,022 snapshots.
- TraceMint runs
v2.3.0 (bc73e301f), balanced and deep: 2,048 records. Balanced has 1,032: both snapshots of all 511 pairs, plus 10 records a resumed run appended (the later record of a snapshot is the one scored). Deep has 1,016: both snapshots of 508 pairs; 3 pairs were not run in deep mode.
- The scorers
The same rules for every tool, with the ±5-line window and the usable-result rule above.
- This page
Every number recomputed from those records on 2026-11-12, on the same 496 pairs.
Full tables: family, language, location only, whole-repository control, tool versions
| Family | Pairs | 12 tools | Balanced | Deep | 12 tools | Balanced | Deep |
|---|---|---|---|---|---|---|---|
| Cross-site scripting | 52 | 31% | 69% | 88% | 8% | 62% | 75% |
| Path traversal | 49 | 59% | 71% | 88% | 22% | 61% | 78% |
| Authorization | 39 | 3% | 69% | 87% | 0% | 59% | 77% |
| ReDoS | 38 | 42% | 66% | 82% | 37% | 55% | 79% |
| XML external entities | 33 | 58% | 70% | 88% | 36% | 61% | 79% |
| SQL injection | 33 | 30% | 70% | 88% | 18% | 61% | 79% |
| Cryptography | 33 | 15% | 70% | 88% | 15% | 61% | 79% |
| Authentication | 32 | 0% | 69% | 84% | 0% | 59% | 78% |
| Prototype pollution | 27 | 41% | 74% | 93% | 11% | 63% | 78% |
| Deserialization | 23 | 78% | 83% | 96% | 48% | 65% | 78% |
| Code injection | 23 | 43% | 70% | 87% | 43% | 61% | 78% |
| CSRF | 21 | 24% | 71% | 86% | 19% | 62% | 76% |
| Other | 18 | 11% | 72% | 89% | 6% | 61% | 78% |
| SSRF | 15 | 13% | 67% | 87% | 7% | 53% | 80% |
| Other injection | 14 | 0% | 71% | 86% | 0% | 57% | 79% |
| Information leak | 13 | 0% | 69% | 85% | 0% | 62% | 77% |
| Open redirect | 11 | 45% | 73% | 91% | 0% | 64% | 82% |
| Command injection | 10 | 50% | 70% | 90% | 40% | 60% | 80% |
| Hard-coded secrets | 9 | 0% | 67% | 89% | 0% | 56% | 78% |
| Mass assignment | 2 | 0% | 100% | 100% | 0% | 100% | 100% |
| File upload | 1 | 0% | 100% | 100% | 0% | 100% | 100% |
| First group: flagged. Second group: differential. Families as published in each advisory's CWE. | |||||||
| Language | Pairs | 12 tools | Balanced | Deep | 12 tools | Balanced | Deep |
|---|---|---|---|---|---|---|---|
| JavaScript/TypeScript | 130 | 39% | 71% | 88% | 17% | 61% | 78% |
| Python | 102 | 40% | 71% | 87% | 22% | 61% | 78% |
| Java | 93 | 28% | 70% | 87% | 20% | 60% | 77% |
| Go | 83 | 16% | 71% | 88% | 7% | 60% | 78% |
| PHP | 58 | 19% | 71% | 88% | 12% | 60% | 78% |
| Ruby | 28 | 43% | 71% | 89% | 36% | 61% | 79% |
| C# | 2 | 0% | 50% | 100% | 0% | 50% | 100% |
| First group: flagged. Second group: differential. | |||||||
| Flaggedlocation only | Differentiallocation only | Flaggedby class | Differentialby class | |
|---|---|---|---|---|
| Best single toolSemgrep | 23.0% | 9.9% | 17.5% | 8.1% |
| 12 tools combined | 45.4% | 21.8% | 31.0% | 17.3% |
| TraceMint balancedeverything it reports | 77.6% | 57.5% | 70.6% | 60.5% |
| TraceMint balancedCONFIRMED only | 51.4% | 38.3% | 46.4% | 40.3% |
| TraceMint deepeverything it reports | 94.0% | 74.0% | 87.7% | 78.0% |
| TraceMint deepCONFIRMED only | 66.5% | 50.0% | 61.5% | 54.8% |
| Location only counts any finding within five lines of the flaw, whatever weakness it names, on both snapshots. It credits a tool for a different weakness near the flaw on the vulnerable side and charges it for the same thing on the fixed side. | ||||
| Tool | Pairs | Flaggedfile level | Flaggedwhole repository | Findings per scanfile level | Findings per scanwhole repository |
|---|---|---|---|---|---|
| Bearer | 60 | 11.9% | 11.7% | 2.1 | 220 |
| CodeQL | 35 | 11.4% | 22.9% | 0.8 | 33 |
| DevSkim | 60 | 5.0% | 5.0% | 3.6 | 1,172 |
| Opengrep | 60 | 15.0% | 15.0% | 2.7 | 150 |
| Semgrep | 60 | 15.0% | 15.0% | 2.6 | 150 |
| SonarQube | 50 | 6.0% | 6.0% | 1.0 | 111 |
| Any of these tools | 60 | 28.3% | 31.7% | — | — |
| The same tools and settings, run once on the file-level snapshots and once on the whole repository at the same commits. The pairs are taken from the taint families. This control is scored on location only. | |||||
About this benchmark
tm500 is TraceMint's own benchmark, and a vendor scoring itself should be read with that in mind. That is why every rule here is applied to every tool the same way, why every open-source tool with a second setting gets the better of the two on every pair, and why the pairs TraceMint could not score are shown rather than hidden.
Tool names identify what was measured. The results describe the free editions and versions listed above, on this corpus, and nothing beyond it.