Lion Cipher Lab
Create a read-only assessor identity in your OWN Azure subscription and sign in with a short-lived certificate (Azure assessment 1 of 6)
- Cloud Security
- Beginner
- ~45 min
- Free · no account required
Why it matters
Before you assess a cloud subscription you need an identity to do it with, and the choice matters. If you assess as your own Owner, one mistyped command can change or delete things, and the logs cannot tell your assessment from your daily work. A dedicated read-only identity fixes both. Professional assessors ask a client for exactly this, usually as 'Reader on the subscription', so building it once on your own subscription is practice for the real request. Azure has a quirk worth learning now: an app registration and a service principal are two different objects, and cleaning up only one…
What you'll learn
- separating the assessor identity from your own admin identity
- telling an app registration from a service principal
- creating a service principal with no password
- assigning Reader and Security Reader at subscription scope
- giving a service principal a self-signed certificate with an end date
- keeping the assessor's CLI session apart from your own with AZURE_CONFIG_DIR
- proving a read-only identity by a denied write
- tearing an assessment identity down completely
Steps in this lab
- The rule first: your subscription, a separate identity, nothing else
- App registration or service principal? Know which one you are making
- Choose the roles: Reader and Security Reader
- Create the service principal with no password, and give it Reader
- Give it a short-lived certificate
- Sign in as the assessor in its own CLI profile
- Prove what it can and cannot do
- What the defender sees, and how to tear it all down
Open the full interactive lab →