Checks/Aws/Test-Ec2InstancePortRdpExposedToInternet.ps1
|
function Test-Ec2InstancePortRdpExposedToInternet { <# .SYNOPSIS EC2 instance does not allow ingress from the Internet to TCP port 3389 (RDP) .DESCRIPTION **EC2 instances** whose security groups allow Internet-wide inbound **RDP** on `TCP 3389` (`0.0.0.0/0` or `::/0`). The instance's public IP and subnet routing are considered to determine external reachability. .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_instance_port_rdp_exposed_to_internet [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check ec2_instance_port_rdp_exposed_to_internet for reference.', 'N/A', 'ec2 Resources') } |