Springfield, OH · Call (937) 319-1211 · Send us a message

Supply chain attack: tampered SoftwareOK Q-Dir update delivers Python RAT and native backdoor to managed workstations

Microsoft Threat Intelligence reported that, as of November 9, 2026, attackers had tampered with installers and updaters for Q-Dir and DesktopOK, two small Windows utilities from the developer SoftwareOK. The altered files sat on the vendor's own official download and update channel, so users who followed normal update habits received them. Each tampered installer opens the real utility as cover while it quietly installs a remote access trojan (RAT), a program that gives an outside operator hands-on control of the computer. This analysis draws on reporting from Microsoft.

The chain relies on three components with names chosen to look routine:

  • 7zr.exe, the legitimate standalone command-line extractor from the 7-Zip project. The installer downloads it to unpack an archive holding a private Python 3.9 runtime and the malicious scripts.
  • DeviceSync, the name of the Python RAT package. It installs under C:\ProgramData\Microsoft\DeviceSync\b2, a path that resembles a Microsoft sync feature.
  • VmBaseTool, the name the RAT reports for itself (version 5.17.6) when it checks in with the attackers' server.

On some devices, operators used the Python RAT to launch a separate native Windows backdoor with its own command servers and support for add-on plugins. That gives the attackers two independent footholds on the same machine. Uninstalling Q-Dir or DesktopOK removes neither one, because a startup entry relaunches the RAT at every Windows sign-in, and cleaning up the RAT still leaves the second backdoor in place.

For your business, this means a single freeware download can hand an outsider ongoing access to a workstation, its files, and the accounts signed in to it. Your exposure is highest if staff can download and run utilities like these without IT review. Organizations that push software centrally were also affected: a package-manager update to Q-Dir 12.83.0 ran silently with no user prompt. Microsoft has not attributed the campaign to a named threat actor.

Inside the Attack Chain: From 7zr.exe Extraction to DeviceSync and VmBaseTool

Microsoft first observed execution after a package-manager update to Q-Dir 12.83.0. In a separate case, an older Q-Dir installation ran its own updater, which retrieved the tampered build. From that point, the chain proceeds in five steps and never depends on the utility the user meant to install.

  1. Delivery (T1195.002). One tampered binary circulated as Q-Dir_Installer_x64.exe, Q-Dir.exe, and Q-Dir_Autoupdate.exe. Portable copies also ran from synced folders, repositories, and file shares. In managed deployments it ran with no user prompt. The installer copied itself to the public user profile. A publisher signature on the embedded utility does not cover the outer installer that wraps it.
  2. Staging (T1105). A setup component downloaded 7zr.exe and a .7z archive holding a 64-bit Python 3.9 runtime and the agent scripts. It used an IP-based location with a domain-based fallback. The source does not describe the archive as password-protected. Running a stock 7-Zip extractor means the unpacking step uses a known, benign binary in place of a custom unpacker. The setup logic also resumed broken downloads, stopped older Python instances in the install directory, and read a client startup log, so it could upgrade an existing agent as well as install a new one.
  3. Agent launch (T1059.006). Files extract to C:\ProgramData\Microsoft\DeviceSync\b2. The b2 package starts py_client_b2_dll.py with python.exe. The later dsv2 package starts py_client_dsv2.py with pythonw.exe, which shows no console window. The bundled interpreter lets the agent run on machines with no Python installed.
  4. Persistence (T1547.001, T1053.005). The Run value DeviceSyncUpdate_b2 under the current user's Software\Microsoft\Windows\CurrentVersion\Run key and the scheduled task \UPnp\MicrosoftEdge_dcntel relaunch the interpreter at every sign-in.
  5. Native backdoor handoff (T1059.001, T1559). PowerShell launched C:\Temp\winhost.exe and C:\Users\Public\backgroundTask.exe. Both resolve Windows APIs at runtime, copy an embedded buffer into executable memory, and run it in a thread. Each spawns short-lived KKKD.PluginHost workers that receive modules over a named pipe and call functions such as Plugin_Execute. Plugin-1001 used curl.exe and nslookup.exe to find the public IPv4 address, tagged with the marker __KKKD_PUBIP__.

The roles break down this way. The installer's setup component is the loader. The Run value and scheduled task handle persistence. The payload is the Python agent, which reports itself as VmBaseTool 5.17.6, followed on some devices by the native backdoors. DeviceSync is the package and directory name. Microsoft's analysis documents no virtual-machine or sandbox checks, so the VmBaseTool name has no confirmed anti-analysis role. The documented evasion is system-like file naming.

For C2 (T1071.001), the agent registers its OS, account and computer names, local IP, and interpreter, then receives a token for a second command session. Traffic runs over plain ws:// on TCP 9876 with AES-GCM message encryption and no TLS. Port 9092 with a /ws path was also observed. Handlers such as terminal.exec, plugin.exec, and screen.shot cover shell commands, extra Python code, chunked file reads and writes, URL downloads, screenshots, TCP/UDP relays, MinIO object-storage transfers, and an inventory of security products. Microsoft confirmed operators ran ver, whoami /groups, and ipconfig /all, checked for ToDesk, and searched Python site-packages for ollama, vllm, langchain, llama_index, and mlflow (T1518, T1057). In business terms, the operators used this survey to locate developer and AI workstations and the software installed on them.

  • Delivery URLs: hxxps[:]//mail[.]c1a2[.]top/dl/7zr[.]exe and hxxps[:]//mail[.]c1a2[.]top/dl/dsv2_py39_agent[.]7z
  • Python agent C2: 8[.]210[.]69[.]51:9876 and :9092, plus 47[.]238[.]130[.]37:443
  • Native backdoor C2: 8[.]210[.]203[.]136:443 (winhost.exe), 47[.]239[.]64[.]37:7006/7007 and 8[.]210[.]20[.]147:443 (backgroundTask.exe)
  • SHA-256: VmBaseTool agent 2d382bd5998d06dc6a7ab111c077e4468c6d7694af94933f869976115f8e139c, winhost.exe 288ec3ce9379e2f29f246d2fb1286bdf95c4dade99d6b037ead18db35b2a859c, backgroundTask.exe be30ca3f9298487611dd1d689d963665d8a74e494ad22006b6257518acf8ca44

A device in your fleet that shows any of these indicators may host both the Python agent and a native backdoor. Each of those components keeps its own separate C2 channel.

How the tampered Q-Dir installer deploys a Python agent and native backdoor
1
Delivery (T1195.002)
A package-manager update or Q-Dir's own updater retrieves a tampered installer that copies itself to the public user profile. The publisher signature on the embedded utility does not cover the outer wrapper. Q-Dir_Autoupdate.exe
2
Staging (T1105)
A setup component downloads a stock 7-Zip extractor and an archive holding a bundled Python runtime and agent scripts. It can also upgrade an existing agent. 7zr.exe
3
Agent launch (T1059.006)
Files extract under ProgramData, and the bundled interpreter runs the agent script. The later package uses pythonw.exe, so no console window appears. C:\ProgramData\Microsoft\DeviceSync\b2
4
Persistence (T1547.001, T1053.005)
A Run registry value and a scheduled task relaunch the interpreter at every sign-in. \UPnp\MicrosoftEdge_dcntel
5
Native backdoor handoff
PowerShell launches native loaders that run an embedded buffer in memory. They spawn KKKD.PluginHost workers that receive modules over a named pipe. C:\Users\Public\backgroundTask.exe

Why a Dual-Implant Compromise Raises the Stakes for Organizations

On some devices, operators ran a second, native backdoor alongside the Python RAT, and Microsoft observed both payloads connecting to their own command servers over multiple days. That pairing changes the cost of an incident for your organization. Each implant gives the operator a separate route back into the same machine, so removing one leaves the other working.

The Python agent provides flexible, interactive access. Its terminal handler runs any command the operator sends through cmd.exe with the console window hidden, and its plugin handler accepts new Python source from the server and runs it in a child interpreter. The operator can add new functions to a running agent on your device without reinstalling anything.

The recovered client also contains the functions that typically come before data theft:

  • File access: browsing, reading, writing, and deleting files, with chunked transfers that pull large files in portions
  • Cloud upload: sending files and whole directories to an operator-supplied MinIO object-storage bucket
  • Screen capture: returning desktop screenshots as JPEG images
  • Traffic relay: opening TCP or UDP connections from the affected device to a host the operator chooses
  • Security inventory: matching running process names against a list of security products

Microsoft states that the presence of these functions in the code does not prove operators used them. For your business, the list sets the scope an investigator has to rule out. Documents, open applications, and credentials or sessions available to the signed-in user on an affected device all fall within reach of this toolset, and the relay function means your internal services could be contacted from that device.

The native backdoor provides durable, quieter persistence. Its launchers copy an embedded payload into memory, mark that memory executable, and run it inside their own process. Plugin work goes to short-lived worker processes that exchange modules, commands, and results with the parent over a named pipe. Microsoft identified one plugin that looks up the device's public IP address, and the purpose of the other observed plugin activity remains unidentified. Because the loader accepts arbitrary modules, your investigation cannot assume the observed plugins are the only ones that ran.

Operators also searched Python package directories for AI and machine-learning tools, including ollama, vllm, langchain, llama_index, and mlflow. Microsoft treats this as software inventory, not evidence of collection. If your data science or engineering staff run model runtimes or ML pipelines on their workstations, those machines may hold model files, API keys, and training data that an operator with this level of access could reach.

The two-stage design drives up incident response cost. A team that uninstalls the utility, or removes only the Python agent, leaves the native backdoor and its own command channel in place, which extends dwell time and forces a second investigation later. Investigators have to reconstruct process lineage, startup entries, and network connections separately for each stage on each device. Devices whose integrity cannot be established may need a full rebuild.

Key Insight: Microsoft has not attributed the activity to a named threat actor, so your responders have no known playbook to predict what the operator wanted and must work from the evidence on each machine.

Small utilities like a file manager or a desktop icon tool are often installed by employees themselves and never reach your software inventory. That makes it hard to answer the first question in any supply-chain incident: where is this software running? The users in this case did nothing unusual. They trusted a familiar brand's official channel, and that trust is the access path the attackers used.

If your investigation cannot rule out access to personal, financial, or client data on an affected device, breach-notification obligations under applicable privacy laws, industry regulations, or client contracts may apply. Those obligations typically depend on what data was reachable and whether access can be excluded, so the depth of your forensic evidence directly affects your legal and disclosure position.

Detecting and Removing the SoftwareOK-Delivered RAT and Backdoor

Your first step is to pull every Q-Dir and DesktopOK installer and portable copy out of deployment shares, internal mirrors, package-manager caches, synchronized folders, and update workflows, so no device reinstalls the tampered build while you investigate. Match copies by SHA-256 against Microsoft's published list of 18 trojanized utility hashes (10 for Q-Dir, 8 for DesktopOK), because filenames vary between copies. The remaining steps follow the SANS Incident Response Process in order: identification, containment, eradication, recovery, and lessons learned.

In the next 24 to 48 hours, search your endpoints for these artifacts:

  • Python agent: python.exe or pythonw.exe running from C:\ProgramData\Microsoft\DeviceSync\b2 with py_client_b2_dll.py or py_client_dsv2.py on the command line.
  • Persistence: the Run value DeviceSyncUpdate_b2 under HKCU\Software\Microsoft\Windows\CurrentVersion\Run and the scheduled task \UPnp\MicrosoftEdge_dcntel.
  • Native stage: C:\Temp\winhost.exe, C:\Users\Public\backgroundTask.exe, C:\Users\Public\backgroundTaskHost.exe, and child processes named KKKD.PluginHost.* carrying --plugin-host and --pipe arguments or the group argument master#plugin-1009.
  • Network: successful connections to 8[.]210[.]69[.]51 (ports 9876 and 9092), 47[.]238[.]130[.]37:443, 8[.]210[.]203[.]136:443, 47[.]239[.]64[.]37 (ports 7006 and 7007), and 8[.]210[.]20[.]147:443, plus the associated hosts 47[.]238[.]75[.]255 and 47[.]238[.]204[.]139 and the domains c1a2[.]top and cloudfronts[.]top.

A practical EDR rule pairs parent and child. Alert when a Python process from the DeviceSync folder spawns cmd.exe running ver, whoami /groups, or ipconfig /all, or spawns PowerShell that searches site-packages for ollama, vllm, langchain, llama_index, or mlflow. A second rule should flag cmd.exe output containing the marker __KKKD_PUBIP__ next to curl.exe and nslookup.exe. If you see a listener on 127.0.0.1:3660, confirm the owning process path before escalating, since the agent uses that port for a local health check.

For containment, isolate any device with confirmed backdoor execution using Microsoft Defender for Endpoint isolation or an equivalent network control. Before changing anything, preserve the installer hash, process lineage, task definition, Run-value data, and process-attributed connections. Block the listed destinations at your firewall, proxy, and endpoint controls.

Treat every confirmed hit as a full compromise of that machine. Remove the Python package, its Run value, and its scheduled task, then hunt and remove the native launchers and plugin workers as a separate job. Reinstalling the utility leaves both implants in place. Where you cannot establish a device's integrity, rebuild it from a trusted image. This is usually faster to verify than a manual cleanup of two independent backdoors.

Scope the credentials and sessions the compromised user could reach. Revoke those sessions and rotate passwords from a clean system, then review the related service activity. Because the agent's relay handler can open connections from the infected device to hosts the operator chooses, check internal servers for unexpected inbound traffic from affected machines. Before releasing isolation, perform a supervised restart and sign-in and confirm that no interpreter launches, plugin workers, or command-server connections return.

For the longer term, use App Control for Business to block unapproved installers and portable interpreters running from writable locations. Microsoft notes that allowing a Python interpreter does not restrict the scripts it runs, so test policies against your developer workflows. Validate future packages against a separately trusted release and check the signature of the outer installer that actually executes. Keep Microsoft Defender Antivirus cloud-delivered protection and tamper protection enabled, and add standing alerts for bundled Python runtimes or 7zr.exe executing from ProgramData, the public profile, or temp folders.

Key Takeaway: Assume Both Footholds Are Present

This campaign worked because every visible piece looked familiar. The tampered files came from SoftwareOK's own distribution channel, the extractor was a genuine 7-Zip component, and the startup entries borrowed Microsoft-style names. Microsoft has not linked the activity to a named threat actor, so you have no group profile to predict what the operators will do next on a given host. The evidence does show a deliberate design: two independent implants on the same machine, each reporting to its own command servers.

The single most important action follows from that design. If you find any one component on a device, such as 7zr.exe in an unexpected folder, a DeviceSync directory, a process identifying itself as VmBaseTool, or a Python interpreter your team never installed, treat that host as carrying both footholds. Your responders should locate and remove the Python RAT and the native backdoor, along with each one's startup mechanism, before anyone marks the device clean. Reinstalling Q-Dir or DesktopOK removes neither component. After that, reset the passwords and sessions the signed-in account could reach, and do the rotation from a separate trusted computer so the new credentials are never entered on an affected machine.

If you are unsure whether these utilities ever ran in your environment, whoever manages your workstations and software deployment can compare your package caches and endpoints against Microsoft's published file hashes. A security assessment is a reasonable next step after that check: a 15-minute call followed by written findings on dark web exposure, phishing risk, security controls, remote access, and employee training readiness, with remote access and security controls being the areas closest to this intrusion.

In This Article

The Monthly Briefing

One email a month on the security incidents that mattered to Ohio professional firms, explained in plain language, with one thing to do before the next issue.

No product pitches. Leave any time.

Latest Weekly Briefings