| name | cis-gcp-foundations-7.1 |
| description | Ensure That BigQuery Datasets Are Not Anonymously or Publicly Accessible |
| category | cis-gcp-foundations |
| version | 4.0.0 |
| author | cyberstrike-official |
| tags | ["cis","gcp","bigquery","encryption","cmek"] |
| cis_id | 7.1 |
| cis_benchmark | CIS Google Cloud Platform Foundation Benchmark v4.0.0 |
| tech_stack | ["gcp"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
7.1 Ensure That BigQuery Datasets Are Not Anonymously or Publicly Accessible (Automated)
Profile Applicability
Description
It is recommended that the IAM policy on BigQuery datasets does not allow anonymous and/or public access.
Rationale
Granting permissions to allUsers or allAuthenticatedUsers allows anyone to access the dataset. Such access might not be desirable if sensitive data is being stored in the dataset. Therefore, ensure that anonymous and/or public access to a dataset is not allowed.
Impact
The dataset is not publicly accessible. Explicit modification of IAM privileges would be necessary to make them publicly accessible.
Audit
From Google Cloud Console
- Go to
BigQuery by visiting: https://console.cloud.google.com/bigquery.
- Select a dataset from
Resources.
- Click
SHARING near the right side of the window and select Permissions.
- Validate that none of the attached roles contain
allUsers or allAuthenticatedUsers.
From Google Cloud CLI
List the name of all datasets.
bq ls
Retrieve each dataset details using the following command:
bq show PROJECT_ID:DATASET_NAME
Ensure that allUsers and allAuthenticatedUsers have not been granted access to the dataset.
Remediation
From Google Cloud Console
- Go to
BigQuery by visiting: https://console.cloud.google.com/bigquery.
- Select the dataset from 'Resources'.
- Click
SHARING near the right side of the window and select Permissions.
- Review each attached role.
- Click the delete icon for each member
allUsers or allAuthenticatedUsers. On the popup click Remove.
From Google Cloud CLI
List the name of all datasets.
bq ls