π‘οΈ Google Storage Bucket is anonymously or publicly accessibleπ’
- Contextual name: π‘οΈ Bucket is anonymously or publicly accessibleπ’
- ID:
/ce/ca/google/storage/storage-bucket-public-access - 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 Cloud Storage Buckets
Descriptionβ
Descriptionβ
It is recommended that the IAM policy on a Cloud Storage bucket does not allow anonymous or public access.
Rationaleβ
Allowing anonymous or public access grants permissions to anyone to access bucket content. Such access might not be desired if you are storing sensitive data. Ensure that anonymous or public access to a bucket is not allowed.
Impactβ
No storage buckets would be publicly accessible. You would have to explicitly administer bucket access.
Auditβ
From Google Cloud Consoleβ
- Go to
Storage browserby visiting https://console.cloud.google.com/storage/browser.- Click on each bucket name to go to its
Bucket detailspage.- Click on the
Permissionstab.- Ensure that
allUsersandallAuthenticatedUsersare not in theMemberslist.From Google Cloud CLIβ
List all buckets in a project:
gsutil lsCheck the IAM policy for each bucket:
gsutil iam get gs://{{bucket-name}}No role should contain
allUsersand/orallAuthenticatedUsersas a member.... see more
Remediationβ
Remediationβ
From Google Cloud Consoleβ
- Go to
Storage browserby visiting https://console.cloud.google.com/storage/browser.- Click on the bucket name to go to its
Bucket detailspage.- Click on the
Permissionstab.- Click
Deletein front ofallUsersandallAuthenticatedUsersto remove those role assignments.From Google Cloud CLIβ
Remove
allUsersandallAuthenticatedUsersaccess.gsutil iam ch -d allUsers gs://{{bucket-name}}
gsutil iam ch -d allAuthenticatedUsers gs://{{bucket-name}}