bug(misconf): AVD-AWS-0107 gets triggered for aws_security_group_rule when using a /23 netblock #7267
Closed
2 tasks done
Labels
kind/bug
Categorizes issue or PR as related to a bug.
scan/misconfiguration
Issues relating to misconfiguration scanning
Milestone
Discussed in #7263
Originally posted by kiwimato July 30, 2024
Description
AVD-AWS-0107 is triggered when I use /23 cidr block.
Terraform code:
Desired Behavior
No findings, because a /23 cidr block is far from being public.
However, if I remove
"5.6.7.0/23",
from the list i have no findings.Actual Behavior
I get the finding:
AVD-AWS-0107: An ingress security group rule allows traffic from /0.
Reproduction Steps
1. Run Trivy on the above Terraform code 2. See the critical error in the report.
Target
Filesystem
Scanner
Misconfiguration
Output Format
JSON
Mode
Standalone
Debug Output
It's a bit cumbersome for me to extract the debug logs right now since I also have to redact all the company related information, but I will if really necessary.
Operating System
Ubuntu 22.04
Version
Checklist
trivy clean --all
The text was updated successfully, but these errors were encountered: