-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positive on ec2_securitygroup_allow_ingress_from_internet_to_any_port #5172
Comments
Hi @dazzag24, thanks for reaching us out! I will try to reproduce the false positive and coming back to you with a solution or asking for more information 😄 Have you tried it in the latest Prowler version? |
Hi @dazzag24, I was able to reproduce your finding. What are you expecting to get? |
Hi, I have tested with Prowler 4.3.6.
returns:
my confusion is that in #2442 there is an identical SG config that was triggering the same issue and it was flagged as a bug and fixed. Furthermore I have 2 identical SGs, one that passes while the other fails: Failing SG:
this is attached to a Network Interface that has the instance owner set to the AWS Account ID. Passing SG:
this is attached to a Network Interface that has the instance owner set to "amazon-elb". Why would one be considered OK while the other triggers a FAIL? Many thanks |
Hi @dazzag24, in this check, Prowler alerts a FAIL if the security group has any open ports and it is attached to a network interface where either the instance owner or the type are not in the configurable variables:
Those variables can be found here. By default, the Network Interface types that are allowed are: What do you think about this logic? However, I am going to document more this check so the logic is more understandable. |
Thanks for the explanation. I have added the org ID to the config. Adding more docs to make this clearer would be much appreciated. |
Hi,
I can see this was fixed in 3.6.0 last year but I'm seeing the same issue in Prowler version 4.3.5.
I have a security group with ports 80 and 443 open for ingress, and all egress traffic is allowed:
which is the same as the one above.
which results in a Prowler finding off:
Originally posted by @dazzag24 in #2442 (comment)
The text was updated successfully, but these errors were encountered: