You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scanned some of the java docker images available on Docker hub eg. jinghan94/java-jar-run , jensatdocker/jens-jar, ibmjava etc. Bunch of java packages are not captured and scanned for vulnerabilities.
The debug logs suggest that such packages are being skipped due to the error No such POM in the central repositories {"file": ".........."} .
When i enable --offline-scan, it still continues to skip these packages.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Scanned some of the java docker images available on Docker hub eg. jinghan94/java-jar-run , jensatdocker/jens-jar, ibmjava etc. Bunch of java packages are not captured and scanned for vulnerabilities.
The debug logs suggest that such packages are being skipped due to the error
No such POM in the central repositories {"file": ".........."}
.When i enable --offline-scan, it still continues to skip these packages.
Checked the source code. https://github.com/aquasecurity/go-dep-parser/blob/a12ecf227cddf3e130229f2e06f3cab14bef557c/pkg/java/jar/parse.go#L164 suggests that we will skip validation in case of offline scan, but we still continue to validate groupid, artifact id and version (https://github.com/aquasecurity/go-dep-parser/blob/a12ecf227cddf3e130229f2e06f3cab14bef557c/pkg/java/jar/parse.go#L165). Is that expected? Any specific reason to ignore such packages.
Syft SBOM does capture these packages and scans them for vulnerabilities.
Sample logs with offline scan disabled:
Beta Was this translation helpful? Give feedback.
All reactions