Skip to content
RCE Write-up Advanced

RedSun: Exploiting Windows Defender's Remediation Workflow for Local Privilege Escalation

Windows Defender's remediation workflow rewrites files carrying a Cloud Files placeholder tag back to their original location instead of quarantining them. A standard user can redirect this SYSTEM-privileged write through an NTFS junction into System32 and execute code as SYSTEM.

blog.calif.io

Published on blog.calif.io

RedSun (CVE-2026-41091) is a local privilege escalation vulnerability in Windows Defender’s file remediation workflow discovered by Nightmare Eclipse. The gist of the bug is that when Defender detects a malicious file that carries a Cloud Files placeholder tag, it deviates from its normal quarantine-and-delete…

Calif, on blog.calif.io

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

Defender's remediation code path for cloud-tagged placeholders performs a privileged write-back to a user-controlled path without re-validating where that path resolves to.

Impact

A standard user could achieve arbitrary file writes into System32 and execute code as NT AUTHORITY\SYSTEM.

What the attacker needed

Local unprivileged user account; Windows with Defender real-time protection; ability to create junctions and cloud sync roots

How it was found

  1. Write the EICAR test string to a bait file in a temp directory and open it with execute access to trigger a Defender scan.
  2. Poll the Object Manager's device directory for a new shadow copy volume that Defender creates during remediation.
  3. Place a batch oplock on the bait file inside the shadow copy to freeze Defender's access.
  4. While frozen, delete the bait file, register the directory as a cloud sync root with no callbacks, and create a placeholder with the same name and size.
  5. Release the first oplock, then rename the cloud directory aside, recreate it empty, and set a junction to System32 while a second oplock holds Defender.
  6. Release the second oplock, open the resulting System32 file for writing, copy the exploit binary there, and activate the Storage Tiers Management COM object to run it as SYSTEM.

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.

Windows Defender runs with high system privileges and cleans up files it thinks are malicious. The bug is that for certain special 'cloud placeholder' files it writes the file back to where it came from, and a normal user can trick that write into landing in a protected system folder. The attacker then gets their program run with the highest Windows privileges.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.