Check ID:
Provider: GCP
Service:
Severity: HIGH
Categories:
Resource type:
compute_instance_public_ipProvider: GCP
Service:
computeSeverity: HIGH
Categories:
internet-exposedResource type:
compute.googleapis.com/InstanceWhat this check verifies
Compute Engine VM instances with an assigned external (public) IP address on any network interface are identified. Instances without an external IP are considered internal-only.Risk
Internet-exposed VMs face automated scanning, brute force, and remote exploit attempts. Compromise can enable data exfiltration, service account abuse, and lateral movement within the VPC, while public endpoints invite DDoS, degrading availability.Recommendation
Adopt private-only VMs and remove external IPs.- Place workloads behind load balancers or reverse proxies
- Use Cloud NAT for egress; admin access via IAP, VPN, or a hardened bastion
- Apply least privilege firewall rules and network segmentation for defense in depth
Remediation
- CLI
- Terraform
- Dashboard steps
References
Where this check fires
This check runs on every scheduled scan against your GCP account. Findings appear at Cloud Security → Findings filterable byCheck ID = compute_instance_public_ip. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to GCP checks