For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

GCP project is using the default network misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_GCP_27

Category - Subcategory

Public Exposure - VPC VCN VNet

Provider

GCP

Severity

MEDIUM

Framework

Terraform, Terraform Plan

Mapped CSPM/KSPM Rule

8e8236e9-8e8f-4ab0-a953-9f68f6cf602d

Impact

The auto_create_network setting in a Google Cloud Project controls whether a default network is automatically created for the project. Having a default network in place can pose security risks as it may not conform to the organization's custom networking and security requirements. To improve the security posture of your Google Cloud environment, it's recommended to disable the automatic creation of a default network. This allows for the manual setup of a network that aligns with specific security policies and configurations.

How to Fix

Resource: google_project

  • Argument: auto_create_network

By setting auto_create_network to false, you ensure that no default network is created, enabling more granular control over the networking environment of your Google Cloud Project. [source,go]

resource "google_project" "your_project" { name = "Your Project Name" project_id = "your-project-id" org_id = "your-org-id" billing_account = "your-billing-account-id"

  • auto_create_network = false }


Last updated

Was this helpful?