Core Agenda

  1. AWS EC2 architecture from an attacker's perspective, with emphasis on the Instance Metadata Service (IMDS).
  2. Setting up a simple EC2 test environment.
  3. Common EC2 misconfigurations, including network exposure issues and insecure IMDS settings.
  4. Cleaning up AWS resources after completing the exercises.

AWS EC2 Overview (From an Attacker's Point of View)

From a simplified offensive security viewpoint, several key components influence how EC2 instances can be attacked:

Deep Dive into IMDS (Instance Metadata Service)

AWS IMDS is a critical service that helps applications running on an EC2 instance obtain instance-specific information and credentials.

But if misconfigured, it becomes a high-value target for attackers.

A. Key Characteristics of IMDS