LLMs cut Windows DWM exploit development time from weeks to hours
Large language models can dramatically accelerate Windows DWM exploit development, reducing the time to achieve SYSTEM from weeks to hours.
Security & privacy Elastic Security Labs 6 Mar 2026 Attack Prototype evidence
Published as “Patch diff to SYSTEM”
Why it matters
If LLMs can reliably speed up exploit creation, defenders must assume faster weaponization of newly disclosed bugs.
Summary
The author used an LLM-assisted diffing workflow to locate a use-after-free bug in dwmcore.dll and built an exploit that gains SYSTEM. By applying a GetRECT heap spray and a gadget chain involving __fnINSTRING and CStdAsyncStubBuffer2_Disconnect, the exploit achieves code execution despite CFG. The write-up reports that the time to go from vulnerability discovery to a working exploit dropped from three weeks to a few hours, though the exploit required two successful attempts and is not fully disclosed.
What they found 1
- LLM assistance reduced exploit development time from weeks to hours
“the time from discovering a UAF vulnerability in DWM to functional exploit dropped from 3 weeks to a matter of hours.”
Caveats 6
- The technique required two successful exploit attempts, lowering reliability.
- The authors chose to withhold publishing the full SYSTEM-privilege path.
- They note that model capabilities are "spiky" and do not yet rival the world’s best exploit developers.
- Reliability is limited; the exploit succeeded only after multiple attempts.
- Full details of the SYSTEM escalation path are omitted.
- Effectiveness depends on specific Windows build versions and feature flag state.
What’s new here 4
- LLM-driven binary diffing to pinpoint the vulnerable destructor in DWM
- A new heap spray primitive (GetRECT) that aligns with the LFH bucket of the target object
- A CFG-bypass gadget chain using __fnINSTRING and CStdAsyncStubBuffer2_Disconnect
- Feature-flag bypass that forces unconditional removal of the ink object