π‘οΈ Google BigQuery Dataset is anonymously or publicly accessibleπ’
- Contextual name: π‘οΈ Dataset is anonymously or publicly accessibleπ’
- ID:
/ce/ca/google/big-query/dataset-anonymously-or-publicly-accessible - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- Cloud Conformity: Check for Publicly Accessible BigQuery Datasets
Descriptionβ
Descriptionβ
It is recommended that the IAM policy on BigQuery datasets does not allow anonymous and/or public access.
Rationaleβ
Granting permissions to
allUsersorallAuthenticatedUsersallows 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
BigQueryby visiting: https://console.cloud.google.com/bigquery.- Select a dataset from
Resources.- Click
SHARINGnear the right side of the window and selectPermissions.- Validate that none of the attached roles contain
allUsersorallAuthenticatedUsers.From Google Cloud CLIβ
List the name of all datasets.
bq lsRetrieve each dataset details using the following command:
bq show PROJECT_ID:DATASET_NAME... see more
Remediationβ
Remediationβ
From Google Cloud Consoleβ
- Go to
BigQueryby visiting: https://console.cloud.google.com/bigquery.- Select the dataset from
Resources.- Click
SHARINGnear the right side of the window and selectPermissions.- Review each attached role.
- Click the delete icon for each member
allUsersorallAuthenticatedUsers. On the popup clickRemove.From Google Cloud CLIβ
List the name of all datasets.
bq lsRetrieve the data set details:
bq show --format=prettyjson PROJECT_ID:DATASET_NAME > PATH_TO_FILEIn the access section of the JSON file, update the dataset information to remove all roles containing
allUsersorallAuthenticatedUsers.Update the dataset:
bq update --source PATH_TO_FILE PROJECT_ID:DATASET_NAME