Nora
Blake

Q-Dir and DesktopOK Supply Chain Attack Delivers a Persistent Python RAT

Nora Blake

Nov 30, 2026

7 min read

Q-Dir and DesktopOK Supply Chain Attack Delivers a Persistent Python RAT

TL;DR

The Q-Dir and DesktopOK supply chain attack used tampered installers to launch legitimate utilities while separately deploying a persistent Python-based remote access trojan (RAT).

  • AhnLab confirmed that malicious installers reached users through SoftwareOK’s official website and existing applications’ update processes.
  • The RAT bundles its own Python runtime, executes commands, transfers files, captures screenshots and identifies security products running on infected systems.
  • Removing the original utilities alone may not eliminate the RAT. Organizations should verify installer hashes and investigate potentially affected endpoints.

How did the Q-Dir and DesktopOK supply chain attack reach Windows users?

The Q-Dir and DesktopOK supply chain attack involved tampered Windows installation files distributed through SoftwareOK’s official channel. AhnLab’s Security Intelligence Center (ASEC) confirmed that these files delivered a Python-based remote access trojan (RAT) through both direct downloads and update processes initiated by existing installations. Researchers have not identified how attackers replaced the legitimate installation files.

Q-Dir is a Windows file manager, while DesktopOK saves and restores desktop icon positions. Both utilities are distributed through SoftwareOK’s official website.

AhnLab identified the following affected releases in its November 26, 2026 investigation:

Product  Affected versions 
Q-Dir  12.83.0.0, 12.84.0.0, 12.85.0.0 
DesktopOK  12.82.0.0, 12.85.0.0 

Not every installer associated with these version numbers was malicious. AhnLab published SHA-256 hashes for legitimate and tampered files to help users distinguish between them.

The compromise also affected existing installations. Researchers found evidence that malicious files were generated during updates initiated by previously installed legitimate applications. Therefore, a displayed application version alone cannot establish whether a device was affected.

How did the trojanized installers deploy the Python RAT?

The malicious installers launch genuine Q-Dir or DesktopOK executables as decoys while independently downloading and installing the Python RAT.

AhnLab verified that the legitimate executables embedded within the malicious installers matched the SHA-256 hashes published on SoftwareOK’s download pages. They also carried valid digital signatures from developer Nenad Hrg.

When executed, the installer extracts and launches the legitimate utility from C:\Users\Public\. The application appears to function normally while the installer performs additional actions in the background.

Meanwhile, the malicious installer contacts an external server and downloads two components:

Component  Purpose 
7zr.exe Legitimate 7-Zip utility used to extract the downloaded archive. 
dsv2_py39_agent.7z Archive containing a Python runtime environment and the RAT payload. 

Both components originate from mail.c1a2[.]top.

The extracted package is installed under C:\ProgramData\Microsoft\DeviceSync\b2. If that location is unavailable, the malware uses C:\ProgramData\DeviceSync\b2 instead.

The archive includes its own Python runtime. Consequently, the RAT can execute Python scripts without requiring a separate Python installation on the compromised system.

The malware establishes persistence through a scheduled task named \UPnp\MicrosoftEdge_dcntel. This task launches pythonw.exe, which executes the RAT script py_client_dsv2.py.

The malware communicates with its command-and-control (C2) server at 8.210.69[.]51:9876, allowing the operator to remotely control the infected system and execute commands.

What can the Python RAT do after installation?

The Python RAT supports remote command execution, file transfers, screenshot capture and system reconnaissance, giving attackers several ways to interact with infected endpoints.

According to AhnLab, its confirmed capabilities include:

  • Remote command execution: Executes shell commands and Python code received from the attacker.
  • File transfers: Uploads and downloads files between the infected endpoint and remote operator.
  • Screenshot capture: Captures the user’s screen remotely.
  • System reconnaissance: Collects operating system and other system information.

The RAT also performs security-product reconnaissance. It compares running process names against an internal list containing 1,206 process names associated with antivirus and endpoint detection and response products. These include products from CrowdStrike, SentinelOne, Trend Micro, ESET, Kaspersky, Sophos and Malwarebytes.

The malware sends information about identified security products to its C2 server. Attackers can use these findings to assess the endpoint’s security environment and potentially adjust subsequent activities to avoid detection.

However, these capabilities do not establish that attackers successfully stole credentials or exfiltrated corporate data during the observed campaign. AhnLab confirms the RAT’s capabilities but does not report specific data-theft incidents.

How does the Q-Dir and DesktopOK supply chain attack affect enterprise endpoints?

The Q-Dir and DesktopOK compromise demonstrates that an official software distribution channel does not, by itself, establish installer integrity. Organizations should include smaller third-party applications in their software integrity checks and endpoint security reviews.

The incident creates three important challenges for enterprise IT teams:

  • Uncertain exposure: Malicious files reached users through both direct downloads and existing applications’ update processes. Consequently, reviewing installation history is important even when users did not download a fresh installer.
  • Limited version-based identification: A displayed application version alone cannot distinguish every legitimate installer from its malicious counterpart. Comparing the downloaded file’s SHA-256 hash against a trusted, known-good reference hash provides a reliable way to verify whether the file matches the legitimate installer.
  • Independent malware persistence: The Python RAT operates separately from the original utilities. Removing Q-Dir or DesktopOK alone may not eliminate its Python environment, malicious scripts or scheduled task.

Organizations managing large Windows fleets should therefore identify potentially affected devices and investigate their execution history rather than relying exclusively on application inventories or version checks.

How can Hexnode UEM and XDR support investigation of this compromise?

Hexnode XDR can support investigations into suspicious process and network activity, while Hexnode UEM provides application visibility and custom administrative scripting on compatible enrolled Windows endpoints.

Process investigation and response using Hexnode XDR

Hexnode XDR supports Windows and macOS endpoints. Its threat investigation capabilities provide process metadata, command-line information, file paths, cryptographic hashes and parent-child process relationships. Security teams can use this information to investigate suspicious execution involving unexpected Python processes, unfamiliar executables and unusual process relationships.

The XDR Alert Profiles feature also supports alerts for Process Creation and Network Connection events, helping administrators monitor relevant endpoint activity.

When an investigation identifies a threat, documented response actions include terminating individual processes or process trees, quarantining files and isolating endpoints. These capabilities can support containment and further investigation.

However, Hexnode XDR does not claim specific detection coverage for this Python RAT. Its capabilities should not be interpreted as a guarantee that every affected installer or infected endpoint will be identified.

Hexnode UEM for application visibility and administrative checks

Hexnode UEM provides application visibility through the Applications tab under device details. Administrators can review installed applications on managed Windows endpoints, including application names and versions. On personally owned devices, only applications installed through Hexnode UEM are displayed.

Additionally, Hexnode UEM supports custom PowerShell script execution on compatible Windows devices. Administrators can deploy scripts to retrieve installed application information and perform supported administrative operations.

Hexnode supports custom scripting for Windows 10 (version 1709 or later) and Windows 11 devices that administrators enroll through the Hexnode Installer app (as of November 2026).

This capability can support administrative information collection during a coordinated investigation. However, custom script execution is not native malware detection or automatic RAT removal. Similarly, UEM application management should not be mistaken for antivirus or behavioral threat detection.

Windows_thumbnail

Simplify Windows Endpoint Management with Hexnode UEM

Explore endpoint management capabilities that help organizations maintain visibility and control across their Windows device fleets.

Download the infographic

What should organizations do if they installed Q-Dir or DesktopOK recently?

Organizations should treat systems that recently installed or updated either utility as potentially compromised, even when their displayed application versions do not appear in the affected-version list.

Recommended actions include:

  • Verify installer integrity: Calculate the SHA-256 hash of downloaded installers and compare it with the legitimate hash published on the official Q-Dir or DesktopOK download page.
  • Review affected endpoints: Identify devices where either utility was recently installed or updated. Do not rely exclusively on displayed application versions.
  • Investigate persistence: Examine scheduled tasks, particularly \UPnp\MicrosoftEdge_dcntel. Look for unexpected Python execution environments, pythonw.exe processes and associated RAT files.
  • Check network activity: Investigate communication with the reported C2 address and download domain.
  • Contain confirmed infections: Isolate devices after confirming indicators of infection. Preserve relevant forensic evidence and investigate whether the attackers executed additional malware or exposed data.
  • Complete remediation and recovery: Removing and reinstalling Q-Dir or DesktopOK alone may not eliminate an already-installed RAT. AhnLab recommends reinstalling a verified-safe version after checking its hash, updating antivirus engines and performing full system scans. Investigate associated Python environments, scheduled tasks, malicious files and external network connections separately.

Conclusion

The Q-Dir and DesktopOK supply chain attack demonstrates how trusted software distribution can conceal a separate malware installation. Attackers used genuine, signed utilities as decoys while installing a Python RAT with its own runtime and scheduled-task persistence. The RAT may remain on the system even after users remove the original application.

For enterprise IT teams, verifying software integrity and investigating unexpected endpoint activity are essential to responding to this compromise. Hexnode UEM and XDR can support application visibility, endpoint investigation and response on compatible managed devices, but organizations must still perform complete malware investigation and remediation.

Share

Nora Blake

I write at the intersection of technology, process, and people, focusing on explaining complex products with clarity. I break down tools, systems, and workflows without any noise, jargon, or the hype.