Q-Dir and DesktopOK downloads on official SoftwareOK site carried Python malware

Q-Dir and DesktopOK downloads on official SoftwareOK site carried Python malware

Attackers tampered with Q-Dir and DesktopOK installers distributed through the official SoftwareOK website, according to AhnLab SEcurity intelligence Center (ASEC). The security team confirmed malicious files affecting five product versions, with evidence that existing users also encountered them through program updates.

The altered installers launched the real utilities while installing a Python-based remote access trojan, or RAT. The malware could give attackers control of infected Windows systems and access to files and screenshots.

ASEC confirmed tampering involving these versions:

  • Q-Dir: 12.85.0.0, 12.84.0.0 and 12.83.0.0
  • DesktopOK: 12.85.0.0 and 12.82.0.0

The researchers also warned users who installed or updated during the malicious distribution period, even if their versions differ. Logs showed malicious files being created during updates to previously legitimate installations.

Official downloads failed integrity checks

SoftwareOK distributes free Windows utilities, including Q-Dir, DesktopOK and WinScan2PDF. In this attack, the malicious files came through its official distribution channel, rather than advertising pages or unofficial download sites.

ASEC found that some downloaded installers had SHA-256 hashes that differed from those published on SoftwareOK’s download pages. A hash acts as a file fingerprint, allowing users to compare a download against the expected file.

Analysis revealed code that downloaded and automatically ran additional files, behavior unrelated to the utilities’ normal functions. ASEC published legitimate and malicious hashes in its report.

The malicious installers contained genuine Q-Dir or DesktopOK executables. Those embedded files matched the published hashes and carried a valid digital signature from developer Nenad Hrg.

When launched, an altered installer extracted and ran the genuine program from:

C:\Users\Public\[file name]

The utility therefore appeared to work normally while the malware installation proceeded separately.

Malware brought its own Python environment

The installer downloaded a legitimate 7-Zip extraction tool and a RAT archive from an external server:

Download addressPurpose
Hxxps://mail.c1a2[.]top/dl/7zr.exeLegitimate archive extraction tool
Hxxps://mail.c1a2[.]top/dl/dsv2_py39_agent.7zPython runtime and RAT package

The attackers used the extraction tool to unpack the malware. Its bundled runtime allowed the Python scripts to execute even when Python was not already installed.

The default installation directory was C:\ProgramData\Microsoft\DeviceSync\b2. If unavailable, the installer selected another location, such as C:\ProgramData\DeviceSync\b2.

A scheduled task named \UPnp\MicrosoftEdge_dcntel maintained persistence. It launched the RAT with this command:

“[Installation Path]\py39\pythonw.exe” “[Installation Path]\py39\agent\py_client_dsv2.py”

The RAT contacted the command-and-control server at 8.210.69[.]51:9876 to receive instructions. Its functions included shell commands, Python code execution, file transfers, screenshots, and operating system and system information collection.

These capabilities could support further malware installation or expose work files, account information and other sensitive data.

The RAT also compared running processes against 1,206 security-product process names. The list covered Korean and international antivirus and endpoint detection products, including AhnLab V3, ESTSecurity ALYac, CrowdStrike Falcon and SentinelOne.

It sent identified security products to the command server. ASEC said attackers could use that information to assess defenses, choose follow-up attacks or evade detection.

Chinese-language comments and entries in the security-product list suggested a possible connection to a Chinese-speaking environment. That evidence did not establish who carried out the attack.

ASEC said the cause and method of replacing the legitimate installers remained unidentified.

Reinstalling the utility may leave the RAT behind

ASEC advised current Q-Dir and DesktopOK users to uninstall their existing copies and reinstall a latest version verified as safe. Before reinstalling, users should compare the downloaded file’s SHA-256 hash with the value on the official download page.

Removing the utility alone may not remove an already installed RAT, the researchers warned. They recommended checking for suspicious Python environments, scheduled tasks, related files and external network connections.

Users should also update their antivirus engine and run a full system scan. If infection indicators are confirmed, ASEC advised isolating the system from the network and assessing the compromise, including possible additional malware or data leaks.

For software distributors, ASEC recommended code signing and hash checks from build through deployment. It also urged regular checks that published hashes match delivered downloads, alongside monitoring for unusual file changes and download requests.

Source: asec.ahnlab.com

Got Something To Say?

Your email address will not be published.