Labs / Capstone investigations
A pushed key, then a new admin user
An access key was pushed to a public repository for one afternoon. Find the commit and the key, then use CloudTrail to see who used it, what they created, and how they kept access.
What you’re looking at
An access key was pushed to a public repository for one afternoon. Find the commit and the key, then use CloudTrail to see who used it, what they created, and how they kept access.
Your goal: Follow a key pushed to a public repository through to the admin user an attacker made with it.
- Briefing
- the story: what happened and what evidence you were handed.
- Terminal
- the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
- Walkthrough
- the numbered path. Each step says what to type and what you should see. Hints open one at a time.
- Answer boxes
- under each question step. Type what you found and press Check.
Words you will meet
- Portable Document Format
- IAM
- identity and access management, who may do what in a cloud account
- IP
- Internet Protocol address, the number that identifies a machine on a network
Start with step 1 in the walkthrough. Every step says what to do and what you should see. The whole thing takes about 2 min to talk through.
Briefing
A secret-scanning alert fired for the report-gen repository, which was briefly public. The developer says the key only uploads PDFs to one bucket, so the risk is low.
Do not trust "only": check what the key was actually allowed to do and what was done with it. You have a clone of the repo and a CloudTrail export for that IAM user.
ir-ws · Capstone investigations
Type help for the command list and objectives for your tasks. Everything runs in this browser.
Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.
The whole walkthrough
Every step in order, written to be read aloud: 300 words, about 2 min. It gives away every answer, so try the steps first.