Unit 42 PPLhost PoC bypasses Windows PPL to dump LSASS and tamper with EDR via service DLL downgrade
Unit 42 researchers (Eli Birkan, Oriel Cochavi) published PPLhost, a proof of concept that bypasses Windows Protected Process Light (PPL) protections when the attacker already has administrative rights. It implements two techniques: Bring Your Own Vulnerable Service DLL (BYOVSDLL) and Custom Service Routine. Both allow code execution as PPL, LSASS memory dumping and termination of protected EDR processes. Microsoft was informed and said the techniques need admin rights, so they do not cross a security servicing boundary. No CVE is assigned, no in-the-wild exploitation is reported, and no Microsoft fix is described. This is research, not an active campaign. I did not run web research for this record, so it rests on the article alone.
Detalhes técnicos
- BYOVSDLL: the SCM
LaunchProtectedregistry value is set to 2 so that a service runs as PPL.ServiceDllis pointed at an older, vulnerable Microsoft-signed DLL. The researchers used tapisrv.dll (Telephony service) with a public use-after-free exploit, modified to run shellcode. The old DLL's signed catalog file had to be installed.ObjectNamewas changed to run the service as SYSTEM, andSeDebugPrivilegewas added toRequiredPrivileges. - Custom Service Routine: a service is registered with a custom ServiceMain export from a PCA-signed DLL. The researchers used a function in werui.dll that makes a full process memory dump. A current svchost.exe blocks custom ServiceMain for PPL, so an older svchost.exe that predates the mitigation is brought along ("bring your own svchost").
- Related background: PPLFault and BYOVD attacks, and the EDR silencing tools EDR-Redir and EDRChoker.
Remediação
- Enable Credential Guard (LSAISO in VTL1), so credentials are not held in LSASS memory.
- Monitor changes to ServiceDll and other critical service settings.
- Monitor svchost.exe starting from unusual paths.
- Monitor handle creation to sensitive processes.
- Remove standing admin rights.
- Palo Alto Networks says Cortex XDR/XSIAM detects and blocks the service tampering.
Linha do tempo
-
Unit 42 PPLhost PoC bypasses Windows PPL to dump LSASS and tamper with EDR via service DLL downgrade
ler a análise desta fonte ocultar
Unit 42 researchers (Eli Birkan, Oriel Cochavi) published PPLhost, a proof of concept that bypasses Windows Protected Process Light (PPL) protections when the attacker already has administrative rights. It implements two techniques: Bring Your Own Vulnerable Service DLL (BYOVSDLL) and Custom Service Routine. Both allow code execution as PPL, LSASS memory dumping and termination of protected EDR processes. Microsoft was informed and said the techniques need admin rights, so they do not cross a security servicing boundary. No CVE is assigned, no in-the-wild exploitation is reported, and no Microsoft fix is described. This is research, not an active campaign. I did not run web research for this record, so it rests on the article alone.
Technical Details
- BYOVSDLL: the SCM
LaunchProtectedregistry value is set to 2 so that a service runs as PPL.ServiceDllis pointed at an older, vulnerable Microsoft-signed DLL. The researchers used tapisrv.dll (Telephony service) with a public use-after-free exploit, modified to run shellcode. The old DLL's signed catalog file had to be installed.ObjectNamewas changed to run the service as SYSTEM, andSeDebugPrivilegewas added toRequiredPrivileges. - Custom Service Routine: a service is registered with a custom ServiceMain export from a PCA-signed DLL. The researchers used a function in werui.dll that makes a full process memory dump. A current svchost.exe blocks custom ServiceMain for PPL, so an older svchost.exe that predates the mitigation is brought along ("bring your own svchost").
- Related background: PPLFault and BYOVD attacks, and the EDR silencing tools EDR-Redir and EDRChoker.
Remediation
- Enable Credential Guard (LSAISO in VTL1), so credentials are not held in LSASS memory.
- Monitor changes to ServiceDll and other critical service settings.
- Monitor svchost.exe starting from unusual paths.
- Monitor handle creation to sensitive processes.
- Remove standing admin rights.
- Palo Alto Networks says Cortex XDR/XSIAM detects and blocks the service tampering.
- BYOVSDLL: the SCM