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

# GCP BigQuery Table not encrypted with CMEK

### Synopsis

| Field               | Value                                        |
| ------------------- | -------------------------------------------- |
| Rule Type           | Detection                                    |
| Finding Type        | GCP BigQuery Table not encrypted with CMEK   |
| Finding ID          | 60001480                                     |
| Generates a Finding | This detection rule also generates a finding |
| Severity            | Medium                                       |
| Category            | CONFIGURATION                                |
| Cloud Providers     | GCP                                          |
| Platform Module     | CSPM                                         |
| Asset Types         | GOOGLE\_BIGQUERY\_TABLE                      |
| ATT\&CK Tactic      | TA0040 (TA0040)                              |
| ATT\&CK Technique   | T1486 (T1486)                                |

### Description

GCP BigQuery tables lacking Customer Managed Encryption Keys (CMEK) pose a significant data security risk.

BigQuery's encryption at rest feature, using CMEK, protects sensitive data stored in tables. Without CMEK, data is encrypted with Google-managed keys, reducing organizational control over encryption key management. This misconfiguration exposes sensitive data to unauthorized access if Google's infrastructure is compromised. Attackers could potentially gain access to sensitive business information, violating privacy regulations and causing reputational damage.

The impact of this misconfiguration includes data breaches leading to regulatory fines, loss of customer trust, and potential legal liabilities. Employing CMEK provides granular control over encryption keys, facilitating key rotation and revocation, thereby minimizing the risk of data exposure following a key compromise. It also strengthens compliance posture with data protection regulations.

To mitigate this risk, encrypt all BigQuery tables with CMEK. Regularly rotate CMEK keys to further enhance security. Implement strong access controls for CMEK key management, limiting access to authorized personnel only. Regularly audit BigQuery table encryption settings to identify and remediate any misconfigurations.

### Remediation

**Manual steps:**

Google BigQuery Table - Manual remediation steps:

To configure a Customer-managed encryption key (CMEK) for BigQuery Table, use following command for "bq" utility

```
bq cp -f --destination_kms_key <CMEK> <DATASET_ID.TABLE_ID DATASET_ID.TABLE_ID>
```

Please refer to URL mentioned below for more details on how to change table from default encryption to CMEK encryption:

<https://cloud.google.com/bigquery/docs/customer-managed-encryption#change\\_to\\_kms>

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\\_cp>


---

# 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-table-not-encrypted-with-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.
