Lion Cipher Lab

Detect AD CS ESC1 certificate abuse from issuance logs

Why it matters

AD CS ESC1 is one of the most reliable domain-privilege-escalation paths in real breaches: a single misconfigured certificate template lets an ordinary user request a certificate that authenticates AS a Domain Admin, with no exploit and no malware — just a legitimate enrollment. It is both preventable (fix the template) and detectable (watch issuance), which makes it exactly the kind of thing a SOC should never miss. But the raw issuance logs are dominated by thousands of perfectly normal enrollments, and a naive 'a client-auth cert was issued' rule buries the one malicious request under all…

What you'll learn

Steps in this lab

  1. What ESC1 is, in plain terms
  2. The tell in the logs: requester != subject
  3. Why the obvious rule drowns you (the judgment)
  4. Generate a labeled synthetic dataset
  5. Write two detections and score them
  6. Read the confusion matrix like an analyst
  7. Name the blind spots your issuance logs cannot cover
  8. Why this matters — and where it goes next

Open the full interactive lab →