PATHFINDING.CLOUD
Understand, Detect & Demonstrate Cloud IAM Privilege Escalation
Menu
Learn by doing — Pathfinding Labs
Labs / Getting Started

Getting Started

Two ways to play: online in your browser for free, or self-hosted in your own AWS accounts. Here's how each works, and the sixEverything you need before running your first lab, and the six scenarios that will give you a working mental model of AWS IAM privilege escalation.

Pick whichever fits. You can switch between them at any time.

Free
Play online

Run labs in a temporary AWS environment we host for you, with a terminal right in the browser. Nothing to install and no AWS account needed.

  1. Open a lab marked Play online in the catalog (the Online Play filter lists them all).
  2. Switch to the lab's game view and press Play Online. The environment is usually ready in under a minute.
  3. Use the terminal and the starting credentials to work through the attack path, then submit the flag you capture.

Each environment runs for up to 60 minutes and is destroyed when it ends. Sign-in is optional; it saves your progress.

Every lab
Self-host in your AWS accounts

Deploy scenarios into your own AWS accounts with the plabs CLI. This covers the entire catalog, including cross-account, CSPM and toxic-combination labs.

  1. Have one or more sandbox AWS accounts.
  2. Install plabs and enable the scenarios you want.
  3. Deploy, practice at your own pace, and tear down when you're done.

Best for testing CSPM and CIEM tools against known misconfigurations, and for labs not yet available online. Setup steps below.

Online labs work without an account. Sign in, choose a username, and every lab you complete online counts toward your private profile and your spot on the public Labs Leaderboard. You level up along the way, starting with your first lab, and you can share each level you reach. Labs you complete before signing in are added to your account when you sign in from the same browser. We never receive your email address or name.

Two things to set up before deploying your first scenario yourself. You don't need either to play online.

01
Required
One or more AWS accounts
All scenarios deploy into real AWS accounts using Terraform. A single sandbox account is enough to run the majority of labs. Cross-account escalation labs require two or three accounts, but you can come back to those later.

Not sure where to start? The setup guides cover all three cases: single account, accounts you already have, and creating a full multi-account org from scratch. Setting up an org is also a good excuse to explore org-level features like SCPs and IAM Identity Center.
02
Required
Install and configure pathfinding labs
Install the plabs CLI, then configure it with your AWS credentials for each account. The repo README has full setup instructions. The quick path:
# Install via go install go install -v github.com/DataDog/pathfinding-labs/cmd/plabs@latest # Or via brew brew tap DataDog/pathfinding-labs https://github.com/DataDog/pathfinding-labs brew install DataDog/pathfinding-labs/plabs # Run the interactive setup wizard to map your AWS profile(s) to the plabs environment(s) plabs init # Enable a lab and deploy plabs scenarios list plabs scenarios enable [id] plabs apply

Run these six labs in order. Each one introduces a new technique or adds a layer of complexity to what came before. Labs marked Play online can be played in your browser; the others are self-hosted only for now.

1
iam-008-to-admin
Self-Escalation
Self-escalation via iam:AttachUserPolicy
The simplest possible escalation: a user attaches a managed admin policy directly to themselves. No other principals involved. Good first lab because the attack path is one step and the outcome is immediate.
2
sts-001-to-admin
One-Hop
Role assumption via sts:AssumeRole
The most common one-hop escalation. A principal with sts:AssumeRole assumes a more privileged role whose trust policy permits it. Teaches you to read trust policies and identify over-permissioned roles.
3
lambda-004-to-admin
One-Hop
Existing Lambda code modification
No PassRole required. A principal with lambda:UpdateFunctionCode modifies an existing Lambda function to exfiltrate credentials from its privileged execution role. Introduces exploitation of existing compute resources with attached roles.
4
ssm-002-to-admin
Credential Access
Credential theft via SSM SendCommand
A principal with ssm:SendCommand runs commands on an EC2 instance and queries the IMDS to retrieve temporary credentials from its attached IAM role. Same pattern as Lab 3 but via EC2 instead of a function.
5
ssm-001-to-bucket
Credential Access
SSM session to sensitive S3 bucket
The same SSM technique, but the EC2 instance's role only has access to a sensitive S3 bucket — not admin. Shows that not every attack path leads to AdministratorAccess; sometimes the objective is data, not control.
6
sts-001-to-ecs-002-to-admin
Multi-Hop
Multi-hop: role assumption into ECS PassRole
Two hops. First, assume a role that has ECS permissions. Then use that role to run a Fargate task with a privileged execution role attached — reaching admin via the task's environment. Introduces chained escalation across multiple principals.

After completing these six, browse the full Labs Catalog — filter by category, type, or target, or Online Play to find scenarios that match what you want to practice next. Cross-account labs, toxic combinations, and CTF scenarios are all available once you've built the foundational intuition these six provide.