v0.22.0 #1518
aqua-bot
announced in
Announcements
v0.22.0
#1518
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
💔 BREAKING CHANGES 💔
JAR/WAR/EAR detection is disabled in filesytem and repository scanning
We assume JAR/WAR/EAR detection is mainly used in container image scanning. You can scan
pom.xml
instead infs
andrepo
subcommands. Therootfs
subcommand still can be used for JAR/WAR/EAR scanning.See here for the details.
🚀 What's new? 🚀
☕ Support for pom.xml 🎉
Trivy now scans
pom.xml
for Java applications. It is enabled forfilesystem
andrepository
subcommands and disabled forimage
subcommand.Trivy recursively resolves dependencies in pom.xml. In the above example, Trivy also scans the dependencies of log4j-core. If log4j-core doesn’t exist in the local repositories, it will be fetched from the remote repositories. Dependencies whose scope is "test", "provided", “system” and "runtime" will be skipped.
pom.xml
is not a lock file and the dependency might not be pinned to the specified version. If version requirements such as(,1.0]
and[1.2,1.3]
are used, those dependencies will be skipped.https://maven.apache.org/pom.html#Dependency_Version_Requirement_Specification
In addition, plugins are not supported.
📴 Add
--offline-scan
option 📵The
--offline-scan
option prevents Trivy from sending API requests to identify dependencies. Scanning JAR files and pom.xml may require Internet access for better detection, but this option tries to avoid it. For example, the offline mode will not try to resolve transitive dependencies in pom.xml when the dependency doesn't exist in the local repositories. It means a number of detected vulnerabilties might be fewer in offline mode. It would work if all the dependencies are in local.This option doesn’t affect DB download. You need to specify
--skip-update
as well as--offline-scan
in an air-gapped environment.As for misconfiguration detection, you have to specify
--skip-policy-update
in an air-gapped environment.See here for more details.
🎩 Support for RPM NDB
RPM databases can be either in Berkeley DB format or optionally in the newer "native" NDB format. there are linux distributions that switched their implementation of the rpm database away from Berkeley DB out of concerns about the future levels of maintenance after its license change. Trivy now scans those distributions.
See
Thanks, @dirkmueller
Include JAR file path
You can find
PkgPath
in the JSON result.Support for misconfiguration results in html.tpl
$ trivy config --format=template --template='@contrib/html.tpl' /path/to/conf_dir
🐞 Bug fixes 🐛
improve memory usage (#1509)
Changelog
42f795f fix(java/pom): ignore unsupported requirements (#1514)
8f737cc feat(cli): warning for root command (#1516)
76249bd BREAKING: disable JAR detection in fs/repo scanning (#1512)
59957d4 feat(scan): support --offline-scan option (#1511)
da8b72d fix: improve memory usage (#1509)
b713ad0 feat(java): support pom.xml (#1501)
56115e9 docs: fixing rust link to security advisory (#1504)
7f859af Add missing IacMetdata (#1505)
628a796 feat(jar): add file path (#1498)
82fba77 feat(rpm): support NDB (#1497)
d5269da feat: added misconfiguration field for html.tpl (#1444)
Docker images
docker pull aquasec/trivy:0.22.0
docker pull ghcr.io/aquasecurity/trivy:0.22.0
docker pull public.ecr.aws/aquasecurity/trivy:0.22.0
This discussion was created from the release v0.22.0.
Beta Was this translation helpful? Give feedback.
All reactions