Lion Cipher Lab

Lock down cloud inbound traffic with security groups

Why it matters

The single most common way a cloud server gets compromised early is a security group left wide open: an inbound rule allowing the whole internet (0.0.0.0/0) to reach SSH (22) or RDP (3389). The internet is scanned continuously, so an admin port open to everyone is found within minutes and hammered with login attempts forever after. A security group is the cloud's built-in firewall for an instance, and getting its inbound rules right — allowing only the traffic that's actually needed, from only the sources that need it — is one of the highest-impact cloud-security habits. It's least privilege…

What you'll learn

Steps in this lab

  1. What a security group is
  2. Read your instance's inbound rules
  3. Find the dangerous rule: admin ports open to the world
  4. Restrict the source to just you
  5. Apply least privilege to every rule
  6. Confirm, and carry the pattern everywhere
  7. Why the network door matters most

Open the full interactive lab →