Lion Cipher Lab
Create a read-only assessor role in your OWN AWS account and assume it with MFA
- Cloud Security
- Beginner
- ~40 min
- Free · no account required
Why it matters
Before you assess a cloud account you need an identity to do it with, and the choice matters. If you assess with your own administrator login, a mistake in a script can change or delete things, and the log cannot tell your assessment from your daily work. A separate read-only role fixes both: it cannot write, it hands out temporary credentials instead of a long-lived key, it can require MFA, and you can name its sessions so every call it makes is easy to find later. Professional assessors ask for exactly this from a client, so building it once on your own account is practice for the real…
What you'll learn
- separating the assessor identity from the admin identity
- writing a role trust policy with an MFA condition
- attaching the SecurityAudit managed policy
- assuming a role from the AWS CLI with a named profile
- naming sessions so they can be found in CloudTrail
- choosing between SecurityAudit, ViewOnlyAccess and ReadOnlyAccess
- tearing an assessment identity down
Steps in this lab
- The rule first: your account, a separate identity, nothing else
- Pick the policy: SecurityAudit, and why not the others
- Write the trust policy that demands MFA
- Create the role and attach SecurityAudit
- Make a CLI profile that assumes the role, with a session name
- Prove who you are, then prove what you cannot do
- What the defender sees: the hop is logged
- Tighten, time-box and tear down
Open the full interactive lab →