Skip to the stories
AI & ML

PPLhost Shows Two Windows Service Paths That Can Undermine PPL Protections

  • Eli Birkan and Oriel Cochavi
  • 951 reads

PPLhost demonstrates two ways admin access can bypass Windows PPL safeguards, with practical implications for service monitoring and credential protection.

PPLhost Shows Two Windows Service Paths That Can Undermine PPL Protections

Why PPL remains worth testing

Protected Process Light (PPL) is meant to limit what one Windows process can do to another, even when the requesting process has administrative privileges or SeDebugPrivilege. That protection matters for services such as the Local Security Authority Subsystem Service (LSASS) and endpoint detection and response (EDR) agents: if an attacker gains admin access, PPL is intended to make credential theft and security tool tampering harder.

Research by Palo Alto Networks examined how those protections work in practice and produced PPLhost, a proof of concept with two techniques for bypassing PPL. Both require administrative access. Microsoft told the researchers that this prerequisite means the techniques do not cross its security servicing boundary. For defenders, the finding is still relevant: the gap between having admin rights and controlling a protected process can become small when Windows service configuration is exposed.

Windows enforces Protected Process and PPL restrictions by checking the access rights requested when a process or thread handle is created. The operating system can block dangerous access even when the caller has elevated rights. Protection levels are tied to binaries signed with specialized certificates. Two independent components define each process’s protection state: signer category and protection type. Higher-tier system categories can access lower-tier binaries, while categories such as Antimalware and Lsa are separated from each other.

That design has shaped attacker approaches. User-mode weaknesses such as PPLFault, which relied on page faults and race conditions, have received patches. Another path has been bring-your-own-vulnerable-driver (BYOVD): a flawed but signed driver can give an attacker kernel-level memory access, beyond the user-mode processes PPL is designed to constrain. EDR silencing tools take a different tack, impairing an agent’s operation or telemetry rather than simply terminating it.

Technique one: load a vulnerable service DLL as PPL

The first PPLhost technique, called BYOVSDLL, takes advantage of how Windows starts services through svchost.exe. This system process hosts background services implemented in DLL files. The Service Control Manager (SCM) reads a service’s registry configuration, including LaunchProtected, to determine whether to start it as PPL. Setting that value to 2 can make a selected service run with PPL protection while retaining the SCM’s normal initialization flow.

The opportunity is that a protected service still loads its configured DLL. If an administrator can change the service’s DLL path and other settings, a vulnerable, Microsoft-signed DLL with a usable exploit may provide code execution inside the PPL process. The researchers used the Windows Telephony Server service and its tapisrv.dll library, adapting a public use-after-free exploit for CVE-2024-26230 to execute shellcode. The exploit had to run shellcode instead of loading a DLL because a PPL process won’t load an unsigned DLL.

Putting an older vulnerable copy of tapisrv.dll on an updated machine wasn’t sufficient by itself: Windows did not recognize it as signed because it lacked an embedded signature. The researchers addressed that by installing the signed catalog file from the older Windows installation. They also changed the service’s ObjectName to run it as SYSTEM instead of NetworkService, and added SeDebugPrivilege to RequiredPrivileges.

After changing LaunchProtected, ServiceDll, ObjectName and RequiredPrivileges, they restarted the service and ran the exploit. The reported result was shellcode execution inside a PPL process, followed by an LSASS memory dump and termination of protected EDR processes. These changes to sensitive service settings can themselves create telemetry for defenders to investigate.

Technique two: use a custom service entry point

The second method avoids replacing a service with an older vulnerable DLL. A service normally starts its DLL through an exported function named ServiceMain, but Windows allows a service to specify a custom entry point. Its arguments are passed through StartServiceW. In principle, an exported function in a PCA-signed DLL can serve as that entry point if its parameters match the service interface closely enough.

There’s a catch: svchost.exe includes a mitigation that blocks a PPL process from using a custom ServiceMain. PPLhost works around it by supplying an older svchost.exe binary from before that mitigation. This binary has an embedded signature, so the technique does not require installing a catalog file.

The researchers selected a function in werui.dll that performs a full memory dump of a process and has a compatible signature. They say other functions or primitives might support arbitrary shellcode execution within the process, but the described demonstration uses the memory-dump function. As with the first method, service registry changes are part of the setup. The approach highlights how a service’s entry point and hosting binary can affect the protection it receives.

What defenders can monitor

Service configuration is a practical place to look for tampering. Changes to LaunchProtected, ServiceDll, ObjectName or RequiredPrivileges can signal an attempt to alter how a service runs. Teams can also monitor for unexpected service restarts, older service-host binaries, and activity involving PPL processes. The researchers recommend deploying detections for tools and techniques that target those processes.

Credential Guard can reduce the value of an LSASS memory dump. It uses virtualization-based security to run LSA Isolated (LSAISO) in Virtual Trust Level 1, separated from ordinary user-mode and kernel-mode code in VTL 0. NTLM hashes and Kerberos Ticket-Granting Tickets are held in LSAISO rather than LSASS. When LSASS needs to use them, it requests the operation from LSAISO. Reading LSASS memory therefore won’t reveal those credentials when Credential Guard is active.

The research also describes Cortex XDR detections for service tampering and EDR tampering. Those examples show one way endpoint telemetry can surface activity around the techniques; they don’t remove the need to audit service configuration and test detections in the environment where they’ll run.

The practical takeaway

PPLhost’s two methods expose different weaknesses in the same trust boundary. BYOVSDLL relies on changing service configuration and reintroducing a vulnerable DLL, including the signed catalog needed for Windows to accept it. The custom-entry-point method uses an older service-host binary to bypass a mitigation and invoke a chosen DLL export. Both require admin access, but their distinct artifacts give defenders multiple places to investigate.

The durable lesson is to treat PPL as one layer in a defense strategy, not as a guarantee that protected processes can’t be tampered with after admin access is lost. Credential Guard helps keep key credentials outside LSASS, while service-setting audits and targeted endpoint detections can expose attempts to reach protected processes. PPLhost provides a concrete basis for testing whether those signals are visible in a particular Windows environment.

Source: Eli Birkan and Oriel Cochavi · unit42.paloaltonetworks.com

From the same set