mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-10 06:40:46 -08:00
2.8 KiB
2.8 KiB
Language-specific Packages
Trivy automatically detects the following files in the container and scans vulnerabilities in the application dependencies.
| Language | File | Image1 | Rootfs2 | Filesystem3 | Repository4 | Dev dependencies |
|---|---|---|---|---|---|---|
| Ruby | Gemfile.lock | - | - | ✅ | ✅ | included |
| gemspec | ✅ | ✅ | - | - | included | |
| Python | Pipfile.lock | - | - | ✅ | ✅ | excluded |
| poetry.lock | - | - | ✅ | ✅ | included | |
| requirements.txt | - | - | ✅ | ✅ | included | |
| egg package5 | ✅ | ✅ | - | - | excluded | |
| wheel package6 | ✅ | ✅ | - | - | excluded | |
| PHP | composer.lock | ✅ | ✅ | ✅ | ✅ | excluded |
| Node.js | package-lock.json | - | - | ✅ | ✅ | excluded |
| yarn.lock | - | - | ✅ | ✅ | included | |
| package.json | ✅ | ✅ | - | - | excluded | |
| .NET | packages.lock.json | ✅ | ✅ | ✅ | ✅ | included |
| Java | JAR/WAR/EAR7 8 | ✅ | ✅ | ✅ | ✅ | included |
| Go | Binaries built by Go9 | ✅ | ✅ | - | - | excluded |
| go.sum | - | - | ✅ | ✅ | included |
The path of these files does not matter.
Example: Dockerfile
-
✅ means "enabled" and
-means "disabled" in the image scanning ↩︎ -
✅ means "enabled" and
-means "disabled" in the rootfs scanning ↩︎ -
✅ means "enabled" and
-means "disabled" in the filesystem scanning ↩︎ -
✅ means "enabled" and
-means "disabled" in the git repository scanning ↩︎ -
*.egg-info,*.egg-info/PKG-INFO,*.eggandEGG-INFO/PKG-INFO↩︎ -
.dist-info/META-DATA↩︎ -
*.jar,*.war, and*.ear↩︎ -
It requires the Internet access ↩︎
-
UPX-compressed binaries don't work ↩︎