> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/gcp-default-firewall-rule-is-overly-permissive-except-http-and-https.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP Default Firewall rule is overly permissive (except http and https)

### Synopsis

| Field               | Value                                                                  |
| ------------------- | ---------------------------------------------------------------------- |
| Rule Type           | Detection                                                              |
| Finding Type        | GCP Default Firewall rule is overly permissive (except http and https) |
| Finding ID          | 60000072                                                               |
| Generates a Finding | This detection rule also generates a finding                           |
| Severity            | Medium                                                                 |
| Category            | CONFIGURATION                                                          |
| Cloud Providers     | GCP                                                                    |
| Platform Module     | CSPM                                                                   |
| Asset Types         | GOOGLE\_VPC\_FIREWALL\_RULE                                            |
| ATT\&CK Tactic      | TA0112 (TA0112)                                                        |
| ATT\&CK Technique   | T1600 (T1600)                                                          |

### Description

GCP Default firewall rules overly permissive, allowing unrestricted inbound traffic to resources. This misconfiguration exposes them to potential attacks from untrusted IP ranges, significantly increasing the attack surface.

GCP default firewall rules apply to all resources by default, unless superseded by custom rules. Not adhering to best practices by maintaining these rules exposes resources to unrestricted ingress access. This misconfiguration allows untrusted IP addresses to initiate connections to services, potentially leading to unauthorized access, data exfiltration, or service disruption. Attackers could exploit exposed services, gaining an initial foothold into the environment.

The impact of such a misconfiguration includes unauthorized data access, system compromise, and potential resource abuse. Without granular control, any service exposed on a resources could be targeted and exploited. Adopting a least privilege approach for firewall rules ensures that only necessary traffic reaches specific services, significantly reducing the attack surface and enhancing overall security posture.

To mitigate this risk, remove or modify overly permissive default firewall rules. Implement new, more restrictive ingress firewall rules that explicitly permit only required ports and protocols from trusted IP ranges. Ensure each rule is scoped to the minimum necessary resources and traffic, following the principle of least privilege. Regularly review and update firewall configurations to adapt to changing operational needs.

### Remediation

**Manual steps:**

Google VPC Firewall Rule - Manual remediation steps:

1. Login to GCP Console
2. Navigate to 'VPC network' Under service 'NETWORKING'
3. Click on section 'Firewall' on left panel
4. For the 'default' rule, filter the list by the 'default' name prefix.
5. select all the rules which start with 'default-' (except http, https) and click on 'DELETE' icon
6. On pop-up window, click on 'DELETE'


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/gcp-default-firewall-rule-is-overly-permissive-except-http-and-https.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
