π 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
- Located in: π Google Storage
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
Similar Policiesβ
- Cloud Conformity
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
It is recommended that IAM policy on Cloud Storage bucket does not allows 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 any sensitive data. Hence, 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 browser
by visiting https://console.cloud.google.com/storage/browser.- Click on each bucket name to go to its
Bucket details
page.- Click on the
Permissions
tab.- Ensure that
allUsers
andallAuthenticatedUsers
are not in theMembers
list.From Google Cloud CLIβ
List all buckets in a project
gsutil ls
Check the IAM Policy for each bucket:
gsutil iam get gs://BUCKET_NAME
No role should contain
allUsers
and/orallAuthenticatedUsers
as a member.Using Rest APIβ
... see more
Remediationβ
Remediationβ
From Google Cloud Consoleβ
- Go to
Storage browser
by visiting https://console.cloud.google.com/storage/browser.- Click on the bucket name to go to its
Bucket details
page.- Click on the
Permissions
tab.- Click
Delete
button in front ofallUsers
andallAuthenticatedUsers
to remove that particular role assignment.From Google Cloud CLIβ
Remove
allUsers
andallAuthenticatedUsers
access.gsutil iam ch -d allUsers gs://BUCKET_NAME
gsutil iam ch -d allAuthenticatedUsers gs://BUCKET_NAME
policy.yamlβ
Linked Framework Sectionsβ
Section | Sub Sections | Internal Rules | Policies | Flags |
---|---|---|---|---|
πΌ CIS GCP v3.0.0 β πΌ 5.1 Ensure That Cloud Storage Bucket Is Not Anonymously or Publicly Accessible - Level 1 (Automated) | 1 | |||
πΌ Cloudaware Framework β πΌ Public and Anonymous Access | 24 |