Auditing Go go.mod & go.sum for OSV CVEs, CISA KEVs & Missing License Metadata
Why 87.5% of Go repos in our N=30 study carried live OSV CVEs (including 2/8 CISA KEVs) yet showed 0 SHA-256 hashes and 100% unknown licenses in go.mod alone — and how to emit compliant binary SBOMs.
Notice: Informational engineering guidance for security & procurement readiness — not legal advice. Backed by live telemetry from our N=30 B2B SaaS SBOM Supply-Chain Benchmark.
Zero Telemetry · Strict CSP (connect-src 'none')
1. Compliance Scope, Stack & Current Controls
SOC 2 · VSAQ · EO 14028 · EU CRA
Target Compliance & Procurement Frameworks
Language Ecosystems & Packaging Formats
Current Engineering & SBOM Controls (Check What You Have Today)
Disclaimer: Informational engineering guidance for security & procurement preparation — not legal advice.
SBOM-CORE-01: Commit deterministic lockfiles across all production servicesPASS
[Pinning & Lockfiles] Lockfiles are pinned. Enforce `npm ci`, `pip install --require-hashes`, or `-mod=readonly` in CI so floating ranges never drift.
SBOM-CORE-02: Emit CycloneDX 1.5/1.6 or SPDX 2.3 JSON with PURLs & SHA-256 digestsCRITICAL ACTION
[SBOM Artifacts] Generate release SBOMs via `syft` or `@cyclonedx/cdxgen` from resolved lockfiles/images. In RungLab's N=30 audit, 24/30 (80.0%) raw manifest scans had zero SHA-256 hashes.
[License Governance] Check transitive deps before legal redlines: 20.0% (6/30) of benchmarked repos triggered weak/strong copyleft flags (including AGPL-3.0-or-later via mupdf in SaaS code) and 100% had unknown licenses in raw manifests.
SBOM-CORE-05: Sign releases and SBOMs with Sigstore Cosign or SLSA v1 provenanceHIGH ACTION
[Artifact Provenance] Attach keyless GitHub Actions OIDC Cosign signatures (`id-token: write`) and SLSA provenance so buyers can verify SBOM integrity.
[SOC 2 Type II] Auditors require repeatable evidence over an observation window: retain timestamped release SBOMs (CC8.1 change management), OSV/KEV scan logs + patch PRs (CC7.1 vulnerability management), and third-party open-source inventory (CC9.2).
FW-NTIA-14028: Verify all 7 NTIA Minimum Elements (Supplier, Name, Version, PURL, Graph, Author, Timestamp)HIGH ACTION
[EO 14028 / NTIA] Federal & regulated buyers reject flat dependency lists missing dependency relationships (`dependencies[]` in CycloneDX / `relationships[]` in SPDX) or SBOM `metadata.timestamp` / `authors`.
FW-CISA-KEV: Block builds with unpatched CISA KEV CVEs & track BOD 22-01/26-04 due datesCRITICAL ACTION
[CISA KEV SLA] Treat CISA KEV matches as immediate P0 blockers (e.g., CVE-2026-111497 Google Brotli in Go manifests). Document fixed versions or compensating VEX controls.
[Containers / OCI] Base OS layers (`alpine`, `debian`) introduce CVEs missing from app lockfiles. Emit BuildKit SPDX attestations and scan `@sha256:` image digests with Syft/Trivy.
In our N=30 B2B SaaS SBOM Benchmark, 46.7% of open-core repos failed procurement gates (2/30 shipped CISA KEVs). Run a free zero-upload scan at sbom.runglab.dev, order the $39 6-File SOC 2 & VSAQ/SIG Dossier (Creem or PayPal invoice-on-delivery via [email protected]), or automate via Official MCP Server dev.runglab/devtools (audit_sbom_manifest).
Reads compiled debug/buildinfo + Go module cache to populate licenses & hashes
Run govulncheck + Emit Enriched Go Binary CycloneDX 1.6 SBOM
go-sbom-audit.sh
# 1. Check symbol-level reachability in Go codebase (reduces noise vs raw go.mod)
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
# 2. Generate CycloneDX 1.6 SBOM from compiled Go binary + module cache (includes stdlib!)
cyclonedx-gomod app -json -licenses -assert-licenses -output go-app.cdx.json .
# 3. Verify go.mod integrity & zero unpinned drift
go mod verify
GitHub Actions — Go OSV + License Enrichment Gate
go-sbom-gate.yml
name: Go SBOM & Vulnerability Gate
on: [pull_request, push]
jobs:
go-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.24"
- run: go mod verify && go build -o dist/server ./cmd/server
- uses: anchore/sbom-action@v0
with:
path: dist/server
format: cyclonedx-json
output-file: dist/server.cdx.json
Key Engineering & Procurement Takeaways
Go's Minimal Version Selection (MVS) pins exact module versions cleanly in `go.mod`, giving static OSV scanners high visibility (7/8 = 87.5% CVE detection in our benchmark).
However, `go.mod` never records SPDX licenses or SHA-256 digests (`go.sum` uses Go-specific `h1:` tree hashes), causing 8/8 Go repos in our benchmark to register 100% unknown licenses and 0 SHA-256 hashes from raw manifest inspection alone.
Scanning the compiled Go binary with `cyclonedx-gomod -licenses` or `syft` captures both embedded Go stdlib CVEs (e.g. `stdlib` version) and resolved module licenses.
Common Deal-Blocking Pitfalls to Avoid
Sending a raw `go.mod` file to an enterprise buyer as your 'SBOM' — missing Go standard library version, SHA-256 hashes, and SPDX license expressions.
Ignoring `// indirect` Go modules — indirect packages like `github.com/andybalholm/brotli` or `golang.org/x/net` accounted for active CISA KEV and HIGH CVEs in our N=30 study.
Using `govulncheck` alone without exporting a machine-readable CycloneDX/SPDX SBOM for non-Go procurement portals.
How B2B SaaS engineering teams satisfy AICPA SOC 2 Type II auditors across CC7.1 vulnerability monitoring, CC8.1 release change management, and CC9.2 vendor supply-chain risk using automated SBOMs.
Concrete engineering answers and evidence templates for Google VSAQ, Shared Assessments SIG Lite, and CSA CAIQ questionnaire sections covering SBOMs, third-party CVE SLAs, and copyleft governance.
Which SBOM format do Fortune 500 InfoSec teams, legal departments, and US/EU regulators prefer? Practical procurement tradeoffs between CycloneDX 1.5/1.6 and SPDX 2.3 (ISO/IEC 5962).
Vulnerability ManagementCISA KEV · BOD 22-01/26-04
How to operationalize CISA Known Exploited Vulnerabilities (KEV) gating, BOD 22-01/26-04 remediation deadlines, and VEX non-affected justifications before enterprise buyer audits.
Engineering preparation for EU CRA Annex I technical obligations: machine-readable top-level SBOMs, security update tracking across the support lifecycle, and 24h/72h ENISA reporting workflows.
Exact breakdown of the 7 NTIA SBOM Minimum Elements data fields, automation support requirements, and how to stop NOASSERTION and missing PURLs from failing federal/regulated vendor reviews.
Why did Go repos account for both CISA KEV hits in RungLab's N=30 SBOM benchmark?
Go manifests pin exact indirect dependency versions (avoiding the floating-SemVer blindspot seen in package.json), so live OSV + CISA KEV matching surfaced real indirect vulnerabilities like CVE-2026-111497 (Google Brotli) immediately.
Does go.mod include the Go compiler / standard library version for CVE checks?
go.mod declares the `go` toolchain directive, while compiled Go binaries embed the exact buildinfo stdlib version — always generate your production SBOM from the built binary or via cyclonedx-gomod.
How can I audit my go.mod right now without installing CLI tools?
Drop your go.mod directly into sbom.runglab.dev (or run audit_sbom_manifest via dev.runglab/devtools MCP) for instant OSV GO-* / CVE / CISA KEV scoring and a downloadable SOC 2 remediation plan.