Labs / Follow the Cloud Trail
CloudMedium

Follow the Cloud Trail

ChaiCorp received a budget alert this morning: June spending is suddenly far above the budget. The team suspects someone is using a stolen access key.

You have three files: a simplified audit log (CloudTrail style, one event per line), the list of users and their access keys, and some notes from the IT team.

Read the log like a story: who did what, from which IP address, and in which region. Find the access key ID that the attacker used to make their API calls. (Do not submit a key the attacker created. Submit the key they used to get in.)

Flag format: SK{ACCESS_KEY_ID}, exactly as it appears in the log. For example: SK{AKIAEXAMPLEABCD1234}

audit-log.jsonl

{"eventTime":"2025-06-11T08:58:02Z","eventName":"ConsoleLogin","userName":"sana","sourceIPAddress":"198.51.100.10","region":"ap-south-1","mfaUsed":true}
{"eventTime":"2025-06-11T09:15:40Z","eventName":"PutObject","userName":"ci-deploy","accessKeyId":"AKIAEXAMPLECI7DEPLOY","sourceIPAddress":"198.51.100.10","region":"ap-south-1","bucket":"chaicorp-web-assets"}
{"eventTime":"2025-06-11T09:41:13Z","eventName":"DescribeInstances","userName":"bilal","accessKeyId":"AKIAEXAMPLEBILAL0042","sourceIPAddress":"192.0.2.50","region":"ap-south-1"}
{"eventTime":"2025-06-11T10:05:27Z","eventName":"GetBucketPolicy","userName":"sana","sourceIPAddress":"198.51.100.10","region":"ap-south-1","bucket":"chaicorp-invoices"}
{"eventTime":"2025-06-11T11:20:51Z","eventName":"GetObject","userName":"backup-script","accessKeyId":"AKIAEXAMPLEBACKUP001","sourceIPAddress":"198.51.100.10","region":"ap-south-1","bucket":"chaicorp-orders"}
{"eventTime":"2025-06-11T13:02:09Z","eventName":"PutObject","userName":"ci-deploy","accessKeyId":"AKIAEXAMPLECI7DEPLOY","sourceIPAddress":"198.51.100.10","region":"ap-south-1","bucket":"chaicorp-web-assets"}
{"eventTime":"2025-06-11T16:44:30Z","eventName":"ListBuckets","userName":"bilal","accessKeyId":"AKIAEXAMPLEBILAL0042","sourceIPAddress":"192.0.2.50","region":"ap-south-1"}
{"eventTime":"2025-06-11T21:47:05Z","eventName":"ListBuckets","userName":"ci-deploy","accessKeyId":"AKIAEXAMPLECI7DEPLOY","sourceIPAddress":"203.0.113.77","region":"us-east-1"}
{"eventTime":"2025-06-11T21:48:40Z","eventName":"CreateUser","userName":"ci-deploy","accessKeyId":"AKIAEXAMPLECI7DEPLOY","sourceIPAddress":"203.0.113.77","region":"us-east-1","newUser":"support-admin"}
{"eventTime":"2025-06-11T21:49:12Z","eventName":"AttachUserPolicy","userName":"ci-deploy","accessKeyId":"AKIAEXAMPLECI7DEPLOY","sourceIPAddress":"203.0.113.77","region":"us-east-1","targetUser":"support-admin","policy":"AdministratorAccess"}
{"eventTime":"2025-06-11T21:50:03Z","eventName":"CreateAccessKey","userName":"ci-deploy","accessKeyId":"AKIAEXAMPLECI7DEPLOY","sourceIPAddress":"203.0.113.77","region":"us-east-1","targetUser":"support-admin","newAccessKeyId":"AKIAEXAMPLENEWKEY777"}
{"eventTime":"2025-06-11T21:56:48Z","eventName":"RunInstances","userName":"ci-deploy","accessKeyId":"AKIAEXAMPLECI7DEPLOY","sourceIPAddress":"203.0.113.77","region":"sa-east-1","instanceType":"p3.16xlarge","count":20}
{"eventTime":"2025-06-11T22:03:31Z","eventName":"StopLogging","userName":"ci-deploy","accessKeyId":"AKIAEXAMPLECI7DEPLOY","sourceIPAddress":"203.0.113.77","region":"us-east-1","errorCode":"AccessDenied"}
{"eventTime":"2025-06-11T23:30:00Z","eventName":"GetObject","userName":"backup-script","accessKeyId":"AKIAEXAMPLEBACKUP001","sourceIPAddress":"198.51.100.10","region":"ap-south-1","bucket":"chaicorp-orders"}

Submit the flag