The upload key, used from somewhere new
An access key that only uploads reports from CI was used with the AWS CLI from an unknown address. Use jq on CloudTrail to see what it tried, what was denied, and what it read.
What you’re looking at
An access key that only uploads reports from CI was used with the AWS CLI from an unknown address. Use jq on CloudTrail to see what it tried, what was denied, and what it read.
Your goal: Show that an upload-only key was used from a new address to probe the account and read payroll data.
- 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
- CI
- continuous integration, the server that builds and tests code
- AWS
- Amazon Web Services
- CLI
- command-line interface
- Portable Document Format
- 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
The report-uploader user exists for one job: the nightly CI run puts PDFs into acme-reports-prod from 34.250.10.20. Its access key was in a repository that briefly went public on Mar 13.
Every CloudTrail record has sourceIPAddress, userAgent, eventName, and errorCode when the call failed. jq can group and filter them.
cloud-shell · Cloud logs
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: 294 words, about 2 min. It gives away every answer, so try the steps first.