Most advice about trojanised software comes down to "download it from the vendor". That advice failed here. Microsoft Threat Intelligence published its analysis on 2 December 2026 of tampered installers and updaters for Q-Dir and DesktopOK, two popular free Windows utilities from SoftwareOK. The tampered files came through the vendor's own download and update channel. People who kept their tools up to date, including through a package manager, were the ones exposed.
Two details make this worth an hour of hunting even if nobody in your organisation has heard of either tool. First, the installer brings its own Python runtime, so the malware doesn't depend on anything already on the machine. Second, uninstalling or reinstalling the utility leaves the remote access trojan in place. If your clean-up stops at "removed the app", it hasn't finished.
What happened
Microsoft began investigating on 9 November. It saw the malware run after a package-manager update to Q-Dir 12.83.0, and after an older Q-Dir install's own updater fetched the tampered build. The same binary then turned up under several filenames in synchronised folders, repositories and file shares, which is how a utility one person installs ends up on a share that dozens of people run from. In managed deployments the package installed silently, with no prompt for anyone to question.
Microsoft says it hasn't confirmed how the upstream files were modified, hasn't given a victim count and hasn't attributed the activity to a named actor. We won't either.
How the infection works
- The cover. The tampered installer launches the genuine utility, so the user sees exactly what they expected.
- The download. It copies itself into the Public user profile, then downloads
7zr.exe, the legitimate standalone 7-Zip extractor, and a.7zarchive. - The runtime. The archive holds a complete 64-bit Python 3.9 runtime and the backdoor scripts, unpacked to
C:\ProgramData\Microsoft\DeviceSync. A folder name like that is chosen to be ignored. - Persistence. A current-user Run value named
DeviceSyncUpdate_b2and a scheduled task,\UPnp\MicrosoftEdge_dcntel, relaunch the bundled interpreter at every sign-in. Neither belongs to the utility, which is why uninstalling it doesn't touch them. - The Python RAT. The agent calls itself "VmBaseTool 5.17.6". It registers the device and takes commands over an authenticated WebSocket on TCP 9876, as plain
ws://with AES-GCM encrypted messages; Microsoft also saw TCP 9092. The code can run shell commands, run further Python, move files, take screenshots and relay traffic. Microsoft is careful to say the code having a function doesn't prove it was used. - What it actually did. The observed activity was reconnaissance: Windows version, user and group membership, network configuration, a check for a remote-desktop tool, and a search of Python's installed packages for AI and machine-learning tooling such as
ollama,vllm,langchainandmlflow. - The second backdoor. On some machines the operators then deployed native binaries,
winhost.exe,backgroundTask.exeandbackgroundTaskHost.exe, with their own command servers. These run plugins through short-livedKKKD.PluginHostworker processes that talk over named pipes.
That search for AI tooling is the interesting part. A machine with local models, model-serving software or ML pipelines installed usually belongs to someone with access to data, cloud credits and API keys. The attackers seem to have been sorting victims by how valuable they were.
Who is affected
Any Windows device that installed or updated Q-Dir or DesktopOK during the affected window, whether by hand, through the built-in updater or through a package manager. Look beyond the endpoints themselves: software repositories, deployment shares and synchronised folders that hold a copy of the installer will keep reinfecting machines until the file is withdrawn. The same pattern appeared in the BubbleLoader trojanised tools and the hijacked updater we covered in November. Small utilities with their own updaters are an attractive way in.
Hunting in Microsoft Defender XDR and Sentinel
Microsoft's post includes its own advanced hunting queries, and you should run those first. The queries below are our starting points to tune, not finished detections. Run them over 30 days and check the results against your own software before turning any into alerts.
1. A Python interpreter running from the DeviceSync folder
DeviceProcessEvents
| where Timestamp > ago(30d)
| where FileName in~ ("python.exe", "pythonw.exe")
| where FolderPath has @"\ProgramData\Microsoft\DeviceSync"
| project Timestamp, DeviceName, AccountName, FolderPath, ProcessCommandLine, InitiatingProcessFileName
Broaden it afterwards. A Python interpreter anywhere under C:\ProgramData or the Public profile is unusual on most office machines, whatever the family.
2. The Run value and scheduled task
union
(DeviceRegistryEvents
| where Timestamp > ago(30d)
| where RegistryKey has @"\CurrentVersion\Run"
| where RegistryValueName =~ "DeviceSyncUpdate_b2" or RegistryValueData has "DeviceSync"
| project Timestamp, DeviceName, Detail = strcat(RegistryValueName, " = ", RegistryValueData)),
(DeviceEvents
| where Timestamp > ago(30d)
| where ActionType == "ScheduledTaskCreated"
| where AdditionalFields has "MicrosoftEdge_dcntel"
| project Timestamp, DeviceName, Detail = tostring(AdditionalFields))
3. AI and ML package discovery launched by Python
DeviceProcessEvents
| where Timestamp > ago(30d)
| where InitiatingProcessFileName in~ ("python.exe", "pythonw.exe")
| where FileName in~ ("cmd.exe", "powershell.exe", "pwsh.exe")
| where ProcessCommandLine has "site-packages"
| where ProcessCommandLine has_any ("ollama", "vllm", "langchain", "mlflow")
| project Timestamp, DeviceName, AccountName, ProcessCommandLine, InitiatingProcessFolderPath
4. Native plugin workers
DeviceProcessEvents
| where Timestamp > ago(30d)
| where FileName startswith "KKKD.PluginHost" or ProcessCommandLine has "--plugin-host"
| where ProcessCommandLine has "--pipe"
| project Timestamp, DeviceName, FileName, FolderPath, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessFolderPath
5. Connections to the documented infrastructure
let C2IPs = dynamic(["8.210.69.51", "47.238.130.37", "8.210.203.136", "47.239.64.37", "8.210.20.147", "47.238.75.255", "47.238.204.139"]);
DeviceNetworkEvents
| where Timestamp > ago(30d)
| where RemoteIP in (C2IPs) or RemoteUrl has_any ("c1a2.top", "cloudfronts.top")
or (RemotePort in (9876, 9092) and InitiatingProcessFileName in~ ("python.exe", "pythonw.exe"))
| project Timestamp, DeviceName, ActionType, RemoteIP, RemotePort, RemoteUrl, InitiatingProcessFolderPath
Check the IP list against Microsoft's published indicators before you rely on it. Outbound plain WebSocket traffic from a Python process to an IP address on TCP 9876 is worth a look on its own.
Indicators from Microsoft
These are taken from Microsoft's report. It lists the full set, including 10 hashes for tampered Q-Dir builds and 8 for DesktopOK, plus hashes for the runtime installers, archives, Python agent and native backdoors. Pull the hashes from the original rather than from a copy.
- Python RAT command channel:
8.210.69[.]51on TCP 9876 (TCP 9092 also seen) - Campaign C2:
47.238.130[.]37:443 - Native backdoors:
8.210.203[.]136:443(winhost.exe),47.239.64[.]37on TCP 7006 and 7007 and8.210.20[.]147:443(backgroundTask.exe) - Other associated servers:
47.238.75[.]255,47.238.204[.]139 - Domains: staging under
c1a2[.]top; associatedcloudfronts[.]top - Host:
C:\ProgramData\Microsoft\DeviceSync; Run valueDeviceSyncUpdate_b2; task\UPnp\MicrosoftEdge_dcntel; local listener127.0.0.1:3660;KKKD.PluginHostworkers with named pipes - Defender detections:
Trojan:Win64/GlassWorm.DB!MTB,.DC!MTB,.DD!MTB;Trojan:Python/VmBaseTool.MA!MTB;Trojan:Python/Multiverze!rfn
What to do now
- Find every copy of the installer. Search shares, software repositories, package caches and synchronised folders as well as endpoints. Withdraw the affected packages, and check any replacement against a separately trusted release. Check the outer file that actually runs, not just the utility it unpacks.
- Clean up both backdoors. Remove the Python package, its Run value and its scheduled task, then separately look for
winhost.exe,backgroundTask.exeand the plugin workers. Where you can't be sure a device is clean, rebuild it. - Rotate credentials from a clean device. Work out which identities used each affected machine, revoke their sessions and rotate their passwords and keys. On a machine with AI tooling, include model and API keys and cloud credentials in that list.
- Restrict what can run. Use App Control for Business to stop unapproved installers and interpreters running from places like
C:\ProgramDataand the Public profile. Microsoft notes that App Control doesn't enforce script policy inside third-party Python hosts. Block the interpreter itself, not just the scripts. Our explainer on attack surface reduction rules covers a complementary control. - Keep Defender's protections on. Cloud-delivered protection, tamper protection and network protection all appear in Microsoft's list of alerts that fired on this campaign. Where another antivirus product is primary, consider EDR in block mode.
- Verify before you release containment. Restart the device under observation and confirm neither backdoor relaunches.
How a managed SOC helps
This chain doesn't look like an attack from inside a single alert. It looks like a utility update, then an extractor, then a Python process in a folder with a Microsoft-sounding name. The signal is the sequence, and someone has to read it whenever it happens, which is rarely during office hours.
Our SOCs are staffed 24/7. CYBERSHIELD AI investigates each incident through a multi-stage pipeline with an average time to verdict of 3 minutes 30 seconds, groups related incidents into one case, and produces a full investigation report. Whether a case closes or escalates is decided by policy and your own decision templates, and senior analyst sign-off is the default on the managed service. If you think a copy of either installer has already spread across your estate, a compromise assessment can establish where it ran and what it reached. Our explainer on remote access trojans covers the wider family.
To see how we would watch your estate, book a demo.