VexAnalytiX

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

Summary

AreaMeasureEarlier runLater runPeers, same run
SCAPeer-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%
IaCCheckov failed (file, check) pairs also reported (2,123)53.9% (1,144)69.1% (1,467)–
SASTSemgrep results also flagged (5,202)34.4%34.6%–
SASTCodeQL security results also flagged (4,739)27.2%27.5%Semgrep flags 30.3% of them
SASTCodeQL results also flagged, excluding OWASP BenchmarkJava (588)7790–
SecretsPeer-union locations also reported (647)233233–

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.

ToolTPRFPRScore
VexAnalytiX100.0%0.0%100.0%
CodeQL78.7%22.9%55.9%
Semgrep88.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

SAST per repository (later run)

RepositorySemgrepCodeQLVexAnalytiXSemgrep also flagged by VexAnalytiXCodeQL also flagged by VexAnalytiX
dvna2233644
vulnerable-node4041211318
express4451240
vite42531808
jest7810600
nextjs-commerce10000
dvpwa621231
vuln-flask295442
fastapi-template226000
poetry178200
djangoproject3661022
pipenv92711110
petclinic140110
dropwizard1014510
nowinandroid330000
gin402000
containerd506000
ripgrep210000
webgoat-net7036842
eshoponweb154000
railsgoat4460775
mastodon42636200
dvwa85035480
koel180200
tf-aws-vpc170000
kubernetes-goat614562
prom-helm110300
aws-cfn-templates120110
test-keys30000
juice-shop658030411
NodeGoat3414575
WebGoat23275472113
pygoat13542454617
gotestbench230440
BenchmarkJava32524151169916071211
terragoat300000
cfngoat70000
gitleaks-testdata850000

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