Prove where the dependencies came from
The security team learns that a widely used software library has a serious vulnerability. The advisory names the affected library and the versions at risk. A manufacturing company operates hundreds of small services that collect production measurements, schedule maintenance, and report equipment status. Its security lead asks a sensible question: which of our services contain that library? The application teams can name the libraries they chose directly. Nobody can say with confidence which additional libraries arrived inside those dependencies or inside the container images used to run them.
The immediate temptation is to search for the library name in the source repositories. That is a reasonable starting point, but it cannot settle the question. An application may depend on a package that depends on another package that contains the vulnerable component. A build tool may include material that is absent from the development team's direct dependency list. A service may still be running an older image even though the main branch has already received a dependency update. The company needs to know what is in the software it actually built and deployed, not merely what developers expected to be there.
A software bill of materials addresses part of that need. It is a structured inventory of components associated with a software product. Depending on its format, completeness, and generation method, it can identify package names, versions, relationships, and other useful information. The value is not that an inventory automatically makes software secure. The value is that when a new issue is discovered, the operator has an organized starting point for determining where the affected component may exist. Without that record, a serious investigation begins by asking dozens of teams to reconstruct a build from memory.
For further practice, the AutoOps+ Study Guide published by Bare Metal Cyber offers a way to explore the difference between a dependency you requested and one that arrived indirectly. Use the factory-monitoring example: imagine the team selected one reporting library, and that library brought several smaller components into the finished service. The useful skill is to explain why a source list and a deployed component inventory may disagree, and what each disagreement tells the investigator to check next.
The word inventory deserves some attention. A warehouse inventory records what arrived and where it is stored. A software inventory may be harder to make complete because libraries are nested, copied, transformed, bundled, or generated during a build. It can describe a source repository, a specific built application, or an installed environment. Those are different scopes. An inventory generated from source manifests can be valuable even when it fails to capture a component introduced by a later build stage. An inventory generated from a completed image may find components that a source-only view misses, but it may still lack useful identity information for some packages.
The manufacturer's first task is therefore to define the question the inventory is supposed to answer. If the incident concerns a deployed factory-monitoring service, the strongest starting record is one tied to the deployed artifact or its build. If the question concerns a planned code update, the source dependency graph may help identify what the proposed change will bring in. An inventory with no recorded target and no generation context can make both teams sound confident while they are describing different software. The same package name appearing in two places does not establish that the two packages have identical contents or exposure.
Now the company starts collecting its software bills of materials. A good inventory needs more than a column of package names. Version information helps determine whether the affected release is present. Unique identifiers can distinguish packages that share similar names. Relationships explain which components depend on which others. Creation time and generation context help the investigator judge whether the record belongs to the live artifact under review. Some organizations also capture component hashes, license information, authoring tools, and known gaps in coverage. The appropriate fields and formats are governed by the organization's standards, but the operational purpose remains consistent: turn an unstructured guess into traceable evidence.
There is a practical distinction between a direct dependency and a transitive dependency. The application team deliberately adds a reporting package. That package relies on a parser. The parser relies on a smaller compression library. If the vulnerability affects the compression library, the application's direct dependency list may never mention it. A sufficiently complete dependency graph exposes the relationship. That tells the team which higher-level package may need updating or replacing. It also prevents the team from assuming that the absence of a package name from a top-level list proves that the component is absent from the product.
Even a detailed inventory can contain mistakes. A generator may not recognize a proprietary package. A binary may have been stripped of identifying metadata. A package can be present without being called by the particular application. A component may be included in a development image but not the deployed runtime. The company should record such limitations rather than quietly treating its inventory as complete. When the vulnerability is serious, unknown coverage is part of the risk picture. The honest answer may be that a service is affected, is not affected according to reliable evidence, or still needs investigation.
The security lead then asks for a list of systems that require immediate action. The inventory can identify candidates but cannot alone establish exploitability. Whether a component can be reached, whether the vulnerable function is used, whether a mitigating control exists, and whether a fixed version is available can change the response. The team should avoid both extremes: declaring every component name match to be a confirmed compromise, and declaring an application safe merely because developers say they never call the vulnerable function. Inventory provides visibility. Impact analysis and testing turn that visibility into a defensible operational decision.
A software bill of materials also needs a dependable association with the artifact it describes. Suppose the factory's pipeline builds a monitoring image on Monday and generates an inventory. A second build on Tuesday quietly updates a base image, but the publishing step attaches Monday's inventory to Tuesday's result. The inventory may be detailed and well formatted, yet it describes the wrong object. Linking the inventory to an immutable artifact identifier allows a consumer to recognize the mismatch. That connection is one reason reliable artifact identity is essential to supply-chain analysis. An inventory unattached to the deployed bytes can mislead the incident team at exactly the moment it most needs accurate data.
Now consider the origin of those bytes. An inventory describes what components were identified; provenance describes where a software artifact came from and how it was produced. For a build, that can include the repository, source revision, workflow, builder, and other details about the production process. A team investigating a compromised dependency wants to know both what ended up in the artifact and which process put it there. Those are related questions but they are not answered by the same record.
The Bare Metal Cyber Academy AutoOps+ practice material in Cyber Challenge offers an optional way to reason through the two records. Imagine an image accompanied by a detailed component inventory but no credible build history. Then imagine an image with a verifiable build record but only a partial component inventory. The first case gives useful visibility into contents with uncertainty about origin. The second gives useful origin evidence with uncertainty about contents. Neither record should be treated as a replacement for the other.
Provenance is sometimes described as a signed claim about a build. The claim can identify which workflow produced an artifact and link that claim to the artifact's content identity. A verification process can test whether the claim has been altered and whether it came from an expected issuer. That is stronger than a note typed into a release document. Still, a valid signature does not establish that the source code was free of malicious instructions, that the build process was configured safely, or that the dependency inventory captured every component. The trust decision depends on the content of the claim and the trustworthiness of the process that generated it.
This difference becomes important when an attacker uses an authorized workflow. If a malicious change is merged into the normal repository and built by the normal service, the resulting provenance can be genuine. It accurately records that the approved builder produced the artifact from the identified source. The security problem has not vanished; it has moved to the authorization and review of what the builder was asked to process. A useful supply-chain program therefore connects provenance with source review, branch protections, build isolation, artifact integrity, and dependency analysis. Each control answers a particular uncertainty.
The manufacturer uses that understanding to improve its incident workflow. Each release carries an exact artifact reference and a component inventory tied to it. The build process records the revision and environment that created the output. A separate verification step checks that the provenance is from the expected build system and refers to the intended artifact. When a vulnerability advisory arrives, the security team can search inventories for the affected component and correlate those findings with the versions actually deployed. Services with incomplete inventories are not silently marked clear. They become explicit investigation assignments.
Consider how this changes the response at one factory. The inventory shows the affected compression component inside an older data-collection image. The operators confirm that this image is still running on a small set of devices. A new artifact has already been built with a corrected dependency, and its inventory records the updated component. The release team can verify the new artifact's build identity and test results before deploying it. It should also consider whether the vulnerable part is reachable through the service and whether a temporary network restriction is needed during the rollout. The inventory identified a likely exposure; the operational response still requires judgment about containment and change risk.
Another factory appears unaffected because the current inventory does not list the library. The team later discovers that the inventory was generated from the repository's direct dependencies, while the production image included a copied utility added in a packaging step. This is a coverage failure, not proof that software inventories are useless. The company updates the generation method and documents which component classes it can and cannot detect. It also keeps the original inventory and its scope available for audit. Replacing an inaccurate record without acknowledging the gap could conceal why the first investigation reached the wrong conclusion.
The difference between a package identifier and a vulnerability finding also deserves care. Different ecosystems may use names that look similar, and vulnerabilities can apply to specific product variants or version ranges. Automated matching is valuable at scale but can produce false positives and false negatives when identifiers are incomplete or ambiguous. The incident team needs enough information to verify the association. It may also need statements about whether a known vulnerability is exploitable in the shipped product, supported by evidence and kept current as conditions change. An assertion of nonexposure without supporting reasoning should not overrule a credible finding.
Software inventories have a life cycle. A new build can change its components even if the product's marketing version remains the same. Updates to source dependencies, base images, bundled tools, and generated outputs can invalidate an earlier record. That is why the manufacturer ties inventory creation to the build and publication process rather than treating it as an annual documentation exercise. The company also decides who can read the inventory. An inventory can reveal useful security details to maintainers and, potentially, to attackers. Distribution needs to match the organization's reporting obligations and security policy, without making the record so inaccessible that responders cannot use it.
The team conducts a controlled rehearsal. It picks a harmless test library, treats it as if an advisory had arrived, and asks the responders to identify each deployed artifact that contains it. One service is easy to find. Another has an unrecognized transitive package. A third has a valid inventory but no record connecting it to the current deployment. The rehearsal gives the company three concrete repairs: improve component coverage, retain the dependency relationship, and attach the inventory to the actual released artifact. The objective is a faster, more trustworthy answer during the next real advisory.
When the original vulnerability response closes, the security lead resists reporting a single comforting number such as all services inventoried. Coverage is more informative when the organization distinguishes source inventories from built-artifact inventories, identifies missing components, records the age and scope of each document, and checks whether the described artifacts are still deployed. It can then explain which services were confirmed affected, which received a fix, which were assessed as not exposed, and which remain uncertain. An honest uncertainty is a task to resolve. An unearned declaration of safety is a risk hidden in the report.
The manufacturing company's broader achievement is not collecting more documents. It has created a traceable connection among the source it intended to build, the output it actually produced, the components it can identify within that output, and the service that is currently running it. When an unfamiliar library appears in an urgent advisory, the team has evidence to narrow the search and a disciplined way to address the gaps. A software bill of materials helps answer what may be inside. Provenance helps answer how the artifact came to exist. Neither replaces the work of deciding whether it should be trusted and what to do when the evidence is incomplete.