Benchmark: methodology and raw results
Two measured runs of VexAnalytiX were compared with open-source scanners on the same 38 public repositories, each
pinned to a commit. This page is generated by scripts/make_public_benchmarks.py from the files in
benchmarks/broad/results/. The raw data behind every number is in results.json.
The full write-up is benchmarks/broad/REPORT.md and docs/BENCHMARKS.md (section 8) in the source package.
Method
- Peers, run once on the same checkouts: osv-scanner, trivy, grype, semgrep, checkov, gitleaks, trufflehog, codeql. Tool builds are recorded in the raw JSON, not on this page.
- SCA: an advisory instance is (package, version, advisory ids linked through aliases). The measure is the share of instances reported by any of osv-scanner, Trivy and Grype that a tool also reports. Production manifests only.
- IaC: (file, Checkov check id) pairs. Secrets: (file, line ±1) against the union of gitleaks, TruffleHog and Trivy. SAST: (file, line ±3) against Semgrep or CodeQL results.
- Peer overlap is not ground truth: peers have false positives, and a finding that only VexAnalytiX reports is not counted here as either right or wrong.
- Advisory data (OSV, CISA KEV, FIRST EPSS) is fetched live, so a re-run on a later day can give different numbers.
Summary
| Area | Measure | Earlier run | Later run | Peers, same run |
|---|---|---|---|---|
| SCA | Peer-union advisory instances also reported, production manifests (2,151) | 97.1% (2,089) | 97.2% (2,090) | osv-scanner 94.7%, Grype 72.2%, Trivy 67.3% |
| IaC | Checkov failed (file, check) pairs also reported (2,123) | 53.9% (1,144) | 69.1% (1,467) | – |
| SAST | Semgrep results also flagged (5,202) | 34.4% | 34.6% | – |
| SAST | CodeQL security results also flagged (4,739) | 27.2% | 27.5% | Semgrep flags 30.3% of them |
| SAST | CodeQL results also flagged, excluding OWASP BenchmarkJava (588) | 77 | 90 | – |
| Secrets | Peer-union locations also reported (647) | 233 | 233 | – |
OWASP Benchmark for Java 1.2 (2,740 labelled test cases)
Category-averaged true-positive rate minus false-positive rate, all tools scored by the same script.
| Tool | TPR | FPR | Score |
|---|---|---|---|
| VexAnalytiX | 100.0% | 0.0% | 100.0% |
| CodeQL | 78.7% | 22.9% | 55.9% |
| Semgrep | 88.1% | 44.1% | 44.0% |
The VexAnalytiX Java engine was developed against this benchmark, so its score is an upper bound. It is not evidence that it is more accurate than CodeQL or Semgrep on other code.
Where VexAnalytiX loses or is unproven
- SCA: osv-scanner resolves versions for unpinned Python requirements, which VexAnalytiX does not do. It reports 61 production instances that VexAnalytiX misses. Most of them are in that category; the rest use advisory ids that are not in OSV.
- SAST: on real applications, CodeQL and Semgrep report many results that VexAnalytiX does not. Excluding OWASP BenchmarkJava, VexAnalytiX flags 90 of CodeQL's 588 results. Use it alongside a dedicated SAST tool.
- IaC: 656 Checkov failures are not reported (graph checks, default-namespace and several Kubernetes securityContext checks). The new IaC rules also produce findings that Checkov did not fail, and these were not all reviewed.
- Only open-source tools were run. No commercial product was run, and no comparison with one is made.
SAST per repository (later run)
| Repository | Semgrep | CodeQL | VexAnalytiX | Semgrep also flagged by VexAnalytiX | CodeQL also flagged by VexAnalytiX |
|---|---|---|---|---|---|
| dvna | 22 | 33 | 6 | 4 | 4 |
| vulnerable-node | 40 | 41 | 21 | 13 | 18 |
| express | 44 | 5 | 12 | 4 | 0 |
| vite | 42 | 53 | 18 | 0 | 8 |
| jest | 78 | 10 | 6 | 0 | 0 |
| nextjs-commerce | 1 | 0 | 0 | 0 | 0 |
| dvpwa | 6 | 21 | 2 | 3 | 1 |
| vuln-flask | 29 | 5 | 4 | 4 | 2 |
| fastapi-template | 2 | 26 | 0 | 0 | 0 |
| poetry | 17 | 8 | 2 | 0 | 0 |
| djangoproject | 36 | 6 | 10 | 2 | 2 |
| pipenv | 92 | 7 | 11 | 11 | 0 |
| petclinic | 14 | 0 | 1 | 1 | 0 |
| dropwizard | 10 | 14 | 5 | 1 | 0 |
| nowinandroid | 33 | 0 | 0 | 0 | 0 |
| gin | 40 | 2 | 0 | 0 | 0 |
| containerd | 50 | 6 | 0 | 0 | 0 |
| ripgrep | 21 | 0 | 0 | 0 | 0 |
| webgoat-net | 70 | 36 | 8 | 4 | 2 |
| eshoponweb | 15 | 4 | 0 | 0 | 0 |
| railsgoat | 44 | 60 | 7 | 7 | 5 |
| mastodon | 426 | 36 | 2 | 0 | 0 |
| dvwa | 85 | 0 | 35 | 48 | 0 |
| koel | 18 | 0 | 2 | 0 | 0 |
| tf-aws-vpc | 17 | 0 | 0 | 0 | 0 |
| kubernetes-goat | 61 | 4 | 5 | 6 | 2 |
| prom-helm | 11 | 0 | 3 | 0 | 0 |
| aws-cfn-templates | 12 | 0 | 1 | 1 | 0 |
| test-keys | 3 | 0 | 0 | 0 | 0 |
| juice-shop | 65 | 80 | 30 | 4 | 11 |
| NodeGoat | 34 | 14 | 5 | 7 | 5 |
| WebGoat | 232 | 75 | 47 | 21 | 13 |
| pygoat | 135 | 42 | 45 | 46 | 17 |
| gotestbench | 23 | 0 | 4 | 4 | 0 |
| BenchmarkJava | 3252 | 4151 | 1699 | 1607 | 1211 |
| terragoat | 30 | 0 | 0 | 0 | 0 |
| cfngoat | 7 | 0 | 0 | 0 | 0 |
| gitleaks-testdata | 85 | 0 | 0 | 0 | 0 |
Reproduce
cd benchmarks/broad sh clone.sh corpus.tsv /path/to/bench export BENCH=/path/to/bench for t in osv trivy grype semgrep checkov gitleaks trufflehog; do ./run_peers.sh $t; done CODEQL=/path/to/codeql ./run_codeql.sh ./run_vex.sh mylabel /path/to/vexanalytix 4 python3 compare.py mylabel --src /path/to/vexanalytix