惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

PCI Perspectives
PCI Perspectives
J
Java Code Geeks
阮一峰的网络日志
阮一峰的网络日志
V
Visual Studio Blog
博客园 - 聂微东
雷峰网
雷峰网
The Cloudflare Blog
V
V2EX
Hacker News: Ask HN
Hacker News: Ask HN
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Hacker News - Newest:
Hacker News - Newest: "LLM"
爱范儿
爱范儿
NISL@THU
NISL@THU
T
The Exploit Database - CXSecurity.com
Project Zero
Project Zero
腾讯CDC
罗磊的独立博客
Simon Willison's Weblog
Simon Willison's Weblog
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
S
Security Affairs
S
SegmentFault 最新的问题
月光博客
月光博客
P
Privacy International News Feed
Last Week in AI
Last Week in AI
博客园 - Franky
C
Cisco Blogs
宝玉的分享
宝玉的分享
Forbes - Security
Forbes - Security
WordPress大学
WordPress大学
博客园 - 叶小钗
L
LINUX DO - 最新话题
博客园_首页
Spread Privacy
Spread Privacy
大猫的无限游戏
大猫的无限游戏
S
Secure Thoughts
IT之家
IT之家
人人都是产品经理
人人都是产品经理
I
Intezer
W
WeLiveSecurity
C
CERT Recently Published Vulnerability Notes
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Cyberwarzone
Cyberwarzone
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
S
Security @ Cisco Blogs
L
Lohrmann on Cybersecurity
美团技术团队

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
SLSA Provenance Hands-on: Generate with GitHub Actions, Verify with slsa-verifier
kt · 2026-04-29 · via DEV Community

Introduction

I wrote Supply Chain Security: A Deep Dive into SBOM and Code Signing earlier. That post pinned down "what's in it" via SBOM and "who signed it" via Cosign.

But even with both of those, there's still a hole.

SolarWinds' SUNSPOT was malware that lived on the build server, swapped the source code the moment a build started, and put it back when the build finished. The resulting binaries were signed with the legitimate certificate. Signatures: perfect. SBOMs: clean. And the world still got a backdoor distributed to it.

Why? Signatures only prove "I signed this with this key." SBOMs only describe "what was in the artifact at build time." Nobody was verifying "was this really built from the right source, on an unaltered builder, following the steps it claims?"

The thing that closes that hole is Provenance. SLSA (Supply-chain Levels for Software Artifacts) is a framework built around provenance, treating "from where (source), how (build), by what (builder)" as verifiable metadata.

I covered the spec in SLSA Deep Dive. This is the follow-up: actually generating SLSA L3 provenance and verifying it on real machines.

What we're doing:

  1. Verify a public slsa-verifier v2.7.1 release using its bundled provenance (and demonstrate tampering detection)
  2. Plug slsa-github-generator into a Go project so that pushing a tag automatically emits SLSA L3 provenance
  3. Read the JSON inside and understand exactly what is being attested

Before you read on

Provenance / Attestation / in-toto / DSSE

The terminology is slippery, so let's pin it down first.

Layer

  • in-toto Statement: a JSON structure that says "for this subject (the artifact), I am stating this predicate (the claim)"
  • Attestation: an in-toto Statement plus a signature. Any "signed claim about an artifact"
  • Provenance: an attestation that specifically describes "how it was built" (predicateType: https://slsa.dev/provenance/v1)
  • DSSE (Dead Simple Signing Envelope): an envelope format for signed JSON. The payload is base64-wrapped on the inside, and the signature wraps the outside

So a SLSA Provenance is "an in-toto Statement whose predicate matches the SLSA spec, signed inside a DSSE envelope."

SLSA Build Level cheat sheet

Just enough to keep us oriented. For the threat model, see SLSA Deep Dive.

Level What it guarantees Threats it stops
L1 Provenance exists Almost nothing (essentially documentation)
L2 Provenance is signed Detects tampering during distribution
L3 Generated by a tamper-resistant build platform Stops everything short of builder compromise

slsa-github-generator, the implementation we use here, is one of the few that actually clears L3. By leaning on GitHub's OIDC tokens and reusable workflows, it is structured so that user code cannot reach the builder's internal state.

Why "reusable workflows" are the key to L3

A GitHub Actions uses: org/repo/.github/workflows/foo.yml@vX runs in a separate process, separate shell, separate filesystem from the caller. So whatever the calling repo's owner puts in their YAML, they cannot touch the signing keys or OIDC tokens that the builder workflow handles.

That structurally satisfies SLSA L3's requirement: "separate user-defined build steps (data plane) from the provenance generation logic (control plane)."

Workflow

The user just calls in via uses:. They never touch the provenance assembly. That structural split is the heart of L3.


1. Verify a public artifact

Theory only goes so far. Let's verify a real provenance on your machine first. Subject of choice: the slsa-verifier release itself. Since slsa-verifier is built with slsa-github-generator, every release ships with .intoto.jsonl alongside the binary.

Required tools

# macOS
brew install slsa-verifier jq

# version check
slsa-verifier version
# slsa-verifier: Verify SLSA provenance for Github Actions
# GitVersion:    2.7.1
# GitCommit:     Homebrew
# GitTreeState:  clean
# BuildDate:     2025-06-25T21:09:44Z
# GoVersion:     go1.25.5
# Compiler:      gc
# Platform:      darwin/arm64

Enter fullscreen mode Exit fullscreen mode

Step 1: Download the artifact and its provenance

A one-shot script that runs everything in this section lives at hello-slsa/verify-real-artifact/run.sh. If you just want to see the flow, clone the repo and run ./run.sh.

mkdir slsa-hands-on && cd slsa-hands-on

# the artifact itself
curl -sLO https://github.com/slsa-framework/slsa-verifier/releases/download/v2.7.1/slsa-verifier-darwin-arm64

# its provenance (in-toto Statement, wrapped in a DSSE envelope)
curl -sLO https://github.com/slsa-framework/slsa-verifier/releases/download/v2.7.1/slsa-verifier-darwin-arm64.intoto.jsonl

ls -la
# -rw-r--r-- 1 user staff   32M slsa-verifier-darwin-arm64
# -rw-r--r-- 1 user staff  17K slsa-verifier-darwin-arm64.intoto.jsonl

Enter fullscreen mode Exit fullscreen mode

Step 2: Verification command

slsa-verifier verify-artifact slsa-verifier-darwin-arm64 \
  --provenance-path slsa-verifier-darwin-arm64.intoto.jsonl \
  --source-uri github.com/slsa-framework/slsa-verifier \
  --source-tag v2.7.1

Enter fullscreen mode Exit fullscreen mode

Output:

Verified signature against tlog entry index 253498016 at URL: https://rekor.sigstore.dev/api/v1/log/entries/108e9186e8c5677a2ae86cf78d97874465b3150b3a30474f101c0ca4f916e78cd89ab8dcf6f2c927
Verified build using builder "https://github.com/slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@refs/tags/v2.0.0" at commit ea584f4502babc6f60d9bc799dbbb13c1caa9ee6
Verifying artifact slsa-verifier-darwin-arm64: PASSED

PASSED: SLSA verification passed

Enter fullscreen mode Exit fullscreen mode

Let's unpack what just happened.

verification

Two things to notice.

  1. No keys on your machine. The verifier reaches Rekor (transparency log) and Fulcio (CA) to validate the certificate chain that was used at signing time. Same mechanism as Cosign keyless signing.
  2. --source-uri and --source-tag are inputs you provide. "I want to trust this binary as coming from this repo at this tag" is a human-driven assertion, and it gets checked against what the provenance actually says.

To see what happens when the assertion is wrong, point --source-tag at a different tag.

slsa-verifier verify-artifact slsa-verifier-darwin-arm64 \
  --provenance-path slsa-verifier-darwin-arm64.intoto.jsonl \
  --source-uri github.com/slsa-framework/slsa-verifier \
  --source-tag v2.7.0      # ← wrong tag

# FAILED: SLSA verification failed:
#   expected tag 'v2.7.0', got 'v2.7.1':
#   tag used to generate the binary does not match provenance

Enter fullscreen mode Exit fullscreen mode

Step 3: Detect tampering

Mutate the artifact by a single byte and try again.

echo "broken" >> slsa-verifier-darwin-arm64

slsa-verifier verify-artifact slsa-verifier-darwin-arm64 \
  --provenance-path slsa-verifier-darwin-arm64.intoto.jsonl \
  --source-uri github.com/slsa-framework/slsa-verifier \
  --source-tag v2.7.1

# FAILED: SLSA verification failed:
#   expected hash '424efd44128c51af49affd87bd3f0476eaab0a3e77ed1fee0ca7186c569b5388' not found:
#   artifact hash does not match provenance subject

Enter fullscreen mode Exit fullscreen mode

The hash mismatch fails immediately. SUNSPOT-style attacks ("swap the binary after the build finishes") die right here.

Step 4: Look inside the provenance

.intoto.jsonl is a DSSE envelope; the payload is base64-encoded JSON. Pry it open with jq.

cat slsa-verifier-darwin-arm64.intoto.jsonl \
  | jq -r '.payload' \
  | base64 -d \
  | jq '{_type, predicateType, subject, predicate: {builder: .predicate.builder, buildType: .predicate.buildType, configSource: .predicate.invocation.configSource}}'

Enter fullscreen mode Exit fullscreen mode

Trimmed output:

{
  "_type": "https://in-toto.io/Statement/v0.1",
  "predicateType": "https://slsa.dev/provenance/v0.2",
  "subject": [
    {
      "name": "slsa-verifier-darwin-arm64",
      "digest": {
        "sha256": "39abfcf5f1d690c3e889ce3d2d6a8b87711424d83368511868d414e8f8bcb05c"
      }
    }
  ],
  "predicate": {
    "builder": {
      "id": "https://github.com/slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@refs/tags/v2.0.0"
    },
    "buildType": "https://github.com/slsa-framework/slsa-github-generator/go@v1",
    "configSource": {
      "uri": "git+https://github.com/slsa-framework/slsa-verifier@refs/tags/v2.7.1",
      "digest": {
        "sha1": "ea584f4502babc6f60d9bc799dbbb13c1caa9ee6"
      },
      "entryPoint": ".github/workflows/release.yml"
    }
  }
}

Enter fullscreen mode Exit fullscreen mode

What each field means:

  • subject: "this provenance is making a statement about this binary." If the name and SHA256 don't match the artifact, verification fails.
  • predicate.builder.id: who built it (which reusable workflow). The tag is included, so the builder version itself is pinned.
  • predicate.buildType: build kind (Go binary, container, etc.).
  • predicate.invocation.configSource: source repo plus the GitHub Actions workflow file that drove the build. digest.sha1 pins the commit, so even an attack that rewrites the contents of the v2.7.1 tag after the fact does not slip through.

The environment block has an even finer fingerprint of where the build ran.

cat slsa-verifier-darwin-arm64.intoto.jsonl | jq -r '.payload' | base64 -d \
  | jq '.predicate.invocation.environment | {github_event_name, github_ref, github_repository_owner, github_run_id, github_sha1, os}'

Enter fullscreen mode Exit fullscreen mode

{
  "github_event_name": "push",
  "github_ref": "refs/tags/v2.7.1",
  "github_repository_owner": "slsa-framework",
  "github_run_id": "15930257685",
  "github_sha1": "ea584f4502babc6f60d9bc799dbbb13c1caa9ee6",
  "os": "ubuntu24"
}

Enter fullscreen mode Exit fullscreen mode

  • which GitHub event (push) fired the workflow
  • which repo, owned by whom
  • which GitHub Actions run id (this number is permanent)
  • which OS image it ran on

With this much retained, "did a binary born from tag v2.7.1 actually come out of a GitHub-hosted runner running the legitimate workflow?" is fully reconstructable after the fact.

Step 5: Look at materials

materials is "the list of build inputs": source code and the builder environment, side by side.

cat slsa-verifier-darwin-arm64.intoto.jsonl | jq -r '.payload' | base64 -d \
  | jq '.predicate.materials'

Enter fullscreen mode Exit fullscreen mode

[
  {
    "uri": "git+https://github.com/slsa-framework/slsa-verifier@refs/tags/v2.7.1",
    "digest": { "sha1": "ea584f4502babc6f60d9bc799dbbb13c1caa9ee6" }
  },
  {
    "uri": "https://github.com/actions/virtual-environments/releases/tag/ubuntu24/20250622.1.0"
  }
]

Enter fullscreen mode Exit fullscreen mode

Combine this with the SBOM and the chain "source → builder → artifact → internal components" becomes verifiable end to end.


2. Issue SLSA L3 Provenance from your own repo

Verification works. Now flip to the producer side: build a Go hello-world and bolt slsa-github-generator onto it.

The finished version lives at github.com/0-draft/hello-slsa. Type along by hand or git clone, whichever you prefer.

Project layout

hello-slsa/
├── main.go
├── go.mod
├── .slsa-goreleaser.yml          # builder configuration
└── .github/
    └── workflows/
        └── release.yml            # release on tag push

Enter fullscreen mode Exit fullscreen mode

Minimal code

main.go:

package main

import (
    "fmt"
    "runtime"
)

const Version = "0.1.0"

func main() {
    fmt.Printf("hello-slsa %s (%s/%s)\n", Version, runtime.GOOS, runtime.GOARCH)
}

Enter fullscreen mode Exit fullscreen mode

go.mod:

module github.com/0-draft/hello-slsa

go 1.26

Enter fullscreen mode Exit fullscreen mode

.slsa-goreleaser.yml: the builder's configuration

The slsa-github-generator Go builder reads a goreleaser-compatible YAML. Nothing fancy.

version: 1

env:
  - GO111MODULE=on
  - CGO_ENABLED=0

flags:
  - -trimpath

ldflags:
  - "-X main.Version={{ .Env.VERSION }}"
  - "-s -w"

goos: linux
goarch: amd64

binary: hello-slsa-{{ .Os }}-{{ .Arch }}

Enter fullscreen mode Exit fullscreen mode

-trimpath and CGO_ENABLED=0 are reproducibility incantations. The next post on Reproducible Builds digs into why these matter.

.github/workflows/release.yml: the caller

This is the heart of it. uses: calls the slsa-github-generator reusable workflow.

name: Release with SLSA L3 Provenance

on:
  push:
    tags:
      - "v*"

permissions: read-all

jobs:
  build:
    permissions:
      id-token: write    # required to mint OIDC tokens
      contents: write    # required to upload assets to the GitHub Release
      actions: read      # required to read workflow run metadata
    uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v2.1.0
    with:
      go-version: "1.26"
      config-file: .slsa-goreleaser.yml
      evaluated-envs: "VERSION:${{ github.ref_name }}"
      upload-assets: true

  verify:
    needs: build
    runs-on: ubuntu-latest
    steps:
      - uses: slsa-framework/slsa-verifier/actions/installer@v2.7.1
      - uses: actions/download-artifact@v8
        with:
          name: ${{ needs.build.outputs.go-binary-name }}
      - uses: actions/download-artifact@v8
        with:
          name: ${{ needs.build.outputs.go-provenance-name }}
      - run: |
          slsa-verifier verify-artifact \
            "${{ needs.build.outputs.go-binary-name }}" \
            --provenance-path "${{ needs.build.outputs.go-provenance-name }}" \
            --source-uri "github.com/${{ github.repository }}" \
            --source-tag "${{ github.ref_name }}"

Enter fullscreen mode Exit fullscreen mode

About the permissions:

  • id-token: write: lets GitHub mint an OIDC ID token. That token is exchanged at Fulcio for a short-lived certificate, which signs the provenance.
  • contents: write: needed when upload-assets: true to upload Release assets.
  • actions: read: needed to read the workflow's own metadata (run id, sha, ref).

What happens when this fires:

Github Workflow

The build job only compiles the user's code; it never participates in assembling or signing the provenance. Because builder_go_slsa3.yml runs as a separate workflow, no matter how dirty your user code is, it cannot reach the signing key. That's the L3 separation.

Local check

Before pushing the tag, run the build locally to see it work.

git clone https://github.com/0-draft/hello-slsa
cd hello-slsa

go build -trimpath -ldflags "-s -w" -o hello-slsa .
./hello-slsa
# hello-slsa 0.1.0 (darwin/arm64)

shasum -a 256 hello-slsa
# 3258c85472175bdbfe0ef450402265ca118ed0c97a1ab4e8b96b5704e2f9a1d6  hello-slsa

Enter fullscreen mode Exit fullscreen mode

When the same build runs in CI, that SHA256 is what ends up in subject.digest.sha256 of the provenance, and .intoto.jsonl is uploaded alongside the binary. The hash will differ across environments and toolchains; the point is that the value you computed locally matches the value in the provenance subject.

[!NOTE]
id-token: write requires OIDC to be enabled on the repo. On github.com it is on by default. On GitHub Enterprise Server you have to configure it separately.


3. What can the verifier actually trust?

Provenance flows out the producer side. Back on the consumer side, what does slsa-verifier verify-artifact actually confirm?

Actually Trust

What it can do: cryptographically prove "the binary at tag v2.7.1 really did come out of the legitimate GitHub Actions builder." SUNSPOT-style attacks (tampering during the build) and Codecov-style attacks (uploading without going through the build) stop here.

What it cannot do: if the source itself contains malicious changes, the provenance faithfully signs "we correctly took this malicious code as input." That needs a different layer: SLSA Source Track, four-eyes review, and so on.

In other words, provenance is the layer that detects build-path tampering but cannot detect human malice. Combine it with SBOM (transparency about contents) and Cosign (identity of the author), and only then do you get layered defense.


4. Layering SBOM + Cosign + Provenance

Final picture: lay all three side by side.

What it proves Tool predicateType
Ingredients (contents) Syft + cosign attest https://cyclonedx.org/bom
Identity (author) cosign sign (the signature itself, not a Statement)
Build path slsa-github-generator https://slsa.dev/provenance/v1

SBOM and Cosign and Provenance

Once "build path + contents + author" are all in place, the artifact has all-around evidence. If the Kubernetes admission layer can enforce reject unless provenance, SBOM, and signature are all present, the operator's trust boundary firms up considerably.


Wrap-up

What we did What we learned
Verified a public artifact with slsa-verifier How to verify provenance without holding any keys
Mutated a single byte and watched verification fail The point at which SUNSPOT-style attacks die
Opened .intoto.jsonl with jq What is actually recorded inside the provenance
Wrote a slsa-github-generator workflow The "way to call in" that satisfies L3

Provenance, unlike SBOM or Cosign, isn't something you can produce locally with a one-shot CLI. The builder itself has to be running in a place you trust, which is why something like a GitHub Actions reusable workflow (with its structural separation) is non-negotiable. The flip side: if you have that environment, a single line of uses: carries you all the way to L3.

The next post moves to the operational headache that always shows up once SBOMs hit production: "the vulnerability scanner threw 800 warnings, but only 5 are actually exploitable." We pin that down with VEX. Where provenance is "authenticity of the build path", VEX is "authenticity of vulnerability triage."

References