Troubleshooting to SYSTEM: Local Privilege Escalation in Windows Diagnostics
summary
A local privilege escalation is demonstrated by hijacking Windows diagnostics: observing DLL loads with Process Monitor, mapping RPC with RPC View, reversing the diag service DLL in Ghidra and replaying HTTP flows captured in Burp Suite. A custom RPC client invokes invokeDiagnosticAction, downloads .diag.cab packages (enumerated from resources.json), and exploits a race in one package that swaps a staged payload for MediaCreationTool to achieve SYSTEM execution. Proof of concept works against recent Windows but Microsoft patches the hosted PowerShell packages and issues a bounty.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 1:09Phantom DLLs explained
- 3:54Finding phantom DLLs
- 8:26Troubleshooting legacy tools
- 11:32Exploring Get Help
- 14:11Analyzing diagnostic services
- 19:02RPC and HTTP communications
- 22:48Reversing diagnostic logic
- 26:56Building a custom client
- 34:17Diagnostic package research
- 38:35Automated package auditing
- 43:08LPE vulnerability exploit
- 50:17Disclosure and conclusion
