When the Protector Becomes the Vector: Exploiting Microsoft Defen
The article describes three techniques that abuse Microsoft Defender's privileged file operations: BlueHammer (patched) and RedSun (unpatched) use NTFS junctions to redirect Defender writes into System32 for local privilege escalation, while UnDefend suppresses Defender updates to silently degrade protection. An attacker could gain SYSTEM-level code execution or blind defences.
Published on medium.com
Endpoint security tools are designed to protect the system — but what happens when those same tools become the attack vector?
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, Defender performs file operations on attacker-controlled paths without properly validating or resolving NTFS junctions, allowing redirection of privileged writes into System32.
Impact
An attacker could gain SYSTEM-level code execution by overwriting critical system binaries, and the RedSun variant remains unpatched, making it more stable and harder to detect.
What the attacker needed
Local access to the system; ability to create NTFS junctions; Defender running as SYSTEM
The fix
BlueHammer was fixed by April 2026 updates; RedSun remains unpatched and should be mitigated by enabling ASR rules and Tamper Protection.
How it was found
- Trigger Defender scan on a controlled file
- Use a Batch OPLOCK to pause Defender mid-operation
- Replace the directory with a junction → System32
- Defender resumes and writes attacker-controlled content 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.
Microsoft Defender is an antivirus program that runs with high system privileges. The article shows how attackers can trick Defender into writing files to sensitive system folders, which can let them take full control of the computer. It also describes a way to stop Defender from updating, leaving the machine silently less protected.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.