verifying-build-provenance-with-slsa-sigstore
Ce qu’il fait
Vérifie qu'un programme ou un fichier a bien été créé de manière sécurisée à partir de la source attendue, à l'aide des outils cosign et slsa-verifier. Cela permet de s'assurer que le logiciel n'a pas été altéré par des personnes malveillantes.
Quand l’utiliser
- ✓Avant d'installer ou d'utiliser un programme téléchargé sur Internet.
- ✓Lorsque vous utilisez des composants logiciels créés par d'autres personnes.
- ✓Pour vous assurer que le processus de création de vos propres logiciels est sécurisé.
Lien du skill
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/verifying-build-provenance-with-slsa-sigstore/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Vérifie que le programme « my_app » a été construit par le dépôt « my_github/my_project » en version « v1.0 ».”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Les outils cosign et slsa-verifier vérifient les signatures numériques et les informations d'origine (provenance). Ils se connectent à des services sécurisés pour confirmer que la personne qui affirme avoir construit le fichier l'a bien fait, et qu'il provient du bon endroit.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Verifying Build Provenance with SLSA and Sigstore
Overview
Build-provenance verification answers a question that defeats many supply-chain attacks: was this artifact actually built from the source I think it was, by the builder I trust, without tampering? Attackers who compromise a build system, swap a compiled release, or inject a malicious step (as in the SolarWinds and 3CX incidents) produce artifacts that look legitimate but lack verifiable provenance. SLSA (Supply-chain Levels for Software Artifacts, https://slsa.dev) defines Build levels (L1–L3) describing increasing provenance integrity, and Sigstore (https://www.sigstore.dev) provides the signing and transparency infrastructure: cosign for signing/verifying artifacts and attestations, Fulcio for short-lived keyless certificates bound to an OIDC identity, and Rekor as a tamper-evident transparency log.
This skill covers verifying signatures and SLSA provenance with cosign (cosign verify, cosign verify-attestation, cosign verify-blob-attestation) and slsa-verifier (slsa-verifier verify-artifact), enforcing the builder identity (the GitHub Actions workflow that produced the artifact) and the expected source repository. Keyless verification ties trust to an OIDC issuer (e.g., https://token.actions.githubusercontent.com) and a certificate identity rather than a long-lived private key.
This maps to MITRE ATT&CK T1195 — Supply Chain Compromise (provenance verification detects/blocks tampered artifacts) and NIST CSF PR.DS-01 (the confidentiality, integrity, and availability of data-at-rest are protected; CSF 2.0 absorbed the retired 1.1 PR.DS-06 integrity-checking outcome here).
When to Use
- In CI/CD before deploying or promoting any container image or release binary.
- When consuming third-party artifacts (base images, Go/npm releases) that publish attestations.
- When establishing a SLSA Build L3 producer pipeline and enforcing it at the consumer side.
- During incident response to confirm whether a deployed artifact's provenance is intact.
- In admission control (e.g., Kubernetes via policy-controller / Kyverno) to admit only verified images.
Prerequisites
- cosign (Sigstore CLI):
go install github.com/sigstore/cosign/v2/cmd/cosign@latest # or download a release binary from https://github.com/sigstore/cosign/releases - slsa-verifier:
go install github.com/slsa-framework/slsa-verifier/v2/cli/slsa-verifier@latest # or: curl -sSL https://github.com/slsa-framework/slsa-verifier/releases/latest/download/slsa-verifier-linux-amd64 \ -o /usr/local/bin/slsa-verifier && chmod +x /usr/local/bin/slsa-verifier - Network access to Rekor (
https://rekor.sigstore.dev) and Fulcio for transparency-log verification. - The artifact plus its provenance/attestation bundle (
.sigstore,.intoto.jsonl, or attached OCI attestation).
Objectives
- Verify a keyless cosign signature on a container image, pinning OIDC issuer and certificate identity.
- Verify a SLSA provenance attestation on an image with
cosign verify-attestation --type slsaprovenance. - Verify a release binary's provenance with
slsa-verifier verify-artifact, pinning source repo and tag. - Verify GitHub artifact attestations / blob bundles with
cosign verify-blob-attestation. - Gate CI and admission control on successful verification; understand SLSA Build L1–L3.
MITRE ATT&CK Mapping
| ID | Tactic | Technique Name | Relevance |
|---|---|---|---|
| T1195 | Initial Access | Supply Chain Compromise | Verifying provenance and signatures detects artifacts that were tampered with or substituted in the build/distribution chain, preventing supply-chain compromise from reaching deployment. |
Workflow
Step 1: Verify a keyless cosign signature on an image
Pin both the OIDC issuer and the certificate identity (the exact workflow that signed). A bare cosign verify without identity pinning is meaningless — anyone can sign.
cosign verify \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
--certificate-identity-regexp "^https://github.com/myorg/myrepo/.github/workflows/.*@refs/tags/v.*" \
ghcr.io/myorg/myrepo:v1.2.3
A non-zero exit or empty result means verification failed — do not deploy.
Step 2: Verify the SLSA provenance attestation on the image
…
Questions fréquentes
Qu'est-ce que la « provenance » ?
La provenance est un historique qui indique qui a créé un fichier, quand et comment. C'est une garantie que le fichier est authentique.
Que sont « cosign » et « slsa-verifier » ?
Ce sont des outils en ligne de commande qui permettent de vérifier la provenance et les signatures des fichiers logiciels. Ils s'appuient sur des technologies comme Sigstore pour garantir la sécurité.
Pourquoi est-il important de vérifier la provenance ?
Pour se protéger contre les attaques de la chaîne d'approvisionnement, où un attaquant remplace un logiciel légitime par une version malveillante. Vérifier la provenance garantit que vous utilisez le logiciel correct et de confiance.
Détails
Description originale de l’auteur
Verifies artifact signatures and SLSA provenance using Sigstore's cosign (verify, verify-attestation, verify-blob-attestation) and slsa-verifier (verify-artifact), enforcing keyless OIDC builder identity and source repo against SLSA Build levels. Use in CI/CD before deploying artifacts, when consuming third-party attestations, establishing a SLSA Build L3 pipeline, or confirming provenance during
Popularité
- Étoiles GitHub
- 35k
- Position au classement
- #8408
- Licence
- Apache-2.0
- Mis à jour
- 31/08/2026
Commentaires
- …
Autres skills de ce dépôt
abusing-dpapi-for-credential-access
35kFournit à votre agent IA des instructions prêtes à l'emploi pour une tâche précise, afin qu'il la réalise mieux et plus vite.
abusing-shadow-credentials-for-privesc
35kApprend à votre agent IA à écrire des textes clairs et bien structurés.
achieving-cmmc-level-2-compliance
35kAide votre agent à préparer un environnement conforme à la certification CMMC niveau 2. Il met en œuvre les exigences de sécurité et gère la documentation nécessaire.
acquiring-disk-image-with-dd-and-dcfldd
35kAide votre agent à créer des copies exactes de disques durs. Utile pour garantir qu'aucune information n'est perdue ou modifiée lors d'enquêtes.
Skills similaires
openclaw-update
394kAide votre agent à mettre à jour une passerelle OpenClaw existante, en choisissant la méthode adaptée à son installation et en gardant votre session active.
diagnose-gateway
394kAide votre agent à trouver pourquoi votre passerelle OpenClaw échoue, en vérifiant les paramètres, les canaux et les ports sans rien modifier.
crabbox-apps
394kAide votre agent à ouvrir et exécuter une application sur une machine cloud temporaire, puis à afficher sa vue dans le panneau latéral de votre chat.