Back to Blog
Vulnerability Research Aug 24, 2026 140 views

ShieldBreak: Weaponizing Windows Defender's Own Remediation Pipeline (CVE-2026-50656)

ShieldBreak chains Defender's own RPC API, Cloud Files hydration, Object Manager shadow directories, CLFS log hijacking, and WER DLL loading into arbitrary SYSTEM code execution. Full chain analysis and Sigma detection rules.

By Noman Nasir Minhas, Security Researcher, Cytomate

ShieldBreak · CVE-2026-50656

Overview

There's a particular kind of vulnerability that keeps reappearing in Windows security tooling, and it has nothing to do with memory corruption. It's a trust problem: specifically, the assumption that if a security product is the one doing the file I/O, the path it's operating on must be safe. ShieldBreak breaks that assumption, and it does so by chaining techniques that individually aren't novel, but together expose something fundamental about how Defender's remediation pipeline was designed (and re-patched).

ShieldBreak is a critical vulnerability that achieves arbitrary SYSTEM code execution by weaponizing Windows Defender's own clean/remediation pipeline against itself. It chains five distinct subsystem abuses: direct Defender RPC API access, Cloud Files (CldApi) placeholder hydration, Object Manager shadow directory namespace isolation, CLFS log path hijacking, and Windows Error Reporting (WER) DLL loading. None of these primitives are individually novel: the power is entirely in how they are chained and in the incompleteness of Microsoft's prior patch for RoguePlanet.

The exploit has a claimed 100% success rate on Windows 11 25H2 and Server 2025. Windows 10 is stated as also vulnerable but unsupported by the PoC.

Background: The Original RoguePlanet and the Failed Patch

CVE-2026-50656 (referenced as “RoguePlanet”) was a vulnerability class where Windows Defender's MsMpEng.exe (running as SYSTEM) could be tricked into performing file operations on attacker-controlled paths during the remediation (clean) phase. The core idea: Defender scans a file, detects it, and then as SYSTEM it tries to remove or quarantine it. If the path it's operating on can be redirected between the scan and the clean, the SYSTEM process ends up writing to an attacker-chosen location.

Microsoft attempted a patch. ShieldBreak bypasses that patch by introducing two layers that weren't accounted for: Object Manager shadow directory namespace isolation, and the Cloud Files hydration API as a TOCTOU amplifier. Most people's mental model of how an AV cleans a file is: scan, detect, delete or quarantine. The actual implementation in MsMpEng is more involved: a CLFS journal for transactionality, a multi-step state machine, all running in SYSTEM context. The assumption baked into the design is that the path you scanned is the path you'll clean. ShieldBreak breaks that assumption twice.

The Attack Surface Primitives

1: MpClient.dll: Defender's Internal RPC Interface

The first thing the exploit does is invoke Defender directly through MpClient.dll, which ships with Defender and exposes its RPC interface to userspace. This isn't a kernel exploit, a memory corruption, or even privilege escalation in the traditional sense: it's calling Defender's own API, from a medium-integrity process, and telling it to scan an attacker-controlled path.

HRESULT hr = _MpManagerOpen(NULL, &hbinding);
// ...
hr = _MpScanStart(hbinding, MPSCAN_TYPE_RESOURCE, 0x60004002,
                  &scanrsrc, NULL, &scanctx);

MpManagerOpen returns a binding handle to Defender's RPC server. MpScanStart with type MPSCAN_TYPE_RESOURCE triggers a targeted scan on a specific resource. The 0x60004002 flags enable async operation. None of this requires admin. None of it requires any bypass. Defender just accepts it.

This matters for two reasons. First, it gives the exploit precise control over the scan lifecycle: it can open a threat handle, enumerate detections, and orchestrate the clean via MpCleanOpen and MpCleanStart. Second, it allows precise timing of the symlink swap, because the exploit knows exactly when the clean phase begins.

2: Cloud Files API: TOCTOU via On-Demand Hydration

The Cloud Files API (CldApi) is Windows' native framework for implementing cloud-sync providers. The model: a file exists on disk as a zero-byte placeholder. When anything opens or reads it, the filter driver (cldflt.sys) fires a callback into the registered provider process, which then supplies the actual file data: hydration. The exploit creates a fake sync provider, registers a working directory as its sync root, and creates a placeholder called BERLIN. The callback decides what content to serve based on a state counter:

if (*RNA == 1) {
    // First read: serve EICAR ZIP; Defender detects this
    opParams.TransferData.Buffer = pResourceData_zip;
    *RNA = 2;
} else {
    // Subsequent reads: serve Warden.dll; the actual payload
    opParams.TransferData.Buffer = pResourceData_dll;
}

Defender scans BERLIN, hydration fires, EICAR ZIP appears. Detection happens. When MsMpEng accesses the file again during remediation, a second hydration fires, and this time it gets Warden.dll. The fundamental problem: Defender doesn't bind its clean operation to the content hash it recorded during scan. It re-reads by path. The file that gets “remediated” (operated on by a SYSTEM process with write access to System32) is not the file that was detected. This is a TOCTOU at the file content level, enabled entirely by the Cloud Files API's designed-in behavior of serving different data per access.

3: Object Manager Shadow Directories: The Actual Patch Bypass

This is the part that makes this a patch bypass rather than a retread of the original vulnerability. NtCreateDirectoryObjectEx is a mostly-undocumented syscall that accepts a ShadowDirectoryHandle parameter. When you create a directory with a shadow, name lookups work like this: check the directory itself first; if the name isn't there, fall through to the shadow. It's a union namespace at the kernel object level. The exploit creates two object directories:

  • TARGET: contains symlink WD_SCAN → \CLFS\??\C:\ShieldBreak_<GUID> (CLFS device namespace)
  • SHADOW: created with TARGET as its shadow; initially contains WD_SCAN → working directory

The scan path fed to Defender is:

\\.\globalroot\BaseNamedObjects\Restricted\WD_SHADOW_<GUID>\WD_SCAN\BERLIN

During the scan, WD_SCAN resolves from SHADOW: giving Defender the placeholder file. When the clean phase begins, the exploit deletes SHADOW's WD_SCAN symlink. Now the lookup falls through to TARGET, resolving to the CLFS device namespace. The path didn't change. No symlink was swapped in the path itself. The Object Manager just started returning a different answer for the same traversal because the shadowing relationship changed what “not found in SHADOW” resolves to.

This is elegant in a frustrating way. If Microsoft's patch validates that a path is symlink-free during the clean phase, it validates the path as seen by a traversal at that moment. At that moment, SHADOW has WD_SCAN as an object directory (not a symlink), so it passes. What the validator doesn't see is that TARGET's WD_SCAN (which the lookup falls through to) is still a symlink, and the child symlink inside points somewhere very specific.

4: CLFS Log Path Hijacking

When MsMpEng runs a clean operation, it creates a CLFS log (a structured transaction journal) in the directory context of the file being remediated. The exploit monitors for these files with ReadDirectoryChangesW:

ReadDirectoryChangesW(hmonitor, buff, sizeof(buff), FALSE,
    FILE_NOTIFY_CHANGE_FILE_NAME, &retb, NULL, NULL);
// FILE_ACTION_ADDED -> CLFS log appeared
delete shlnk; // delete SHADOW's WD_SCAN symlink

Once the CLFS container filename is known, it's locked exclusively with LockFileEx, and the symlink structure is created in its place inside a new WD_SCAN object directory in SHADOW:

ObjectDirMgr* foodir = new ObjectDirMgr(L"WD_SCAN", NULL, shadowdir->GetHandle());
ObjectSymlinkMgr* lsymlink = new ObjectSymlinkMgr(
    clfs_log_name,
    L"\\??\\UNC\\127.0.0.1\\C$\\Windows\\System32\\phoneinfo.dll",
    foodir->GetHandle()
);

The UNC path through 127.0.0.1\C$ is deliberate. The patch likely validates that paths don't resolve to sensitive system directories when expressed as drive-letter paths. Loopback UNC bypasses whatever check is expressed in terms of DOS path prefixes. Functionally they reference the same file, but they don't look the same to a string comparison or simplified path canonicalization.

5: WER as a Privileged Loader

Placing an arbitrary DLL in System32 under SYSTEM is the hardest part of the chain. Once that's done, getting execution is almost trivially available. ShieldBreak uses Windows Error Reporting. phoneinfo.dll is a real Windows DLL (the Phone Sensor Information provider) loaded by various system components. WER's QueueReporting scheduled task, which processes pending crash reports and runs as SYSTEM, loads it as part of its module set.

The exploit creates a fake crash report in the WER queue, then triggers QueueReporting via the Task Scheduler COM interface:

taskfolder->GetTask((BSTR)L"QueueReporting", &taskex);
taskex->Run(_variant_t(), &runningtask);

When WER loads phoneinfo.dll, Warden.dll's DllMain executes. The DLL connects to the named pipe \\.\pipe\SHIELDBREAK created at the very start of the exploit. ConnectNamedPipe returns. Exploit confirmed.

The Full Attack Chain

1.  Create named pipe \\.\pipe\SHIELDBREAK: wait for DLL callback
2.  Register Cloud Files sync root at C:\ShieldBreak_<GUID>
3.  Create BERLIN placeholder (size = EICAR ZIP)
4.  Build Object Manager namespace: SHADOW\WD_SCAN -> workdir | TARGET\WD_SCAN -> \CLFS\??\workdir
5.  Trigger Defender scan via MpClient.dll RPC on SHADOW\WD_SCAN\BERLIN
6.  Cloud callback (hydration #1): serve EICAR ZIP -> Defender detects threat
7.  Defender starts MpClean (SYSTEM) -> creates CLFS log in working dir
8.  Detect CLFS log creation via ReadDirectoryChangesW
9.  Delete SHADOW\WD_SCAN symlink; lock CLFS container file exclusively
10. Create SHADOW\WD_SCAN as object dir; add symlink: <CLFS_name> -> phoneinfo.dll via UNC loopback
11. CfExecute(RESTART_HYDRATION) + CfHydratePlaceholder
12. Cloud callback (hydration #2): serve Warden.dll -> MsMpEng writes to phoneinfo.dll as SYSTEM
13. Spin until C:\Windows\System32\phoneinfo.dll is openable
14. Trigger WER QueueReporting scheduled task via COM (SYSTEM)
15. WER loads phoneinfo.dll -> Warden.dll DllMain runs -> connects to named pipe
16. ConnectNamedPipe returns -> exploit confirmed

Structural Flaws Being Exploited

Flaw 1: Shadow Directory Blind Spot in the Patch. Microsoft's RoguePlanet patch presumably added validation that the clean path doesn't resolve through symlinks at clean time. Shadow directories defeat this because the symlink isn't present in the top-level path components during the clean phase: it's been replaced by an object directory containing a child symlink. The validator sees a directory where a symlink previously was. The redirect is one level deeper than whatever validation was added.

Flaw 2: CLFS as a Trusted but Unguarded Write Primitive. MsMpEng uses CLFS for its own internal journaling, but the path used to open the CLFS log is derived from the scan context, which the attacker controls. The CLFS driver opens the log path in SYSTEM context without verifying it doesn't resolve through attacker-controllable namespace objects.

Flaw 3: Cloud Files Content Not Bound to the Detected Hash. Defender detects the EICAR ZIP. The threat hash is recorded. But when the clean operation physically accesses the file, it hydrates the placeholder again, and gets different content. The clean engine trusts the file system location, not the content hash, during the remediation write phase. The file it cleans is not the file it scanned.

Flaw 4: WER's LoadLibrary Surface Against System32 Writes. WER's QueueReporting task operates as SYSTEM and causes module loads from System32. Any mechanism that allows writing to System32 as SYSTEM (which Defender itself is) trivially chains into WER for execution. The loaded DLL inherits the SYSTEM token.

Flaw 5: MpClient.dll RPC Accepts Low-Privileged Callers. The RPC interface exposed by MsMpEng.exe and accessible via MpClient.dll does not require elevated privileges to initiate a targeted resource scan. A medium-integrity process can point Defender's SYSTEM process at an arbitrary path.

Sigma Detection Rules

These rules are ordered by fidelity, not by where they fire in the chain. The minifilter rule fires last but is the most reliable standalone signal. The Object Manager rule fires earliest but requires ETW sources most environments don't have. Don't try to detect the full chain: detect each primitive independently. An attacker can randomize pipe names and vary directory naming, but they can't make MsMpEng stop being SYSTEM or make the shadow directory syscall look normal.

Rule 1: MsMpEng Writing PE to System32 Critical

The highest fidelity rule in the set. MsMpEng has no legitimate reason to write a PE file to System32 outside of Defender's own update mechanism, which uses different paths and filenames entirely. This fires at the payload drop stage and catches the exploit regardless of whatever namespace manipulation preceded it.

title: MsMpEng Anomalous Write to System32
id: a3f1d2e7-9c4b-4f8a-b5e6-2d7c8a1f3e9b
status: stable
description: >
    Detects MsMpEng.exe writing a file to C:\Windows\System32 with a
    name not matching known Defender operational paths. Indicative of
    CLFS log hijacking causing Defender's SYSTEM process to write an
    attacker-controlled payload to a privileged location.
    Associated with CVE-2026-50656 (ShieldBreak).
tags:
    - attack.defense_evasion
    - attack.t1562.001
    - attack.privilege_escalation
    - attack.t1574
logsource:
    category: file_event
    product: windows
detection:
    selection:
        Image|endswith: '\MsMpEng.exe'
        TargetFilename|startswith: 'C:\Windows\System32\'
        TargetFilename|endswith:
            - '.dll'
            - '.exe'
            - '.sys'
    filter_legitimate:
        TargetFilename|contains:
            - '\MpSigStub'
            - '\MpCmdRun'
            - 'MpAzSubmit'
            - '\Windows Defender\'
    condition: selection and not filter_legitimate
level: critical

Rule 2: MpClient.dll Loaded Outside Defender Process High

Any process outside the Defender family loading MpClient.dll is abusing Defender's RPC interface. This is how the exploit initiates the controlled scan and drives the entire lifecycle. Legitimate software does not use MpClient.dll directly.

title: MpClient.dll Loaded by Non-Defender Process
id: b7e2c4f1-3a8d-4e5b-9f7c-1d6a2b8e4c3f
status: stable
tags:
    - attack.defense_evasion
    - attack.t1562.001
logsource:
    category: image_load
    product: windows
detection:
    selection:
        ImageLoaded|endswith: '\MpClient.dll'
    filter_defender:
        Image|contains:
            - '\Program Files\Windows Defender\'
            - '\ProgramData\Microsoft\Windows Defender\'
            - '\MsMpEng.exe'
            - '\MpCmdRun.exe'
            - '\NisSrv.exe'
            - '\SecurityHealthService.exe'
    condition: selection and not filter_defender
falsepositives:
    - Security research tools or custom AV management software.
      Third-party products that wrap Defender APIs (rare).
level: high

Rule 3: Cloud Files Sync Root Registration by Untrusted Process Medium

Legitimate cloud sync providers register sync roots during install or first run, not from short-lived processes. A process registering a sync root immediately before a Defender scan event is a strong indicator of placeholder hydration abuse.

title: Suspicious Cloud Files Sync Root Registration
id: c9d3e5a2-7f1b-4c6d-8e2a-4b5f9c2d7e1a
status: experimental
tags:
    - attack.defense_evasion
    - attack.t1562.001
logsource:
    product: windows
    category: registry_event
detection:
    selection_reg:
        TargetObject|contains:
            - '\SyncRootManager\'
    filter_known_providers:
        Image|contains:
            - '\OneDrive.exe'
            - '\FileCoAuth.exe'
            - '\Teams.exe'
            - '\Dropbox.exe'
            - '\BoxDrive.exe'
            - '\GoogleDriveFS.exe'
    condition: selection_reg and not filter_known_providers
falsepositives:
    - New or uncommon cloud storage clients not in filter.
      Validate against approved cloud sync providers per environment.
level: medium

Rule 4: NtCreateDirectoryObjectEx Shadow Directory Creation High

NtCreateDirectoryObjectEx with a non-null shadow handle is called by essentially nothing in production software. Requires Sysmon or an EDR that instruments NT syscall parameters. Fires at the earliest point in the exploit, before Defender is ever contacted.

title: Object Manager Shadow Directory Creation
id: d4f6b8c1-2e9a-4d7f-a3c5-8b1e6d4f2a7c
status: experimental
description: >
    NtCreateDirectoryObjectEx with a non-null shadow handle creates a
    union namespace exploited by ShieldBreak to bypass path validation
    in Defender's patch. Legitimate use outside kernel subsystems is
    virtually nonexistent.
tags:
    - attack.defense_evasion
    - attack.t1562.001
    - attack.t1106
logsource:
    product: windows
    category: process_access
    # Requires ETW: Microsoft-Windows-Kernel-Object
    # or Sysmon with NT object instrumentation
detection:
    selection:
        CallStack|contains: 'NtCreateDirectoryObjectEx'
    filter_system:
        Image|contains:
            - '\smss.exe'
            - '\csrss.exe'
            - '\services.exe'
            - '\lsass.exe'
            - '\wininit.exe'
    condition: selection and not filter_system
level: high

Rule 5: WerFault Loading Unexpected System DLL High

WerFault.exe has a predictable module load profile. An image load event for a DLL not in its normal load set indicates DLL replacement. Catches the execution stage of ShieldBreak and any other technique placing a payload in System32 and using WER for loading.

title: WerFault Loading Unexpected Module from System32
id: e1a5c7d3-8b2f-4e9a-b6d4-3c7f1e5a8b2d
status: stable
tags:
    - attack.execution
    - attack.t1574.001
    - attack.privilege_escalation
logsource:
    category: image_load
    product: windows
detection:
    selection:
        Image|endswith:
            - '\WerFault.exe'
            - '\WerFaultSecure.exe'
            - '\wermgr.exe'
        ImageLoaded|startswith: 'C:\Windows\System32\'
    filter_baseline:
        ImageLoaded|endswith:
            - '\ntdll.dll'       - '\kernel32.dll'
            - '\kernelbase.dll'  - '\msvcrt.dll'
            - '\combase.dll'     - '\rpcrt4.dll'
            - '\faultrep.dll'    - '\wer.dll'
            - '\werui.dll'       - '\dbghelp.dll'
            - '\wintrust.dll'    - '\crypt32.dll'
            - '\bcrypt.dll'      - '\ole32.dll'
            - '\shell32.dll'     - '\advapi32.dll'
            - '\clbcatq.dll'     - '\version.dll'
    condition: selection and not filter_baseline
falsepositives:
    - Windows updates adding new WER dependencies.
      Enrich with parent process: legitimate WerFault has
      predictable argument patterns.
level: high

Rule 6: WER QueueReporting Task Triggered Programmatically Medium

In normal operation QueueReporting is triggered automatically by the OS. Being triggered via ITaskService COM interface from a non-system process (especially close to a Defender scan event) is the exploitation trigger.

title: WER QueueReporting Scheduled Task Triggered via COM
id: f3b7d9e4-1c6a-4f2d-8e5b-7a4c2f9e1b3d
status: stable
tags:
    - attack.execution
    - attack.t1053.005
logsource:
    product: windows
    service: taskscheduler
detection:
    selection:
        EventID: 106
        TaskName|contains: 'QueueReporting'
    filter_system_trigger:
        SubjectUserName|contains:
            - 'SYSTEM'
            - 'LOCAL SERVICE'
            - 'NETWORK SERVICE'
    condition: selection and not filter_system_trigger
falsepositives:
    - Crash reporting automation scripts.
      IT management tooling managing WER queue processing.
level: medium

Rule 7: Named Pipe Created Then Connected by SYSTEM Process Low

A medium-integrity process creates a named pipe and a SYSTEM process connects to it within seconds. Best used as a correlation event alongside Rule 1 or Rule 5 rather than standalone: FP rate is high in isolation.

title: Low-Privilege Named Pipe Connected by Spawned SYSTEM Process
id: a8c2e6f4-5d1b-4a7c-9e3f-2b8d5a1c6e4f
status: experimental
tags:
    - attack.execution
    - attack.t1559
logsource:
    product: windows
    category: pipe_created
    # Requires Sysmon Event ID 17/18
detection:
    selection_create:
        EventID: 17
    filter_known_pipes:
        PipeName|contains:
            - '\lsass'
            - '\svcctl'
            - 'MsFteWds'
            - 'eventlog'
            - 'spoolss'
            - 'srvsvc'
    condition: selection_create and not filter_known_pipes
falsepositives:
    - Legitimate IPC between user and system services.
      High standalone FP rate. Use as correlation only.
level: low

Correlation: Full Chain (Any 2 of 7 Rules, 5-Minute Window) Critical

title: ShieldBreak Full Chain (CVE-2026-50656)
id: b5f3a7d1-9e2c-4b8f-a1d6-7c4e9b3f5a2d
status: experimental
description: >
    Correlation across component rules. Minimum high-confidence
    combination: Rule 2 (MpClient loaded) + Rule 1 (MsMpEng System32
    write). Adding Rule 5 (WerFault DLL) confirms execution.
correlation:
    type: event_count
    rules:
        - MpClient.dll Loaded by Non-Defender Process
        - MsMpEng Anomalous Write to System32
        - WerFault Loading Unexpected Module from System32
        - WER QueueReporting Scheduled Task Triggered via COM
    group-by:
        - ComputerName
    timespan: 5m
    condition: gte 2
level: critical

Deployment priority: Rules 1 and 2 are your highest-return investments. Rule 1 fires at the point of no return, if MsMpEng is writing a DLL to System32, the exploit has already succeeded at its hardest step. Rules 3 and 4 require ETW sources many environments don't have; instrument those if you can, but don't wait on them before deploying 1 and 2. The correlation rule is what should be alerting in production. Two rules firing on the same host in five minutes is not a coincidence.

Conclusion

ShieldBreak isn't a complicated exploit. It's maybe 400 lines of actual logic in a 1400-line file, the rest being type definitions reverse-engineered from Defender's internal API. The complexity isn't in the code: it's in the conceptual layering. Each technique individually has been known for a while. What makes this a patch bypass is the recognition that shadow directories sit below the level at which the original RoguePlanet fix operates, and that Cloud Files content substitution is an entirely separate attack surface that the fix didn't touch.

The practical takeaway for defenders is less about this specific CVE and more about the class of attack. Any time a SYSTEM-privileged process (your AV, your EDR, your DLP agent) accepts a path supplied by a lower-privileged context and then performs file operations on that path without continuous path integrity verification, you have the skeleton of this attack. The trust boundary isn't just about whether the caller is privileged. It's about whether the filesystem object the path resolves to remains under the control of the entity that was trusted.

Microsoft's remediation pipeline trusted that the path it was cleaning was the same path it had scanned. It wasn't. That's the whole bug.

More from the Blog

Threat Intelligence Nov 29, 2026

The Build-Pipeline Backdoor: Inside the NullReceiver Supply-Chain Campaign

Read More
Deception Nov 29, 2026

Lying to the Machines: The Secret Weapon Against AI Attacks

Read More
Agentic Security Nov 24, 2026

Your AI Coding Agents Need an EDR Too: Introducing cADRe

Read More