PPLhost Uses Vulnerable Service DLLs and Custom Service Routines to Bypass Windows PPL

· Original article ↗

Summary

Unit 42 describes PPLhost, a proof of concept that uses vulnerable service DLLs and custom service routines to bypass Windows PPL, enabling EDR tampering and LSASS memory dumping. The techniques require administrator rights.

Key points

  • Unit 42 developed PPLhost to demonstrate two Windows PPL bypass techniques; the research was shared with Microsoft, which said they do not cross a security servicing boundary because they require administrator rights.
  • BYOVSDLL downgrades a service to a vulnerable DLL and changes service settings to run code as PPL; the researchers used the Windows Telephony Server service.
  • The first technique was demonstrated dumping LSASS memory and terminating protected EDR processes.
  • The Custom Service Routine technique uses an older svchost.exe binary to bypass a mitigation and invoke a selected function through a custom service entry point.
  • The researchers used a function in werui.dll to perform a process memory dump and said suitable functions might also enable arbitrary shellcode execution.
  • Defenders are advised to enable Credential Guard and monitor changes to critical service settings, svchost.exe launched from suspicious paths, and handles to sensitive processes.

Article Details

Attack Vectors
  • BYOVSDLL: With administrative access, downgrade a service DLL to a vulnerable version, modify service registry settings, and exploit the service to execute shellcode as PPL.
  • Custom Service Routine: Use an older signed svchost.exe that predates a mitigation, then configure a PPL service to call a custom ServiceMain function in a suitable signed DLL.
  • The researchers used these techniques to dump LSASS memory and terminate protected EDR processes.
Defensive Notes
  • Enable Credential Guard to help prevent credential theft from LSASS by storing NTLM hashes and Kerberos TGTs in LSAISO rather than LSASS.
  • Monitor changes to ServiceDll and other critical service settings, and watch for svchost.exe starting from a suspicious path.
  • Monitor creation of handles to sensitive processes and deploy detections for tools and techniques targeting PPL processes.
  • Reduce standing administrative privileges and restrict risky application execution and access to other processes' memory.

MITRE ATT&CK

People

Vendors

Products

Tools

Related Articles