image misconfiguration incorrect reports "You should use COPY instead of ADD" #5961
Closed
candrews
started this conversation in
False Detection
Replies: 2 comments 1 reply
-
I submitted a pull requests at aquasecurity/trivy-checks#60 which (once someone helps me get it right) will fix this issue. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Merged aquasecurity/trivy-checks#60 |
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
-
IDs
AVD-DS-005
Description
Trivy reports "You should use COPY instead of ADD unless you want to extract a tar file. Note that an ADD command will extract a tar file, which adds the risk of Zip-based vulnerabilities. Accordingly, it is advised to use a COPY command, which does not extract tar files." when scanning docker images for which this finding does not apply.
The ds005 findings should not be present.
I think the rule should be updated to ignore
ADD
commands that have exactly 3 parameters, with the first parameter starting withfile:
ormulti:
, and the second parameter is "in"Reproduction Steps
Target
Container Image
Scanner
Vulnerability
Target OS
No response
Debug Output
Version
Checklist
-f json
that shows data sources and confirmed that the security advisory in data sources was correctBeta Was this translation helpful? Give feedback.
All reactions