Skip to content

Where does the code come from? Dependencies, SBOM, and the security of the software supply chain

Glass software components assembled into a package, beside a component inventory and a separate element awaiting review.

Series II: From infrastructure to agentic projects in production. Episode 12 of 20.

In the previous episode, we evaluated whether a programming agent delivers an acceptable change. But the application includes more than just code written by the agent or team: libraries, container images, and tools that turn sources into an executable product. For the series' fictional B2B portal, the main decision is to accept a component only after verifying its identity, version, and risks, then to keep the evidence alongside the delivered version.

The software chain starts before installation

A dependency is an external component that the project needs. Some are direct, chosen by the team; others are transitive, brought in by those components. An export library can install other libraries, and a container image can include operating system packages. Build tools also matter: even if they don’t make it into the final application, they perform operations on the code and project files.

The software supply chain includes the sources, suppliers, services, and processes through which these elements end up in the product. Moving the application to the cloud or keeping it on-premises, on your own infrastructure, doesn’t eliminate this chain. In both scenarios, we need to know what we download and actually use. The inventory covers the application components, base image, and key build process tools.

A library proposed by the agent is not yet approved

Let’s use a hypothetical scenario: the team adds export of requests into a CSV file, a tabular format with delimiter-separated values. The development agent suggests a library for handling delimiters and diacritics. First, we check if the function can be achieved using already approved components. A new dependency brings a maintenance cost even if installation only takes a moment.

If the library is necessary, we check its exact name in the package registry—the service that distributes components—and compare it with the project documentation. We review the official source, authors or responsible organization, license, available versions, and update history. Popularity may guide the investigation but does not replace these checks. The existence of a package with the suggested name doesn’t prove it’s the intended component.

The study “We Have a Package for You!”, presented at USENIX Security in August 2025, documents recommendations of non-existent packages in code generated by evaluated models. The results don’t estimate the risk for each current model. They do justify independent verification before installation. In the portal, the agent can propose the library; a designated reviewer approves the component and the rationale for its use.

We pin the version and control the installation

A lockfile is the file that records the concrete versions resolved by the package manager—the tool that installs dependencies. We keep it in the code repository and review its changes along with the integration request. A small change to a direct library can bring in many transitive changes.

For a JavaScript project using npm, the command npm ci installs based on an existing lockfile and refuses any mismatch with the declared list of dependencies, without rewriting the lockfile. We also document installation configuration. This control doesn’t prove the packages are safe and alone does not guarantee an identical final product.

The installation is performed in an isolated environment, with limited access to data and secrets. We review scripts that can run during installation and enable only what the project needs. For container images, we also keep a digest, a cryptographic fingerprint of the content, so the version tag isn’t the only reference. Pinning components must be paired with a regular update process, otherwise it preserves known flaws too.

SBOM: the inventory of the delivered version

SBOM, from “Software Bill of Materials,” is the structured list of software components. CycloneDX is a format that can represent components, versions, and dependency relationships. For our example, we propose generating the inventory at the build of every deliverable version and associating it with the resulting product.

A artifact is the result of the build process, for example the container image of the portal. We identify the artifact by digest and keep alongside it the SBOM, source version, and generation date. A list extracted only from project declarations may not describe all components present in the image. We check what the chosen tool covers, including OS packages, manually copied code, and components loaded later.

The SBOM helps the team find out which versions are affected when an alert appears. It’s not a security certificate and it doesn’t eliminate vulnerabilities. Its completeness depends on sources and generation methods. For an SME, a verifiable inventory of actually delivered versions is more useful than a file generated once and forgotten.

Provenance explains the path to the artifact

Provenance describes what sources and process produced the artifact. The SLSA 1.2 specification, which is approved, provides requirements and formats for strengthening the integrity of the software chain. In the portal example, we keep source references, build system identity, and relevant parameters, as far as the platform can document and verify them.

A cryptographic signature needs to be checked against the trusted identity and team policy. We also check that the proof refers to the digest of the received artifact, the expected source, and the allowed process. A valid signature from an unaccepted identity is not enough. And even verified provenance does not guarantee code correctness or the absence of vulnerabilities. If a component doesn’t offer this evidence, we document the limitation and acceptance decision, without claiming that a SLSA level is met.

Alerts need an accountable reviewer

Automated analysis compares inventoried components to available vulnerability information. A clean result only means the tool didn’t report issues in the data and at the time of the check. It does not prove that all components are defect-free.

For each alert, we determine the affected component, delivered versions, relevant exploitation conditions, and available fixes. A library used only at build time may still be important for process security. The reviewer decides on updating, replacing, or granting a justified temporary exception with a review deadline. After change, we rerun export tests and existing checks. An alert doesn’t close just because the agent claims it’s fixed.

The minimum checklist before delivery

For the scenario’s CSV library, the approval sheet answers five questions: is it the intended component, is the version controlled, are the license and maintenance reviewed, is it present in the artifact inventory, and is someone assigned for alerts? We link the answers to evidence and the approved change.

The rules apply to both components proposed by agents developing the portal and those used by any possible agents integrated into the application. They have different roles, but their libraries and images still go in the inventory. The next episode will introduce CI/CD—the automated integration and delivery pipeline—where these checks become repeatable steps before release.

Sources

Sources verified as of October 13, 2026:

Verify the provenance of software components

Want to check what components and risks go into your company’s applications? Talk to i8 about your software inventory and a verifiable delivery.