PPLhost bypasses Windows PPL to tamper with EDR

This article has been automatically translated.
Loading article...
Merry Christmas & Happy New Year!
Loading article...
Does local administrator access mean EDR is effectively useless? Many ops teams and defenders assume Windows Protected Process Light (PPL) covers this layer: even if an admin account is compromised, the EDR agent and LSASS should not be arbitrarily terminated or read. Research from Unit 42 pours cold water on that assumption.
Unit 42, the threat research team under Palo Alto Networks, analyzed the Windows PPL mechanism and developed a complete proof of concept (PoC) called PPLhost. It implements two new techniques that bypass PPL on the premise that the attacker already holds administrator privileges, thereby tampering with EDR and dumping LSASS memory. The conclusion is blunt: PPL raises the cost of attack but cannot serve as a last line of defense; the truly observable and hardenable lever is the change to service configuration made during the bypass.
PPL was designed to restrict the privileges of administrator processes. In a normal Windows environment, administrator privileges let a process request full access to other processes, including reading virtual memory, injecting threads, and debugging. PPL evaluates and blocks the creation of process or thread handles with dangerous access masks, even when the caller holds the highest administrator privileges or SeDebugPrivilege.
It mainly targets two kinds of objects. The first is LSASS, the core service responsible for user logon and authentication tokens (such as NTLM hashes and Kerberos tickets). With LSA Protection enabled, LSASS is upgraded to a PPL process, and administrator processes cannot read its secrets. The second is the EDR agent: security vendors typically configure their agents to run under the Anti-Malware PPL level, so attackers cannot terminate, tamper with, or inject code into them.
To enforce PP and PPL, Windows requires binaries to be signed with a dedicated certificate. Protection status is determined by two independent dimensions: Type determines whether a process runs as PP or PPL; Signer Category divides trust levels based on the executable's digital signature. Higher-level system components can access lower-level binaries, while non-OS groups such as Antimalware and Lsa are deliberately isolated from each other.
Past attacks against PPL either exploited user-mode logic flaws that trick the system using memory page faults and race conditions (Microsoft patches these, for example PPLFault), or turned to the kernel, using bring-your-own-vulnerable-driver (BYOVD) to load a legitimately signed but flawed driver and gain kernel-level read/write capability. PPLhost takes a different path: it does not touch the kernel, but instead attacks the service mechanism itself.
Known vulnerabilities get patched, and that is the first wall attackers face. The idea behind BYOVSDLL (bring your own vulnerable service DLL) is to sidestep patching: by rewriting the DLL value of a service path in the registry, the service is downgraded to an older version that still has a known vulnerability, rendering the patch ineffective.
The starting point is an observation: svchost.exe itself can start as PPL. The Windows Service Control Manager (SCM) decides whether a service starts as PPL based on the LaunchProtected value in the registry; setting it to 2 gives the selected service PPL protection. Using the SCM rather than calling the WinAPI directly has the advantage that the service goes through the standard initialization flow.
Unit 42 found a publicly available use-after-free exploit for tapisrv.dll in the Windows Telephony Server service and modified its code to execute shellcode instead of loading a DLL, since unsigned DLLs cannot be loaded into a PPL process. After copying the old vulnerable tapisrv.dll onto an updated machine, the system does not recognize its signature because it has no embedded signature; the fix is to copy and install the corresponding signed catalog file from an old Windows installation.
To escalate privileges, the research team also modified the ObjectName value so the service runs as SYSTEM rather than NetworkService, and added SeDebugPrivilege to RequiredPrivileges. After making the four changes to LaunchProtected, ServiceDll, ObjectName, and RequiredPrivileges, restarting the service and running the exploit executes shellcode as PPL, dumps LSASS memory, and terminates protected EDR processes.
For defenders, the source notes that modifying sensitive settings of system services may generate suspicious telemetry.
The second technique does not downgrade any DLL; instead it abuses primitives of an existing service, making it stealthier. A service DLL's entry point is usually an exported function named ServiceMain, but a custom ServiceMain can also be registered for a service. Parameters are passed in via StartServiceW.
这意味着,任何 PCA 签名 DLL 中签名形如 int argc, char *argv[](或足够相似、能引用受控参数)的导出函数,都可能成为目标。研究团队发现 werui.dll 中的 WerUIReportSilentProcessExit 会对进程执行完整内存转储,且签名匹配——于是转储 LSASS 根本不需要有漏洞的 DLL。
There is already a mitigation in current svchost.exe: if the process is PPL, a custom ServiceMain is not allowed. But the research team bypassed it with "bring your own svchost" by supplying an older signed svchost.exe that predates the check. This binary even has an embedded signature, so no catalog file needs to be installed.
The inference here is that the mitigation depends on version, and an attacker who can drop an older signed binary can bypass it. Detection therefore cannot rely on that mitigation alone; it must also watch for svchost.exe launched from non-standard paths.
Among the hardening recommendations in the source, Credential Guard is one of the few measures that changes the outcome rather than just adding detection. Using virtualization-based security (VBS), it runs a separate component, LSA Isolated (LSAISO), in virtual trust level 1 (VTL 1), which user-mode or kernel-mode code in standard VTL 0 cannot access at all.
NTLM hashes and Kerberos ticket-granting tickets (TGTs) are stored inside LSAISO, not in LSASS. When LSASS needs them, it requests them from LSAISO. So with Credential Guard enabled, reading LSASS memory yields no credentials, because they simply are not there. Even if PPLhost successfully dumps LSASS, it gets nothing for these secrets.
The source offers three detection directions: monitor changes to ServiceDll and other critical service settings; monitor svchost.exe launched from suspicious paths; and monitor handle creation against sensitive processes. These should be treated as starting points to map onto your own telemetry, not as ready-made rules.
Scope needs to be clear: this is a post-administrator technique and does not help an attacker without administrator privileges, which is the source's own framing. The PoC is public on Unit 42's GitHub, lowering the barrier to reuse, but the source does not provide detection rule syntax, telemetry field names, or a baseline for how often these registry changes occur in normal environments.
Microsoft's response is that because these techniques require administrator privileges, they do not cross a security service boundary. That means vendors will not treat them as vulnerabilities to patch, and the defender's task shifts from "waiting for a fix" to "detecting service tampering before the bypass." The vendor mitigation section in the source (Cortex XDR/XSIAM, Idira EPM) consists of vendor statements and should be treated as reference rather than independently verified.
One final point: PPL still has value. It changes the tools and steps an attacker needs, and it leaves observable traces. But it is not a wall—just a speed bump. Treat it as one layer of defense in depth, not the only layer.