Lion Cipher Lab
Find legacy Group Policy passwords in SYSVOL, then remove them and rotate
- Penetration Testing / Red Team
- Intermediate
- ~45 min
- Free · no account required
Why it matters
Years ago administrators used Group Policy Preferences to push a local administrator password to every computer. Microsoft later removed the ability to save passwords this way because they were stored insecurely, but policies created before that change can still be sitting in SYSVOL, readable by every account in the domain. This is one of the cheapest, most valuable checks in any directory review: it takes minutes, and a hit means a real credential needs rotating.
What you'll learn
- explaining why Group Policy Preferences passwords are a finding
- knowing where policy files live in SYSVOL
- searching SYSVOL for the cpassword attribute with PowerShell
- running Microsoft's detection script
- removing the preference and rotating the credential
- auditing share access to SYSVOL with event 5145
Steps in this lab
- The rule, and the one thing this lab will not do
- What the weakness is, from the source
- Plant a harmless decoy policy in your lab
- Search SYSVOL for the attribute with PowerShell
- Run Microsoft's own detection script
- Rate the finding
- Fix it: remove the preference, rotate the credential
- Re-test, then the defender's view
Open the full interactive lab →