Skip to content

Vulnerabilities & Patches

Unit 42 discloses PPLhost proof of concept that bypasses Windows PPL

Unit 42 said the bypass techniques require a compromised administrative account to function.

https://breach-signal.com/vulnerabilities/unit-42-pplhost-windows-ppl-bypass/

Share

Key facts

  • The bypass techniques require a compromised administrative account to function.
  • Unit 42 said it shared findings with Microsoft, which responded that the techniques need administrative rights and sit outside a security servicing boundary.
  • The technique lets an administrator tamper with EDR agents and run code under PPL.
  • Custom Service Routine registers a service using a customized entry point to dump LSASS memory, supporting credential theft.

Unit 42 researchers disclosed PPLhost, a working proof of concept that bypasses Windows Protected Process Light, on Dec. 1.

Even when an administrative account is compromised, PPL continues to protect LSASS and endpoint detection and response agents. EDR is endpoint detection and response software. The protection blocks process and thread handles with dangerous access masks, regardless of whether the caller holds SeDebugPrivilege or full administrative rights.

LSASS oversees user logins and stores authentication tokens including NTLM hashes and Kerberos tickets. LSASS is the Local Security Authority Subsystem Service. NTLM hashes are encrypted authentication credentials used in Windows. Turning on LSA Protection upgrades LSASS into a PPL process, which prevents administrator processes from reading LSASS secrets.

Kerberos tickets are authentication tokens issued by a domain controller. Windows mandates that PP and PPL binaries include digital signatures supported by specialized certificates. A binary’s protection state is defined by two independent components: Type and Signer Category.

Signer categories permit higher-tier components like WinSystem or WinTcb to reach lower-tier binaries while keeping groups such as Antimalware and Lsa isolated. Vendors can place EDR agents under the Anti-Malware PPL tier, blocking attackers from terminating, tampering with or injecting code into them.

Service Host, also known as svchost.exe, can operate as PPL and loads background services that are implemented as DLL files. A DLL is a dynamic-link library that holds code used by running programs. The Service Control Manager reads the LaunchProtected value from the registry; setting that value to 2 configures a service as PPL.

The researchers changed ObjectName so a service would run as SYSTEM rather than NetworkService, and they added SeDebugPrivilege to RequiredPrivileges. SeDebugPrivilege is a Windows privilege that lets a process debug other processes. Modifications to sensitive system service settings may produce suspicious telemetry.

PPLhost relies on two new techniques: Bring Your Own Vulnerable Service DLL (BYOVSDLL) and Custom Service Routine. Bring Your Own Vulnerable Service DLL forces a service to use an older, vulnerable version. The technique replaces a DLL value in a service’s registry path to restore a previously patched flaw.

Custom Service Routine registers a service through a customized entry point in order to dump LSASS memory, which supports credential theft. ServiceMain is the entry point function that starts a Windows service.

Using the first technique, the researchers ran shellcode as PPL, pulled LSASS memory and halted protected EDR processes. Shellcode is a small payload of executable code.

A public Use-After-Free exploit for the Windows Telephony Server service, tapisrv.dll, was modified to run shellcode, since unsigned DLLs cannot load into PPL processes. A Use-After-Free flaw is a memory-corruption issue in which code references memory after it has been released. They copied an older, vulnerable tapisrv.dll along with its signed catalog file from an older Windows installation onto an updated machine. A catalog file is a signed file that Windows uses to verify a component.

Custom Service Routine gets around an svchost.exe barrier against custom ServiceMain entry points by using an older, pre-mitigation svchost binary that carries an embedded signature. The researchers identified werui.dll as containing a target function that dumps complete process memory and matches the required signature.

The bypass techniques only work if an administrative account has already been compromised. Unit 42 shared its findings with Microsoft, which said the techniques require administrative rights and fall outside a security servicing boundary. Microsoft said, “because the techniques require admin rights, they do not cross a security servicing boundary.”

Unit 42 said PPL is not formally designated as a critical security boundary, though it remains important to attackers and defenders. Microsoft addresses user-mode exploits like PPLFault, which drives attackers toward the kernel via signed vulnerable drivers in bring-your-own-vulnerable-driver attacks. PPLFault is a user-mode exploit targeting Windows Protected Process Light.

EDR silencing tools including EDR-Redir and EDRChoker weaken agent operation and telemetry without stopping the agent. EDR-Redir and EDRChoker are tools that interfere with endpoint detection and response agents without stopping them.

Unit 42 posted the PPLHost code on its GitHub repository. Dan Yashnik made extensive contributions to this research.

Unit 42 recommended that defenders enable Credential Guard to help prevent credential theft from LSASS. Credential Guard runs LSA Isolated (LSAISO) in Virtual Trust Level 1 by using virtualization-based security, which keeps NTLM hashes and Kerberos Ticket-Granting Tickets outside LSASS. Kerberos Ticket-Granting Tickets are authentication tokens used in Windows domains.

Virtual Trust Level 1 is a hardware-isolated environment created by virtualization-based security. Defenders should watch for changes to ServiceDll and other critical service settings, for svchost.exe launches from suspicious paths, and for handles to sensitive processes.

Idira Endpoint Privilege Manager removes standing administrator rights and blocks risky actions such as unvetted application execution and reading the memory of other processes. Palo Alto said Cortex XDR and XSIAM monitor for, detect and block service tampering and unauthorized runtime operations connected to these PPL techniques. Palo Alto Networks shared its findings with Cyber Threat Alliance members so they can quickly deploy protections. Cyber Threat Alliance is an information-sharing group of security vendors.

Unit 42 said defenders should stress-test boundaries like PPL because attackers are increasingly using AI to get around limitations. Unit 42 states that its research lets threat hunters and detection engineers spot subtle service tampering and improve endpoint telemetry for advanced post-exploitation techniques.

Was this helpful?

Join the discussion

Please read our Comment Policy before commenting. First-time comments are held for moderation. By posting a comment you agree to our Terms of Use and Privacy Policy, which explain how your name, email address and comment are used.

Your email address will not be published. Required fields are marked *