1,407 of 1,415
real bugs found.
Same tests. Same machine. Official answer key. Versions named.
$curl -fsSL https://betterscan.org/install.sh | sh01/The benchmark
Bugs found on the official OWASP Benchmark.
Every scanner ran the same 1,415 test cases on the same machine and was scored against the official answer key. Privacy rules were turned off so the score reflects security bugs, not personal-data noise.
True positives
out of 1,415
- BetterScan1,407/1,41599.4%merged report8 missed
- FindSecBugs1,370/1,41596.8%single engine45 missed
- Bearer1,060/1,41574.9%single engine355 missed
- Sonar614/1,41543.4%single engine801 missed
- ZAP245/1,41517.3%single engine1170 missed
Privacy rules were disabled on the official OWASP Benchmark for every scanner, so the comparison measures security bugs only.
Benchmark notes02/How it works
Several scanners at once. One report.
BetterScan runs multiple engines in parallel, merges their findings, and drops duplicates into a single report. No server to stand up, no compile step — just the source.
OpenGrep 1.15.1
Known bad patterns across many languages, matched fast and in parallel.
Source on GitHubFraunhofer CPG 10.8.2
A human-written engine that maps how the program runs and how data moves through it.
Source on GitHubAI-written rules
Rules are written and reviewed for the standards that matter, each linking to its reference.
No server. No compile step.
Point it at the source and read the report. Nothing else to stand up.
Install it →03/License
Free for noncommercial use.
PolyForm Noncommercial License 1.0.0
Free for noncommercial use — personal projects, research, education and similar purposes.
Commercial use requires a separate license from the copyright holder.
Engines keep their own licenses.
OpenGrep and Fraunhofer CPG are invoked as separate engines under their own terms.
THIRD_PARTY_NOTICES04/Install
One command, then scan.
The installer fetches the release asset for your platform. Pin a release or choose an install prefix when you need to.
Primary install
$curl -fsSL https://betterscan.org/install.sh | shPinned release
$curl -fsSL https://betterscan.org/install.sh | sh -s -- --version v1.4.0Install prefix
$curl -fsSL https://betterscan.org/install.sh | sh -s -- --prefix ~/.localUse -fsSL
The flags make curl fail on an HTTP error instead of piping an HTML error page into sh.
No release asset for your platform?
The installer builds from source instead. You need Go 1.22+ and git.
Build from source
Clone the repository
Go 1.22+ · git
$git clone https://codeberg.org/betterscan-io/betterscan.gitBuild the CLI
Go 1.22+ · git
$cd betterscan && make buildInstall the binary
Go 1.22+ · git
$install -m 0755 bin/betterscan ~/.local/bin/betterscan05/Usage
Quick scans, one flag apart.
The default run merges both engines. Narrow to a single lane when you want speed or depth, and pick an output format for CI.
Default scan
OpenGrep + CPG in parallel
$betterscan scan ./srcFast lane only
OpenGrep pattern pass
$betterscan scan ./src --fastDeep graph only
CPG · OWASP + CWE packs
$betterscan scan ./src --deep --packs owasp,cweCI · JSON
Machine-readable output
$betterscan scan ./src --format json --out report.jsonCI · SARIF
Code scanning upload
$betterscan scan ./src --format sarif --out report.sarifCI · HTML
Shareable report
$betterscan scan ./src --format html --out report.htmlFull flags and CPG packs live in the CLI reference.
CLI reference06/Repository
What lives where.
A flat, readable layout — the core, the CLI, the CPG bridge, and the evidence that backs the benchmark.
| Path | Role |
|---|---|
| betterscan-core | Shared scanning core: engine orchestration and finding merge |
| betterscan-cli | The CLI binary — flags, output formats, exit codes |
| betterscan-java/cpg | Fraunhofer CPG integration and graph queries |
| fixtures/vulnerable | Deliberately vulnerable samples used in tests |
| deploy | Cloud Run and ECS/Fargate job templates |
| scripts | Installer, release and maintenance scripts |
| .gitlab-ci.yml | CI pipeline: build, test and release |
| brand | Logo, wordmark and visual assets |
| results | Benchmark runs and comparison notes |
07/Cloud jobs & docs
Same binary, batch scale.
Cloud Run and ECS/Fargate templates run the same CLI binary as batch tasks. It is not a web UI — no dashboard, no hosted service.
Cloud Run
A job template that scans a checkout and writes the report to your bucket.
ECS / Fargate
The same task definition shape for AWS batch pipelines.
Both templates invoke the identical CLI binary — nothing to re-learn.
CLI reference
Every flag, output format and CPG pack.
Speed notes
How the parallel lanes and caching behave.
Benchmark notes
Method, versions and the official answer key.
Lineage
BetterScan continues the Contender line shown at Black Hat MEA 2025 in Riyadh. Earlier names: Checkmate and Lattice.