🔒 Q-Dir and DesktopOK: official downloads carried a remote-access trojan
In brief
- 🔒 Tampered installers of Q-Dir and DesktopOK were served from the official SoftwareOK site.
- 🐍 They start the real program and quietly install a Python-based trojan in the background.
- 🧰 Affected: Q-Dir 12.83 to 12.85 and DesktopOK 12.82 and 12.85, also through updates.
- 🧹 Uninstalling is not enough, says AhnLab; a cleaned Q-Dir version is available.
🔒 The official download and update channels of the Windows programs Q-Dir and DesktopOK were compromised. According to the South Korean security centre AhnLab (ASEC), the site of developer Nenad Hrg, [SoftwareOK](https://www.softwareok.com/), served tampered installation files for a time. They launch the real, correctly signed program and install a Python-based remote-access trojan (RAT) alongside it. Affected are Q-Dir 12.83, 12.84 and 12.85 and DesktopOK 12.82 and 12.85, though not every package of these versions. Updates of programs that were already installed brought the trojan too. Anyone who installed or updated either tool recently should treat the PC as possibly compromised. 🧹
The find has a history: according to WinFuture, security researchers had already noticed in mid-November that tampered Q-Dir packages pulled in a trojan. ASEC then investigated and confirmed in a report dated 25 November that DesktopOK is affected as well. What alerted ASEC was that the SHA-256 hashes of some downloaded files did not match the values on the download page. How and where the files were swapped has not been established, ASEC says.
🧪 How the installer works: it contains the genuine program files, whose hash matches the published one and which carry the valid signature of Nenad Hrg. It starts them so that everything looks normal on screen. At the same time it fetches the legitimate unpacking tool 7zr.exe and a package with the trojan from an external server, unpacks it and by default places it under C:\ProgramData\Microsoft\DeviceSync\b2 (alternatively C:\ProgramData\DeviceSync\b2). The package brings its own Python runtime, so it runs even where Python is not installed. A scheduled task named \UPnp\MicrosoftEdge_dcntel keeps it alive across restarts.
🕵️ What the trojan can do: it runs shell commands and arbitrary Python code, transfers files in both directions, takes screenshots and collects system information. It compares running processes with a list of 1,206 names of security products, among them AhnLab V3, CrowdStrike Falcon, SentinelOne, Microsoft, Kaspersky, ESET and Trend Micro software, and reports the result to the attackers' server. They can use it to decide whether to continue or how to evade detection. Comments in the Python code and in the list are in Chinese; ASEC concludes only that the authors may come from a Chinese-speaking environment. No group is named.
🛠️ What affected users can do: ASEC advises uninstalling the program and reinstalling only the latest version verified as clean, first comparing the SHA-256 hash of the file with the one on the page. Because uninstalling does not remove the trojan, you should also look for unusual Python environments, the scheduled task and files named above, autostart entries in the registry and suspicious network connections, update your antivirus and run a full scan. If there are signs of infection, take the PC off the network and establish whether further malware ran or data left the machine. WinFuture reports that a cleaned Q-Dir version has been available since 1 December.
For developers and operators of download sites ASEC draws the lesson to verify signatures and hashes across the whole chain from build to delivery and to check regularly that the published values match the files actually served.