Skip to content
Access control Write-up Advanced

The Science of Exploitability: Decoding BlueHammer

BlueHammer is an eight-stage local privilege-escalation chain in Windows Defender that lets a standard user gain SYSTEM and then domain-admin credentials. It abuses Defender's update RPC, CloudFilter callbacks, oplocks and object-manager symlinks to read the SAM hive and recover credentials.

Prashant Sheshnaryan Pawar Follow

Published on blog.qualys.com

A CVE tells you what could go wrong. It does not tell you whether an attacker can actually make it happen on your machine.

Prashant Sheshnaryan Pawar, on blog.qualys.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 a design flaw where Defender's privileged update and file-handling paths trust attacker-controlled object-manager symlinks and CloudFilter callbacks, allowing a standard user to redirect SYSTEM file access to the SAM hive.

Impact

In the lab, the chain reached SYSTEM, recovered domain-admin credentials from LSASS, and moved laterally via pass-the-hash, but it requires prior standard-user code execution and depends on runtime factors such as a pending signature update.

What the attacker needed

Standard-user code execution; pending Defender signature update; WinDefend running with real-time protection; CloudFilter and VSS reachable

The fix

Microsoft addressed the issue in Defender Antimalware Platform version 4.18.26030.3011 and later.

How it was found

  1. Check Windows Update for a pending Defender signature update and stop if none is pending.
  2. Download Microsoft's signed mpam-fex64.exe, extract its CAB in memory, and replace mpasbase.vdm with a malicious copy.
  3. Trigger a Defender scan with an EICAR file while holding a batch oplock on RstrtMgr.dll, and capture any VSS shadow copy path.
  4. Register as a CloudFilter provider and use a decoy executable to freeze MsMpEng.exe in a callback.
  5. Create an object-manager directory and a WDUpdateDirectory symlink pointing to the staged update files.
  6. Call Defender's update RPC with the object-manager path, then race a symlink swap to make Defender open the SAM hive 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.

This is a chain of tricks that turns a normal user account on a Windows machine into the highest-level system account. It does not break in from outside; the attacker must already be able to run a program as a normal user. Each stage sets up the next, for example by freezing the antivirus scanner so it cannot interfere while files are swapped.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.