跳到内容

科技 · 遭入侵的安装程序

Q-Dir 和 DesktopOK 恶意软件可在卸载后继续残留

恶意安装程序混在 SoftwareOK 的官方分发渠道中,里面却藏着正版程序。相同版本也有干净文件,加上独立后门,意味着恢复工作不能止于卸载。

文字 阅读需 8 分钟 · 23 个来源

原语言视频

译自英文原文。

用户安装了看似普通的 SoftwareOK 工具后,一些 Windows 电脑上被发现存在两个独立的后门。被篡改的 Q-Dir 和 DesktopOK 下载文件会打开正版应用,同时秘密安装远程控制恶意软件;在一些机器上,攻击者随后又添加了另一个拥有独立命令连接的后门。卸载可见的工具并不会移除这些独立组件。这正是核心风险:一个程序可以运行得完全正常,但运行它的电脑却已遭到入侵。⁠2

读者投票

这次攻击之后,软件发行商应优先采取哪项防护措施?

Q-Dir 是一款带有四个文件夹视图的 Windows 文件管理器。DesktopOK 可以保存和恢复桌面图标的位置。两者都不应让陌生人获得远程访问权限。然而,攻击者通过 SoftwareOK 的官方下载和更新渠道接触到了用户,而不仅仅是通过仿冒网站或误导性广告。遵循从开发者处下载并保持软件更新这一常规建议的用户也因此受到影响。⁠1⁠12

AhnLab 的 ASEC 发布了一份技术分析,其发布元数据显示为 2026 年 11 月 25 日 UTC。微软威胁情报团队的分析日期为 12 月 2 日,追溯了 DeviceSync Python 远程访问木马及独立原生后门的安装过程。微软表示,调查在 11 月 9 日时已经展开;这并不能确定恶意分发何时开始。⁠12⁠2

18已公布的恶意工具指纹,不代表受害者人数 2
5同时存在正版和篡改文件的版本 12

版本号几乎不能说明问题

ASEC 确认了被篡改的 Q-Dir 12.83、12.84 和 12.85,以及 DesktopOK 12.82 和 12.85 的副本。对于上述每个版本,ASEC 也都确认了正版文件。因此,版本号无法区分恶意下载和干净文件,而且已确认的版本也不能确定受影响范围的全部边界。⁠12

数字签名带来的陷阱更为隐蔽。被篡改软件包中的正版工具带有开发者 Nenad Hrg 的有效签名。这些签名只能验证其中嵌入的程序,不能验证外层安装程序或它下载的所有内容。事后检查已安装的 Q-Dir 可执行文件可能会得到有效签名,即使恶意外层安装程序已经运行。ASEC 发现,一些下载的安装程序与 SoftwareOK 下载页面公布的指纹不符,并包含无关的下载和执行代码。⁠12

软件镜像网站 MajorGeeks 提供了一个很好的例子,说明看似矛盾的经历为何可能都属实。在 12 月 1 日的报道中,Jim McMahon 表示,一名读者称自己于 11 月 14 日运行 Q-Dir 后遭到感染。MajorGeeks 测试了其镜像的 12.84 文件,包括在测试电脑上安装这些文件,但无法复现这一行为;这些文件的扫描结果均为安全。该读者此前已清除感染,之后也没有复发。他最初的安装程序还是后续更新是否传递了恶意软件,仍未查明。⁠13

MajorGeeks 还称,一个遭篡改的 Q-Dir 12.83 下载文件后来被上游的一个干净文件替换,但两者版本号相同。镜像站点会保留所收集的副本,直到将其替换。上游下载文件的更改不会改写已存储在其他位置的文件。因此,仅凭版本标签无法重建完整的分发历史。⁠13

更新也带来了另一条入侵途径。一个正版 Q-Dir 12.77 安装程序下载了恶意更新。微软还观察到,通过包管理器更新至 12.83.0 后程序被执行、一次由管理系统静默运行的部署,以及从同步文件夹、代码库和文件共享中运行的便携版副本。这些观察并不能证明包管理器或存储服务提供商遭到了单独入侵。它们表明,普通系统可能会传递上游的恶意软件包,也说明最初下载干净并不能证明后续更新安全。⁠13⁠2

运行正常的应用程序背后留下了什么

安装程序下载了正版 7-Zip 解压工具,以及一个包含 64 位 Python 3.9 运行时和后门脚本的压缩包。借助自带的解释器,DeviceSync 即使在电脑所有者从未安装过 Python 的情况下也能运行。软件包被放置在 C:\ProgramData\Microsoft\DeviceSync\b2 下;另有观察发现其也可能位于 C:\ProgramData\DeviceSync\b2。⁠2⁠12

它的存续并不依赖 Q-Dir 或 DesktopOK。已记录的启动机制包括当前用户的 Run 注册表项 DeviceSyncUpdate_b2,以及计划任务 \UPnp\MicrosoftEdge_dcntel。它们会在用户登录时重新启动随包提供的解释器。后续一个软件包使用 pythonw.exe 在没有控制台窗口的情况下运行。关闭、替换或卸载该工具,都不会移除这项独立安装及其启动机制,仍需进一步调查。⁠2

恢复出的代理程序能够执行命令和其他 Python 代码、操作文件、截取屏幕截图,并转发网络流量。微软观察到该程序会探查系统并搜索已安装软件,包括 ToDesk,以及 Ollama、vLLM、LangChain、LlamaIndex 和 MLflow 等 AI 或机器学习工具。这些搜索表明攻击者对系统中安装的软件感兴趣,但不能证明模型或训练数据遭到窃取。同样,在代码中发现某项能力,也不能证明它曾被使用。⁠2

ASEC 统计发现,代理程序内部的比对列表中有 1,206 个安全产品进程名称。该功能会盘点正在运行的防护软件并报告匹配项,但不会将其禁用。中文注释以及列表的构建方式表明,开发或运行环境可能使用中文,但不能据此确认行为者的国籍或国家支持方。微软尚未将这项活动归因于任何具名威胁行为者。⁠12⁠2

在一些设备上,PowerShell 启动了 C:\Temp\winhost.exe;其他载荷则出现在公用用户文件夹中。原生后门在多天内独立于 DeviceSync 维持命令连接,并启动短暂运行的插件工作进程。观察到的一个插件使用 curl 和 nslookup 查询电脑的公网地址。仅删除 Python 目录无法处理第二个组件。⁠2

文件路径与名称同样重要。调查人员观察到 C:\Users\Public\backgroundTaskHost.exe,而 Windows 在 System32 中也有一个正版 backgroundTaskHost.exe。熟悉的文件名既不能证明文件安全,也不能单凭自身就判定其为恶意软件。响应人员需要检查文件位置、指纹和行为。⁠1⁠2

先检查文件,再检查电脑

如果保留了下载文件,可在不运行原始安装程序可执行文件的情况下计算其 SHA-256 指纹。如果它位于 ZIP 文件中,请解压出可执行文件,但不要运行;只对 ZIP 文件计算哈希回答的是另一个问题。PowerShell 可以使用 Get-FileHash -Algorithm SHA256 -LiteralPath "C:\Downloads\your-installer.exe"读取文件,其中应替换为实际路径。将完整结果与 ASEC 的正版和恶意文件参考表,以及微软公布的恶意文件指标进行比较。⁠13⁠12⁠2

与恶意文件匹配,表示该文件是已知的篡改文件;与正版文件匹配,只能确认该确切文件为正版,无法说明电脑之后的情况。指纹未匹配则意味着其仍未得到验证。微软公布的数据集包含 18 个不同的恶意工具指纹,其中包括 ASEC 最初公布的 17 个,以及另一个尚未确定版本的 DesktopOK 文件。这些数字统计的是文件,而非受影响人数。⁠12⁠2

检查电脑不能只靠查找一个文件夹。响应人员应综合检查随包提供的解释器、代理脚本、启动项、原生载荷和进程历史。DeviceSync 的两个变体都会在 127.0.0.1:3660 打开本地健康检查侦听器,但单凭该侦听器无法作出诊断:调查人员必须确认它与暂存目录中的解释器有关联。网络连接同样需要结合进程路径、指纹和时间戳进行分析;仅有连接并不能证明命令已运行或数据已传输。⁠2

确认运行过后门的电脑必须与网络隔离。在工作或学校设备上,删除可能有助于查明事件经过的文件前,应先联系事件响应人员。组织还必须从共享、镜像、缓存和同步文件夹中撤下可疑安装程序和便携软件包。否则,同一个存储的软件包可能会在工作站清理后重新安装威胁。替换文件必须通过独立可信的发行版本进行验证,包括外层可执行文件。⁠2⁠13

使用最新的防病毒情报并进行全面扫描十分重要,但恢复工作必须处理 Python 软件包及其持久化机制,然后单独调查原生后门。如果无法确认设备完整性,微软建议使用可信映像重建系统。还需要评估可访问的凭据和会话;如果确认存在暴露风险,应从干净的系统撤销会话并更改受影响的凭据。应在监督下重启或重新登录,确认解释器、插件工作进程和命令连接不会再次出现,然后才能结束遏制工作。⁠2

受害者人数、恶意分发的时间范围以及上游文件被篡改的方法,均尚未确定。现有证据中没有经过核实的修复日期。后来下载的文件即使与已公布的哈希值匹配,也无法说明此前运行过什么。对于受到影响的用户,问题已不再只是 Q-Dir 或 DesktopOK 是否为正版,而是是否仍有其他东西能够访问这台电脑。⁠2⁠12

来源22

在此处引用的来源中,cyber.hendryadrian.com最先发布,比本报道播出早3天。 随后还有5家媒体发布。

4篇早期文章作为背景资料参阅。13家媒体未注明日期:ahnlab.combroadcom.comCIODailyBrief.comcsoonline.comcybersecuritynews.comcyfar.ca

按媒体查看所有来源

来自 22 家媒体的 23 个来源· 引用最多的优先

播出原貌
  1. Tampered SoftwareOK installers opened genuine Windows utilities while secretly installing remote-control malware.
  2. Uninstalling those utilities can leave the malware running. Some computers also received a second backdoor with its own connection to the attackers.
  3. How can users distinguish a genuine download from a compromised one, and find what an update may have left behind?
  4. Q-Dir is a Windows file manager with four folder views. DesktopOK saves and restores desktop-icon positions. Attackers reached users through SoftwareOK's official downloads and updates, exploiting the same route people normally use to keep legitimate software current.
  5. The installer supplied the expected application as cover. Meanwhile, it downloaded DeviceSync, a remote-access trojan written in Python. That gave operators a separate way into the computer while the utility appeared to work normally.
  6. Tampered copies include Q-Dir 12.83, 12.84 and 12.85, and DesktopOK 12.82 and 12.85. A genuine file also exists for each release. So the version number alone can't tell users which file they received.
  7. Some downloaded installers had fingerprints different from those posted on the official download page. Their extra code retrieved and ran components unrelated to the utility. But the genuine programs inside carried valid signatures from developer Nenad Hrg.
  8. The signature authenticates the embedded utility. It doesn't authenticate the surrounding installer or everything that installer downloads. Checking the installed Q-Dir program afterward can therefore produce a valid signature on a computer where the backdoor has already run.
  9. A tampered Q-Dir 12.83 download was later replaced by a clean file carrying the same version. A mirror keeps its stored copy until it replaces it. A change upstream doesn't automatically change the file already sitting on that mirror.
  10. An investigation was already under way by November 9. A reader reported infection after running Q-Dir on November 14. Those dates don't tell us when malicious distribution began, and the reader's original installer or later update could have delivered it.
  11. Tests of mirrored Q-Dir 12.84 files didn't reproduce that reader's infection, and those files scanned clean. The reader had already removed the infection, which didn't return. Different files sharing a release number explain how those results can coexist.
  12. An older, legitimate Q-Dir 12.77 installation retrieved a tampered update. Execution also followed a package-manager update to 12.83.0. One managed deployment ran silently, without another user prompt. Portable copies also ran from synchronized folders, repositories and file shares.
  13. Those systems could pass along a bad upstream package through their normal workflows. The same malicious binary appeared under installer, application and autoupdate filenames. A clean original download therefore can't rule out a backdoor introduced by a later update.
  14. Subscribe to this channel as we follow which downloads were affected and what recovery requires.
  15. The setup downloaded a legitimate 7-Zip extractor and an archive containing a 64-bit Python 3.9 runtime and backdoor scripts. Bringing its own interpreter let DeviceSync run even on computers where the owner had never installed Python.
  16. The installer copied itself into the public user profile and could open the genuine utility there. Setup could resume interrupted downloads, stop an older agent and replace it. A later package ran without a console window, using the same primary agent code.
  17. DeviceSync lived in its own ProgramData directory. A user startup entry or scheduled task relaunched the packaged interpreter at sign-in. Closing, replacing or uninstalling Q-Dir or DesktopOK leaves those separate startup mechanisms to be investigated and removed.
  18. The agent identified itself as VmBaseTool 5.17.6. It registered the operating system, account and computer names, local address and interpreter. A stored identifier let the server recognize the installation after a restart and issue further commands.
  19. The recovered code could run commands and additional Python, manipulate files, capture screenshots and relay traffic. The observed activity included system discovery, searches for installed AI software and deployment of another backdoor on some machines. Individual capabilities don't prove every function was used.
  20. Operators queried Windows, account groups and network settings. They searched for ToDesk after gaining the Python shell, then looked for Ollama, vLLM, LangChain, LlamaIndex and MLflow. Those searches show interest in installed software; they don't demonstrate theft of models or training data.
  21. The security-discovery function compared running processes against 1,206 names covering Korean and international security products. It sent identified products to the command server. Its job was to inventory those defenses, rather than disable them.
  22. Chinese-language comments and the construction of that list suggest a Chinese-speaking development or operating environment. They don't identify a nationality or state sponsor. The attack hasn't been attributed to a named group.
  23. Some devices received a native backdoor that maintained its own command connection over multiple days. Its plugin workers operated separately from Python's extensions. Deleting the DeviceSync directory alone would leave that second component to be found and removed.
  24. PowerShell launched winhost.exe from a temporary directory. Other payloads appeared in the public user folder. Their location matters because Windows also has a legitimate backgroundTaskHost.exe in System32. A familiar filename needs to be checked against its path and behavior.
  25. The native launchers loaded code into memory. Short-lived plugin workers exchanged commands and results with the parent through a local communication channel. One observed plugin used curl and nslookup to discover the computer's public internet address.
  26. Other workers repeatedly ran under the plugin-1009 group and opened those local channels. That activity doesn't reveal an additional purpose for that plugin. Responders need to examine the native processes alongside the Python installation, rather than treat either removal as complete recovery.
  27. The published set contains 18 distinct malicious utility fingerprints, including the original 17 and another DesktopOK file without an identified version. These count files. The number of affected users is still unknown, and the listed releases don't define the entire exposure window.
  28. To check a retained download, calculate the SHA-256 fingerprint of the original installer executable without launching it. SHA-256 is a content fingerprint. If the executable is inside a ZIP, extract it without running it; checking only the ZIP answers a different question.
  29. PowerShell can calculate that fingerprint with Get-FileHash. Compare the full result with the published genuine and malicious references. A known malicious match identifies the tampered file. A verified genuine match identifies that exact file, while an unmatched result still needs investigation.
  30. Even a genuine installer fingerprint says nothing about a later update or other activity on the computer. The same caution applies to later downloads matching posted hashes. That observation can't settle what ran earlier or whether an independent backdoor remains.
  31. Both DeviceSync variants opened a local health-check listener. Investigators must connect that listener to an interpreter in the staged DeviceSync directory. Network logs also need process paths, fingerprints and timestamps; a connection by itself doesn't prove a command ran or data moved.
  32. DeviceSync encrypted application messages, although its WebSocket transport lacked TLS. Its file and image transfers used base64 inside those encrypted messages. Responders should examine process-attributed connections and campaign destinations together, especially when a proxy hides which program made the original connection.
  33. Organizations need to withdraw suspect installers and portable copies from deployment shares, mirrors, caches and synchronized folders. Otherwise, a stored malicious package can reinfect a cleaned workstation. Replacement packages need validation against a separately trusted release, including the outer executable.
  34. A computer with confirmed backdoor execution needs network isolation. On a work or school device, involve incident responders before deleting files. Installer fingerprints, process histories and startup definitions help them determine what happened and how far it reached.
  35. Protection includes current antivirus intelligence, a full scan, cloud-delivered protection and tamper protection. Organizations can also restrict unapproved installers and portable interpreters, while testing legitimate workflows. Allowing Python alone doesn't control every script that a third-party Python host runs.
  36. Cleanup must remove the Python package and its startup mechanism, then address the native backdoor and plugin workers separately. A user startup check covers only that account. One missing indicator can't establish that the entire computer is clean.
  37. If responders can't establish device integrity, recovery requires rebuilding from a trusted image. They also need to assess accessible credentials and sessions. Where exposure is confirmed, revoke sessions and change affected credentials from a clean system, then review the related service activity.
  38. The distribution window and the method used to alter the upstream files remain unknown. There's no confirmed remediation date. Current download checks therefore need to stand on validated files, while previously exposed computers need their own investigation.
  39. Before ending containment, responders should supervise a restart or sign-in and check that interpreters, native workers and command connections don't return. Software distribution should resume only with validated replacement files.

译文更新于

讨论

此处的帖子属于“SoftwareOK Q-Dir and DesktopOK malware incident”,会显示在该新闻事件的每篇报道下。

近期播出