sbom-attestation
Generate, score, diff, sign and verify software bills of materials and build attestations. Produces CycloneDX and SPDX SBOMs with syft, checks them against…
от Navinspire-ia★ 37 звёзд на GitHub
Установить sbom-attestation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
SBOM and Attestation
Overview
Produce and assess the evidence that tells what is inside a software artifact and how it was built: the SBOM (CycloneDX or SPDX), the Cosign signature, the in-toto attestations (SLSA provenance, SBOM, vulnerability scan, VEX) and the transparency-log entries behind them. The default posture is read-only and evidence-based: generate SBOMs into the workspace, verify signatures and attestations, score and diff documents, and report with the exact commands and outputs. Signing an artifact, pushing an attestation to a registry, or enabling an admission policy changes a target and happens only after the user approves the exact command and the identity it uses.
When it applies
- A release pipeline must emit an SBOM, sign the image and attach provenance.
- An auditor, a customer or a regulator (US EO 14028 / NTIA, EU CRA, DORA ICT third-party risk) asks for the SBOM of a product and proof of its origin.
- A deployment must be gated on signature and provenance (policy-controller, Kyverno).
- Two builds must be compared: what changed between the SBOM of version N and N+1.
- A vulnerability must be scoped: which deployed artifacts contain the affected component, and which are not affected (VEX).
- The user asks which SLSA level a pipeline really reaches.
Out of scope: dependency vulnerability triage itself (security-supply-chain, dependency-auditor), secret scanning (secrets-scanner), container hardening (security-containers).
Engines and sources
Install any missing CLI with the toolbelt skill. Registry, cloud KMS and Kubernetes commands run through the infra tool (level observe for crane digest, cosign verify, kubectl get clusterimagepolicy; prepare for a dry run; execute for cosign sign, cosign attest, kubectl apply). GitHub operations (attestations, workflow files, release assets) go through the connectors tool when the GitHub connector exists, else gh.
| Need | Command |
|---|---|
| Resolve the digest | crane digest registry.example.com/app:1.4.2 or skopeo inspect --format '{{.Digest}}' docker://registry.example.com/app:1.4.2 |
| SBOM of an image | syft registry.example.com/app@sha256:<digest> --scope all-layers -o cyclonedx-json=sbom.cdx.json -o spdx-json=sbom.spdx.json |
| SBOM of a source tree | syft dir:. -o cyclonedx-json=sbom.cdx.json (or cdxgen -o sbom.cdx.json for lockfile-aware builds) |
| Validate the schema | cyclonedx validate --input-file sbom.cdx.json --input-format json --input-version v1_5 --fail-on-errors; pyspdxtools -i sbom.spdx.json |
| Convert, merge, diff | cyclonedx convert --input-file sbom.cdx.json --output-format xml; cyclonedx merge --input-files a.cdx.json b.cdx.json --output-file merged.cdx.json; cyclonedx diff old.cdx.json new.cdx.json --component-versions |
| Scan the SBOM | grype sbom:./sbom.cdx.json -o json --file grype.json; trivy sbom sbom.cdx.json --format json --output trivy.json; trivy sbom --vex vex.openvex.json sbom.cdx.json |
| Sign | cosign sign --key cosign.key <image@digest> (key from COSIGN_KEY / KMS URI) or cosign sign --yes <image@digest> (keyless in CI) |
| Verify | cosign verify --certificate-identity <workflow identity> --certificate-oidc-issuer <issuer> <image@digest> or cosign verify --key cosign.pub <image@digest> |
| Attest | cosign attest --predicate provenance.json --type slsaprovenance1 <image@digest>; cosign attest --predicate sbom.cdx.json --type cyclonedx <image@digest> |
| Verify attestation | cosign verify-attestation --type slsaprovenance1 --certificate-identity <id> --certificate-oidc-issuer <issuer> <image@digest> | jq -r .payload | base64 -d | jq . |
| Attach or fetch an SBOM | cosign attach sbom --sbom sbom.cdx.json --type cyclonedx <image@digest>; cosign download sbom <image@digest> |
| Inventory of artifacts | cosign tree <image@digest> |
| Transparency log | rekor-cli search --sha sha256:<digest>; rekor-cli get --uuid <uuid> --format json |
| GitHub attestations | gh attestation verify oci://registry.example.com/app@sha256:<digest> --owner example-org --format json; produced by actions/attest-build-provenance@v2 and actions/attest-sbom@v2 |
| SLSA builder check | slsa-verifier verify-image <image@digest> --source-uri github.com/<org>/<repo> --source-tag v1.4.2 |
| VEX | vexctl create --product pkg:oci/app@sha256:<digest> --vuln CVE-2024-1234 --status not_affected --justification vulnerable_code_not_in_execute_path |
| Admission | kubectl get clusterimagepolicy, kubectl get policyreport -A (Kyverno) |
Tokens and keys (COSIGN_PASSWORD, COSIGN_KEY, GITHUB_TOKEN, KMS credentials) come from environment variables or the secret manager and are never printed or written into a report. Large outputs (a syft SBOM of a base image easily exceeds 5 MB) are written to a file and queried with the grep tool or jq before any part is read.
Workflow
- Pin the subject. Resolve the tag to a digest
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- examples/payments-api-v1.cdx.json
- examples/payments-api-v2.spdx.json
- references/cosign-cheatsheet.md
- references/ntia-minimum-elements.md
- references/slsa-provenance.md
- scripts/sbom_diff.py
- scripts/sbom_quality.py
FAQ
Что делает скилл sbom-attestation?
Generate, score, diff, sign and verify software bills of materials and build attestations. Produces CycloneDX and SPDX SBOMs with syft, checks them against the NTIA minimum elements, scans them with grype or trivy, signs images and attestations with Cosign (key or keyless with Fulcio and Rekor), verifies SLSA v1.0 provenance and GitHub artifact attestations by digest, and drafts admission policies (Sigstore policy-controller, Kyverno verifyImages) and VEX statements. Use when the user asks to "generate an SBOM", "sign this image with cosign", "verify the provenance", "check SBOM quality", "compare two SBOMs", "set up keyless signing", or must prove supply-chain integrity for an audit (NTIA, CISA, EU CRA, SLSA). In French "generer un SBOM", "signer l'image avec cosign", "verifier la provenance", "attester le build".
Как установить скилл sbom-attestation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sbom-attestation запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…