Skip to content

DLPX-101138 Close the remaining Mend gaps in the image SBOM: bundled binaries, host-jdks contents and Ubuntu package vulnerabilities - #438

Open
suyash-jai wants to merge 1 commit into
developfrom
dlpx/pr/suyash-jai/1d50df5c-a5c3-430c-b869-d46a6dc652da
Open

suyash-jai wants to merge 1 commit into
developfrom
dlpx/pr/suyash-jai/1d50df5c-a5c3-430c-b869-d46a6dc652da

Conversation

@suyash-jai

@suyash-jai suyash-jai commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Two changes, both so that the SBOM lists third-party software it misses today:

  1. Bundled programs (resources/sanitize-sbom.jq): describes the third-party programs that Syft's binary cataloger finds inside packages as libraries with correct identifiers.
  2. JDKs in host-jdks (packages/host-jdks/config.sh): sets SBOM_DEEP_SCAN="true", so the package SBOM reads the list of JDKs that DLPX-101295 host-jdks: ship a CycloneDX list of the bundled JDKs for the package SBOM host-jdks#68 makes the package ship.

The third part of DLPX-101138, how Ubuntu packages are covered, needs no code.

Stacked on #437, which changes the same file; this PR shows only its own commit.

The problem

Syft types the programs it finds by their version banners "application". Mend's importer skips that type ("Unsupported component type: APPLICATION skipping component"), so these components never reach Mend. For two of them, Syft also builds the name and CPE from the banner (The OpenSSL Toolkit, stunnel 5.77 for x64-pc-mingw32-gnu), which gives CPEs no vulnerability database knows.

What Mend identifies

Small test SBOMs with OpenSSL 3.5.5, 7-Zip 26.02, stunnel 5.77, Node.js 24.22.3 and two JDKs, each typed "library", were imported into Mend, one project per form:

Form Result
CPE only No library identified with a license
pkg:generic + CPE Nothing identified
pkg:github + CPE Nothing identified
pkg:conan + CPE OpenSSL and 7-Zip identified, with licenses

Mend ignores the CPE whenever a purl is present, and supports neither pkg:generic nor pkg:github. A pkg:conan purl is not used, though: it would say these are Conan's builds, and they are not the same binaries (review). So these components get no purl, only a correct CPE, and Mend does not identify them; the SBOM still lists them accurately.

The change

Syft's component Becomes
7-Zip 26.02, application, no purl library, cpe:2.3:a:7-zip:7-zip:26.02
The OpenSSL Toolkit 3.5.5, application library OpenSSL, cpe:2.3:a:openssl:openssl:3.5.5
stunnel 5.77 for x64-pc-mingw32-gnu, application library stunnel, cpe:2.3:a:stunnel:stunnel:5.77
bash, jq, node, rust, application with pkg:generic purl and a correct CPE library, identifiers unchanged

For the three renamed components, Syft's candidate CPEs (syft:cpe23) are dropped, since they were all derived from the wrong name.

Mend cannot identify any of these, but the SBOM lists them correctly for any other consumer, and for comparing it with the CSV BOM.

Left as Syft found them: Delphix's own getpids and dlpxrunas, and cli*/gui*, libssp-0 and mssql-jdbc_auth, whose origin is not confirmed here.

JDKs in host-jdks

The package holds seven JDK archives, which no scanner opens, so the image SBOM lists only host-jdks itself. delphix/host-jdks#68 adds /usr/share/host-jdks/host-jdks.cdx.json, listing each JDK (Eclipse Temurin 17.0.21.1+2 for Linux and Windows, 17.0.20.1+1 for AIX, OpenJDK 17.0.21.1 for Solaris) with version, CPE and SHA-256. With deep scanning on, Syft's sbom-cataloger reads it in.

That cataloger is added by #422; until #422 merges, deep-scanning host-jdks finds nothing beyond what it finds today. #423 restores the archives' SHA-256s, which Syft drops, by purl.

Testing

Applied to the internal-dev image SBOM of pre-push #8308, compared with the output of #437's version of the filter:

  • Exactly the 10 components above change; the component count is unchanged (2,210).
  • The output validates with cyclonedx-cli validate (CycloneDX 1.6).
  • Running the filter again changes only the order of the components.

Pre-push #16121, with this PR (so #437), #423 and delphix/host-jdks#68 on develop (which has #422), succeeded:

  • OpenSSL 3.5.5, 7-Zip 26.02 and stunnel 5.77 (from delphix-virtualization) are libraries with their names and CPEs fixed (this run still had the pkg:conan purls since removed; the output was re-checked with jq on the same image SBOM and validates); bash, jq and node are libraries.
  • rust is still "application": delphix-rust was not rebuilt in this run, so the image used its existing package SBOM. It changes with delphix-rust's next build.
  • All three image SBOMs list the seven JDKs, each with its SHA-256 and license.
  • Deep-scanning host-jdks takes 22 s to unpack the 1.3 GB package and 7 s for Syft.
  • All three image SBOMs validate (CycloneDX 1.6), with no unreachable components.

Related

Jira: DLPX-101138 (epic CP-13455).

🤖 Generated with Claude Code

Comment thread resources/sanitize-sbom.jq Outdated
Comment on lines +101 to +103
reidentify("7-Zip"; cpe("7-zip"; "7-zip"); "pkg:conan/7zip@\(.version)")
elif .name == "The OpenSSL Toolkit" then
reidentify("OpenSSL"; cpe("openssl"; "openssl"); "pkg:conan/openssl@\(.version)")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not include the Conan distribution of these components. The Conan distributions and the Ubuntu distributions are different. They are not the same binary artifacts.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, a pkg:conan purl would claim Conan's build. Removed in 95b255a: OpenSSL and 7-Zip now get no purl, like stunnel, only their corrected names and CPEs (openssl:openssl, 7-zip:7-zip). Mend won't identify them, but the SBOM describes them accurately.

@suyash-jai
suyash-jai removed this pull request from stack #441 December 2, 2026 06:22
@suyash-jai
suyash-jai force-pushed the dlpx/pr/suyash-jai/1d50df5c-a5c3-430c-b869-d46a6dc652da branch from 1e88005 to 95b255a Compare December 2, 2026 06:27
Base automatically changed from dlpx/pr/suyash-jai/e96b5a6a-0495-46cc-8894-21b37b93a7fb to develop December 2, 2026 06:27
…binaries, host-jdks contents and Ubuntu package vulnerabilities

PR URL: https://www.github.com/delphix/linux-pkg/pull/438

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@suyash-jai
suyash-jai force-pushed the dlpx/pr/suyash-jai/1d50df5c-a5c3-430c-b869-d46a6dc652da branch from 95b255a to 030b4a9 Compare December 2, 2026 06:29
@suyash-jai
suyash-jai requested a review from sebroy December 2, 2026 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants