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

# GCP BigQuery dataset is publicly accessible

### Synopsis

| Field               | Value                                        |
| ------------------- | -------------------------------------------- |
| Rule Type           | Detection                                    |
| Finding Type        | GCP BigQuery dataset is publicly accessible  |
| Finding ID          | 60000427                                     |
| Generates a Finding | This detection rule also generates a finding |
| Severity            | High                                         |
| Category            | CONFIGURATION                                |
| Cloud Providers     | GCP                                          |
| Platform Module     | CSPM                                         |
| Asset Types         | GOOGLE\_BIGQUERY\_DATASET                    |
| ATT\&CK Tactic      | TA0001 (TA0001)                              |
| ATT\&CK Technique   | T1190 (T1190)                                |

### Description

Publicly accessible GCP BigQuery datasets pose a significant data breach risk. Sensitive data within these datasets becomes vulnerable to unauthorized access and exfiltration by malicious actors or accidental exposure to unintended users.

BigQuery's access control settings determine dataset visibility. Allowing 'allUsers' or 'allAuthenticatedUsers' access grants broad read permissions, bypassing intended security controls. Attackers could exploit this misconfiguration to download sensitive data, leading to data breaches, regulatory fines, and reputational damage.

The impact of this misconfiguration includes unauthorized data access, potential data loss, and violations of data privacy regulations. Restricting access to only authorized users and groups is crucial for data protection and compliance. This ensures only legitimate users can access sensitive information.

Remediation involves configuring granular access controls for each BigQuery dataset. Restrict access to specific users or groups using appropriate roles, avoiding 'allUsers' or 'allAuthenticatedUsers'. Regularly audit dataset permissions to identify and remediate any unintended access grants.

### Remediation

**Manual steps:**

Google BigQuery Dataset - Manual remediation steps:

1. Log in to GCP console
2. Navigate to service 'BigQuery'(Left Panel)
3. Under the 'Explorer' section, search for the reported BigQuery dataset and select 'Open' from the kebab menu
4. Click on dropdown 'SHARING' and select 'Permissions'
5. In 'Filter', search for 'allUsers' or 'allAuthenticatedUsers', review each attached role and click the delete icon
6. On the popup 'Remove role from principal?', select the checkbox and click on 'REMOVE'


---

# 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-is-publicly-accessible.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.
