Use when preparing a release or supply-chain evidence, when changing the build or SBOM pipeline, and when a model or dataset is added to a product. Checks that the SBOM (and AI-BOM for models and datasets) and build provenance are generated and verified. For ordinary dependency changes use secure-dependencies.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Sbom And Provenance?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/michalarchitect-sbom-and-provenance)
---
name: sbom-and-provenance
description: Use when preparing a release or supply-chain evidence, when changing the build or SBOM pipeline, and when a model or dataset is added to a product. Checks that the SBOM (and AI-BOM for models and datasets) and build provenance are generated and verified. For ordinary dependency changes use secure-dependencies.
---
# SBOM and provenance
## Why this skill exists
A product must be able to say what it is made of and how it was built. Without that, a newly disclosed vulnerability cannot be traced to affected releases, and a claim about a component cannot be verified. For products in scope of the Cyber Resilience Act an SBOM is required under Annex I part II(1) from 11 December 2027 (indicative); preparing for it now avoids a rushed retrofit.
## Scope
- application dependencies, container images, OS packages and bundled components
- the SBOM type that matches the lifecycle stage: design, source, build, analysed, deployed or runtime. For release evidence use a **build** SBOM; add an **analysed** SBOM for supplier binaries you cannot build
- models and datasets: keep an AI-BOM next to the software SBOM, using CycloneDX ML-BOM capabilities or the SPDX 3.0 AI and Dataset profiles
- build provenance and signed attestations for release artifacts
## Rules
1. **Use a standard, machine-readable format.** CycloneDX 1.7 or SPDX 3.0.1, unless the project has fixed another version.
2. **Cover at least top-level dependencies**, and transitive ones wherever the toolchain can resolve them reliably.
3. **Record identity, not guesses**: the required fields in [sbom-cra-checklist.md](sbom-cra-checklist.md) (section 3): SBOM author, timestamp in UTC, tool; per component supplier, name, version, unique identifier (package URL or CPE), hash, licence and dependencies. Never invent a component, version, hash or origin.
4. **Declare known unknowns.** Components you cannot identify, components without an identifier and binaries you cannot analyse are listed explicitly, never silently dropped.
5. **Generate release SBOMs in CI** from resolved inputs or built artifacts, not by hand.
6. **Bind and sign.** Record the digest of the exact artifact the SBOM describes. Sign release SBOMs and provenance through the project's approved signing workflow, and bind attestations to immutable artifact digests.
7. **Keep signing keys out of your reach.** Never read, copy or log signing credentials.
8. **An SBOM, a signature and a provenance attestation are different evidence.** None replaces the others.
9. **Keep and control.** Keep the SBOM and its evidence for every release, under the project's retention policy. Do not publish an SBOM or send it outside the organisation without a human decision: it reveals components and versions.
## Procedure
1. Inspect manifests, lockfiles, build configuration and any existing SBOM.
2. Identify the artifact, the lifecycle stage and the required coverage.
3. Generate or update the SBOM, and the AI-BOM where models or datasets are involved.
4. Validate the document against its schema, check the required fields (for example `sbomqs compliance --bsi-v2`), and reconcile it with the resolved components. Record missing fields and known unknowns.
5. Compare with the previous release; explain every added, removed or changed component.
6. Where the pipeline supports it, produce provenance that names the source revision, the builder, the build inputs and the resulting digests.
7. Sign and verify through the approved CI workflow; do not trigger release pipelines yourself. Report the verification result of an existing CI run.
Example tools (use what the project has approved; do not install tools yourself, and if one is missing record "not run"): `syft <artifact> -o cyclonedx-json` or `cyclonedx-py` to generate, `cyclonedx validate` to check the schema, `cosign attest` / `cosign verify-attestation` or `gh attestation verify` for signatures and provenance. If the chosen tool cannot emit the required specification version yet, use its newest supported version and record the gap.
8. Where the project scans the SBOM, report findings with severity; decisions that a vulnerability does not affect the product (for example VEX) are made by a human.
9. Record references, results and gaps in the change evidence (see `change-evidence`). For products that are or may be in scope of the CRA, walk through [sbom-cra-checklist.md](sbom-cra-checklist.md) and state which level (minimum, recommended, advanced) the project reaches. CI example: `examples/sbom/` in the kit repository.
## Stop and ask a human when
- a component, model or dataset has an origin you cannot verify
- the SBOM contradicts the actual release artifact, or its digest does not match the artifact
- someone asks to publish or send an SBOM outside the organisation
- signing fails, trust cannot be established, or credentials would be needed
- a release is being prepared, the project has no SBOM and it is, or may be, in scope of the Cyber Resilience Act (outside a release, record the gap in the evidence and continue)
## Output
- SBOM and AI-BOM references: format, type, coverage, digest
- required-field check result, known unknowns and checklist level reached
- signature and provenance references with verification results
- known gaps and required approvals, copied into the evidence record
## References
- Regulation (EU) 2024/2847 (Cyber Resilience Act): Annex I Part II points 1–3 and 6, Annex VII points 2(b) and 8, Art. 13(5), 13(13), 13(24), 13(25), Art. 31, recital 77 (indicative; see the checklist)
- ENISA, Technical Advisory for Software Bill of Materials (October 2026), sections 1.2 (SBOM for AI out of scope), 2.1.1 (data model), 2.1.2–2.1.3 (formats, types), 2.2 (lifecycle, CI/CD, tools), 3.1–3.2 (threats, risks) and 4 (best practices)
- ENISA, Technical Advisory on AI-assisted software development (version 0.4, draft for public consultation, September 2026), section 4.4
- BSI TR-03183-2 v2.1.0; CISA, 2026 Minimum Elements for a Software Bill of Materials
- Regulation (EU) 2024/1689 (AI Act): Arts. 11, 15, Annex IV (for AI-BOM of high-risk systems, indicative)
- OWASP Top 10 for Agentic Applications 2026: ASI04 Agentic Supply Chain Vulnerabilities