Skip to content
Race condition Write-up Advanced

RoguePlanet: Anatomy of a Critical Zero-Day LPE in Microsoft Defe

A TOCTOU race condition in Microsoft Defender's file-processing and quarantine pipeline lets a local attacker redirect privileged file operations to attacker-controlled paths. This allows escalation to NT AUTHORITY\SYSTEM on fully patched Windows 10 and 11 systems.

RealSec.io Follow

Published on medium.com

On June 10, 2026, just hours after Microsoft’s record-breaking June Patch Tuesday, security researcher Nightmare Eclipse (also known as Chaotic Eclipse or MSNightmare) publicly released a proof-of-concept (PoC) exploit dubbed RoguePlanet. This exploit targets a Time-of-Check to Time-of-Use (TOCTOU) race condition in…

RealSec.io, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely improper link resolution before file access: Defender validates a path and then performs a privileged file operation on it without preventing reparse-point or symbolic-link redirection in between.

Impact

Any authenticated local attacker could escalate to full SYSTEM control, although the race is probabilistic and does not currently work reliably on Windows Server; no in-the-wild exploitation of this specific PoC is confirmed.

What the attacker needed

Local low-privilege access; Windows 10 or 11, fully patched; ability to create links in user-writable paths; repeated attempts for the race window

The fix

No fix is available yet; Microsoft is developing a patch, and interim mitigations include blocking the PoC with allowlisting tools, limiting symlink and junction creation, and detecting SYSTEM shells spawned by the Defender process.

How it was found

  1. Obtain a low-privilege local foothold on a patched Windows 10 or 11 machine.
  2. Stage files in a user-writable location such as the temp directory and mount a disk image.
  3. Manipulate the target path with NTFS reparse points, junctions, symbolic links or opportunistic locks during the race window.
  4. Cause Defender's privileged engine to write or overwrite a file on the attacker-chosen path.
  5. Trigger execution of the planted file so a shell runs with SYSTEM privileges.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Microsoft Defender runs with the highest Windows privileges so it can scan and quarantine files anywhere. The bug is a timing problem: Defender checks a file path, and before it uses that path, an attacker swaps it for a link to somewhere else. Defender then writes or deletes as SYSTEM in a place the attacker chose, which can give the attacker full control of the machine.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More by RealSec.io

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.