CVE-2026-84869:ScreenConnect 被利用来运行恶意文件
Detection stack
- AIDR
- Alert
- ETL
- Query
摘要
威胁行为者正在利用ScreenConnect中的CVE-2026-84869漏洞在MSP技术员工作站上执行恶意文件。该活动涉及用武器化的批处理文件喷洒服务器,该文件设计为在技术人员加入会话时触发。成功的攻击会部署一个名为SCKit的改版ScreenConnect客户端,以维持持续的远程访问。
调查
Huntress观察到,一个技术员加入受影响的会话后,在九秒钟内发生了完全的妥协。攻击链从执行来宾推送的批处理文件开始,随后重新启动PowerShell,通过Telegram机器人进行通信,并下载MSI安装程序。序列最终部署了一个名为 WindowsUpdate.WindowsClient.exe.
缓解措施
主要缓解措施是将所有ScreenConnect主机客户端更新到版本26.6.5或更高版本。作为临时措施,管理员应从相关角色和会话组中删除 TransferFiles 权限。也建议限制来宾会话访问并审核现有权限。
响应
当检测到恶意活动时,立即隔离受影响的技术员工作站。终止流氓客户端进程并从 %LOCALAPPDATA% and %TEMP%中删除相关文件。恢复 seclogon 服务到其预期启动配置,并旋转工作站可访问的所有凭证,包括RMM、PSA和密码库凭证。
攻击流程
我们仍在更新此部分。
检测
替代远程访问/管理软件(通过process_creation)
可能的账户或组枚举/操作(通过cmdline)
可疑的CURL使用(通过cmdline)
自动启动位置中的可疑二进制文件/脚本(通过file_event)
用于检测:在MSP技术员帐户上利用CVE-2026-84869在ScreenConnect中运行恶意文件的IOCs(HashSha256)
用于检测:在MSP技术员帐户上利用CVE-2026-84869在ScreenConnect中运行恶意文件的IOCs(SourceIP)第2部分
用于检测:在MSP技术员帐户上利用CVE-2026-84869在ScreenConnect中运行恶意文件的IOCs(SourceIP)第1部分
用于检测:在MSP技术员帐户上利用CVE-2026-84869在ScreenConnect中运行恶意文件的IOCs(DestinationIP)第2部分
用于检测:在MSP技术员帐户上利用CVE-2026-84869在ScreenConnect中运行恶意文件的IOCs(DestinationIP)第1部分
通过CVE-2026-84869执行ScreenConnect流氓客户端[Windows Sysmon]
通过PowerShell Start-Process执行流氓ScreenConnect客户端[Windows Powershell]
CVE-2026-84869 ScreenConnect恶意文件执行[Windows Process Creation]
模拟执行
-
攻击叙述及命令: 对手利用ScreenConnect远程访问软件中的漏洞。通过发送精心制作的请求,攻击者迫使ScreenConnect服务执行shell命令。目标是在技术员的工作站上建立据点。攻击者将首先尝试生成
cmd.exe以探索环境,然后是powershell.exe通过curl.exe下载第二级加载程序。此序列模仿了CVE-2026-84869利用模式中描述的行为。 -
回归测试脚本:
# 模拟脚本:CVE-2026-84869 执行仿真 # 注意:此脚本通过创建虚拟进程模拟'ScreenConnect'父进程 # 以确保检测逻辑正确触发。 $SimulatedParentPath = "$env:TEMPScreenConnect.exe" $DummyContent = @' using System; using System.Runtime.InteropServices; public class Dummy { [DllImport("kernel32.dll")] public static extern IntPtr CreateProcess(string lpApplicationName, string lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes, bool bInheritHandles, uint dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDirectory, ref STARTUPINFO lpStartupInfo, out PROCESS_INFORMATION lpProcessInformation); public struct STARTUPINFO { public uint cb; public string lpReserved; public string lpDesktop; public string lpTitle; public uint dwX; public uint dwY; public uint dwXSize; public uint dwYSize; public uint dwXCountChars; public uint dwYCountChars; public uint dwFillAttribute; public uint dwFlags; public short wShowWindow; public short cbReserved2; public IntPtr lpReserved2; public IntPtr hStdInput; public IntPtr hStdOutput; public IntPtr hStdError; } public struct PROCESS_INFORMATION { public IntPtr hProcess; public IntPtr hThread; public uint dwProcessId; public uint dwThreadId; } } '@ # 1. 创建一个模拟ScreenConnect的虚拟可执行文件 $Code = @" using System; using System.Diagnostics; using System.IO; class Program { static void Main() { Console.WriteLine("Simulating ScreenConnect Service..."); // 我们保持进程打开以充当父进程 System.Threading.Thread.Sleep(60000); } } "@ $Code | Out-File "$env:TEMPScreenConnectSim.cs" Add-Type -TypeDefinition $Code -OutputAssembly "$SimulatedParentPath" -OutputType ConsoleApplication # 2. 启动模拟的ScreenConnect父进程 Start-Process -FilePath $SimulatedParentPath -WindowStyle Hidden # 等待进程初始化 Start-Sleep -Seconds 2 # 3. 执行恶意子进程(实际的TTPs) Write-Host "[!] 触发检测:从ScreenConnect生成cmd.exe..." Start-Process -FilePath "cmd.exe" -ArgumentList "/c echo Exploited" -WorkingDirectory $env:TEMP Write-Host "[!] 触发检测:从ScreenConnect生成powershell.exe..." Start-Process -FilePath "powershell.exe" -ArgumentList "-Command Write-Host 'Exploitation Payload Stage 1'" -WorkingDirectory $env:TEMP Write-Host "[!] 触发检测:从ScreenConnect生成curl.exe..." Start-Process -FilePath "curl.exe" -ArgumentList "-I https://www.google.com" -WorkingDirectory $env:TEMP Write-Host "[+] 模拟完成。检查你的SIEM以获取警报。" -
清理命令:
# 清理模拟 Stop-Process -Name "ScreenConnectSim" -ErrorAction SilentlyContinue Remove-Item "$env:TEMPScreenConnectSim.cs" -ErrorAction SilentlyContinue Remove-Item "$env:TEMPScreenConnect.exe" -ErrorAction SilentlyContinue