> 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-bigquery-dataset-not-configured-with-default-cmek.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP BigQuery Dataset not configured with default CMEK

### Synopsis

| Field               | Value                                                 |
| ------------------- | ----------------------------------------------------- |
| Rule Type           | Detection                                             |
| Finding Type        | GCP BigQuery Dataset not configured with default CMEK |
| Finding ID          | 60000720                                              |
| Generates a Finding | This detection rule also generates a finding          |
| Severity            | Medium                                                |
| Category            | CONFIGURATION                                         |
| Cloud Providers     | GCP                                                   |
| Platform Module     | CSPM                                                  |
| Asset Types         | GOOGLE\_BIGQUERY\_DATASET                             |

### Description

BigQuery datasets lacking default Customer-Managed Encryption Keys (CMEK) pose a significant data security risk. Unencrypted data is vulnerable to unauthorized access and compromise, violating data privacy regulations and potentially leading to data breaches.

The BigQuery service allows for setting a default CMEK for datasets. Without this setting, newly created tables within a dataset may inherit no encryption, leaving sensitive data exposed. Attackers could exploit this misconfiguration to gain unauthorized access to the data, potentially leading to data exfiltration or manipulation.

A successful attack exploiting this misconfiguration could result in significant data loss, regulatory fines, reputational damage, and financial losses. Employing default CMEKs ensures data encryption at rest, providing a critical layer of protection against unauthorized access and mitigating the impact of potential breaches.

To mitigate this risk, configure a default CMEK for all BigQuery datasets. Regularly audit dataset configurations to ensure compliance and promptly address any datasets lacking default CMEK settings. Implement strong access controls to limit who can modify these settings.

### Remediation

To configure default Customer-managed encryption key (CMEK), use following command for "bq" utility bq update --default\_kms\_key= \<DATASET\_ID>

Please refer to URL mentioned below for more details on the bq update command: <https://cloud.google.com/bigquery/docs/reference/bq-cli-reference#bq\\_update>


---

# 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-bigquery-dataset-not-configured-with-default-cmek.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.
