Ensure there are no anonymously and/or publicly accessible BigQuery datasets available within your Google Cloud Platform (GCP) account. Google Cloud BigQuery datasets have Identity and Access Management (IAM) policies configured to determine who can have access to these resources. To refuse access from anonymous and public users, remove the bindings for "allUsers" and "allAuthenticatedUsers" members from the IAM policy associated with your datasets. The "allUsers" is a special member identifier that represents any user on the Internet, including authenticated and unauthenticated users, whereas the "allAuthenticatedUsers" is an identifier that represents any user or service account that can sign in to Google Cloud Platform (GCP) with a Google account.
This rule resolution is part of the Conformity Security & Compliance tool for GCP.
BigQuery is a serverless, highly-scalable, and cost-efficient Google Cloud data warehouse service. BigQuery datasets are top-level containers that are used to organize and control access to your data tables and views. Granting permissions to "allUsers" and "allAuthenticatedUsers" members can allow anyone to access your datasets. To prevent sensitive data leaks and data loss, ensure that anonymous and/or public access to your Google Cloud BigQuery datasets is not allowed.
Audit
To determine if there are any publicly accessible BigQuery datasets available within your Google Cloud account, perform the following actions:
Remediation / Resolution
To remove all "allUsers" and/or "allAuthenticatedUsers" member bindings from the dataset ACLs in order to restrict anonymous and/or public access to your Google Cloud BigQuery datasets, perform the following actions:
References
- Google Cloud Platform (GCP) Documentation
- BigQuery
- Introduction to datasets
- Controlling access to datasets
- Using resource hierarchy for access control
- CIS Security Documentation
- Securing Google Cloud Computing Platform
- GCP Command Line Interface (CLI) Documentation
- gcloud projects list
- BQ Command Line Interface (CLI) Documentation
- Using the bq command-line tool
- Listing datasets
- Getting information about datasets
- Updating dataset properties