Cluster 8 · Ecosystem Audit · npm · package-lock vs package.json

Auditing npm package-lock.json vs. package.json for SBOMs, Hashes & Copyleft

Why auditing bare package.json creates massive OSV CVE blindspots (13/14 zero-CVE false negatives in our N=30 study) and how package-lock.json restores SHA-512 integrity, transitive trees & SPDX metadata.

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.
High Deal-Delay Risk
0 / 100 (F)
BLOCKED — REMEDIATE BEFORE SEND

Passing: 0 · Action Items: 9 · Frameworks: 2 · Ecosystems: 1

SBOM-CORE-01: Commit deterministic lockfiles across all production services CRITICAL ACTION
[Pinning & Lockfiles] Unpinned manifests blind static CVE scanners: in RungLab's N=30 SBOM benchmark, 14/30 (46.7%) repos relied on floating SemVer ranges (937 specs), masking CVEs until lockfile resolution.
SBOM-CORE-02: Emit CycloneDX 1.5/1.6 or SPDX 2.3 JSON with PURLs & SHA-256 digests CRITICAL 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.
SBOM-CORE-03: Enforce OSV / CVE & CISA KEV remediation SLAs before release CRITICAL ACTION
[Vulnerability & KEV Gate] Scan every release against api.osv.dev & CISA KEV: 50.0% (15/30) of benchmarked B2B SaaS repos carried live OSV CVEs and 6.7% (2/30) shipped active CISA KEV exploits.
SBOM-CORE-04: Screen transitive dependencies for AGPL/GPL copyleft & NOASSERTION gaps HIGH ACTION
[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 provenance MEDIUM ACTION
[Artifact Provenance] Attach keyless GitHub Actions OIDC Cosign signatures (`id-token: write`) and SLSA provenance so buyers can verify SBOM integrity.
FW-SOC2-CC7: Map SBOM scans & CVE remediation tickets to SOC 2 CC7.1, CC8.1 & CC9.2 HIGH ACTION
[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-VSAQ-SIG: Pre-package VSAQ / SIG Lite open-source inventory & copyleft attestation HIGH ACTION
[VSAQ / SIG Lite] Enterprise buyers ask whether you maintain a complete FOSS bill of materials, patch critical CVEs within SLA, and prohibit unapproved copyleft components. Pair a CycloneDX SBOM with pre-filled VSAQ/SIG answers.
DIST-SAAS: Audit network-interaction copyleft triggers (AGPL-3.0 / SSPL) HIGH ACTION
[Cloud SaaS Distribution] While GPL-2.0/3.0 typically triggers on binary distribution, AGPL-3.0 requires source disclosure over network interaction — flagged in SaaS PDF/document stacks like mupdf (AGPL-3.0-or-later).
ECO-NPM: Audit resolved package-lock.json / pnpm-lock.yaml — never bare package.json CRITICAL ACTION
[Node.js / npm] Ensure `package-lock.json` integrity hashes are intact and generate CycloneDX (`@cyclonedx/cyclonedx-npm`) from lockfiles to surface transitive MPL-2.0/EPL-2.0/AGPL-3.0 packages.
Exportable Procurement Readiness Checklist (Markdown)
# Enterprise SBOM & SOC 2 Procurement Readiness Checklist — Node.js / TypeScript SaaS

> Informational engineering guidance for security & procurement preparation — not legal advice.

- **Readiness Score:** 0/100 (Grade F) — **BLOCKED — REMEDIATE BEFORE SEND**
- **Buyer Friction Risk:** High Deal-Delay Risk
- **Target Frameworks:** SOC 2 Type II, VSAQ / SIG Lite
- **Language Ecosystems:** Node.js / npm (package-lock.json)
- **Distribution Model:** Cloud SaaS (Hosted Multi-Tenant Web / API)
- **Controls Summary:** 0 Passing / 9 Action Items

## Actionable Controls & Procurement Evidence Checklist

- [ ] **SBOM-CORE-01 (CRITICAL) — Commit deterministic lockfiles across all production services** [Pinning & Lockfiles]
  - Unpinned manifests blind static CVE scanners: in RungLab's N=30 SBOM benchmark, 14/30 (46.7%) repos relied on floating SemVer ranges (937 specs), masking CVEs until lockfile resolution.
- [ ] **SBOM-CORE-02 (CRITICAL) — Emit CycloneDX 1.5/1.6 or SPDX 2.3 JSON with PURLs & SHA-256 digests** [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.
- [ ] **SBOM-CORE-03 (CRITICAL) — Enforce OSV / CVE & CISA KEV remediation SLAs before release** [Vulnerability & KEV Gate]
  - Scan every release against api.osv.dev & CISA KEV: 50.0% (15/30) of benchmarked B2B SaaS repos carried live OSV CVEs and 6.7% (2/30) shipped active CISA KEV exploits.
- [ ] **SBOM-CORE-04 (HIGH) — Screen transitive dependencies for AGPL/GPL copyleft & NOASSERTION gaps** [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 (MEDIUM) — Sign releases and SBOMs with Sigstore Cosign or SLSA v1 provenance** [Artifact Provenance]
  - Attach keyless GitHub Actions OIDC Cosign signatures (`id-token: write`) and SLSA provenance so buyers can verify SBOM integrity.
- [ ] **FW-SOC2-CC7 (HIGH) — Map SBOM scans & CVE remediation tickets to SOC 2 CC7.1, CC8.1 & CC9.2** [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-VSAQ-SIG (HIGH) — Pre-package VSAQ / SIG Lite open-source inventory & copyleft attestation** [VSAQ / SIG Lite]
  - Enterprise buyers ask whether you maintain a complete FOSS bill of materials, patch critical CVEs within SLA, and prohibit unapproved copyleft components. Pair a CycloneDX SBOM with pre-filled VSAQ/SIG answers.
- [ ] **DIST-SAAS (HIGH) — Audit network-interaction copyleft triggers (AGPL-3.0 / SSPL)** [Cloud SaaS Distribution]
  - While GPL-2.0/3.0 typically triggers on binary distribution, AGPL-3.0 requires source disclosure over network interaction — flagged in SaaS PDF/document stacks like mupdf (AGPL-3.0-or-later).
- [ ] **ECO-NPM (CRITICAL) — Audit resolved package-lock.json / pnpm-lock.yaml — never bare package.json** [Node.js / npm]
  - Ensure `package-lock.json` integrity hashes are intact and generate CycloneDX (`@cyclonedx/cyclonedx-npm`) from lockfiles to surface transitive MPL-2.0/EPL-2.0/AGPL-3.0 packages.

## Fast Verification & Dossier Export
- Free Zero-Upload SBOM & KEV Audit: https://sbom.runglab.dev
- $39 6-File SOC 2 & VSAQ/SIG Procurement Dossier (Creem): https://www.creem.io/product/prod_3fpeHbtnRsnuSxvU9s2oGg
- PayPal Invoice-on-Delivery ($39 single-repo / $79 multi-repo): [email protected]
- Official MCP Registry (`dev.runglab/devtools` -> `audit_sbom_manifest`): https://mcp-server.runglab.dev/mcp
- Empirical N=30 SBOM Benchmark: https://tools.runglab.dev/research/b2b-saas-sbom-supply-chain-benchmark-2026/
VendorReady SBOM · Zero Upload $39 SOC 2 Procurement Dossier

Turn Lockfiles & SBOMs Into Buyer-Ready SOC 2 & VSAQ Evidence

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).

Controls, Specifications & Procurement Evidence Matrix

Control / Requirement Target Standard / Mechanism Audit & Engineering Rationale
package-lock.json (v2/v3) 100% OSV visibility (6/6 in N=30) Resolves 603–1,967 transitive components with integrity hashes & license fields
Bare package.json 93% CVE blindspot (13/14 silent in N=30) 928 floating ^ / ~ specs blocked exact version resolution & yielded 0 hashes
Cryptographic Hashes 5,635 hashed components (npm lockfiles) All 24 non-lockfile repos in N=30 had zero SHA-256/SHA-512 integrity hashes
Transitive Copyleft 100% of lockfile scans flagged (6/6) Surfaced mupdf (AGPL-3.0), @img/sharp (LGPL-3.0), lightningcss (MPL-2.0), elkjs (EPL-2.0)

Generate Pinned CycloneDX 1.6 SBOM from npm package-lock.json

npm-sbom-audit.sh
# 1. Enforce lockfile integrity in CI (never npm install in prod build)
npm ci --ignore-scripts

# 2. Generate CycloneDX 1.6 SBOM directly from resolved lockfile tree
npx @cyclonedx/cyclonedx-npm --output-format JSON --spec-version 1.6 --output-file sbom.cdx.json

# 3. Verify npm registry & Sigstore provenance signatures
npm audit signatures

Audit Your package-lock.json Zero-Upload in Seconds

audit-npm-lockfile.txt
# 1. Drop package-lock.json directly into https://sbom.runglab.dev (100% browser-parsed)
#    -> Computes live OSV CVEs, CISA KEV matches, SHA-512 hash ratio & copyleft flags
# 2. Or call Official MCP Registry dev.runglab/devtools -> audit_sbom_manifest

Key Engineering & Procurement Takeaways

  • RungLab's N=30 SBOM benchmark uncovered a stark empirical split: 6/6 (100%) package-lock.json scans uncovered live OSV CVEs (387 total CVEs) and transitive copyleft hits, while 13/14 bare package.json scans returned 0 CVEs solely due to unpinned SemVer ranges.
  • package-lock.json v2/v3 already records resolved transitive versions, npm registry integrity SHA-512 digests, and declared SPDX license fields.
  • Do not confuse `npm audit` alone with an enterprise procurement SBOM — buyers want CycloneDX/SPDX + license attribution + CISA KEV mapping.

Common Deal-Blocking Pitfalls to Avoid

  • Adding `package-lock.json` to `.gitignore` or scanning `package.json` alone in procurement compliance checks.
  • Running `npm install` instead of `npm ci` in release builds, silently drifting resolved transitive versions away from the audited lockfile.
  • Overlooking `dev` vs `runtime` scope separation in Next.js/monorepo lockfiles when triaging critical CVEs.

More Enterprise SBOM & SOC 2 Procurement Guides

← Back to SBOM & SOC 2 Readiness Hub · 2026 N=30 SBOM Benchmark → · 14×14 SPDX License Matrix → · CycloneDX / Sigstore Validator → · VendorReady SBOM ($39 Dossier) →

Frequently Asked Questions

Why did 13 of 14 package.json repos in the N=30 study show 0 CVEs?

Because raw package.json files list floating version ranges like `^4.18.0` (928 floating specs across those 14 repos) rather than exact resolved versions, preventing deterministic OSV vulnerability matching without a lockfile.

Should we include devDependencies in customer-facing SBOMs?

Include production/runtime dependencies (`--omit dev`) for deployed runtime SBOMs, or label `scope: optional/excluded` clearly in CycloneDX so buyers distinguish build tooling from shipped production code.

Does sbom.runglab.dev upload our private package-lock.json?

No. Manifest parsing, hash checking, and SPDX license scoring run client-side in your browser; only anonymized open-source package name/version pairs are queried against api.osv.dev.