SQL_INJECTION_TEMPLATE_LITERALA security benchmark you can reproduce.
This checked-in corpus tests labeled security rules against paired vulnerable and safe controls. The result is deterministic, public, and enforced in CI.
The same local scanner, tested in CI.
The visual demo shows Ship Safe running against a repository. The benchmark itself runs without animation, accounts, or external AI calls so every assertion remains deterministic.
Conventional and AI-native risks.
Every row maps a labeled fixture to one expected rule and a paired safe control.
JWT_ALG_NONESSRF_USER_URL_FETCHAPI_SPREAD_BODYLLM_OUTPUT_TO_EVALMCP_TOOL_SHELL_EXECAGENT_TOOL_NO_CONFIRMATIONRAG_USER_UPLOAD_TO_VECTORDBHERMES_FUNCTION_CALL_NO_ALLOWLISTMODEL_TORCH_LOAD_UNSAFEWORM_LIFECYCLE_EXFILCLICKFIX_PASTE_RUNSmall, explicit, and regression-focused.
First-party paired synthetic scenarios; one vulnerable and one safe control per target rule.
- Run the named local agent against the vulnerable fixture.
- Require the labeled target rule to appear.
- Run the same agent against its safe control.
- Require the labeled target rule not to appear.
- Fail CI if either assertion regresses.
$ npm run benchmark:corpusNo inflated claims.
This corpus measures deterministic scenario detection, not prevalence or performance on arbitrary production repositories.
Target-rule clean-control pass rate is not a real-world precision estimate.
The evaluation is maintained by the Ship Safe project and is not independent validation.
Independent review, pinned third-party vulnerable repositories, and comparative scanner testing remain separate evidence tracks.
Read the result correctly.
What does the Ship Safe benchmark measure?
It measures whether a labeled target rule detects its vulnerable synthetic fixture and stays quiet for that same rule on a paired safe control.
Is this an independent security benchmark?
No. This is a transparent first-party regression corpus maintained by Ship Safe. It does not claim independent validation or production-repository precision.
How can I reproduce the benchmark?
Clone the Ship Safe repository and run npm run benchmark:corpus. The command exits with an error if a labeled detection or paired target-rule control regresses.