Skip to content

Trivy analyzer can't detect SLES OS #4051

Open

Description

@PaulRitzkat0110

Current Behavior

Uploading sboms generated with trivy 0.53 for SLES 12.5 and 15.x can't be scanned by the trivy analyzer, because the OS is not detected by trivy, trivy 0.53 server log:

INFO	Detected OS	family="none" version=""
WARN	Unsupported os	family="none"
INFO	Number of language-specific files	num=0

dtrack-logs-2024-08-08 17_28_28.txt

Steps to Reproduce

  1. upload a trivy generated sbom with SLES 12.5 or 15.x OS packages: trivy.json
  2. have dtrack configured to analyze with trivy
  3. no OS dectected by trivy, no vulns in dtrack: 403cb7b7-81b6-4ffd-bbbb-dd910ea39249-withVulnerabilities.cdx.json

Expected Behavior

OS is set correctly by dtrack and discovered by trivy, like it does for example for redhat, and vulns are reported back to dtrack

Dependency-Track Version

4.11.5

Dependency-Track Distribution

Container Image

Database Server

H2

Database Server Version

No response

Browser

N/A

Checklist

Activity

  1. added
    defect
    on Aug 8, 2024
  2. changed the title [-]Trivy analyzer can[/-] [+]Trivy analyzer can't detect SLES OS[/+] on Aug 8, 2024
  3. added
    help wanted
    integration/trivy
    on Aug 8, 2024
  4. cyrilfantin commented on Aug 30, 2024

    @cyrilfantin

    Hi

    I have the same issue for trivy 0.54, dtrack 4.11.7 and amazon linux2.
    If i try directly trivy server has the correct platform :
    Detected OS family="amazon" version="2 (Karoo)" [amazon] Detecting vulnerabilities... os_version="2" pkg_num=117

  5. INHossner commented on Dec 22, 2025

    @INHossner

    I would like to report that this issue is unfortunately still present in Dependency-Track v4.13.6 using the Trivy integration.

    When the integration triggers a scan, the Trivy server logs show that the OS is not detected:
    Plaintext

    2025-12-22T12:39:50Z INFO Detected OS family="none" version=""
    2025-12-22T12:39:50Z WARN Unsupported os family="none"

    However, if I download the BOM file from Dependency-Track and perform a manual scan with Trivy, it works as expected:

    2025-12-22T12:27:09Z INFO Detected OS family="rocky" version="8.10"

    It seems that the current integration does not pass the necessary OS information to the Trivy server correctly.

    Is there any known workaround or a planned fix for this? Currently, this issue prevents us from detecting vulnerabilities for OS RPMs effectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    defecthelp wantedin triageintegration/trivy

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions