govulncheck
$ govulncheck Official Low RiskOfficial Go security tool that queries the Go vulnerability database and performs call-graph reachability analysis on source code (-mode=source) or compiled binaries (-mode=binary). Strictly read-only with structured JSON (-format=json / -json) and SARIF output.
brew install govulncheck Local reachability analyzer against the Go vulnerability DB; CLI -format=json is fast and self-contained.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports structured -format=json (and -format=sarif / -format=openvex), deterministic non-TTY execution, and clear exit codes.
-format=jsonoutputs structured OSV and call-trace JSON- Supports
-format=sarifand-format=openvex
Strictly read-only scanner with zero file mutations and public read-only advisory database lookups.
- Purely read-only source and binary vulnerability inspection
Easy install via go install or Homebrew on macOS, Linux, and Windows; source mode requires the Go toolchain.
- Distributed via Homebrew and
go install
Call-graph reachability filtering cuts noisy false-positive CVEs dramatically compared to manifest-only scanners.
- Separates reachable symbol vulnerabilities from uncalled module deps
First-party official Go Team project (golang/vuln) under BSD-3-Clause.
- Official Go Security Team tool
Clear documentation on pkg.go.dev and go.dev/security/vuln/.
- Official Go documentation and CLI
-help
Security, Auth & Guardrails
Queries public vuln.go.dev database (or local GOVULNDB directory); no credentials stored or required.
BSD-3-Clause official Go tool; free to use.
# govulncheck Agent Rules - Use `govulncheck -format=json ./...` (or `-json` on older versions) to distinguish reachable vulnerabilities from unused dependency CVEs. - For airgapped sandboxes, point `-db` to a local mirror of the Go vulnerability database.
Agent-Ready Command Recipes
Safe Read-Only Queries
govulncheck -format=json ./...
Emits JSON stream records detailing OSV advisories and actual reachable call stacks.
govulncheck -mode=binary -format=json ./bin/server
Audits symbols embedded in a compiled Go binary without needing source checkout.
Strengths for Agents
- + Reachability analysis eliminates noise from CVEs in uncalled dependency functions.
- + Official Go Team tool supporting
-format=json, SARIF, OpenVEX, and binary scanning.
Caveats & Pitfalls
- ! Requires network access to
vuln.go.devunless-dbpoints to a local vulnerability DB mirror. - !
-format=jsonemits a stream of JSON objects (config, osv, finding) rather than a single array.