Lion Cipher Lab
Create a read-only assessor service account in your OWN Google Cloud project and impersonate it with no key (GCP assessment 1 of 5)
- Cloud Security
- Beginner
- ~40 min
- Free · no account required
Why it matters
Before you assess a cloud project you need an identity to do it with, and the choice matters. If you assess as your own owner account, one mistyped command can change or delete things, and the logs cannot tell your assessment from your daily work. A dedicated read-only service account fixes both. Google's documentation recommends short-lived credentials from impersonation over long-lived keys, because they expire within hours and leave no file behind. Professional assessors ask a client for exactly this, so building it once on your own project is practice for the real request.
What you'll learn
- separating the assessor identity from your own admin identity
- creating a service account without creating a key
- granting Security Reviewer and Cloud Asset Viewer at project level
- letting your own user impersonate a service account with Token Creator
- using the --impersonate-service-account flag
- proving a read-only identity by a denied write
- tearing an assessment identity down
Steps in this lab
- The rule first: your project, a separate identity, nothing else
- Choose the roles: Security Reviewer and Cloud Asset Viewer
- Create the service account, with no key
- Let only you impersonate it
- Run as the assessor, then prove what it cannot do
- What the defender sees, and how to tear it down
Open the full interactive lab →