main logo icon

Published on

December 4, 2026

|

21 min read

PetitPotam and Authentication Coercion Explained: Detection and Fixes (2026)

What PetitPotam and authentication coercion are and why they still work in 2026: the four RPC coercion paths, CVE-2021-36942 and its successors, Microsoft's KB5005413 and later hardening, the event IDs that detect coercion and the settings that stop it.

Arafat Afzalzada

Arafat Afzalzada

Founder

Network Security

Summarize with AI

ChatGPTPerplexityGeminiGrokClaude

TL;DR

PetitPotam is an authentication coercion technique, public since July 2021, that makes a Windows server, including a domain controller, start an NTLM logon to a host the attacker chooses, by calling a method of the Encrypting File System Remote Protocol (MS-EFSRPC). No credentials were needed against a domain controller until Microsoft's August 2021 and May 2022 updates (CVE-2021-36942 and CVE-2022-26925). Coercion is the first half of an NTLM relay. Microsoft describes a relay as "Coercing a victim to authenticate to an arbitrary endpoint" and then "Relaying the authentication against a vulnerable target". MITRE ATT&CK v20 tracks coercion as T1187, Forced Authentication. PetitPotam is one of a class. The print spooler (MS-RPRN), the DFS namespace service (MS-DFSNM, used by DFSCoerce) and the file server shadow copy agent (MS-FSRVP) expose similar calls. Microsoft says it fixes "specific instances" of coercion while attackers keep relaying "against a vulnerable server", so the durable control is on the relay target. It is still in use. CISA's exploited vulnerabilities catalog lists CVE-2021-36942 (added 3 November 2021, known ransomware use), CVE-2022-26925 (July 2022) and CVE-2025-33073 (October 2025), and CISA red teams coerced domain controllers with DFSCoerce in assessments published in 2023 and 2024. On 10 November 2026 Microsoft began a two-phase NTLM signing change to reduce relay exposure. Detection: a domain controller's computer account logging on over NTLM from an address that is not its own (event 4624 on the target, 4776 on the domain controller), enhanced NTLM auditing events 4020 to 4033, Defender for Identity alerts for PetitPotam, DFSCoerce (2426) and CVE-2025-33073, and the named-pipe access that every coercion call makes (event 5145). Fixes: patch the coercion CVEs, put Extended Protection for Authentication on AD CS web enrolment and every other NTLM-accepting web service, require SMB and LDAP signing and channel binding, disable the print spooler on domain controllers, filter the coercion RPC interfaces, block outbound SMB, and audit then restrict NTLM. Stingrai's Active Directory and internal network assessments test every coercion path and prove what each one reaches.

PetitPotam is an authentication coercion technique that makes a Windows server, including a domain controller, start an NTLM logon to a host the attacker chooses, by calling one method of a remote procedure call interface that the server exposes by design. It matters because that coerced logon is the first half of an NTLM relay, and a relayed domain controller logon can end in control of the domain.

Microsoft's advisory of 23 July 2021 called PetitPotam "a classic NTLM Relay Attack", patched the specific call as CVE-2021-36942 on 10 August 2021, and noted that the combined CVSS score "would be 9.8" when it is chained with a relay to Active Directory Certificate Services (AD CS). The class did not go away: Microsoft closed a second unauthenticated coercion path through the same LSARPC interface in May 2022, a third coercion flaw in June 2025, and on 10 November 2026 began a two-phase NTLM signing change aimed at "reducing exposure to relay attacks".

This guide explains what authentication coercion is at the protocol level, how PetitPotam and its relatives work, why they still work in 2026, what Microsoft has changed, how to detect a coercion attempt and how to close the paths. It is written for the people who run Active Directory. It contains no attack commands, tool syntax or payloads.

Quick answer. Authentication coercion is any method that forces a machine to authenticate to a host the attacker picks. PetitPotam does it through MS-EFSRPC; the print spooler, DFS namespace and file server VSS interfaces can do the same. The coerced NTLM logon is then relayed to AD CS web enrolment, LDAP or SMB on a server that does not check where the logon came from. The fix is to patch the known coercion calls, put Extended Protection for Authentication and signing on every relay target, remove unneeded services such as the print spooler from domain controllers, filter the coercion interfaces, and reduce NTLM. Stingrai's Active Directory assessments test every coercion path from an ordinary domain account and prove what each one reaches.

PetitPotam and authentication coercion at a glance

Question

Short answer

What is authentication coercion?

Making a machine start an authentication to a host of the attacker's choosing. MITRE ATT&CK tracks it as T1187, Forced Authentication.

What is PetitPotam?

A July 2021 technique that coerces a Windows host through the Encrypting File System Remote Protocol, described by its author as a way "to coerce Windows hosts to authenticate to other machines via MS-EFSRPC". Microsoft's fix is CVE-2021-36942.

Who can do it?

Before the August 2021 and May 2022 updates, an unauthenticated attacker on the network. Since the May 2022 update, which in Microsoft's words "detects anonymous connection attempts in LSARPC and disallows it" (CVE-2022-26925), most paths need a domain account, which any phished user supplies.

What does the attacker get?

A live NTLM logon from the coerced machine's computer account, usable only for the moment it happens, by relaying it. Nothing is cracked.

What is it worth?

A domain controller's logon relayed to AD CS web enrolment gives a certificate for the domain controller. Microsoft's Defender for Identity documentation says such relay attacks "can lead to complete domain takeover".

What stops it?

Patches for the known calls, Extended Protection for Authentication and signing on every relay target, no print spooler on domain controllers, RPC filters on the coercion interfaces, no outbound SMB, and less NTLM.

How authentication coercion works

Windows servers expose dozens of remote procedure call (RPC) interfaces over named pipes so that administrators and other servers can manage them. A handful of those interfaces take a file path or a server name as an argument and act on it. When the path points at a remote host, the server opens a connection to that host and, as the connection is set up, authenticates with its own computer account. If the caller supplies a path on a host the attacker controls, the server authenticates to the attacker. That is the whole trick. No bug in the cryptography is involved; the server does what the protocol tells it to.

Four protocols account for most coercion in practice. Each one is documented by Microsoft, and the descriptions below are the specifications' own.

Protocol

What it is for (Microsoft's description)

Endpoint

Best-known use

MS-EFSRPC, Encrypting File System Remote Protocol

"performs maintenance and management operations on encrypted data that is stored remotely and accessed over a network"

The efsrpc named pipe; servers "MAY respond to EFSRPC messages sent using the well-known endpoint \pipe\lsarpc"

PetitPotam (2021)

MS-RPRN, Print System Remote Protocol

"defines the communication of print job processing and print system management between a print client and a print server"

The spoolss named pipe

The "printer bug": the specification says the server makes RPC calls back to the client for printer change notifications

MS-DFSNM, DFS Namespace Management Protocol

"provides an RPC interface for administering DFS configurations"

The NETDFS named pipe

DFSCoerce, used by CISA red teams in assessments published in 2023 and 2024

MS-FSRVP, File Server Remote VSS Protocol

"used for creating shadow copies of file shares on a remote computer"

The FssagentRpc named pipe, available "only on RPC over named pipes"

Its path-check method takes "The full path of the share in UNC format", which the server then verifies, so a path on the attacker's host is enough where the File Server VSS Agent service runs

In the case of MS-EFSRPC, the method in question opens an encrypted file for backup. MITRE's description of T1187 puts it plainly: using that function, "an adversary can send SMB requests to a remote system's MS-EFSRPC interface and force the victim computer to initiate an authentication procedure and share its authentication details". In the case of MS-RPRN, the print server is designed to call the client back: the specification states that an endpoint with the same name "MUST also be used for RPC calls made from the server to send printer change notifications back to the client", and that "The client MUST accept connections without authentication from the server for these methods". A print server that calls back whoever asks is a coercion source by design, and a domain controller running the spooler is a print server.

Diagram of authentication coercion in five stages, with what the domain can see at each stage

Figure 1: Authentication coercion in five stages, and what the domain can see at each one (Stingrai's view). Sources: Microsoft Security Response Center, Mitigating NTLM Relay Attacks by Default and MITRE ATT&CK T1187.

What the attacker needs

Three things, and none of them is an exploit. A network position from which the target server's named pipes are reachable, which is any workstation or VPN session on the internal network. Permission to call the interface, which since the 2021 and 2022 updates usually means any domain account, and on an unpatched or misconfigured server means none. And somewhere for the coerced logon to go: a relay target that accepts NTLM without checking where it came from, which is the subject of Stingrai's guide to the ntlm relay attack.

Why a domain controller's logon is the prize

Every coercion gives the attacker a machine account logon. On a file server that is a nuisance; on a domain controller it is the key to the directory, because the domain controller's account can request a certificate for itself from AD CS, read the directory over LDAP and, through certain delegation settings, obtain a ticket for itself. CISA's red team showed the chain in 2023: it coerced a domain controller into authenticating to a SharePoint server with unconstrained delegation, "performed an NTLM-relay attack to obtain the DC's TGT", and then used that ticket to extract credential material from the domain. The coercion and the relay are two halves of one attack. This guide covers the first half; the linked guide covers the second.

The 2021 PetitPotam disclosure and CVE-2021-36942

PetitPotam was published in July 2021 as an open-source proof of concept whose README describes it as a tool "to coerce Windows hosts to authenticate to other machines via MS-EFSRPC EfsRpcOpenFileRaw or other functions", adds that it uses the LSARPC named pipe "because it's more prevalent", and notes that "It doesn't need credentials against Domain Controller". A month earlier, on 17 June 2021, Will Schroeder and Lee Christensen of SpecterOps had published Certified Pre-Owned, which showed that the certificate authority's HTTP enrolment interfaces "are all vulnerable to NTLM relay attacks" because "none of them have any NTLM relay protections enabled by default" (the path it labelled ESC8). PetitPotam supplied the missing piece: a way to make a domain controller authenticate to the attacker without any credentials, so that the attacker could relay that logon to web enrolment and receive a certificate in the domain controller's name.

Microsoft responded in two steps. On 23 July 2021 it published ADV210003 and KB5005413, which say that "PetitPotam takes advantage of servers where Active Directory Certificate Services (AD CS) is not configured with protections for NTLM Relay Attacks" and recommend "enabling EPA and disabling HTTP on AD CS servers". On 10 August 2021 it released the update for CVE-2021-36942, which "blocks the affected API calls OpenEncryptedFileRawA and OpenEncryptedFileRawW through LSARPC interface". Microsoft rated that flaw 7.5 on its own and 9.8 in combination with the AD CS relay, and told administrators that "domain controllers should be prioritized". CISA added CVE-2021-36942 to its Known Exploited Vulnerabilities catalog on 3 November 2021, where it is marked as known to be used in ransomware campaigns.

The patch closed one method through one pipe. The README's own note, that the patch was "incomplete", proved right in May 2022, when Microsoft patched CVE-2022-26925, another LSA spoofing flaw in which "An unauthenticated attacker could call a method on the LSARPC interface and coerce the domain controller to authenticate to the attacker using NTLM", this time marked as exploited. That update "detects anonymous connection attempts in LSARPC and disallows it", which is why unauthenticated coercion is now rare on patched systems, and why authenticated coercion is the version an assessment tests for.

Why authentication coercion still works in 2026

Four reasons, each with Microsoft's own words behind it.

Microsoft fixes instances, not the class. The Security Response Center wrote in December 2024: "While we actively fix specific instances of NTLM authentication coercion, attackers often use these vulnerabilities to relay authentication against a vulnerable server", in a post titled Mitigating NTLM Relay Attacks by Default that moved the defence to the relay target. The MS-RPRN and MS-DFSNM behaviours are not vulnerabilities in Microsoft's accounting; they are the protocols working as specified.

Any domain account is enough. The 2021 and 2022 updates removed anonymous access to the LSARPC coercion calls. They did not remove authenticated access, and an attacker who has phished one user, or who sits on one compromised workstation, has a domain account. Microsoft's Defender for Identity guidance on the print spooler says it directly: "any authenticated user can remotely connect to a domain controller's print spooler service", and these actions "expose the domain controller computer account credential".

Relay protections are still not everywhere. Windows Server 2025 "ships with EPA enabled by default for both AD CS and LDAP", but Microsoft notes that "the current default setting for EPA in Server 2025 is Enabled - When Supported", and that a "stronger EPA security setting for enterprises who do not need to support legacy clients" is the Always setting. Servers on Windows Server 2022 and earlier did not receive those defaults through updates. In October 2023, NSA and CISA listed AD CS servers "running with web-enrollment enabled" among the ten most common misconfigurations their assessment teams see: "If web-enrollment is enabled, unauthenticated actors can coerce a server to authenticate to an actor-controlled computer, which can relay the authentication to the ADCS web-enrollment service and obtain a certificate".

NTLM is deprecated, not gone. Microsoft's deprecated features list says all versions of NTLM "including LANMAN, NTLMv1, and NTLMv2" are deprecated, and that "Use of NTLM will continue to work in the next release of Windows Server and the next annual release of Windows". The September 2026 NTLM retirement FAQ describes NTLM as "a leading vector for credential relay and pass-the-hash attacks that continue to drive real-world breaches" and puts default disablement at "the next major release of Server and Client (subject to change)". A coerced logon has somewhere to go for as long as NTLM is accepted.

Evidence from 2021 to 2026

Date

Source

What it reported

23 July 2021

Microsoft, ADV210003

"PetitPotam is a classic NTLM Relay Attack". Organizations running Certificate Authority Web Enrollment or the Certificate Enrollment Web Service are "potentially vulnerable".

10 August 2021

Microsoft, CVE-2021-36942

CVSS 7.5, publicly disclosed, "Exploitation More Likely". Combined score "would be 9.8" with the AD CS relay.

3 November 2021

CISA, Known Exploited Vulnerabilities catalog

CVE-2021-36942 added: an unauthenticated attacker can "coerce the domain controller to authenticate against another server using NTLM". Known ransomware campaign use.

10 May 2022

Microsoft, CVE-2022-26925

A second LSARPC coercion flaw, CVSS 8.1, with exploitation detected. CISA added it to the catalog on 1 July 2022 with a warning that the update breaks PIV and CAC authentication on domain controllers without extra configuration.

28 February 2023

CISA red team assessment, AA23-059A

The team ran DFSCoerce, "which prompted DC authentication to the SharePoint server using the server's NTLM hash", relayed it to obtain the domain controller's ticket, and then harvested credential material with DCSync.

5 October 2023

NSA and CISA, AA23-278A

Web enrolment coercion named among the top ten misconfigurations. Advice: "Disable NTLM on all ADCS servers" and "If not needed, disable web-enrollment".

21 November 2024

CISA red team assessment, AA24-326A

In a critical infrastructure organization, the team ran DFSCoerce "to force the domain controller to authenticate" to a server it had taken over, captured the domain controller's ticket there, and used it for DCSync against privileged accounts and the krbtgt account.

9 December 2024

Microsoft Security Response Center

"Microsoft observed threat actors exploiting services that lack NTLM relaying protections", including "a LSARPC entry point relayed against Active Directory Certificate Services (AD CS)".

10 June 2025

Microsoft, CVE-2025-33073

An SMB client flaw, CVSS 8.8, in which "an attacker could execute a specially crafted script to coerce the victim machine to connect back to the attacker's SMB Server using SMB and authenticate", gaining SYSTEM. CISA added it to the catalog on 20 October 2025.

16 November 2026 (page date)

Microsoft Defender for Identity alert reference

Documents the "Suspected PetitPotam coercion attack" alert, in which an EFSRPC request "coerced a targeted device to authenticate to an attacker-controlled host", and an alert for CVE-2025-33073 exploitation attempts that notes the victim "could be coerced to authenticate (for example, through PetitPotam)".

Timeline from July 2021 to May 2027 of coercion evidence and Microsoft's changes

Figure 2: Authentication coercion in attacks and advisories, and Microsoft's changes, July 2021 to May 2027. Sources: CISA, Known Exploited Vulnerabilities catalog, CISA, AA23-059A, Microsoft Security Response Center and Microsoft, KB5135557.

What Microsoft changed, 2021 to 2027

Date

Change

Source

23 July 2021

KB5005413: EPA on Certificate Authority Web Enrollment and the Certificate Enrollment Web Service, "Required being the more secure and recommended option"; Require SSL; disable NTLM for IIS on AD CS servers

KB5005413

10 August 2021

CVE-2021-36942: the two raw-file-open calls blocked through the LSARPC interface

CVE-2021-36942

10 May 2022

CVE-2022-26925: anonymous connection attempts to LSARPC detected and refused

CVE-2022-26925

June 2024

NTLM deprecated in all versions

Deprecated features for Windows client

1 November 2024

Windows Server 2025 (general availability per Microsoft's lifecycle page): EPA on by default (When Supported) for AD CS and LDAP; LDAP signing required for new deployments; channel binding audit events 3074 and 3075

Microsoft Security Response Center, What's new in Windows Server 2025

10 June 2025

CVE-2025-33073: the SMB client coercion flaw patched

CVE-2025-33073

29 January 2026

Three-phase roadmap to disable NTLM by default, naming "relay" among NTLM's risks

Disabling NTLM by default

13 October 2026

Enhanced NTLM auditing extended to Windows Server 2022 and 2019

NTLM auditing enhancements

10 November 2026

NTLM signing phase one: Windows clients "begin offering NTLM signing on all connections by default"

KB5135557

May 2027 (planned)

NTLM signing phase two: "Windows servers begin requiring NTLM signing by default"

KB5135557

Two of these deserve a closer look. The November 2026 change is about NTLM's own message signing, not SMB signing: Microsoft says the updates "help ensure that authenticated NTLM sessions always establish a cryptographic session key and negotiate real message signing, reducing exposure to relay attacks". Servers log event 4023 with the negotiated flags, and Microsoft's advice is to "Enable ServerRequireNtlmSign=1 once sufficient Event ID: 4023 auditing shows no unsigned connections". A coerced logon that is relayed to a server requiring NTLM signing yields a session the attacker cannot sign, as with SMB signing today.

The January 2026 roadmap matters for the long run. Its third phase says "Network NTLM will be disabled by default" in the next major Windows Server release, while noting NTLM "can be explicitly re-enabled via policy". A domain that cannot use NTLM cannot have its logons relayed, which is why every step that reduces NTLM also reduces what coercion is worth.

How coercion differs from its neighbours

Coercion is often conflated with the relay it feeds and with the other ways attackers obtain a victim's logon. They are different problems with different owners.

Technique

What the attacker does

What makes it possible

What stops it

Stingrai's guide

Authentication coercion (PetitPotam, printer bug, DFSCoerce)

Calls a legitimate RPC method so that a server authenticates outward to the attacker

Interfaces that take a remote path or callback and act on it; reachable named pipes; a domain account, or none on unpatched servers

Patches, RPC filters, no print spooler on domain controllers, no outbound SMB

This guide

NTLM relay

Forwards the coerced or captured logon to a server that does not check where it came from

Relay targets without signing, channel binding or EPA

Signing, channel binding, EPA, less NTLM

ntlm relay attack

Relay to AD CS web enrolment (ESC8)

Relays a domain controller's logon to the certificate authority's HTTP enrolment pages

Web enrolment over HTTP, or HTTPS without EPA

EPA Required, HTTPS only, or remove the role

active directory certificate services security assessment

Relay to SMB

Relays the logon to a file server or workstation to run code or read files

SMB servers that do not require signing

Require SMB signing on servers and clients

smb signing

Name resolution poisoning

Answers a workstation's LLMNR, mDNS or NetBIOS name lookup to receive its logon

Broadcast name resolution left on

Turn those protocols off; ATT&CK T1557.001

Covered in the NTLM relay guide

Lure files

A document, shortcut or message that makes a user's machine authenticate to an attacker's server

Clients that follow external paths; outbound SMB or WebDAV allowed

Block outbound SMB and WebDAV, patch the file-handling CVEs; ATT&CK T1187

Covered in the NTLM relay guide

The difference that matters for a defender: poisoning and lure files need a user to do something, and give the attacker a user's logon. Coercion needs nothing from anyone, and gives the attacker a server's logon. ATT&CK files lure files and coercion both under T1187 because the outcome is the same, forced authentication, but coercion is the one that reaches domain controllers.

How to detect authentication coercion

A coercion attempt leaves marks in three places: on the coerced server (the inbound RPC call), on the network (the server's outbound connection to a host it has no reason to talk to), and on the relay target (a logon by a computer account from the wrong address). The signals below are the ones a mid-market security team can collect without new tooling, plus the Defender for Identity alerts for those who have it.

Signal

Where to look

Why it matters

A domain controller's or server's computer account logging on over NTLM from an address that is not that machine

Event 4624 on the relay target: Logon Type 3, Authentication Package NTLM, an account name ending in $, with the Workstation Name and Source Network Address fields

The outcome of a successful coercion and relay. A domain controller's account has no reason to log on from a workstation's address.

NTLM validation of a computer account at the domain controller

Event 4776, which "generates every time that a credential validation occurs using NTLM authentication", with the Source Workstation field

Catches the relayed logon being validated, whichever server it was relayed to.

The coerced server authenticating outward over NTLM

Enhanced NTLM auditing: events 4020 and 4021 on the client side ("This machine attempted to authenticate to a remote resource via NTLM") and 4030 to 4033 on domain controllers, in the Microsoft-Windows-NTLM/Operational log. Available on Windows 11 24H2, Windows Server 2025 and, since 13 October 2026, Windows Server 2022 and 2019

A domain controller is the client in a coercion. Its own NTLM client events name the target it was sent to and the process that did it. Source: Microsoft's NTLM auditing overview.

The coercion call itself

Event 5145 on the coerced server, with Share Name \\*\IPC$ and a Relative Target Name of efsrpc, lsarpc, spoolss, netdfs or FssagentRpc, from a source that is not an administrator's workstation or a management server

Every coercion call opens one of these named pipes over SMB. Microsoft's own guidance is to monitor specific Share Name and Relative Target Name values; the pipe names come from the protocol specifications above. Volume is high on busy servers, so scope the rule to domain controllers and Tier 0 servers.

Coercion against a domain controller

Microsoft Defender for Identity: "Suspected PetitPotam coercion attack", "Suspected DFSCoerce attack using Distributed File System Protocol" (alert 2426) and "Malicious Kerberos activity and CVE-2025-33073 exploitation attempt"

Documented in Microsoft's Defender-format and classic alert references, all mapped to T1187.

The result of a relay

Defender for Identity: "Suspicious Domain Controller certificate request (ESC8)" (2432), which needs a sensor on the certificate authority

The certificate request that a coerced and relayed domain controller logon produces.

A server opening SMB to a workstation or to the internet

Firewall, switch and EDR network logs: a domain controller or file server connecting outbound on port 445 to a non-server address

Servers are SMB servers, not clients, in almost every environment. Microsoft's SMB documentation says NTLM blocking on the client "prevents bad actors from tricking clients into sending NTLM requests to malicious servers".

Calls matched by an RPC filter

The audit option on an RPC filter rule, documented in Microsoft's netsh rpc reference

Confirm on your own build what a matched call writes before relying on it: Microsoft's page for event 5712 under Audit RPC Events says "It appears that this event never occurs".

Two practical notes. First, a decoy works well here: a server that nobody should manage remotely, with the coercion pipes reachable and a rule that alerts on any 5145 to them. Second, the most useful detection is the outbound one. A domain controller does not open SMB sessions to workstations; a single such connection is worth an investigation, and it is visible to every network sensor regardless of Windows version.

How to fix authentication coercion

The order below is Stingrai's guidance for a team with one or two people who own Active Directory. Each item names the setting and Microsoft's page for it. The first three remove the value of a coerced logon, and are the ones to do first, because coercion sources keep appearing.

Step

What to do

Microsoft source

1. Protect AD CS web enrolment

Set EPA to Required on Certificate Authority Web Enrollment and the Certificate Enrollment Web Service, enable Require SSL, update the CES configuration file as described, and disable NTLM for IIS on AD CS servers. If web enrolment is unused, remove the role

KB5005413, Defender for Identity ESC8 assessment

2. Require LDAP signing and channel binding

On every domain controller, require LDAP server signing and set channel binding to Always after clearing events 3039, 3074 and 3075. Microsoft's channel binding page says the primary risk it addresses "is NTLM credential relay"

LDAP channel binding

3. Require SMB signing

Require signing on servers and clients, so a coerced logon relayed to SMB gives a session the attacker cannot sign

Stingrai's SMB signing guide and the Microsoft pages it cites

4. Patch the coercion CVEs

Confirm every domain controller and server has the updates for CVE-2021-36942, CVE-2022-26925 and CVE-2025-33073. For CVE-2022-26925, read CISA's note about PIV and CAC authentication on domain controllers first

CVE-2021-36942, CVE-2022-26925, CVE-2025-33073

5. Disable the print spooler on domain controllers

Microsoft: "domain controllers and Active Directory admin systems need to have the Print spooler service disabled", by Group Policy. Plan for the loss of print pruning

Defender for Identity, identity infrastructure assessments

6. Filter the coercion interfaces

Windows RPC filters can block calls to a named interface, identified by its UUID, on domain controllers and Tier 0 servers where the interface is not needed. Each protocol's UUID is in its specification. Test on one server first, keep a saved configuration to restore from, and remember that backup software uses MS-EFSRPC and MS-FSRVP

netsh rpc reference, CISA countermeasure CM0100

7. Block outbound SMB and WebDAV

ATT&CK's mitigation for T1187: "Block SMB traffic from exiting an enterprise network with egress filtering or by blocking TCP ports 139, 445 and UDP port 137", and filter outbound WebDAV. Inside the network, block servers, and domain controllers above all, from opening SMB to workstation subnets

MITRE ATT&CK T1187

8. Block NTLM on the SMB client

On Windows Server 2025 and Windows 11 24H2, the SMB client can refuse to send NTLM to remote servers at all, which Microsoft says "prevents bad actors from tricking clients into sending NTLM requests to malicious servers"

Block NTLM connections on SMB

9. Turn on EPA everywhere else NTLM is accepted

Exchange, internal IIS applications and the AD CS RPC enrolment interface (ESC11). Note that EPA "does not apply to NTLMv1", so refuse LM and NTLMv1 first

KB5021989, Defender for Identity ESC11 assessment

10. Require NTLM signing, then restrict NTLM

Review event 4023 for unsigned clients and set the server to require NTLM signing ahead of Microsoft's May 2027 default. Then audit NTLM with the enhanced events and restrict it, starting with Tier 0

KB5135557, NTLM auditing enhancements

11. Verify

Have every coercion path and every relay target tested from an ordinary domain account, and retested after the changes

Stingrai's Active Directory penetration testing

A caution on step 6. RPC filtering is a blunt instrument: CISA's countermeasure page warns that "Inadvertently blocking necessary RPC traffic can introduce the risk of operational disruption", and Microsoft's CVE-2021-36942 notes say the raw-file-open calls are "often used in backup software". Filter per interface, on the servers that do not need it, with the backup team in the room.

How an Active Directory assessment tests for authentication coercion

An Active Directory security assessment treats coercion as a question with three parts: which servers can be coerced, where a coerced logon can be relayed, and what the relay reaches. The method below is what to expect from a competent tester. It leaves out the commands on purpose.

Start from an ordinary domain account. The tester works from the position a phished employee gives away: one domain user and a network port or VPN session. Unauthenticated coercion is checked too, on every domain controller, because an unpatched one still accepts it.

Enumerate the coercion sources. For every domain controller and Tier 0 server, the tester records which of the coercion pipes are reachable and which services stand behind them: the print spooler, the DFS namespace service, the File Server VSS Agent, and the EFS interface, together with the patch state for CVE-2021-36942, CVE-2022-26925 and CVE-2025-33073 and any RPC filters in place. The result is a table, not an opinion.

Enumerate the relay targets. Separately, the tester audits every AD CS server for HTTP enrolment and EPA, every domain controller for LDAP signing and channel binding, every host for the SMB signing requirement, and Exchange and internal web applications for Extended Protection. This is the same audit as an NTLM relay assessment, because the value of a coercion is set by the relay target.

Prove one chain, with agreement. With written agreement on the target and the timing, the tester coerces one agreed domain controller to authenticate to a tester-controlled host and relays that logon to one agreed target, usually AD CS web enrolment or LDAP, and stops at the first proof: a certificate issued in the domain controller's name, or a directory read the domain controller is allowed. Any directory change is agreed beforehand and reversed afterward. The certificate is revoked and the report records its serial number.

Test detection. Agree whether the security operations team is told in advance. Whether anyone noticed a domain controller opening an SMB session to a workstation, and whether the PetitPotam or DFSCoerce alert fired, is one of the most useful results the engagement produces.

Report per path. Each finding names the coercion source (server, interface, whether a credential was needed), the relay target and its missing setting, what the chain reached, the fix with its Microsoft page, and a severity that follows the path: coercion of a file server that can only be relayed to a signed SMB host is Low; coercion of a domain controller relayable to web enrolment without EPA is Critical.

In Stingrai's State of Penetration Testing 2026 dataset, internal network tests returned a median of 11 verified findings and 92% of them were rated High or Critical, which is why the inside of the network, and Active Directory in particular, deserves its own scope. For how this fits a wider engagement, see Stingrai's guides to active directory penetration testing services and internal network penetration testing.

Where Stingrai fits

Stingrai is a global CREST-accredited penetration testing services company founded in Toronto, Canada in 2021, trusted by companies from startups to enterprises to meet audit requirements for SOC 2, ISO 27001, CMMC, PCI DSS and HIPAA. OSCE³, OSWE, OSEP, CREST CRT certified penetration testers, who are also world-class security researchers and bug bounty hunters. Choose from fully human-led or hybrid (AI agents plus human penetration testers) engagements across web, API, mobile, AI and LLM, cloud, network, Active Directory and social engineering penetration tests and red team engagements. Stingrai Inc is a proud CREST member, holding the CREST accreditations Penetration Testing and AI-Enabled Penetration Testing and the CREST AI Charter company certification, as listed on the CREST Marketplace.

Active Directory and network work is human-led. In Active Directory penetration testing, Stingrai's penetration testers start from an ordinary domain user and report every path they proved toward control of the directory, including coerced authentication, NTLM relay, Active Directory Certificate Services, Kerberos delegation and ACL abuse, with data collected through PingCastle and BloodHound and validated manually. Internal network testing covers the relay targets across the estate: SMB signing on every host, LDAP on every domain controller, and Extended Protection on every NTLM-accepting web service. A red team or purple team exercise tests whether a coerced domain controller is noticed.

  • Who does the work: two named penetration testers from a team holding OSCE³, OSEP, CRTE, CRTO and CREST CRT certifications, with 18 published CVEs across the team, reviewed by a team lead with 16 years in penetration testing, red teaming and exploit development and by an engagement partner.

  • How findings arrive: each confirmed finding is posted to the PTaaS platform as it is confirmed, with remediation guidance, so a coercible domain controller with an unprotected certificate authority does not wait for the final report.

  • What happens after: retesting of the fixed paths is included, and every engagement comes with an attestation letter that gives your auditors penetration testing evidence for SOC 2, ISO 27001 and PCI DSS programs.

  • What it costs: a network penetration test typically costs US$5,000 to US$40,000 and above, scoped individually and quoted as a fixed price. Active Directory assessments are quoted per engagement through Get a Quote.

Engagements run as one-time annual tests or as continuous programs. For teams that also run web applications, Stingrai's Hybrid Pentest, in which Snipe and certified penetration testers test the same application together, is US$6,800 per assessment for one web application and associated APIs, or US$1,275 a month on a 12-month continuous plan (pricing).

Authentication coercion defender checklist

Stingrai's guidance; no standard fixes this list.

  • Confirm the updates for CVE-2021-36942, CVE-2022-26925 and CVE-2025-33073 on every domain controller and server.

  • Set EPA to Required and Require SSL on AD CS web enrolment, or remove the web enrolment roles; disable NTLM for IIS on AD CS servers.

  • Require LDAP signing and set channel binding to Always on every domain controller after clearing the audit events.

  • Require SMB signing on servers and clients.

  • Disable the print spooler on domain controllers and Active Directory admin systems by Group Policy.

  • Remove the File Server VSS Agent and DFS namespace roles from domain controllers that do not need them, and apply RPC filters to the coercion interfaces where they must stay.

  • Block servers, and domain controllers above all, from opening SMB and WebDAV to workstation subnets and to the internet.

  • Turn on enhanced NTLM auditing on domain controllers and servers, and alert on any domain controller NTLM client event (4020 or 4021) whose target is not a known server.

  • Alert on event 4624 with Logon Type 3, Authentication Package NTLM and a computer account name from an address that is not that computer.

  • Scope event 5145 monitoring to the coercion pipes on domain controllers and Tier 0 servers, and set up one decoy server.

  • Enable the Defender for Identity PetitPotam, DFSCoerce and ESC8 alerts if you have it, with a sensor on the certificate authority.

  • Review event 4023 for unsigned NTLM clients and require NTLM signing before Microsoft's May 2027 default.

  • Have every coercion path and relay target tested from an ordinary domain account, detection included, and retested after the changes.

Frequently Asked Questions

What is PetitPotam?

PetitPotam is an authentication coercion technique published in July 2021 that makes a Windows server, including a domain controller, authenticate to a host of the attacker's choice through the Encrypting File System Remote Protocol (MS-EFSRPC). Microsoft called it "a classic NTLM Relay Attack", patched the specific call as CVE-2021-36942 on 10 August 2021 and rated the chain with a relay to AD CS at CVSS 9.8.

What is authentication coercion?

Authentication coercion is any method that forces a machine to start an authentication to a host the attacker picks, so the attacker can relay the logon elsewhere. MITRE ATT&CK tracks it as T1187, Forced Authentication. On Windows it usually works by calling a remote procedure that takes a path or server name and acts on it, through MS-EFSRPC, MS-RPRN, MS-DFSNM or MS-FSRVP.

Is PetitPotam still possible in 2026?

Yes, in its authenticated form and wherever the relay targets are unprotected. The 2021 and 2022 updates removed anonymous access to the LSARPC calls, but any domain account can still coerce through the print spooler, DFS namespace and other interfaces, and Microsoft wrote in December 2024 that it fixes "specific instances" of coercion while attackers keep relaying "against a vulnerable server". The durable fix is on the relay target.

How does PetitPotam lead to domain takeover?

A domain controller's coerced logon is relayed to the certificate authority's web enrolment pages, which issue a certificate in the domain controller's name. That certificate authenticates as the domain controller and can be used to read every credential in the directory. Microsoft's Defender for Identity documentation says relay to unprotected enrolment endpoints "can lead to complete domain takeover".

How do you detect PetitPotam?

Look for a domain controller's computer account logging on over NTLM from an address that is not its own (event 4624 on the target, 4776 on the domain controller), the domain controller's own NTLM client events 4020 and 4021 naming an unexpected target, event 5145 showing access to the efsrpc, lsarpc, spoolss, netdfs or FssagentRpc named pipes from an unexpected source, any domain controller opening SMB to a workstation, and the Microsoft Defender for Identity alerts for PetitPotam, DFSCoerce (2426) and ESC8 (2432).

How do you prevent PetitPotam and authentication coercion?

Patch CVE-2021-36942, CVE-2022-26925 and CVE-2025-33073, set EPA to Required with HTTPS only on AD CS web enrolment, require LDAP signing and channel binding on domain controllers and SMB signing everywhere, disable the print spooler on domain controllers, filter the coercion RPC interfaces, block servers from opening SMB and WebDAV outward, require NTLM signing, and audit then restrict NTLM.

Does the CVE-2021-36942 patch stop PetitPotam?

Only the original call. Microsoft's update blocks the two raw-file-open calls through the LSARPC interface, and the May 2022 update for CVE-2022-26925 refuses anonymous LSARPC connections. Authenticated coercion through other EFSRPC methods and through the print spooler, DFS namespace and file server VSS interfaces still works, which is why Microsoft's lasting advice is Extended Protection and signing on the relay targets.

Does a penetration test check for authentication coercion?

An Active Directory security assessment enumerates every coercion source on domain controllers and Tier 0 servers, audits every relay target for signing, channel binding and Extended Protection, proves one agreed chain from an ordinary domain account, and tests whether the coercion was detected. An internal network penetration test covers the relay targets across the estate, and a red team or purple team exercise tests detection and response.

References

  • Microsoft Security Response Center. ADV210003, Mitigating NTLM Relay Attacks on Active Directory Certificate Services (AD CS), 23 July 2021. https://msrc.microsoft.com/update-guide/advisory/ADV210003

  • Microsoft Security Response Center. CVE-2021-36942, Windows LSA Spoofing Vulnerability, 10 August 2021. https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-36942

  • Microsoft Security Response Center. CVE-2022-26925, Windows LSA Spoofing Vulnerability, 10 May 2022. https://msrc.microsoft.com/update-guide/vulnerability/CVE-2022-26925

  • Microsoft Security Response Center. CVE-2025-33073, Windows SMB Client Elevation of Privilege Vulnerability, 10 June 2025. https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-33073

  • Microsoft. KB5005413, Mitigating NTLM Relay Attacks on Active Directory Certificate Services (AD CS). https://support.microsoft.com/en-us/topic/kb5005413-mitigating-ntlm-relay-attacks-on-active-directory-certificate-services-ad-cs-3612b773-4043-4aa9-b23d-b87910cd3429

  • Microsoft Security Response Center. Mitigating NTLM Relay Attacks by Default, 9 December 2024. https://www.microsoft.com/en-us/msrc/blog/2024/12/mitigating-ntlm-relay-attacks-by-default

  • Microsoft. KB5135557, NTLM signing changes, 10 November 2026. https://support.microsoft.com/help/5135557

  • Microsoft. Advancing Windows security: Disabling NTLM by default, 29 January 2026. https://techcommunity.microsoft.com/blog/windows-itpro-blog/advancing-windows-security-disabling-ntlm-by-default/4489526

  • Microsoft. Retiring NTLM: Frequently asked questions, 9 September 2026. https://techcommunity.microsoft.com/blog/windows-itpro-blog/retiring-ntlm-frequently-asked-questions/4550522

  • Microsoft. Overview of NTLM auditing enhancements. https://support.microsoft.com/en-us/topic/overview-of-ntlm-auditing-enhancements-in-windows-11-version-24h2-and-windows-server-2025-b7ead732-6fc5-46a3-a943-27a4571d9e7b

  • Microsoft. KB5021989, Extended Protection for Authentication. https://support.microsoft.com/en-us/topic/kb5021989-extended-protection-for-authentication-1b6ea84d-377b-4677-a0b8-af74efbb243f

  • Microsoft Learn. Deprecated features for Windows client. https://learn.microsoft.com/en-us/windows/whats-new/deprecated-features

  • Microsoft Learn. What's new in Windows Server 2025. https://learn.microsoft.com/en-us/windows-server/get-started/whats-new-windows-server-2025

  • Microsoft Learn. LDAP channel binding in Active Directory. https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/ldap-channel-binding

  • Microsoft Learn. Block NTLM connections on SMB in Windows Server 2025. https://learn.microsoft.com/en-us/windows-server/storage/file-server/smb-ntlm-blocking

  • Microsoft Learn. netsh rpc commands. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/netsh-rpc

  • Microsoft Learn. Microsoft Defender for Identity: security alerts (Defender format) and classic alerts; certificate and identity infrastructure posture assessments. https://learn.microsoft.com/en-us/defender-for-identity/alerts-xdr, https://learn.microsoft.com/en-us/defender-for-identity/alerts-mdi-classic, https://learn.microsoft.com/en-us/defender-for-identity/security-posture-assessments/certificates, https://learn.microsoft.com/en-us/defender-for-identity/security-posture-assessments/identity-infrastructure

  • Microsoft Learn. Events 4624, 4776, 5145 and 5712, and Audit RPC Events. https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4624, https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4776, https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-5145, https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-5712

  • Microsoft Learn, Open Specifications. MS-EFSR, MS-RPRN, MS-DFSNM and MS-FSRVP. https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-efsr/08796ba8-01c8-4872-9221-1000ec2eff31, https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rprn/d42db7d5-f141-4466-8f47-0a4be14e2fc1, https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-dfsnm/95a506a8-cae6-4c42-b19d-9c1ed1223979, https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-fsrvp/67f0fdd9-d8bc-445d-95de-2cb6d5c4d149

  • MITRE ATT&CK. T1187, Forced Authentication (v1.4, 3 November 2026), and T1557.001. https://attack.mitre.org/techniques/T1187/, https://attack.mitre.org/techniques/T1557/001/

  • CISA. Known Exploited Vulnerabilities catalog, version 2026.12.03. https://www.cisa.gov/known-exploited-vulnerabilities-catalog

  • CISA. AA23-059A, CISA Red Team Shares Key Findings to Improve Monitoring and Hardening of Networks, 28 February 2023. https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-059a

  • NSA and CISA. AA23-278A, NSA and CISA Red and Blue Teams Share Top Ten Cybersecurity Misconfigurations, 5 October 2023. https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-278a

  • CISA. Eviction Strategies Tool, countermeasure CM0100, Restrict and Monitor Remote Procedure Calls (RPC), 14 March 2025. https://www.cisa.gov/eviction-strategies-tool/info-countermeasures/CM0100

  • topotam. PetitPotam README. https://github.com/topotam/PetitPotam

  • CREST. Stingrai Inc on the CREST Marketplace. https://marketplace.crest.org/supplier/stingrai-inc/

Talk to Stingrai

Want to know which of your domain controllers can be made to authenticate to an attacker, and where that logon would be accepted? Stingrai scopes Active Directory security assessments and internal network tests with retesting, as a one-time annual engagement or a continuous program. Get a Quote or book a free discovery call.

0 views

0

X

Related reading

Credential Dumping and LSASS Explained: How It Works, Detection and Fixes (2026)
Network Security

Credential Dumping and LSASS Explained: How It Works, Detection and Fixes (2026)

Credential dumping explained: what LSASS, the SAM, NTDS.dit and DPAPI hold, why dumps still work in 2026, Microsoft's defaults, detection events and fixes.

20 min read

LLMNR Poisoning Explained: NBT-NS and mDNS, Detection and Fixes (2026)
Network Security

LLMNR Poisoning Explained: NBT-NS and mDNS, Detection and Fixes (2026)

LLMNR poisoning explained: how Windows name fallback leaks NetNTLMv2 responses to NBT-NS and mDNS poisoning, Microsoft's position, detection and fixes.

24 min read

SMB Signing Explained: Why It Matters, What It Stops and How to Enforce It (2026)
Network Security

SMB Signing Explained: Why It Matters, What It Stops and How to Enforce It (2026)

SMB signing explained: the relay attacks it stops, why most servers still do not require it, Windows 11 24H2 and Server 2025 defaults, how to enforce it.

20 min read

Contents

X