> 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-sql-instance-configured-with-overly-permissive-authorized-networks.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP SQL instance configured with overly permissive authorized networks

### Synopsis

| Field               | Value                                                                  |
| ------------------- | ---------------------------------------------------------------------- |
| Rule Type           | Detection                                                              |
| Finding Type        | GCP SQL instance configured with overly permissive authorized networks |
| Finding ID          | 60000073                                                               |
| Generates a Finding | This detection rule also generates a finding                           |
| Severity            | Medium                                                                 |
| Category            | CONFIGURATION                                                          |
| Cloud Providers     | GCP                                                                    |
| Platform Module     | CSPM                                                                   |
| Asset Types         | GOOGLE\_CLOUD\_SQL\_DB\_INSTANCE                                       |
| ATT\&CK Tactic      | TA0112 (TA0112)                                                        |
| ATT\&CK Technique   | T1685 (T1685)                                                          |

### Description

Overly permissive authorized networks on Google Cloud SQL instances allow unauthorized access, potentially leading to data breaches or service disruptions.

Cloud SQL instances utilize authorized networks to restrict access based on IP ranges. A misconfiguration, such as using a broadly defined network like '0.0.0.0/0', exposes the instance to connections from any IP address globally. This significantly increases the attack surface, enabling malicious actors to easily connect and potentially compromise the database.

The impact of this misconfiguration is substantial, ranging from data exfiltration and modification to complete database takeover. Restricting access to only necessary IP addresses or using the Cloud SQL Proxy mitigates this risk. This best practice ensures only authorized clients can access the database, minimizing the risk of unauthorized access and improving overall security posture.

To remediate this, explicitly list specific IP addresses or IP ranges in the authorized networks for each Cloud SQL instance. Consider using the Cloud SQL Proxy for secure connections from your applications, eliminating the need to expose the database publicly. Regularly review and update authorized networks to maintain a strong security posture and reflect current needs.

### Remediation

**Manual steps:**

Google Cloud SQL DB Instance - Manual remediation steps:

1. Login to GCP Portal
2. Navigate to the 'Instances' page on section 'SQL'(Left Panel)
3. Click on the alerted instance name
4. Select the 'Connections' tab on the left panel
5. Inspect for the networks added as Authorized Networks
6. If any public IP is set for 'Authorized networks', review and delete the network by clicking the delete icon on the network
7. Click on 'DONE'.
8. Click on 'SAVE'.


---

# 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-sql-instance-configured-with-overly-permissive-authorized-networks.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.
