Checks/Aws/Test-Ec2SecuritygroupAllowIngressFromInternetToTcpPortMysql3306.ps1
|
function Test-Ec2SecuritygroupAllowIngressFromInternetToTcpPortMysql3306 { <# .SYNOPSIS Security group does not allow ingress from 0.0.0.0/0 or ::/0 to MySQL port 3306 .DESCRIPTION **EC2 security groups** are assessed for **inbound exposure** of **MySQL** on `TCP 3306` from `0.0.0.0/0` or `::/0`. The finding reflects whether this port is reachable from any IPv4 or IPv6 address. .PARAMETER Check CIEMCheck object containing check metadata. #> [CmdletBinding()] [OutputType([PSCustomObject[]])] param( [Parameter(Mandatory)] [CIEMCheck]$Check ) $ErrorActionPreference = 'Stop' # TODO: Implement check logic based on Prowler check: ec2_securitygroup_allow_ingress_from_internet_to_tcp_port_mysql_3306 [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check ec2_securitygroup_allow_ingress_from_internet_to_tcp_port_mysql_3306 for reference.', 'N/A', 'ec2 Resources') } |