Trojanized Q-Dir and DesktopOK updates deliver DeviceSync backdoors

src-279976eb

Microsoft Threat Intelligence has investigated a software supply chain compromise involving Q-Dir and DesktopOK, two Windows utilities developed by SoftwareOK. As of November 9, 2026, Microsoft had identified tampered installers and updaters distributed through the vendor’s official download and update channel. The packages launched the expected applications while silently installing a Python-based remote access trojan (RAT) known as DeviceSync.

The activity illustrates why a familiar product name, trusted update routine, or publisher signature on an embedded application is not enough to validate an installer’s full contents. Microsoft said it had not attributed the campaign to a named threat actor. The specific upstream mechanism used to modify the packages also remains unconfirmed; the observations do not establish separate compromises of package managers, deployment services, or storage providers.

How the compromised packages reached devices

Microsoft observed execution after a package-manager update to Q-Dir 12.83.0, as well as an older Q-Dir installation launching an updater that retrieved a tampered build. Portable copies also ran from synchronized folders, repositories, and file shares. The same altered Q-Dir binary appeared under different names, including Q-Dir_Installer_x64.exe, Q-Dir.exe, and Q-Dir_Autoupdate.exe. In managed deployments, the package could run silently without another user prompt.

The installer copied itself to the public user profile and could open the genuine utility as cover. A setup component retrieved the 7-Zip project’s command-line extractor, 7zr.exe, along with an archive containing a 64-bit Python 3.9 runtime and backdoor scripts. The package was extracted under C:\ProgramData\Microsoft\DeviceSync\b2. Bundling Python let the malware run without relying on a Python installation already present on the device.

Microsoft described two DeviceSync package variants. The b2 package launched py_client_b2_dll.py with python.exe; a later dsv2 package used pythonw.exe to run py_client_dsv2.py without a console window. Both contained the same primary agent code. Persistence included a current-user Run value named DeviceSyncUpdate_b2 and the scheduled task \UPnp\MicrosoftEdge_dcntel, enabling the agent to restart at sign-in.

Python agent and separate native backdoor

The Python RAT identified itself as VmBaseTool 5.17.6. Microsoft observed it being used for system discovery and to launch a separate native backdoor. The recovered code also supported file operations, screenshots, Python extensions, and network relays, though the presence of a capability in the code does not establish that operators used it.

The agent connected to a WebSocket endpoint over TCP port 9876 using ws://. Its application messages used AES-GCM, but the connection did not use Transport Layer Security. Microsoft also observed connections to 8[.]210[.]69[.]51:9092. Commands observed on affected devices queried Windows, user and group context, desktop location, and network configuration. A PowerShell task searched Python package directories for AI and machine-learning tools, including Ollama, vLLM, LangChain, LlamaIndex, and MLflow. The search indicates software discovery, not that models or training data were collected.

On some devices, operators deployed a second, native backdoor with command-and-control connections independent of DeviceSync. Microsoft observed winhost.exe connecting to 8[.]210[.]203[.]136:443, while backgroundTask.exe connected to 47[.]239[.]64[.]37 on TCP ports 7006 and 7007 and to 8[.]210[.]20[.]147:443. The backdoor could run native plugins through a separate worker process, with modules and results passed over a named pipe. Microsoft reported activity from native payloads over multiple days.

Response priorities for defenders

Organizations should stop affected packages from being redistributed before investigating individual endpoints. Withdraw suspect installers and portable copies from deployment shares, internal mirrors, package-manager caches, synchronized folders, and update workflows. Validate replacement packages against a separately trusted release, and inspect the outer installer that will execute rather than relying on a signature belonging to an embedded utility.

For potentially affected devices, investigate process lineage, startup entries, scheduled tasks, and network connections. Match package copies across deployment locations by file hash and check the signature of the actual running file. Isolate endpoints with confirmed backdoor execution and preserve relevant evidence, including installer hashes, process trees, task definitions, Run-value data, and process-attributed connections.

Removing or replacing Q-Dir or DesktopOK alone will not remove the malware. Responders should remove the DeviceSync package and its persistence mechanisms, then investigate and remediate the native backdoor and plugin workers separately. If device integrity cannot be established, Microsoft recommends rebuilding from a trusted image. Scope credentials and sessions accessible to compromised identities; where exposure is confirmed, revoke sessions and rotate affected credentials from a clean system.

Before restoring normal operations, verify that both backdoors and their startup mechanisms are gone, including through a controlled restart or sign-in. Replace tampered packages in every distribution path to prevent reinfection. Microsoft also recommends keeping Defender Antivirus protection current and investigating detections alongside process and persistence evidence, since detection availability can vary by configuration, platform, and security-intelligence version.