Lion Cipher Lab
Audit AD CS templates, CA flags and CA permissions in your lab, then fix them and re-test
- Penetration Testing / Red Team
- Advanced
- ~85 min
- Free · no account required
Why it matters
Certificates can prove identity in a domain. A CA or template that is too generous lets a low-privileged account obtain a certificate that proves it is someone much more powerful. These weaknesses live in configuration, not in code, so a configuration audit finds them. A defender who can run this audit before anyone else does has closed one of the most common privilege-escalation routes in directory environments.
What you'll learn
- explaining what an AD CS certificate template controls
- running Certipy find as a read-only audit against your own lab CA
- reading ESC findings: what each one means and where the setting lives
- reading CA registry flags with certutil -getreg
- fixing template, CA flag, CA permission and web enrollment findings
- re-running the audit to show the findings cleared
Steps in this lab
- The rule, and the one Certipy command we use
- What AD CS is, and what a template controls
- Make sure there is a CA to audit, with some deliberate mess
- Run the read-only audit
- Read each finding: where, why, how bad
- Confirm the CA flag by hand
- Fix each finding
- Re-test and the defender's view
Open the full interactive lab →