RoguePlanet, ShieldBreak, ShieldCrash, SignDrop : Four strikes on Defender's remediation pipeline
A few months ago, in June 2026, a vulnerability researcher whose pseudonym is MSNightmare identified a series of vulnerabilities targeting the same functionality and bypassing the successive patches applied by Microsoft. This story, aside from the drama between the researcher and Microsoft (which is not the focus of this article), is interesting from a purely technical standpoint, as well as from a methodological perspective because the researcher in question is remarkably prolific, having disclosed a lot of vulnerabilities over the past few months.
Firstly, we will try to understand the vulnerabilities and how they played out over several months despite attempts to fix them and, secondly, I interviewed MSNightmare to ask him some questions about his work.
Timeline (2026)
Originally, RoguePlanet was not a Local Privilege Escalation (LPE). It was a Remote Code Execution (RCE). The researcher explains that it required convincing a victim to open a .vhd(x) file hosted on an SMB share, which would cause Defender to overwrite its own files, resulting in remote code execution. Another scenario even allowed RCE by simply forcing the victim to open an SMB share if symbolic link evaluation was enabled. There were also other BitLocker bypass scenarios.
According to MSNightmare, Microsoft had silently (and without associating it with his discovery) hardened Defender in May 2026, rendering the junction-based attacks inoperable on which RoguePlanet's original RCE vectors relied. This hardening would have forced the researcher to rewrite the exploit, transforming it from an RCE into an LPE.
"Rewriting RoguePlanet to make it functional again drained my soul and I couldn't complete the other scenarios and for now it remains unclear if RoguePlanet is limited to LPE or there is some sort of way to turn it into an RCE." - MSNightmare
The version published on June 9, 2026, the one we will analyze, is therefore the result of a refactoring to bypass the hardening. Functional again, but only as an LPE, with the RCE impact lost for the time being.
-
June 9: RoguePlanet refactoring post mpengine hardening, privesc PoC published on GitHub.
-
June 16: Microsoft acknowledges the flaw, CVE-2026-50656
-
July 8: RoguePlanet patch
-
August 11: ShieldBreak, bypass of the July patch
-
August 14: Microsoft assigns CVE-2026-69414 to ShieldBreak
-
September 3: ShieldBreak patch
-
September 8 : ShieldCrash is published as a deliberately incomplete "skeleton" PoC. The initial release is later found by independent testing not to function as claimed.
-
September 15 : A revised version of the fixed PoC is published. It demonstrates an arbitrary file read as SYSTEM.
-
October 13 : Microsoft fixes CVE-2026-70264, a separate flaw involving file read through a link in Defender. Microsoft does not officially associate this CVE with ShieldCrash. The similarity in vulnerability profile is an analytical observation, not a confirmed attribution.
-
November 10: Nothing resembling ShieldCrash on Patch Tuesday. The same day, MSNightmare publishes SignDrop, a flaw in the CLFS driver that still uses Defender as a lever.
As of November 14, Microsoft has neither acknowledged nor fixed ShieldCrash publicly. The ShieldBreak advisory has not been updated since September 3. The October CVE could be a silent fix, but Microsoft declares it not publicly disclosed (whereas the ShieldBreak advisory cited the flaw by name), and in late October, the press was still reporting a bypass without fix.
RoguePlanet
First of all, let us try to understand the environment in which these vulnerabilities evolve. It is impossible to understand the vulnerability without these fundamentals.
Windows Defender
Defender is not a single program but several that collaborate. MsMpEng.exe "Antimalware Service Executable" is a service that runs with SYSTEM privileges and performs all "concrete" tasks (reading / detection / quarantine) on files.
The core of the analysis is found in a dll that MsMpEng.exe loads called mpengine.dll. This is the analysis engine that processes each file through a sequential pipeline of 13 stages. Each stage can produce a detection, collect attributes for subsequent stages, or recursively restart the entire pipeline on content extracted from the analyzed file. Generally the most interesting stages are the following:
Detection pipeline
-
Whitelist: computes the hash of the file and checks whether it matches a known trusted file. If so, the file is immediately declared safe.
-
Container Extraction: If the file is an archive, an Office document or a PDF, the engine extracts its child content and restarts the entire pipeline on each extracted element.
-
Static signature cascade: A series of signature engines analyze the raw bytes of the file to produce hashes of different types.
-
PE Emulation: As a reminder, Portable Executable (PE) is the format for Windows binaries. To defeat packers and other polymorphic malware, mpengine integrates an emulator with emulated Windows APIs. It executes the file's code in this virtual sandbox to observe its actual behavior.
-
AGGREGATOR: All attributes collected throughout the stages are combined through logical trees (AND/OR/NOT) to produce composite detections.
The final stage merges all detections, deduplicates, applies a severity ranking and returns the verdict. Obviously each of these components would deserve an article but here I am only covering what is needed to understand the vulnerability.
Remediation pipeline
Once the threat is confirmed, MsMpEng will take action depending on the severity of the threat (deletion / quarantine / allow). First of all, Defender takes a snapshot of the volume state (through the creation of a Volume Shadow Copy (VSS) snapshot) in order to be able to roll back if necessary.
MsMpEng locates the file in question by resolving its path through the VSS snapshot it just created.
Then MsMpEng performs the actual operation on the file system. The quarantined file is stored in a dedicated folder %ProgramData%\Microsoft\Windows Defender\Quarantine. This folder belongs to SYSTEM, no user can access it, and furthermore the files are not stored in plaintext there (RC4 encryption).
MpClient.dll is the client library that exposes an RPC interface so that any process/user can load this DLL and call its functions to ask Defender to perform actions such as opening a session (MpManagerOpen), starting a scan (MpScanStart), or starting a cleanup (MpCleanStart). No privileges are required to call it, but it gives orders to MsMpEng.exe which is itself highly privileged.
WdFilter.sys is a driver in the kernel that monitors file system activity and notifies MsMpEng.exe when a file is accessed.
Reparse point
Junction: a link between two folders. It redirects a path to another folder. Creating it only requires write access on the source folder.
Symbolic Link: can point to files or directories, and can even target remote paths.
How does it work? It is an NTFS file system object that contains a specific "reparse" data structure (an IO_REPARSE_TAG_MOUNT_POINT tag). When the kernel's "reparse point manager" encounters this object during path resolution, it interrupts normal resolution, reads the target stored in the reparse data, and redirects resolution to that target.
You can already sense the same potential for vulnerability as with Linux symbolic links on AppArmor-type configurations and other privescs found in CTFs with bash scripts...
Windows has introduced protections but ultimately they seem not very effective in the case we are interested in:
-
SeCreateSymbolicLinkPrivilegeis required to create a Symbolic Link because it can target remote paths. -
Windows allows a process to protect itself against link following through policies like
ProcessSignaturePolicy. -
Ancestor check: some components implement a check that walks up the path to detect the presence of a reparse point in parent directories before opening a file (and not just detection of the link in the final file).
-
Redirection Guard: this mechanism prevents a process from following reparse points when it opens a file for writing in certain sensitive contexts. But it is not universal and does not cover all opening scenarios.
Volume Shadow Copy Service (VSS)
We already briefly mentioned it because Defender takes a snapshot of the system this way before any remediation operation.
VSS is a Windows service that allows creating instantaneous read-only copies of a volume, at the block level and at a point in time. These snapshots are accessible through NT paths (we will talk about them shortly) like \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopyX.
The Object Manager and native NT paths
Windows has two naming systems:
-
Win32 paths (
C:\Windows\...), which everyone uses. -
The Object Manager namespace (the NT namespace), which the kernel uses. A link allows accessing this namespace from user space through paths like
\\?\GLOBALROOT\Device\.
We will see later that the exploit code directly manipulates native NT paths through calls like NtCreateFile, instead of classic Win32 paths. This is necessary to escape the restrictions and normalizations of the Win32 API, and to interact with objects (like VSS snapshots or junctions) in a way that high-level validation layers do not see.
Oplocks
The purpose of this mechanism is to prevent writing to a file that is currently being read. This mechanism is not a simple lock, as it is also used by the SMB protocol (network clients use it to ask the server for permission to cache locally the data of a remote file, which greatly reduces network traffic and improves performance).
So when you open a file with an oplock request (through a Windows API call), the system grants the lock. As long as you hold this lock, if another handle (another process, or even the same process with a different handle) attempts to open the file in an incompatible way (for writing, or requesting exclusive access), the system does not let the operation proceed immediately.
Upon a write attempt on an oplocked file the system signals the event in the OVERLAPPED structure (so that whoever holds the oplock can know that another process wants to use it), and the other process is put on hold until a response is given. This is handy because you can read information about the access attempt and decide when to release the lock.
Handle
When a program wants to touch a file, it never manipulates the file directly. It asks Windows to open it (CreateFile), and Windows returns a handle.
This handle contains:
-
the rights requested at opening
-
the authorized sharing (whether others can open at the same time, and how)
And multiple handles can target the same file simultaneously. They are distinct objects on the kernel side, even if the underlying file is unique. BUT when we get the handle we specify what we want to do (read/write) and what we allow others to do while our handle is open (first come first served). This is specified in the dwShareMode parameter which is mandatory when opening the handle.
An oplock is placed on a handle, not on a path. You must have already opened the file (and therefore be holding a handle) to be able to request an oplock on it.
Let us clarify because presented this way one might think that the concurrency protection of dwShareMode already serves as protection and that oplocks are redundant. But they do not serve the same purpose. The dwShareMode acts as a lock because it rules on access at file opening time and immediately rejects any request incompatible with the granted sharing rights. The oplock acts as an alarm system that does not forbid access, but puts the competing request on hold and notifies whoever placed it.
Alternate Data Stream (ADS)
Under NTFS, a file is not a single block of data. It is a container that can host several independent streams.
The main stream is the one you see when you open the file normally.
An alternate stream (ADS) is an additional, named stream, attached to the same file. It is written with the syntax filename:stream_name. For example, wermgr.exe:WDFOO designates the "WDFOO" stream of the "wermgr.exe" file.
This serves many legitimate purposes but notably the "Mark-of-the-Web". Every time you download a file from the Internet, Windows attaches an ADS stream containing a value indicating the security zone of origin of the file (Internet, intranet, etc.). This is what enables the "Windows protected your PC" warning (SmartScreen) when you try to execute a downloaded file, or Office's protected mode for documents coming from the Internet.
The vulnerability
The fundamental problem comes from the fact that the remediation pipeline is multi-stage:
-
Creates a VSS snapshot (which contains among other things the file path in question) at time T1.
-
Resolves and verifies the path of this file (through the VSS snapshot) at time T2. Defender wants to ensure two things: that the path it is about to process indeed designates the detected object (canonical path resolution), and that the content of this object still corresponds to the identified threat (identity confirmation, so as not to delete a file that may have changed in the meantime or that another component may have already neutralized). The use of the VSS snapshot serves exactly this purpose, it is a frozen image of the volume, read-only, taken at a given moment. It gives Defender a stable and unalterable view of the file, whereas the live file can be locked by the malware, being written to, or deliberately modified to evade analysis.
-
Reopens this path to perform the remediation action (quarantine, deletion) at time T3.
The path that was verified at T2 is not necessarily the same object on which operations are performed at T3. However, MsMpEng maintains no exclusive lock on the path or on the file object between the verification step and the use step. The code implicitly trusts the stability of the path it resolved. This assumption is false in an NTFS file system where components of a path (directories) can be reparse points (junctions) whose target can be modified by another process.
This is a TOCTOU (time to check != time to use) race condition. Because the attacker between T2 and T3 will be able to create a link between the file path and another on which they theoretically have no write rights, and Defender will perform the actions on the file targeted by the symbolic link.
Why not simply place a junction from the beginning? If the attacker places a junction before Defender scans the file, then Defender will scan the file through the junction, that is to say the actual target file (for example C:\Windows\System32\wermgr.exe). The analysis pipeline of mpengine.dll will see the actual content of this system file. However, this content is legitimate and signed, it will not trigger any detection. Defender must first analyze a file controlled by the attacker (which contains a fake threat), make a remediation decision based on this file, and only then should the path be redirected to the real target.
How does VSS worsen a TOCTOU that is there by design? Any multi-stage pipeline that resolves a path and then reopens it later is structurally exposed to a TOCTOU. But what is interesting here is that the use of VSS makes this structural vulnerability very reliable to exploit. The attacker can enumerate the \Device directory of the Object Manager and monitor the appearance of a new HarddiskVolumeShadowCopyN object. By doing so, they know exactly when Defender has finished its path resolution phase through the VSS and is about to proceed to the operation on the live file system.
And another extremely important point to make the exploitation even more deterministic :
To be sure of winning the race, an oplock is used on the path in question. This means that when Defender attempts to access the file to write to it, we know it is ready and we can create the symbolic link then hand control back to it.
This is precisely made possible by the use of VSS because an oplock can only be placed on an open handle. Now the live path is precisely the one Defender will manipulate, so a handle on it does not guarantee that the oplock will be correctly associated with the object that Defender will attempt to open, especially if junctions are involved. By using the VSS path we are sure of path stability and that we are working on the same object as Defender.
But then how do we go from this primitive that allows deleting/quarantining files we have no rights over, to a privilege escalation up to SYSTEM?
Exploitation
Now that we have understood the vulnerability, let us talk about the concrete exploitation produced by the RoguePlanet PoC.
First the exploit binary is self-referential. At launch, it calls IsRunningAsLocalSystem(). If it is already running as SYSTEM it simply delivers the shell. Otherwise, it executes the entire exploitation chain as a standard user. This is what allows a single binary to serve both as an unprivileged orchestrator and as a final payload.
int main()
{
if (IsRunningAsLocalSystem())
{
printf("Running as local system.\n");
HANDLE hclient = CreateFile(L"\\\\.\\pipe\\RoguePlanet", GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, NULL, OPEN_EXISTING, NULL, NULL);
if (!hclient || hclient == INVALID_HANDLE_VALUE)
return 1;
DWORD sesid = 0;
bool sh = GetNamedPipeServerSessionId(hclient, &sesid);
CloseHandle(hclient);
if (sh) {
LaunchConsoleInSessionId(sesid);
}
return 0;
}
...
}
Furthermore at launch it creates a named pipe \\.\pipe\RoguePlanet to allow communication with the SYSTEM instance that will be launched later. In parallel, it starts a "Poseidon" subsystem (a generator thread and one thread per CPU core), which writes random 4 KB blocks in a loop into temporary files. The objective is to saturate the scheduler and I/O to widen the race window.
HANDLE hpipe = CreateNamedPipe(L"\\\\.\\pipe\\RoguePlanet", PIPE_ACCESS_DUPLEX, PIPE_WAIT, PIPE_UNLIMITED_INSTANCES, NULL, NULL, NULL, NULL);
if (!hpipe || hpipe == INVALID_HANDLE_VALUE)
{
printf("Failed to create communication pipe, error : %d\n", GetLastError());
return 1;
}
The exploit program embeds an ISO that contains wermgr.exe (Windows error reporting manager) as well as the EICAR signature used to trigger Defender. The ISO volume is mounted read-only. Its role is not to preserve a renewable decoy, but to provide a non-writable target that forces Defender into its staging mechanism. Because Defender cannot directly delete or move the decoy on a read-only volume, it is compelled to create a staging copy (TMP...) in C:\Windows\Temp. This staging file (not the original decoy) is the object that the second junction subsequently redirects into an attacker-controlled directory.
unsigned char rawData[917504] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x45, 0x41,
// ... + more than 5KB of hexadecimal lines representing the ISO
};
The attacker creates a decoy file at the location %TEMP%\RP_\System32\wermgr.exe. This decoy is a copy of the signed wermgr.exe from the ISO, to which an alternate data stream (ADS, discussed in the prerequisites) is attached. This stream is designed to trigger Defender. The exploit then calls the public MpClient APIs (MpManagerOpen, MpScanStart, MpCleanStart) to force Defender to scan and remediate this decoy.
The ShadowCopyFinderThread thread monitors the \Device directory of the Object Manager waiting for the appearance of the VSS snapshot that Defender itself creates before any remediation. As soon as it detects it, the exploit opens the ADS stream through the VSS snapshot path and places an oplock on it. By doing so, it freezes MsMpEng in the middle of its remediation pipeline, after path resolution through the VSS and before the operation on the live file system.
vsinitial = RetrieveCurrentVSSList(hobjdir, &criterr, &vscnum, &retval);
if (criterr)
{
printf("Unexpected error while listing current volume shadow copy volumes\n");
goto cleanup;
}
if (!vsinitial)
{
printf("No volume shadow copies were found.\n");
}
else
{
printf("Found %d volume shadow copies\n", vscnum);
}
And so from here, the easy theoretical version is to create a symbolic link that makes the real file path point to another file with which we normally have no rights to interact. That way, Defender quarantines/deletes this file. That is already useful but it does not allow a complete and functional LPE. We want to overwrite a file associated with SYSTEM privileges with our file (whose content we control).
The possibility of overwriting a file through another file controlled by an attacker relies on an intermediate step used by Defender. It does not go directly from file detection to quarantine. It detects the threat in the scanned file, then creates a temporary file (staging file) in a staging directory, with a name like Temp\TMP... This file is neither a final destination nor a move of the original; it is a working copy on which Defender prepares the remediation operation. This intermediate step allows preparing the operation (encryption for quarantine, integrity checks, decryption of packed malware) without locking the original for the entire duration of the preparation, it guarantees the atomicity of the transaction in case of failure without leaving the original in a corrupted state, and it remains functional even if the malicious file is locked by the malware itself. Once the transaction is ready, Defender applies the result to the original file, moving it to the final quarantine folder or deleting it. It is precisely this distinct file object (the TMP...) that enables the LPE because its path can be redirected by the attacker while Defender still believes it is manipulating the original.
The overall idea is that if we control the location where Defender will create this staging file, which is a copy of code we control, we can overwrite a system file with it. And that is the case since Defender follows symbolic link redirections that we have time to create thanks to VSS and oplocks.
And to do so we are not going to create a single symbolic link as in our theoretical demo where we just want to delete/quarantine a file, but we are going to create three in total.
J = Junction
sequenceDiagram
participant A as Attacker
participant D as Defender (SYSTEM)
participant FS as File System
Note over A,FS: Phase 1 : Trigger
A->>FS: Create %TEMP%\RP\System32\wermgr.exe<br/>+ ADS :WDFOO (EICAR)
A->>D: MpScanStart
D-->>FS: Detect EICAR, VSS snapshot + enter remediation
A->>FS: Oplock on :WDFOO via VSS path
Note over D: Defender stalls : race window opens
Note over A,FS: Phase 2 : Junction manipulation (race window)
A->>FS: J1: %TEMP%\RP\System32\ => \Device\CdRomX (read-only)
D-->>FS: Write blocked : volume read-only<br/>Fallback: creates C:\Windows\Temp\TMP...
A->>FS: Detect TMP creation via ReadDirectoryChangesW
A->>FS: Swap J1 => J2:<br/>%TEMP%\RP\System32\ redirects to %TEMP%\RP\wdtest_temp\
D->>FS: Quarantine write => lands in %TEMP%\RP\wdtest_temp\TMP...
A->>FS: Overwrite TMP with payload<br/>(NtCreateFile FILE_OVERWRITE_IF)
A->>FS: Pivot parent J3:<br/>%TEMP%\RP\ => C:\Windows\
Note over FS: Payload is now C:\Windows\System32\wermgr.exe<br/>written by Defender itself, as SYSTEM
There are two successive junctions on the directory %TEMP%\RP_\System32\, plus a third parent junction applied later on %TEMP%\RP_\ itself. Just after placing the oplock and freezing Defender, the exploit calls CreateJunction(hdir, mntpath) and transforms %TEMP%\RP_\System32\ into a first junction pointing to \Device\CdRomX, that is, to the read-only mounted ISO drive. Its role is strategic because by pointing to a non-writable volume, it prevents Defender from directly deleting or moving the original decoy file. Defender is therefore forced to go through its own staging mechanism. It copies the content to C:\Windows\Temp\TMP*, and it is this staging file that it is about to process.
This is where the second junction comes in. wdtest_temp is not Defender's staging. It is a directory created by the attacker at the very beginning of the exploit (%TEMP%\RP_\wdtest_temp), initially empty, and entirely under its control. Defender's staging file, meanwhile, is in C:\Windows\Temp\TMP* (this is what hwin + ReadDirectoryChangesW monitors). The second junction redirects %TEMP%\RP_\System32\ to wdtest_temp. Thus, when Defender writes its staging file thinking it is writing to the decoy directory, the write actually lands in wdtest_temp, a space that the attacker controls and where they can overwrite the file with their payload. Defender's staging is never "moved" to wdtest_temp; it is Defender's write that is hijacked towards wdtest_temp.
Once the payload has landed in wdtest_temp, the exploit sets the third and final junction: %TEMP%\RP_\ itself is redirected to C:\Windows. From this point, the path %TEMP%\RP_\System32\wermgr.exe resolves through C:\Windows\System32\wermgr.exe, which is now the attacker's binary.
While Defender is frozen, the exploit monitors the creation of Defender's temporary staging file (pattern Temp\TMP????????) through ReadDirectoryChangesW. As soon as it detects this creation, it deletes the first junction (the one pointing to the ISO) through FSCTL_DELETE_REPARSE_POINT, then recreates the directory %TEMP%\RP_\System32\ as an NTFS junction (IO_REPARSE_TAG_MOUNT_POINT) pointing to wdtest_temp. Defender's quarantine write, which was intended for the decoy directory, now lands in wdtest_temp, a space controlled by the attacker. It is at this moment that the exploit overwrites the quarantine file with its own binary through NtCreateFile(FILE_OVERWRITE_IF). In other words, it is Defender that writes the payload (as SYSTEM) in a location that the attacker has made accessible through the junction.
Subsequently, the exploit uses the Task Scheduler's COM interface to manually trigger the built-in task \Microsoft\Windows\Windows Error Reporting\QueueReporting. This task is designed to run as SYSTEM and can be triggered by a standard user. It launches wermgr.exe to process the error reporting queue. But the wermgr.exe it finds at C:\Windows\System32\ is no longer the legitimate binary but the attacker's payload.
sequenceDiagram
participant A as Attacker
participant W as WER Task (SYSTEM)
participant FS as File System
Note over A,W: Phase 3 : Privileged execution
A->>W: IRegisteredTask::Run(QueueReporting)
W->>FS: Resolve + launch C:\Windows\System32\wermgr.exe
W->>A: Payload runs as SYSTEM => pipe RoguePlanet
RoguePlanet Fix
The fix released in July attempts to mitigate the conceptual risk of validating a path and then acting on it, by re-validating the path or file object between resolution through the VSS snapshot and the operation on the live system. Concretely mpengine.dll now appears to checks, at the moment of acting, that the path has not been replaced by a reparse point in the meantime.
Obviously we do not know more than this about the concrete code that was produced but it appears that additional reads are performed on the file (notably on its metadata).
The researcher quickly found that the July fix was incomplete...
ShieldBreak : bypassing the RoguePlanet fix
The fix turns out to be totally bypassable. The problem is that there is another way, besides reparse points, to link one path to another.
To understand the bypass, some new prerequisites are needed:
The Cloud Files API (CldApi) and placeholders
The Cloud Files API is the mechanism that allows OneDrive to manage "placeholder" files, which appear on disk but whose actual content is stored in the cloud.
When MsMpEng opens a placeholder to read it, cldflt.sys triggers a CF_CALLBACK_TYPE_FETCH_DATA callback to the provider which is then responsible for sending the data. The read only proceeds once the data has been retrieved.
The Object Manager and "shadow directories"
As a reminder, the Object Manager is the Windows kernel namespace. This is where objects live (files, devices, sections, etc.), under paths like \Device\... or \BaseNamedObjects\.... Win32 paths (C:\...) are translated to this namespace before reaching the kernel.
The NtCreateDirectoryObjectEx function allows creating an object directory by specifying a "shadow" directory as well. This shadow directory serves as an anchor for name resolution. In fact, if the original name does not resolve to anything, it is the shadow directory that is used for resolution.
CLFS as a locking and synchronization mechanism
The Common Log File System (CLFS) is Windows' transactional logging system. Defender uses it to guarantee the consistency of its remediation operations. It creates a CLFS journal in the working directory before performing an action.
Any path starting with \CLFS\ is treated as a journal file by Windows.
How ShieldBreak uses all this to bypass the fix
ShieldBreak bypasses the July fix by moving all the redirection below the layer that Microsoft patched. The three primitives chain together to reconstruct the complete chain.
Cloud Files gives the attacker control over the content that Defender reads (first an EICAR decoy to trigger detection, then the actual usefull DLL payload for remediation stage).
The Object Manager and its shadow directory switch the name resolution from a controlled directory to a CLFS path, upstream of the layer where mpengine validates paths (so the July patch sees nothing passing through).
Finally the CLFS lock freezes Defender's transaction at the precise moment when it writes its journal, whose path is redirected to System32\phoneinfo.dll. The WER QueueReporting task, executed as SYSTEM, then loads this DLL and delivers the shell.
sequenceDiagram
participant A as Attacker<br/>(standard user)
participant D as MsMpEng.exe<br/>(SYSTEM)
participant C as cldflt.sys<br/>(Cloud Files filter)
participant OM as Object Manager<br/>(kernel namespace)
participant FS as File system<br/>(NTFS)
participant W as WER Task<br/>(QueueReporting)
Note over A: Extracts IDR_ZIP1 (EICAR decoy)<br/>and IDR_DLL1 (DLL payload)
Note over A: Elevates process and thread priority<br/>to make the race more reliable
A->>FS: Creates pipe \\.\pipe\SHIELDBREAK
A->>FS: Creates C:\ShieldBreak_GUID
A->>C: CfRegisterSyncRoot (provider "Flubber")<br/>FULL hydration policy
A->>FS: CfCreatePlaceholders for BERLIN<br/>(empty shell, no data)
Note over A,OM: Building the redirection
A->>OM: Creates WD_TARGET_GUID
A->>OM: Creates WD_SHADOW_GUID<br/>with WD_TARGET_GUID as shadow directory
A->>OM: Link WD_SCAN in WD_SHADOW_GUID<br/>to \??\C:\ShieldBreak_GUID
A->>OM: Link WD_SCAN in WD_TARGET_GUID<br/>to \CLFS\??\C:\ShieldBreak_GUID
Note over A,FS: Scan preparation
A->>FS: Copies ntdll.dll into BERLIN:stream<br/>(fallback if redirection fails)
A->>C: CfGetTransferKey for BERLIN
A->>D: WDStartScan on<br/>\\.\globalroot\...\WD_SHADOW_GUID\WD_SCAN\BERLIN
Note over D,FS: Phase 1, detection
D->>OM: Resolves path through WD_SCAN<br/>to C:\ShieldBreak_GUID\BERLIN
D->>FS: Opens BERLIN (placeholder)
FS->>C: Access to a placeholder<br/>triggers CF_CALLBACK_TYPE_FETCH_DATA
C->>A: Callback CLBK (first call)
A->>C: CfExecute with pResourceData_zip<br/>(ZIP + EICAR), RNA goes to 2
C-->>D: Hydrated data = EICAR
Note over D: Defender detects the threat<br/>enters the remediation pipeline
rect rgb(90, 30, 30)
Note over A,FS: Race window<br/>Defender frozen by the callback
A->>FS: Detects the CLFS journal TMP...<br/>through ReadDirectoryChangesW
A->>FS: Opens the CLFS journal
A->>FS: LockFileEx exclusively<br/>freezes Defender's transaction
A->>OM: Removes the WD_SCAN link<br/>in WD_SHADOW_GUID
Note over OM: Fallback resolution<br/>switches to WD_TARGET_GUID
A->>OM: Creates a new link with the name<br/>of the CLFS journal, target<br/>\??\UNC\127.0.0.1\C$\Windows\System32\phoneinfo.dll
C->>A: Callback CLBK (next call)
A->>C: CfExecute with pResourceData_dll<br/>(DLL payload)
C-->>D: Hydrated data = DLL
Note over D: Defender re-reads the file<br/>for quarantine
D->>FS: Writes its CLFS journal
FS->>OM: Resolves the journal name<br/>through the new link
OM->>FS: Resolves to System32\phoneinfo.dll
D->>FS: Writes the payload as SYSTEM<br/>in C:\Windows\System32\phoneinfo.dll
end
Note over A: Prepares a fake WER report<br/>in ReportQueue
A->>W: IRegisteredTask::Run("QueueReporting")
W->>FS: Launches wermgr.exe as SYSTEM
FS->>FS: wermgr.exe loads wer.dll
FS->>FS: wer.dll loads phoneinfo.dll
Note over FS: phoneinfo.dll = attacker's payload
W->>A: Payload connects to pipe SHIELDBREAK
The first things the exploit does:
It extracts two embedded resources (IDR_ZIP1: the detection decoy, IDR_DLL1: the final payload).
HRSRC hResInfo_zip = FindResource(NULL, MAKEINTRESOURCE(IDR_ZIP1), L"zip");
HGLOBAL hResData_zip = LoadResource(NULL, hResInfo_zip);
LPVOID pResourceData_zip = LockResource(hResData_zip);
DWORD dwSize_zip = SizeofResource(NULL, hResInfo_zip);
HRSRC hResInfo_dll = FindResource(NULL, MAKEINTRESOURCE(IDR_DLL1), L"dll");
HGLOBAL hResData_dll = LoadResource(NULL, hResInfo_dll);
LPVOID pResourceData_dll = LockResource(hResData_dll);
DWORD dwSize_dll = SizeofResource(NULL, hResInfo_dll);
Elevates the process and thread priority to make the race condition more reliable.
SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL);
Then creates a named pipe \\.\pipe\SHIELDBREAK, as well as a working directory C:\ShieldBreak_<GUID>:
HANDLE hpipe = CreateNamedPipe(L"\\??\\pipe\\SHIELDBREAK", PIPE_ACCESS_DUPLEX | FILE_FLAG_FIRST_PIPE_INSTANCE, NULL, 1, NULL, NULL, NULL, NULL);
if (hpipe == INVALID_HANDLE_VALUE)
return 1;
wchar_t mainguid[64] = { 0 };
GenerateGUID(mainguid);
std::wstring workdir = L"C:\\ShieldBreak_";
Subsequently, this working directory is registered as a cloud placeholder. The provider is called "Flubber". A hydration policy (which allows specifying when and how to retrieve data from the external source) is defined (any access to the file will trigger a data retrieval callback).
CLSIDFromString(L"{B196E670-59C7-4D41-9637-C62D80541321}", &ProviderId);
CF_SYNC_REGISTRATION reg = { 0 };
reg.StructSize = sizeof(reg);
reg.ProviderName = L"Flubber";
CF_SYNC_POLICIES policies = { 0 };
policies.StructSize = sizeof(policies);
policies.HardLink = CF_HARDLINK_POLICY_ALLOWED;
policies.Hydration.Primary = CF_HYDRATION_POLICY_FULL;
policies.Hydration.Modifier = CF_HYDRATION_POLICY_MODIFIER_AUTO_DEHYDRATION_ALLOWED | CF_HYDRATION_POLICY_MODIFIER_VALIDATION_REQUIRED;
policies.InSync = CF_INSYNC_POLICY_NONE;
policies.Population.Primary = CF_POPULATION_POLICY_PARTIAL;
A placeholder named "BERLIN" is then created. It contains no data and waits to be hydrated.
The code creates two object directories:
-
\BaseNamedObjects\Restricted\WD_TARGET_<GUID>(the "target" directory) -
\BaseNamedObjects\Restricted\WD_SHADOW_<GUID>(the "shadow" directory, built with the target directory handle as shadow directory)
It then creates two object symbolic links with the same name "WD_SCAN", but in different directories:
-
A link in
WD_SHADOW_<GUID>pointing to\??\C:\ShieldBreak_<GUID>(the attacker's working directory). -
A link in
WD_TARGET_<GUID>pointing to\CLFS\??\C:\ShieldBreak_<GUID>.
The scan path that the exploit gives to Defender is: \\.\globalroot\BaseNamedObjects\Restricted\WD_SHADOW_<GUID>\WD_SCAN\BERLIN.
This path first resolves to the attacker's working directory (through the first link). But thanks to the shadow hierarchy, a fallback resolution exists in WD_TARGET_<GUID>, which points to \CLFS\.... It is this duality that the code exploits to switch resolution mid-scan.
graph TB
subgraph OM["Object Manager : BaseNamedObjects\Restricted"]
subgraph SHADOW["WD_SHADOW_GUID<br/>(main directory)"]
L1["WD_SCAN<br/>(symbolic link 1)"]
end
subgraph TARGET["WD_TARGET_GUID<br/>(target directory)"]
L2["WD_SCAN<br/>(symbolic link 2)"]
end
end
SHADOW -.->|"shadow directory<br/>(fallback resolution)"| TARGET
L1 -->|"points to"| W1["C:\ShieldBreak_GUID<br/>(working directory)"]
L2 -->|"points to"| W2["\CLFS\??\C:\ShieldBreak_GUID<br/>(CLFS path)"]
SCAN["Scan path given to Defender<br/>\\.\globalroot\...\WD_SHADOW_GUID\WD_SCAN\BERLIN"]
SCAN -->|"primary resolution<br/>(phase 1)"| L1
SCAN -.->|"fallback resolution<br/>(phase 2, after deletion of link 1)"| L2
classDef neutral fill:#f1f3f5,stroke:#aeb6bf,color:#343a40,stroke-width:1px;
classDef container fill:#fafafa,stroke:#adb5bd,color:#343a40,stroke-width:1px;
classDef scan fill:#e9ecef,stroke:#868e96,color:#212529,stroke-width:1.5px;
class L1,L2,W1,W2 neutral;
class SHADOW,TARGET,OM container;
class SCAN scan;
style SHADOW fill:#fafafa,stroke:#adb5bd,color:#343a40
style TARGET fill:#fafafa,stroke:#adb5bd,color:#343a40
The code opens the BERLIN file in the working directory, copies ntdll.dll into an ADS :stream of this file (this is a trick to provide fallback content if the redirect fails), then requests a Cloud Files transfer key to prepare a re-hydration operation.
In parallel, it launches the WDStartScan thread which will ask Defender to scan the path WD_SCAN\BERLIN. Defender, as SYSTEM, resolves this path to the attacker's working directory and begins reading BERLIN. Since BERLIN is a placeholder, the hydration callback is triggered.
The CLBK function is the data retrieval callback. It uses a counter (RNA) to alternate between two content payloads:
-
First call: it provides pResourceData_zip, the content of the extracted ZIP. This is the EICAR decoy that will trigger Defender's detection.
-
Subsequent calls: it provides pResourceData_dll, the DLL payload (the attacker's code).
Defender therefore first reads the EICAR decoy, detects the threat, and enters its remediation pipeline. But when it re-reads the file to quarantine it, the callback provides the DLL payload instead. The file content changes between detection and remediation, which is exactly the TOCTOU sought, but this time without NTFS junctions.
While Defender is busy processing BERLIN (and therefore frozen by the placeholder read and the callback), the exploit:
-
Detects the creation of Defender's CLFS journal.
-
Opens this CLFS journal and locks it exclusively through LockFileEx. This freezes Defender in the middle of its transaction, exactly like an oplock but on the journal rather than on the file.
-
Deletes the symbolic link
WD_SCANinWD_SHADOW_<GUID>(delete shlnk). The fallback resolution toWD_TARGET_<GUID>(which points to\CLFS\...) now takes over. -
Creates a new symbolic link in
WD_SHADOW_<GUID>, whose name is the name of the CLFS journal and whose target is\??\UNC\127.0.0.1\C$\Windows\System32\phoneinfo.dll. This link therefore redirects the CLFS journal resolution to a loopback UNC path pointing toSystem32\phoneinfo.dll.
When Defender resumes its operation and writes to its CLFS journal, the path resolves, through the symbolic link, to \\127.0.0.1\C$\Windows\System32\phoneinfo.dll. Defender, as SYSTEM, therefore writes its journal artifact (which contains the DLL payload provided by the Cloud Files callback) directly into System32\phoneinfo.dll. Ultimately the attacker has succeeded in replacing phoneinfo's code with their own.
phoneinfo.dll is a DLL that does not exist by default on Windows. But the code of wer.dll (loaded by wermgr.exe, the Windows error reporting manager) contains an explicit load of phoneinfo.dll (which doesn't exist by default in windows environment). In fact, it tries to load it, fails to do so in a default Windows installation, and moves on. But here, since we created it, it calls our code. This is more discreet than replacing an already existing DLL.
Finally the exploit prepares a fake WER report, then triggers the QueueReporting scheduled task through COM. This task runs as SYSTEM, launches wermgr.exe, which loads wer.dll, which loads phoneinfo.dll, that is, the attacker's payload, now present in System32. The attacker's code runs as SYSTEM and connects to the named pipe SHIELDBREAK to deliver the shell.
ShieldBreak Fix
Technically and once again, the fix blocked ShieldBreak's specific chain (Object Manager symbolic links used to redirect name resolution, Cloud Files callbacks exploited to change content during reading, and CLFS journal hijacking). But as with RoguePlanet in July, it addressed the techniques without fixing the architectural assumption that makes them possible.
ShieldCrash : bypassing the ShieldBreak fix
The researcher presented the PoC demonstrating arbitrary file reading as SYSTEM. The next day, he reclassified it as a full privilege escalation, claiming that the SAM database could be obtained easily.
ShieldCrash exploits a missed condition in the September fix, combining the same layers (Object Manager, Cloud Files, CLFS) but with a different order of operations. The PoC successfully reaches the remediation phase where Defender processes the attacker-controlled scanned object, the Cloud Files callbacks execute, the Object Manager directories and symbolic links are created, and the two expected race synchronization points are reached.
The key point is that ShieldCrash inverts the purpose of the primitive without changing its nature. RoguePlanet and ShieldBreak both exploited the TOCTOU of the remediation pipeline. ShieldCrash retains exactly the same temporal dissociation between the check and the use. However, it no longer seeks to write but redirects Defender's staging file to a read target, transforming the write primitive into an arbitrary read primitive as SYSTEM. The September fix closed the journal redirection to phoneinfo.dll, but it did not remove the possibility of recreating a reparse point after the verification phase, which allows the staging file to resolve to SAM, SECURITY or ELAM at the moment Defender reopens it.
Silent fix for ShieldCrash
On October 13, Microsoft published the fix CVE-2026-70264.
The crucial point is that Microsoft did not officially link this CVE to ShieldCrash. The fix blocks the manifestation (reading through link) without fixing the principle (trust in path stability between check and use).
To be continued : SignDrop
Not exactly related to the same remediation-pipeline issue but still in the same "scope", on November 10 MSNightmare published SignDrop, a PoC targeting the CLFS driver and using Defender as a privileged lever.
Microsoft introduced in 2025 a protection mechanism against malicious or modified CLFS journals. When a privileged process opens a CLFS journal file, the clfs.sys driver creates an authentication file with the extension .cnpf. This file contains an HMAC generated from the journal data and a system-specific cryptographic key. The objective is to guarantee journal integrity.
The verification mechanism is correctly implemented, clfs.sys properly checks access rights to the journal at the time of opening. But when it creates the .cnpf authentication file, it gives it the DACL (the rights) of the original journal instead of giving it restrictive permissions. However, this original journal may have been created by the attacker, who has set a permissive DACL on it. The .cnpf file is therefore created with SYSTEM privileges, but with permissions that the attacker controls. They can therefore modify or delete it, which undermines the integrity guarantee that the HMAC was supposed to provide.
The PoC follows five stages:
-
A standard user creates CLFS journal files and associated containers in a directory they control.
-
They use Object Manager symbolic links to redirect file operations to controlled locations.
-
They force Defender to open the prepared CLFS journal.
-
clfs.syscreates the .cnpf file in Defender's security context (SYSTEM).
Permission inheritance abuse: the .cnpf file inherits the DACL of the original file controlled by the attacker. The attacker can then chain operations to obtain a SYSTEM shell.
sequenceDiagram
participant A as Attacker<br/>(standard user)
participant D as Defender<br/>(SYSTEM)
participant CL as clfs.sys<br/>(CLFS driver)
participant FS as File system<br/>(NTFS)
participant C as Sensitive target<br/>(SYSTEM)
Note over A,FS: Phase 1: preparation of malicious journals
A->>FS: Creates CLFS journals<br/>and containers in a controlled directory
A->>FS: Applies a permissive DACL<br/>on the original journal (Everyone: full access)
Note over A,FS: Phase 2: path redirection
A->>FS: Creates symbolic links<br/>in the Object Manager
Note over A: The links redirect<br/>future operations<br/>to the prepared journals
Note over D,CL: Phase 3: triggering the privileged process
A->>D: Forces Defender to open<br/>the prepared CLFS journal
D->>CL: Opens the journal<br/>(request for .cnpf creation)
Note over CL,FS: Phase 4: creation of the authentication file
CL->>FS: Checks access rights<br/>to the original journal
Note over CL,FS: Correct access control<br/>at creation time
CL->>FS: Creates the authentication file<br/>journal.cnpf
Note over CL: Generates an HMAC<br/>from the journal data<br/>and a system key
rect rgb(90, 30, 30)
Note over CL,FS: CRITICAL WINDOW<br/>DACL inheritance
FS->>FS: journal.cnpf inherits the DACL<br/>of the original journal
Note over FS: The file was created<br/>with SYSTEM privileges<br/>but its permissions<br/>are controlled by the attacker
end
Note over A,FS: Phase 5: inheritance abuse
A->>FS: Modifies the inherited DACL<br/>of the .cnpf file created as SYSTEM
A->>FS: Replaces or hijacks the content<br/>of the authentication file
A->>C: Chain of operations<br/>toward a SYSTEM object
Note over A,C: Privilege escalation<br/>through inherited permissions
Note over A,D: Result
D->>A: The file created as SYSTEM<br/>becomes a lever<br/>to obtain a privileged shell
This technique is generic because it can be used against any antivirus or EDR engine, as the file creation request appears to come from its own legitimate process. The published PoC specifically targets Defender, but the researcher claims that other security products could be vulnerable. As of November 12, Microsoft had not confirmed the vulnerability, nor assigned a CVE, nor published a fix. Independent tests confirmed that the exploit works.
Interview of MSNightmare
It was not quite the technical interview I had planned, and so much the better because ultimately it is more interesting since in my opinion the radicality of the answers proves something:
What is the fundamental reason a user can end up performing an action they were never supposed to be allowed to do? Maybe there is no single reason, and it is inevitable that when several entities with different rights interact on the same system, inconsistencies produce this kind of vulnerability. But is there a protection layer missing in today's systems (which are, by the way, the source of the vast majority of CVEs)? Or do developers simply need to be more careful with their code?
I'm just superior, I have been finding vulnerabilities for 8 years now, i know how windows functions more than i know myself, so it's not a matter of security, it's a matter of seniority
Why not take inspiration from the security model of browsers and their advanced sandboxing, or more generally use isolated boxes with limited communication between them?
Browsers have shitton of vulns as well, there is no escaping bugs.
How do you hunt for vulnerabilities on a scope as huge as Windows? Do you have a particular methodology?
No specific methodology, i just get ideas and test them
Do you use AI in your work, and more generally, what is your take on it?
No. Maybe i should start using it
What made the exchange particularly striking was the apparent contrast between the depth of his experience and the simplicity of his approach. After eight years spent exploring a system as vast and complex as Windows, vulnerability research seems to have become less a matter of following a predefined methodology than of developing an intuition for where things might go wrong. Expertise, despite the AI, accumulated through years of experimentation and an intimate understanding of a system, remains exceptionally powerful.
It also raises broader questions about the limits of current security practices. One might speculate about the extent to which Microsoft internal vulnerability management processes rely on automated verification, AI-assisted code review or other forms of tooling, although there is no evidence here to draw any conclusions. What the discussion does suggest, however, is that addressing vulnerabilities one by one may not always be enough. The more fundamental challenge is to identify and reconsider the underlying design assumptions that allow entire classes of vulnerabilities to emerge in the first place.
Sources:
-
https://deadeclipse666.blogspot.com/2026/06/rogueplanet-quick-history.html?showComment=1781044571510&m=0#c8591908593329712256
-
https://github.com/MSNightmare/RoguePlanet
-
https://github.com/MSNightmare/ShieldBreak
-
https://github.com/MSNightmare/ShieldCrash
-
https://github.com/MSNightmare/SignDrop
-
https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-50656
-
https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-69414
-
https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-70264
-
https://windowsforum.com/news/shieldcrash-defender-bypass-revised-poc-reads-protected-files-as-system-on-patched-windows.448194/
-
https://tech-insider.org/microsoft-defender-shieldcrash-zero-day-bypass-2026/
-
https://www.rapid7.com/blog/post/em-patch-tuesday-november-2026/
-
https://deadeclipse666.blogspot.com/