> 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-server-instance-database-flag-contained-database-authentication-is-enabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP SQL Server instance database flag 'contained database authentication' is enabled

### Synopsis

| Field               | Value                                                                                |
| ------------------- | ------------------------------------------------------------------------------------ |
| Rule Type           | Detection                                                                            |
| Finding Type        | GCP SQL Server instance database flag 'contained database authentication' is enabled |
| Finding ID          | 60000419                                                                             |
| Generates a Finding | This detection rule also generates a finding                                         |
| Severity            | Informational                                                                        |
| 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

Enabling the 'contained database authentication' flag on a Google Cloud Platform (GCP) SQL Server instance presents a significant security risk. This misconfiguration weakens the authentication process, potentially allowing unauthorized access to sensitive data within the database.

The 'contained database authentication' flag allows authentication to occur within the database itself, bypassing the instance-level authentication. This means attackers who compromise a database user account can potentially access other databases on the same instance without requiring separate credentials. Successful exploitation could lead to data breaches and unauthorized data modification or exfiltration.

A successful attack exploiting this misconfiguration could result in a complete compromise of the GCP SQL Server instance, leading to data loss, regulatory non-compliance, and reputational damage. Disabling this flag enforces a stronger security posture by requiring authentication at the instance level, adding a critical layer of protection.

To mitigate this risk, immediately disable the 'contained database authentication' flag for all GCP SQL Server instances. Implement robust access controls, regularly review and update user permissions, and monitor for any suspicious database activity. Regular security assessments and penetration testing can help identify and address further misconfigurations.

### Remediation

**Manual steps:**

Google Cloud SQL DB Instance - Manual remediation steps:

1. Login to GCP Console
2. Navigate to SQL
3. Click on SQL Server instance for which you want to disable the database flag from the list
4. Click 'Edit'
5. Go to 'Flags and Parameters' under 'Configuration options' section
6. Search for the flag 'contained database authentication' and set the value 'off'
7. 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-server-instance-database-flag-contained-database-authentication-is-enabled.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.
