BenchProctor

Open SAST benchmark · Apache 2.0 · no signup

Measure your SAST tool against ground truth drawn fresh for every release.

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 →

score_sarif.py
 $ 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.

11
languages
21
framework targets
25
CWE classes
15,372
standalone cases
368
applications
50/50
standalone balance

Why another benchmark

The benchmarks we had were measuring the wrong thing.

PROBLEM 01

Hand-authored corpora get memorized.

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

Filenames leak the answer key.

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

One language. One file. No defenses.

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

Every case is a real flow, built by combination, not by hand.

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.

SOURCE

Where untrusted input enters: query params, request bodies, headers, env vars, files, message payloads.

PROPAGATOR

How the data travels to the sink: concatenation, decoding, parsing, indirection, collection passthrough.

SANITIZER

What would neutralize it: parameterization, output encoding, validation, allow-lists, strong crypto.

SINK

The dangerous call: query execution, command exec, HTML render, file open, redirect, deserialization.

a case and its safe twin
 # 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

Rotation changes the code, not the yardstick.

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.

Held constant from 2026.11.22 on
Weakness classes and CWE IDs
25 · fixed
Sampling per framework and class
20 vulnerable · 20 safe (C 30, C++ 24)
Difficulty
easy and medium
Language & framework coverage
11 languages · 21 targets
API generations
46 folders · legacy, LTS, modern
how rotation works
 # 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

The test file gives the scanner nothing but code.

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.

01

No comments that help

Each file carries one identical license line and nothing else. There is no natural-language hint for a model to latch onto.

02

No CWE tags or category names

Not in the code, not in identifiers, not in filenames. Nothing in a test file names its own vulnerability class.

03

Meaningless file IDs

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.

04

CSV-only ground truth

The answer key lives in one place the scanner never reads: a separate expectedresults CSV that only the scorer ever opens.

Current scope

What release 2026.11.22 contains, and what it leaves out.

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.

Standalone cases, in the release

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++).

Multi-service applications, in the release

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.

Broken safeguards, not in this 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.

Deepest propagation, not in this release

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

Eleven languages, twenty-one framework targets, real idioms.

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

2,160 standalone cases 7 generation folders Applications: Flask · Django · FastAPI

Go

net/http · Gin

1,200 standalone cases 4 generation folders

Java

Spring · Jakarta EE

1,440 standalone cases 6 generation folders Applications: Spring · Jakarta EE

JavaScript

Express · Koa

1,440 standalone cases 4 generation folders Applications: Express

TypeScript

NestJS · Express

1,440 standalone cases 4 generation folders Applications: NestJS · Express

PHP

Laravel · Symfony

1,440 standalone cases 5 generation folders

Ruby

Rails · Sinatra

1,360 standalone cases 4 generation folders

Bash

standalone

440 standalone cases 2 generation folders

Rust

Actix · Axum

1,200 standalone cases 4 generation folders

C

standalone

1,140 standalone cases 2 generation folders

C++

cpp-httplib · standalone

2,112 standalone cases 4 generation folders Applications: cpp-httplib

Scoring

Scoring is arithmetic on a labeled set.

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

  • +1.0 Perfect: every vulnerability caught, zero false alarms.
  • 0.0 No measured discrimination: flag-everything and flag-nothing both land here.
  • −1.0 Inverted: it flags the safe code and misses the real bugs.

Category-averaged is the headline

Every category is weighted equally, so a handful of huge categories can't carry the score. A flat aggregate is reported alongside for comparison.

Tool-agnostic by design

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

Public labels, transparent scoring.

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.

what you download per suite
 # 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

Verify the published SHA-256 checksums, inspect the scorer, and reproduce the score from your own SARIF output. The release does not publish its internal proof metadata or oracle output.

Challenge a label with evidence

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

A benchmark earns trust the way a scanner should: with evidence.

RUN, NOT JUST COMPILED

The applications were started and sent real requests.

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

The first outside report came from people who build compilers and static analyzers for a living.

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

A wrong label is never left in circulation.

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

Compared with the best-known open benchmark, in public numbers.

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.22OWASP Benchmark for Java v1.2OWASP Benchmark for Python v0.1
Labeled cases 15,3722,7401,230
Vulnerable / safe 7,686 / 7,6861,415 / 1,325452 / 778
Languages 1111
CWE classes 251114
Answer key dated 2026-112016-062026-01
Release model fresh draw every releasefixed set per versionfixed set per version
Multi-service applications 368, 5,284 labeled flowsnonenone
Score Youden's JAccuracy Score, essentially Youden's indexAccuracy Score, essentially Youden's index
Runnable for dynamic and interactive testing applications ship with their container filesyes, a full web applicationyes, 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

Better alone. Unfair together.

Five focused tools for shipping with AI agents. Each stands on its own; together they cover code, action, orchestration, memory, and proof.

Get started

Free. Apache 2.0. No signup.

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.

three steps
 # 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

Newsletter

One email when something real ships.

The Code Reality Labs newsletter covers launches and major releases of TheAuditor, Warden, Arbiter, Curator and BenchProctor. Nothing in between.

Our newsletter service, Buttondown, opens in a new tab and sends one email to confirm. Every email has an unsubscribe link. Newsletter privacy