Skip to main content
Challenges Room: Cloud leak
Xonalar Hard AWS incident: a leaked key, a CloudTrail chain (AssumeRole x2), an S3 object and a KMS data key Solves: 4

Room: Cloud leak

Author: CyberSamSU
Points
90

Room scenario. There is a suspicion that data was taken from a confidential 'vault' bucket in the company's AWS account (region eu-central-1). The cloud team collected a copy of the incident: cloudtrail/*.json.gz (hourly CloudTrail files, Records array), github_leak.patch (a change that a developer accidentally pushed to GitHub), iam/*.json (users, role trust and permission policies), lambda_env_dump.json (the result of get-function-configuration) and s3_snapshot/ (the bucket objects and their .head.json metadata). The archive is cloud_ir.zip.

Be aware: the corporate egress network is 198.51.100.0/24. In the CloudTrail AssumeRole response, a temporary ASIA... accessKeyId is written (the secret parts are hidden), and in later calls userIdentity.accessKeyId is that value. The objects are encrypted on the client side with AES-256-CBC (PKCS#7): the key is the data key of a KMS CMK, and the IV is in the metadata (Metadata.iv, base64).

Stages (answers are not submitted):

  1. Task 1. The patch contains two AKIA... keys. Look for them in CloudTrail: which one was used from an IP outside the corporate network? What was the fate of the other (the IAM files and the UpdateAccessKey event)?
  2. Task 2. Follow the AssumeRole chain with the leaked key: the new ASIA... key in the response of each successful step appears in the following events. There are also denied (AccessDenied) attempts and dead-end branches — which role ultimately read the S3 object?
  3. Task 3. Which object was read successfully (GetObject, bytesTransferredOut) through that session? Legitimate users also read the same object — pay attention only to the session in the chain. Which KMS key ARN is shown in the kms:Decrypt event of that session?
  4. Task 4. Find the DATA_KEY_B64 of the function linked to that ARN in lambda_env_dump.json, decrypt with AES-256-CBC using the IV in the object metadata, and get the flag.

Flag format: BAYROQ{...} (the last 16 characters are lowercase hex).

Attached files
cloud_ir.zip Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −9 pts Log in
Hint 2 −18 pts Log in
Hint 3 −27 pts Log in
To submit a flag, log in.

First solvers

1. Mirjaxon Qaxxarov 25.11.2026
2. Odam 25.11.2026
3. Asmaa Mottery 27.11.2026
4. 𝖛𝖊𝖑𝖐𝖆𝖓 28.11.2026