> 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-alloydb-instance-with-insecure-password-policy.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP AlloyDB Instance with insecure password policy

### Synopsis

| Field               | Value                                              |
| ------------------- | -------------------------------------------------- |
| Rule Type           | Detection                                          |
| Finding Type        | GCP AlloyDB Instance with insecure password policy |
| Finding ID          | 60001540                                           |
| Generates a Finding | This detection rule also generates a finding       |
| Severity            | Medium                                             |
| Category            | CONFIGURATION                                      |
| Cloud Providers     | GCP                                                |
| Platform Module     | CSPM                                               |
| Asset Types         | ALLOYDB\_CLUSTER\_INSTANCE                         |
| ATT\&CK Tactic      | TA0006 (TA0006)                                    |
| ATT\&CK Technique   | T1110 (T1110)                                      |

### Description

Insecure password policies on GCP AlloyDB instances allow unauthorized access. Weak or easily guessable passwords increase the risk of database compromise.

GCP AlloyDB instances utilize password-based authentication. A weak password policy increases the likelihood of brute-force or credential stuffing attacks leading to data breaches and unauthorized modifications. Failure to enforce strong passwords exposes the database to significant security risks.

Compromised AlloyDB instances can result in data exfiltration, service disruption, and financial losses. Enforcing a robust password policy significantly reduces the risk of unauthorized access by requiring complex and regularly updated passwords.

Implement a strong password policy for all AlloyDB instances. Ensure 'password.enforce\_complexity', 'password.enforce\_expiration', and 'password.enforce\_password\_does\_not\_contain\_username' are set to 'on'. 'password.expiration\_in\_days' should be less than 90, 'password.min\_pass\_length' greater than or equal to 10, and 'password.min\_uppercase\_letters' and 'password.min\_numerical\_chars' should be at least 1. Regularly review and update password policies.

### Remediation

**Manual steps:**

AlloyDB Cluster Instance - Manual remediation steps:

1. In the Google Cloud console, go to the AlloyDB Clusters page
2. Click on a cluster that has reported an instance
3. In the 'Overview' page, go to the 'Instances in your cluster' section, select an instance, and then click 'Edit'
4. Navigate to 'ADVANCED CONFIGURATION OPTIONS' section
5. Under 'Flags,' click on 'Add a Database flag', and then select a flag from the 'New database flag'
6. Provide a value for the flag.
7. Click 'Done'.


---

# 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-alloydb-instance-with-insecure-password-policy.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.
