Step-by-Step Guide: Forensic Process in AWS (Challenge)
This guide details the technical steps to complete the challenge using the AWS console (Learner Lab).
0views
This guide details the technical steps to complete the challenge using the AWS console (Learner Lab).
Step 0: Access and Initial Configuration
Sección titulada «Paso 0: Acceso y Configuración Inicial»- We will access AWS Academy -> Learner Lab -> Start Lab.
- We will wait for the wheel to turn green and click on AWS (green dot) to open the console.
- We will ensure we are in the us-east-1 (N. Virginia) region in the top right corner.
Step 1: Prepare the Environment (Instance Creation)
Sección titulada «Paso 1: Preparar el Entorno (Creación de Instancias)»1.1 Create “Forensic Workstation” (Forensic Workstation)
Sección titulada «1.1 Crear “Estación Forense” (Forensic Workstation)»Recommendation: We will use Linux to easily have tools like dd, dc3dd, hashdeep.
- We will go to EC2 -> Launch Instances.
- Name:
Estacion-Forense. - OS Image: Amazon Linux 2023 or Ubuntu.
- Instance Type:
t2.micro(free tier). - Key Pair: We will create a new one (for example,
vkey.pem) and download it. - Network Configuration:
- Subnet: IMPORTANT. We will choose
us-east-1a(or whichever we want, but we will remember it for the victim). - Security Group: We will create a new group (
SG-Forense) allowing SSH (port 22) fromMi IP.
- Subnet: IMPORTANT. We will choose
- Launch Instance.
1.2 Create "Victim" (Compromised Machine)
Sección titulada «1.2 Crear “Víctima” (Equipo Comprometido)»According to the prompt, it must be Windows.
- Launch Instances.
- Name:
Victima-Windows. - OS Image: Microsoft Windows Server (Base).
- Instance Type:
t2.micro. - Key Pair: The same as before (
vkey.pem). - Network Configuration:
- Subnet: THE SAME as the Forensic Station (for example,
us-east-1a). - Security Group: We will create a new group (
SG-Victima) allowing RDP (port 3389) fromAnywhere(to simulate it is vulnerable) orMi IP.
- Subnet: THE SAME as the Forensic Station (for example,
- Launch Instance.
1.3 Create Tools Volume (The "USB Drive")
Sección titulada «1.3 Crear Volumen de Herramientas (El “Pendrive”)»- In the left EC2 menu -> Volumes -> Create Volume.
- Size: 10 GB (enough for tools).
- Availability Zone: The same as the instances (for example,
us-east-1a). - Label: Key=
Nombre, Value=herramientas-forenses. - Create.
Step 2: Forensics Preparation (Preparation)
Sección titulada «Paso 2: Preparación para la Forensia (Preparación)»- Connect the tool volume to the Forensic Station:
- We will select the volume
herramientas-forenses-> Actions -> Attach Volume -> We will chooseEstacion-Forense.
- We will select the volume
- Enter the Forensic Station (SSH):
- We will format and mount the volume. We will download tools (even though it is a Linux, we can download
FTK Imager PortableorBelkasoft RAM Capturerfor Windows and save them on this volume for when we connect it to the victim). - Note: If this is too complex for the lab time, we can skip the formatting step and simply download the tools directly from the victim Windows machine, but the “purist” procedure is to carry them on an external volume.
- We will format and mount the volume. We will download tools (even though it is a Linux, we can download
- Disconnect volume:
- We will unmount within the OS -> AWS Console -> Detach Volume.
Step 3: Incident Simulation
Sección titulada «Paso 3: Simulación del Incidente»- We will connect to the
Victima-Windowsvia RDP (We will need “Get Password” using the.pemfile). - We will change the wallpaper (“Hacked!”).
- We will create a text file on the desktop with “sensitive” data.
Step 4: Incident Response (Isolation and Acquisition)
Sección titulada «Paso 4: Respuesta al Incidente (Aislamiento y Adquisición)»4.1 RAM Acquisition (Volatile)
Sección titulada «4.1 Adquisición de RAM (Volátil)»- In the AWS console: We will connect the volume
eines-forensestoVictima-Windows. - Inside Windows (RDP):
- We will open “Disk Management”, set the disk to “Online”, and assign a drive letter (for example, E:).
- We will run the RAM capture tool (for example, FTK Imager Portable or DumpIt) from drive E:.
- We will save the file
.memto drive E: (the external volume). - Important: This will slightly alter the RAM, but it is necessary in cloud environments if we do not have Live Response tools available.
4.2 Isolation (Containment)
Sección titulada «4.2 Aislamiento (Contención)»- We will go to EC2 -> Instances ->
Victima-Windows. - Actions -> Security -> Change security groups.
- We will delete the current group and add a new group (
SG-Aillat) that only allows RDP (3389) from our IP (My IP), blocking all other inbound/outbound traffic (at the Network ACL level if we wanted to be stricter, but SG is sufficient for the lab).
4.3 Snapshot (Freeze the disk)
Sección titulada «4.3 Instantánea (Congelar el disco)»- EC2 -> Instances ->
Victima-Windows-> Storage tab. - Click on the
ID de volumenof the root disk (Root device). - Actions -> Create snapshot.
- Description:
Instantánea-Victima-Comprometida. - This step is critical to ensure disk integrity at that precise moment.
Step 5: Forensic Analysis (Post-Mortem)
Sección titulada «Paso 5: Análisis Forense (Post-Mortem)»5.1 Create disk to analyze
Sección titulada «5.1 Crear disco a analizar»- We will go to Snapshots in the left menu.
- We will select
Instantánea-Victima-Comprometida-> Actions -> Create volume from snapshot. - Availability Zone: The same as
Estacio-Forense(for example,us-east-1a). - Tag: Name=
copia-disco-comprometido.
5.2 Connect to the Forensic Workstation
Sección titulada «5.2 Conectar a la Estación Forense»- We will go to Volumes.
- We will select
copia-disco-comprometido. - Actions -> Attach volume -> We will select
Estacio-Forense. - Note: AWS does not easily allow physical mounting in "Read-only" mode at the virtual hardware level, so we must mount it within the Linux OS as Read-only.
5.3 Cloning/Analysis (inside the Forensic Workstation)
Sección titulada «5.3 Clonación/Análisis (dentro de la Estación Forense)»- We will connect via SSH to
Estacio-Forense. - We will list disks:
lsblk. We will see the new disk (for example,/dev/xvdf). - Mount RO:
mount -o ro /dev/xvdf1 /mnt/analisis(or similar). - Clone (optional): We will create an image to our testing volume.
dc3dd if=/dev/xvdf of=/mnt/proves/imagen_victima.img hash=sha256
Final Topology Summary
Sección titulada «Resumen Final de la Topología»We will have:
- Windows Instance (Stopped or Isolated).
- Linux Instance (Analyst).
- Tools Volume (connected to one or the other).
- Windows disk snapshot.
- Volume created from the snapshot (connected to Linux).

