VPC firewall rules permitting inbound RDP (TCP 3389) from 0.0.0.0/0 are flagged, including ingress rules that allow all TCP ports or all protocols
Risk
Exposed RDP enables Internet-wide scanning and brute force. Exploits can yield remote code execution, followed by lateral movement and data theft.
This endangers confidentiality, integrity, and availability (e.g., ransomware, service disruption).
prowler gcp --checks compute_firewall_rdp_access_from_the_internet_allowed
Recommendation
Restrict RDP to trusted IP ranges or a hardened bastion/IAP proxy; prefer private access with no public IPs. Apply least privilege and network segmentation, use just-in-time access and strong authentication, and monitor logs. Aim for defense in depth to minimize exposure.
Remediation
gcloud compute firewall-rules delete <FIREWALL_RULE_NAME>
- In Google Cloud Console, go to Networking > VPC network > Firewall.
- Find the ingress rule that allows TCP port 3389 with Source IPv4 ranges set to 0.0.0.0/0.
- Select the rule and click Delete, then confirm.
Source Code
Resource Type
compute.googleapis.com/Firewall