Skip to content
Threat Feed
medium threat exploited

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

  1. Attacker gains initial access to the target endpoint through existing foothold.
  2. Attacker plants a malicious phantom DLL into a directory accessible to the Windows Error Reporting service.
  3. Attacker manually creates a malformed .wer (Windows Error Report) file in the C:\ProgramData\Microsoft\Windows\WER\ReportQueue directory.
  4. Attacker leverages elevated or system-level permissions to trigger the 'QueueReporting' scheduled task via schtasks.exe or direct API calls.
  5. The Windows Error Reporting process (wermgr.exe) identifies the newly created .wer file in the queue.
  6. The wermgr.exe process attempts to process the report, leading it to load the attacker-planted phantom DLL.
  7. Execution of the malicious DLL payload occurs within the context of the wermgr.exe process.
  8. 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.

Detection Engineering 24h

Threat Hunt

Search for existing .wer files in the ReportQueue path created by processes other than standard WER binaries.

T1068 high high confidence hunt now

Data: Sysmon Event ID 11 logs

Detection coverage 1

Detect Manual .wer File Creation in ReportQueue

high

Detects 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).

sigma tactics: execution, privilege-escalation techniques: T1053.005, T1068 sources: process_creation, windows

Detection queries are available on the platform. Get full rules →