Package Registry · SLSA v1 + npm publish

npm Provenance Attestations with Sigstore & SLSA v1 Verification

Publish verifiable npm packages with --provenance on GitHub Actions or GitLab CI, inspect DSSE in-toto SLSA statements, and enforce npm audit signatures in CI.

100% Browser-Side · Zero Telemetry (connect-src 'none')

1. Paste SBOM or Sigstore / Rekor JSON

CycloneDX · SPDX · Sigstore
Sigstore Bundle
100 / 100
PASS

Pass: 8 · Warnings: 0 · Errors: 0

Artifact / Envelope
DSSE (application/vnd.in-toto+json)
in-toto DSSE
Fulcio OIDC Issuer
token.actions.githubusercontent.com
https://github.com/runglab/mcpdiet/.github/workflows/release.yml@refs/tags/v1.3.0
Rekor Log Index
#148293045
2026-11-26T14:22:30.000Z
Merkle Inclusion Proof
3 hashes
Tree 148293102
SIG-MEDIA-001: Sigstore Bundle mediaType: application/vnd.dev.sigstore.bundle.v0.3+json PASS
Valid Sigstore protobuf-JSON bundle envelope detected.
SIG-ENV-001: Valid in-toto DSSE attestation envelope PASS
Subject: pkg:npm/@runglab/[email protected] · Predicate: https://slsa.dev/provenance/v1
FULCIO-CERT-001: Fulcio OIDC Issuer: https://token.actions.githubusercontent.com PASS
SAN: https://github.com/runglab/mcpdiet/.github/workflows/release.yml@refs/tags/v1.3.0 · Validity: 10 min (2026-11-26T14:20:00.000Z → 2026-11-26T14:30:00.000Z)
FULCIO-TTL-001: Ephemeral keyless cert window (10 min) PASS
Short-lived Fulcio certificate (<60 min) confirms keyless OIDC signing at log integratedTime.
FULCIO-CI-001: CI Provenance Claims: github-hosted · refs/tags/v1.3.0 PASS
Repo: https://github.com/runglab/mcpdiet · Trigger: push
REKOR-TLOG-001: Rekor Log Index 148293045 · 2026-11-26T14:22:30.000Z PASS
Log ID: c0d23d6ad406973f9559f3ba2d1ca01f84147d8ffc5b8445c224f98b9591801d
REKOR-BODY-001: Decoded Rekor canonicalizedBody: kind=dsse (v0.0.1) PASS
Artifact/Envelope SHA-256: 8f4b2c7d1e9a0f3b6c5d4e2a1b0c9d8e7f6a5b4c3d2e1f0a9b8c7d6e5f4a3b2c
REKOR-PROOF-001: Merkle Inclusion Proof verified (3 sibling hashes · Tree Size 148293102) PASS
Root Hash: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 · Signed Rekor checkpoint envelope present.
Actionable CLI, CI & RapidAPI Fix Commands
# Verify Sigstore bundle + Fulcio OIDC identity locally:
cosign verify-blob-attestation --bundle release.sigstore.json \
  --certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
  --certificate-identity-regexp "https://github.com/runglab/mcpdiet/.github/workflows/release.yml@refs/.*" \
  artifact.tar.gz

# Query live Rekor log index / inclusion proof via RungLab RapidAPI v1.3.0:
curl -s 'https://runglab-developer-intelligence-api1.p.rapidapi.com/v1/rekor/entry/148293045' \
  -H 'x-rapidapi-key: <YOUR_KEY>'

# Lookup Rekor entries by artifact SHA-256 via RungLab RapidAPI v1.3.0:
curl -X POST 'https://runglab-developer-intelligence-api1.p.rapidapi.com/v1/rekor/lookup' \
  -H 'Content-Type: application/json' -H 'x-rapidapi-key: <YOUR_KEY>' \
  -d '{"sha256":"8f4b2c7d1e9a0f3b6c5d4e2a1b0c9d8e7f6a5b4c3d2e1f0a9b8c7d6e5f4a3b2c"}'
VendorReady SBOM · Zero Upload $39 SOC 2 Procurement Dossier

Turn SBOMs & lockfiles into a 100-pt SOC 2 Procurement Dossier

Need CVE/CISA KEV risk scoring, directional SPDX copyleft checks, and buyer-ready SOC 2 security questionnaire evidence? Scan package-lock.json, requirements.txt, go.mod, CycloneDX or SPDX locally on VendorReady SBOM, export the $39 6-file SOC 2 Procurement Dossier, or call RungLab RapidAPI v1.3.0 (/v1/rekor/entry/{uuidOrIndex}, /v1/rekor/lookup, /v1/supply-chain/audit), Apify actors & MCP.

Specification & CI Field Reference

Field / Flag Expected Value Verification Purpose
Publish Flag npm publish --provenance --access public Generates DSSE in-toto SLSA v1 attestation logged to Rekor
CLI Audit Command npm audit signatures Verifies registry ECDSA + Sigstore provenance bundles for installed deps
DSSE payloadType application/vnd.in-toto+json Wraps _type: https://in-toto.io/Statement/v1
Predicate Type https://slsa.dev/provenance/v1 Records source repository, commit SHA, workflow path & builder

GitHub Actions — Publish npm Package with Sigstore Provenance

npm-provenance.yml
name: Publish npm Package
on:
  release:
    types: [published]

permissions:
  contents: read
  id-token: write

jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: "22"
          registry-url: "https://registry.npmjs.org"
      - run: npm ci && npm test
      - run: npm publish --provenance --access public
        env:
          NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Enforce npm Signature & Provenance Checks in CI + Registry API

verify-npm-provenance.sh
# Fail CI build if any installed dependency has invalid registry/Sigstore signatures
npm audit signatures

# Inspect raw Sigstore provenance bundle from npm registry attestations endpoint
curl -fsSL "https://registry.npmjs.org/-/npm/v1/attestations/@sigstore/[email protected]" | \
  jq '.attestations[] | {predicateType, logIndex: .bundle.verificationMaterial.tlogEntries[0].logIndex}'

Key Security & Architecture Takeaways

  • npm provenance wraps an in-toto SLSA v1 DSSE statement linking the exact tarball SHA-512 digest to the source commit, repo, and GitHub Actions workflow path.
  • Every published attestation receives an immutable Rekor transparency log index and Fulcio certificate so maintainer account takeovers cannot silently upload hand-built tarballs.
  • Running npm audit signatures in downstream CI pipelines validates both npm registry ECDSA signatures and Sigstore Rekor proofs.

Common Production Pitfalls to Avoid

  • Setting provenance: true in package.json publishConfig without id-token: write in GitHub Actions causes npm publish to abort with E422.
  • Using --provenance on private scoped packages requires an npm paid plan/public visibility; public packages receive free Sigstore provenance.
  • Trusting package.json repository URLs without checking the attested provenance predicate (attackers can spoof unverified repository fields in package.json).

More Supply-Chain Attestation & SBOM Guides

← Back to SBOM & Sigstore Validator Hub · VendorReady SBOM ($39 SOC 2 Dossier) → · CORS & Webhook HMAC Debugger → · 14×14 License Matrix →

Frequently Asked Questions

Does npm publish --provenance work with npm Trusted Publishing (OIDC)?

Yes — both token-based publish with id-token: write and OIDC Trusted Publishing automatically mint Sigstore SLSA v1 provenance bundles logged to Rekor.

What happens if an attacker compromises an NPM_TOKEN and publishes from their laptop?

They cannot forge a GitHub Actions Fulcio OIDC certificate for your workflow. Downstream consumers verifying provenance (or checking package badges) see the missing or mismatched provenance attestation.

Can I audit an entire package.json / lockfile supply chain via API?

Yes — call RungLab RapidAPI /v1/supply-chain/audit or run our Apify OpenSSF Supply-Chain Auditor actor alongside local SBOM checks.