Trivy not detecting hard link and soft link files. #5360
Closed
manojkrishnanomula
started this conversation in
Bugs
Replies: 2 comments 1 reply
-
duplicate of #5356 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@manojkrishnanomula First of all, I don't find
Do you mean And I tested hard links.
They are regular files.
Trivy just skips directories and irregular files. Looks like Trivy doesn't skip hard links, but I might be missing something. @manojkrishnanomula Could you explain how hard links are skipped in Trivy? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I installed conda over an alpine base image, whenever conda is installed it copies the hardlinks in the pkgs folder.
When scanned an image with trivy it is not detecting the files which were inside the /pkgs/ folder as they are considered as the hardlinks.
But hardlinks also can be vulnerable so it should detect the files, Attacks can occur from the hardlinks as well
Desired Behavior
Hardlinks should be detected in an image.
Actual Behavior
Hardlinks are not getting detected in the image.
Reproduction Steps
Target
Container Image
Scanner
Vulnerability
Output Format
JSON
Mode
None
Debug Output
Didn't run
Operating System
Ubuntu
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions