Andras Timar
A list of ingredients for software
A software bill of materials (SBOM) is a formal record of what a piece of software is made of: every component that went into it, with its version, its licence, where it came from, and how the pieces depend on one another. Food packaging lists its ingredients so that the person eating knows what is inside. An SBOM does the same job for software, and for much the same reason.
The reason it is being asked for now is regulatory. The EU Cyber Resilience Act (Regulation (EU) 2024/2847) has been in force since December 2024. Since 11 September 2026 its reporting obligations apply: a manufacturer has 24 hours to raise an early warning about an actively exploited vulnerability in its product. From 11 December 2027 the rest applies, including Annex I, which requires manufacturers to “identify and document vulnerabilities and components contained in products with digital elements, including by drawing up a software bill of materials in a commonly used and machine-readable format covering at the very least the top-level dependencies”. In the United States, Executive Order 14028 started the same demand in 2021. In Germany, BSI Technical Guideline TR-03183-2 spells out which fields an SBOM has to carry to be acceptable.
Behind the regulation is a practical question that every vendor has had to answer at short notice at least once: are we affected? When the next Log4Shell or xz backdoor lands, the difference between an afternoon and a fortnight is whether somebody can tell you, precisely and with evidence, which versions of what you ship. Our customers in the public sector ask this directly — openDesk, the German federal workplace suite that Collabora Online is part of, requires its suppliers to publish an SBOM alongside each image, signed.
This post is about what it took to answer that question honestly for Collabora Online and Collabora Office: roughly a year and a half of work, finished in October 2026.
Why none of this was easy
When a project is one language with one package manager, an SBOM is a solved problem: point Syft or Trivy at a Go binary, a Node project or a container built from official Debian packages, and you get a usable document in seconds. Collabora Online is none of those things.
What ships in the container image is four layers of different provenance:
Layer | What it is | Where its inventory has to come from |
Base image | A hardened Debian-derived base built by somebody else | The base image’s own published SBOM |
Distribution packages | Debian packages we add on top | dpkg metadata |
Collabora Office engine | The office engine, ~50 CollaboraOffice packages built by us | Our own build |
Collabora Online | coolwsd, the C++ server, plus the browser client | Our own build |
The engine is where it gets interesting. It carries around a hundred third-party C and C++ libraries, about fifty fonts and about fifty dictionaries, and for every one of them there are two separate questions: do we build it in at all, and does it end up installed in this particular package? A library can be present in the source tree, disabled by a configure switch, built but not packaged, or built and shipped — and only the last of those belongs in the SBOM. Neither question is answerable from a manifest file, because there is no manifest file. The answers live in the build system.
That is also why the off-the-shelf scanners come back with so little. They look for things that are not there:
• There is no dpkg database in the image. The rootfs is assembled file by file, so a filesystem scanner finds no package list to read.
• The libraries are statically linked. OpenSSL, zlib, zstd, libpng, expat and POCO are compiled into coolwsd. There is no libssl.so on disk with a version string to find.
• Our packages are not Debian’s. coolwsd and CollaboraOffice are published by Collabora. Even once a scanner identifies them, no distribution security feed covers them, so nothing matches.
• The browser client is not a node_modules tree. What ships is the built bundle, with the dependency information left behind in the build tree.
The result of pointing a standard tool at our image is not an error. It is a short, clean-looking report about the base image and nothing at all about the product on top of it — which is the most dangerous outcome available, because it looks like good news.
Where the facts come from
The design principle is a simple one: record by hand only what a machine cannot work out, keep that record next to the code where it gets reviewed, and derive everything else from the build.
The hand-written part had a natural home. The engine already carried readlicense_oo/license/license.xml, the source of the third-party licence notices shipped with the product, and it already listed every bundled component. It only lacked the machine-readable details. So they were added as structured comments:
<!-- Name: curl, Vendor: haxx, Source: CURL_TARBALL, URL: https://curl.se/,
Declared: curl, Concluded: MPL-2.0 -->
<!-- Name: box2d, Vendor:, Source: BOX2D_TARBALL, URL: https://github.com/erincatto/box2d,
PURL: pkg:git/github.com/erincatto/box2d, Declared: MIT, Concluded: MPL-2.0 -->Each field earns its place. Name and Vendor form the CPE identifier that vulnerability scanners match on, and they have to be spelled exactly as the NIST CPE dictionary spells them — not as upstream spells them. You generally only get a dictionary entry once you have had a CVE, so many smaller components have none; there, the Vendor field is left empty, which becomes a wildcard and matches any vendor. PURL was added later and gives scanners a second, often better identifier. Declared is the licence upstream states, Concluded the one we ship under.
Source is the hinge. It is usually a variable name such as CURL_TARBALL, which the generator resolves against download.lst, the file the build already uses to fetch and verify sources:
CURL_SHA256SUM := f7ef3ae8a22e521f289803fe93543eb64c329b58aa73a9e224dfd915a2a5f4f7
CURL_TARBALL := curl-8.22.0.tar.xzFrom that one line come the version, the hash, and — via the matching bucket in Makefile.fetch — the download URL it was actually fetched from. Every tarball is mirrored on Collabora’s own Gerrit server, so what that lookup settles is which directory a given one sits in: the general source bucket, or the separate bucket holding OpenSymbol and the validator JARs. The practical consequence is the point of the whole arrangement: upgrading a bundled library is still a one-line change, and the SBOM’s version, source location, hash and CPE all follow from it. Nobody has to remember to update the bill of materials, which is the only way a bill of materials stays true.
Everything else is derived. Which files belong to which distribution package comes from scp2 and the packinfo files, the engine’s own packaging description. What links against what comes from the gbuild external annotations, cross-checked against the binaries. What a binary actually needs comes from the binary: the generators parse ELF DT_NEEDED entries, PE imports and JAR contents directly. Dictionary versions come from each dictionary’s description.xml.
Getting there meant correcting the existing data as well as extending it — about twenty inaccuracies in license.xml came to light during the first pass, components listed that were no longer built, licences that had changed upstream, names that no longer matched anything.
Three generators, three levels
There is no single document, because there is no single build. Each level of the product describes itself, and the level above merges what the level below produced.
| Level | Format | Generator | Output |
|---|---|---|---|
| Engine, one document per distribution package | SPDX 3.0.1 | engine/solenv/bin/create-sbom.py, ~1,650 lines | 79 documents in a current build, one inside each .deb and .rpm |
| Collabora Online: server and browser client | SPDX 3.0.1 | scripts/create-sbom.py, ~970 lines | collabora-online-sbom.spdx.json, installed into the coolwsd package |
| Container image | CycloneDX 1.6 and SPDX 3.0.1 | docker/from-packages/scripts/generate-image-sbom.py, ~490 lines | Both documents at /usr/share/sbom/ inside the image |
The engine
The engine generator runs as part of packaging and produces one document per distribution package, so every package carries its own bill of materials at its install root. A machine that has the package has the document; nothing has to be looked up anywhere.
What goes into each document is more than a component list:
Every installed file, with a SHA512 hash and a BSI TR-03183-2 purpose flag saying what kind of thing it is — executable, library, data, documentation.
Every bundled external, with its CPE, its PURL, the source tarball it was built from and that tarball’s SHA256, and both the declared and the concluded licence.
Static linking, stated as such. When a library is compiled into a binary rather than loaded beside it, the document says
containswithsoftware_softwareLinkage: "static". This distinction matters to anyone consuming the SBOM: a statically linked copy of zlib is not patched when the system zlib is.Real dependency edges, read out of the built artefacts rather than guessed from the build files.
The generator is also strict about its own correctness. It fails the build on an annotation nobody used, on a file installed twice, or on a package that claims files it does not have — all three of which turned up real packaging bugs, including a set of language-pack packages that had quietly been empty for years.
Collabora Online
The online generator produces one document for coolwsd and the browser client. In a current build that is 6,636 elements: 75 components, 3,088 files with hashes, and 3,390 relationships between them.
Its inputs are deliberately all static, so that nothing has to be executed and cross-compiled builds work the same way:
The engine’s
download.lstfor the statically linked C and C++ libraries — OpenSSL, zlib, zstd, libpng, expat and POCO.The unpacked POCO tarball, probed for the libraries POCO itself bundles, such as PCRE2 and double-conversion, which would otherwise be invisible — they are a dependency of a dependency, with no manifest of their own.
browser/npm-shrinkwrap.jsonfor the runtime npm closure, seeded by the list of JavaScript actually shipped, so that build tooling does not end up in a document describing the product.scripts/sbom-externals.jsonfor vendored code that has no package anywhere: the Bulma stylesheet behind the admin console, a forked Leaflet, a hash function pasted in years ago.
The document installs to /usr/share/coolwsd/ rather than the documentation directory, specifically so that it survives the container image’s stripping of /usr/share/doc.
The container image
The image generator merges everything into the two documents a consumer actually receives. It fetches the base image’s own CycloneDX SBOM from the registry — the base vendor publishes it as a cosign attestation rather than as a file — adds one pkg:deb component per shipped package, and then does the step that makes the whole thing work in practice.
The packages are split by origin: Debian packages get pkg:deb/debian/... PURLs, which scanners match against the Debian security tracker, while Collabora-published ones get pkg:deb/collabora/... and are deliberately not distro-matchable, because no distribution feed covers them and a false match is worse than none. An operating-system component is included so that scanners key the Debian components to the right release.
Then the generator lifts the components out of the embedded per-package SPDX documents into the CycloneDX component list. This is not elegant, but it is necessary: most scanners cannot read SPDX 3.x at all, and without the lift a scan of the image SBOM would see the Debian layer and nothing of ours — the clean-looking report again. A published image carries around 370 components this way. A collabora:sbom-completeness property records which inputs were actually present when it was built, so a degraded document admits that it is one.
Two formats, and proving the documents are right
The two SBOM standards are good at different things, and the honest answer to “SPDX or CycloneDX?” turned out to be “both”.
|
SPDX 3.0.1 |
CycloneDX 1.6 |
|
|
Steward |
Linux Foundation |
OWASP |
|
Strength |
Licence and compliance metadata; an ISO standard (ISO/IEC 5962:2021) |
Security workflows, vulnerability and dependency data |
|
Weakness |
Heavy; thin tooling for 3.x |
Less comprehensive licence data |
|
Where we use it |
Per-package and per-product documents |
The image-level document, and VEX |
SPDX 3.0.1 is where the compliance detail lives — declared versus concluded licences, file-level hashes, the static-linking relationships. It is also very new, which means the ecosystem around it is thin and the documents have to be held to the specification by hand. They are validated two ways: against the JSON schema, and against the SHACL shapes that express the constraints the schema cannot. Both passes found real modelling errors in our output as recently as this month.
CycloneDX is what the security tools actually consume, so that is the format the container image carries for scanning, and the format the VEX document uses.
Checking the documents
A bill of materials that is wrong in a plausible way is worse than none at all, so three checks run against ours.
make sbom-check verifies internal consistency, needs no network and is safe in CI. Every external that something links has an annotation and every annotation is used; the sources bundled inside POCO match what the POCO tarball actually contains; the list of shipped JavaScript agrees with the shrinkwrap; the static-link table agrees with the build files; no installed file is listed twice; and every direct dependency appears in THIRDPARTYLICENSES, which is project policy.
make sbom-audit asks a different question: are the identifiers we assert the ones the vulnerability databases use? It cross-checks every CPE in our documents against a local vulnerability database and reports the ones that under-match.
This check exists because of curl. Our SBOM said cpe:2.3:a:curl_project:curl:8.14.1 — a real entry in the CPE dictionary, carrying exactly one CVE, about an abandoned Ruby gem that happens to share the name. NVD keys curl’s actual vulnerabilities to the vendor haxx. Correcting that one word, with no other change to the SBOM or the scanner, took the report from one irrelevant finding to 33 CVEs, six of them Critical.
The lesson is counter-intuitive and worth repeating: a wrong vendor is more dangerous than no vendor at all. An empty vendor field becomes a wildcard and matches every vendor of that product; a misspelled one matches only itself, and matches nothing. The same trap caught two more of ours — NVD calls expat libexpat and zstd zstandard.
make sbom-freshness asks release-monitoring.org what upstream currently ships and reports everything we bundle that is older, failing if anything is behind. This is not a vulnerability check, and that is the point: a scanner tells you which CVEs a version is known to have, and never tells you that the project moved on eight releases ago. Being behind is not a vulnerability. It is how you become one, and it is the lead time you will wish you had when a bump turns out to need work.
Scanning, and what a scan will not tell you
trivy sbom collabora-online.cdx.json
grype sbom:collabora-online.cdx.json
Both, not either. They see different things: Trivy resolves the Debian packages and the npm advisories through PURLs, while Grype also does CPE matching, which is what surfaces the statically linked C libraries. Run one alone and you get roughly half the picture, with no indication that half is missing.
And a scan that comes back clean still proves less than it appears to. Three ways it stays silent about something real, all three of which have happened here:
- An identifier nothing can match. The curl story above. The scan was clean because the question was being asked under a name nobody files CVEs against.
- No answer to “is there a newer release?” A scanner reports known vulnerabilities for the version you declare. It has no opinion about the eight releases you are behind.
- Advisories the databases have not finished processing. Expat 2.8.2 was affected by five CVEs, four of them fixed in 2.8.4. All four were sitting in a two-day-old vulnerability database — with no CPE applicability data attached, because NVD had not enriched them yet. Expat is a C library with no PURL, so CPE matching was the only mechanism available, and there was nothing for it to match against. Nothing about that scan looked wrong.
What a published image carries
Publishing follows the convention the hardened base image uses, so that what we hand on matches what we build upon. Every per-platform image digest gets a cosign signature plus five attestations:
• the CycloneDX SBOM;
• the SPDX SBOM;
• a SARIF vulnerability scan of that SBOM;
• the CycloneDX VEX document;
• SLSA provenance, built from the git metadata of the build.
They are attached as sidecar tags on the digest and recorded in the public transparency log, so anyone can verify them with the published key, without trusting our distribution channel. Attestations attach to platform digests rather than to the multi-arch tag, for the simple reason that the arm64 image’s bill of materials is not the amd64 one.
Vulnerabilities are not the only thing worth checking. The openDesk images are also scanned with ClamAV before anything is pushed — the built filesystem is exported and scanned against a freshly updated signature database, and a detection fails the build. Malware scanning and vulnerability scanning answer different questions, and an SBOM answers neither on its own.
VEX: saying "we are not affected", in machine-readable form
A good SBOM produces findings, and a lot of them are not true for your product. The vulnerable code may not be compiled in, or may be unreachable, or may already be patched, or the component may be used in a way the attack does not reach. VEX — Vulnerability Exploitability eXchange — is how a supplier says so to downstream consumers and auditors, instead of leaving everyone to guess.
For us it is not optional, for two reasons that are specific to how this product is built:
The engine backports security fixes into bundled libraries without bumping their versions. Version-based matching therefore reports vulnerabilities that are genuinely fixed in what we ship. Nobody outside Collabora can know that.
Our packages are covered by no distribution security feed. There is no Debian or Red Hat security team triaging
collaboraoffice*. If we do not write the statements, they do not exist.
The document is a CycloneDX VEX file checked into the source tree, reviewed like code, and attested alongside each published image. New findings are appended automatically by the publish-time scan in the in_triage state; a person then sets the state and records the evidence for it.
| State | What it means | What has to be recorded |
|---|---|---|
not_affected | The vulnerability does not apply to our build | A justification: the code is not present, not reachable, or needs a configuration we do not ship |
resolved_with_pedigree | Fixed by a patch we carry | The patch file in the source tree |
false_positive | The advisory does not apply to this component or version at all | Why: a name collision, or a version fixed before the one we ship |
in_triage | Not yet assessed | What has to be established to close it |
Two real examples. The RDF library raptor is built with --enable-parsers="rdfxml", so the N-Triples parser that CVE-2024-57822 concerns is never compiled in — not_affected, justification code_not_present, with the configure flag named as the evidence. A second raptor advisory is answered by a patch we carry, which is resolved_with_pedigree and names the patch file.
The largest single piece of triage so far was the OpenSSL advisories fixed in 3.5.9, thirteen of which matched the 3.5.8 we ship. Our security team’s assessment was that Collabora Online uses neither QUIC nor DTLS nor the CMP protocol, and never calls SSL_set_SSL_CTX — so in nine cases the vulnerable code is present in the library but cannot be reached from our product. Those are not_affected with the justification code_not_reachable, each naming the feature that is unused.
Four were deliberately left open. Three carried no argument beyond “low severity”, which is not a reason to tell a consumer they are unaffected. The fourth affects only the ARM and RISC-V implementations of a routine — and we publish an arm64 image, so dismissing it would have been false. They close when OpenSSL is updated, not before.
That is the discipline the whole document depends on: keep the open entries honest rather than tidy. A CVE marked not_affected without evidence is worse than one that admits it still needs work, because the first destroys the credibility of every other statement in the file. The current document holds 44 statements — 20 not_affected, 6 false_positive, 2 resolved_with_pedigree and 16 still in triage.
The same documents, in other shapes
The SBOM is not a container feature. It is produced by the installer, so every package built from this tree gets one without the packaging having to know about it — the container was the hard case, not the normal one.
solenv/bin/modules/installer.pm adds, to every package it assembles, the matching <package>-sbom.spdx.json alongside that package’s files. A current build on Linux writes 79 of them: collaboraofficebasis-core, collaboraofficebasis-writer, collaboraoffice-dict-de, one per language pack and dictionary, each listing what actually went into that one package. The document arrives inside the package, under /opt/collaboraoffice<version>/, and that is also where the container build finds the per-package documents it merges.
| Shape | What ships with it today | What sits underneath it |
|---|---|---|
| Collabora Office Classic, rpm/deb | One SPDX document per package, inside the package | The distribution’s own packages, described by the distribution |
| Collabora Online, rpm/deb | The same, plus collabora-online-sbom.spdx.json in /usr/share/coolwsd | The distribution’s own packages |
| Collabora Online, container image | Both of those, merged into an image-level CycloneDX and SPDX pair in /usr/share/sbom, attested per digest | The Debian base image — merged in, because nothing else describes it |
| Collabora Office Classic, MSI | The documents are generated, the installer does not carry them yet | Nothing: the installer is self-contained |
| Collabora Office on Windows (MSIX) and macOS (.app, .dmg) | The same | Nothing |
| Collabora Office as a snap | Nothing yet | core24, 121 staged Ubuntu packages, and the Qt, KF6 and QtWebEngine content snaps mounted at runtime |
| Collabora Office as a flatpak | Nothing yet | org.kde.Platform 6.10 and the QtWebEngine base app |
Windows and macOS are packaging work rather than SBOM work. The documents exist in the build tree; what is missing is the step that puts them where the MSI or the application bundle picks them up. The installer’s automatic injection lives in its non-Windows path, and on macOS the generated copy lands next to the bundle instead of inside it.
Snap and flatpak are the interesting ones, because they repeat the container’s problem in a new place. A snap is not only our build: it stages 121 Ubuntu packages into itself and mounts Qt, KF6 and QtWebEngine from content snaps that move independently of our release. A flatpak runs on org.kde.Platform 6.10 with the QtWebEngine base app, a platform layer we neither build nor pin. That is the same gap the Dockerfile closed for the Debian base image, and the fix has the same shape: take the platform’s own package list and merge it, instead of scanning the finished artefact and hoping the scanner recognises what it finds.
The flatpak manifest is a near miss worth naming. Its 98 external tarballs are written as the same download.lst variables the SBOM reads, substituted at build time, so a version or a checksum can never drift between the two. The list of entries, though, is still maintained by hand — exactly the kind of second list this work set out to abolish.
The VEX statements travel as well. “QUIC is not compiled in” and “the CMP code is never reached” are facts about the engine, not about a container. The file sits next to the image build today because that is where the scanning started, but it describes the product, and every shape of it deserves the same answers.
This is not a project that finishes
The generators are done. The work they create is not, and it is worth being plain about what it costs, because an SBOM programme that nobody maintains decays into a document that is confidently wrong.
Every release. The documents regenerate themselves from the build, so that part is free. The scan is re-run, new findings land in the VEX as open entries, and somebody has to work them down. That backlog is the real control: because vulnerability findings do not block a release — blocking on raw scanner output would hold releases hostage to the quality of NVD’s metadata — the published VEX is the honest measure of how closely anyone is looking.
Every bump. Editing one line in download.lst updates the version, the hash, the download URL and the CPE together. The commit message should name the CVEs the bump fixes, taken from upstream’s changelog, because that is the record that turns a routine update into evidence later.
Every new dependency. It needs a licence annotation and, if it is a direct dependency, an entry in THIRDPARTYLICENSES. make sbom-check fails if the two disagree, which is the point: the check exists so that the policy does not depend on anyone remembering it.
Periodically, and deliberately. Run make sbom-freshness against upstream release data, and make sbom-audit when identifiers change — because a CPE that stops matching is silent, and the day you need the SBOM is a bad day to discover it has been answering the wrong question for a year.
There is also a standing dependency on other people’s choices. SPDX 3.0.1 tooling is still maturing, scanner support for it is thin enough that we lift components into CycloneDX to compensate, and the identifier dictionaries we match against are maintained by somebody else at their own pace. The format work will keep moving for a while yet.
Who did this, and over how long
The first commits landed in January 2025. The last of the generator work landed in October 2026 — about a year and a half, and roughly eighty-five commits between the two engineers who did most of it.
Andras Timar designed the approach and built everything outside the engine. The idea of carrying the machine-readable data in license.xml, next to the licence text that was already there and already reviewed, is his, and so is the data itself — including the corrections to it. He presented the design twice in 2025, at COOL Days in May and at the LibreOffice Conference in September. He built the Collabora Online generator, the container-image merge, the VEX document and triage, and the signing and attestation pipeline that publishes it all.
Michael Stahl built the engine generator, which is the hardest part of the problem and by some distance the largest piece of code in it. The move from flat SPDX 2.x snippets to a full SPDX 3.0.1 model is his: per-file hashes with purpose flags, static linking expressed as a relationship rather than implied, dependency edges read out of the built binaries, stable identifiers, PURLs, and the JSON Schema and SHACL validation that keeps the output honest against a specification almost nothing else implements yet.
The result is that every Collabora Online container image we publish now carries a bill of materials describing everything inside it, down to the statically linked C libraries, signed and attested, with a supplier’s assessment of what the scanners report. When somebody asks “are you affected?”, the answer takes minutes.