Explore our new Cybersecurity Terms Glossary, explained by our experts.

View the Glossary View the Glossary
PRIVIA

Cybersecurity Terms Glossary

What Is PetitPotam?

PetitPotam forces a Windows domain controller to authenticate to an attacker through the encrypting file system RPC interface, opening the fastest known route to full domain compromise.

Illustration for the cybersecurity term PetitPotam
Home / Blog / Cybersecurity Terms / What Is PetitPotam?
17 November 2026

What Is PetitPotam?

What Is PetitPotam?

PetitPotam is a coercion technique published by the French researcher Gilles Lionel, known as Topotam, on 18 July 2021. It abuses the Microsoft Encrypting File System Remote Protocol, MS-EFSRPC, to make a Windows server—usually a domain controller—connect to an address of the attacker’s choosing and authenticate there with its machine account. The tool is small and the call is legitimate; the consequences are not.

The Call Itself

MS-EFSRPC exists to manage data stored on encrypted file systems, and several of its methods take a file path as a parameter. EfsRpcOpenFileRaw was the original target: send it a UNC path such as \\\\attacker\\share\\file over the \pipe\lsarpc named pipe, and the server attempts to open that file. Opening a remote file means authenticating to the remote host, and Windows does so automatically using the machine account.

When Lionel published, the call could be made in some configurations without any credentials at all. Microsoft’s response, advisory ADV210003 and later the patch for CVE-2021-36942, required authentication for EfsRpcOpenFileRaw. Researchers promptly demonstrated that other methods in the same interface produced the same result, and a standard domain user account is enough to invoke them. The technique therefore survives, now as an authenticated attack.

Why a Domain Controller’s Authentication Is Worth So Much

Coercion by itself achieves nothing—the attacker simply receives an NTLM authentication they cannot use. The value comes from relaying it, and the destination that matters is Active Directory Certificate Services.

The AD CS web enrolment interface, if installed, accepts NTLM authentication over HTTP and issues certificates. Relaying the domain controller’s coerced authentication to it produces a certificate issued to the domain controller’s own machine account, using the DomainController or Machine template. The attacker then uses that certificate to request a Kerberos ticket-granting ticket through PKINIT, and from there performs DCSync to extract every password hash in the directory, including KRBTGT.

The full chain, usually written as PetitPotam plus ESC8, runs from a standard domain user to Domain Admin equivalent in a few minutes with Impacket and a coercion tool. It is frequently the single finding that most changes a client’s view of their Active Directory security.

Fixing It Properly

Because the coercion call is considered working as intended, the effective controls sit on the relay side.

  1. Protect AD CS web enrolment. Enable Extended Protection for Authentication on the certsrv application, require HTTPS, and disable NTLM for that site. If web enrolment is not used—and in many organisations it is not—remove the role service entirely. This single change breaks the chain whichever coercion method is used.
  2. Enforce SMB signing everywhere, which prevents relay of the SMB authentication to other file servers.
  3. Enable LDAP signing and channel binding on domain controllers to block the RBCD and shadow credential relay paths.
  4. Apply RPC filters to restrict the EFSRPC interface, and block inbound SMB and HTTP from workstation subnets to domain controllers where the network design allows.
  5. Keep patching. The patches do not remove the technique, but each one closes specific unauthenticated variants that are otherwise available to anyone who can reach the network.

Detection

The clearest signal is a certificate issued to a domain controller machine account by a requester that is not that domain controller. AD CS logs the requester, and this combination has essentially no legitimate cause, which makes it an excellent alert. Supporting signals include machine account authentications to hosts that are not file servers, and network detection rules matching the EFSRPC operation numbers—open rule sets for Suricata and Zeek cover them.

Microsoft Defender for Identity flags both the coercion attempt and suspicious certificate activity, and the same logic is straightforward to build in a SIEM given certificate authority log collection, which many organisations have never configured.

Where It Sits in the Bigger Picture

PetitPotam is the best-known member of a family that also includes PrinterBug, DFSCoerce, and ShadowCoerce; the general problem is covered under NTLM coercion techniques. Treating them individually leads to an endless cycle of disabling one service after another. Treating the relay destinations as the real exposure fixes the class.

At Privia Security, our Penetration Test Services include an Active Directory Certificate Services review, because AD CS misconfiguration is still the most common critical finding we report in mature Windows estates.

FAQ – Frequently Asked Questions

Is PetitPotam Patched?

Partially. Microsoft restricted the specific unauthenticated call used in the original release through CVE-2021-36942, but other methods in the same interface achieve the same coercion for any authenticated domain user. Treating PetitPotam as a closed issue because the patch is installed is a common and serious mistake. The durable fix is hardening the relay targets, particularly AD CS web enrolment.

Are We Affected If We Do Not Use Active Directory Certificate Services?

You are much less exposed, because the most damaging relay destination is absent. Coercion can still be relayed to LDAP on a domain controller, which enables resource-based constrained delegation and shadow credential attacks, and to SMB where signing is not enforced. Confirm AD CS is genuinely absent rather than installed and forgotten, which happens more often than teams expect.

Can We Simply Block the EFSRPC Interface?

RPC filters can restrict it, and several researchers publish ready-made filter sets. This is worth doing, but treat it as one layer. The same coercion is achievable through the DFS namespace service, the print spooler, and the file server VSS agent, so blocking a single interface moves the attacker to the next one rather than stopping the technique.

How Do We Test Whether We Are Vulnerable?

With authorisation, run a coercion tool from a standard domain user account against a domain controller while listening for the inbound authentication, then audit your certificate services configuration with Certipy or PSPKIAudit for the ESC8 condition. A successful coercion combined with an unprotected web enrolment endpoint means the full domain compromise path is available today.

Related Terms

You May Be Interested In These

What Is Broken Access Control?

Cybersecurity Terms

17 November 2026

What Is Broken Access Control?

Read More
What Is Network Segmentation?

Cybersecurity Terms

17 November 2026

What Is Network Segmentation?

Read More
What Is Smart Grid Security?

Cybersecurity Terms

17 November 2026

What Is Smart Grid Security?

Read More