Microsoft · Vendor blog

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

Published · Source: Microsoft

14 entities5 ATT&CK behaviors42 indicators16 claims

Entities & attribution

  • Artifact

    q-dir_installer_x64.exe

    “…ed Q-Dir binary appeared under several filenames, including Q-Dir_Installer_x64.exe, Q-Dir.exe, and Q-Dir_Autoupdate.exe. Match copies across d…”

    Page 1 · Paragraph 16

  • Artifact

    q-dir.exe

    “…under several filenames, including Q-Dir_Installer_x64.exe, Q-Dir.exe, and Q-Dir_Autoupdate.exe. Match copies across deployment l…”

    Page 1 · Paragraph 16

  • Artifact

    q-dir_autoupdate.exe

    “…ilenames, including Q-Dir_Installer_x64.exe, Q-Dir.exe, and Q-Dir_Autoupdate.exe. Match copies across deployment locations by file hash, and…”

    Page 1 · Paragraph 16

  • Artifact

    7zr.exe

    “… the genuine utility. A dedicated setup component retrieved 7zr.exe, a legitimate reduced command-line extractor from the 7-Zip…”

    Page 1 · Paragraph 24

  • Artifact

    python.exe

    “…iceSync\b2. The b2 package started py_client_b2_dll.py with python.exe; the later dsv2 package used pythonw.exe to start py_client…”

    Page 1 · Paragraph 25

  • Artifact

    pythonw.exe

    “…ient_b2_dll.py with python.exe; the later dsv2 package used pythonw.exe to start py_client_dsv2.py without a console window. Both p…”

    Page 1 · Paragraph 25

  • Artifact

    cmd.exe

    “…e terminal.exec handler passes a server-supplied command to cmd.exe, captures standard output and error output, and returns the…”

    Page 1 · Paragraph 36

  • Artifact

    winhost.exe

    “…AT was active, Microsoft observed PowerShell launch C:\Temp\winhost.exe. The executable connected to 8[.]210[.]203[.]136:443 from m…”

    Page 1 · Paragraph 50

  • Artifact

    backgroundtask.exe

    “A separate native payload, C:\Users\Public\backgroundTask.exe, connected to the campaign C2 at 47[.]239[.]64[.]37 on TCP …”

    Page 1 · Paragraph 51

  • Artifact

    backgroundtaskhost.exe

    “… was still running. Microsoft also observed C:\Users\Public\backgroundTaskHost.exe being created on disk.”

    Page 1 · Paragraph 52

  • Artifact

    curl.exe

    “…soft observed plugin-1001 launch cmd.exe, which in turn ran curl.exe and nslookup.exe to determine the device’s public IPv4 addr…”

    Page 1 · Paragraph 60

  • Artifact

    nslookup.exe

    “… plugin-1001 launch cmd.exe, which in turn ran curl.exe and nslookup.exe to determine the device’s public IPv4 address. The shell us…”

    Page 1 · Paragraph 60

  • Artifact

    powershell.exe

    “…Type == "ProcessCreated" | where FileName in~ ("cmd.exe", "powershell.exe", "pwsh.exe") | where InitiatingProcessFileName in~ ("pyth…”

    Page 1 · Paragraph 96

  • Artifact

    pwsh.exe

    “…eated" | where FileName in~ ("cmd.exe", "powershell.exe", "pwsh.exe") | where InitiatingProcessFileName in~ ("python.exe", "py…”

    Page 1 · Paragraph 96

MITRE ATT&CK behaviors

  • T1071.001 · Web Protocols

    Command and Control · C2 over HTTPS

    “…s identified persistence and recurring command-and-control (C2) communication, with attackers using the Python RAT for sys…”

    Page 1 · Paragraph 8

  • T1053.005 · Scheduled Task

    Persistence · Scheduled task

    “…uded a current-user Run value, DeviceSyncUpdate_b2, and the scheduled task \UPnp\MicrosoftEdge_dcntel. They relaunched the packaged in…”

    Page 1 · Paragraph 27

  • T1059.001 · PowerShell

    Execution · PowerShell execution

    “A subsequent PowerShell task searched Python’s site-packages directories for AI and…”

    Page 1 · Paragraph 48

  • T1547.001 · Registry Run Keys

    Persistence · Registry Run key

    “Defense evasion Files use system-like names or appear in a Run key. Microsoft Defender for Endpoint – ‘MasqueradingFile’ malw…”

    Page 1 · Paragraph 84

  • T1055 · Process Injection

    Privilege Escalation · Process injection

    “Prompt injection protection in Microsoft Defender for Office 365 – offici…”

    Page 1 · Paragraph 177

Indicators of compromise

Claims & evidence

  • Reported Claim

    Unpacking the SoftwareOK attack chain: A Python RAT and native backdoor exhibits C2 over HTTPS (T1071.001)

    “…s identified persistence and recurring command-and-control (C2) communication, with attackers using the Python RAT for sys…”

    Page 1 · Paragraph 8

  • Reported Claim

    Unpacking the SoftwareOK attack chain: A Python RAT and native backdoor exhibits Scheduled task (T1053.005)

    “…uded a current-user Run value, DeviceSyncUpdate_b2, and the scheduled task \UPnp\MicrosoftEdge_dcntel. They relaunched the packaged in…”

    Page 1 · Paragraph 27

  • Reported Claim

    Unpacking the SoftwareOK attack chain: A Python RAT and native backdoor exhibits PowerShell execution (T1059.001)

    “A subsequent PowerShell task searched Python’s site-packages directories for AI and…”

    Page 1 · Paragraph 48

  • Reported Claim

    Unpacking the SoftwareOK attack chain: A Python RAT and native backdoor exhibits Registry Run key (T1547.001)

    “Defense evasion Files use system-like names or appear in a Run key. Microsoft Defender for Endpoint – ‘MasqueradingFile’ malw…”

    Page 1 · Paragraph 84

  • Reported Claim

    Unpacking the SoftwareOK attack chain: A Python RAT and native backdoor exhibits Process injection (T1055)

    “Prompt injection protection in Microsoft Defender for Office 365 – offici…”

    Page 1 · Paragraph 177

  • Inferred Relationship

    C2 over HTTPS precedes Scheduled task

    “…uded a current-user Run value, DeviceSyncUpdate_b2, and the scheduled task \UPnp\MicrosoftEdge_dcntel. They relaunched the packaged in…”

    Page 1 · Paragraph 27

  • Inferred Relationship

    Scheduled task precedes PowerShell execution

    “A subsequent PowerShell task searched Python’s site-packages directories for AI and…”

    Page 1 · Paragraph 48

  • Inferred Relationship

    PowerShell execution precedes Registry Run key

    “Defense evasion Files use system-like names or appear in a Run key. Microsoft Defender for Endpoint – ‘MasqueradingFile’ malw…”

    Page 1 · Paragraph 84

  • Inferred Relationship

    Registry Run key precedes Process injection

    “Prompt injection protection in Microsoft Defender for Office 365 – offici…”

    Page 1 · Paragraph 177

  • Reported Claim

    8.210.69.51 used as network infrastructure

    “… Security (TLS). Microsoft also observed TCP connections to 8[.]210[.]69[.]51:9092, including events with the /ws path. The receive…”

    Page 1 · Paragraph 32

  • Reported Claim

    127.0.0.1 used as network infrastructure

    “…rosoft observed both DeviceSync agent variants listening on 127.0.0.1:3660. This was a local health-check listener, not an extern…”

    Page 1 · Paragraph 45

  • Reported Claim

    8.210.203.136 used as network infrastructure

    “…ell launch C:\Temp\winhost.exe. The executable connected to 8[.]210[.]203[.]136:443 from multiple devices over several days.”

    Page 1 · Paragraph 50

  • Reported Claim

    47.239.64.37 used as network infrastructure

    “…\Public\backgroundTask.exe, connected to the campaign C2 at 47[.]239[.]64[.]37 on TCP ports 7006 and 7007 and to 8[.]210[.]20[.]147:…”

    Page 1 · Paragraph 51

  • Reported Claim

    8.210.20.147 used as network infrastructure

    “… C2 at 47[.]239[.]64[.]37 on TCP ports 7006 and 7007 and to 8[.]210[.]20[.]147:443. Both native payloads made network connections in…”

    Page 1 · Paragraph 51

  • Reported Claim

    47.238.130.37 used as network infrastructure

    “…10.69.51" and RemotePort in (9876, 9092)) or (RemoteIP == "47.238.130.37" and RemotePort == 443) or (RemoteIP == "8.210.203.136" an…”

    Page 1 · Paragraph 99

  • Lore Hypothesis

    Investigation hypothesizes A loader sideloaded via a signed binary stages an in-memory implant

    “…s identified persistence and recurring command-and-control (C2) communication, with attackers using the Python RAT for sys…”

    Page 1 · Paragraph 8