Key points
- At default settings every package Trivy 0.76.2 listed for Flask 3.1.3 was also on Syft 1.57.2’s list, and 97 distinct package URLs appeared on Syft’s alone.
- Trivy’s documentation says it leaves out development dependencies by default. With
--include-dev-depson, both tools listed the same 123 PyPI packages. - Nine GitHub Actions stayed on Syft’s list only. Syft has a cataloguer for workflow files, Trivy’s coverage pages list none, and Syft took each action’s version from a tag written in a comment.
- Neither tool’s files carry a licence, a component hash or a generation context. CISA’s 2026 Minimum Elements say an SBOM author “should” mark such values as unknown.
- Each tool wrote the same component list in SPDX and in CycloneDX. The format changed the shape of the file and whether Syft named each action’s owner, and left the list alone.
A software bill of materials (SBOM) is a machine-readable list of the components inside a piece of software, much as an ingredients label lists what is in a packet. We pointed two widely used open-source generators at the same tagged release of one Python project, and they recorded different things. Syft listed 139 entries carrying a package URL (PURL), the standard identifier for a package. Trivy listed 35.
Counted as distinct PURLs, that is 132 against 35, and every one of Trivy’s was also on Syft’s list. One documented Trivy setting made the two Python lists match. The rest is a folder of workflow files that only one tool catalogues. Each tool did what its own documentation or source says it does by default.
Counting what each generator listed
The project is Flask 3.1.3 (tag commit 22d92470), a Python web framework. Syft 1.57.2 is maintained by Anchore and Trivy 0.76.2 by Aqua Security. On 2 December 2026 SGT each wrote both common SBOM formats, SPDX 2.3 and CycloneDX 1.7, from the source tree alone, with nothing installed or built.
| Tool and setting | SPDX entries | CycloneDX entries | With a PURL | Distinct PURLs |
|---|---|---|---|---|
| Syft 1.57.2, default | 140 | 145 | 139 | 132 |
| Trivy 0.76.2, default | 38 | 37 | 35 | 35 |
Trivy 0.76.2, --include-dev-deps | 126 | 125 | 123 | 123 |
Entry totals differ by format because each records files and the project root its own way. Syft lists nine GitHub Actions as 16 entries, one per workflow file using them, so its distinct count is lower.
Others have measured this divergence at scale. Carnegie Mellon University’s Software Engineering Institute, in “Study Finds Key Causes of Divergence in Software Bills of Materials” (August 2025), says different tools “often produce SBOMs with different content”. “SBOM Generation Tools in the Python Ecosystem: an In-Detail Analysis” (2024) studied four tools on projects from the Python Package Index (PyPI), and “A Large Scale Empirical Analysis on the Adherence Gap between Standards and Tools in SBOM” (2026) covers 55,444 SBOMs from six tools.
Development dependencies explain most of the gap
Development dependencies are what a project needs to test, document or build itself, and they do not ship to users. Flask’s pyproject.toml declares seven runtime dependencies, two optional extras and seven dependency groups. Its uv.lock, the lockfile written by the uv package manager, pins 102 entries across all of them.
Trivy took 14 of those: Flask itself and 13 packages from PyPI, its runtime dependencies and the extras. Its Python coverage page at v0.76.2 says, under uv: “By default, Trivy doesn’t report development dependencies. Use the --include-dev-deps flag to include them.” Syft read all 102. Its Python capabilities file gives the default dependency kinds for uv.lock as runtime, dev and optional, and offers no Python switch to drop the dev ones. With the flag on, Trivy added 88 packages and its Python list became identical to Syft’s.
Workflow actions that only Syft catalogues
GitHub Actions are reusable steps that a project’s automated workflows call by name. Syft’s Actions cataloguer turned the 20 uses: lines in Flask’s four workflow files into 16 entries for nine actions. Trivy 0.76.2’s coverage pages list no analyser for workflow files.
Flask pins each action to a commit SHA, the 40-character fingerprint git gives every saved change, and writes the release tag, the version name a maintainer publishes, in a comment, as in actions/checkout@de0fac2e… # v6.0.2. Syft recorded pkg:github/actions/[email protected], as a line in its source describes: “if version looks like a commit hash and we have a comment, try to extract version from comment”. The SHA appears nowhere in its SPDX or CycloneDX file; Syft’s own JSON format keeps it in metadata.
An example folder lists Flask a second time
Both tools also read examples/celery/requirements.txt, a demo app’s 21 pinned packages, so both lists hold Flask 3.1.3 from the lockfile and Flask 2.3.2 from the example. Six package names appear at two versions only because of the example.
Whether an example belongs in a product’s SBOM is the author’s call. The US Cybersecurity and Infrastructure Security Agency (CISA) says in its Coverage element that an SBOM “should include information for all components that make up the target software, including transitive dependencies. There is no minimum depth.”
What CISA’s 2026 elements ask for beyond the schemas
In July 2026 CISA and 17 partner organisations published the 2026 Minimum Elements for a Software Bill of Materials, which “updates and replaces” a 2021 US list. Agencies from Australia, India, Japan, South Korea and New Zealand are among the authors; no ASEAN agency is. It names 17 data fields and says: “The minimum elements do not create new requirements; they refine how organizations should generate and request SBOMs.”
The formats ask for less. SPDX 2.3 makes only a package’s name, identifier and download location mandatory, and the CycloneDX 1.7 schema, standardised as ECMA-424, only a component’s type and name.
| CISA field | Syft 1.57.2 | Trivy 0.76.2, both settings |
|---|---|---|
| SBOM Author (SPDX creators) | tool maker, “Anchore, Inc” | tool maker, “aquasecurity” |
| Generation Context | absent | absent |
| Component Producer | 16 of 139, Actions only | 0 |
| Component Hash | 0 of 139 | 0 |
| Component License | 0 of 139 | 0 |
CISA defines the SBOM Author as “the entity operating the tool to generate the SBOM”, so whoever runs a scan supplies that name. The lockfile carries 1,120 SHA-256 lines, many for platform-specific builds, and does not say which file was installed; where the author has no access to the executable artefact, CISA says the author “should indicate the value is unknown”. On licences, Trivy’s page says “License detection is not supported for uv”, and Syft’s capabilities file sets licence detection off for uv.lock. Our guide to licence expressions covers what a filled field says.
Generation context is the stage an SBOM was made at, such as CISA’s example “before build”, which fits our run. SPDX 2.3’s Annex L maps it to the Creator Comment, and CycloneDX has a lifecycles field with a pre-build phase. Neither file used them. The producer count comes from Syft’s SPDX file, which names each action’s repository owner; its CycloneDX file names none.
Where the Cyber Resilience Act comes in
The EU’s Cyber Resilience Act (CRA), Regulation (EU) 2024/2847, puts the SBOM among a manufacturer’s obligations. Annex I, Part II, point (1) says manufacturers “shall” “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 of the products”. Annex VII point 8 places it in the technical documentation “where applicable”, for a market surveillance authority “further to a reasoned request” when necessary to check compliance, and recital 77 says “Manufacturers should not be obliged to make the SBOM public.”
Article 13(24) says the Commission “may” set the format and elements by implementing act. Its CRA implementation page, last updated 27 July 2026, listed no such act on 2 December 2026. Our scan is no compliance test, and this section gives no legal advice. Our guide to what the CRA asks of ASEAN software sellers sets out when each duty applies, and our report on 24-hour reporting covers the part already running.
How we ran the scans
Each tarball came from its project’s GitHub release, and its SHA-256 matched both the release’s checksums.txt and GitHub’s asset digest. We ran macOS 26.7.2 on arm64; the Trivy flags stop network calls and progress output.
shasum -a 256 syft_1.57.2_darwin_arm64.tar.gz trivy_0.76.2_macOS-ARM64.tar.gz
38afbcc03a9d9afac2d7572432fd2c435e051e03930582ea90f4710ffb515224 syft_1.57.2_darwin_arm64.tar.gz
ae7ea358326960406b703c77b2ac490190797d80b306b5b50c2a27221da0a5b8 trivy_0.76.2_macOS-ARM64.tar.gz
git clone --depth 1 --branch 3.1.3 https://github.com/pallets/flask.git flask-3.1.3 && cd flask-3.1.3
export SYFT_CHECK_FOR_APP_UPDATE=false
syft scan . -q -o spdx-json=syft-default.spdx.json
syft scan . -q -o cyclonedx-json=syft-default.cdx.json
OFF=(--skip-db-update --skip-java-db-update --offline-scan --skip-version-check --disable-telemetry --quiet)
trivy fs "${OFF[@]}" --format spdx-json -o trivy-default.spdx.json .
trivy fs "${OFF[@]}" --format cyclonedx -o trivy-default.cdx.json .
trivy fs "${OFF[@]}" --include-dev-deps --format spdx-json -o trivy-devdeps.spdx.json .
trivy fs "${OFF[@]}" --include-dev-deps --format cyclonedx -o trivy-devdeps.cdx.json .Each configuration ran twice with identical PURL lists. We did not scan an installed environment or the built package, which could give other counts. Syft 1.57.2 can also write SPDX 3.0.1 (-o [email protected]), while Trivy 0.76.2 writes SPDX only as 2.3, so we compared both tools in SPDX 2.3. Scanning . from inside the project keeps your directory path out of every output file.
Download
Every package URL from the Flask 3.1.3 scans
132 rows, one per distinct package URL, with name, version and whether it appeared in Syft 1.57.2 default, Trivy 0.76.2 default and Trivy with --include-dev-deps, plus a compiled_by column.
Download
CISA 2026 data fields, as each file recorded them
51 rows: the 17 fields of CISA’s 2026 Minimum Elements against what the SPDX and CycloneDX files from each of the three configurations hold, with counts, plus a compiled_by column.
Go further
More from Cybersecurity
Smart-device security labels and rules in Singapore, the US, the UK and the EU
MFA push prompts and number matching, as each sign-in platform documents them
The AI security-testing tools attackers took up, and what CISA said
Rainbow and SIKE broken on ordinary computers, and a timing leak in Kyber’s reference code