Misconfiguration Scanning of Container Images Unclear #5972
Closed
AnaisUrlichs
started this conversation in
Bugs
Replies: 1 comment 9 replies
-
We moved to BTW,
You can build your own image with misconfiguration.
|
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
In the documentation: https://aquasecurity.github.io/trivy/v0.48/docs/target/container_image/#misconfigurations_1
We state that "The image config is converted into Dockerfile and Trivy handles it as Dockerfile"
However, the command provided is slightlighty wrong:
Command in the docs:
$ trivy image --image-config-scanners config [YOUR_IMAGE_NAME]
But that throws the following error:
2024-01-19T08:39:36.516Z FATAL invalid argument "config" for "--image-config-scanners" flag: must be one of ["misconfig" "secret"]
First issue:
Using
misconfig
instead ofconfig
works but does not make much sense from a user experience perspective because we useconfig
for all misconfiguration scanning.Second issue:
I tried to scan different container images but am never shown any misconfiguration incl. the container image that has been used in the docs:
trivy image --image-config-scanners misconfig alpine:3.17
Am I missing something?
Desired Behavior
I would
1st like to use the
--image-config-scanners config
instead of--image-config-scanners misconfig
2nd I would like to see the misconfiguration of my container image
Actual Behavior
I don't see it
Reproduction Steps
Target
Container Image
Scanner
Misconfiguration
Output Format
Table
Mode
Standalone
Debug Output
Operating System
macOS
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions