efficacy

command
v4.26.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Scan efficacy tools

Both need network access and are not part of go test.

just efficacy

Clones popular open-source repos, runs vulnetix scan --only sca on each, and compares every package in the SBOM (not only the ones with findings) with OSV. It fails when the scan makes more than MAX_WRONG false "affected" claims (default 2) or recall against OSV falls below MIN_RECALL (default 95).

just efficacy                          # the default corpus
ONLY=flask,fastapi just efficacy       # a subset
REPOS=vuln-apps.json just efficacy     # extra repos: [{"Name":"x","URL":"https://github.com/..."}]

Read the classes in this order:

Class Meaning
FP-REAL The scan said affected and OSV's own record excludes the version. A wrong claim; this is what the gate counts.
FP-flagged-unverified The scan said unverified where OSV excludes the version. It counts toward gates but does not claim anything false.
FN-missed OSV lists an advisory for the package that the scan did not report. Usually the database has no affected-package data for it.
FIX-too-low The recommended upgrade does not clear an advisory OSV lists for the install's release line.
ID-mislabel The right package and fix, reported under an id OSV does not use (server alias groups).
FP-unverifiable, FP-unknown-to-osv OSV has no record to compare against. Neither confirms nor refutes.
C-* Consistency checks that need no oracle (the same package must not be both fixed and vulnerable).

Precision against OSV understates quality: most of the gap is advisories OSV does not list for the package, not scan errors.

just vdb-smoke

For each vdb command and a set of well-known vulnerabilities, checks that the pretty output renders what -o json returns: no header with a blank identifier, no "No X found" when the JSON has data, no output far smaller than its data. A vulnerability the database has no record of (a 404 "Vulnerability not found") is a valid answer, not a failure.

Second oracle: GitHub advisories

OSV cannot confirm everything the scan reports (a CVE record may list a package OSV omits). tools/ghcheck takes the harness output and, for each counted CVE finding in the FP-unverifiable and FP-unknown-to-osv classes, asks GitHub's advisory database (gh api advisories?cve_id=…) whether the installed version is inside its vulnerable range:

go run ./tools/ghcheck path/to/efficacy-output.txt

It prints each finding GitHub contradicts (GH-SAYS-NOT-AFFECTED) and a tally of agreements, contradictions and packages GitHub has no entry for. It needs an authenticated gh. Contradictions are real false positives to chase; "no entry" proves nothing either way.

Documentation

Overview

Command efficacy measures how accurate `vulnetix scan` is on real open-source projects.

It clones a set of repositories, runs the SCA pass on each, and compares every finding with an independent oracle: OSV's answer for the exact package version. It also runs checks that need no oracle, because some failures are visible from the report alone (a fix older than the installed version, a "no fix" whose own range names one, an impossible group).

go run ./tools/efficacy -bin ./vulnetix -work /tmp/efficacy
go run ./tools/efficacy -bin ./vulnetix -work /tmp/efficacy -only fastapi,requests

The oracle is a cross-check, not the truth: OSV and Vulnetix draw on different sources. A disagreement is classified, never just counted, so that a real false positive (the advisory's own range excludes this version) is separated from a difference in coverage.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL