> 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-instances-do-not-have-valid-ssl-configuration.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP SQL Instances do not have valid SSL configuration

### Synopsis

| Field               | Value                                                 |
| ------------------- | ----------------------------------------------------- |
| Rule Type           | Detection                                             |
| Finding Type        | GCP SQL Instances do not have valid SSL configuration |
| Finding ID          | 60000074                                              |
| 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   | T1600 (T1600)                                         |

### Description

Cloud SQL instances lacking valid SSL configurations are vulnerable to data breaches. Unencrypted connections allow attackers to intercept sensitive data transmitted to and from the database.

The Cloud SQL service offers SSL/TLS encryption for secure communication. Disabling or misconfiguring SSL exposes the database to man-in-the-middle attacks, data breaches, and unauthorized access. Attackers can eavesdrop on network traffic, potentially stealing credentials or sensitive data.

Compromised data can lead to significant financial losses, regulatory fines, and reputational damage. Enforcing SSL encryption ensures data confidentiality and integrity, protecting against various threats. This best practice safeguards sensitive data in transit.

Implement and enforce a policy requiring all Cloud SQL instances to use valid SSL certificates. Regularly renew certificates before expiration. Monitor for instances without SSL enabled and remediate immediately.

### Remediation

**Manual steps:**

Google Cloud SQL DB Instance - Manual remediation steps:

To configure SQL instance with SSL configuration,follow the steps mentioned below:

1. Log in to google cloud console
2. Navigate to 'Cloud SQL Instances'
3. Click on the alerted instance and navigate to 'Security' under 'Connections' tab
4. Select one of the following under 'Manage SSL mode':
   1. Allow only SSL connections
   2. Require trusted client certificates

To verify the validity of the current certificate, follow the steps mentioned below:

1. Log in to google cloud console
2. Navigate to 'Cloud SQL Instances'
3. Click on the alerted instance and navigate to 'Security' under 'Connections' tab
4. Verify the expiration date of your server certificate under 'Manage server CA certificates' table

To create a new client certificate, follow the URL mentioned: <https://cloud.google.com/sql/docs/mysql/configure-ssl-instance#client-certs>


---

# 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-instances-do-not-have-valid-ssl-configuration.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.
