# SoftwareOK: SoftwareOK Q-Dir and DesktopOK: tampered installers shipped a SYSTEM Python RAT

> **Safety notice:** Read-only filesystem, registry, and task inspection only; modifies nothing.

- **Incident date:** Nov 9–27, 2026
- **Disclosed:** Nov 27, 2026
- **Source disclosure:** https://thehackernews.com/2026/11/hackers-trojanize-official-q-dir-and.html

## Reproduction lab
Read-only Windows endpoint sweep checking Authenticode signatures on installed Q-Dir or DesktopOK binaries and looking for DeviceSync artifacts.

```bash
# verify Authenticode signatures on any local Q-Dir or DesktopOK executables
Get-ChildItem -Path 'C:\Program Files*', "$env:USERPROFILE\Downloads" -Include '*Q-Dir*','*DesktopOK*' -Recurse -ErrorAction SilentlyContinue | Get-AuthenticodeSignature
```

## Policies and detection rules

### `softwareok-devicesync-rat.yaml`
Sigma rule catching Python execution under ProgramData\Microsoft\DeviceSync, the DeviceSyncUpdate_b2 Run key, and masqueraded \UPnp\ scheduled tasks.

```yaml
title: SoftwareOK Tampered Updater Python RAT Persistence
status: production
logsource:
  category: process_creation
  product: windows
detection:
  devicesync_py:
    Image|endswith:
      - '\pythonw.exe'
      - '\python.exe'
    CommandLine|contains:
      - '\ProgramData\Microsoft\DeviceSync\'
      - 'py_client_dsv2.py'
  upnp_task:
    Image|endswith: '\schtasks.exe'
    CommandLine|contains|all:
      - '/create'
      - '\UPnp\'
  run_key:
    CommandLine|contains: 'DeviceSyncUpdate_b2'
  condition: devicesync_py or upnp_task or run_key
level: critical
```

### `hunt-qdir-devicesync.ps1`
Read-only PowerShell hunt checking Windows endpoints for DeviceSync staging files, the Run key, and disguised \UPnp\ tasks.

```sh
# Check staging directory, Run key, and disguised scheduled task
Test-Path 'C:\ProgramData\Microsoft\DeviceSync\b2'
Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run' -ErrorAction SilentlyContinue | Select-Object DeviceSyncUpdate_b2
Get-ScheduledTask -TaskPath '\UPnp\' -ErrorAction SilentlyContinue | Select-Object TaskName, State
```

## Indicators of compromise
- **url:** `mail.c1a2.top (7zr.exe and dsv2_py39_agent.7z)` (External staging host contacted by tampered Q-Dir_AutoUpdate.exe (AhnLab ASEC).)
- **ip:** `8.210.69.51 (TCP 9876)` (Command-and-control server contacted by py_client_dsv2.py (AhnLab ASEC).)
- **log:** `C:\ProgramData\Microsoft\DeviceSync\b2, py_client_dsv2.py, Run key DeviceSyncUpdate_b2, \UPnp\ Edge task` (Endpoint staging, payload, and persistence indicators across Q-Dir 12.83–12.85 and DesktopOK 12.82/12.85.)
