Skip to content

Threat Actors

Microsoft details SoftwareOK supply-chain compromise with Python RAT and backdoor

Microsoft said the tampered installers ran Q-Dir and DesktopOK as a decoy while adding DeviceSync, a Python remote access trojan.

https://breach-signal.com/threat-actors/microsoft-softwareok-supply-chain-compromise-python-rat/

Share

Key facts

  • Threat actors tampered with Q-Dir and DesktopOK installers and updaters on SoftwareOK's official download and update channel.
  • People following normal update practices on the trusted channel were exposed to the altered files.
  • The compromised installers run the real utility as a decoy while quietly adding DeviceSync, a Python remote access trojan.
  • Attackers additionally installed a separate native backdoor on some devices, maintaining independent command-and-control connections and plugin execution support.

Threat actors altered Q-Dir and DesktopOK installers and updaters hosted on SoftwareOK’s official download and update channel, exposing people who followed normal update practices to changed files. Microsoft Threat Intelligence looked into the supply chain compromise affecting Q-Dir and DesktopOK as of Nov. 9, 2026, and has not attributed the activity to a named threat actor.

SoftwareOK distributes Q-Dir as a file manager and DesktopOK as a utility that saves and restores desktop icon layouts, and users can run either tool from downloaded installers or portable packages. For managed deployment, the package ran silently with no additional user prompt. Installers that were compromised run the genuine utility as a decoy while silently installing DeviceSync, a Python remote access trojan, so users who trusted the official channel received altered files together with the real software. Microsoft said users who followed normal update practices on the trusted channel were exposed to the altered files, not only people who downloaded a new installer.

The installer placed a copy of itself in the public user profile before launching the genuine utility, and a setup component fetched 7zr.exe plus a .7z archive holding a 64-bit Python 3.9 runtime and backdoor scripts. The extracted package was placed beneath C:\\ProgramData\\Microsoft\\DeviceSync\\b2, and because the interpreter was bundled, installation did not depend on the device’s existing Python environment. The tampered binaries appeared under filenames including Q-Dir_Installer_x64.exe, Q-Dir.exe, and Q-Dir_Autoupdate.exe. Retrieval attempts tried an IP-based location first before a domain-based fallback, and the malicious build downloaded 7zr.exe and dsv2_py39_agent.7z from mail.c1a2[.]top.

The b2 component started py_client_b2_dll.py with python.exe, while the later dsv2 component started py_client_dsv2.py with pythonw.exe. A current-user Run value called DeviceSyncUpdate_b2 relaunched the interpreter when users signed in, and a scheduled task called \\UPnp\\MicrosoftEdge_dcntel restarted the packaged interpreter at sign-in; the task impersonates Microsoft Edge. Removing or closing Q-Dir or DesktopOK does not get rid of the Python RAT, since persistence lives outside the utility, and putting the applications back in place will not eliminate either malicious component. Bert de Jong of HOB ICT Security said, “Removing the folder won’t get rid of the persistence the installer sets up.”

The Python RAT calls itself VmBaseTool 5.17.6 and reached its command server at 8.210.69.51:9876 to pick up tasks. The RAT connected to a WebSocket endpoint on port 9876 using an unencrypted ws:// connection, and Microsoft also observed connections to 8.210.69.51:9092, some using the /ws path. Although application messages used AES-GCM encryption, the underlying WebSocket transport on TCP port 9876 lacked Transport Layer Security protection. Both DeviceSync agent variants listened on 127.0.0.1:3660, which Microsoft characterized as a local check instead of an external command server.

The malware scanned running processes against an embedded list of security products and sent matches to the command server, and AhnLab said the inventory covers 1,206 products. Attackers also installed a separate native backdoor on some devices, keeping independent command-and-control connections and support for plugin execution. After the Python RAT started, Microsoft observed PowerShell launching C:\\Temp\\winhost.exe on several devices across multiple days, and the winhost.exe file connected to 8.210.203.136:443. The native payload C:\\Users\\Public\\backgroundTask.exe connected to 47.239.64.37 over TCP ports 7006 and 7007, and that same payload also made a connection to 8.210.20.147:443.

The two native payloads made network connections separate from the DeviceSync Python agent, and PowerShell tasking confirmed the new process ID and checked that a native payload was still running. C:\\Users\\Public\\backgroundTaskHost.exe was created on disk. The main backdoor process launches short-lived child processes starting with KKKD.PluginHost to run native plugins via a named pipe, and Plugin-1001 launches cmd.exe to run curl.exe and nslookup.exe to discover the device’s public IPv4 address.

The shell used KKKD_PUBIP as a marker. The bundled DeviceSync Python runtime launched cmd.exe and executed commands including ver, whoami /groups, and ipconfig /all, and after registration Microsoft observed commands asking for the operating system version, account and group information, desktop location, and network configuration. A PowerShell task searched Python’s site-packages directories for terms including ollama, vllm, langchain, llama_index, and mlflow, but the AI-software search cataloged installed software, though it does not show that models or training data were gathered. Kostas reported suspected hands-on activity on Nov. 11, 2026, including checks of network adapters and a tasklist search for ToDesk.

The client registers by sending its version and authentication data along with a device record that includes operating-system details, account and computer names, the local IP address, and the running interpreter, and the server then issues a token for a second authenticated connection. A stored installation identifier enables the server to identify the same client following a restart. Each command contains an operation name, arguments, and a request identifier, and replies carry that same identifier. The client handles file operations, screenshots, Python extensions, and network relays, although the presence of this code does not prove an operator used it.

A terminal.exec handler hands commands to cmd.exe and records standard output and error, while a plugin.exec handler starts a child Python interpreter to run server-supplied source. File handlers can browse directories, read selected files, write content that is supplied, and delete files or folders, and when a screenshot is requested the client captures desktop pixels through Windows graphics APIs, encodes the image as JPEG, and returns it in a command reply. A relay handler connects to a host and TCP or UDP port chosen by the operator and forwards data using a session identifier, with the connection to the destination originating from the affected device and this relay capability not by itself establishing lateral movement.

File and directory transfers are handled through the MinIO object-storage library, and a security-product discovery handler compares running process names against an embedded list and inventories the products rather than disabling them. When running, winhost.exe and backgroundTask.exe resolve Windows APIs, copy an embedded buffer into allocated memory, mark that memory as executable, and run the embedded payload in a thread within their own process. A named pipe carries modules, commands and results between parent and child, and the child loads that module into memory and sends its output back through the pipe.

The winhost.exe and backgroundTask.exe processes repeatedly launched workers using the group argument master#plugin-1009, and the worker acts as a loader for Windows executable images, mapping the image into memory, resolving imports, initializing the module, and finding plugin interface functions such as Plugin_Execute. Microsoft has not attributed the activity to a named threat actor, and its non-attribution assessment rests on the malware, infrastructure, and operator behavior seen in this campaign. AhnLab stated that it does not know how the official files were replaced, and Microsoft said the specific upstream modification mechanism remains unconfirmed.

Microsoft saw execution follow a package-manager update to Q-Dir 12.83.0 and saw an older Q-Dir installation launch an updater that retrieved the tampered build, but the observations show that installer execution served as the endpoint entry point without demonstrating separate compromises of the package manager, deployment service, or storage provider. Confirmed poisoned builds include Q-Dir 12.85.0.0, Q-Dir 12.84.0.0, Q-Dir 12.83.0.0, DesktopOK 12.85.0.0, and DesktopOK 12.82.0.0. Bert de Jong of HOB ICT Security disclosed the attack publicly on Nov. 12, 2026, describing the unsigned Q-Dir 12.83 installer as roughly double the size of the legitimate file.

AhnLab released its findings on Nov. 26, 2026, and SecurityAura said on Nov. 16, 2026 that Microsoft Defender for Endpoint had been flagging Q-Dir dropped binaries since Nov. 9. Microsoft Defender Antivirus and Microsoft Defender for Endpoint may generate alerts when associated files or behaviors show up.

Observable telemetry includes unexpected pythonw.exe execution, sideloaded legitimate utilities running from repositories, file shares, or synchronized folders, a current-user Run value named DeviceSyncUpdate_b2 that relaunched the interpreter at sign-in, and a scheduled task named \UPnp\MicrosoftEdge_dcntel that also restarted the packaged interpreter at sign-in. Microsoft recommended removing affected packages from deployment paths, isolating affected devices, removing persistence mechanisms, and investigating the native payload on its own. Teams should remove affected installers and portable packages from update workflows, synchronized folders, package-manager caches, internal mirrors, and deployment shares. Microsoft also advised using App Control for Business to restrict installers and interpreters that lack approval, including portable runtimes kept in writable locations.

AhnLab recommended disconnecting affected PCs from the internet and resetting or reinstalling Windows if indicators turn up. Teams can compare files across deployment locations using hashes and check the signature of the file that is actually running instead of relying on its name or publisher, because a publisher signature on an embedded utility does not vouch for the installer itself or for anything it downloads.

Was this helpful?

Join the discussion

Please read our Comment Policy before commenting. First-time comments are held for moderation. By posting a comment you agree to our Terms of Use and Privacy Policy, which explain how your name, email address and comment are used.

Your email address will not be published. Required fields are marked *