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

# GCP MySQL instance database flag skip\_show\_database is not set to on

### Synopsis

| Field               | Value                                                                  |
| ------------------- | ---------------------------------------------------------------------- |
| Rule Type           | Detection                                                              |
| Finding Type        | GCP MySQL instance database flag skip\_show\_database is not set to on |
| Finding ID          | 60000589                                                               |
| 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                                       |

### Description

Improperly configured MySQL instances in GCP allow unauthorized users to enumerate databases using the `SHOW DATABASES` statement, even without the necessary privileges.

The `skip_show_database` flag in a MySQL instance controls the visibility of database names. When set to `OFF` (the default), users can execute `SHOW DATABASES` to list available databases, potentially revealing sensitive information or targets for further attacks. Failure to enable this flag increases the risk of unauthorized database discovery and subsequent data breaches.

A misconfiguration exposing database names allows attackers to gain reconnaissance information, potentially leading to targeted attacks against specific databases. Enabling `skip_show_database` restricts database enumeration, limiting the scope of potential attacks and protecting sensitive data. This is a crucial security hardening step to improve the overall security posture of your GCP MySQL instances.

To mitigate this, ensure the `skip_show_database` flag is set to `ON` for all GCP MySQL instances. Implement strong access controls and least privilege principles to further restrict unauthorized access to database resources.

### Remediation

1. Log in to GCP console
2. Navigate SQL Instances page
3. Click on reported MYSQL instance
4. Click on 'EDIT'

   NOTE: If the instance is stopped, You need to START instance first to edit the configurations, then Click on EDIT.
5. If the flag has not been set on the instance,

   Under 'Customize your instance', click on 'ADD FLAG' in 'Flags' section, choose the flag 'skip\_show\_database' from the drop-down menu and set the value as 'on'

   OR

   If the flag has been set to off, Under 'Customize your instance', In 'Flags' section choose the flag 'skip\_show\_database' and set the value as 'on', Click on DONE
6. Click on 'DONE' and then 'SAVE' and if popup window appears, select 'SAVE AND RESTART'


---

# 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-mysql-instance-database-flag-skip-show-database-is-not-set-to-on.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.
