科技 · 遭入侵的安装程序
Q-Dir 和 DesktopOK 恶意软件可在卸载后继续残留
恶意安装程序混在 SoftwareOK 的官方分发渠道中,里面却藏着正版程序。相同版本也有干净文件,加上独立后门,意味着恢复工作不能止于卸载。
文字 阅读需 8 分钟 · 23 个来源
原语言视频
译自英文原文。
用户安装了看似普通的 SoftwareOK 工具后,一些 Windows 电脑上被发现存在两个独立的后门。被篡改的 Q-Dir 和 DesktopOK 下载文件会打开正版应用,同时秘密安装远程控制恶意软件;在一些机器上,攻击者随后又添加了另一个拥有独立命令连接的后门。卸载可见的工具并不会移除这些独立组件。这正是核心风险:一个程序可以运行得完全正常,但运行它的电脑却已遭到入侵。2
读者投票
这次攻击之后,软件发行商应优先采取哪项防护措施?
版本号几乎不能说明问题
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 或 DesktopOK。已记录的启动机制包括当前用户的 Run 注册表项 DeviceSyncUpdate_b2,以及计划任务 \UPnp\MicrosoftEdge_dcntel。它们会在用户登录时重新启动随包提供的解释器。后续一个软件包使用 pythonw.exe 在没有控制台窗口的情况下运行。关闭、替换或卸载该工具,都不会移除这项独立安装及其启动机制,仍需进一步调查。2
恢复出的代理程序能够执行命令和其他 Python 代码、操作文件、截取屏幕截图,并转发网络流量。微软观察到该程序会探查系统并搜索已安装软件,包括 ToDesk,以及 Ollama、vLLM、LangChain、LlamaIndex 和 MLflow 等 AI 或机器学习工具。这些搜索表明攻击者对系统中安装的软件感兴趣,但不能证明模型或训练数据遭到窃取。同样,在代码中发现某项能力,也不能证明它曾被使用。2
在一些设备上,PowerShell 启动了 C:\Temp\winhost.exe;其他载荷则出现在公用用户文件夹中。原生后门在多天内独立于 DeviceSync 维持命令连接,并启动短暂运行的插件工作进程。观察到的一个插件使用 curl 和 nslookup 查询电脑的公网地址。仅删除 Python 目录无法处理第二个组件。2
先检查文件,再检查电脑
检查电脑不能只靠查找一个文件夹。响应人员应综合检查随包提供的解释器、代理脚本、启动项、原生载荷和进程历史。DeviceSync 的两个变体都会在 127.0.0.1:3660 打开本地健康检查侦听器,但单凭该侦听器无法作出诊断:调查人员必须确认它与暂存目录中的解释器有关联。网络连接同样需要结合进程路径、指纹和时间戳进行分析;仅有连接并不能证明命令已运行或数据已传输。2
使用最新的防病毒情报并进行全面扫描十分重要,但恢复工作必须处理 Python 软件包及其持久化机制,然后单独调查原生后门。如果无法确认设备完整性,微软建议使用可信映像重建系统。还需要评估可访问的凭据和会话;如果确认存在暴露风险,应从干净的系统撤销会话并更改受影响的凭据。应在监督下重启或重新登录,确认解释器、插件工作进程和命令连接不会再次出现,然后才能结束遏制工作。2
来源22
按媒体查看所有来源
来自 22 家媒体的 23 个来源· 引用最多的优先
Aviatrixaviatrix.ai1
BleepingComputerbleepingcomputer.com1
CIODailyBrief.comciodailybrief.com1
cyber.hendryadrian.comhendryadrian.com1
cybersecuritynews.com1
播出原貌
- Tampered SoftwareOK installers opened genuine Windows utilities while secretly installing remote-control malware.
- Uninstalling those utilities can leave the malware running. Some computers also received a second backdoor with its own connection to the attackers.
- How can users distinguish a genuine download from a compromised one, and find what an update may have left behind?
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- Subscribe to this channel as we follow which downloads were affected and what recovery requires.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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”,会显示在该新闻事件的每篇报道下。





