PPLhost: Unit 42 shows how to bypass Windows PPL to tamper with EDR and dump LSASS
Unit 42 researchers released a proof of concept called PPLhost that bypasses Windows Protected Process Light after an administrative account is compromised. The techniques allow dumping LSASS memory and terminating protected EDR agents.
What to do now
Protected Process Light (PPL) is a Windows mechanism designed to stop unauthorised processes from altering or reading the memory of critical services, even when an attacker already controls a local administrator account. Two main targets benefit from it: LSASS, which manages credentials and authentication tokens, and EDR agents, which run under the Anti-Malware PPL tier so attackers cannot terminate, tamper with or inject into them.
Researchers Eli Birkan and Oriel Cochavi of Unit 42 (Palo Alto Networks) built a proof of concept named PPLhost that implements two novel techniques to defeat these protections. Both assume the attacker has already achieved administrative compromise. Microsoft, who was informed of the findings, noted that the techniques do not cross a security servicing boundary precisely because they require admin rights.
The first technique, Bring Your Own Vulnerable Service DLL (BYOVSDLL), downgrades a service to a vulnerable version. By overwriting the ServiceDll value in the registry, a known, already-patched vulnerability can be reintroduced. The researchers used a public use-after-free exploit in the Windows Telephony Server service (tapisrv.dll). Because svchost.exe can be launched as PPL by setting the LaunchProtected registry value to 2, and an older signed tapisrv.dll can be reinstated by installing the matching catalog file, it becomes possible to run shellcode in PPL context.
To escalate further, the researchers modified the ObjectName value to run the service as SYSTEM instead of NetworkService, and added SeDebugPrivilege through RequiredPrivileges. After applying these registry changes and restarting the service, they were able to dump LSASS memory and terminate protected EDR processes, including Windows Defender.
The second technique, Custom Service Routine, avoids downgrading a service. Instead of the standard ServiceMain entry point, it registers a custom one pointing to an exported function of a signed DLL whose signature matches the controlled parameters. A mitigation in svchost.exe prevents a PPL process from using a custom ServiceMain, but the researchers bypass it by supplying an older svchost binary that predates the mitigation. They identified WerUIReportSilentProcessExit in werui.dll, which performs a full memory dump of a process.
Unit 42 recommends two lines of defence. Enabling Credential Guard, which uses virtualization-based security to isolate secrets such as NTLM hashes and Kerberos TGTs inside LSAISO at VTL 1, out of reach of VTL 0 code: with it enabled, reading LSASS memory no longer yields those credentials. For detection, they suggest monitoring changes to ServiceDll and other critical service settings, svchost.exe starting from a suspicious path, and the creation of handles to sensitive processes.
These are post-exploitation techniques: they are not an initial entry point but extend an existing administrative compromise to steal credentials and disable defences. Security teams should strengthen telemetry around service mechanics and treat the downgrade of signed binaries as a suspicious signal.
What to do now
- Enable Windows Credential Guard to isolate authentication secrets outside LSASS memory.
- Deploy detections for modifications to ServiceDll and other critical service registry settings.
- Monitor svchost.exe launched from unusual paths and handle creation to LSASS or EDR agents.
- Tightly restrict and audit administrator accounts, the required starting point for these techniques.