How Could PetitPotam Relay a Domain Controller's Authentication to AD CS?
· Go Komura · Windows, Information Security, Active Directory, AD CS, NTLM, CVE
Revision history (first version, published Oct 31, 2026)
- First published
Cite this article(DOI: 10.5281/zenodo.23856464)
This article is archived on Zenodo. Below are both the DOI that always resolves to the latest version and the DOI pinned to the version you are reading.
Go Komura (2026). How Could PetitPotam Relay a Domain Controller's Authentication to AD CS?. KomuraSoft LLC. https://doi.org/10.5281/zenodo.23856464 https://comcomponent.com/en/blog/windows-petitpotam-cve-2021-36942-ad-cs/
- DOI (latest version)
- 10.5281/zenodo.23856464
- DOI (this version)
- 10.5281/zenodo.23856465
Active Directory Certificate Services (AD CS) has two role services that accept certificate requests over the web: Certificate Authority Web Enrollment, used from a browser, and Certificate Enrollment Web Service, used from Windows’ built-in client. PetitPotam was an attack that exploited the state in which these role services accepted relayed NTLM authentication.123
The attacker first makes a domain controller authenticate with NTLM to a server on the attacker’s side. The attacker then relays that authentication as-is to AD CS web enrollment. CVE-2021-36942 is the vulnerability that coerces the first half, the authentication, and Microsoft rates the severity when it is combined with the second half, the relay to AD CS, at a CVSS base score of 9.8.45
1. Overview
CVE-2021-36942 is a Windows Server vulnerability published on August 10, 2021. An unauthenticated attacker who called a method on the LSARPC interface could make a domain controller authenticate to another server using NTLM.64 Before that, on July 23, 2021, Microsoft published advisory ADV210003 and KB5005413 in response to PetitPotam.7
| Item | Details |
|---|---|
| CVE | CVE-2021-369426 |
| Microsoft’s name | Windows LSA Spoofing Vulnerability6 |
| Common name | PetitPotam8 |
| Published | August 10, 2021 (ADV210003 on July 23, 2021)67 |
| Affected feature | EFSRPC methods callable through LSARPC49 |
| Nature of the problem | Coercing NTLM authentication through unauthenticated calls4 |
| Severity | Important. CVSS 3.1 base score 7.5; 9.8 when combined with NTLM relay to AD CS (Microsoft’s rating)65 |
| Main impact | A domain controller’s authentication is relayed and the attacker is authenticated by AD CS85 |
| Known exploitation | Yes. CISA added it to the Known Exploited Vulnerabilities Catalog on November 3, 202110 |
Microsoft’s record at the time of publication listed exploitation as “No”. CISA later added it to the Known Exploited Vulnerabilities Catalog, and in a December 2024 article Microsoft also confirmed that it had been exploited for relaying to AD CS.61011
flowchart TB
accTitle: The two stages that make up PetitPotam
accDescr: Shows the stage in which CVE-2021-36942 makes a domain controller send NTLM authentication, and the stage in which that authentication is relayed to AD CS web enrollment.
A["Call an EFSRPC method through LSARPC"] --> B["Domain controller sends NTLM authentication"]
B --> C["Attacker relays it to AD CS web enrollment"]
C --> D{"Does AD CS have relay protection?"}
D -->|"No"| E["Authenticated as the domain controller"]
D -->|"Has EPA or similar"| F["Relayed authentication is not accepted"]
Figure 1: CVE-2021-36942 is the first-half coercion; the size of the damage is decided by the protection on AD CS in the second half.48
In the diagram a solid line marks a relation that always holds and a dashed line marks a conditional one (the conditions are given per relation on the detail page). The full list of relations (19 in total, with evidence and certainty) and the definitions of the main concepts are collected on the knowledge map detail page (in Japanese). Data: JSON-LD / Turtle
2. Affected Systems
The CVE-2021-36942 update applied to the versions of Windows Server that were supported at the time of publication. These are Windows Server 2008 SP2 through 2019, plus versions 2004 and 20H2; client versions of Windows are not listed. Microsoft states that all servers are affected and advises updating domain controllers first.1213
For the relay to AD CS, KB5005413 describes the configurations that may be affected: those that use either of the following AD CS role services.1
- Certificate Authority Web Enrollment
- Certificate Enrollment Web Service
For the attack to work, NTLM authentication must also be usable in the domain, and the web enrollment role service must lack protection against NTLM relay. KB5005413 explains that to prevent NTLM relay on networks where NTLM is enabled, services that accept NTLM authentication need to use protections such as EPA or SMB signing.8
flowchart TB
accTitle: Conditions under which relaying to AD CS works
accDescr: Relaying works when NTLM is usable in the domain, an AD CS web enrollment role service exists, and it has no protection against NTLM relay.
A{"Is NTLM authentication usable in the domain?"} -->|"No"| X["No authentication to relay"]
A -->|"Yes"| B{"Is there a web enrollment role service?"}
B -->|"No"| Y["Outside the scope of KB5005413"]
B -->|"Web Enrollment or Enrollment Web Service"| C{"Is there protection such as EPA?"}
C -->|"Yes"| Z["Relayed authentication is rejected"]
C -->|"No"| D["Relayed authentication is accepted"]
Figure 2: The outcome depends on whether the AD CS web enrollment role service accepts NTLM without protection.18
3. Details
EFSRPC accepted over LSARPC
Remote operations on the Encrypting File System use an RPC protocol called MS-EFSR (Encrypting File System Remote Protocol). The specification says EFSRPC messages SHOULD be sent to the named pipe \pipe\efsrpc, and that the server MAY respond to messages sent to \pipe\lsarpc. Both are named pipes over SMB.9
This interface includes, for example, EfsRpcOpenFileRaw. Its role in the specification is to open an encrypted object on the server for backup or restore.14 The CVE-2021-36942 update stopped calls to OpenEncryptedFileRawA and OpenEncryptedFileRawW through the LSARPC interface.4
flowchart TB
accTitle: The two endpoints of MS-EFSR
accDescr: Shows that EFSRPC messages are normally sent to the named pipe efsrpc, and that the server may also respond to messages sent to lsarpc.
A["EFSRPC messages"] --> B["SMB named pipes"]
B --> C["\pipe\efsrpc (SHOULD be used)"]
B --> D["\pipe\lsarpc (MAY respond)"]
D --> E["August 2021 update stopped specific API calls"]
Figure 3: What the CVE-2021-36942 update stopped was specific API calls through LSARPC.94
Coercing authentication without being authenticated
According to MSRC’s explanation, an unauthenticated attacker could call a method on the LSARPC interface and make a domain controller authenticate to another server using NTLM.4 In other words, the domain controller itself starts NTLM authentication to a server the attacker has prepared.
What the attacker gets at this stage is an NTLM authentication in progress, sent by the domain controller. CVE-2021-36942 on its own is rated at a CVSS base score of 7.5 (high impact on confidentiality). How much damage results depends on where this authentication can be relayed.65
flowchart TB
accTitle: How NTLM authentication starts from an unauthenticated call
accDescr: Shows the flow from the attacker calling a method through LSARPC to the domain controller starting NTLM authentication to another server.
A["Attacker calls an LSARPC method"] --> B["Domain controller connects to another server"]
B --> C["NTLM authentication as the domain controller"]
C --> D["Attacker receives the authentication in progress"]
Figure 4: The call required no authentication, and the domain controller started authenticating on its own.4
Relaying to AD CS web enrollment
KB5005413 calls PetitPotam “a classic NTLM Relay Attack”. In an NTLM relay, the attacker relays the authentication it receives to a different service, passes the challenge from that service to the victim, and returns the response the victim computed to the service.815
The relay targets were the two AD CS web enrollment role services. Certificate Enrollment Web Service accepts certificate requests over HTTPS and completes certificate enrollment with the certification authority (CA) on behalf of the requester. With Windows integrated authentication, it authenticates the requester using Kerberos or NTLM.2 Certificate Authority Web Enrollment also accepts certificate requests on a website hosted in IIS.3
If the relayed NTLM authentication is accepted as-is, AD CS treats the requester as the domain controller. Microsoft Defender for Identity has an alert that corresponds to this situation, “Suspicious Domain Controller certificate request (ESC8)”.16 Microsoft describes a successful NTLM relay as an initial foothold for further compromising the domain.17
flowchart TB
accTitle: How a domain controller's authentication is relayed to AD CS
accDescr: Shows the flow from the attacker relaying the domain controller's authentication to AD CS web enrollment until AD CS treats the request as coming from the domain controller.
A["Domain controller's NTLM authentication"] --> B["Attacker relays it"]
B --> C["AD CS web enrollment"]
C --> D["Relays the challenge and returns the response"]
D --> E["AD CS treats the requester as the domain controller"]
E --> F["Certificate request in the domain controller's name"]
Figure 5: When AD CS web enrollment accepted NTLM, a request in the domain controller’s name could go through with relayed authentication.8216
How EPA stops the relay
EPA (Extended Protection for Authentication) is a mechanism that adds information to Windows authentication to prevent authentication relay and man-in-the-middle attacks. EPA in IIS mainly uses a channel binding token (CBT), used for SSL/TLS connections, and binding through the service principal name (SPN).18 According to Microsoft’s advisory 973811, authentication requests that use EPA are bound both to the SPN of the destination and to the outer TLS channel.19
The relayed authentication that AD CS receives was started by the domain controller with the attacker. It contains no information bound to the TLS channel between the attacker and AD CS. For that reason, AD CS with EPA required can reject authentication that is not bound to the channel. However, if the check is set to Require in IIS, clients that do not support EPA can no longer authenticate.18 Also, EPA applies to NTLMv2, Kerberos, Digest and Negotiate authentication, and does not apply to NTLMv1.20
flowchart TB
accTitle: Why EPA rejects relayed authentication
accDescr: Shows that on a legitimate connection the authentication is bound to the TLS channel, while relayed authentication is not, so a server that requires EPA can reject it.
A{"Is the authentication bound to the TLS channel with AD CS?"} -->|"Bound"| B["Accepted as a legitimate connection"]
A -->|"Not bound"| C["Relayed authentication"]
C --> D{"Is EPA required?"}
D -->|"Required"| E["Authentication rejected"]
D -->|"Disabled"| F["Accepted anyway"]
Figure 6: EPA binds the authentication to the TLS channel it came through.1819
4. Impact
What CVE-2021-36942 alone causes is making a domain controller send its authentication to the attacker’s side. Microsoft rates this at a CVSS base score of 7.5, and rates the combination with NTLM relay to AD CS at 9.8.65
The problem in the combination is being authenticated as the victim at the relay destination. Microsoft explains that with NTLM relay, an attacker who relays credentials to an unprotected endpoint can authenticate and perform actions on behalf of the victim, and that this becomes an initial foothold for further domain compromise.17 In PetitPotam, the victim is the domain controller.
Actual exploitation has also been confirmed. CISA added CVE-2021-36942 to the Known Exploited Vulnerabilities Catalog on November 3, 2021, and lists its use in ransomware campaigns as “Known”.10 Microsoft also cites CVE-2021-36942, in which authentication coerced through LSARPC was relayed to AD CS, as an example of attackers targeting services that lack protection against NTLM relay.11
In May 2022, CVE-2022-26925 was published; it likewise coerces NTLM authentication from domain controllers through LSARPC. Its update detects and rejects anonymous connection attempts to LSARPC, and it too was already being exploited at the time of publication. Microsoft references the same ADV210003 and KB5005413 for this vulnerability as well.21
flowchart TB
accTitle: Impact when the coercion vulnerability meets missing AD CS protection
accDescr: Shows that CVE-2021-36942 alone is CVSS 7.5, that combined with NTLM relay to AD CS it is 9.8, and that it becomes a foothold for further domain compromise.
A["Coercion through CVE-2021-36942"] --> B["CVSS 7.5 on its own"]
A --> C{"Does the target AD CS have protection?"}
C -->|"No"| D["CVSS 9.8 in combination"]
D --> E["Authenticated as the domain controller"]
E --> F["Foothold for further domain compromise"]
C -->|"Yes"| G["The relay fails"]
Figure 7: What changes the severity most is whether the relay destination has protection against NTLM relay.6517
5. Mitigation
Update Windows Server
First, apply the latest updates for supported Windows Server versions, which include the fixes for CVE-2021-36942 and CVE-2022-26925. Microsoft advises prioritizing domain controllers.1321 On Windows Server 2008 SP2 with the August 2021 update installed, OpenEncryptedFileRaw no longer works.22
The update alone is not enough, however. MSRC’s FAQ answers “Yes” to the question of whether additional steps are needed after the update, and refers to KB5005413.5 This is because the update stopped specific calls and anonymous connections through LSARPC, while the state in which AD CS accepts relayed NTLM remains.4218
Require EPA on AD CS and stop HTTP
The primary mitigation in KB5005413 is to enable EPA on the AD CS servers and stop HTTP. The steps are as follows.23
- In IIS Manager, enable EPA for Certificate Authority Web Enrollment. Set the value to
Required, which is the more secure and recommended option. - Likewise, set EPA to
Requiredfor Certificate Enrollment Web Service. - For Certificate Enrollment Web Service, also add
<extendedProtectionPolicy>to%windir%\systemdata\CES\<CA name>_CES_Kerberos\web.config. When IIS is set toRequired, the value isAlways. - Enable
Require SSLso that only HTTPS connections are accepted. - Run
iisreset /restartfrom an administrator command prompt to load the changes. This command stops all running IIS services and starts them again.
Once EPA is required, clients that do not support EPA can no longer authenticate to AD CS web enrollment.18 Check first which clients request certificates as part of your business, and decide on a time window before making the change.
On Windows Server 2025, EPA for AD CS is enabled by default. However, the default value is “Enabled - When Supported”, which also accepts clients that do not present channel binding. Microsoft recommends “Enabled – Always” in environments that do not need to support older clients. On Windows Server 2022 and 2019, administrators enable EPA manually.24
flowchart TB
accTitle: Steps to protect AD CS web enrollment
accDescr: Shows the order of requiring EPA for Certificate Authority Web Enrollment and Certificate Enrollment Web Service, updating web.config, requiring SSL and restarting IIS.
A["Require EPA for Web Enrollment"] --> B["Require EPA for Enrollment Web Service"]
B --> C["Set Always in web.config"]
C --> D["Require SSL and stop HTTP"]
D --> E["Restart IIS"]
E --> F["Test a certificate request to confirm"]
Figure 8: The primary mitigation in KB5005413 is to require EPA and accept only HTTPS.23
Reduce NTLM
In addition to the primary mitigation, KB5005413 recommends disabling NTLM authentication where possible. It lists the following three options, from more secure to less secure.25
- On domain controllers, disable NTLM authentication in the domain with the
Network security: Restrict NTLM: NTLM authentication in this domainpolicy. - On the AD CS servers, set
Network security: Restrict NTLM: Incoming NTLM traffictoDeny All AccountsorDeny All domain accounts. Add any necessary exceptions withAdd server exceptions in this domain. - In IIS running Certificate Authority Web Enrollment and Certificate Enrollment Web Service, set Windows authentication to
Negotiate:Kerberos.
Each of these may stop business traffic that uses NTLM, so do not jump straight to denying. First use auditing to find out which clients and services use NTLM. The procedure is explained in the article on the NTLM deprecation.
In January 2026, Microsoft announced a plan to disable network NTLM by default in the next major release of Windows Server. NTLM will remain in the OS and can be explicitly re-enabled through policy, and the timing is subject to change.26
flowchart TB
accTitle: Three ways to reduce NTLM, in order of security
accDescr: Lists disabling NTLM on domain controllers, denying incoming NTLM on AD CS servers, and Kerberos-only authentication in IIS, in order from most secure.
A["Use auditing to find who uses NTLM"] --> B["1. Disable NTLM authentication in the domain"]
A --> C["2. Deny incoming NTLM on AD CS"]
A --> D["3. Set IIS to Negotiate:Kerberos"]
B ~~~ C
C ~~~ D
Figure 9: KB5005413 lists three options, from the whole domain down to IIS only, in order of security.25
Check the NTLM and AD CS records
When Network security: Restrict NTLM: Audit NTLM authentication in this domain is enabled, NTLM use in the domain is recorded as event 8004 on domain controllers. It is written to the Operational log under Applications and Services Log\Microsoft\Windows\NTLM, and the audit policy itself does not block any traffic.27
On Windows 11 24H2 and Windows Server 2025, enhanced NTLM auditing events are recorded in the same Operational log by default. Clients log 4020 and 4021, servers log 4022 and 4023, and domain controllers log 4030 through 4033. The records include a field showing whether channel binding is supported, and they become warnings when EPA is not supported or insecure. They are also available on Windows Server 2022 and 2019 once updates from October 13, 2026 onward are installed.28
In AD CS, when auditing of Certification Services is enabled, event 4886 is recorded when a certificate request is received and 4887 when it is approved and a certificate is issued.29 Microsoft Defender for Identity has an alert that detects EFS-RPC abuse against domain controllers (external ID 2416), and an ESC8 alert detected by the AD CS sensor.3016
flowchart TB
accTitle: Where the records related to PetitPotam are kept
accDescr: Shows NTLM auditing on domain controllers, the enhanced NTLM events, auditing of certificate requests in AD CS, and Defender for Identity alerts.
A["Domain controllers"] --> A1["Event 8004 in the NTLM Operational log"]
A1 ~~~ B["Each Windows machine"]
B --> B1["Enhanced NTLM events 4020 to 4033"]
B1 ~~~ C["AD CS"]
C --> C1["Certificate request 4886 and issuance 4887"]
C1 ~~~ D["Defender for Identity"]
D --> D1["EFS-RPC abuse 2416 and ESC8"]
Figure 10: Use each record to check who uses NTLM, channel binding support, and certificate requests.27282930
6. Lessons
What follows are design and operational observations drawn from the published history and mitigations.
With PetitPotam, the calls that coerced authentication were stopped one after another by the updates for two CVEs. The 2021 update stopped specific API calls, and the 2022 update rejected anonymous connections to LSARPC.421 Even so, Microsoft asks for the KB5005413 steps with both updates.521 This suggests that, apart from updates that stop the means of coercion, the relay destination services need to be kept in a state where they do not accept relayed NTLM. Even if one means of coercion is stopped, as long as the relay destination accepts unprotected NTLM, another means can lead to the same damage.
When building or operating a service that accepts NTLM, you need to check whether that service can tell relayed authentication apart. What KB5005413 asks for, too, is that services accepting NTLM use protections such as EPA or signing.8 The same question applies if you have in-house business systems that use Windows authentication in IIS.
Even with the defaults of Windows Server 2025, EPA for AD CS stays at “When Supported”. Whether the default is enough has to be decided after checking what your clients support.24
This article explains the mechanism and the mitigations based on published primary sources. No work was done to reproduce the coercion or relay of authentication or the issuance of certificates.
Related Articles
- Why Did Outlook Send an NTLM Response Before the Email Was Even Opened?
- Will NTLM Deprecation Stop Your Business Apps?
- NTLM and Kerberos Explained with Diagrams
- SMB Signing and LDAP Channel Binding
- The Windows Certificate Store in Practice
References
The footnotes on the body text, tables and figures, and the source links in the FAQ, lead to the sections and items of the supporting documents. Where an explanation was assembled from a specification or is a design observation, the footnote says so. All sources were checked on October 31, 2026. Guidance from the original 2021 publication is described separately from the defaults and plans as of the check date.
-
Microsoft Support, KB5005413. Sections referenced: search term in
Summary:You are potentially vulnerable to this attack if, followed byCertificate Authority Web EnrollmentandCertificate Enrollment Web Service. ↩ ↩2 ↩3 -
Microsoft Learn, Certificate Enrollment Web Service overview. Sections referenced:
uses the HTTPS protocol to accept certificate requestsandcomplete certificate enrollment on behalf of the requesterat the beginning, andWindows integrated authentication(Kerberos or NTLM) underAuthentication types. ↩ ↩2 ↩3 -
Microsoft Learn, Certification Authority Web Enrollment. Sections referenced:
browser-based interface to request and renew certificatesat the beginning, andInternet Information Services (IIS) web siteunderCapabilities and common tasks. ↩ ↩2 -
Microsoft Security Response Center, machine-readable data for CVE-2021-36942. Sections referenced: the FAQ in the
articlesarray, search termsAn unauthenticated attacker could call a method on the LSARPC interfaceandOpenEncryptedFileRawA and OpenEncryptedFileRawW. Basis for an unauthenticated call making the domain controller authenticate to another server with NTLM, and for the update stopping these API calls through LSARPC. The article’s description of the destination being a server on the attacker’s side is a rewording of this “authenticate to another server” statement. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 -
Microsoft Security Response Center, machine-readable data for CVE-2021-36942. Sections referenced: the FAQ question about additional steps, search terms
Please see KB5005413andcombined CVSS score would be 9.8. Basis for the KB5005413 steps still being needed after the update, and for the 9.8 rating when combined with NTLM relay to AD CS. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 -
Microsoft Security Response Center, machine-readable data for CVE-2021-36942 (Security Update Guide). Sections referenced:
cveTitle,releaseDate,severity,baseScore,vectorString,exploited. Basis for the name, publication on August 10, 2021, Important, CVSS 3.1 base score 7.5, high impact on confidentiality, and exploitation listed as “No” at the time of publication. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 -
Microsoft Security Response Center, ADV210003: Mitigating NTLM Relay Attacks on Active Directory Certificate Services (AD CS). Sections referenced: the publication date (July 23, 2021) and the reference to KB5005413. ↩ ↩2
-
Microsoft Support, KB5005413: Mitigating NTLM Relay Attacks on Active Directory Certificate Services (AD CS). Sections referenced: search terms in
Summary:PetitPotam is a classic NTLM Relay Attack,services that permit NTLM authentication make use of protections such as Extended Protection for Authentication (EPA) or signing features such as SMB signing, andtakes advantage of servers where Active Directory Certificate Services (AD CS) is not configured with protections. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 -
Microsoft Open Specifications, [MS-EFSR] 2.1 Transport. Sections referenced: search terms
SHOULD be sent using the well-known endpoint \pipe\efsrpc,MAY respond to EFSRPC messages sent using the well-known endpoint \pipe\lsarpc, andnamed pipes over the Server Message Block (SMB) Protocol. ↩ ↩2 ↩3 -
CISA, official JSON of the Known Exploited Vulnerabilities Catalog. Sections referenced:
dateAdded(2021-11-03) andknownRansomwareCampaignUse(Known) in the element whosecveIDisCVE-2021-36942. ↩ ↩2 ↩3 -
Microsoft Security Response Center, Mitigating NTLM Relay Attacks by Default. Section referenced: search term
CVE-2021-36942 (a LSARPC entry point relayed against Active Directory Certificate Services (AD CS)). It is an example followingMicrosoft observed threat actors exploiting services that lack NTLM relaying protectionsin the original. ↩ ↩2 -
Microsoft Security Response Center, machine-readable data for CVE-2021-36942. Section referenced:
affectedProducts. Basis for Windows Server 2008 SP2, 2008 R2 SP1, 2012, 2012 R2, 2016, 2019, and versions 2004 and 20H2 (including Server Core) being listed, and client versions of Windows not being listed. ↩ -
Microsoft Security Response Center, machine-readable data for CVE-2021-36942. Section referenced: FAQ search term
domain controllers should be prioritized. The guidance that all servers are affected and that domain controllers should be prioritized. ↩ ↩2 -
Microsoft Open Specifications, [MS-EFSR] 3.1.4.2 EFSRPC Interface. Sections referenced:
EfsRpcOpenFileRaw(Opnum 0) in the method list, andUsed to open an encrypted object on the server for backup or restore. ↩ -
Microsoft Security Response Center, Mitigating NTLM Relay Attacks by Default. Sections referenced: the two stages in
Background,Coercing a victim to authenticateandRelaying the authentication. The description of relaying the challenge and response summarizes these two stages in the same form as the preceding Outlook article. ↩ -
Microsoft Learn, Security alerts in Microsoft Defender for Identity (classic). Sections referenced: the description of
Suspicious Domain Controller certificate request (ESC8)andonly supported by Defender for Identity sensors on AD CS. The article’s statement that a certificate request in the domain controller’s name could go through with relayed authentication was assembled fromon behalf of the requesterin the Certificate Enrollment Web Service overview and from the name of this alert. Microsoft’s documents do not explicitly state certificate issuance as a result of PetitPotam. ↩ ↩2 ↩3 -
Microsoft Security Response Center, Mitigating NTLM Relay Attacks by Default. Sections referenced: search terms
authenticate and perform actions on behalf of the victimandinitial foothold for further domain compromise. ↩ ↩2 ↩3 -
Microsoft Learn, [Extended Protection
](https://learn.microsoft.com/en-us/iis/configuration/system.webserver/security/authentication/windowsauthentication/extendedprotection/). Sections referenced: `mitigate authentication relay or "man in the middle" attacks`, `Channel Binding Token (CBT), which is primarily used for SSL connections` and `Service-binding information` in `Overview`, and the description of `Require` for the `tokenChecking` attribute, `does not provide support for clients that do not support extended protection`. The article's statement that relayed authentication is not bound to the TLS channel with AD CS was assembled from this CBT mechanism. ↩ ↩2 ↩3 ↩4 -
Microsoft Security Advisory, 973811: Extended Protection for Authentication. Sections referenced: search terms
bound to both the Service Principal Names (SPN)andouter Transport Layer Security (TLS) channel. ↩ ↩2 -
Microsoft Support, KB5021989: Extended Protection for Authentication. Section referenced: search term
does not apply to NTLMv1. ↩ -
Microsoft Security Response Center, CVE-2022-26925. Sections referenced: the publication date (May 10, 2022), the confirmed exploitation, FAQ search terms
coerce the domain controller to authenticate to the attacker using NTLManddetects anonymous connection attempts in LSARPC and disallows it, and the references to ADV210003 and KB5005413. ↩ ↩2 ↩3 ↩4 ↩5 -
Microsoft Security Response Center, machine-readable data for CVE-2021-36942. Section referenced: FAQ search term
will no longer work on Windows Server 2008 SP2. ↩ -
Microsoft Support, KB5005413. Section referenced:
Primary mitigationunderMitigation. Search termsenabling EPA and disabling HTTP,Required being the more secure and recommended option,extendedProtectionPolicy,The Always setting is used when the UI is set to Required,Enable Require SSL, andiisreset /restart. ↩ ↩2 -
Microsoft Security Response Center, Mitigating NTLM Relay Attacks by Default. Sections referenced: search terms
ships with EPA enabled by default for both AD CS and LDAP,Enabled - When Supported,Enabled – Always, andWindows Server 2022 and 2019 can manually enable EPA for AD CS. ↩ ↩2 -
Microsoft Support, KB5005413. Section referenced: the three items under
listed in order from more secure to less secureinAdditional mitigation. Policy names and values are given exactly as written in KB5005413. The article’s order of auditing first is an operational suggestion derived from the fact that the deny settings stop traffic that uses NTLM. ↩ ↩2 -
Microsoft Tech Community, Advancing Windows security: Disabling NTLM by default. Sections referenced: Phase 3 in the January 29, 2026 article, search terms
Network NTLM will be disabled by default,can be explicitly re-enabled via policy, andsubject to change. ↩ -
Microsoft Learn, Network security: Restrict NTLM: Audit NTLM authentication in this domain, and
8004: NTLM Authenticationin Microsoft Defender for Identity’s event collection settings. For the location of the Operational log and the fact that auditing does not block traffic, seeApplications and Services Log\Microsoft\Windows\NTLManddoesn't actually block any trafficin Audit Incoming NTLM Traffic. Policy names and log locations are given exactly as written in the documents. ↩ ↩2 -
Microsoft Support, Overview of NTLM auditing enhancements in Windows 11, version 24H2 and Windows Server 2025. Sections referenced: event IDs 4020/4021, 4022/4023, 4030/4031 and 4032/4033,
By default, the events are enabled,Enhanced Protection for Authentication is marked as not supported or insecure, theChannel Bindingfield in each log, andOctober 13, 2026for Windows Server 2022 and 2019. The page’s change history also mentions Windows Server 2016 and 2019, but the article follows the list of applicable versions in the body of the page. ↩ ↩2 -
Microsoft Learn, Audit Certification Services. Sections referenced:
4886: Certificate Services received a certificate requestand4887: Certificate Services approved a certificate request and issued a certificatein the event list. ↩ ↩2 -
Microsoft Learn, What’s new archive for Microsoft Defender for Identity. Sections referenced:
Suspicious network connection over Encrypting File System Remote Protocol (external ID 2416)andassociated with the recent PetitPotam attackinDefender for Identity release 2.158(August 8, 2021). ↩ ↩2
Related Articles
Recent articles sharing the same tags. Deepen your understanding with closely related topics.
How Could Standard Users Read the SAM in HiveNightmare?
HiveNightmare (CVE-2021-36934) let standard users read the SAM and other hives on Windows 10. How shadow copies became the read path, the...
SMB Signing and LDAP Channel Binding — Closing the "Other Half" of NTLM Defense in Practice
SMB signing and LDAP signing/channel binding limit relay damage while you retire NTLM. We cover OS defaults, audit events, enforcement, a...
NTLM and Kerberos Explained with Diagrams — Why Authentication Falls Back to NTLM
Diagrams compare NTLM and Kerberos: challenge/response, TGTs and service tickets, Negotiate's NTLM fallback without an SPN, relay attacks...
Will NTLM Deprecation Stop Your Business Apps? — How to Collect Audit Logs, and the Order in Which to Kill Dependencies
This article covers how to find where Windows and business apps depend on NTLM: audit policies, NTLM/Operational events 8001-8004, causes...
Why a Windows File Share Works Sometimes and Fails at Other Times — Troubleshooting Kerberos, NTLM, and Credentials
Diagnose intermittent Windows file-share access using symptoms and logs. Check names versus IP addresses, app-only failures, blank passwo...
Related Topics
These are topic pages close to this theme. Starting from the article, you can go on to related services and other articles.
Windows Technical Topics
Entry point collecting technical topics on Windows development, bug investigation, and use of existing assets.
Services Connected to This Topic
This article leads to the following service pages. Start from the entry point closest to your situation.
Windows App Development
We support Windows software development for business applications, device integration, communication tools, and more.
Frequently Asked Questions
Questions commonly asked at the time of consultation about the topic of this article.
- Is installing the August 2021 security update enough to deal with PetitPotam?
- No. Microsoft states that in addition to the update, AD CS must be protected as described in KB5005413. The update stopped specific API calls through LSARPC; the state in which AD CS accepts relayed NTLM has to be fixed separately.
References
- Are environments that do not use AD CS affected?
- KB5005413 identifies environments that use Certificate Authority Web Enrollment or Certificate Enrollment Web Service in AD CS as potentially affected. However, Microsoft advises applying the CVE-2021-36942 update to all Windows Servers, starting with domain controllers.
References
- Is AD CS on Windows Server 2025 safe without changing any settings?
- On Windows Server 2025, EPA for AD CS is enabled by default, but the default value is “Enabled - When Supported”, which also accepts clients that do not present channel binding. Microsoft recommends the stronger “Enabled – Always” in environments that do not need to support older clients.
References
- Does enabling EPA also prevent relaying NTLMv1?
- No. Microsoft explains that EPA applies to NTLMv2, Kerberos, Digest and Negotiate authentication, and does not apply to NTLMv1. Use of NTLMv1 has to be identified and stopped separately.
References
Author Profile
Profile page for the article author.
Go Komura
Representative of KomuraSoft LLC
Focused on Windows software development, technical consulting, and bug investigation, with particular strength in projects where existing assets remain and in investigating failures whose cause is hard to see.