Concepts / Cloud security

Cloud security

Public cloud storage

Also called public bucket, world-readable bucket, open S3 bucket, object storage exposure

Cloud object storage is private by default; a single `public` flag makes a bucket answer anyone, credentials or not.

One flag decides who a bucket answers
One flag decides who a bucket answers

The same request with no credentials is refused by a private bucket and served every object by a public one. Deleting one file does not close it; making the bucket private does.

Public cloud storage is a bucket that serves its files to anyone, with no credentials. Buckets are private by default; one public setting makes the endpoint answer unsigned requests for every object. Test from outside with no key: aws s3 ls --no-sign-request. The fix is to make the bucket private and turn on account-wide block public access. Deleting the sensitive file is not a fix. See also [[cloud-least-privilege]].

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab