Replies: 4 comments 1 reply
-
I'm not fully clear here, but it may also be that the grype is having false positives, and fixes were back-ported to Mariner: |
Beta Was this translation helpful? Give feedback.
-
It looks like there's a bit of both going on. grype doesn't seem to do a good job of filtering out vulnerabilities that have had patches backported, leading to a bunch of false positives. However, trivy seems to miss vulnerabilities as well. I have an image with There are fixes for these vulnerabilies in |
Beta Was this translation helpful? Give feedback.
-
Hello @apeschel
It looks like
Hm.. Trivy should detect |
Beta Was this translation helpful? Give feedback.
-
Here's an example image: It doesn't seem like trivy is finding the The busybox package install isn't listed in The only place I can find in the filesystem that shows the installed busybox package version is in Based on looking at the file system layers with dive, it seems like the busybox package was installed with this step:
It seems like they have a multi-stage build, and I don't think the Dockerfile is available for inspection, so I can't see what they're doing exactly. I checked the packages that are listed in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
This seems similar to the following question:
#6846 (comment)
However, the documentation for CBL-Mariner suggests that Trivy does support detecting unfixed vulnerabilies:
https://trivy.dev/v0.60/docs/coverage/os/azure/
However, cross referencing grype and trivy show different results. Please see at the bottom for an example.
This is especially problematic on images built on mariner that include additional packages - many of the Mariner packages seem to be pretty old and have vulnerabilies, but Trivy doesn't report any of them. Python 3.9.19 and Busybox 1.35.0 seem to come up in a lot of images built on Mariner, but trivy doesn't catch them.
Does anyone know what is going on here?
Base image comparison:
vs trivy
Target
Container Image
Scanner
Vulnerability
Output Format
Table
Mode
Standalone
Operating System
macOS Sequoia
Version
Beta Was this translation helpful? Give feedback.
All reactions