Software supply chain: SBOMs, signing and provenance

ExplainedCI/CDDevOps, Hands OnBy Cloud Hands On

How attackers get in through dependencies and pipelines, and the records and checks that keep a build trustworthy.

Your software is built from other people's packages, base images and actions, by a pipeline with powerful credentials. Attackers target every link: a malicious package update, a hijacked action, a compromised build machine, a tampered file between build and deploy.

Defences come in layers. Know what's inside: an SBOM per build, and dependency alerts. Pin what you use: actions by commit SHA, base images by digest, lock files for packages. Prove where it came from: signed provenance (artifact attestations, Sigstore) for every release. Check before you run: verify signatures and provenance in the deploy step or with admission policies in the cluster.

SLSA gives levels to aim for, from having any build record at all to builds on hardened, isolated platforms with signed provenance that consumers verify.

Cost. Dependabot, code scanning, secret scanning and attestations are free for public repositories on GitHub.

Use it when

How it works

Inventory
Generate an SBOM for every build.
Pin
Actions by SHA, images by digest, packages by lock file.
Scan
Dependabot, code scanning, image scanning.
Attest
Sign provenance for releases.
Verify
Check attestations before deploying.

Options

GitHub artifact attestations
Built in, no keys, verified with gh.
Sigstore cosign
Open source signing for images and files, works anywhere.
Notation
Signing for images, used with Azure Container Registry.

Example. When a widely used compression library was found to contain a backdoor, Ironbridge Payments searched their stored SBOMs and confirmed within ten minutes that no production image included the affected version.

Don't confuse it with

SBOM
What's inside.
Provenance
Where and how it was built.
Signature
Proof the file hasn't changed since it was signed.

Words to know

Supply chain
Everything and everyone involved in building your software.
SLSA
Supply-chain Levels for Software Artifacts: a security framework.
Sigstore
An open project for signing software with short-lived certificates.

Where to look

  1. Settings
  2. Advanced Security
  3. Attestations

Practise it

Read it in the guide, next to the tasks and labs.

Open in DevOps, Hands On

Keep going