π‘οΈ Google Project has a default networkπ’
- Contextual name: π‘οΈ Project has a default networkπ’
- ID:
/ce/ca/google/project/project-with-default-network - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- Cloud Conformity: Default VPC Network In Use
Descriptionβ
Descriptionβ
To prevent use of
defaultnetwork, a project should not have adefaultnetwork.Rationaleβ
The
defaultnetwork has a preconfigured network configuration and automatically generates the following insecure firewall rules:β’ default-allow-internal: Allows ingress connections for all protocols and ports among instances in the network.
β’ default-allow-ssh: Allows ingress connections on TCP port 22(SSH) from any source to any instance in the network.
β’ default-allow-rdp: Allows ingress connections on TCP port 3389(RDP) from any source to any instance in the network.
β’ default-allow-icmp: Allows ingress ICMP traffic from any source to any instance in the network.These automatically created firewall rules do not get audit logged by default.
Furthermore, the default network is an auto mode network, which means that its subnets use the same predefined range of IP addresses, and as a result, it's not possible to use Cloud VPN or VPC Network Peering with the default network.
Based on organization security and networking requirements, the organization should create a new network and delete the
defaultnetwork.... see more
Remediationβ
Remediationβ
From Google Cloud Consoleβ
- Go to the
VPC networkspage by visiting: https://console.cloud.google.com/networking/networks/list.- Click the network named
default.- On the network detail page, click
EDIT.- Click
DELETE VPC NETWORK.- If needed, create a new network to replace the default network.
From Google Cloud CLIβ
For each Google Cloud Platform project,
Delete the default network:
gcloud compute networks delete defaultIf needed, create a new network to replace it:
gcloud compute networks create NETWORK_NAME