Open SAST benchmark · Apache 2.0 · no signup
BenchProctor is an open benchmark corpus for static analysis. Every test case is labeled vulnerable or safe, across 11 languages and the legacy, long-term-support and modern API generations of each framework, with no category or label hint in its name or identifiers. Multi-service applications test flows that cross a service boundary. Score compatible SARIF 2.1.0 output with the bundled Python scorers.
Release 2026.11.22 is live now: 15,372 balanced standalone cases across all 11 languages in 46 API generation folders, plus 368 multi-service applications. Read the release update →
$ python score_sarif.py results.sarif expectedresults-2026.11.22.csv # 15,372 cases | 11 languages | 25 classes CATEGORY-AVERAGED SCORING (macro-averaged) FLAT AGGREGATE SCORING SUMMARY reports TPR, FPR, and Youden's J Actual scorer section headings. Your metrics depend on your scanner output.
Why another benchmark
PROBLEM 01
Most suites ship a fixed set of human-written cases. The tools, and the data they were trained on, overfit to them, and a high score stops meaning real-world accuracy.
→ A rotated release uses fresh variants while preserving the published scoring contract.
PROBLEM 02
When a path, identifier, or comment says sqli_true_positive_01, you are testing string matching, not analysis. A scanner can score high for entirely the wrong reason.
→ No comments beyond one identical license line, no CWE tags, shuffled file names. The CSV answer key is the only ground truth.
PROBLEM 03
Real findings cross files, services, and languages, and code in the field runs on more than one release of each framework. Single-file, single-language suites never exercise any of that.
→ Eleven languages and twenty-one framework targets, each in the API generations still in production, ship as standalone cases, and 368 two-service applications carry flows across a process boundary.
What a test case is
Each category is one vulnerability class expressed as a taint flow. Untrusted input enters at a source, travels to a sink, and a defense either holds or it doesn't. A vulnerable case has no safeguard; its safe twin applies one that works. Every case is graded easy or medium, and each framework and class pair comes out balanced 50/50 vulnerable to safe. Each class ends in at least three different sink statements per side, apart from a few documented exceptions, so modeling a single API call cannot carry a class.
Where untrusted input enters: query params, request bodies, headers, env vars, files, message payloads.
How the data travels to the sink: concatenation, decoding, parsing, indirection, collection passthrough.
What would neutralize it: parameterization, output encoding, validation, allow-lists, strong crypto.
The dangerous call: query execution, command exec, HTML render, file open, redirect, deserialization.
# vulnerable case source http_request_body
propagator json_parse, field_access
sink sql_query
label vulnerable # safe twin, same flow, one defense that holds source http_request_body
propagator json_parse, field_access
sanitizer parameterized_query
sink sql_query
label safe The defense in a safe case always fits the sink it protects. A scanner never gets a free win from a nonsense pairing like an HTML encoder guarding a SQL query, so passing means the tool actually reasoned about the flow.
Seeded rotation
Each release is a fresh draw with its own seed, so a tool cannot rely on recognizing prior files. The languages, frameworks, generations, weakness classes, sampling, and difficulty stay the same, which keeps results comparable from one release to the next. The next release is planned as a quarterly rotation.
# any rotation: fresh variants, identical contract
corpus-2026.11.22/ 25 classes · 50/50 · difficulty held
corpus-next/ 25 classes · 50/50 · difficulty held # results stay comparable across the fixed scoring contract # limits what remembering last release's files can buy [ok] new code, identical contract
Anti-leakage by construction
A benchmark only measures analysis if the file can't be classified by its name or its comments. Every file in the corpus holds to these properties, so nothing is left to authoring discipline.
Each file carries one identical license line and nothing else. There is no natural-language hint for a model to latch onto.
Not in the code, not in identifiers, not in filenames. Nothing in a test file names its own vulnerability class.
The name and position of a file tell you nothing about its category or its label. There is no ordering to read a pattern off of.
The answer key lives in one place the scanner never reads: a separate expectedresults CSV that only the scorer ever opens.
Current scope
This is a curated release, deliberately narrow: a small, fresh draw from a larger corpus that is not published. Read a score on it as a floor check on broadly known classes, not as a full assessment.
15,372 single-file cases across 11 languages and 21 framework targets in 46 API generation folders, exactly 7,686 vulnerable and 7,686 safe, with 20 of each for every framework and class pair (30 in C, 24 in C++).
368 two-service applications over 6 service graphs in TypeScript, JavaScript, Python, Java and C++, holding 5,284 labeled flows. The primary flow starts in one service and reaches a sink in the other, and applications of every graph were built and run under Docker before release.
A vulnerable case has no safeguard, and a safe case has one that works. A tool that treats the presence of any safeguard as proof of safety is not penalized here.
Flows use direct and medium-depth propagation only, at easy and medium difficulty. Frameworks, classes and application shapes beyond the published lists are left out too.
Polyglot coverage
In each language, cases use the real framework and library APIs of their generation, written the way that ecosystem writes them. They are synthetic by design: each one isolates the behavior that is scored, not a complete production feature. Each framework target carries the weakness classes that occur in its language, so C and C++ add memory-safety classes the managed languages do not have. Each target is drawn in its API generations: the modern line, an older line still widely deployed, and the long-term-support line where the project has one, each in its own folder with its own answer key. Five languages also appear in the multi-service applications.
Python
Flask · Django · FastAPI
Go
net/http · Gin
Java
Spring · Jakarta EE
JavaScript
Express · Koa
TypeScript
NestJS · Express
PHP
Laravel · Symfony
Ruby
Rails · Sinatra
Bash
standalone
Rust
Actix · Axum
C
standalone
C++
cpp-httplib · standalone
Scoring
Run your scanner, hand the SARIF and the answer-key CSV to a one-file scorer, read three numbers. No service, no account, no telemetry. The math is fully in your hands.
The whole formula
detected ignored
vulnerable TP FN
safe FP TN
TPR = TP / (TP + FN) detection rate
FPR = FP / (FP + TN) false-alarm rate
J = TPR − FPR Youden's J What the score means
Every category is weighted equally, so a handful of huge categories can't carry the score. A flat aggregate is reported alongside for comparison.
Compatible SARIF 2.1.0 output can be scored. Both scorers are single standard-library Python files with no dependencies. The applications scorer reports flow judgment, CWE identification and service-graph reconstruction side by side, never averaged into one number.
Ground truth you can trust
A benchmark is only as useful as its labels and its scoring rules. Each public bundle includes test code, an answer-key CSV, a scorer, and a manifest with integrity data. Before release, every source file went through its language's native toolchain at its generation's settings, every bundle was scored with its own shipped scorer, a deterministic gate suite with no AI judge checked each label, and the applications were built and run under Docker. The per-file proof metadata is not public.
# public bundle contents testcode/ the programs you scan, blind expectedresults.csv test, category, label, CWE score_sarif.py the public, dependency-free scorer benchproctor-manifest.json counts and checksums # the label for each program safe or vulnerable [ok] public labels and integrity data included
Check the public artifact
Each public label includes its category and CWE in the answer key. If you think a label is wrong, inspect the released case and answer key, then raise the specific discrepancy.
Track record
RUN, NOT JUST COMPILED
Before release, applications on every service graph and in both generations were built from their own Dockerfiles, started with their own compose files and sent a request carrying a marker. A run counted only when the marker reached the far end: the backend service's own log, or the database's statement log. 11 of 12 graph and generation pairs passed. On the twelfth, no backend sink writes anything a log can show; a copy with one print added showed the marker arriving.
FIXED IN UNDER A DAY
It was fixed in under a day. Today every C and C++ folder's README and manifest list exactly which libraries its cases include, with the packages to install on Fedora and Debian.
WITHDRAWN ON PURPOSE
Safe SQL injection cases now quote the value they guard. When an audit found 314 cases labeled safe that an attacker could beat, we fixed the cause and withdrew the whole 2.9-million-case release that carried them, instead of leaving it up. Corrections ship as new releases with a changelog; nothing is replaced silently.
Side by side
Every figure here can be checked in the projects' own public answer keys and documentation. OWASP Benchmark has earned its place: it is a full runnable application that also serves dynamic and interactive tools, its stated intent is that every scored vulnerability is exploitable, and it ships scorecard generators for many tools. Run it too.
| BenchProctor 2026.11.22 | OWASP Benchmark for Java v1.2 | OWASP Benchmark for Python v0.1 | |
|---|---|---|---|
| Labeled cases | 15,372 | 2,740 | 1,230 |
| Vulnerable / safe | 7,686 / 7,686 | 1,415 / 1,325 | 452 / 778 |
| Languages | 11 | 1 | 1 |
| CWE classes | 25 | 11 | 14 |
| Answer key dated | 2026-11 | 2016-06 | 2026-01 |
| Release model | fresh draw every release | fixed set per version | fixed set per version |
| Multi-service applications | 368, 5,284 labeled flows | none | none |
| Score | Youden's J | Accuracy Score, essentially Youden's index | Accuracy Score, essentially Youden's index |
| Runnable for dynamic and interactive testing | applications ship with their container files | yes, a full web application | yes, a full web application |
Read on 2026-11-22 from expectedresults-1.2.csv and
expectedresults-0.1.csv in the OWASP-Benchmark repositories, and from
owasp.org. OWASP Benchmark for Python describes v0.1 as a preliminary first release. Larger suites
exist: NIST's Juliet suite for C and C++ lists 64,099 cases.
The ecosystem
Five focused tools for shipping with AI agents. Each stands on its own; together they cover code, action, orchestration, memory, and proof.
TheAuditor
SAST that follows your data across every boundary.
theauditortool.com →Warden
The GUI CLI client. Every claim with its evidence.
wardenclient.com →Arbiter
Stop babysitting Claude Code and Codex.
arbitermcp.com →Curator
Memory that keeps up with who you've become.
curatormcp.com →BenchProctor
Open SAST ground truth, drawn fresh every release.
you are hereGet started
Four commands stand between you and a reproducible score for your scanner. Release 2026.11.22 is the current corpus, published as plain files: one folder per language, one for the applications, and a single standard-library Python scorer inside each.
# 1. clone the corpus; the current release is in Benchmarks/ $ git clone https://github.com/TheAuditorTool/BenchProctor$ cd BenchProctor
# 2. scan one framework generation, export SARIF 2.1.0, score it $ your-tool scan Benchmarks/standalone/java/spring/testcode --format sarif -o results.sarif
$ python Benchmarks/standalone/java/score_sarif.py results.sarif Benchmarks/standalone/java/spring/expectedresults-2026.11.22.csv
# 3. read TPR, FPR, and your Youden J → category-averaged + flat aggregate, per-category breakdown