Trivy does not detect anything in a Windows container #8777
Replies: 2 comments
-
Hi @nicodur ! Trivy does not scan |
Beta Was this translation helpful? Give feedback.
-
It looks like Trivy doesn’t pick up vulnerabilities from standalone .exe files in Windows containers. That’s because it mainly scans OS packages and libraries, and in this case, it couldn’t even detect the Windows OS properly. Since .exe files aren’t part of a package manager, Trivy doesn’t know how to check them for vulnerabilities. Right now (version 0.59.1), this seems to be a limitation. Trivy would need better support for Windows containers and standalone binaries to make this work. |
Beta Was this translation helpful? Give feedback.
-
IDs
CVE-2024-11477
Description
Hello,
I’m encountering an issue with Trivy not detecting .exe files, specifically 7z1900-x64.exe. I’m scanning a Windows container using an offline vulnerability database, and I’ve tried running the following command:
trivy.exe image --skip-db-update --cache-dir D:\trivy_0.59.1_windows-64bit\cache IMAGE_NAME --scanners vuln
However, Trivy does not detect any vulnerabilities, only secret. The file is present in the directory, but no results are returned. I’m using an offline vulnerability database and scanning a Windows container.
I tried differents .exe like openssl or other and it never find anything. Only secrets are detected
Could you provide guidance on why Trivy might not detect .exe files in this environment? Is the file required to be installed, or is it sufficient for it to simply be present in the scanned directory?
Maybe for check windows container is not working perfectly?
Thank you for your help!
Best regards,
Reproduction Steps
Target
Container Image
Scanner
Vulnerability
Target OS
Windows server core ltsc2022
Debug Output
Version
Checklist
-f json
that shows data sources and confirmed that the security advisory in data sources was correctBeta Was this translation helpful? Give feedback.
All reactions