Interview Prep/DevSecOps/Tool Internals and Comparisons

Which scan targets and scanners does Trivy support?

IntermediateConceptTool Internals and Comparisons
Answer

Targets: image, fs, repo, rootfs, config (IaC only), k8s (live cluster), sbom, and vm. Scanners, selected with --scanners: vuln, misconfig, secret, license.

trivy fs --scanners vuln,secret,misconfig .
trivy config --severity HIGH,CRITICAL ./terraform
trivy image --format cyclonedx --output sbom.json app:1.4.2
trivy sbom sbom.json
trivy k8s --report summary cluster

--exit-code 1 --severity CRITICAL --ignore-unfixed is the usual CI gate. tfsec's checks now live in Trivy's misconfiguration scanner.

All DevSecOps questions

More on Tool Internals and Comparisons