RedSun Exploit Uses Windows Defender to Gain SYSTEM Privileges

· Original article ↗

Summary

RedSun exploits a missing reparse-point check in Windows Defender’s remediation process, allowing a local unprivileged user to redirect a file write into System32 and run code as SYSTEM. The article reports that no patch was available at publication.

Key points

  • The flaw is in Defender’s remediation write-back path, which reportedly uses the original file path without checking whether it has been redirected through a junction.
  • The exploit combines a batch OPLOCK race, a Cloud Files placeholder, a Volume Shadow Copy trigger, and a junction pointing to C:\Windows\System32.
  • Defender writes an attacker-controlled binary into System32 with SYSTEM privileges; the exploit then invokes the Storage Tiers Management COM server to execute it.
  • The article reports confirmation on Windows 11 25H2 Build 26200.8246 and says the flaw may affect other Windows versions.
  • The attack requires local unprivileged access and reportedly works with real-time protection enabled; no administrator interaction or kernel exploit is needed.
  • At the time of writing, the article says no patch or CVE had been issued.
  • Suggested interim monitoring includes unusual VSS enumeration, Cloud Files sync-root registration, junction creation in temporary directories, and unexpected System32 writes from MsMpEng.exe.

Article Details

Attack Vectors
  • A local, unprivileged user triggers Windows Defender remediation of a cloud-tagged file, then uses a batch OPLOCK to time the remediation write.
  • The attacker replaces the working directory with a junction targeting C:\Windows\System32, redirecting Defender's privileged write to place an attacker-controlled binary there.
  • The exploit activates the Storage Tiers Management COM server to execute the placed binary as SYSTEM.
Defensive Notes
  • Monitor for user-space processes enumerating HarddiskVolumeShadowCopy* devices, especially through NtQueryDirectoryObject.
  • Alert on CfRegisterSyncRoot calls from untrusted processes or processes not recognized as cloud sync software.
  • Monitor for junction or mount point reparse creation in %TEMP%, particularly after OPLOCK acquisition.
  • Flag unexpected writes to C:\Windows\System32 originating from MsMpEng.exe.
  • The article recommends disabling cloud-delivered protection only as a temporary measure on high-risk isolated systems, noting that it significantly degrades Defender's detection capability.

MITRE ATT&CK

CVE

People

Vendors

Products

Tools

Related Articles