SECURITY ENGINEERING · PART 9 · DEVSECOPS AND SUPPLY CHAIN · SUPPLY CHAIN · 126 OF 229

SBOM Explained: CycloneDX, SPDX and VEX

A software bill of materials is an ingredient list for your software: every component and version inside it. This episode explains why SBOMs matter (answering "are we affected?" in minutes, not weeks), the formats CycloneDX and SPDX, how SBOMs are generated and consumed, VEX statements that say whether you are actually affected by a vulnerability, and how regulation is making SBOMs a requirement.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 9
  9. 10
  10. 11
  11. 12
  12. 13
  13. 14
  14. 15
  15. 16
  16. 17
  17. 18
  18. 19
  19. 20
  20. 21
  21. 22
  22. 23
  23. 24
  24. 25
  25. 26
  26. 27
  27. 28
  28. 29
  29. 30
  30. 31
  31. 32
  32. 33
  33. 34
  34. 35
  35. 36
  36. 37
  37. 38
  38. 39
  39. 40
  40. 41
  41. 42
  42. 43
  43. 44
  44. 45
  45. 46
  46. 47
  47. 48
  48. 49
  49. 50
  50. 51
  51. 52
  52. 53
  53. 54
  54. 55
  55. 56
  56. 57
  57. 58
  58. 59
  59. 60
  60. 61
  61. 62
  62. 63
  63. 64
  64. 106
  65. 107
  66. 108
  67. 109
  68. 110
  69. 111
  70. 112
  71. 113
  72. 114
  73. 115
  74. 116
  75. 117
  76. 118
  77. 119
  78. 120
  79. 121
  80. 122
  81. 123
  82. 124
  83. 125
  84. 126
  85. 127
  86. 128
  87. 129
  88. 130
  89. 131
  90. 132
  91. 133
  92. 134
  93. 135
  94. 136
  95. 137
  96. 138
  97. 139
  98. 140
  99. 141
  100. 142
  101. 143
  102. 144
1 / 10

Press play to hear the narration, or step through at your own pace.

Key takeaways

  • An SBOM lists every component and version
  • CycloneDX or SPDX
  • answer "are we affected" fast
  • VEX says if it truly applies

Notes

What an SBOM is

An SBOM is a machine-readable ingredient list for software. It records every component with its name, version and supplier, identifiers used for matching such as package URLs, file hashes, licenses, and the dependency relationships. The food-label analogy is exact: as you check a packaged food for an allergen, you check an SBOM for a vulnerable component. It is generated per build, for each artifact, so it reflects what actually shipped rather than what the source once declared.

Inside an SBOM
  • every component: name, version, supplier
  • unique identifiers (purl, CPE) for matching
  • hashes, licenses
  • dependency relationships (what depends on what)
  • like a food ingredients label, but machine-readable
  • generated per build, per artifact

The formats

There are two main formats. CycloneDX comes from OWASP, is security-focused, supports VEX natively and tends to be compact. SPDX is an ISO standard with particularly strong support for licensing and compliance. Both are machine-readable, usually JSON, and most tools can emit either, so they interoperate. For your own organisation, the practical advice is simply to pick one and be consistent, so that everything that consumes SBOMs, your scanners and inventories, speaks the same language.

CycloneDX and SPDX
  • CycloneDX: from OWASP; security-focused, supports VEX, compact
  • SPDX: ISO standard; strong on licensing and compliance
  • both are machine-readable (JSON, XML)
  • most tools emit both pick one and be consistent across your org

Generate and use

The lifecycle has two halves. You generate the SBOM at build time with a tool like Syft, Trivy or a build plugin, store it with the artifact and sign it. Then you consume it: match the SBOM against newly disclosed vulnerabilities, continuously, so when the next big one lands you query your inventory and instantly see which services use the affected library. That is the whole payoff, turning a multi-week fire drill into a database query. SBOMs also drive license and export-control checks.

The lifecycle
  • generate at build: Syft, Trivy, cdxgen, a plugin
  • store it with the artifact and sign it
  • consume: match the SBOM against new CVEs, continuously
  • ask "which of our 400 services use this library?" and answer instantly
  • also powers license and export checks

VEX

Here is the problem VEX solves. An SBOM says your product contains library X version one point two. A scanner says that version has a known vulnerability. But you may not be affected, because you never call the vulnerable function. VEX, the vulnerability exploitability exchange, records exactly that: for a given vulnerability and product, a status of affected, not affected, fixed or under investigation, and the reason. It is how a vendor tells customers not affected, with evidence, instead of leaving them to guess.

VEX: are we exploitable?
  • SBOM: "this product contains library X 1.2"
  • scanner: "X 1.2 has CVE-...-...."
  • VEX answers: are we actually affected?
  • statuses: affected, not affected, fixed, under investigation
  • and WHY (e.g. vulnerable function never called)

Why VEX matters

VEX matters because without it, anyone who scans your SBOM sees a long list of vulnerabilities in your components and reasonably panics, even though most do not apply. With VEX, you publish not affected, with the reason, for the ones that do not matter, and customers' scanners stop flagging them. It cuts false positives for everyone downstream. VEX is how you record the triage decisions from the last episode in a shareable form, so you make them once and the whole supply chain benefits.

VEX in practice
  • without VEX: customers see a scary SBOM scan full of CVEs and panic
  • with VEX: "not affected, here is why" for most of them
  • cuts false positives for everyone downstream
  • records your triage decisions (last episode) in a shareable form
  • CycloneDX and OpenVEX carry it

The regulation push

SBOMs are shifting from a nice idea to a requirement. A US executive order now requires SBOMs for software sold to the federal government. The EU's Cyber Resilience Act brings SBOM and vulnerability-handling obligations for products in that market. And customers increasingly ask for an SBOM during procurement. The practical conclusion is to start generating SBOMs now, as a normal build output, and to be ready to consume the SBOMs your own vendors provide, because this is becoming table stakes.

Why this is now mandatory
  • US executive order 14028: SBOMs for software sold to the government
  • EU Cyber Resilience Act: SBOM and vulnerability handling obligations
  • customers increasingly demand an SBOM in procurement
  • so: generate them now, and be ready to consume vendors'

Common mistakes

Mistakes. Generating SBOMs to tick a box but never consuming them, which is most of the value. Producing an SBOM from source instead of the built artifact, so it misses what was really included. No SBOM for the container base image layers, which hold many components. Mixing formats so nothing interoperates. Ignoring VEX, so SBOM scans drown in false positives. And an SBOM not signed or stored with the artifact, so its integrity cannot be trusted.

Avoid these
  • generating SBOMs but never consuming them
  • an SBOM from source, not the actual built artifact
  • no SBOM for container base image layers
  • mixing formats inconsistently
  • ignoring VEX, so scans are all false positives
  • SBOM not signed or stored with the artifact

Say it like this

In the interview: an SBOM is a machine-readable list of every component and version inside an artifact, in CycloneDX or SPDX. Its main value is answering are we affected in minutes when a new vulnerability lands, instead of a multi-week hunt, as Log4Shell showed. I generate SBOMs at build time with Syft or Trivy, sign and store them with the artifact, and consume them continuously against new advisories. I pair them with VEX statements recording whether each component is actually exploitable.

In the interview
  • "An SBOM is a machine-readable
  • list of every component and version in an artifact, in CycloneDX or SPDX. It lets me
  • answer 'are we affected' in minutes when a new CVE lands.
  • VEX records whether each component is actually
  • exploitable. I generate SBOMs
  • per build, sign and consume them."

Interview questions

Q1What is a software bill of materials (SBOM)?

A machine-readable inventory of every component and version contained in a piece of software, with identifiers, hashes, licenses and dependency relationships. It lets an organisation know exactly what is inside what it builds or runs.

Q2Why are SBOMs important for security?

They allow rapid answers to "are we affected?" when a new vulnerability is disclosed. Instead of manually hunting through hundreds of services, teams query their SBOM inventory and immediately identify every artifact that contains the affected component.

Q3What is the difference between CycloneDX and SPDX?

Both are standard SBOM formats. CycloneDX, from OWASP, is security-focused, compact and supports VEX natively. SPDX is an ISO standard with particularly strong licensing and compliance support. Most tools can produce either, so they interoperate.

Q4How is an SBOM generated?

Typically at build time by tools such as Syft, Trivy, cdxgen or build-system plugins, which inspect the built artifact and its dependencies. The SBOM should reflect the actual artifact, be stored alongside it and signed so its integrity can be verified.

Q5What is VEX?

Vulnerability Exploitability eXchange: a standard statement that records, for a specific vulnerability and product, whether the product is affected, not affected, fixed or under investigation, and why. It communicates exploitability, not just presence of a component.

Q6How do SBOM and VEX work together?

An SBOM lists the components, and a scanner matches them to known vulnerabilities, producing many potential issues. VEX annotates which of those actually affect the product and which do not and why, turning a noisy list into actionable, shareable signal.

Q7Are SBOMs becoming mandatory?

Increasingly yes. US Executive Order 14028 requires SBOMs for software sold to the federal government, the EU Cyber Resilience Act imposes SBOM and vulnerability-handling obligations, and customers often require SBOMs in procurement.

Q8Why should an SBOM reflect the built artifact rather than source?

Because the final artifact may include components added during the build, such as base image layers and transitive dependencies, that are not obvious from source manifests. An artifact-level SBOM captures what is actually shipped and at risk.