Skip to content
BetterScan

1,407 of 1,415
real bugs found.

Same tests. Same machine. Official answer key. Versions named.

$curl -fsSL https://betterscan.org/install.sh | sh
View source
OWASP Benchmark v1.2OpenGrep 1.15.1Fraunhofer CPG 10.8.2No server · No compile step

01/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,415
    99.4%
    merged report8 missed
  • FindSecBugs1,370/1,415
    96.8%
    single engine45 missed
  • Bearer1,060/1,415
    74.9%
    single engine355 missed
  • Sonar614/1,415
    43.4%
    single engine801 missed
  • ZAP245/1,415
    17.3%
    single engine1170 missed

Privacy rules were disabled on the official OWASP Benchmark for every scanner, so the comparison measures security bugs only.

Benchmark notes

02/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.

The quick pass

OpenGrep 1.15.1

Known bad patterns across many languages, matched fast and in parallel.

Source on GitHub
The careful pass

Fraunhofer CPG 10.8.2

A human-written engine that maps how the program runs and how data moves through it.

Source on GitHub

AI-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_NOTICES

04/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 | sh

Pinned release

$curl -fsSL https://betterscan.org/install.sh | sh -s -- --version v1.4.0

Install prefix

$curl -fsSL https://betterscan.org/install.sh | sh -s -- --prefix ~/.local

Use -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.git

Build the CLI

Go 1.22+ · git

$cd betterscan && make build

Install the binary

Go 1.22+ · git

$install -m 0755 bin/betterscan ~/.local/bin/betterscan

05/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 ./src

Fast lane only

OpenGrep pattern pass

$betterscan scan ./src --fast

Deep graph only

CPG · OWASP + CWE packs

$betterscan scan ./src --deep --packs owasp,cwe

CI · JSON

Machine-readable output

$betterscan scan ./src --format json --out report.json

CI · SARIF

Code scanning upload

$betterscan scan ./src --format sarif --out report.sarif

CI · HTML

Shareable report

$betterscan scan ./src --format html --out report.html

Full flags and CPG packs live in the CLI reference.

CLI reference

06/Repository

What lives where.

A flat, readable layout — the core, the CLI, the CPG bridge, and the evidence that backs the benchmark.

PathRole
betterscan-coreShared scanning core: engine orchestration and finding merge
betterscan-cliThe CLI binary — flags, output formats, exit codes
betterscan-java/cpgFraunhofer CPG integration and graph queries
fixtures/vulnerableDeliberately vulnerable samples used in tests
deployCloud Run and ECS/Fargate job templates
scriptsInstaller, release and maintenance scripts
.gitlab-ci.ymlCI pipeline: build, test and release
brandLogo, wordmark and visual assets
resultsBenchmark runs and comparison notes
Browse the repository

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.

Lineage

BetterScan continues the Contender line shown at Black Hat MEA 2025 in Riyadh. Earlier names: Checkmate and Lattice.