Cyber News Microsoft 1 hour ago

Unpacking the SoftwareOK attack chain: A Python RAT and native backdoor

CN
CyberNew Threat Research Desk
• Original Reporting: Microsoft
CyberNew Threat Intel Assessment
Assessed Severity: INFORMATIONAL
Impacted Surface
Enterprise Perimeter & Network Defense
Intelligence Sector
Cyber News

Analyst Takeaway

"As of November 9, 2026, Microsoft Threat Intelligence investigated a software supply chain compromise affecting Q-Dir and DesktopOK, applications developed by SoftwareOK. Microsoft identified that threat actors tampered with installers and updaters for these two third-party utilities on the vendor’s official SoftwareOK download and update channel, so users who followed normal, trusted update..."

Recommended Defense & Mitigation

  • Threat Monitoring: Ingest published IOCs into SIEM/EDR detection rules for continuous telemetry monitoring.
  • Security Awareness: Alert staff and maintain baseline endpoint hardening across endpoints.
Curated & Verified by CyberNew Threat Intelligence Desk Standard Defense Framework (NIST / MITRE ATT&CK)

As of November 9, 2026, Microsoft Threat Intelligence investigated a software supply chain compromise affecting Q-Dir and DesktopOK, applications developed by SoftwareOK. Microsoft identified that threat actors tampered with installers and updaters for these two third-party utilities on the vendor’s official SoftwareOK download and update channel, so users who followed normal, trusted update practices were exposed.

The altered files launch the legitimate application as cover while silently installing DeviceSync, a Python-based remote access trojan (RAT). Microsoft Defender investigations identified persistence and recurring command-and-control (C2) communication, with attackers using the Python RAT for system discovery and searches for AI and machine-learning software. On some devices, attackers also deployed a separate native backdoor that maintained its own C2 connections and supported plugin execution, extending the intrusion beyond the Python agent.

Organizations should remove affected packages from deployment paths, isolate devices on which the backdoor ran, remove the persistence mechanisms, and investigate the later native payload separately. Closing or replacing the utility does not remove the threat, due to persistence techniques allowing the backdoor to relaunch during Windows sign-in. Effective recovery requires removing the RAT and its startup entry, checking for the second backdoor, and replacing tampered packages in any software distribution system that could reinstall them.

Activity Overview

How the utilities reach Windows devices

SoftwareOK distributes Windows utilities, including Q-Dir, a file manager, and DesktopOK, which saves and restores desktop icon layouts. Users can run the utilities from downloaded installers or portable packages. Organizations also distribute them through package managers and software-deployment systems; existing Q-Dir installations have their own update path.

The attack added another execution path to the utility package. The outer installer launched a separate runtime and backdoor while the expected application remained available to the user. The application and installer are distinct files: a publisher signature on an embedded utility does not authenticate the surrounding installer or the components it downloads.

Initial access through tampered software packages

Microsoft observed execution after a package-manager updates to Q-Dir 12.83.0. An older Q-Dir installation also launched an updater that retrieved the tampered build. Portable copies ran from synchronized folders, repositories, and file shares, extending distribution beyond the original download location.

The same tampered Q-Dir binary appeared under several filenames, including Q-Dir_Installer_x64.exe, Q-Dir.exe, and Q-Dir_Autoupdate.exe. Match copies across deployment locations by file hash, and check the signature of the file that actually runs instead of trusting its name or displayed publisher.

In the managed-deployment path, the package ran silently without an additional user prompt. These observations establish installer execution as the endpoint entry point; they do not establish separate compromises of the package manager, deployment service, or storage provider. The observed distribution is consistent with a compromised software-supply path; the specific upstream modification mechanism remains unconfirmed.

Attribution

Microsoft has not attributed this activity to a named threat actor. This assessment is based on the malware, infrastructure, and operator behavior observed in this campaign.

Attack chain overview

Figure 1. The installer opens the genuine utility and deploys a Python RAT. Startup entries restart the agent at sign-in. On some devices, operators deploy a separate backdoor that connects to its own command server and runs native plugins.

Technical analysis

Stage 1: The installer sets up a separate backdoor

The installer copied itself to the public user profile and could launch the genuine utility. A dedicated setup component retrieved 7zr.exe, a legitimate reduced command-line extractor from the 7-Zip project, and a .7z archive containing a 64-bit Python 3.9 runtime and the backdoor scripts. The download logic used an IP-based location and a domain-based fallback.

Setup extracted the package under C:\ProgramData\Microsoft\DeviceSync\b2. The b2 package started py_client_b2_dll.py with python.exe; the later dsv2 package used pythonw.exe to start py_client_dsv2.py without a console window. Both packages carried the same primary agent code. Including the interpreter made installation independent of the device’s existing Python environment.

The recovered installer logic also handled incomplete downloads and upgrades. It supported resumable archive transfers, stopped older Python instances associated with the installation directory, and checked a client startup log after launch. These routines supported replacing an existing agent as well as installing a new one.

Persistence was established outside the utility. Campaign activity included a current-user Run value, DeviceSyncUpdate_b2, and the scheduled task \UPnp\MicrosoftEdge_dcntel. They relaunched the packaged interpreter at sign-in, so closing or removing Q-Dir or DesktopOK did not remove the Python RAT.

Stage 2: The Python RAT gives operators a shell

The Python RAT launched from the extracted DeviceSync package identifies itself as VmBaseTool 5.17.6. Microsoft observed operators use the agent for system discovery and to launch a separate native backdoor. Analysis of the recovered client also identified support for file operations, screenshots, Python extensions, and network relays. The presence of those functions in the code does not establish that operators used them.

Registering the device and receiving commands

The client first sends its version, authentication data, and a device record containing operating-system information, account and computer names, the local IP address, and the running interpreter. A stored installation identifier lets the server recognize the client after a restart. The server returns a token, which the client uses to authenticate a second connection for commands and replies.

DeviceProcessEvents 
| where Timestamp > ago(30d) and ActionType == "ProcessCreated" 
| where FileName in~ ("python.exe", "pythonw.exe") 
| where FolderPath contains @"\DeviceSync\b2\py39" 
| where ProcessCommandLine contains "py_client_b2_dll.py" 
    or ProcessCommandLine contains "py_client_dsv2.py" 
| project Timestamp, DeviceId, DeviceName, FileName, ProcessCommandLine, 
          InitiatingProcessFileName, ReportId
union DeviceRegistryEvents, DeviceEvents 
| where Timestamp > ago(30d) 
| where (ActionType == "RegistryValueSet" 
    and RegistryKey endswith @"\Software\Microsoft\Windows\CurrentVersion\Run" 
    and RegistryValueName =~ "DeviceSyncUpdate_b2") 
    or (ActionType in ("ScheduledTaskCreated", "ScheduledTaskUpdated") 
    and AdditionalFields contains "MicrosoftEdge_dcntel") 
| project Timestamp, DeviceId, DeviceName, ActionType, RegistryValueData, 
          AdditionalFields, InitiatingProcessFileName, ReportId
DeviceProcessEvents 
| where Timestamp > ago(30d) and ActionType == "ProcessCreated" 
| where FileName in~ ("cmd.exe", "powershell.exe", "pwsh.exe") 
| where InitiatingProcessFileName in~ ("python.exe", "pythonw.exe") 
| where InitiatingProcessFolderPath contains @"\DeviceSync\b2" 
| where ProcessCommandLine contains "site-packages" 
| where ProcessCommandLine has_any 
    ("ollama", "vllm", "langchain", "llama_index", "mlflow") 
| project Timestamp, DeviceId, DeviceName, FileName, ProcessCommandLine, 
          InitiatingProcessFileName, InitiatingProcessFolderPath, ReportId
DeviceNetworkEvents 
| where Timestamp > ago(30d) and ActionType == "ConnectionSuccess" 
| where (RemoteIP == "8.210.69.51" and RemotePort in (9876, 9092)) 
    or (RemoteIP == "47.238.130.37" and RemotePort == 443) 
    or (RemoteIP == "8.210.203.136" and RemotePort == 443) 
    or (RemoteIP == "47.239.64.37" and RemotePort in (7006, 7007)) 
    or (RemoteIP == "8.210.20.147" and RemotePort == 443) 
| project Timestamp, DeviceId, DeviceName, InitiatingProcessFileName, 
          InitiatingProcessFolderPath, RemoteIP, RemotePort, ReportId
DeviceProcessEvents 
| where Timestamp > ago(30d) and ActionType == "ProcessCreated" 
| where FileName startswith "KKKD.PluginHost." 
| where ProcessCommandLine contains "--plugin-host" 
    and ProcessCommandLine contains "--pipe" 
| project Timestamp, DeviceId, DeviceName, FileName, ProcessCommandLine, 
          InitiatingProcessFileName, InitiatingProcessId, ReportId

Source Verification & Original Intelligence

This threat report was reviewed by CyberNew analysts and cross-referenced with primary security disclosures from Microsoft.

Primary Advisory →