Skip to content

Threat Actors

AhnLab discloses trojanized Q-Dir and DesktopOK installers delivering Python remote-access trojan

AhnLab said Q-Dir versions 12.85.0.0, 12.84.0.0 and 12.83.0.0, and DesktopOK versions 12.85.0.0 and 12.82.0.0, were poisoned installers.

https://breach-signal.com/threat-actors/ahnlab-q-dir-desktopok-trojanized-installers/

Share

Key facts

  • South Korean cybersecurity company AhnLab disclosed that Q-Dir and DesktopOK installation files from the official SoftwareOK website were tampered with to deliver a Python-based RAT.
  • AhnLab said malicious files were generated both during direct downloads from the official download page and during updates of previously installed legitimate programs.
  • AhnLab confirmed Q-Dir versions 12.85.0.0, 12.84.0.0 and 12.83.0.0 as poisoned installers based on SHA-256 hash discrepancies and extra code that triggers downloads and automatic execution.
  • AhnLab confirmed DesktopOK versions 12.85.0.0 and 12.82.0.0 as poisoned installers based on SHA-256 hash discrepancies and extra code that triggers downloads and automatic execution.

AhnLab, a South Korean cybersecurity company, disclosed that Q-Dir and DesktopOK installation files from the official SoftwareOK website had been altered to deliver a Python-based remote-access trojan, software that lets an attacker control a compromised computer from elsewhere. Trojanized means bundled with hidden malicious code. The Hacker News reported the disclosure, which AhnLab framed as the initial reporting of a supply chain attack, and the malicious files appeared in direct downloads from the official page and during updates of previously installed legitimate programs, the company said.

The company identified Q-Dir installers numbered 12.85.0.0, 12.84.0.0 and 12.83.0.0 as poisoned, and DesktopOK installers numbered 12.85.0.0 and 12.82.0.0. The company based the findings on SHA-256 hash discrepancies, with SHA-256 a cryptographic hash used to verify that a file has not been altered, and on extra code inside the installers that triggers downloads and runs it automatically. How the installation files were replaced with trojanized versions remains unknown, AhnLab said.

A malicious installer opens the genuine Q-Dir or DesktopOK program so users see nothing wrong, then downloads and installs a Python remote-access trojan from a server outside the network, according to AhnLab. The unauthorized changes make malicious activity difficult to detect while the programs run, aiding stealth.

The attack downloads 7zr.exe, the legitimate 7-Zip tool used to decompress files, and dsv2_py39_agent.7z, a package containing the remote-access trojan and a Python runtime environment, from mail.c1a2[.]top, AhnLab said. The 7-Zip binary then extracts the package and executes the Python trojan. Python is a programming language, and the runtime environment lets the trojan run on the infected machine. These files serve as the attack’s payloads.

AhnLab said the trojan maintains persistence through a scheduled task, a Windows tool that runs programs automatically, that impersonates Microsoft Edge and runs a Python script named py_client_dsv2.py. Persistence means the malware remains active after a restart. Malware is malicious software. Windows is a PC operating system.

The malware contacts a command-and-control server at 8.210.69[.]51:9876 to receive and execute tasks, AhnLab said. This channel handles command and control. A command-and-control server is a computer attackers use to control infected machines.

Once installed, the payload can execute shell commands and Python code, transfer files and capture screenshots, AhnLab said. Shell commands are instructions sent to the operating system. It can also collect system metadata based on attacker commands. The attackers issue those tasks through the command-and-control server.

The trojan compares running processes against an internal list of security products used in South Korea and abroad, AhnLab said, an evasion step. Security products are antivirus and endpoint protection tools. The list includes AhnLab, ESTSecurity, Hauri, CrowdStrike, SentinelOne, Trend Micro, Avast, McAfee, ESET, Symantec, Kaspersky, Bitdefender, Sophos, Fortinet, Elastic and Malwarebytes.

It sends details about detected security programs to the command-and-control server so attackers can plan later stages or serve payloads that bypass detection.

AhnLab said it has not tied the activity to any known threat actor. The company also found Chinese language comments in the source code, suggesting the malware authors or attackers may have used a Chinese-speaking environment. The comments are an author origin hint.

The company described Q-Dir, also called Quad Directory Explorer, as a free lightweight Windows file manager developed by SoftwareOK. DesktopOK is a free Windows utility that saves and restores desktop icon positions, according to its website. SoftwareOK operates the official website.

AhnLab advised users of Q-Dir or DesktopOK, including anyone who recently installed or updated either program, to verify downloaded file hash values. The company also advised checking systems for remote-access trojan installation or execution traces. The advice is defender guidance for affected users.

The company advised looking for related files, scheduled tasks, unusual Python execution environments, traces of external network communication, antivirus engine updates and full system scans. “However, simply uninstalling and reinstalling the program may not remove a Python RAT that has already been installed.” — AhnLab.

Was this helpful?

Join the discussion

Please read our Comment Policy before commenting. First-time comments are held for moderation. By posting a comment you agree to our Terms of Use and Privacy Policy, which explain how your name, email address and comment are used.

Your email address will not be published. Required fields are marked *