> 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-with-public-ip-address-does-not-have-authorized-network-configured.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP SQL Instance with public IP address does not have authorized network configured

### Synopsis

| Field               | Value                                                                               |
| ------------------- | ----------------------------------------------------------------------------------- |
| Rule Type           | Detection                                                                           |
| Finding Type        | GCP SQL Instance with public IP address does not have authorized network configured |
| Finding ID          | 60000858                                                                            |
| 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

Publicly accessible Google Cloud SQL instances lacking authorized networks pose a significant security risk. Unauthorized connections can compromise sensitive data stored within the database.

Cloud SQL instances with public IP addresses should always have authorized networks configured. Without this, any entity can connect to the database, bypassing security controls and potentially leading to data breaches, unauthorized modifications, or denial-of-service attacks. This misconfiguration exposes the database to untrusted IPs.

The impact of this misconfiguration includes data exfiltration, database manipulation, and service disruption. Restricting access to authorized networks only minimizes the attack surface and ensures only trusted clients can connect to the database.

To mitigate this risk, configure authorized networks for all Cloud SQL instances with public IP addresses. Alternatively, use the Cloud SQL Proxy for secure connections, eliminating the need for public IP access altogether. Regularly review and update authorized networks to reflect current security needs.

### Remediation

**Manual steps:**

Google Cloud SQL DB Instance - Manual remediation steps:

If public IP is not needed for the SQL instance, it is recommeded to remove the Public IP from the instance. Any changes to the public IP should be made according to the organization needs and policies.

To remove the public IP for from a SQL instance, please refer to the URLs given below:

For MySQL: <https://cloud.google.com/sql/docs/mysql/configure-ip#disable-public>

For PostgreSQL: <https://cloud.google.com/sql/docs/postgres/configure-ip#disable-public>

For SQL Server: <https://cloud.google.com/sql/docs/sqlserver/configure-ip#disable-public>

If it is deemed that instance needs public IP, it is recommended to add restrictive Authorized Networks to limit allowed public connections to the instance.

To configure authorized networks for a SQL instance, please refer to the URLs given below:

For MySQL: <https://cloud.google.com/sql/docs/mysql/authorize-networks>

For PostgreSQL: <https://cloud.google.com/sql/docs/postgres/authorize-networks>

For SQL Server: <https://cloud.google.com/sql/docs/sqlserver/authorize-networks>


---

# 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-with-public-ip-address-does-not-have-authorized-network-configured.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.
