Trust
Scanner benchmarks
These numbers compare DVSentry's code scanners with named open-source tools on three public, independent test sets at pinned commits: OWASP Benchmark for Java, OWASP Benchmark for Python and the OpenSSF CVE Benchmark (real JavaScript and TypeScript CVEs). Anyone can re-run every number here with one downloadable script, and we show where DVSentry loses or ties. Below we say exactly what is published, what is not, and what we have not measured.
Read this first
- DVSentry uses open-source engines. Our code scanner runs the Semgrep engine with DVSentry's own rules and a second look that drops a finding only when it can prove the flagged line never receives request input. For Python, DVSentry also runs Bandit. So the comparison is DVSentry's rules and handling against the same engines with their stock open-source rules, not one engine against another.
- Only independent test sets are scored here. OWASP Benchmark for Java and for Python were written by OWASP and the CVE Benchmark by the OpenSSF, not by us, and their answer keys are public. Each number names its test set: "85.7 % on OWASP Benchmark Java" is a result on that set, not a share of all vulnerabilities. We also keep our own labelled JavaScript, C# and secrets suites, but our rules were tuned on them, so they are internal regression checks and not shown as scores.
- The Semgrep comparison uses the open-source semgrep-rules repository at a pinned commit, not the Semgrep Registry or Semgrep's commercial rules, which may score differently.
- Strict scoring depends on each rule set's CWE labels. A rule that flags the right file but labels it with a different CWE counts as a miss in strict mode and a hit in lenient mode. That is why both are shown: for example, the stock rules flag the weak-cipher files but score 0 % in the strict crypto row.
- A benchmark score is not a promise about your code. It says what each tool caught on these cases on the date shown.
What is published and what is not
- Published: the test set and the stock rules, each at the exact commit named in the kit; the tool versions; the scoring code (dvsentry_benchmark.py, one standard-library Python file that our own harness imports, so both score the same way); and the stored result behind this page (results.json).
- Not published: DVSentry's rule files and scanner code, because they are the product. So you cannot run DVSentry's rules on your own machine. Instead you check DVSentry's row by scanning the same test set with a DVSentry account and scoring the report export with the kit, as shown below.
- Not run: NIST Juliet (Java and C/C++). It is large and mostly synthetic, and DVSentry has no C/C++ code scanner, so a C/C++ score would only show that. We name it here rather than leave it out silently.
- Not published as scores: our own labelled suites (JavaScript, C#, secrets), because they are not held out.
Results
OWASP Benchmark for Java 1.2: Strict: the finding must name the case's CWE (official scorecard style)
2,740 cases: 1,415 real vulnerabilities, 1,325 safe look-alikes.
| Tool | Real issues found | Safe cases flagged | Score (found minus false alarms) |
|---|---|---|---|
| DVSentry (semgrep-local) | 85.7 % | 2.2 % | +83.5 |
| Semgrep + semgrep-rules java/ | 79.0 % | 41.7 % | +37.4 |
OWASP Benchmark for Java 1.2: Lenient: any finding in the case's file
2,740 cases: 1,415 real vulnerabilities, 1,325 safe look-alikes.
| Tool | Real issues found | Safe cases flagged | Score (found minus false alarms) |
|---|---|---|---|
| DVSentry (semgrep-local) | 87.3 % | 6.7 % | +80.6 |
| Semgrep + semgrep-rules java/ | 90.0 % | 45.0 % | +45.1 |
OWASP Benchmark for Java 1.2, strict, by category
| Category | DVSentry (semgrep-local): found / false alarms | Semgrep + semgrep-rules java/: found / false alarms |
|---|---|---|
| cmdi | 69.0 % / 0.0 % | 92.9 % / 87.2 % |
| crypto | 100.0 % / 23.3 % | 0.0 % / 0.0 % |
| hash | 69.0 % / 0.0 % | 69.0 % / 0.0 % |
| ldapi | 85.2 % / 0.0 % | 96.3 % / 87.5 % |
| pathtraver | 83.5 % / 0.0 % | 90.2 % / 78.5 % |
| securecookie | 100.0 % / 0.0 % | 100.0 % / 0.0 % |
| sqli | 86.0 % / 0.9 % | 93.0 % / 73.3 % |
| trustbound | 83.1 % / 0.0 % | 51.8 % / 41.9 % |
| weakrand | 100.0 % / 0.0 % | 100.0 % / 0.0 % |
| xpathi | 93.3 % / 0.0 % | 93.3 % / 65.0 % |
| xss | 82.1 % / 0.0 % | 82.1 % / 51.7 % |
OWASP Benchmark for Python 0.1: Strict: the finding must name the case's CWE (official scorecard style)
1,230 cases: 452 real vulnerabilities, 778 safe look-alikes.
| Tool | Real issues found | Safe cases flagged | Score (found minus false alarms) |
|---|---|---|---|
| Bandit 1.9.4 (default rules) | 23.9 % | 3.2 % | +20.7 |
| DVSentry (semgrep-local + bandit-python + dvsentry-review) | 69.0 % | 5.8 % | +63.2 |
| Semgrep + semgrep-rules python/ | 15.7 % | 9.4 % | +6.3 |
OWASP Benchmark for Python 0.1: Lenient: any finding in the case's file
1,230 cases: 452 real vulnerabilities, 778 safe look-alikes.
| Tool | Real issues found | Safe cases flagged | Score (found minus false alarms) |
|---|---|---|---|
| Bandit 1.9.4 (default rules) | 49.6 % | 16.5 % | +33.1 |
| DVSentry (semgrep-local + bandit-python + dvsentry-review) | 73.0 % | 24.0 % | +49.0 |
| Semgrep + semgrep-rules python/ | 100.0 % | 100.0 % | +0.0 |
OWASP Benchmark for Python 0.1, strict, by category
| Category | Bandit 1.9.4 (default rules): found / false alarms | DVSentry (semgrep-local + bandit-python + dvsentry-review): found / false alarms | Semgrep + semgrep-rules python/: found / false alarms |
|---|---|---|---|
| cmdi | 100.0 % / 100.0 % | 53.8 % / 14.3 % | 100.0 % / 100.0 % |
| codeinj | 0.0 % / 0.0 % | 60.0 % / 27.3 % | 0.0 % / 0.0 % |
| deserialization | 72.2 % / 19.4 % | 100.0 % / 33.3 % | 100.0 % / 33.3 % |
| hash | 0.0 % / 0.0 % | 100.0 % / 0.0 % | 0.0 % / 0.0 % |
| ldapi | 0.0 % / 0.0 % | 68.8 % / 0.0 % | 0.0 % / 0.0 % |
| pathtraver | 0.0 % / 0.0 % | 41.5 % / 1.0 % | 3.1 % / 1.9 % |
| redirect | 0.0 % / 0.0 % | 69.2 % / 0.0 % | 7.7 % / 4.8 % |
| securecookie | 0.0 % / 0.0 % | 100.0 % / 0.0 % | 100.0 % / 100.0 % |
| sqli | 100.0 % / 100.0 % | 100.0 % / 0.0 % | 100.0 % / 0.0 % |
| trustbound | 0.0 % / 0.0 % | 38.9 % / 0.0 % | 0.0 % / 0.0 % |
| weakrand | 77.8 % / 0.0 % | 77.8 % / 0.0 % | 0.0 % / 0.0 % |
| xpathi | 0.0 % / 0.0 % | 56.9 % / 12.6 % | 0.0 % / 0.0 % |
| xss | 0.0 % / 0.0 % | 32.3 % / 8.6 % | 0.0 % / 27.6 % |
| xxe | 0.0 % / 0.0 % | 62.5 % / 0.0 % | 100.0 % / 100.0 % |
OpenSSF CVE Benchmark (real JavaScript and TypeScript CVEs)
223 CVEs with a named weakness line; each project is scanned at the commit before its fix and the commit after.
| Tool | CVEs found on the exact line | Fix recognised (of those found) | Any finding in the weakness file |
|---|---|---|---|
| DVSentry (semgrep-local) | 51 of 219 (23.3 %) | 11 (21.6 %) | 58.4 % |
| Semgrep + semgrep-rules javascript/ + typescript/ | 56 of 219 (25.6 %) | 18 (32.1 %) | 65.3 % |
What this page does not measure
- Web scanning (OWASP ZAP, Nuclei). Needs a deployed target such as OWASP Juice Shop and a container runtime. Not run yet.
- AI testing (garak, promptfoo). Needs a live model endpoint. Not run yet.
- Dependency matching. DVSentry runs Trivy and OSV-Scanner themselves, so a comparison would compare those tools with themselves.
- Secret detection. Our only labelled set is our own planted corpus. On it DVSentry and Gitleaks with its default rules caught the same secrets, which is a tie, not a result we score here.
- Infrastructure-as-code, cloud and hosts. Our known-answer tests for these are internal and have no external tool beside them yet.
Check it yourself
You need Python 3.10 or newer and git. Download the kit, then fetch the test sets at their pinned commits (--with-cves also checks out every CVE's project before and after its fix, about 440 shallow clones):
curl -O https://dvsentry.com/downloads/dvsentry_benchmark.py
curl -O https://dvsentry.com/benchmarks/results.json
python dvsentry_benchmark.py fetch --work ./bench --with-cves
The stock rows
Install Semgrep 1.186.0 and, for the Bandit row, Bandit 1.9.4 (the kit refuses any other version). Pick the test set with --suite owasp-java, owasp-python or ossf-cve, then run and compare:
pip install semgrep==1.186.0 bandit==1.9.4
python dvsentry_benchmark.py stock --work ./bench --suite owasp-python --out stock.json
python dvsentry_benchmark.py stock --work ./bench --suite owasp-python --engine bandit --out bandit.json
python dvsentry_benchmark.py compare --published results.json --mine stock.json --suite owasp-python
The DVSentry row
- Sign up and add the public repository
https://github.com/OWASP-Benchmark/BenchmarkJava(orhttps://github.com/OWASP-Benchmark/BenchmarkPython). - Scan it at the commit the kit names (Java
10dfcc54ad02dcfcb358b0ba4a0fef8c919a6d17, Pythonf1291485808b66e20ddb6b01b10dc71b3df8c8ba; the scan form takes a commit). - When the report has finished, download Export > JSON, then score it:
python dvsentry_benchmark.py score --work ./bench --suite owasp-java --dvsentry-export report.json --out dvsentry.json
python dvsentry_benchmark.py compare --published results.json --mine dvsentry.json --suite owasp-java
Only findings from DVSentry's code scanners are counted, as on this page (Java and CVEs: semgrep-local; Python: semgrep-local, bandit-python and dvsentry-review). For the CVE set, scan each project at the two commits its CVE file names and pass a folder of exports named <CVE>-pre.json and <CVE>-post.json. Your DVSentry row can differ a little from ours when our rules have changed since the date measured; the page states that date and commit, and we re-measure when rules change. The kit sends nothing anywhere: its only network use is fetching the public test sets.