Skip to content
🎉 Launch sale:50% off everything over $22 — automatically applied at checkout· ends Aug 2Shop the sale →
DevOps AI ToolKit
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.

Run this prompt with AI

Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.

Related prompts

More DevOps Security & Hardening prompts & error guides

Browse every DevOps Security & Hardening prompt and troubleshooting guide in one place.

Free download · 368-page PDF

Reading prompts? Get all 500 in one free PDF

500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.

  • 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
  • Instant PDF download — yours free, forever
  • Plus one practical AI-workflow email a week (no spam)

Single opt-in · unsubscribe anytime · no spam.