All hands-on labs

Premium Challenge labadvancedred teamAWS

IAM Challenge – Secrets Unleashed

In this Challenge Lab, find IAM PrivEsc vulnerabilities that enable you to access a secret API key stored in Secrets Manager from a lower privileged user to prove to your client that there are serious vulnerabilities in the organization's AWS environments. Capture the flag by decoding the secret value and revealing it in plain text.

  • No step-by-step guide
  • Capture the flag
  • Terminal in the browser

Scenario

Difficulty: Beginner

Objective: ⛳️ You've successfully completed this challenge once you've accessed and decoded a secret API key stored in Secrets Manager.

Description: You work for a cloud pentesting consulting firm, and you've been hired by Serious Corp to find vulnerabilities in their IAM configurations.

This is a grey box operation, and you've been given credentials to a lower-privileged IAM user named Adam, but you do not have any architectural diagrams of how the environment is configured or laid out.

In reviewing internal documentation that you were granted access to, you notice that there is an employee named Emma who is in charge of running the infrastructure within this particular AWS environment used to host internal apps and resources. You also noticed that Emma uses a role named AppManagement to perform most of her job functions in that AWS environment. She does that by assuming this role and using that role's permissions to access resources in AWS. Finally, you learn that the organization uses Amazon Secrets Manager to store secret values, including secret keys for access to internal and sensitive APIs.

Given the provided credentials, look for IAM Privilege Escalation paths that will give you permissions to a access secrets within this environment's Secrets Manager storage.

How this challenge works

  • No step-by-step guide. You get the goal and the access. The path is yours to find.
  • 1 flag to capture. Submit it in the lab to finish.

What you will practice

  • Enumerate an IAM user's groups, policies, and permission boundaries.
  • Find IAM privilege escalation paths in an AWS account.
  • Chain two or more IAM exploits to reach a protected secret.
  • Read a value stored in AWS Secrets Manager.
  • Decode the secret value to get the plain text flag.
Challenge lab

IAM Challenge – Secrets Unleashed

Included in Cybr Premium.