Terraform Trivy scan not detecting all misconfigurations #6803
nbs-devops
started this conversation in
Bugs
Replies: 1 comment 1 reply
-
|
Hi @nbs-devops ! Many fixes and improvements have been made to Trivy, so the number of detected misconfigurations may vary. You say that unrelated resources affect each other, how did you detect this? Can you give a minimally reproducible example? |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I have a large Terraform configuration that uses a combination of local modules and remote modules in a private git repo. Trivy is able to correctly detect misconfigurations up to a certain point. Then, when additional module calls are added, the number of vulnerabilities decreases, even when there is no link between the new and existing modules.
When I scan my entire configuration with tfsec, it reports 19 misconfigurations. Then when I scan with trivy returns only 2 misconfigurations.
Are there any limitations of Trivy that I could be missing? For example a limit on the number of resources that can be scanned?
Desired Behavior
Trivy reports all expected misconfigurations
Actual Behavior
Trivy does not report all expected misconfigurations
Reproduction Steps
Target
Filesystem
Scanner
Misconfiguration
Output Format
None
Mode
Standalone
Debug Output
Operating System
Windows 11 & Ubuntu 20.04
Version
Checklist
trivy image --resetBeta Was this translation helpful? Give feedback.
All reactions