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

TerminalFix Uses Fake Cloudflare CAPTCHAs to Deploy Reverse-Tunnel Backdoor TerminalFix利用伪造Cloudflare验证码部署反向隧道后门

TerminalFix is a new ClickFix variant that tricks users into running malicious PowerShell commands via fake Cloudflare CAPTCHA pages on compromised websites The attack chain uses DLL sideloading (rogue dui70.dll alongside legitimate LockScreenContentServer.exe) to execute a multi-stage intrusion A Python-based reverse-tunnel C2 implant establishes persistent encrypted WebSocket access, allowing attackers to proxy arbitrary TCP traffic and reach any host on the victim's internal network Extensive Microsoft披露新型ClickFix变体TerminalFix,通过伪造Cloudflare验证码诱导用户在Windows Terminal/PowerShell中执行恶意命令 攻击链采用DLL旁加载技术,将恶意DLL嵌入合法二进制文件,通过隐写术从外部域名提取下一阶段载荷 植入定制化反向隧道后门,通过加密WebSocket通道建立持久化C2通信,实现内网横向移动 攻击者执行深度Active Directory侦察,收集系统元数据、映射网络拓扑并枚举域管理员权限 建议企业限制标准用户PowerShell执行权限、监控DLL旁加载指标并启用PowerShell脚本块日志记录

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

Analysis 深度分析

TL;DR

  • TerminalFix is a new ClickFix variant that tricks users into running malicious PowerShell commands via fake Cloudflare CAPTCHA pages on compromised websites
  • The attack chain uses DLL sideloading (rogue dui70.dll alongside legitimate LockScreenContentServer.exe) to execute a multi-stage intrusion
  • A Python-based reverse-tunnel C2 implant establishes persistent encrypted WebSocket access, allowing attackers to proxy arbitrary TCP traffic and reach any host on the victim's internal network
  • Extensive Active Directory reconnaissance is performed, including domain trust discovery, admin enumeration, and internal network topology mapping
  • Microsoft warns the reverse-tunnel capability enables privilege escalation, security control disarmament, data exfiltration, and ransomware deployment

Why It Matters

TerminalFix represents an evolution in social engineering attacks by targeting Windows Terminal and PowerShell instead of the traditional Run dialog, significantly increasing the success rate of complex multi-line script execution. The reverse-tunnel implant architecture gives attackers persistent, network-level access that bypasses perimeter defenses, making it a critical threat for enterprise environments relying on standard network security perimeters.

Technical Details

  • Delivery mechanism: Fake Cloudflare CAPTCHA pages served on compromised websites prompt users to copy and paste a PowerShell command into Windows Terminal or PowerShell, leveraging social engineering to bypass user caution
  • DLL sideloading: A ZIP archive containing legitimate binary "LockScreenContentServer.exe" and malicious "dui70.dll" is downloaded; the rogue DLL is loaded by the legitimate executable, enabling payload execution without raising immediate suspicion
  • Steganographic payload delivery: Next-stage payloads are hidden within PNG images hosted on domains like "bestsocialmedianewspapper[.]com" and "offlineupdater[.]com", retrieved by the sideloaded DLL
  • Reverse-tunnel C2 implant: A custom Python-based backdoor ("client.py") creates an encrypted WebSocket tunnel to "gitnow[.]dev:443", allowing arbitrary TCP traffic proxying and enabling the C2 server to reach any internally visible host
  • Persistence and monitoring: The implant establishes persistence via Registry Run keys and scheduled tasks, plus a persistent PowerShell file-watch loop that monitors for new commands, executes them via Invoke-Expression, and logs results
  • Reconnaissance scope: System metadata collection, domain trust discovery, domain admin enumeration, Active Directory user/computer searches, and ICMP-based internal network topology mapping

Industry Insight

  • Security teams should prioritize restricting PowerShell and Run dialog execution for standard users through AppLocker, Windows Application Control, or Group Policy, as these execution paths are the primary attack vector for ClickFix variants
  • Network segmentation and monitoring of outbound WebSocket connections to unusual endpoints should be implemented, as the reverse-tunnel capability effectively turns compromised hosts into internal network proxies that bypass traditional perimeter defenses
  • Employee security awareness training must specifically address CAPTCHA-based social engineering, as these attacks exploit legitimate-looking security prompts to manipulate users into executing arbitrary code

TL;DR

  • Microsoft披露新型ClickFix变体TerminalFix,通过伪造Cloudflare验证码诱导用户在Windows Terminal/PowerShell中执行恶意命令
  • 攻击链采用DLL旁加载技术,将恶意DLL嵌入合法二进制文件,通过隐写术从外部域名提取下一阶段载荷
  • 植入定制化反向隧道后门,通过加密WebSocket通道建立持久化C2通信,实现内网横向移动
  • 攻击者执行深度Active Directory侦察,收集系统元数据、映射网络拓扑并枚举域管理员权限
  • 建议企业限制标准用户PowerShell执行权限、监控DLL旁加载指标并启用PowerShell脚本块日志记录

为什么值得看

本文揭示了社会工程学攻击向终端环境演进的新趋势,TerminalFix通过利用Windows Terminal/PowerShell的权威性提升攻击成功率。其技术组合(DLL旁加载+隐写术+反向隧道)展示了高级持续性威胁的复杂化特征,为企业安全防御提供了关键威胁情报。

技术解析

  • 攻击载体设计:伪造Cloudflare CAPTCHA验证页面,诱导用户复制执行PowerShell命令,命令下载包含合法二进制(LockScreenContentServer.exe)和恶意DLL(dui70.dll)的ZIP包
  • DLL旁加载机制:恶意DLL通过同名加载机制被合法进程调用,执行载荷提取、持久化安装(注册表Run键+计划任务)和域环境侦察
  • 隐写术通信:下一阶段载荷隐藏于PNG图像中,通过指定域名(bestsocialmedianewspapper[.]com/offlineupdater[.]com)传输,规避传统检测
  • 反向隧道C2:Python实现的client.py建立加密WebSocket通道(gitnow[.]dev:443),隧道化任意TCP流量,使攻击者能访问受害者内网所有可见主机
  • 持久化与侦察:部署PowerShell文件监控循环,持续读取并执行外部命令;收集系统信息、执行域信任发现、AD用户/计算机搜索和内部网络拓扑映射

行业启示

  • 终端安全策略升级:企业需重新评估Windows Terminal/PowerShell的执行权限策略,考虑通过AppLocker或组策略限制标准用户执行复杂脚本的能力
  • 社会工程学防御强化:验证码欺骗类攻击日益专业化,应加强员工安全意识培训,建立对异常终端操作请求的验证机制
  • 网络分段与监控:反向隧道技术使单点突破可转化为内网全面渗透,需强化网络微隔离策略,部署针对加密C2通道的流量异常检测系统

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

Security 安全 Research 科学研究 Programming 编程