Skip to content

Response, New York. Noah Park: Check Point Patches Actively Exploited Management Server Path Traversal. Detection, Dallas. Ava Okello: Report Finds Nearly Half of Deployed Detections Need Attention Before SOCs Can Trust Them.

SOCtember

Always First. Fast SOC News.

An AhnLab ASEC flowchart showing a user downloading, or an installed app updating to, a malicious Q-Dir or DesktopOK installer from softwareok.com that drops and runs the legitimate app, downloads dsv2_py39_agent.7z and 7zr.exe from mail.c1a2 dot top, extracts a Python runtime and py_client_dsv2.py, and connects to a command server at 8.210.69.51 on port 9876.
Image: AhnLab ASEC (fair use), the attack flow of the trojanized SoftwareOK installers.

Threat Intel

AhnLab Says the Official SoftwareOK Site Served Trojanized Q-Dir and DesktopOK Installers, Some Through the Apps' Own Updates, That Plant a Python RAT Reinstalling Will Not Remove

The tampered installers run the genuine, validly signed programs so users see nothing wrong, then pull a bundled Python runtime and a remote access trojan that hides behind a scheduled task named like Microsoft Edge and checks the host against 1,206 security-product process names. AhnLab has not found how the files were swapped, so any machine that installed or updated the two utilities recently needs a hunt, not just a reinstall.

Priya Shah, Threat IntelSingapore6 min read

SINGAPORE - Two free Windows utilities were turned into a delivery channel for a remote access trojan, and the trojanized copies came from the place users are told to trust: the developer's own website and, in some cases, the programs' own update process.

AhnLab's security intelligence center, ASEC, said in a report released this week that some installation files for the Q-Dir file manager and DesktopOK, a tool that saves and restores desktop icon layouts, had been tampered with on the official SoftwareOK download site. Versions confirmed as replaced so far are Q-Dir 12.85.0.0, 12.84.0.0 and 12.83.0.0 and DesktopOK 12.85.0.0 and 12.82.0.0. ASEC said it had not identified how the legitimate files were replaced.

The detail that matters most for defenders is the second delivery path. ASEC said it found logs showing malicious files being created during the update process of copies that were already installed, so a user who never went back to the website may still be affected. It also warned that people who installed or updated the programs during the distribution period should not assume they are safe just because their version is not on the list.

A genuine app on top, a RAT underneath

The tampered installers were caught the old-fashioned way. At the time of analysis, ASEC said, the SHA-256 hashes of some files downloaded from SoftwareOK did not match the hashes posted on the download pages, and the files contained code to download and run additional files that had nothing to do with either program.

A pair of AhnLab ASEC screenshots of the official SoftwareOK download pages for Q-Dir 12.85 and DesktopOK, with the installer files and their posted VirusTotal SHA-256 values highlighted in red.
Image: AhnLab ASEC (fair use), the SoftwareOK download pages and their posted hash values.

Inside each malicious installer sits the real program. ASEC said the embedded Q-Dir and DesktopOK executables matched the published hashes and carried a valid digital signature from the developer, Nenad Hrg. The installer writes the genuine program to C:\Users\Public and runs it, so the application opens normally on screen.

In the background it fetches two files from mail.c1a2[.]top: 7zr.exe, the legitimate standalone 7-Zip extractor, and dsv2_py39_agent.7z, a package that holds a Python runtime and the RAT. The package is unpacked to C:\ProgramData\Microsoft\DeviceSync\b2, or to C:\ProgramData\DeviceSync\b2 if the first path is unavailable. Because the runtime is bundled, the malware runs on machines with no Python installed.

An AhnLab ASEC screenshot of the dsv2_py39_agent.7z archive opened in an archive tool, showing a py39 folder with agent and Lib subfolders and files including py_client_dsv2.py and openh264-2.6.0-win64.dll.
Image: AhnLab ASEC (fair use), the Python RAT package downloaded by the tampered installers.

Persistence, control and a census of defenses

Persistence comes from a scheduled task named \UPnp\MicrosoftEdge_dcntel, which runs pythonw.exe from the install path against py_client_dsv2.py. The RAT talks to a command server at 8.210.69[.]51 on port 9876 and, according to ASEC, can run shell commands and Python code, upload and download files, capture screenshots and collect operating system details.

It also takes stock of the defenses. The RAT compares running processes against an internal list of 1,206 process names for Korean and international antivirus and EDR products, including AhnLab V3, ESTsecurity ALYac, CrowdStrike Falcon, SentinelOne, ESET, Kaspersky, Sophos and Elastic Security, and sends what it finds to the command server. ASEC said that lets the operators judge the security posture of a victim, decide whether to go further and work around the products in place.

An AhnLab ASEC screenshot of part of the RAT's embedded list of security-product process names with Chinese-language labels, with the entry for AhnLab V3's v3svc.exe highlighted.
Image: AhnLab ASEC (fair use), part of the RAT's list of 1,206 security-product process names.

ASEC did not attribute the campaign. It said Chinese-language comments in the Python code and in the product list suggest the developers or operators may be associated with a Chinese-speaking environment.

What to hunt

ASEC's guidance is blunt on one point: uninstalling and reinstalling Q-Dir or DesktopOK may not remove a RAT that is already installed. Security teams with either tool in their estate should treat recent installs and updates as a possible compromise and look for:

  • The folder C:\ProgramData\Microsoft\DeviceSync\b2 or C:\ProgramData\DeviceSync\b2, and any py39 directory containing pythonw.exe and agent\py_client_dsv2.py.
  • A scheduled task at \UPnp\MicrosoftEdge_dcntel, or any task whose name imitates Edge but launches pythonw.exe.
  • 7zr.exe appearing shortly after a Q-Dir or DesktopOK install or update, and copies of either program running from C:\Users\Public.
  • DNS or proxy traffic to mail.c1a2[.]top and outbound connections to 8.210.69[.]51 on TCP port 9876.
  • Installer files whose SHA-256 does not match the value on the SoftwareOK download page, using the hashes ASEC published.

Hosts with any of those traces should be isolated, ASEC said, and assessed for follow-on malware and data loss, since the operators had screen and file access. For software publishers the lesson is the one ASEC closes with: verify signatures and hashes across the whole path from build to download, and check regularly that the files users actually receive still match what the download page says.

About the Author

Priya Shah

Priya Shah covers threat intelligence, intrusion analysis, and adversary tradecraft for SOCtember from Singapore.

Related stories

Threat Intel desk