AI Security AI安全 7h ago Updated 48m ago 更新于 48分钟前 45

New SLEEPWALKER Backdoor Waits for One Crafted Packet, Then Runs Its Own Bytecode 新型SLEEPWALKER后门等待一个特制数据包,随后运行自有字节码

SLEEPWALKER is a previously unreported Windows backdoor that remains dormant in memory until triggered by a specifically crafted network packet, then executes commands via a custom 23-instruction bytecode language The malware is an unsigned 64-bit DLL (59,904 bytes) side-loaded into ESET Management Agent (ERAAgent.exe), impersonating Microsoft's dpapi.dll while exporting identical functions to appear legitimate It supports six communication transports (TCP, UDP, ICMP, SMB named pipes, raw promis SLEEPWALKER是一种新型Windows后门,以DLL形式侧加载到ESET Management Agent进程中,静默等待特定网络包触发后执行自定义23指令字节码 该恶意软件采用无状态设计,不内置任何域名/IP,无主动外联行为,通过AES-256-CCM加密配置实现持久潜伏 支持TCP、UDP、ICMP、SMB命名管道、原始抓包及VMware VMCI等六种传输协议,可绕过传统网络监控 触发机制包括原始数据包监听和DNS触发两种模式,命令以自定义字节码形式传递,无现成工具可解析 检测依赖主机指标(异常dpapi.dll、注册表修改),YARA规则因依赖静态密钥和编译配置可能失效

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

Analysis 深度分析

TL;DR

  • SLEEPWALKER is a previously unreported Windows backdoor that remains dormant in memory until triggered by a specifically crafted network packet, then executes commands via a custom 23-instruction bytecode language
  • The malware is an unsigned 64-bit DLL (59,904 bytes) side-loaded into ESET Management Agent (ERAAgent.exe), impersonating Microsoft's dpapi.dll while exporting identical functions to appear legitimate
  • It supports six communication transports (TCP, UDP, ICMP, SMB named pipes, raw promiscuous capture, and VMware VMCI), uses AES-256-CCM encryption, and performs staged file delivery with SHA-256 verification before execution
  • The implant is purely post-compromise with no outbound connections of its own, no hardcoded infrastructure, and no disk-write instructions—making it extremely difficult to detect through traditional network monitoring
  • Analysis was conducted by independent researcher Dominik Reichel (formerly Palo Alto Networks Unit 42), who assessed the sophistication as consistent with a targeted, well-resourced operation, though attribution remains unknown

Why It Matters

SLEEPWALKER represents a significant evolution in stealthy backdoor design, combining passive network listening, custom bytecode execution, and DLL side-loading to evade detection—a pattern increasingly relevant as threat actors prioritize persistence over broad compromise. For AI and security practitioners, it highlights the growing importance of behavioral and host-based detection over signature-based approaches, especially as malware increasingly leverages legitimate software ecosystems and virtualization layers for covert communication.

Technical Details

  • Architecture & Delivery: The backdoor is a 59,904-byte unsigned 64-bit DLL designed for side-loading into ERAAgent.exe (ESET Management Agent). It impersonates Microsoft's dpapi.dll by exporting the same seven data protection functions and carries a version resource copied from the legitimate ESET executable. Side-loading exploits Windows DLL search order, not a software vulnerability.
  • Custom Bytecode Language: Commands are delivered as encrypted bytecode in a proprietary 23-instruction language covering scheduling, data movement, staged file delivery (SHA-256 verified before execution), and in-memory code execution. No instruction writes to disk, meaning all persistent artifacts must be placed by a separate component.
  • Trigger Mechanism: The implant decrypts its configuration using AES-256-CCM into an instruction that monitors all network interfaces indefinitely for a crafted trigger packet. It captures all traffic crossing watched interfaces (including traffic for other machines), meaning gateways, VPN servers, or bridging hosts could be activated by packets destined elsewhere. A secondary DNS-based trigger exists in the binary but was inactive in the analyzed sample.
  • Persistence & Lateral Movement: Persistence relies solely on DLL side-loading, reloading each time the ESET Management Agent service starts. For lateral movement, it opens SMB named pipes to unauthenticated callers by setting the EveryoneIncludesAnonymous registry value to 1 and adding its pipe name to NullSessionPipes—a cleanup routine that risks deleting pre-existing legitimate entries.
  • Transport Layer Diversity: Six transports are supported: TCP, UDP, ICMP, SMB named pipes with credentialed lateral movement, raw promiscuous packet capture, and VMware's Virtual Machine Communication Interface (VMCI). VMCI traffic bypasses network adapters entirely, passing through the virtualization layer and evading standard packet captures—a technique previously observed in UNC3886 intrusions.
  • Detection Indicators: Host indicators include an unexpected dpapi.dll or dpapisvc.dll beside ERAAgent.exe, registry modifications (EveryoneIncludesAnonymous=1, anomalous NullSessionPipes entries), and file hashes (SHA-256: d347170752a28e2b8c4b8b9f3cab2e3a6541ba11682c94498d26eb9002779d60; MD5: 2318327b29bb1c0e2d2b5f0211fc7fac). A YARA rule was published but may break if compiler settings change. Detection coverage was reported as low at publication.

Industry Insight

  • Shift Toward Passive Implants: The SLEEPWALKER design—waiting passively for a trigger rather than maintaining active C2 channels—reflects a broader industry trend toward low-noise, long-lived implants that minimize detection surface. Security teams should prioritize host-level monitoring and baseline anomaly detection over perimeter-based threat intelligence alone.
  • Supply Chain & Legitimate Software Abuse: The exploitation of ESET Management Agent via DLL side-loading underscores the risk posed by legitimate enterprise software becoming a delivery vector. Organizations should enforce strict DLL search-order hardening (e.g., DLL_SEARCH_ORDER_DISABLE_LEGACY, DEFAULT_SECURE_PROCESS_PATH) and audit side-loading configurations across all managed endpoints.
  • Virtualization as a Covert Channel: The use of VMware VMCI for command-and-control traffic demonstrates how virtualization layers can be weaponized to bypass network monitoring. Cloud and virtualized environments require specialized visibility into hypervisor-level traffic, and incident response playbooks should account for VMCI-based persistence when investigating ESXi or vSphere compromises.

TL;DR

  • SLEEPWALKER是一种新型Windows后门,以DLL形式侧加载到ESET Management Agent进程中,静默等待特定网络包触发后执行自定义23指令字节码
  • 该恶意软件采用无状态设计,不内置任何域名/IP,无主动外联行为,通过AES-256-CCM加密配置实现持久潜伏
  • 支持TCP、UDP、ICMP、SMB命名管道、原始抓包及VMware VMCI等六种传输协议,可绕过传统网络监控
  • 触发机制包括原始数据包监听和DNS触发两种模式,命令以自定义字节码形式传递,无现成工具可解析
  • 检测依赖主机指标(异常dpapi.dll、注册表修改),YARA规则因依赖静态密钥和编译配置可能失效

为什么值得看

SLEEPWALKER展示了高级持续性威胁(APT)组织在免杀和隐蔽通信方面的最新技术演进,其"魔法包触发+自定义字节码执行"模式为防御者提供了新的检测思路。该样本揭示了侧加载攻击在合法软件生态中的滥用趋势,对终端安全厂商和威胁情报团队具有重要参考价值。

技术解析

  • 架构设计:59,904字节无签名64位DLL,伪装为Microsoft dpapi.dll,导出相同七个数据保护函数,版本资源复制自ESET Management Agent,通过Windows DLL搜索顺序实现侧加载
  • 通信协议:23条自定义指令覆盖调度、数据传输、内存执行和分阶段文件交付(SHA-256验证),支持六种传输层:TCP/UDP/ICMP/SMB命名管道(带凭证横向移动)/原始抓包/VMware VMCI
  • 触发机制:AES-256-CCM解密配置后生成单条监听指令,捕获所有网络接口流量(包括非本机流量),当前样本仅启用原始包监听,DNS触发器已实现但未激活
  • 持久化与清理:依赖ERA Agent服务启动时的侧加载实现持久化,通过修改EveryoneIncludesAnonymous注册表和NullSessionPipes实现无认证命名管道访问,清理时记录写入成功状态而非条目存在性
  • 检测指标:异常dpapi.dll/dpapisvc.dll文件、SHA-256/MD5哈希值、注册表修改,YARA规则基于静态AES密钥和编译代码,重建可能失效

行业启示

  • 防御策略升级:传统基于网络流量和已知IOC的检测手段对SLEEPWALKER类后门失效,需转向行为分析和主机完整性监控,特别是合法进程侧加载检测
  • 供应链安全警示:攻击者利用ESET等安全软件的合法组件作为载体,表明供应链攻击正从软件漏洞利用转向信任滥用,厂商需加强代码签名和加载验证
  • 威胁情报共享:该样本无明确归属和部署证据,凸显独立研究在威胁溯源中的价值,建议建立更开放的恶意软件分析共享机制以提升检测覆盖率

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

Security 安全 Research 科学研究