Trojanized Q-Dir and DesktopOK installers deliver Python RAT
Attackers tampered with official installers for Q-Dir and DesktopOK to deploy a remote access trojan. The malware uses legitimate tools to hide and persists via scheduled tasks.
Cybersecurity researchers at AhnLab have identified a supply chain attack targeting two popular Windows utilities, Q-Dir and DesktopOK. The malicious activity involves trojanized installation files distributed through the official SoftwareOK website, affecting users who downloaded or updated these programs recently. This incident highlights the risks inherent in trusting third-party desktop tools without rigorous verification.
What happened
The compromise affects specific versions of Q-Dir, a lightweight file manager, and DesktopOK, a utility for saving desktop icon layouts. AhnLab confirmed that the malicious files were not only available on the download page but were also pushed during the automatic update process for previously installed legitimate copies. This dual vector increases the likelihood of infection, as users often trust auto-updaters implicitly. The affected versions include Q-Dir 12.83.0.0, 12.84.0.0, and 12.85.0.0, as well as DesktopOK 12.82.0.0 and 12.85.0.0.
The exact method used to inject the malicious code into the official distribution channel remains unknown. However, the impact is clear: the modified installers contain additional code that triggers the download and execution of external payloads. Discrepancies in the SHA-256 hashes of these installer files confirm they differ from the clean versions originally released by the developer. Users who installed or updated to these specific versions are at risk of having a remote access trojan (RAT) deployed on their systems.
How it works
The attack chain relies on social engineering and legitimate system tools to evade detection. When a user runs the trojanized installer, it launches the genuine Q-Dir or DesktopOK application to maintain the appearance of normal operation. Simultaneously, it connects to an external server at "mail.c1a2[.]top" to download two specific files. The first is "7zr.exe," a legitimate command-line version of the 7-Zip archiver. The second is "dsv2_py39_agent.7z," an archive containing a Python runtime environment and the malicious agent.
The malware uses the downloaded 7-Zip binary to extract and execute the Python-based RAT. To ensure persistence, the attacker creates a scheduled task that mimics Microsoft Edge, launching a script named "py_client_dsv2.py." This disguise helps the malicious process blend in with standard system activity. Once active, the RAT connects to a command-and-control server at "8.210.69[.]51:9876" to receive instructions. It can execute shell commands, run Python code, transfer files, capture screenshots, and harvest system metadata. Notably, the malware scans for security products from vendors like CrowdStrike, SentinelOne, and Kaspersky, reporting them back to the attacker to tailor subsequent evasion tactics.
Key details
- Affected software includes Q-Dir versions 12.83.0.0, 12.84.0.0, 12.85.0.0 and DesktopOK versions 12.82.0.0, 12.85.0.0.
- The malware downloads a legitimate 7-Zip binary and a Python RAT package from "mail.c1a2[.]top".
- Persistence is achieved via a scheduled task impersonating Microsoft Edge to execute "py_client_dsv2.py".
- The RAT communicates with a C2 server at "8.210.69[.]51:9876" for command execution and data exfiltration.
- Chinese language comments in the source code suggest the attackers may operate in a Chinese-speaking environment.
- Uninstalling the compromised application does not remove the RAT, which installs independently as a Python environment.
Why it matters
This incident underscores the vulnerability of small, free utility software to supply chain attacks. Developers and IT leads often overlook these tools in security audits because they are not critical infrastructure, yet they run with user privileges and have broad system access. When such tools are compromised at the distribution level, every user becomes a potential entry point for deeper network infiltration. The use of legitimate tools like 7-Zip and the impersonation of Microsoft Edge demonstrate how attackers leverage trusted binaries to bypass traditional signature-based detection.
For engineering teams, this serves as a reminder that software integrity checks must extend beyond major enterprise applications. The presence of Chinese comments in the code provides a clue about the origin, but the lack of attribution to a known threat actor suggests this could be a opportunistic campaign rather than a targeted advanced persistent threat. Regardless of intent, the capability to execute arbitrary Python code and exfiltrate data makes this a severe risk for any organization allowing unvetted freeware on corporate devices.
What you can do
- Verify the SHA-256 hashes of any Q-Dir or DesktopOK installers against known good values before execution.
- Check for suspicious scheduled tasks that impersonate Microsoft Edge or reference "py_client_dsv2.py".
- Scan systems for unauthorized Python environments or scripts running from temporary directories.
- Monitor outbound network traffic for connections to "mail.c1a2[.]top" or the IP "8.210.69[.]51".
- Update antivirus engines to the latest definitions to detect the specific RAT signatures identified by AhnLab.
- Consider restricting the installation of unsigned or non-enterprise-approved utilities on managed workstations.



