In brief
The software supply chain is everything the code passes through on its way to production: dependencies, build tools, the CI pipeline, package and image registries. Protecting it rests on three pillars. An SBOM lists the components an artifact is made of. A signature confirms who built it and that nobody changed it afterward. SLSA provenance describes how and from what code it was built. Rollout starts with an SBOM generated on every build.
What the software supply chain is
The application you deploy is not just the team's code. It is also hundreds of libraries, a container base image, a compiler, build tool plugins, actions in the CI pipeline, and the registry from which a server pulls the finished image. Any of these links can be swapped out or contain a vulnerability.
Supply chain attacks are dangerous because they bypass ordinary safeguards: malicious code arrives from a trusted source and reaches many companies at once. The defense is to know at any moment what is in the artifact, where it came from, and whether anyone changed it along the way.
A factory example: a device manufacturer delivers driver software and a service application to customers. When a customer asks whether the product contains a vulnerable version of a popular compression library, the manufacturer needs an answer for every release, including ones from several years ago that still run on production lines. Without a component inventory and a record of what code each release was built from, the answer takes weeks of manual analysis. With an SBOM and provenance, it is a few queries.
SBOM: the component inventory
An SBOM (Software Bill of Materials) is a machine-readable inventory of an artifact's components: names, versions, suppliers, licenses, cryptographic hashes, and the dependencies between them. Two formats dominate:
| Format | Maintained by | Notes |
|---|---|---|
| CycloneDX | OWASP | security-oriented, also supports VEX and a cryptography inventory |
| SPDX | Linux Foundation | originated in license description, has the status of the ISO/IEC 5962:2021 standard |
Both formats are good, and tools can convert one to the other. The rules matter more than the choice of format:
- the SBOM is produced at build time, by the same pipeline that creates the artifact, not by hand once a quarter,
- one SBOM per artifact: an application version, a container image, a product release,
- the SBOM is stored together with the artifact, for example as an image attachment in the registry,
- the SBOM is scanned daily, because new vulnerabilities appear in components that were clean yesterday.
When a critical vulnerability appears in a popular library, a company with SBOMs answers the question “where do we have this version” with a database query, not by searching repositories. A VEX document is attached to the SBOM, stating whether a known component vulnerability actually affects the product, for example because the vulnerable function is not used.
Artifact signing
A digital signature on an artifact confirms that the image or package was built by a specific pipeline and that nobody has changed it since. Classic signing requires managing a private key, which is a problem in itself: the key must be protected, rotated, and revoked.
The Sigstore project simplifies this process. The cosign tool signs container images and other artifacts. Fulcio issues a short-lived certificate tied to an identity, for example the identity of the CI pipeline obtained through OpenID Connect. Rekor records the signature in a public, immutable transparency log. This way the team does not have to store a long-term key, and every signature can be checked later.
A signature makes sense only if someone verifies it. In Kubernetes this is done by an admission controller, which rejects an image without a valid signature from a trusted pipeline. Without this check, a signature is just a formality.
SLSA: provenance levels
SLSA (Supply-chain Levels for Software Artifacts) is a framework that describes how far a build process can be trusted. In version 1.0, the specification defines a build track with levels:
- Build L1: the build process produces provenance, that is, a description of what code and what command the artifact was built from.
- Build L2: the build runs on a hosted platform, and the provenance is signed by it.
- Build L3: the build platform is hardened: successive builds are isolated from each other, and the provenance cannot be forged from within the project's code.
Level L0 means no guarantees. For most teams the realistic first target is L2, which is reached on popular CI platforms with built-in generation of signed provenance.
Where a team should start
- Lock dependency versions with a lock file and pull packages from a company proxy repository, not directly from the internet.
- Generate an SBOM on every build and store it next to the artifact.
- Scan the SBOM daily with an SCA tool, described in the article SAST, DAST, and SCA.
- Sign images in the pipeline and verify the signature at deployment.
- Limit the pipeline's permissions: short-lived tokens instead of static keys, which we cover in the article Secrets in applications.
- Pin CI actions and plugins to specific versions, ideally to a hash rather than a mutable label.
All of these steps can be introduced gradually, without downtime in releases.
Customer requirements and the Cyber Resilience Act
The question about an SBOM increasingly appears in the security questionnaires of financial sector customers, who under DORA must manage the risk of their ICT providers. The Cyber Resilience Act also covers manufacturers of software sold in the Union, and in its vulnerability handling requirements it provides for drawing up an SBOM. We describe the details and deadlines in the article Cyber Resilience Act, and a software company's preparation is shown in the scenario preparing a software house for the CRA.
Questions and answers
Do you have to share an SBOM with customers?
It depends on the contract and the regulations. The Cyber Resilience Act requires drawing up an SBOM but does not mandate publishing it. Customers in regulated sectors, however, increasingly write SBOM access into contracts. Good practice is to always generate it and make it available on request, in CycloneDX or SPDX format.
CycloneDX or SPDX?
Both formats are mature and supported by most tools. CycloneDX is more often chosen by security teams, because it supports VEX and a cryptography inventory. SPDX is sometimes preferred where license compliance and the ISO standard matter. If the customer does not require a specific format, choose the one your tools support best.
Does image signing slow down deployments?
Signing an image in the pipeline and checking the signature at deployment usually takes seconds, so it does not change the release rhythm. The one-time setup takes more work: a verification policy in the cluster and a list of trusted pipeline identities. After that step, signing works automatically.
What is VEX?
VEX (Vulnerability Exploitability eXchange) is a document in which a manufacturer states whether a known component vulnerability affects its product: affected, not affected, fixed, or under investigation. Thanks to VEX, the customer does not have to analyze every finding from an SBOM scanner, because the manufacturer has already done it and given the reason.