Skip to content
shiporbreak

No streak yet

Sign in

November 9, 2026 路 #54

CloudMediumOpen write-up

The snapshot anyone could restore

To share a database backup with a partner, someone marked an RDS snapshot as Public. The database itself is private. What is the exposure?

Next puzzle in UTC

One try. The first answer sticks.

How to fix it

A public snapshot is restorable by every AWS account. Network rules on the original database do not apply to a copy. Share with the partner's account ID only.

Snapshots live outside your VPC. A restore creates a brand new instance in the restoring account, with its own security groups, and the restorer can set a new master password. Researchers routinely scan for public snapshots and find customer data in them.

Encryption with a customer managed KMS key also blocks this, because RDS does not allow public sharing of encrypted snapshots, and EBS snapshots encrypted with the default key cannot be shared at all.

Fix

aws rds modify-db-snapshot-attribute \
  --db-snapshot-identifier billing-2026-11 \
  --attribute-name restore --values-to-remove all
aws rds modify-db-snapshot-attribute \
  --db-snapshot-identifier billing-2026-11 \
  --attribute-name restore --values-to-add 111122223333

For EBS, enable account-level block public access for snapshots. Add an AWS Config rule to alert on any public snapshot.

Sponsor this spot

Put your tool on the puzzle
One labeled card, in front of engineers who show up every day from YouTube, TikTok, and Instagram.