- benchmarks
- buyers-guide
- scoring
Five Questions to Ask Any SAST Benchmark Claim
A benchmark score is a claim like any other. Five questions separate a number that measures analysis from one that measures familiarity, noise or formatting.
4 min read
You are three weeks into a scanner evaluation. Every vendor has sent a deck, and every deck has a benchmark slide: a percentage, a logo, a chart where their bar is the tallest. The numbers do not agree with each other, and they do not agree with what your team saw in the trial.
They are probably all accurate. They are also probably answers to different questions. A benchmark score is a claim, and like any claim it is only as good as what stands behind it. These five questions take about ten minutes and tell you whether a number measures analysis or something else.
1. What was it graded against, and how old is that key?
A score means nothing without the name and version of the suite behind it. Then ask how long that suite’s answer key has been public. The most widely used Java benchmark grades tools against a key dated June 2016. That is a strength for comparing results across years, and a weakness for everything else: a key that has been public for a decade is familiar to every rules team, and quite possibly to every language model. We went through the numbers in how old is the answer key your scanner is graded against.
A good answer: a named suite, a version, and a reason the tool could not have learned its cases.
2. What would a tool that flags everything score?
This one question exposes most weak metrics. A tool that flags every line catches every vulnerability. If the benchmark reports detection rate alone, or a precision figure on a set that is mostly vulnerable, that tool looks superb.
Youden’s J, the true-positive rate minus the false-positive rate, gives it exactly zero: its false-positive rate is 100%, exactly cancelling its 100% detection rate. OWASP Benchmark’s own accuracy score uses the same idea, and so does BenchProctor.
A good answer: “zero”, said without hesitation.
If flagging everything does not score zero, the benchmark is grading enthusiasm.
3. Can the label be read off the file?
Look at a few test files. If a path says sqli/Test0042_true_positive, a scanner can score well by reading the
path instead of tracing the data. Nobody has to intend that. Rules get tuned against
what tests reward, and names are the easiest thing in the world to match.
A good answer: file names that carry no class and no verdict, and labels kept in a separate answer key that the tool never needs to open. We wrote about why an answer key you cannot grep for is the baseline.
4. One number, or the breakdown?
A single percentage averages over everything that matters. A tool can be excellent at one large weakness class and blind to three small ones and still post a handsome total. Ask for the score per weakness class, per language, and separately for vulnerable and safe cases. Ask whether the headline weights each class equally or each case equally, because the two can tell very different stories.
For flows that cross a service boundary, ask for three numbers, not one: did the tool judge each flow, did it name the weakness, and did it connect the path from one service to the other. A blended score hides which of the three failed. Our post on vulnerabilities that cross a service boundary walks through why.
A good answer: a per-class table, a class-averaged headline with the flat figure beside it, and separate numbers for cross-service results.
5. Can you reproduce it yourself?
The strongest benchmark claim is the one you can recompute. That needs three things in public: the test cases, the answer key and the scoring code. Then you need the tool’s own output, in a standard format such as SARIF, plus the tool version and its configuration. For an AI reviewer, add the model version, the prompt and the number of runs, because the same model can answer differently twice; see why AI code reviewers need ground truth too.
A good answer: “here are the files, here is the SARIF, run the scorer.”
The questions, and our answers
We wrote these questions to be fair to every benchmark, so here is how BenchProctor answers them, one line each.
| Question | BenchProctor’s answer |
|---|---|
| Graded against what, and how old? | Every release is a fresh draw from its own seed, under the same scoring rules, so remembered files do not carry over. |
| What does flag-everything score? | Zero. Scores use Youden’s J. |
| Can the label be read off the file? | Not from its name or path. File names are shuffled IDs, and labels live in a separate answer key. |
| One number or the breakdown? | Class-averaged headline, flat aggregate beside it, per-class detail; cross-service results as three separate numbers. |
| Can you reproduce it? | Yes. Public cases, public answer key, and a scorer that is one standard-library Python file, run on your machine. |
None of this makes BenchProctor the only benchmark worth running. OWASP Benchmark and NIST’s Juliet suite have earned their place, and a tool that does well across several honest benchmarks is a better bet than one that wins a single slide.
See how BenchProctor answers them in detail on benchproctor.com.