Startups & Business

Malicious Python RAT targets Q-Dir and DesktopOK installers

Trojanized installers for Q-Dir and DesktopOK utilities on the SoftwareOK website contain Python-based remote access malware. The malware uses legitimate digital certificates to bypass security and targets 1,206 specific antivirus and EDR processes to avoid detection.

Malicious Python RAT targets Q-Dir and DesktopOK installers

Malicious installers targeting IT professionals

AhnLab’s Security Intelligence Center (ASEC) confirmed that trojanized installers for the Q-Dir and DesktopOK Windows utilities contain Python-based remote access malware. These installers reside on the SoftwareOK website where Nenad Hrg distributes his tools to IT professionals. Q-Dir acts as a file manager alternative to Windows File Explorer, while DesktopOK functions as a tool for saving desktop icons during monitor or resolution changes. The malicious files use a certificate issued to the legitimate developer to pass security checks. I find the fact that these installers affect both new downloads and the update process for existing installations to be the most dangerous aspect of this supply chain attack. Because the malicious installers are digitally signed, they can bypass many common security hurdles.

Python RAT detection and persistence

The Python RAT registers a scheduled task to maintain persistence on infected devices. ASEC researchers state that removing the trojanized versions of Q-Dir and DesktopOK does not ensure the elimination of the Python RAT. Users must instead search for suspicious Python execution environments and scheduled tasks along with traces of external network communication. AhnLab could not identify the timeframe for the malicious distribution or how the installers were replaced. Users who recently installed or updated either tool should treat their systems as potentially compromised, regardless of the specific version they use.

The malware collects system information and targets specific security software. AhnLab researchers report that the malware contains a list of 1,206 processes matching various antivirus and endpoint detection and response (EDR) tools, such as:

Security Software
AhnLab V3, CrowdStrike Falcon, SentinelOne, Trend Micro, Avast, McAfee, ESET, Symantec, Kaspersky, Bitdefender, Sophos, Fortinet, Elastic Security, Malwarebytes, FireEye

The malware relays this information to the command and control server to help operators plan actions without being detected by the many security products currently installed on the target machine. I would point out that the malware’s ability to identify 1,206 specific security processes allows attackers to refine their approach to bypass the exact tools protecting a specific device. The malicious software supports shell command and Python code execution, file transfer, and screenshots.

Version Software
12.83.0.0, 12.84.0.0, 12.85.0.0 Q-Dir
12.82.0.0, 12.85.0.0 DesktopOK

I recommend that users check their downloads against the SHA-256 hashes published on the official SoftwareOK download page. Users should also look for any traces of unexpected network communication.