Vulnerability Discovery and Analysis
A tester must scan one container image for vulnerable OS packages and for hardcoded secrets in its layers, using a single tool. Which tool should the tester use?
Show the answer
Correct answerA. Trivy
AWhy this is right: Trivy reports package vulnerabilities and embedded secrets from the same image scan.
BWhy not this: Grype finds vulnerable packages in images but has no secret detection, so it misses the hardcoded credentials.
CWhy not this: TruffleHog finds secrets but does not match packages against vulnerability data.
DWhy not this: Kube-hunter probes a running Kubernetes cluster and does not inspect the contents of an image.
Trivy scans images for vulnerable OS and language packages and can also detect secrets and misconfigurations in the same run. Grype matches packages against vulnerability data but does not look for secrets, so it covers only half the requirement.