More Info:

Lists all the network interfaces resources from those instances that have default VPC in use.

Risk Level

Low

Address

Security

Compliance Standards

CISGCP

Triage and Remediation

Remediation

Here are the step by step instructions to remediate the “Interfaces With Default VPC” misconfiguration in GCP using GCP console:

  1. Open the GCP console and navigate to the VPC network page.
  2. Select the default VPC network from the list of VPC networks.
  3. Click on the “Edit” button at the top of the page.
  4. Scroll down to the “Subnets” section and click on “Edit” next to the default subnet.
  5. In the “Secondary IP ranges” section, click on “Add IP range”.
  6. Enter a new IP range that does not overlap with the existing IP range of the default subnet.
  7. Click “Save” to save the changes.
  8. Repeat steps 4-7 for any additional subnets in the default VPC network.
  9. Once all subnets have been updated, click on the “Save” button at the bottom of the page to save the changes.

By following these steps, you have remediated the “Interfaces With Default VPC” misconfiguration in GCP by adding secondary IP ranges to the default subnets. This will prevent instances from being created with public IP addresses and ensure that all traffic is routed through the internal network.

Additional Reading: