Google Cloud Storage bucket is public (allUsers)
Granting the allUsers or allAuthenticatedUsers principal on a Cloud Storage bucket makes its objects world-readable. It's an easy way to leak data without realising the grant is public.
Why it matters
Public GCS buckets are enumerated and scraped just like public S3 buckets — backups, exports and credentials have leaked this way.
allAuthenticatedUsers means any Google account, not your organisation — effectively public.
How to check for it
- gsutil iam get gs://<bucket> and look for members allUsers or allAuthenticatedUsers.
- In the console, enable and review 'Public access prevention' and the bucket's permissions.
How to fix it
- Remove the public members: gsutil iam ch -d allUsers gs://<bucket> (and allAuthenticatedUsers).
- Turn on Public access prevention at the org or bucket level so a public grant cannot be added again.
SkyShield checks this automatically
Connect your AWS, Cloudflare, GitHub, GitLab, Hetzner or DigitalOcean account read-only and SkyShield flags this across every account and region, with the fix in plain words — alongside the agent that watches your servers. Start free.
FAQ
- What is Public access prevention?
- An org-policy / bucket setting that blocks any IAM grant to allUsers or allAuthenticatedUsers, so a bucket can't be made public even by mistake.