For this exercise, we will create a vulnerable EC2 infrastructure comprised of a new VPC, subnet, and an exposed EC2 instance. We will also create a new S3 bucket that is publicly writable and readable.
Setting up a vulnerable AWS infrastructure
A misconfigured EC2 instance
In Chapter 4, Setting Up your First EC2 Instances, we learned how to create new VPCs and subnets. We will start by creating a new VPC and subnet and then launching an EC2 instance with all the ports exposed. You may refer to the steps in Chapter 4, Setting Up your First EC2 Instances to do this:
- Let's start by going to Services | VPC | Your VPCs.
- Click on Create VPC and assign a new IP range:
Creating VPC
Here, we have named the VPC as VulnVPC and...