-
-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependency Ttrack makes Trivy-generated SBOM unusable to Trivy server #3721
Comments
My current production setup uses Trivy v0.49.1 to generate SBOM and Trivy v0.51.1 in server mode. After performing few additional tests I have noticed that when I access the Trivy server directly (through Trivy SBOM command, ommiting dtrack) then sometimes it parses the dtrack-proccessed SBOM file correctly, while other times it does not (like 50/50). When I upload the same file through Dependency Track, then it always fails it's assessment. |
Trivy client logs:
Trivy server logs:
|
Few things to clarify.
If there is a better way to confirm the arrival, please let me know. |
Ok I confirm its not working as expected, I will try to debug it later today |
I think I found the issue, just need to do some testing... |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Current Behavior
I am trying to use recently added Trivy analyzer but in some cases Dependency Track transforms uploaded SBOM in a way that unables Trivy server to detect OS vulnerabilities correctly (see logs below).
When I generate SBOM using Trivy and then specify the same Trivy server that is used by Dependency Track while analyzing then it works correctly:
When I upload SBOM to Dependency Track either through UI or API then the same SBOM file does not show any vulnerabilities.
Steps to Reproduce
1.Create SBOM with Trivy. In my case the command is
trivy image --format cyclonedx --output test.json php:7.4.10-fpm-alpine
2. Upload it to Dependency Track (either using UI or API)
3. In Dependency Track dependencies are correctly listed but no vulnerabilities are shown
Expected Behavior
Trivy server correctly parses SBOM uploaded to Dependency Track.
Dependency-Track Version
4.11.0
Dependency-Track Distribution
Container Image
Database Server
PostgreSQL
Database Server Version
15.0
Browser
N/A
Checklist
The text was updated successfully, but these errors were encountered: