Lion Cipher Lab
Audit service accounts: SPNs, password age and encryption types, then migrate one to a gMSA
- Penetration Testing / Red Team
- Intermediate
- ~60 min
- Free · no account required
Why it matters
Service accounts are different from people: nobody types their passwords daily, so they are rarely changed, often over-privileged, and sometimes owned by no one. When such an account also carries a Service Principal Name, Kerberos hands out service tickets protected with keys derived from its password, which makes password strength and age matter a great deal. An inventory that combines owner, age, privilege and encryption turns a vague worry into a ranked to-do list.
What you'll learn
- listing user accounts that carry Service Principal Names
- listing SPNs with setspn
- reading password age and msDS-SupportedEncryptionTypes
- decoding the encryption type values
- rating a service account by owner, age, privilege and encryption
- creating a KDS root key and a gMSA for a lab service
Steps in this lab
- The rule, and the line this lab keeps
- Create a realistic lab service account
- Inventory every user account that has an SPN
- Read the encryption types
- Rate every account on four questions
- Fix 1: set AES-only on the account, with a test
- Fix 2: migrate the service to a group managed service account
- Re-test and the defender's view
Open the full interactive lab →