VPC
Security Group vs Network ACL
Feature / Behavior
Security Group
Network ACL
Enumeration
1) Enumerate VPC endpoints
aws ec2 describe-vpc-endpoints2) Enumerate VPCs
aws ec2 describe-vpcsData Exfiltration
1) Allocate a new public IP Address to the EC2 Instance in the account
2) Find the ENI (network interface) for the target machine.
3) Attach the public IP to the ENI of the target machine, by associating the AllocationId with the NetworkInterfaceId
4) Get the IGW ID
5) Get the route table ID (the one that is for the private network)
6) Add the route to the route table
7) Verify that you have added the route
8) Find the group ID of a security group that might block access
9) Create a security group rule to allow traffic from anywhere
10) Find the NACL ID of our target NACL
11) Create an ingress rule in NACL
12) Create an egress rule in NACL
13) Verify with ping
Last updated