How Could PetitPotam Relay a Domain Controller's Authentication to AD CS?

· · Windows, Information Security, Active Directory, AD CS, NTLM, CVE

Post on X
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

The two stages that make up PetitPotamShows 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.NoHas EPA or similarCall an EFSRPC method through LSARPCDomain controller sends NTLM authenticationAttacker relays it to AD CS web enrollmentDoes AD CS have relay protection?Authenticated as the domain controllerRelayed 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

Conditions under which relaying to AD CS worksRelaying works when NTLM is usable in the domain, an AD CS web enrollment role service exists, and it has no protection against NTLM relay.NoYesNoWeb Enrollment or Enrollment Web ServiceYesNoIs NTLM authentication usable in the domain?No authentication to relayIs there a web enrollment role service?Outside the scope of KB5005413Is there protection such as EPA?Relayed authentication is rejectedRelayed 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

The two endpoints of MS-EFSRShows that EFSRPC messages are normally sent to the named pipe efsrpc, and that the server may also respond to messages sent to lsarpc.EFSRPC messagesSMB named pipes\pipe\efsrpc (SHOULD be used)\pipe\lsarpc (MAY respond)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

How NTLM authentication starts from an unauthenticated callShows the flow from the attacker calling a method through LSARPC to the domain controller starting NTLM authentication to another server.Attacker calls an LSARPC methodDomain controller connects to another serverNTLM authentication as the domain controllerAttacker 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

How a domain controller's authentication is relayed to AD CSShows 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.Domain controller's NTLM authenticationAttacker relays itAD CS web enrollmentRelays the challenge and returns the responseAD CS treats the requester as the domain controllerCertificate 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

Why EPA rejects relayed authenticationShows 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.BoundNot boundRequiredDisabledIs the authentication bound to the TLS channel with AD CS?Accepted as a legitimate connectionRelayed authenticationIs EPA required?Authentication rejectedAccepted 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

Impact when the coercion vulnerability meets missing AD CS protectionShows 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.NoYesCoercion through CVE-2021-36942CVSS 7.5 on its ownDoes the target AD CS have protection?CVSS 9.8 in combinationAuthenticated as the domain controllerFoothold for further domain compromiseThe 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

  1. In IIS Manager, enable EPA for Certificate Authority Web Enrollment. Set the value to Required, which is the more secure and recommended option.
  2. Likewise, set EPA to Required for Certificate Enrollment Web Service.
  3. For Certificate Enrollment Web Service, also add <extendedProtectionPolicy> to %windir%\systemdata\CES\<CA name>_CES_Kerberos\web.config. When IIS is set to Required, the value is Always.
  4. Enable Require SSL so that only HTTPS connections are accepted.
  5. Run iisreset /restart from 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

Steps to protect AD CS web enrollmentShows the order of requiring EPA for Certificate Authority Web Enrollment and Certificate Enrollment Web Service, updating web.config, requiring SSL and restarting IIS.Require EPA for Web EnrollmentRequire EPA for Enrollment Web ServiceSet Always in web.configRequire SSL and stop HTTPRestart IISTest 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

  1. On domain controllers, disable NTLM authentication in the domain with the Network security: Restrict NTLM: NTLM authentication in this domain policy.
  2. On the AD CS servers, set Network security: Restrict NTLM: Incoming NTLM traffic to Deny All Accounts or Deny All domain accounts. Add any necessary exceptions with Add server exceptions in this domain.
  3. 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

Three ways to reduce NTLM, in order of securityLists disabling NTLM on domain controllers, denying incoming NTLM on AD CS servers, and Kerberos-only authentication in IIS, in order from most secure.Use auditing to find who uses NTLM1. Disable NTLM authentication in the domain2. Deny incoming NTLM on AD CS3. Set IIS to Negotiate:Kerberos

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

Where the records related to PetitPotam are keptShows NTLM auditing on domain controllers, the enhanced NTLM events, auditing of certificate requests in AD CS, and Defender for Identity alerts.Domain controllersEvent 8004 in the NTLM Operational logEach Windows machineEnhanced NTLM events 4020 to 4033AD CSCertificate request 4886 and issuance 4887Defender for IdentityEFS-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.

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.

  1. Microsoft Support, KB5005413. Sections referenced: search term in Summary: You are potentially vulnerable to this attack if, followed by Certificate Authority Web Enrollment and Certificate Enrollment Web Service. ↩ ↩2 ↩3

  2. Microsoft Learn, Certificate Enrollment Web Service overview. Sections referenced: uses the HTTPS protocol to accept certificate requests and complete certificate enrollment on behalf of the requester at the beginning, and Windows integrated authentication (Kerberos or NTLM) under Authentication types. ↩ ↩2 ↩3

  3. Microsoft Learn, Certification Authority Web Enrollment. Sections referenced: browser-based interface to request and renew certificates at the beginning, and Internet Information Services (IIS) web site under Capabilities and common tasks. ↩ ↩2

  4. Microsoft Security Response Center, machine-readable data for CVE-2021-36942. Sections referenced: the FAQ in the articles array, search terms An unauthenticated attacker could call a method on the LSARPC interface and OpenEncryptedFileRawA 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

  5. Microsoft Security Response Center, machine-readable data for CVE-2021-36942. Sections referenced: the FAQ question about additional steps, search terms Please see KB5005413 and combined 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

  6. 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

  7. 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

  8. 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, and takes advantage of servers where Active Directory Certificate Services (AD CS) is not configured with protections. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9

  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, and named pipes over the Server Message Block (SMB) Protocol. ↩ ↩2 ↩3

  10. CISA, official JSON of the Known Exploited Vulnerabilities Catalog. Sections referenced: dateAdded (2021-11-03) and knownRansomwareCampaignUse (Known) in the element whose cveID is CVE-2021-36942. ↩ ↩2 ↩3

  11. 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 following Microsoft observed threat actors exploiting services that lack NTLM relaying protections in the original. ↩ ↩2

  12. 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. ↩

  13. 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

  14. Microsoft Open Specifications, [MS-EFSR] 3.1.4.2 EFSRPC Interface. Sections referenced: EfsRpcOpenFileRaw (Opnum 0) in the method list, and Used to open an encrypted object on the server for backup or restore. ↩

  15. Microsoft Security Response Center, Mitigating NTLM Relay Attacks by Default. Sections referenced: the two stages in Background, Coercing a victim to authenticate and Relaying the authentication. The description of relaying the challenge and response summarizes these two stages in the same form as the preceding Outlook article. ↩

  16. Microsoft Learn, Security alerts in Microsoft Defender for Identity (classic). Sections referenced: the description of Suspicious Domain Controller certificate request (ESC8) and only 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 from on behalf of the requester in 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

  17. Microsoft Security Response Center, Mitigating NTLM Relay Attacks by Default. Sections referenced: search terms authenticate and perform actions on behalf of the victim and initial foothold for further domain compromise. ↩ ↩2 ↩3

  18. 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

  19. Microsoft Security Advisory, 973811: Extended Protection for Authentication. Sections referenced: search terms bound to both the Service Principal Names (SPN) and outer Transport Layer Security (TLS) channel. ↩ ↩2

  20. Microsoft Support, KB5021989: Extended Protection for Authentication. Section referenced: search term does not apply to NTLMv1. ↩

  21. 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 NTLM and detects anonymous connection attempts in LSARPC and disallows it, and the references to ADV210003 and KB5005413. ↩ ↩2 ↩3 ↩4 ↩5

  22. 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. ↩

  23. Microsoft Support, KB5005413. Section referenced: Primary mitigation under Mitigation. Search terms enabling 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, and iisreset /restart. ↩ ↩2

  24. 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, and Windows Server 2022 and 2019 can manually enable EPA for AD CS. ↩ ↩2

  25. Microsoft Support, KB5005413. Section referenced: the three items under listed in order from more secure to less secure in Additional 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

  26. 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, and subject to change. ↩

  27. Microsoft Learn, Network security: Restrict NTLM: Audit NTLM authentication in this domain, and 8004: NTLM Authentication in Microsoft Defender for Identity’s event collection settings. For the location of the Operational log and the fact that auditing does not block traffic, see Applications and Services Log\Microsoft\Windows\NTLM and doesn't actually block any traffic in Audit Incoming NTLM Traffic. Policy names and log locations are given exactly as written in the documents. ↩ ↩2

  28. 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, the Channel Binding field in each log, and October 13, 2026 for 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

  29. Microsoft Learn, Audit Certification Services. Sections referenced: 4886: Certificate Services received a certificate request and 4887: Certificate Services approved a certificate request and issued a certificate in the event list. ↩ ↩2

  30. 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) and associated with the recent PetitPotam attack in Defender for Identity release 2.158 (August 8, 2021). ↩ ↩2

Recent articles sharing the same tags. Deepen your understanding with closely related topics.

These are topic pages close to this theme. Starting from the article, you can go on to related services and other articles.

This article leads to the following service pages. Start from the entry point closest to your situation.

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.

Back to the Blog