False positieve from incorrect terraform parsing for AVD-AWS-0107 #4787
denisovval
started this conversation in
False Detection
Replies: 1 comment 3 replies
-
@nikpivkin could you take a look at it? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
IDs
AVD-AWS-0107
Description
Trivy incorrectly detects avd-aws-0107 in clean TF code. TFSEC reports the same issue.
we use a shared module with the following security group definition:
This module is used with parameters:
and it produces errors:
Even though cidr_blocks are defined.
If we scan dbs.tf directly via trivy - no errors.
This should not be reported as SG has additional cidr_blocks defined and they are not null
Reproduction Steps
1. Scan top-level code via trivy config --severity CRITICAL 2. get an error in the child module
Target
Filesystem
Scanner
Misconfiguration
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