Check ID:
Provider: GCP
Service:
Severity: MEDIUM
Categories:
Resource type:
compute_network_not_legacyProvider: GCP
Service:
computeSeverity: MEDIUM
Categories:
trust-boundariesResource type:
compute.googleapis.com/NetworkWhat this check verifies
Google Cloud networks are evaluated for legacy mode (subnet_mode: legacy). The finding highlights networks using the older, non-subnetted design instead of VPC with regional subnets.
Risk
Legacy networks lack subnets, peering, and private access. This reduces isolation and forces public IP paths, weakening confidentiality and enabling lateral movement/data exfiltration. Coarse controls and routing limits threaten integrity. A single global range and gateway create contention that can degrade availability.Recommendation
Decommission legacy networks. Migrate to custom-mode VPCs with regional subnets and granular firewall policies. Apply least privilege segmentation, enable private access and Cloud NAT to avoid public exposure, and use peering or private connectivity for dependencies. Plan and test migration to limit downtime.Remediation
- CLI
- Dashboard steps
gcloud beta compute networks update <LEGACY_NETWORK_NAME> —switch-to-custom-subnet-mode
References
- https://www.trendmicro.com/trendaivisiononecloudriskmanagement/knowledge-base/gcp/CloudVPC/legacy-vpc-in-use.html
- https://www.trendmicro.com/trendaivisiononecloudriskmanagement/knowledge-base/gcp/CloudVPC/legacy-vpc-in-use.html#
- https://cloud.google.com/vpc/docs/using-legacy#deleting_a_legacy_network
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_network_not_legacy. 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