Lion Cipher Lab

Restrict access with AWS security groups (your own free-tier EC2 instance)

Why it matters

The moment you put a computer on the internet, the whole internet can try to reach it -- and in the cloud, standing up a server that faces the internet is a few clicks. What stops the world from walking straight into that server is a firewall: a rule set that decides which network traffic is allowed to reach it and which is dropped. In AWS the firewall wrapped around each instance is called a SECURITY GROUP, and misconfiguring it is one of the most common and most exploited mistakes in all of cloud security. The signature version is 'SSH open to the world': the remote-login port left…

What you'll learn

Steps in this lab

  1. Read this first: your own account, free-tier only, terminate when done
  2. What EC2, an instance, and a security group are
  3. What a port, a protocol, CIDR, and 0.0.0.0/0 mean
  4. Sign in to a free-tier AWS account (and secure the root login)
  5. Find your own public IP address (you will need it to lock down)
  6. Launch one tiny free-tier EC2 instance
  7. Look at the over-permissive rule -- SSH open to the world
  8. Lock it down: allow SSH only from your own IP
  9. Verify the lockdown worked
  10. Clean up: terminate the instance and delete the key
  11. Why this one habit makes you a cloud network defender

Open the full interactive lab →