How we measure scanner accuracy, and keep it from slipping

Close-up of source code on a laptop screen

Published

in

Every security vendor claims accuracy. Fewer say how they measure it, or what stops it getting worse. Here is how we do both.

Three depths of analysis

  • Native: fast pattern-based checks, built for quick feedback in CI.
  • Extended: data-flow (taint) analysis for JavaScript, TypeScript and Python that follows untrusted input to dangerous calls and shows the path, plus established open-source scanners when they are installed.
  • Max: analysis across function boundaries, plus secret scanning of the full git history.

Measuring against known answers

Accuracy is only meaningful against code where the right answer is known. We keep benchmark corpora of true-positive and true-negative pairs for each weakness class, plus secret-validation fixtures with live and revoked credentials, and score every engine on them:

  • Precision: of everything we flagged, how much was real.
  • Recall: of everything real, how much we flagged.
  • F1: the balance of the two.

A regression gate, not a dashboard

Baselines are stored alongside the code. Our CI fails a change if aggregate recall drops by more than 2% or precision drops by more than 5% against that baseline. A rule that is “tidied up” and quietly stops catching a class of vulnerability does not ship.

Results you can take elsewhere

Every completed scan exports SARIF 2.1.0, including the data-flow path when taint analysis found one, so results can go into the tools your developers already use.

Accuracy is not the same as priority

A real finding is not necessarily an urgent one. Dependency findings are enriched with EPSS exploit-probability scores and CISA’s Known Exploited Vulnerabilities list, and the priority score combines severity, exploit likelihood, reachability and live secret validation. That is how thousands of accurate findings become a short list worth finishing. More on that in why SecureFase.