[local] Windows Defender (MsMpEng.exe) - Race Condition

Windows Defender (MsMpEng.exe) 存在竞态条件漏洞,攻击者可利用 MpCleanCallbackFunction 与卷影副本创建之间的竞态,通过 CreateProcessAsUser 提升至 NT AUTHORITY\SYSTEM,同时导致 Defender 崩溃。此0-Day LPE漏洞影响 Windows Defender 防病毒软件,严重性为 Critical。了解攻击场景、检测方法和修复建议。

未分配CVE

Windows Defender清理回调与卷影副本创建存在竞态,可致LPE到SYSTEM并崩溃MsMpEng.exe。

Critical · CVSS 7.8(估计)

📋 漏洞基础信息

CVE未分配CVE
漏洞类型竞态条件(Race Condition)导致 Use-After-Free 和本地权限提升
受影响版本Windows Defender Antivirus (MsMpEng.exe),具体版本未提及
危害等级Critical · CVSS 7.8(估计)
发布日期2026-07-06
提交者nu11secur1ty
来源Exploit-DB 原文 ↗

🔬 漏洞根因

Windows Defender 的 MpCleanCallbackFunction(清理例程)与卷影副本(Volume Shadow Copy)创建之间存在竞态条件,导致释放后使用(Use-After-Free),攻击者可通过 CreateProcessAsUser 将权限提升至 NT AUTHORITY\SYSTEM。

🎯 攻击场景

1. 攻击者以普通用户身份登录系统。2. 使用 OpenVirtualDisk 和 AttachVirtualDisk 挂载一个伪造的 ISO 镜像,触发 Windows Defender 扫描和清理流程。3. 在 MpCleanCallbackFunction 执行清理期间,创建卷影副本(Volume Shadow Copy)制造竞态窗口,导致 UAF。4. 将关键线程设置为 REALTIME_PRIORITY_CLASS 和 THREAD_PRIORITY_TIME_CRITICAL,提高竞争占先概率。5. 在 UAF 窗口内调用 CreateProcessAsUser 以 SYSTEM 权限启动恶意进程,同时使 MsMpEng.exe 崩溃,系统会话失去防病毒保护。

💥 漏洞影响

本地权限提升至 NT AUTHORITY\SYSTEM;Windows Defender (MsMpEng.exe) 因 UAF 崩溃,导致当前会话系统无防病毒保护;攻击者可在目标系统上执行任意代码,并可能进一步控制系统。

⚔️ 原始 PoC

原文未提供详细 PoC 代码,仅描述了利用要素:通过挂载伪造 ISO 触发清理例程;利用卷影副本创建制造竞态;设置实时优先级加速竞争;最终通过 CreateProcessAsUser 提权并导致 Defender 崩溃。

https://gitlab.com/nu11secur1ty/0/-/raw/main/README.md?ref_type=heads

## Description:
A race condition exists between Windows Defender's
`MpCleanCallbackFunction` (cleanup routine) and Volume Shadow Copy
creation. Successful exploitation results in:

1. LPE (Local Privilege Escalation) to NT AUTHORITY\SYSTEM via
`CreateProcessAsUser`
2. Use-after-free condition causing Windows Defender (`MsMpEng.exe`) to
crash
3. System remains without antivirus protection for the session

The exploit uses:
- Fake ISO mount via `OpenVirtualDisk` / `AttachVirtualDisk`
- Real-time priority escalation (`REALTIME_PRIORITY_CLASS` +
`THREAD_PRIORITY_TIME_CRITICAL`)
- Speed racing against Defender's cleanup routine

**STATUS: HIGH - Critical (0-Day / LPE)**

Exploit:
[url](https://gitlab.com/nu11secur1ty/0.git)

Demo:
[url](https://www.patreon.com/nu11secur1ty/posts/honda-exploit-160798929)

Time spent:
9:10:00

--
System Administrator - Infrastructure Engineer
Penetration Testing Engineer
Exploit developer at https://packetstormsecurity.com/
https://cve.mitre.org/index.html
https://cxsecurity.com/ and https://www.exploit-db.com/
home page: https://www.asc3t1c-nu11secur1ty.com/
hiPEnIMR0v7QCo/+SEH9gBclAAYWGnPoBIQ75sCj60E=
nu11secur1ty https://www.asc3t1c-nu11secur1ty.com/
-- 

System Administrator - Infrastructure Engineer
Penetration Testing Engineer
Exploit developer at https://packetstorm.news/
https://cve.mitre.org/index.html
https://cxsecurity.com/ and https://www.exploit-db.com/
0day Exploit DataBase https://0day.today/
home page: https://www.asc3t1c-nu11secur1ty.com/
hiPEnIMR0v7QCo/+SEH9gBclAAYWGnPoBIQ75sCj60E=
                          nu11secur1ty <http://nu11secur1ty.com/>

🔬 深度技术分析

原文未提供详细 PoC 代码,仅描述了利用要素:通过挂载伪造 ISO 触发清理例程;利用卷影副本创建制造竞态;设置实时优先级加速竞争;最终通过 CreateProcessAsUser 提权并导致 Defender 崩溃。

🛡️ 修复建议

官方未发布补丁(0-Day)。临时缓解措施:限制本地用户创建卷影副本的权限;启用 Windows Defender 的受控文件夹访问;部署 EDR 产品监控异常进程和 Defender 崩溃事件;最小权限原则管理用户账户。

📎 参考链接

🚨 威胁评估

📈 EPSS 利用概率暂无数据
🚨 CISA KEV未被已知利用
🔧 公开 PoC暂无公开 PoC

⚠️ 本文基于公开漏洞数据库,仅供安全研究与防御参考。生成时间: 2026-08-04 08:19 | 来源: Exploit-DB

🤖 常见问题解答(FAQ)

❓ 漏洞利用需要管理员权限吗?

原文未明确,但创建卷影副本通常需要高权限;攻击者以普通用户登录即可尝试,目标是提权至SYSTEM。

❓ 如何检测MsMpEng.exe崩溃?

通过Windows事件日志监控MsMpEng.exe崩溃(如事件ID 1000),并关注卷影副本创建和虚拟磁盘挂载的异常行为。

❓ 有CVE或补丁吗?

CVE未分配,属于0-Day,微软尚未发布补丁;建议限制卷影副本权限并加强本地威胁监控。

[!] CONTACT_CHANNELS

如需商务合作、技术咨询或漏洞反馈,请通过以下离岸节点联系作者。

> PING_AUTHOR (@A1RedTeam)