Container Security · Buildx + OCI Referrers

Docker Buildx SBOM & SLSA Provenance Attestation + Cosign Image Verification

Attach CycloneDX/SPDX SBOMs and SLSA provenance to container images using docker buildx --sbom=true --provenance=true and enforce digest-pinned verification in Kubernetes/CI.

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

1. Paste SBOM or Sigstore / Rekor JSON

CycloneDX · SPDX · Sigstore
CycloneDX 1.6 JSON
70 / 100
WARN

Pass: 4 · Warnings: 3 · Errors: 0

Detected Format
CycloneDX 1.6
UUID serial present
Components
5
1 dep nodes
Missing PURL / SHA-256
1 / 1
Out of 5 components
Unknown Licenses
1 / 5
Needs license audit
SBOM-CDX-SPEC: CycloneDX 1.6 format detected PASS
Meets modern NTIA minimum elements and CycloneDX 1.4–1.6 schema conventions.
SBOM-CDX-META: Document metadata, timestamp & root component present PASS
Root: [email protected] · 2026-11-26T15:10:00Z
SBOM-CDX-COMP: 5 CycloneDX components inventoried PASS
Non-empty component tree parsed cleanly.
SBOM-CDX-PURL: 1/5 component(s) missing canonical purl WARN
Affected: [email protected]. Supply-chain scanners (OSV, ClearlyDefined) require pkg: PURLs.
SBOM-CDX-HASH: 1/5 component(s) missing SHA-256/SHA-512 hashes (1 rely on deprecated MD5/SHA-1 only) WARN
Affected: [email protected]. Generate from lockfiles so artifact hashes are verified.
SBOM-CDX-LIC: 1/5 component(s) missing or NOASSERTION SPDX license WARN
Affected: [email protected]. Run RungLab ClearlyDefined or RapidAPI /v1/licenses/audit to resolve.
SBOM-CDX-DEPS: Dependency graph includes 1 edge nodes PASS
Transitive relationship paths preserved for reachability triage.
Actionable CLI, CI & RapidAPI Fix Commands
# Generate complete CycloneDX 1.6 SBOM with hashes & PURLs (cdxgen or syft):
npx @cyclonedx/cdxgen --spec-version 1.6 -o sbom.cdx.json .
syft dir:. -o cyclonedx-json=sbom.cdx.json

# Sign & attach SBOM attestation in CI (Sigstore Cosign):
cosign attest --yes --predicate sbom.cdx.json --type cyclonedx ghcr.io/org/app:v1.0.0

# Enrich missing licenses / check supply-chain risk via RungLab RapidAPI v1.3.0:
curl -X POST 'https://runglab-developer-intelligence-api1.p.rapidapi.com/v1/licenses/audit' \
  -H 'Content-Type: application/json' -H 'x-rapidapi-key: <YOUR_KEY>' \
  -d '{"projectLicense":"Apache-2.0","dependencies":["MIT","GPL-3.0-only"]}'
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
Buildx Attestation Flags --sbom=true --provenance=mode=max Embeds SPDX in-toto attestations inside OCI image index
Cosign Image Verify cosign verify --certificate-oidc-issuer ... <image>@sha256:... Always verify immutable @sha256 digest, never mutable :latest tag
SBOM Predicate Attachment cosign attest --predicate sbom.cdx.json --type cyclonedx Attaches CycloneDX or SPDX JSON as OCI attestation
Admission Controllers Kyverno / Sigstore Policy Controller Blocks unsigned or un-attested pods at cluster admission time

Build & Sign Multi-Arch OCI Image with SBOM + Provenance

container-attest.sh
# 1. Build & push OCI image with embedded BuildKit SBOM + SLSA provenance
docker buildx build --platform linux/amd64,linux/arm64 \
  --sbom=true --provenance=mode=max \
  -t ghcr.io/org/api:v1.4.0 --push .

# 2. Generate CycloneDX 1.6 SBOM from pushed digest & sign via Cosign keyless
IMAGE_DIGEST="ghcr.io/org/api@sha256:..."
syft "$IMAGE_DIGEST" -o cyclonedx-json=image.cdx.json
cosign sign --yes "$IMAGE_DIGEST"
cosign attest --yes --predicate image.cdx.json --type cyclonedx "$IMAGE_DIGEST"

Kyverno Policy — Require Keyless Cosign Signature & SBOM

kyverno-verify-image.yaml
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
  name: require-cosign-attestation
spec:
  validationFailureAction: Enforce
  rules:
    - name: verify-github-oidc-signature
      match:
        any:
          - resources: { kinds: ["Pod"] }
      verifyImages:
        - imageReferences: ["ghcr.io/org/*"]
          attestors:
            - entries:
                - keyless:
                    subject: "https://github.com/org/*/.github/workflows/release.yml@refs/tags/*"
                    issuer: "https://token.actions.githubusercontent.com"

Key Security & Architecture Takeaways

  • Docker Buildx --sbom=true attaches in-toto SPDX attestations directly inside the OCI image manifest list without requiring separate registry sidecars.
  • Signing and verifying mutable tags (:v1.4.0 or :latest) leaves a TOCTOU gap — always resolve and verify the immutable @sha256:... manifest digest.
  • Exporting the container SBOM with syft and validating it in this tool reveals base-image OS packages missing PURLs or containing NOASSERTION licenses.

Common Production Pitfalls to Avoid

  • Signing image tags instead of @sha256 digests allows an attacker with push access to re-tag an older or unverified image.
  • Using --provenance=mode=min omits build environment variables and VCS repository parameters needed by strict SLSA Level 2/3 verifiers.
  • Running older Docker registry mirrors that strip OCI referrers / unknown-arch manifest entries destroys attached Buildx SBOM attestations.

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 docker buildx --sbom=true use CycloneDX or SPDX?

BuildKit emits an in-toto SPDX JSON predicate attached to the OCI index. You can additionally generate and cosign-attest a CycloneDX 1.6 SBOM via Syft or Trivy.

How do I extract and inspect the SBOM embedded in a Docker image?

Run docker buildx imagetools inspect <image> --format '{{json .SBOM.SPDX}}' or syft <image> -o cyclonedx-json and paste the output directly into our validator above.

Can RungLab MCP Server or RapidAPI audit container/package dependencies?

Yes — connect dev.runglab/devtools (https://mcp-server.runglab.dev/mcp) in your AI IDE or call RapidAPI /v1/supply-chain/audit and /v1/licenses/audit.