An instance role creates an admin user
Follow IAM calls in CloudTrail to show that an EC2 instance role, used from outside AWS, created a new admin user with a key and a console password.
- Terminal mission
- Advanced
- 4 questions
- 0 of 4 solved
Your goal
Your goalProve that a server’s role, used from outside AWS (Amazon Web Services), created a hidden admin user.
Instance role credentials are temporary and meant to be used from the instance. If they are used from an address outside AWS, they were stolen, usually through the instance metadata service.
The session name of an EC2 role is the instance ID. The same role from inside the VPC appears with a 10.x address.
What’s on screen
- 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 to know
- IAM
- identity and access management, who may do what in a cloud account
- EC2
- Amazon Elastic Compute Cloud, virtual machines in AWS
- AWS
- Amazon Web Services
- VPC
- virtual private cloud, a private network inside a cloud account
- ARN
- Amazon Resource Name, the full ID of an AWS object
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.
Read first
More in Cloud logs
The whole walkthrough
Every step in order: 300 words, about 2 min. It gives away every answer, so try the steps first.