Lion Cipher Lab
Audit Kerberos delegation in your lab domain and remove what is not needed
- Penetration Testing / Red Team
- Intermediate
- ~55 min
- Free · no account required
Why it matters
Delegation lets a front-end service act on a user's behalf toward a back-end service, which is how single sign-on through a web tier works. It is also a standing trust: Microsoft's own description says that if a server hosting a front-end service is compromised and it is configured to delegate, the back-end services could be compromised too. Every domain has some delegation and almost every domain has more than it needs. Counting and trimming it is one of the most reliable ways to shrink an attack path.
What you'll learn
- explaining unconstrained, constrained and resource-based constrained delegation in plain words
- listing accounts trusted for delegation with Get-ADComputer and Get-ADUser
- listing constrained delegation targets from msDS-AllowedToDelegateTo
- reading PrincipalsAllowedToDelegateToAccount
- narrowing or removing delegation with Set-ADAccountControl
- protecting privileged accounts with the cannot-be-delegated flag and Protected Users
Steps in this lab
- The rule, and the position of this lab
- What delegation is, in three sentences
- Create three deliberate findings in your lab
- Inventory unconstrained delegation
- Inventory constrained and resource-based delegation
- Rate and decide, one entry at a time
- Fix: remove, narrow, and protect the powerful accounts
- Re-test and the defender's view
Open the full interactive lab →