Challenge

Three cards that share one vended terminal: a read-only AWS CLI shell with credentials already configured. The terminal was a ttyd page, and since my browser would not load it over plain HTTP, I spoke ttyd’s WebSocket protocol directly from a small script (subprotocol tty, input frames prefixed with 0).

Flag 1: the compromised service account

Security Hub had exactly one CRITICAL finding:

1
2
3
aws securityhub get-findings \
  --filters '{"SeverityLabel":[{"Value":"CRITICAL","Comparison":"EQUALS"}]}' \
  --query 'Findings[].{id:Id,udf:UserDefinedFields}'

It describes a compromised GCP service account federating into AWS. The finding ID is an ARN and not the answer. The flag is in UserDefinedFields["breadcrumbs:flag"].

FLAG-{bd9d167988b6f552f2b9ac4d4b1d501e}

Flag 2: lateral movement

The only S3 object the role could read was an OCSF events.json in the Security Lake bucket. It has 25 events, and one of them is an AssumeRoleWithWebIdentity: the pivot. Its web_identity_subject is the same GCP service account from the first card, breadcrumbs-attacker@compromised-project.iam.gserviceaccount.com. The flag is in unmapped.breadcrumbs.pivot_flag.

FLAG-{19c34e30a078a6e6c034e759abc6df72}

Flag 3: the end of the trail

Sorted by time, the last of the 25 events has final_access=true: an s3:GetObject on a training-data bucket. The flag is in unmapped.breadcrumbs.final_flag.

FLAG-{4e756959a557cf4311dd1b164e9166cc}