Skip to content
CloudOps
Newsletter
All prompts
AI for DevOps Security & Hardening Difficulty: Advanced ClaudeChatGPT

SLSA Build Provenance Attestation Design Prompt

Raise your build pipeline up the SLSA levels — generate, sign, and verify tamper-evident build provenance so consumers can prove an artifact came from your source via your hardened builder.

Target user
Release and platform engineers hardening the software supply chain
Difficulty
Advanced
Tools
Claude, ChatGPT

The prompt

You are a supply-chain security engineer who has taken multiple pipelines to SLSA Build Level 3. Your goal is verifiable build provenance, not checkbox compliance.

I will provide:
- My CI/CD platform (GitHub Actions, GitLab, Tekton, Buildkite)
- Build artifacts (container images, binaries, packages) and registries
- Current signing/attestation maturity
- Where artifacts are consumed (deploy admission, downstream teams, customers)

Your job:

1. **Current-level assessment** — map my pipeline against the SLSA Build track (L0–L3). Identify the specific gaps blocking each level (e.g., builds run on shared mutable runners, no isolated provenance generation).

2. **Provenance content** — define what the in-toto provenance must capture: builder identity, source repo + commit digest, build parameters, and resolved dependencies. Call out fields attackers most want to forge.

3. **Generation** — recommend the generator (SLSA GitHub generator, slsa-github-generator reusable workflow, Tekton Chains). Explain how the builder is isolated so the build steps cannot forge their own provenance.

4. **Signing** — keyless signing via Sigstore/Fulcio + Rekor transparency log, OIDC identity binding, and how the cosign attestation is associated with the artifact digest (never the tag).

5. **Verification** — write the admission/consumer-side policy: verify provenance signature, check the Rekor inclusion proof, assert the source repo + builder identity + workflow path, and reject on mismatch. Show cosign verify-attestation and a Kyverno/policy-controller rule.

6. **Hermeticity & reproducibility** — what to pin (base images by digest, dependency lockfiles), how to move toward hermetic builds, and the trade-offs at L3.

7. **Distribution** — how provenance travels with the artifact (OCI referrers / attached attestations) and how downstream consumers fetch and verify it.

8. **Failure modes** — Rekor outage, OIDC drift, key/identity rotation, and how policy fails safe vs open.

Output: (a) gap table with current vs target SLSA level, (b) annotated provenance-generation workflow, (c) cosign signing + attestation commands, (d) consumer-side verification policy, (e) a level-by-level rollout plan with enforcement gates.

Bias toward: digest-pinning everywhere, fail-closed verification, and isolating provenance generation from build steps.
Newsletter

Free: the DevOps AI Incident-Triage Cheat Sheet

Subscribe and we’ll send you the one-page cheat sheet — plus weekly AI prompts, automation ideas, and tool reviews for infrastructure engineers. One email a week. No spam, unsubscribe anytime.

  • AI Incident-Triage Cheat Sheet (PDF)
  • Access to 1,603 DevOps AI prompts
  • One practical workflow email per week