Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

OSV-Scanner

$ osv-scanner Official Low Risk
Google Open Source Security Team · Security & Secrets · Apache-2.0 · macos / linux / windows

osv-scanner matches project lockfiles, SBOMs, and repositories against Google's open OSV vulnerability database. It requires zero API keys, runs purely read-only, and outputs structured --format json or --format sarif results cleanly for automated remediation.

FCRS-1.0 Score
92 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install osv-scanner
CLI vs MCP Decision CLI Preferred vs MCP

Direct osv-scanner --format json checks local lockfiles in seconds with zero credentials or MCP schema overhead.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

Supports --format json, --format sarif, --format markdown, non-interactive defaults, and clear exit codes.

  • Native --format json and zero-auth execution
Trust & Safety 24 / 25

Strictly read-only; queries OSV.dev using package names/versions (no source code uploaded) and supports --offline mode.

  • Zero file writes; sends only package coordinates unless --offline
Setup & Portability 14 / 15

Single Go binary via brew, go install, Docker, and GitHub releases.

  • Cross-platform static binary
Utility & Efficiency 13 / 15

Zero-account, high-signal CVE matching across npm, PyPI, Go, Cargo, Maven, and SBOMs.

  • Supports major lockfile ecosystems and SPDX/CycloneDX SBOMs
Maintenance & Lineage 9 / 10

Maintained by Google's Open Source Security Team under Apache-2.0.

  • Official google/osv-scanner repository
Docs & Verifiability 9 / 10

Clean official documentation at google.github.io/osv-scanner/ covering CLI flags and offline mode.

  • Well-structured official documentation

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; queries the public OSV.dev API (or local offline OSV database bundles) read-only.

Side Effects
Read-Only
Cost & Quotas

100% free and open-source (Apache-2.0) using the open OSV.dev database.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# OSV-Scanner Agent Rules
- Pass `--format json` for structured parsing; treat exit code `1` as vulnerabilities found (vs `127`/`128` errors).
- Use `--offline` with `--download-offline-databases` in air-gapped CI environments.

Agent-Ready Command Recipes

Safe Read-Only Queries

Recursively scan project lockfiles as JSON
osv-scanner scan --format json -r .

Scans all supported lockfiles in the workspace against OSV.dev and emits structured JSON.

Scan a specific lockfile for known advisories
osv-scanner scan --format json -L package-lock.json

Targets a single package-lock.json file for fast, focused vulnerability checks.

Strengths for Agents

  • + Zero-auth, strictly read-only vulnerability scanning backed by open OSV.dev advisories.
  • + Clean --format json output without uploading proprietary source code.

Caveats & Pitfalls

  • ! Requires internet access to query api.osv.dev unless pre-cached with --offline.
  • ! Subcommand structure shifted to osv-scanner scan in v2 (v1 accepted flags directly).

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI