The Library

Q-Dir and DesktopOK Malware

Installers for the Windows utilities Q-Dir and DesktopOK were trojanized to install DeviceSync, a Python remote access trojan. Here are the affected Q-Dir versions, what is still unknown and how to check your PCs this week.

Elite Performance Exclusive LLC 6 min read

Where Worldwide

Q-Dir and DesktopOK Malware
On this page 8 sections

Installers for Q-Dir and DesktopOK, two Windows utilities distributed through the SoftwareOK website, were trojanized to install Python-based remote access malware next to the real program. If anyone at your company installed Q-Dir version 12.83.0.0, 12.84.0.0 or 12.85.0.0, check that PC this week. A remote access trojan gives an outsider a way to control the machine.

These are not mainstream apps. BleepingComputer reports that IT professionals, power users and system administrators use them. That means the machines most likely to be affected often have the most access to everything else on the network.

What happened to Q-Dir and DesktopOK

Developer Nenad Hrg writes both tools and distributes them through the SoftwareOK website. Reports say trojanized installers for the two programs carried a remote access trojan (RAT) written in Python. The Hacker News names the malware DeviceSync and says the Python RAT identifies itself as VmBaseTool 5.17.6.

The reported timeline:

  • November 9: Microsoft Defender for Endpoint began flagging malicious binaries dropped by Q-Dir.
  • November 12: Researcher Bert de Jong of HOB ICT Security made the first public report. AhnLab's ASEC later confirmed the findings.
  • November 21: The developer released Q-Dir 12.85.

What is confirmed and what is not known

Confirmed in the reports:

  • Q-Dir versions 12.83.0.0, 12.84.0.0 and 12.85.0.0 are named as affected.
  • The malware sets itself up to start again on its own, using a registry entry and a scheduled task (details below).
  • A second, separate backdoor was found alongside the Python RAT.
  • The reports give the server addresses the malware connects to.

Not known from the sources:

  • Which DesktopOK versions are affected. DesktopOK is named as compromised, but no version numbers are given for it.
  • How the attackers tampered with the installers, or how long the bad copies were available.
  • How many people downloaded an infected copy. The reports give no download or user counts.
  • Whether the Q-Dir 12.85 released on November 21 is clean. The reports list 12.85.0.0 as affected and also say the developer released 12.85 on November 21. They do not explain how those two facts fit together. Do not assume a 12.85 download is safe until its hash matches the official one.
  • What the attackers did on infected machines.

A note on sourcing: this article is based on reporting by BleepingComputer and The Hacker News, both of which cite the researchers. We did not have a developer advisory or the researchers' own write-up to check against, so we have left the gaps as gaps.

How the DeviceSync malware works

Here is what the reports describe:

  • The infection downloads a package called dsv2_py39_agent.7z, which contains the RAT and its own Python runtime.
  • The payload is unpacked to C:\ProgramData\Microsoft\DeviceSync\b2.
  • It survives restarts with a Windows Registry Run entry named DeviceSyncUpdate_b2.
  • It also creates a scheduled task that poses as Microsoft Edge.
  • The RAT's command-and-control server is 8.210.69[.]51 on port 9876. The Hacker News also reports connections to 8.210.20[.]147 on port 443.
  • A separate native backdoor, C:\Users\Public\backgroundTask.exe, connected to the campaign's server at 47.239.64[.]37, independently of the Python agent.

Every name is chosen to blend in: a folder under "Microsoft" in ProgramData, a startup entry that sounds like a sync service, and a task dressed up as a browser updater. A quick look at Task Manager will not raise alarms.

How to check if your PC has the Q-Dir malware

Run these checks on every machine where Q-Dir or DesktopOK has been installed, starting with administrator and IT staff workstations.

What to check Where to look What a bad result looks like
Q-Dir version Settings, Apps, or the Q-Dir About box 12.83.0.0, 12.84.0.0 or 12.85.0.0 is installed
Startup entry Registry Run keys, both per-user and machine-wide An entry named DeviceSyncUpdate_b2
Payload folder C:\ProgramData\Microsoft\DeviceSync\b2 The folder exists
Second backdoor C:\Users\Public\backgroundTask.exe The file exists
Scheduled tasks Task Scheduler An Edge-named task whose action does not run Microsoft's own Edge updater
Downloaded files Downloads folders, shared drives A file named dsv2_py39_agent.7z
Network logs Firewall, DNS or proxy logs (remove the brackets when searching) Connections to 8.210.69[.]51:9876, 8.210.20[.]147:443 or 47.239.64[.]37
Saved installers Any Q-Dir or DesktopOK installer kept on file shares The SHA-256 does not match the official download page
Security alerts Microsoft Defender for Endpoint console Detections tied to Q-Dir since November 9

To check an installer's hash on Windows, open PowerShell and run Get-FileHash .\installer.exe -Algorithm SHA256, then compare the result with the SHA-256 on the official download page. That comparison is the step the reports recommend.

What to do if you find it

  1. Take the machine off the network. A RAT is remote control software. Cut the connection before you clean up.
  2. Block the addresses above at your firewall so other machines cannot reach them.
  3. Treat the PC as compromised. The malware uses more than one way to survive a restart, and there is a second backdoor. Rebuilding the machine is safer than deleting files one at a time.
  4. Change passwords that were used on that machine from a clean device, starting with admin accounts, since the reports do not say what the attackers took.
  5. Reinstall Q-Dir or DesktopOK only from an installer whose hash matches the official page, or replace them with tools your IT policy already approves.

Why this matters for a business network

An infected sales laptop is bad. An infected administrator workstation is worse. That is the machine with saved remote desktop sessions, admin passwords and access to servers. Q-Dir and DesktopOK are exactly the kind of handy utilities IT staff install themselves, often outside any formal software list, so nobody else knows they are there.

The second backdoor matters too. Even if one piece is found and removed, the other can keep a separate channel open. This is why a partial cleanup is not a cleanup.

Q-Dir and DesktopOK malware questions people are asking

Is Q-Dir safe to use now?

Not without checking. Versions 12.83.0.0, 12.84.0.0 and 12.85.0.0 are named as affected. Verify any installer against the SHA-256 on the official download page before you run it.

Is DesktopOK affected too?

Yes, DesktopOK installers are also reported as trojanized, but the reports do not list which DesktopOK versions. Check any copy you have against the official hash.

What is DeviceSync malware?

It is the name The Hacker News gives to the Python-based remote access trojan these installers dropped. It identifies itself as VmBaseTool 5.17.6.

How do I know if my PC is infected?

Look for the Run entry DeviceSyncUpdate_b2, the folder C:\ProgramData\Microsoft\DeviceSync\b2, the file C:\Users\Public\backgroundTask.exe and an Edge-named scheduled task that does not run the real Edge updater.

Will antivirus catch it?

Microsoft Defender for Endpoint began flagging the malicious binaries on November 9. The reports do not say which other security products detect it, so run the manual checks as well.

Does uninstalling Q-Dir remove the malware?

The reports do not say. The malware sets up its own startup entries in separate locations, so do not count on uninstalling Q-Dir alone.

The bigger lesson

The download came from a developer people trusted, and that is the point. Downloading software from an official site is not the same as checking it, just as updated is not the same as patched. Keep a list of every utility installed on admin machines, verify hashes before installing, and decide who is responsible for keeping that software in check.

To lock down admin workstations or have a suspect PC checked, see security hardening or request a quote.

Get security alerts like this one by email, along with our free checklist, at security alerts.

Sources: BleepingComputer; The Hacker News.

Share X LinkedIn Facebook

Was this article helpful?

We only keep the note with this article. No name, no email.

Protected by reCAPTCHA - Privacy and Terms.

Have a question about this article?

Ask it here and we will answer you directly by email. Questions are private, never posted.

Protected by reCAPTCHA - Privacy and Terms.

Security alerts by email

Hear about the next one first.

When attackers start using a flaw in software businesses run on, we email what it is, whether it touches you and what to do that week, with a round-up of our latest security writing. Free, one-click unsubscribe. You get the checklist straight away: 12 things to secure this week.

Protected by reCAPTCHA - Privacy and Terms.

Want a result like this?

Security alerts, breaches and the technology a business runs on: what happened, who it affects and what to do.

Get a Tech Quote

Security alerts by email

The next security hole is already out there. Hear about it from us first.

When attackers start using a flaw in software businesses run on, we email what it is, whether it touches you and what to do that week, with a round-up of our latest security writing. Free, one-click unsubscribe. You get the checklist straight away: 12 things to secure this week.

Protected by reCAPTCHA - Privacy and Terms.