AI Security AI安全 3h ago Updated 1h ago 更新于 1小时前 43

Rogue ScreenConnect Clients Spread Four-Stage VBScript Chain to Newly Connected Hosts 恶意ScreenConnect客户端向新连接主机传播四阶段VBScript链

Three unrelated incidents in August 2026 exploited diverse initial access vectors (tech support scam, phishing MSI, fake refund form) to deploy rogue ScreenConnect clients that execute a four-stage VBScript worm-like chain The attack chain uses a state-variable system (1.vbs through 4.vbs) to profile infected hosts and deliver tailored payloads based on detected security tools and system configuration Worm-like propagation occurs as compromised ScreenConnect clients distribute the VBScript chain 攻击者利用ConnectWise ScreenConnect分发四阶段VBScript链,实现蠕虫式横向传播,连接受感染客户端的新主机将自动执行恶意脚本 三种初始访问向量:Quick Assist技术支持诈骗、钓鱼MSI安装程序、假冒Geek Squad退款表单,均导向 rogue ScreenConnect 安装 四阶段VBScript根据系统状态值(000/001/010/011)分支执行不同载荷:用户级后门、UAC提权与持久化、禁用Defender并运行XMRig加密货币矿工 攻击链利用Dropbox作为C2文件托管,通过"%TEMP%\value.txt"和"%TEMP%\map.tx

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

Analysis 深度分析

TL;DR

  • Three unrelated incidents in August 2026 exploited diverse initial access vectors (tech support scam, phishing MSI, fake refund form) to deploy rogue ScreenConnect clients that execute a four-stage VBScript worm-like chain
  • The attack chain uses a state-variable system (1.vbs through 4.vbs) to profile infected hosts and deliver tailored payloads based on detected security tools and system configuration
  • Worm-like propagation occurs as compromised ScreenConnect clients distribute the VBScript chain to newly connected Host systems, effectively turning each infected machine into a content-delivery mechanism
  • Three distinct payload branches were identified: user-level ScreenConnect backdoors (state 000/001), UAC bypass and persistence tooling (state 010), and cryptocurrency mining with Defender disabling (state 011)
  • ConnectWise acknowledged a file transfer behavior vulnerability in ScreenConnect affecting both Cloud and On-Premise deployments, while Huntress recommends full system re-imaging for affected hosts

Why It Matters

This incident demonstrates how legitimate remote administration tools can be weaponized for worm-like propagation, creating a self-sustaining infection mechanism that spreads laterally through trusted IT support channels—a tactic that could bypass many perimeter defenses. The sophisticated state-aware payload selection and multi-stage VBScript architecture represents an evolution in RMM-based attack chains that security teams should monitor closely.

Technical Details

  • Initial Access Vectors: Three distinct entry points were observed—a Quick Assist tech-support scam, a phishing-delivered MSI installer (ScreenConnect.ClientSetup.msi), and a fake Geek Squad refund form lure—each deploying a rogue ScreenConnect client configured to communicate with attacker-controlled C2 servers
  • Four-Stage VBScript Chain: 1.vbs profiles the host (RAM check, ScreenConnect installation status, security product enumeration including CrowdStrike, SentinelOne, Sophos, etc.) and writes a three-bit state variable to %TEMP%\value.txt; 2.vbs waits for value.txt and downloads a mapping file from Dropbox to %TEMP%\map.txt; 3.vbs reads the map and downloads the appropriate payload to %TEMP%\out.enc; 4.vbs decrypts the payload via runner.ps1 and executes PyTorchFix.ps1
  • State-Based Payload Branching: State values 000/001 deliver a user-level ScreenConnect backdoor; state 010 delivers UAC bypass and persistence tooling; state 011 delivers tunneling utilities, an XMRig cryptocurrency miner, and scripts to disable Microsoft Defender reporting and Windows memory integrity
  • Worm Propagation Mechanism: The compromised client records ConnectionIDs to avoid re-targeting active sessions but removes them upon disconnection, allowing reconnections to trigger reinfection; VBScript files are persisted to C:\Users\Public\Libraries\Default\Lib\Lib1 to serve as delivery mechanism for new connections
  • Persistence & Cleanup: A WindowsServiceHost User Run Key pointing to WindowsServiceHost.vbs in AppData provides persistence; runner.ps1 terminates all wscript.exe and cscript.exe processes and deletes the staging directory after execution

Industry Insight

  • Organizations using ScreenConnect or similar RMM tools should immediately audit all remote support sessions, verify client installations against known-good configurations, and implement network-level monitoring for anomalous wscript.exe spawning patterns from RMM software
  • The worm-like propagation behavior through legitimate remote administration channels highlights the critical need for endpoint detection and response (EDR) solutions to establish behavioral baselines for RMM tools and alert on unexpected file transfer or script execution patterns
  • Given the complexity of the infection and the persistence mechanisms employed, incident response playbooks should prioritize full system re-imaging over remediation attempts, and ConnectWise's acknowledged vulnerability should prompt all ScreenConnect customers to apply security patches and review file transfer configurations across both Cloud and On-Premise deployments

TL;DR

  • 攻击者利用ConnectWise ScreenConnect分发四阶段VBScript链,实现蠕虫式横向传播,连接受感染客户端的新主机将自动执行恶意脚本
  • 三种初始访问向量:Quick Assist技术支持诈骗、钓鱼MSI安装程序、假冒Geek Squad退款表单,均导向 rogue ScreenConnect 安装
  • 四阶段VBScript根据系统状态值(000/001/010/011)分支执行不同载荷:用户级后门、UAC提权与持久化、禁用Defender并运行XMRig加密货币矿工
  • 攻击链利用Dropbox作为C2文件托管,通过"%TEMP%\value.txt"和"%TEMP%\map.txt"进行状态传递,最终由PowerShell解密执行第二阶段载荷
  • Huntress建议受影响主机从已知良好介质重新镜像或干净安装操作系统,ConnectWise已发布安全公告承认文件传输行为存在缺陷

为什么值得看

本文揭示了RMM(远程监控与管理)工具被滥用于蠕虫式传播的典型案例,展示了合法远程管理工具如何被攻击者武器化。对AI安全从业者和企业安全团队而言,理解此类攻击链有助于完善终端检测响应(EDR)策略和RMM工具的安全配置规范。

技术解析

  • 四阶段VBScript链架构:1.vbs负责主机画像(检查RAM、已安装安全软件、ScreenConnect状态),输出三比特状态值至"%TEMP%\value.txt";2.vbs等待状态文件后从Dropbox下载解码内容写入"%TEMP%\map.txt";3.vbs根据状态值从Dropbox下载对应载荷至"%TEMP%\out.enc";4.vbs调用PowerShell解密并执行第二阶段脚本"PyTorchFix.ps1"
  • 状态值分支逻辑:000/001触发用户级ScreenConnect后门;010触发UAC绕过提权与持久化工具;011针对仅安装Microsoft Defender的系统,禁用Defender报告、关闭Windows内存完整性并运行XMRig加密货币矿工
  • 蠕虫式传播机制:受感染主机在每次新ScreenConnect连接时自动分发四阶段VBScript,通过记录ConnectionID避免重复攻击同一会话,断开后清除记录以支持重连时再次感染
  • 持久化与清理策略:runner.ps1终止所有wscript.exe/cscript.exe进程并删除 staging 目录;当状态值为010/011时,将VBScript文件复制至"C:\Users\Public\Libraries\Default\Lib\Lib1"实现二次传播;同时设置WindowsServiceHost User Run Key指向AppData中的恶意VBS文件
  • 初始访问与C2基础设施:攻击使用多个C2服务器(45.13.237[.]190、131.123.40[.]98:8041、borertors92.anondns[.]net),利用Dropbox托管恶意文件,部分URL已于2026年9月2日下线

行业启示

  • RMM工具安全治理需升级:ScreenConnect、UltraViewer等远程管理工具已成为攻击者首选武器化目标,企业应实施严格的RMM工具白名单策略、会话审计和异常连接告警机制
  • 蠕虫式传播模式预示攻击演进趋势:利用合法工具实现横向移动可降低检测概率,安全团队需关注"合法工具滥用"(Living-off-the-Land)攻击模式,强化终端行为监控而非仅依赖特征码检测
  • 事件响应策略应趋向彻底重建:面对复杂多阶段攻击链,简单清除恶意文件不足以消除后门,Huntress建议的重新镜像或干净安装应成为此类事件的标准响应流程,同时需审查所有通过受感染RMM会话连接的系统

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

Security 安全 Research 科学研究