Replies: 3 comments
-
|
@nikpivkin can you take a look? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hi @candrews ! Thanks for the report. I don't have access to Iron Bank images, but I reproduced this locally. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Track #9485 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Trivy isn't able to scan Iron Bank images correctly.
Trivy appears to be misparsing the directives; I believe Trivy should stop parsing when it encounters a pipe (
|) symbol.For some images (ex
registry1.dso.mil/ironbank/redhat/ubi/ubi9-minimal:9.6), Trivy's image misconfiguration scan reports findings like this:AVD-DS-0011 (CRITICAL): Slash is expected at the end of COPY command argument '|clamp-mtime=1755780386'For other images (ex
registry1.dso.mil/ironbank/opensource/aquasec/trivy:0.66.0), Trivy's image misconfiguration fails entirely with:I do not know exactly how these images were built, and they are not anonymously accessible which makes this issue challenging to reproduce. I am confident that that they are valid as they work fine when run by both
podmananddocker.And I'm confident Aquasecurity can pull these images and perform these tests as they maintain an Iron Bank image for Trivy: https://ironbank.dso.mil/repomap/details;registry1Path=opensource%252Faquasec%252Ftrivy
Desired Behavior
The image misconfiguration scan should work as well for Iron Bank images as it does for other images.
Actual Behavior
The image misconfiguration scan either fails entirely or reports false findings .
Reproduction Steps
1. `trivy image --scanners misconfig --image-config-scanners misconfig registry1.dso.mil/ironbank/redhat/ubi/ubi9-minimal:9.6` or 1. trivy image --scanners misconfig --image-config-scanners misconfig registry1.dso.mil/ironbank/opensource/aquasec/trivy:0.66.0Target
Container Image
Scanner
Misconfiguration
Output Format
None
Mode
Standalone
Debug Output
Operating System
Linux
Version
Checklist
trivy clean --allBeta Was this translation helpful? Give feedback.
All reactions