Skip to content
Race condition Write-up Advanced

When the Defender Becomes the Door: BlueHammer, RedSun, and UnDefend in the Wild by Justin Howe

Three Windows Defender exploits (BlueHammer, RedSun, UnDefend) were published as proof-of-concept code and then weaponised in the wild. BlueHammer and RedSun use file-system redirection tricks to make Defender read or write attacker-controlled files with SYSTEM privileges, leading to privilege escalation, while UnDefend degrades Defender's signature updates.

vectra.ai

Published on vectra.ai

Security research sometimes breaks in uncomfortable ways. In early April, a researcher known as Chaotic Eclipse or Nightmare-Eclipse published proof-of-concept exploit code for three Windows Defender vulnerabilities on GitHub -- not as coordinated disclosure, but as a direct protest against how Microsoft's Security…

The author, on vectra.ai

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 a time-of-check to time-of-use race condition in Defender's file handling, combined with symbolic link and junction redirection, allows attacker-controlled paths to be substituted during privileged file operations.

Impact

An attacker could escalate to SYSTEM privileges on a Windows host, steal NTLM hashes, and degrade Defender's detection over time; RedSun works even on fully patched systems and UnDefend has no patch.

What the attacker needed

Local access to a Windows host; Defender running with real-time protection; ability to stage files in user directories

The fix

BlueHammer was addressed by the April 2026 updates, but RedSun and UnDefend remain unpatched, so defenders should monitor for behavioural indicators at the network layer.

How it was found

  1. Stage the exploit binary in a low-privilege user directory such as Pictures or a two-letter subfolder in Downloads.
  2. Run manual enumeration commands like whoami /priv to inventory privileges.
  3. Trigger Defender's signature update or real-time protection with an EICAR string to start a privileged file operation.
  4. Win a race condition using oplocks, Cloud Files API, junctions, and symbolic links to redirect the file read or write.
  5. For BlueHammer, extract NTLM hashes from the redirected SAM read and use pass-the-hash to gain a SYSTEM shell.
  6. For RedSun, have the Cloud Files Infrastructure execute the attacker-planted binary 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 is the built-in antivirus. These bugs trick Defender into reading or writing files it should not, using its high system privileges, so an attacker can steal password hashes or run code as the system. A third tool, UnDefend, quietly stops Defender from getting new virus definitions.

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.

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.