Image scan ends with no result/summary of findings #6989
-
QuestionHi! Im new to Trivy. Based on my understanding of the trivy image scan, after scan is completed, we would get the vulnerability report. If no vulnerabilities are found, summary would be as below
I build a docker image with base image as Logs
Note, there is no summary after the image scan completed. I have two questions
Thank you in advance. TargetContainer Image ScannerNone Output FormatTable ModeStandalone Operating SystemmacOS Monterey (12.5.1) VersionVersion: 0.52.2
Vulnerability DB:
Version: 2
UpdatedAt: 2024-06-21 06:12:43.970221161 +0000 UTC
NextUpdate: 2024-06-21 12:12:43.97022092 +0000 UTC
DownloadedAt: 2024-06-21 09:10:54.857905 +0000 UTC |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hello @Dileep17
We can't always determine version for
Looks like your ( 2024-06-21T17:49:26+08:00 DEBUG OS is not detected.
2024-06-21T17:49:26+08:00 DEBUG Detected OS: unknown Trivy doesn't show summary table if OS is not found. UPD ➜ trivy -q image golang:1.21.11-alpine
golang:1.21.11-alpine (alpine 3.20.1)
Total: 0 (UNKNOWN: 0, LOW: 0, MEDIUM: 0, HIGH: 0, CRITICAL: 0)
Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
-
I feel it would be great to show message/summary that suggests the scan ended incomplete as OS not found, instead of no summary. |
Beta Was this translation helpful? Give feedback.
Hello @Dileep17
Thanks for your interest to Trivy!
We can't always determine version for
gobinary
(https://aquasecurity.github.io/trivy/v0.52/docs/coverage/language/golang/#empty-versions).If the version is not found, Trivy doesn't look for vulnerabilities for this package.
Looks like your (
xray-docker-1.21.11
) image doesn't contain info about OS:Trivy doesn't sho…