Lion Cipher Lab

Find and block public EBS snapshots and AMIs (offline, every Region, with a cross-account check)

Why it matters

When people think 'cloud data leak' they think of an open S3 bucket. The quieter version is the disk snapshot. An EBS snapshot is a complete copy of a server's hard drive -- database files, config files with passwords in them, SSH keys, logs. One setting, createVolumePermission Group:"all", lets any of the millions of AWS accounts in the world restore that snapshot into their own account and read every file, and security researchers have repeatedly found thousands of such snapshots sitting public. Machine images (AMIs) have the same switch one layer up. And an attacker who steals a set of…

What you'll learn

Steps in this lab

  1. Snapshots, AMIs and who can use them -- every term, defined once
  2. Why an attacker cares -- and how this differs from the S3 lab
  3. The live-account mapping (optional, your own account only, read-only first)
  4. Seed a two-Region account as saved CLI output
  5. Write the auditor -- public, external, via-AMI, latent
  6. Measure the BEFORE state -- and what the naive grep misses
  7. Write the remediation stand-in
  8. Stage 1 and 2: the gentle switch, then one Region -- 4, 4, then 3
  9. Stage 3: the full fix in every Region -- 0 public (and the real commands)
  10. The honest negative: 0 public, and still 2 snapshots walking out the door
  11. When to use this, when not to, and how a pro does it better
  12. What you built

Open the full interactive lab →