AI Security AI安全 12h ago Updated 8h ago 更新于 8小时前 46

Microsoft Defender's Own Driver Can Be Weaponized to Delete Security Software at Boot 微软 Defender 自身的驱动程序可被武器化,在启动时删除安全软件

Check Point Research disclosed a technique weaponizing Microsoft Defender's own BTR.sys (Boot Time Removal Tool) driver to perform arbitrary kernel-level file and registry operations on Windows 7 through Windows 11 25H2, without exploiting any software flaw The driver is a built-in, legitimately signed Windows component that cannot be blocklisted or blocked via WDAC without disabling Defender itself, making traditional defensive mitigations ineffective The proof-of-concept tool BTR_CLI demonstra Check Point Research披露了利用Microsoft Defender内置驱动BTR.sys进行内核级文件/注册表操作的攻击技术,无需利用软件漏洞或引入外部驱动 该驱动使用硬编码的256字节RC4密钥加密配置数据,密钥在Windows 7至Windows 11 25H2的18个版本中保持不变 攻击者需具备管理员权限和SeLoadDriverPrivilege,可通过绕过服务控制管理器直接写入注册表安装驱动,不产生Windows事件日志 微软确认该发现不符合紧急补丁标准,目前无补丁计划,但建议安全团队主动构建检测规则

72
Hot 热度
65
Quality 质量
55
Impact 影响力

Analysis 深度分析

TL;DR

  • Check Point Research disclosed a technique weaponizing Microsoft Defender's own BTR.sys (Boot Time Removal Tool) driver to perform arbitrary kernel-level file and registry operations on Windows 7 through Windows 11 25H2, without exploiting any software flaw
  • The driver is a built-in, legitimately signed Windows component that cannot be blocklisted or blocked via WDAC without disabling Defender itself, making traditional defensive mitigations ineffective
  • The proof-of-concept tool BTR_CLI demonstrates deleting the entire Defender stack including Tamper Protection from a fully updated Windows 11 25H2 machine by exploiting a "golden window" between filesystem writability and Defender service startup
  • The technique relies on a hard-coded RC4 encryption key and an undocumented transaction protocol reverse-engineered from the driver, with no evidence of real-world abuse detected so far
  • Microsoft confirmed the findings do not meet criteria for immediate servicing as exploitation requires pre-existing administrative privileges with SeLoadDriverPrivilege, and no patch is planned

Why It Matters

This research exposes a fundamental architectural trust boundary in Windows: a security product's own remediation driver can be repurposed as a kernel-level offensive primitive, effectively allowing an attacker to disable the very protection mechanism designed to defend the system. For AI and security practitioners, it underscores that defensive tooling can become an attack surface when it operates with unrestricted kernel privileges, and that traditional mitigation strategies like driver blocklisting are insufficient against built-in Windows components.

Technical Details

  • BTR.sys Architecture: The Boot Time Removal Tool driver is embedded within Defender's MpEngine.dll as the BOOTTIMETOOL resource and is deployed when Defender must complete malware removal after a reboot, targeting files or registry entries locked during normal Windows operation
  • Reverse-Engineered Protocol: Jiří Vinopal discovered a proprietary, undocumented transaction protocol where every configuration blob passed to BTR.sys is RC4-encrypted using a 256-byte key hard-coded in the .rdata section, verified unchanged across 18 unique 64-bit driver versions spanning Windows 7 onward
  • Stealthy Installation Method: BTR_CLI installs the driver as a service via direct HKLM registry writes (Type=1, Start=1, Group="Boot Bus Extender"), completely bypassing the Service Control Manager and generating no Windows Event ID 7045 (Service Installed) entry
  • Golden Window Exploitation: The driver executes queued operations from Ring 0 during the interval after the filesystem becomes writable but before Defender's user-mode services start, enabling physical removal of security binaries like WdFilter.sys and MsMpEng.exe before they can self-lock
  • Capabilities: Once loaded, BTR.sys can delete locked files and directories, move files to unconstrained paths including System32\drivers, delete registry keys and values, and write new registry values of any type, all attributed in telemetry to the System process (PID 4)
  • Detection Indicators: Check Point identified Sysmon Event ID 15 (FileCreateStreamHash) targeting filenames ending in .sys:changelist to capture the encrypted configuration Alternate Data Stream, along with RegistryEvent (Sysmon Event ID 12 or 13) for service key creation

Industry Insight

  • Security vendors and enterprise defenders should reassess the trust placed in built-in OS drivers that operate with unrestricted kernel privileges; the assumption that legitimate signed drivers are inherently safe is flawed when they can be invoked by any process holding administrative privileges
  • The "no patch planned" stance from Microsoft highlights a growing category of architectural issues that fall outside traditional vulnerability management frameworks, requiring organizations to implement proactive detection engineering and behavioral monitoring rather than relying on vendor remediation
  • This technique represents an evolution of the "bring your own vulnerable driver" attack pattern into "bring your own legitimate driver" territory, suggesting that future defensive strategies must account for weaponization of core OS components and consider runtime integrity monitoring, driver load restrictions, and segmentation of boot-time privilege boundaries

TL;DR

  • Check Point Research披露了利用Microsoft Defender内置驱动BTR.sys进行内核级文件/注册表操作的攻击技术,无需利用软件漏洞或引入外部驱动
  • 该驱动使用硬编码的256字节RC4密钥加密配置数据,密钥在Windows 7至Windows 11 25H2的18个版本中保持不变
  • 攻击者需具备管理员权限和SeLoadDriverPrivilege,可通过绕过服务控制管理器直接写入注册表安装驱动,不产生Windows事件日志
  • 微软确认该发现不符合紧急补丁标准,目前无补丁计划,但建议安全团队主动构建检测规则

为什么值得看

这项研究揭示了Windows安全架构中一个深层次的信任边界问题:防御系统自身的组件可能被武器化来移除防御。对于安全从业者和企业IT管理者而言,这提供了重要的威胁情报和检测思路,有助于在攻击者实际利用前建立防护。

技术解析

  • 驱动机制:BTR.sys是Windows Defender的启动时清理工具,嵌入在MpEngine.dll中作为BOOTTIMETOOL资源,用于在重启后删除启动时被锁定的恶意文件和注册表项
  • 加密方案:所有传递给BTR.sys的配置数据块使用RC4算法加密,密钥为256字节硬编码在.rdata段,跨越18个64位版本保持不变
  • 安装方式:通过直接写入HKLM注册表(Type=1, Start=1, Group="Boot Bus Extender")绕过服务控制管理器,不生成Event ID 7045
  • 执行窗口:利用"黄金窗口"——文件系统可写但Defender用户态服务尚未启动的时段,可删除WdFilter.sys和MsMpEng.exe等关键安全组件
  • PoC工具:BTR_CLI可从Defender定义更新目录提取BTR.sys,构造加密事务并执行内核级操作

行业启示

  • 架构反思:安全产品不应成为攻击面,微软需重新评估内置驱动的可信边界和权限模型
  • 检测优先:由于无补丁可用,企业应优先部署基于Sysmon事件ID 15和注册表事件的检测规则
  • 权限管控:严格限制SeLoadDriverPrivilege的使用,实施最小权限原则和驱动白名单策略

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Security 安全 Research 科学研究