Microsoft found attackers deploying a second Windows backdoor on systems compromised through tampered Q-Dir and DesktopOK installers.
Microsoft has uncovered a second-stage Windows backdoor in a supply-chain attack involving Q-Dir and DesktopOK, two utilities distributed through SoftwareOK’s official download and update channels. The discovery indicates that attackers extended access beyond the initial Python-based remote access trojan (RAT), deploying a separate implant with its own command-and-control infrastructure and support for executing native plugins.
In an investigation published December 2, Microsoft Threat Intelligence said attackers had tampered with installers and updaters for the two applications, using them to deliver a Python-based malware implant called DeviceSync. On some compromised devices, operators subsequently deployed a native backdoor that could communicate independently with its command server and execute additional modules.
Microsoft also found that the Python RAT was used for system discovery, including searches for installed artificial intelligence and machine-learning software. The findings add another dimension to the compromise, which initially came to light in November after researchers identified malicious installers distributed through SoftwareOK’s official website.
The investigation highlights how a compromise involving seemingly routine software utilities can give attackers persistent access to Windows endpoints, even when the affected application is subsequently removed.
Two malware stages, separate communication channels
The initial infection involved trojanized installers for Q-Dir, a Windows file manager, and DesktopOK, a utility that saves and restores desktop icon layouts. The malicious packages launched the legitimate applications to avoid attracting suspicion while installing a separate Python runtime and the DeviceSync RAT.
Microsoft observed the malware being delivered through several routes, including package-manager updates, an updater associated with existing Q-Dir installations, and portable copies stored in synchronized folders, software repositories and file shares.
The installers placed the Python runtime and associated scripts under C:\ProgramData\Microsoft\DeviceSync\b2. Bundling a Python interpreter allowed the malware to run without depending on a Python installation already present on the affected machine.
The RAT established persistence through a Windows registry Run entry named DeviceSyncUpdate_b2 and a scheduled task named \UPnp\MicrosoftEdge_dcntel. These mechanisms allowed the malware to restart when users signed in to Windows.
Microsoft’s analysis found that the RAT could execute shell commands, run additional Python code, transfer files, capture screenshots and establish network relays. Its operators used it for system discovery and to launch further malware.
The second-stage activity involved a separate executable, winhost.exe, which Microsoft observed being launched through PowerShell from C:\Temp. The executable connected to an external server at 8.210.203[.]136 over port 443.
Unlike the Python RAT, the native backdoor maintained its own command-and-control connection. This gave operators another means of communicating with compromised devices rather than relying exclusively on the original Python agent.
Microsoft found that the backdoor could delegate plugin execution to a separate worker process. The main process launched workers with names beginning KKKD.PluginHost, passing modules and commands through a Windows named pipe, a mechanism for communication between local processes.
The worker implemented a loader capable of mapping Windows executable modules into memory, resolving their dependencies and invoking their plugin execution functions. This architecture allowed the backdoor to execute native modules within a separate process.
Microsoft also identified activity involving backgroundTask.exe, another executable associated with the later-stage backdoor infrastructure.
The company did not establish that every device infected through the SoftwareOK installers received the second backdoor. Its findings specifically identify the additional deployment on some compromised systems.
Attackers searched for AI and machine-learning software
Another notable finding was the Python RAT’s use for reconnaissance involving AI and machine-learning software.
Microsoft said its investigation identified searches for AI and ML software on compromised systems. This suggests that attackers were attempting to understand the software environments available on affected endpoints and identify systems that might be of interest for further activity.
However, Microsoft did not establish that the attackers specifically targeted AI models, stole model weights or accessed enterprise AI infrastructure. The observed searches should therefore be treated as reconnaissance rather than evidence of an AI-focused attack.
For organizations running AI development environments on employee workstations or development systems, the finding reinforces the importance of treating compromised endpoints as potential entry points into broader technology environments.
The RAT’s ability to collect system information and execute commands also means that the initial infection could provide attackers with visibility into the software and security tools running on an affected machine.
Removing the application does not remove the malware
Microsoft warned that uninstalling Q-Dir or DesktopOK is not sufficient to clean an infected device. The malware establishes persistence independently of the legitimate applications, allowing its components to continue running after the original utility has been removed.
The company advised organizations to remove affected installers from software deployment locations, isolate devices on which the backdoor executed, and investigate the Python RAT and native backdoor separately.
IT and security teams should also examine Windows startup registry entries, scheduled tasks, process execution histories and network connections for evidence of persistence and command-and-control activity.
An additional concern is the distribution of compromised packages through enterprise software management systems and shared repositories. Even after an endpoint has been cleaned, an organization could reintroduce the malware if a tampered installer remains available in an internal deployment location.
Microsoft recommended validating replacement packages before restoring software distribution and checking the integrity of the actual installer rather than relying solely on the digital signature of the legitimate application embedded within it.
The company has not attributed the campaign to a named threat actor, and its findings do not establish the precise mechanism through which the SoftwareOK installers and updaters were tampered with.
The investigation, based on activity observed from November 9, provides further evidence of how attackers can turn trusted software distribution channels into a route for deploying persistent malware across Windows environments.