Lion Cipher Lab

Detect NTLM relay and coerced authentication (the PetitPotam / PrinterBug pattern)

Why it matters

Coerced authentication plus NTLM relay is one of the most reliable ways an attacker turns a foothold into full domain control — force a Domain Controller to authenticate to you, relay that authentication to Active Directory Certificate Services, walk away with a certificate that impersonates the DC. It has been used in real intrusions and it is quiet: done right, the logs barely twitch. A SOC analyst who can recognize the faint signal AND who understands that the real fix is signing, channel binding, and killing NTLM — not a detection rule — is worth their weight. This lab builds both halves…

What you'll learn

Steps in this lab

  1. The attack in one breath — coercion, then relay
  2. When you would reach for this — and the hard truth up front
  3. Build your hunting sample (no domain required)
  4. Signal 1 — NTLM where you expected Kerberos, over the network
  5. Signal 2 — a machine account ($) logging on to the wrong place
  6. The AD CS side — where the relay cashes out (explained, not run)
  7. The real fix — controls that make the attack FAIL, not just log
  8. False positives — the legitimate look-alikes you must not page on
  9. When NOT to rely on this — and what to do instead

Open the full interactive lab →