Supply Chain Attack Trojanizes Official Q-Dir and DesktopOK Installers to Deploy Python RAT

Cybersecurity researchers have uncovered a software supply chain attack that compromised installation files for Q-Dir and DesktopOK on the official SoftwareOK website. Malicious versions were delivered both during direct downloads and through the legitimate update process of previously installed software. The trojanized installers execute the real applications to avoid suspicion while silently fetching a Python-based remote access Trojan from an external server. The RAT supports shell command execution, Python code execution, file transfers, screenshot capture, and system information collection, with persistence achieved via a scheduled task mimicking Microsoft Edge. Affected versions include Q-Dir 12.85.0.0, 12.84.0.0, 12.83.0.0 and DesktopOK 12.85.0.0, 12.82.0.0. AhnLab noted Chinese-language comments in the code but has not attributed the activity to any known threat actor. Users are advised to verify file hashes and scan for suspicious Python environments and scheduled tasks.

The Hacker NewsTranslated from English

Read at source

Cybersecurity researchers have disclosed details of a software supply chain attack that has tampered with Q-Dir and DesktopOK installation files distributed via the official SoftwareOK website.

Evidence indicates that malicious files were generated not only when users downloaded the programs directly from the official download page but also during the update process of previously installed legitimate programs, AhnLab said.

Q-Dir, also called the Quad Directory Explorer, is a free, lightweight file manager for Windows developed by SoftwareOK. DesktopOK is a free Windows utility designed to save and restore desktop icon positions.

The unauthorized modifications are designed such that the malicious activity is challenging to detect when running the programs, while simultaneously retrieving and deploying a Python-based remote control malware (RAT) from an external server. Once installed, the RAT payload is capable of executing shell commands and Python code, transferring files, capturing screenshots, and collecting system metadata based on commands issued by the attacker.

The following product versions have been confirmed to be poisoned, given the discrepancies in the SHA-256 hashes of the installer files and the presence of additional code that triggers additional file downloads and automatic execution:

  • Q-Dir 12.85.0.0
  • Q-Dir 12.84.0.0
  • Q-Dir 12.83.0.0
  • DesktopOK 12.85.0.0
  • DesktopOK 12.82.0.0

The exact mechanism that allowed the installation files to be replaced with a trojanized version remains unknown. The malicious installer runs the legitimate Q-Dir or DesktopOK to lower the user's suspicion, while simultaneously downloading and installing a Python RAT package from an external server. Specifically, this involves downloading two payloads: 7zr.exe, the legitimate 7-Zip tool to decompress files, and dsv2_py39_agent.7z, a package containing the RAT and Python runtime environment.

The attack chain is fairly straightforward in that it uses the 7-Zip tool binary to extract and run the Python RAT. The malware then sets up persistence on the host by means of a scheduled task that impersonates Microsoft Edge to fly under the radar. The task is configured to execute the RAT by launching a Python script named py_client_dsv2.py.

Upon execution, the RAT establishes communication with its command-and-control (C2) server to receive tasks and run them. It supports shell command execution, Python code execution, file upload and download, screenshot capture, and operating system and system information collection. It also gathers a list of running processes and compares it against an internal list of various security products used in South Korea and abroad, including AhnLab, ESTSecurity, Hauri, CrowdStrike, SentinelOne, Trend Micro, Avast, McAfee, ESET, Symantec, Kaspersky, Bitdefender, Sophos, Fortinet, Elastic, and Malwarebytes.

Information about identified security programs is transmitted to the C2 server, so as to help the attackers better plan the next stages of the attack or serve payloads that can bypass detection. The activity has not been attributed to any known threat actor. However, AhnLab said it identified Chinese language comments in the source code, suggesting that the malware authors or attackers may have used a Chinese-speaking environment.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in Supply Chain & OSS

Critical RubyGems.org Flaw Allowed Attacker-Controlled Regex in Gem Metadata Leading to Potential RCE
Q-Dir and DesktopOK Utilities Compromised to Deliver Python RAT via Official Channels
SAP Confirms Security Incident After Attackers Breach GitHub Environment and Modify Source Code