Executive Summary

We analyzed a Windows security mechanism called Protected Process Light (PPL), to assess its effectiveness. PPL is designed to prevent unauthorized processes from altering or accessing the memory of critical system and security services. PPL is designed to protect Local Security Authority Subsystem Service (LSASS) and endpoint detection and response (EDR) even if an attacker compromises an administrative account. We discovered techniques that can bypass these protections in the event of a compromised administrative account.

We developed a fully functional proof of concept (PoC) to bypass PPL protections that we call PPLhost. PPLhost implements two novel techniques:

  • Bring Your Own Vulnerable Service DLL (BYOVSDLL), which involves downgrading a service to a vulnerable version. This effectively provides the ability to tamper with EDR agents and execute code as PPL.
  • Custom Service Routine, which utilizes a customized service entry point to enable LSASS memory dumping. This technique enables credential theft.

We shared our findings with Microsoft, who noted that because the techniques require admin rights, they do not cross a security servicing boundary.

By shedding light on service mechanics in the context of PPL, our research empowers threat hunters and detection engineers to identify subtle service tampering, and strengthen endpoint telemetry against advanced post-exploitation techniques.

Palo Alto Networks customers are better protected from the threats discussed above through the following products and services:

Unit 42 Threat Intel Services is designed to provide organizations with tailored intelligence and direct access to our analysts to help assess relevant threats, prioritize risks and determine appropriate actions.

If you think you might have been compromised or have an urgent matter, contact the Unit 42 Incident Response team.

Related Unit 42 Topics Windows, DLL

PPL Usage in Security

PPL is designed to protect against a key problem within Windows systems – the powers that administrator processes can have. Rather than allowing local administrators access to every running process, PPL is designed to introduce some safeguards against an attacker who gains administrative access.

In standard Windows environments, administrative privileges allow processes to request full access to other running processes, such as:

  • Reading virtual memory
  • Injecting threads
  • Performing debugging

Protected Process (PP) and PPL override this behavior by evaluating and blocking the creation of any process or thread handle that has a dangerous access mask. This override occurs even if the caller holds the highest administrative rights or SeDebugPrivilege. Following are two examples of targeted processes and how PPL is designed to protect them.

  • LSASS as a target: In the past, local administrators had unrestricted access to every running process. This meant that attackers could easily misuse these privileges to compromise a system’s identity credentials and its defenses. They would target LSASS — the core service managing user logins and active authentication tokens (like NTLM hashes and Kerberos tickets) — using tools like Mimikatz to read its memory.
  • PPL’s LSASS safeguard: By enabling LSA Protection, LSASS is upgraded to a PPL process. This safeguard blocks administrator processes from reading LSASS secrets.
  • EDR as a target: Before the introduction of PPL, attackers who successfully called TerminateProcess could shut down EDR agents and evade detection.
  • PPL’s EDR safeguard: In more recent PPL implementations, security vendors configure their EDR agents to run under the Anti-Malware PPL tier. This ensures that attackers cannot terminate, tamper with or inject malicious code into the agents. This approach is similar to how LSA Protection protects LSASS.

Together, these implementations to protect LSASS and EDR are intended to ensure that even if an attacker compromises an administrative account, they can neither easily harvest credentials nor disable the machine’s defenses.

Signer Category Levels

To enforce PP and PPL processes, Windows requires binaries to be digitally signed with specialized certificates. Two components define the protections to be applied to each binary. These components are defined as orthogonal because they each operate independently of the other when defining the protection state:

  • Type: Establishes the overall environment restriction that is applied to a process — specifically, whether it runs as PP or PPL.
  • Signer Category: The classification given to a process, based on the digital signature of its executable binary. Within PPL, signer categories are split into different levels of trust, depending on the protections applied to each process.

The different signer categories enable higher-tier system components (like WinSystem or WinTcb) to access lower-tier binaries. These categories also deliberately isolate non-operating-system groups like Antimalware and Lsa from one another. Figure 1 depicts some of these relationships.

Diagram illustrating security levels. Two columns compare access levels. On the left, an arrow labeled "Open for Full Access" points downward, listing from top to bottom: "Windows TCB", "Windows", "Anti-Malware", "CodeGen", "Authenticode". On the right, an arrow labeled "More Secure" points upward, with the same list of items in the same order. An arrow at the top, labeled "Open for Full Access at Same Level", points rightward.
Figure 1. PP and PPL relationships (source: Project Zero).

Attacks on PPL

Microsoft provides patches for user-mode logic exploits like PPLFault, which uses memory page faults and race conditions to trick the operating system (OS) into executing malicious code. Consequently, instead of user-mode bypasses, attackers try to target the kernel itself, via bring-your-own-vulnerable-driver (BYOVD) attacks. Targeting the kernel enables attackers to bypass PPL by loading a legitimately signed driver that contains a security flaw. This grants them kernel-level read/write primitives to bypass PPL, which by design only protects against user-mode processes.

When the goal is to tamper with EDR agents, attackers often turn to EDR silencing tools and techniques such as EDR-Redir and EDRChoker. Instead of attempting to terminate the agent, these methods focus on impairing its ability to operate correctly or communicate telemetry.

By exploring different attack methods, we can identify how bypass techniques evolve in the face of increased PPL security measures. This provides us with important insights into how best to protect environments and ensure visibility into suspicious activity. Our insights led to the discovery of the following novel techniques to bypass PPL.

Technique No. 1: Bring Your Own Vulnerable Service DLL (BYOVSDLL)

The obvious barrier to a successful exploit is that known vulnerabilities are patched. We discovered an attack vector that involves downgrading a service to its vulnerable version, rendering patches ineffective. By overwriting a dynamic-link library (DLL) value in the registry of the service path, it is possible to reintroduce known vulnerabilities that have existing exploits.

The starting point for the BYOVSDLL technique was the observation that Service Host (svchost.exe) can be launched as PPL. svchost.exe is a core Windows system process that loads and runs background Windows services implemented as DLL files. The Windows Service Control Manager (SCM) uses the LaunchProtected value in the registry to determine whether a service should be launched as PPL. This means that by setting LaunchProtected to 2 (PPL), we can configure PPL for a chosen service. While it is possible to create a PPL process directly using WinAPI, using the SCM allows the standard initialization of the service.

This ability to register a service as PPL reveals a significant attack surface. Any Microsoft-signed, vulnerable service DLL that grants code execution could be exploited by an admin user to compromise PPL.

We found a public, functional Use-After-Free exploit in the Windows Telephony Server service, tapisrv.dll. We modified the exploit’s code to run shellcode instead of loading a DLL, as unsigned DLLs cannot be loaded into a PPL process.

After copying an older, vulnerable tapisrv.dll to an updated machine, we observed that the DLL was not recognized as legitimately signed, because it lacked an embedded signature. This was resolved by copying and installing the signed valid catalog file from the older Windows installation.

To upgrade our permissions, we also modified the ObjectName value, which controls the service user. This change enabled us to launch the service as SYSTEM instead of NetworkService, and to add SeDebugPrivilege to RequiredPrivileges.

Figures 2 and 3 depict the registry changes. After applying all of the changes — LaunchProtected, ServiceDll, ObjectName and RequiredPrivileges — we restarted the service and ran our exploit.

Screenshot of a Windows Registry Editor window. A red rectangle highlights two entries: "LaunchProtected" of type REG_DWORD with value 2, and "ObjectName" of type REG_SZ with value LocalSystem.
Figure 2. Modified values of TapiSrv service configuration.
Screenshot of a Registry Editor window showing a speficifc path. The highlighted entry shows "ServiceDll" with a value.
Figure 3. Modified ServiceDll of TapiSrv.

Using this technique, we were able to successfully run shellcode as PPL, dump LSASS memory and terminate protected EDR processes.

Figures 4 and 5 show successful executions of the PoC.

Screenshot of a command prompt window displaying a series of executed commands related to a process dump for LSASS on a Windows system. The output includes steps for creating a process with a protection level and several status messages indicating operations such as service installation and privilege application.
Figure 4. Successful execution of PPLhost for LSASS memory dump.
Screenshot of a command prompt window displaying a terminal log. The log shows various commands and processes with a focus on starting RPC client threads and executing shellcode. It includes hexadecimal data and notes successful task completions.
Figure 5. Successful execution of PPLhost for Windows Defender process termination.

The technique of modifying sensitive settings of system services could generate suspicious telemetry.

Technique No. 2: Custom Service Routine

For the second technique, we explored an alternative approach that avoids downgrading a service. We identified existing services with suitable primitives for a PPL bypass, and created a technique that operates in a more covert manner than Technique No. 1.

Usually the entry point for service DLLs is an exported function called ServiceMain, but it is also possible to register a service with a custom ServiceMain, as Figure 6 shows.

Screenshot of a Windows Registry Editor window. Highlighted is the "ServiceMain" entry located under the path.
Figure 6. Example of a custom ServiceMain value.

The ServiceMain parameters are passed through StartServiceW.

Effectively, any export in any PCA-signed DLL with a signature of int argc, char *argv[] (or a sufficiently similar signature that references our controlled parameters) is a potential target.

We discovered that a mitigation exists in svchost.exe that ensures that if a process is PPL, it cannot use a custom ServiceMain, as shown in Figures 7 and 8.

A close-up screenshot of a portion of programming code. The syntax is colored, with function names visible. Text includes variable assignments and conditional statements.
Figure 7. Mitigation prerequisite before fetching a custom ServiceMain registry value.
Screenshot of a code snippet showing a conditional statement in C++ involving a function with 3 parameters.
Figure 8. Condition check to enable the mitigation.

To bypass this mitigation, we can employ a bring-your-own svchost approach, by providing an older binary that predates the mitigation. As Figure 9 shows, this binary even has an embedded signature, meaning that there is no need to install the catalog.

Screenshot of the properties window showing the "Embedded Signatures" tab. The name of the signer is "Microsoft Windows".
Figure 9. Embedded signature.

We found a suitable target function in werui.dll, which performs a full memory dump of a process and matches the required signature, shown in Figure 10.

Screenshot of a code snippet showing a function definition with parameters.
Figure 10. WerUIReportSilentProcessExit.

The registry changes for this technique are shown in Figures 11 and 12.

Screenshot of the Windows Registry Editor displaying registry settings. The highlighted section shows "ImagePath" with a value pointing to a file location. Other entries include "LaunchProtected," "ObjectName," "Start," and "Type" with various hexadecimal values.
Figure 11. Custom service PPL configuration.
Screenshot of a Windows Registry Editor showing a path. It displays three registry entries: "ServiceDll" with a value pointing to a Windows system directory with a DWORD value of 1, and "ServiceMain" with a value.
Figure 12. Custom malicious ServiceMain.

It might also be possible to find target functions or primitives that would achieve arbitrary shellcode execution inside the process.

Mitigations

Defenders can improve protection of their environments by enabling Credential Guard to help prevent credential theft from LSASS, and by deploying detections for tools and techniques that target PPL processes.

Credential Guard

Windows Credential Guard uses virtualization-based security (VBS) to run a separate component — LSA Isolated (LSAISO) — in Virtual Trust Level 1 (VTL 1). This component is completely inaccessible to standard VTL 0 user-mode or kernel-mode code.

The NTLM hashes and Kerberos Ticket-Granting Tickets (TGTs) are stored inside LSAISO, and are not saved in LSASS. When LSASS needs to perform an operation with the NTLM hashes or TGTs, it asks LSAISO. When Credential Guard is used, it is not possible to retrieve credentials by reading the memory of LSASS — as they are not there. Figure 13 shows the Credential Guard architecture.

Diagram showing a comparison between "Normal mode" and "Secure mode." Both modes include lsass.exe with NTLM. "Normal mode" has Kerberos and Drivers, while "Secure mode" includes Kerberos support, SSO credentials, and uses lsaiso.exe. The separation is marked by a Hypervisor and TPM underneath.
Figure 13. Credential Guard architecture (source: Microsoft).

Detection

Monitoring the following activities will help defenders to detect and prevent these techniques:

  • Modifying ServiceDll and other critical service settings
  • Starting svchost.exe from a suspicious path
  • Creating handles to sensitive processes

Conclusion

This article demonstrates how certain security boundaries, while not officially classified as critical, are significant for both attackers and defenders. As attackers increasingly leverage AI to bypass these limitations, defenders should stress-test security boundaries like PPL to stay ahead of modern adversaries and strengthen defense strategies.

Through our analysis of PPL and the development of PPLhost, we discovered two techniques for bypassing PPL protections:

  • Bring Your Own Vulnerable Service DLL (BYOVSDLL): Downgrading a service to a vulnerable version
  • Custom Service Routine: Utilizing a customized service entry point

By sharing these findings and detailing the mechanics behind PPL execution, we aim to provide security teams with actionable guidance designed to detect, audit and neutralize process-tampering techniques across enterprise environments.

Credits

I’d like to thank Dan Yashnik for his extensive contributions to this research.

Palo Alto Networks Protection and Mitigation

Palo Alto Networks customers are better protected from the threats discussed above through the following products:

  • Cortex XDR and XSIAM are designed to detect and prevent the execution of known and unknown malware using Behavioral Threat Protection and machine learning-based Local Analysis. Against the PPL exploitation techniques analyzed in this research, Cortex XDR and XSIAM deliver multi-stage coverage by monitoring, detecting and blocking both suspicious service tampering and unauthorized runtime process operations.

Figure 14 shows service tampering detected and blocked in Cortex XDR. Figure 15 shows Cortex XDR detecting and preventing EDR tampering.

A computer screen displays a command prompt window on the left, showing commands related to service and account management. On the right, a pop-up alert from Cortex XDR Prevention indicates that .exe file was blocked due to malicious activity, classifying the detection as "behavioral threat detected".
Figure 14. Cortex XDR blocks PPLhost service tampering.
A computer screen displays a network security alert from Cortex XDR. The alert indicates that a malicious activity that has been blocked. Details of the application, prevention description, and user information are presented. On the left, there is a terminal window showing command line text related to system operations.
Figure 15. Cortex XDR blocks EDR tampering.
  • Idira Endpoint Privilege Manager (EPM) is designed to enable enterprises to reduce risk, satisfy compliance and streamline operations. It helps implement least privilege via policy-driven elevation and removal of standing admin rights, and blocks risky actions, such as execution of unvetted applications and access to memory of other processes, while providing audit-ready evidence and unified identity governance.

Unit 42 Threat Intel Services is designed to provide organizations with tailored intelligence and direct access to our analysts to help assess relevant threats, prioritize risks and determine appropriate actions.

If you think you may have been compromised or have an urgent matter, get in touch with the Unit 42 Incident Response team or call:

  • North America: Toll Free: +1 (866) 486-4842 (866.4.UNIT42)
  • UK: +44.20.3743.3660
  • Europe and Middle East: +31.20.299.3130
  • Asia: +65.6983.8730
  • Japan: +81.50.1790.0200
  • Australia: +61.2.4062.7950
  • India: 000 800 050 45107
  • South Korea: +82.080.467.8774

Palo Alto Networks has shared these findings with our fellow Cyber Threat Alliance (CTA) members. CTA members use this intelligence to rapidly deploy protections to their customers and to systematically disrupt malicious cyber actors. Learn more about the Cyber Threat Alliance.

Additional Resources

Enlarged Image