Lion Cipher Lab

Find and lock down public RDS snapshots

Why it matters

An Amazon RDS snapshot is a complete copy of a database -- every table and every row, including whatever PII, credentials, or payment data lived in it. RDS lets you make a snapshot public with one attribute, `restore` = `all`, so that any of the millions of AWS accounts in the world can restore it into their own account and read the whole database. This is not theoretical: security researchers have repeatedly scanned the public RDS snapshot space and found live databases exposed this way, and because a snapshot is restored inside AWS rather than downloaded over the internet, the theft can…

What you'll learn

Steps in this lab

  1. RDS snapshots and who can restore them -- every term, defined once
  2. Why an attacker cares -- the encryption twist, and how this differs from the EBS lab
  3. The live-account mapping (optional, your own account only, read-only first)
  4. Seed the account as saved CLI output
  5. Write the auditor -- public, cross-account, allowlisted, private + blast radius
  6. Measure the BEFORE state -- and what the naive grep misses
  7. Flip restore off -- the remediation stand-in, and 0 public
  8. The preventive guardrail -- detective is not enough
  9. Honest limitations -- what the audit does not and cannot do
  10. When to use this, when not, and how a pro does it better
  11. What you built

Open the full interactive lab →