Check provider logo

Firewall rule does not allow ingress from 0.0.0.0/0 to TCP port 3389 (RDP)

compute_firewall_rdp_access_from_the_internet_allowed

Severitycritical
Servicecompute
by Prowler

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).

Run this check with Prowler CLI

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

CLI

gcloud compute firewall-rules delete <FIREWALL_RULE_NAME>

Terraform
Other
  1. In Google Cloud Console, go to Networking > VPC network > Firewall.
  2. Find the ingress rule that allows TCP port 3389 with Source IPv4 ranges set to 0.0.0.0/0.
  3. Select the rule and click Delete, then confirm.

Source Code

Resource Type

compute.googleapis.com/Firewall

References