Dependency inventory and SBOM
Know what you ship
A dependency is a component your software relies on. Direct dependencies are selected by your project; transitive dependencies arrive through other components. A software bill of materials (SBOM) records component identities, versions and often relationships for a defined product or build. Its scope and collection time matter: a source inventory may differ from the actual deployed artifact.
Read a dependency graph
A fictional Notes application uses Render 2.0.0, which uses TextCore 1.4.0. Represent this as Notes → Render → TextCore. Notes directly depends on Render and transitively depends on TextCore. If a TextCore advisory arrives, the application owner can trace this path even though TextCore is absent from the top-level manifest. A graph may contain shared nodes or cycles; track visited nodes when traversing it.
SPDX and CycloneDX
SPDX and CycloneDX are standards for representing software inventory and related information. In the SPDX 2.3 family, element identifiers and relationship types describe links. CycloneDX 1.6 JSON uses component references and dependency records. These are selected teaching editions, not a claim that they are newest. A real SBOM needs the corresponding schema and completeness checks; the lab uses a deliberately simplified inventory, not a conformant export.
Inventory is evidence, not a verdict
Keep ecosystem, package identity, version, scope, source, artifact digest and collection method when available. Distinguish runtime, development and build dependencies. Reconcile the lockfile with built and deployed inventories; a bundled library may not appear in a package manager report. Missing evidence is unknown, not proof of absence. Assign an owner to refresh and investigate the inventory.
Practice: trace an impact path
In the lab inventory, identify all dependencies reachable from Notes, including indirect ones. Compare the result with a separate BuildTool node. Explain what you would need to establish whether a reachable dependency is actually included in a deployed binary and whether a vulnerable function is called.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Dependency inventory and SBOM — knowledge check
Apply software supply-chain security principles to fictional scenarios.
Notes uses Render, which uses TextCore. What is TextCore to Notes?
What does an SBOM primarily record?
Why record the collection stage?
What should a graph traversal track to avoid cycles?
What does an absent component in an incomplete inventory establish?