Articles

What Is SLSA? Supply-chain Levels for Software Artifacts

SLSA is a security framework for proving how software was built. What SLSA levels mean, how build provenance works, and how it fits with SBOMs and signing.

Chisato Chisato · · 5 min read
Several padlocks attached to a steel cable

SLSA (pronounced “salsa”), short for Supply-chain Levels for Software Artifacts, is an open security framework that defines how to prove where a piece of software came from and how it was built. Its core idea is build provenance: a signed, machine-readable record that says which source revision was built, by which build system, with which inputs. SLSA organizes these guarantees into levels so teams can adopt them incrementally and consumers can check what they are getting.

What problem does SLSA solve?

Most security tooling inspects code: scanners, linters, dependency audits. But an attacker does not need to change your source repository if they can change what happens between the repository and the package your users install. A compromised build server, a tampered artifact uploaded by hand, or a release built from a branch nobody reviewed all produce binaries that do not match the source anyone looked at.

These are software supply chain attacks, and they are hard to detect because the artifact looks legitimate. It has the right name, the right version, and often a valid signature from the project’s own key. SLSA addresses the gap by making the build process itself verifiable: if you can prove an artifact was produced by a trusted, isolated build from a specific commit, an attacker has far fewer places to slip in.

Provenance: the heart of SLSA

Provenance is an attestation — a signed statement — attached to a build output. At minimum it records:

  • Subject: the artifact, identified by its cryptographic digest.
  • Builder: the identity of the build platform that produced it.
  • Source: the repository and exact revision used.
  • Build definition: the entry point, parameters, and resolved dependencies.

SLSA provenance is commonly expressed in the in-toto attestation format, a standard envelope for signed claims about software. A consumer, or an automated policy engine at deploy time, verifies the signature, checks that the builder is one they trust, and checks that the source matches what they expect. If any of that fails, the artifact is rejected.

Note what provenance does not claim. It does not say the code is free of vulnerabilities. It says this binary came from this source via this process. That is still valuable: it turns “is this package trustworthy?” into narrower questions you can actually answer.

The SLSA build levels

SLSA’s build track defines increasing levels of assurance. The exact requirements are maintained in the specification, but the shape is stable:

LevelWhat it requiresWhat it protects against
Build L0NothingNo guarantees
Build L1Provenance exists, describing how the artifact was builtMistakes; makes builds auditable
Build L2Provenance is generated and signed by a hosted build platformTampering after the build; forged provenance from a developer laptop
Build L3The build platform is hardened: builds are isolated from each other and signing keys are inaccessible to build stepsTampering during the build, including by a compromised build script

Level 1 is mostly documentation: you generate provenance, even if it is not strongly protected. Level 2 moves the build to a hosted service, such as a CI platform, which signs provenance itself, so a developer cannot fabricate it. Level 3 requires that one build cannot influence another and that user-defined build steps cannot reach the key used to sign provenance. That last property is what stops a malicious dependency’s install script from forging a clean-looking attestation.

The spec has organized levels into separate tracks over time, with build being the most mature. Check the current specification for the precise wording rather than relying on older blog posts.

How SLSA relates to SBOMs, signing and reproducible builds

SLSA is one piece of a layered approach, and it is easy to confuse with neighboring ideas.

  • An SBOM lists what is inside an artifact — its components and dependencies. Provenance says how it was made. They complement each other: an SBOM without provenance could describe a tampered build, and provenance without an SBOM tells you little about transitive dependencies.
  • Code signing proves who published an artifact. Provenance is itself signed, but it goes further by describing the build. A signature from a stolen key on a tampered binary still verifies; provenance from a hardened builder would not match.
  • Sigstore provides keyless signing and a public transparency log. Many SLSA implementations use it to sign and record provenance so it can be verified without managing long-lived keys.
  • Reproducible builds let independent parties rebuild the same source and get bit-for-bit identical output. That is a strong, independent check that the build was honest. SLSA does not require reproducibility, but the two reinforce each other.

Adopting SLSA in practice

For most teams, the path looks like this:

  1. Build in CI, never on laptops. Releases should come from a hosted pipeline triggered by a commit or tag. If you are setting one up, our guide to CI/CD with GitHub Actions covers the basics.
  2. Generate provenance automatically. Major CI platforms and package registries offer built-in or official tooling to produce signed SLSA provenance as a build step. Turning it on usually gets you to Level 2.
  3. Harden toward Level 3. Use builders that run each job in an ephemeral, isolated environment and keep signing in a separate, trusted component that build steps cannot reach. Pin third-party CI actions to commit digests rather than mutable tags.
  4. Verify on the consuming side. Provenance is only useful if someone checks it. Add verification to deploy pipelines or admission controllers so unverified artifacts are refused.
  5. Protect the source too. Provenance proves a build came from a given commit; branch protection and required review make sure that commit deserved to be built.

Start with your most widely distributed artifacts — published packages and container images — since those are the ones attackers target.

Limits worth knowing

SLSA does not vet your dependencies’ code, catch dependency confusion on its own, or stop a malicious maintainer who commits bad code through the proper channels. Provenance faithfully records a trusted build of malicious source. It narrows the attack surface to the source repository and its review process, which is exactly where you want defenders’ attention concentrated.

The takeaway

SLSA is a framework for making software builds verifiable. Its central mechanism is signed provenance that ties an artifact to its source revision and build platform, and its levels describe how hard that provenance is to forge. Build in hosted CI, generate provenance automatically, harden builders so build steps cannot touch signing keys, and — most importantly — verify provenance where artifacts are consumed. Combined with SBOMs, signing, and good source controls, it closes the gap between the code people review and the binaries people run.

Chisato Chisato · · 5 min read

What Is Sigstore? Keyless Software Signing Explained

Sigstore signs software artifacts with short-lived certificates tied to an identity and logs every signature publicly, removing long-lived signing keys.

#Security #Open Source #DevOps
The Lycoris Team The Lycoris Team · · 4 min read

What Is an SBOM? Software Bill of Materials Explained

An SBOM is a complete inventory of every component in a piece of software, including its dependencies. Why it matters for tracking vulnerabilities at scale.

#Security #DevOps #Open Source