Checks/Aws/Test-Ec2InstancePortTelnetExposedToInternet.ps1
|
function Test-Ec2InstancePortTelnetExposedToInternet { <# .SYNOPSIS EC2 instance does not allow ingress from the Internet to TCP port 23 (Telnet) .DESCRIPTION EC2 instances with security groups allowing inbound **Telnet** on `TCP 23` from the Internet are identified, including open IPv4/IPv6 sources like `0.0.0.0/0` and `::/0`. Exposure is evaluated considering public IP assignment and subnet 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_telnet_exposed_to_internet [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check ec2_instance_port_telnet_exposed_to_internet for reference.', 'N/A', 'ec2 Resources') } |