ShieldBreak Local Privilege Escalation via Windows Error Reporting
The ShieldBreak exploit facilitates local privilege escalation by manually creating malicious .wer files in the Windows Error Reporting ReportQueue directory to achieve arbitrary code execution as SYSTEM.
The ShieldBreak exploit targets a vulnerability in the Windows Error Reporting (WER) mechanism, enabling local privilege escalation to SYSTEM integrity. By manually bypassing standard WER workflows, attackers can place a crafted .wer file directly into the protected ReportQueue directory. When the system's 'QueueReporting' scheduled task is invoked, the wermgr.exe process processes the attacker-supplied report, which leads to the side-loading of a malicious, attacker-planted phantom DLL. This technique allows an unprivileged attacker who has already obtained initial execution on the host to elevate their privileges. Defenders should monitor for non-standard processes writing .wer files to the ReportQueue path, as this is a primary indicator of preparation for the ShieldBreak exploitation chain.
Attack Chain
- Attacker gains initial access to the target endpoint through existing foothold.
- Attacker plants a malicious phantom DLL into a directory accessible to the Windows Error Reporting service.
- Attacker manually creates a malformed .wer (Windows Error Report) file in the C:\ProgramData\Microsoft\Windows\WER\ReportQueue directory.
- Attacker leverages elevated or system-level permissions to trigger the 'QueueReporting' scheduled task via schtasks.exe or direct API calls.
- The Windows Error Reporting process (wermgr.exe) identifies the newly created .wer file in the queue.
- The wermgr.exe process attempts to process the report, leading it to load the attacker-planted phantom DLL.
- Execution of the malicious DLL payload occurs within the context of the wermgr.exe process.
- Attacker gains SYSTEM integrity on the compromised host.
Impact
Successful exploitation of ShieldBreak results in full privilege escalation to SYSTEM, allowing for complete control over the compromised endpoint. This impact is significant in multi-user environments where standard users could compromise the host and escalate to administrative control, leading to potential data theft, lateral movement, and persistent backdoor installation.
Recommendation
- Deploy the provided Sigma rule to detect non-standard processes writing .wer files to the ReportQueue directory.
- Enable Sysmon Event ID 11 (FileCreate) and ensure the configuration monitors the C:\ProgramData\Microsoft\Windows\WER\ReportQueue path, as these paths are often excluded from default monitoring profiles.
- Audit scheduled tasks for the 'QueueReporting' task to establish a baseline of legitimate activity and identify unauthorized executions.
- Hunt for the presence of unexpected DLLs in directories commonly targeted by WER for report processing.
Immediate actions
Deploy the detection rule for manual .wer file creation.
Threat Hunt
Search for existing .wer files in the ReportQueue path created by processes other than standard WER binaries.
Data: Sysmon Event ID 11 logs
Detection coverage 1
Detect Manual .wer File Creation in ReportQueue
highDetects the creation or modification of .wer files in the Windows Error Reporting ReportQueue directory by processes other than standard WER binaries (werfault.exe, werfaultsecure.exe, wermgr.exe).
Detection queries are available on the platform. Get full rules →