Lion Cipher Lab
Prove where a build came from with GitHub artifact attestations, then verify it and break it (CI/CD assessment 5 of 7)
- Penetration Testing / Red Team
- Intermediate
- ~50 min
- Free · no account required
Why it matters
A consumer of your software can read your source and still have no idea whether the file they downloaded was built from it. Provenance closes that gap: a signed statement, created by the build itself, that links the file to the repository, workflow and commit that produced it. If a build server or a release account is compromised and a doctored file is uploaded, the doctored file will not carry a valid attestation from the real workflow. This is also the control that the later, harder questions rest on, such as which workflow is allowed to sign.
What you'll learn
- adding build provenance to a workflow
- naming the three permissions an attestation step needs
- downloading a workflow artifact with the GitHub CLI
- verifying an artifact with gh attestation verify
- tightening verification to a named signer workflow
- explaining what provenance proves and what it does not
Steps in this lab
- The rule first: your public test repository, a harmless file
- What an attestation says, in plain words
- Add the workflow
- Run it, download the result and verify
- Break it on purpose
- The defender's view: what provenance proves, and what it cannot
Open the full interactive lab →