Skip to content

rootfs does not find JAR's #7906

Closed Answered by DmitriyLewen
tomuben asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @tomuben
Thanks for your report!

These jar files installed from apt.
That is why Trivy doesn't check these files.
See https://aquasecurity.github.io/trivy/v0.57/docs/scanner/vulnerability/#handling-software-installed-via-os-packages for more details.

To see these packages - use --detection-priority comprehensive flag:

root@555bbe25142d:/# trivy rootfs --java-db-repository public.ecr.aws/aquasecurity/trivy-java-db --db-repository public.ecr.aws/aquasecurity/trivy-db -s HIGH,CRITICAL --scanners vuln --debug / -f json --list-all-pkgs --pkg-types library --detection-priority comprehensive -q | grep pkg:maven
            "PURL": "pkg:maven/aopalliance/[email protected]",
            "PURL"…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tomuben
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
triage/support Indicates an issue that is a support question. scan/vulnerability Issues relating to vulnerability scanning
2 participants