The scoring rule

Flag the vulnerable code. Then go quiet on the fix.

87.7%of 496 proven flaws reported by TraceMint deep, against 31.0% for 12 open-source tools combined
9.7×how often deep stopped reporting a flaw once it was fixed, against the best single tool (78.0% and 8.1%)
296proven flaws that deep flagged and none of the 12 tools did
01 / The corpus

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.

How a pair earns its place
Vulnerable snapshot
  1. Check out the fix's parent

    The advisory names the fix commit; its parent is the vulnerable code.

  2. Run the exploit

    It reaches the flaw through the project's own code.

  3. The exploit succeeds

    The flaw is real on this snapshot.

Fixed snapshot
  1. Check out the fix commit

    Same project, one change later.

  2. Run the same exploit

    Nothing about the script changes.

  3. 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.

The 511 pairs by language
133JS / TS102Python93Java92Go61PHP28Ruby

Too small to label: C#: 2.

02 / The scoring

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.

Scoring rules
RuleWhat it means
FlaggedA finding of the advisory's weakness class within five lines of the ground-truth lines, in the ground-truth file of the vulnerable snapshot.
DifferentialFlagged, and no finding of that class in the matching region of the fixed snapshot.
ClassThe 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 resultBoth snapshots scanned without error. Otherwise the pair leaves that tool's count; it is not scored as a miss.
Best settingFor each open-source tool with a security-maximal setting, the better of that result and its default result, pair by pair.
Same pairsEvery 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.
03 / The scorecard

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.

The same 496 pairs, two questions
Flagged the vulnerable lines
Best single toolSemgrep, best setting17.5%
12 tools combinedany tool, best setting31.0%
TraceMint balancedeverything it reports70.6%
TraceMint balancedCONFIRMED only46.4%
TraceMint deepeverything it reports87.7%
TraceMint deepCONFIRMED only61.5%
0%25%50%75%100%
Differential: flagged, then quiet on the fix
Best single toolSemgrep, best setting8.1%
12 tools combinedany tool, best setting17.3%
TraceMint balancedeverything it reports60.5%
TraceMint balancedCONFIRMED only40.3%
TraceMint deepeverything it reports78.0%
TraceMint deepCONFIRMED only54.8%
0%25%50%75%100%

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.

The scorecard, 496 pairs
FlaggedFlaggedCONFIRMED onlyDifferentialDifferentialCONFIRMED onlyFindings per snapshotMedian scan
Best single toolSemgrep17.5%—8.1%—1.2–2.7—
12 tools combinedany tool, best setting31.0%—17.3%—≈ 22–25—
TraceMint balanceddefault mode70.6%46.4%60.5%40.3%3.0104 s
TraceMint deepmore passes87.7%61.5%78.0%54.8%14.8374 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.
EvidenceFull tables
04 / Who finds what

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.

Who flags which of the 496 pairs
TraceMint onlyOpen-source tools onlyBothNo one
12 toolsBalancedDeep
212
125
84
14
8
7
6
40

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.

Flagged rate by weakness family
12 tools combinedTraceMint balancedTraceMint deepRight column: deep minus 12 tools, in points
Family pairs0%25%50%75%100%
Hard-coded secrets9+89
Other injection14+86
Information leak13+85
Authorization39+85
Authentication32+84
Other18+78
SSRF15+73
Cryptography33+73
CSRF21+62
Cross-site scripting52+58
SQL injection33+58
Prototype pollution27+52
Open redirect11+45
Code injection23+43
Command injection10+40
ReDoS38+39
XML external entities33+30
Path traversal49+29
Deserialization23+17

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.

Each tool on its own ground
ToolPairs it scoredToolBalancedDeepToolBalancedDeep
Semgreptwo settings49617.5%70.6%87.7%8.1%60.5%78.0%
Opengreptwo settings49616.9%70.6%87.7%7.7%60.5%78.0%
DevSkimtwo settings4964.0%70.6%87.7%2.6%60.5%78.0%
SonarQubetwo settings4940.2%70.6%87.7%0.0%60.5%77.9%
GitLab SASTone setting49312.0%70.6%87.6%5.9%60.4%77.9%
Bearertwo settings4886.8%70.5%87.7%1.8%60.5%78.1%
CodeQLtwo settings43312.5%70.7%87.8%9.0%60.5%78.1%
njsscanone setting1300.8%70.8%87.7%0.0%60.8%77.7%
Banditone setting10219.6%70.6%87.3%9.8%60.8%78.4%
gosecone setting833.6%71.1%88.0%0.0%60.2%78.3%
Psalmone setting575.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.
05 / The fixed side

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.

What happens on the fixed snapshot, for every pair a side flagged
Stopped reporting it after the fix (differential)Still reported it on the fixed code
12 tools combinedany tool, best setting56% quiet
TraceMint balancedeverything it reports86% quiet
TraceMint deepeverything it reports89% quiet
TraceMint balancedCONFIRMED only87% quiet
TraceMint deepCONFIRMED only89% quiet
0%25%50%75%100%

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.

06 / Cost & limits

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.

14.8findings per snapshot, TraceMint deep3.8 CONFIRMED
3.0findings per snapshot, TraceMint balanced1.8 CONFIRMED
≈ 22findings per snapshot, all 12 tools at their defaults≈ 25 at maximum
374smedian deep scan, against 104 s for balancedp90: 21 min · 7.3 min
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.
Counting unscored pairs as misses, on all 511
FlaggedDifferential
12 tools combined30.5%16.8%
TraceMint balanced68.5%58.7%
TraceMint deep85.1%75.7%

Counted this way, deep still flags 85.1% of all 511 pairs against 30.5% for the 12 tools combined.

Source record

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.

  1. The corpus

    511 pairs, 5,003 files, each with an executed proof on both snapshots.

  2. Open-source runs

    12 tools, two settings each where a setting exists, over all 1,022 snapshots.

  3. 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.

  4. The scorers

    The same rules for every tool, with the ±5-line window and the usable-result rule above.

  5. 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
By weakness family
FamilyPairs12 toolsBalancedDeep12 toolsBalancedDeep
Cross-site scripting5231%69%88%8%62%75%
Path traversal4959%71%88%22%61%78%
Authorization393%69%87%0%59%77%
ReDoS3842%66%82%37%55%79%
XML external entities3358%70%88%36%61%79%
SQL injection3330%70%88%18%61%79%
Cryptography3315%70%88%15%61%79%
Authentication320%69%84%0%59%78%
Prototype pollution2741%74%93%11%63%78%
Deserialization2378%83%96%48%65%78%
Code injection2343%70%87%43%61%78%
CSRF2124%71%86%19%62%76%
Other1811%72%89%6%61%78%
SSRF1513%67%87%7%53%80%
Other injection140%71%86%0%57%79%
Information leak130%69%85%0%62%77%
Open redirect1145%73%91%0%64%82%
Command injection1050%70%90%40%60%80%
Hard-coded secrets90%67%89%0%56%78%
Mass assignment20%100%100%0%100%100%
File upload10%100%100%0%100%100%
First group: flagged. Second group: differential. Families as published in each advisory's CWE.
By language
LanguagePairs12 toolsBalancedDeep12 toolsBalancedDeep
JavaScript/TypeScript13039%71%88%17%61%78%
Python10240%71%87%22%61%78%
Java9328%70%87%20%60%77%
Go8316%71%88%7%60%78%
PHP5819%71%88%12%60%78%
Ruby2843%71%89%36%61%79%
C#20%50%100%0%50%100%
First group: flagged. Second group: differential.
Location only, for comparison
Flaggedlocation onlyDifferentiallocation onlyFlaggedby classDifferentialby class
Best single toolSemgrep23.0%9.9%17.5%8.1%
12 tools combined45.4%21.8%31.0%17.3%
TraceMint balancedeverything it reports77.6%57.5%70.6%60.5%
TraceMint balancedCONFIRMED only51.4%38.3%46.4%40.3%
TraceMint deepeverything it reports94.0%74.0%87.7%78.0%
TraceMint deepCONFIRMED only66.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.
Whole-repository control, 60 pairs, security-maximal settings
ToolPairsFlaggedfile levelFlaggedwhole repositoryFindings per scanfile levelFindings per scanwhole repository
Bearer6011.9%11.7%2.1220
CodeQL3511.4%22.9%0.833
DevSkim605.0%5.0%3.61,172
Opengrep6015.0%15.0%2.7150
Semgrep6015.0%15.0%2.6150
SonarQube506.0%6.0%1.0111
Any of these tools6028.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.
Versions
Semgrep1.184.0
Opengrep1.33.1
CodeQL2.27.4
SonarQubeCommunity Build, pinned image
GitLab SASTsemgrep analyzer, pinned image
Bearer2.1.3
DevSkim1.0.100+ea92e6f3cc
Bandit1.9.4
gosec2.30.0
Psalm7.0.4
njsscan1.0.2
FindSecBugs1.14.0 (bundled SpotBugs 4.9.3)
TraceMintv2.3.0 · bc73e301f

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.

More research