Microsoft · Vendor blog
Unpacking the SoftwareOK attack chain: A Python RAT and native backdoor
Published · Source: Microsoft
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
filepath
C:\ProgramData\Microsoft\DeviceSync\b2“Setup extracted the package under C:\ProgramData\Microsoft\DeviceSync\b2. The b2 package started py_client_b2_dll.py with python.exe…”
Page 1 · Paragraph 25
ipv4
8.210.69[.]51“… 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
ipv4
127.0.0[.]1“…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
ipv4
8.210.203[.]136“…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
filepath
C:\Temp\winhost[.]exe“…Python RAT 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
ipv4
47.239.64[.]37“…\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
ipv4
8.210.20[.]147“… 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
filepath
C:\Users\Public\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
filepath
C:\Users\Public\backgroundTaskHost[.]exe“…a native payload was still running. Microsoft also observed C:\Users\Public\backgroundTaskHost.exe being created on disk.”
Page 1 · Paragraph 52
ipv4
47.238.130[.]37“…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
domain
mail.c1a2[.]top“Delivery URLs hxxps[:]//mail[.]c1a2[.]top/dl/7zr[.]exe hxxps[:]//mail[.]c1a2[.]top/dl/dsv2_py39_a…”
Page 1 · Paragraph 114
ipv4
47.238.75[.]255“Other associated servers 47[.]238[.]75[.]255 and 47[.]238[.]204[.]139 – Associated with the Python…”
Page 1 · Paragraph 120
ipv4
47.238.204[.]139“Other associated servers 47[.]238[.]75[.]255 and 47[.]238[.]204[.]139 – Associated with the Python RAT infrastructure.”
Page 1 · Paragraph 120
domain
cloudfronts[.]top“Domains mail[.]c1a2[.]top under c1a2[.]top (staging); cloudfronts[.]top (associated infrastructure).”
Page 1 · Paragraph 121
sha256
434b67dd403c74752b336fbb4fc94ee3a6fb615168e3fd31baea71d1a356ecd8“Q-Dir 434b67dd403c74752b336fbb4fc94ee3a6fb615168e3fd31baea71d1a356ecd8”
Page 1 · Paragraph 125
sha256
8ac6901a941788ab9675a9ec9bebdbc00074cb76f19a7d84c2e1b0ddbcee4f48“Q-Dir 8ac6901a941788ab9675a9ec9bebdbc00074cb76f19a7d84c2e1b0ddbcee4f48”
Page 1 · Paragraph 126
sha256
cf9e2433540d0b8ae8c9f4c9d5f11770343d413c1cfb201c5edae7155f88585a“Q-Dir cf9e2433540d0b8ae8c9f4c9d5f11770343d413c1cfb201c5edae7155f88585a”
Page 1 · Paragraph 127
sha256
d1a2cf8882c254156848f4a12b6c6837a3cf0e460f876c6f8b00d32a1560640a“Q-Dir d1a2cf8882c254156848f4a12b6c6837a3cf0e460f876c6f8b00d32a1560640a”
Page 1 · Paragraph 128
sha256
7afa1e77c115eaa7798237039fde67c8a69686e7d9a4034a8df54aff2d1a126d“Q-Dir 7afa1e77c115eaa7798237039fde67c8a69686e7d9a4034a8df54aff2d1a126d”
Page 1 · Paragraph 129
sha256
1b7b7947527a05f0fae268b16894440549c2dd512d421a06960e27b5fb1d5fa0“Q-Dir 1b7b7947527a05f0fae268b16894440549c2dd512d421a06960e27b5fb1d5fa0”
Page 1 · Paragraph 130
sha256
c41bd9eefd7a63fa329b24144a3483abac012ebc11bd5606b6c8295251d46422“Q-Dir c41bd9eefd7a63fa329b24144a3483abac012ebc11bd5606b6c8295251d46422”
Page 1 · Paragraph 131
sha256
551e5744b24019f016f9ee8dd3a2c00429da587b20321abaef55c18c0a655a5d“Q-Dir 551e5744b24019f016f9ee8dd3a2c00429da587b20321abaef55c18c0a655a5d”
Page 1 · Paragraph 132
sha256
7524fcf3ffc44fc2e9a53af761c2a308edac31d02df3dfb1a4b57504243aec48“Q-Dir 7524fcf3ffc44fc2e9a53af761c2a308edac31d02df3dfb1a4b57504243aec48”
Page 1 · Paragraph 133
sha256
b45ba4a1d9a25116b94e95ef48d63fffda7d77bd358d17d74c7575ce39986b84“Q-Dir b45ba4a1d9a25116b94e95ef48d63fffda7d77bd358d17d74c7575ce39986b84”
Page 1 · Paragraph 134
sha256
ee782d990bdeb1d8dd12ad36f1202f8810c63be92a56ad382ba8f117a5c05be3“DesktopOK ee782d990bdeb1d8dd12ad36f1202f8810c63be92a56ad382ba8f117a5c05be3”
Page 1 · Paragraph 135
sha256
c12651f2988bb5e05afd1f4b1e6bce618111a4703f1aadc006bfacc6ac7e1d90“DesktopOK c12651f2988bb5e05afd1f4b1e6bce618111a4703f1aadc006bfacc6ac7e1d90”
Page 1 · Paragraph 136
sha256
f96cab94d9f0e0000dfef8b9fce16bcefd23679443cc8ba8f7811a55ea5799ec“DesktopOK f96cab94d9f0e0000dfef8b9fce16bcefd23679443cc8ba8f7811a55ea5799ec”
Page 1 · Paragraph 137
sha256
8c172c421129bda890b504e89d1bb72af477be9896b22a576920c050442b4a04“DesktopOK 8c172c421129bda890b504e89d1bb72af477be9896b22a576920c050442b4a04”
Page 1 · Paragraph 138
sha256
5b43284e48edee4acbab49bc5a68eb21d3a369a058d859689b6a5dd2042a5e2a“DesktopOK 5b43284e48edee4acbab49bc5a68eb21d3a369a058d859689b6a5dd2042a5e2a”
Page 1 · Paragraph 139
sha256
bdbbe28cde3dee061536e524bc2a14316015db0c958cad83023790d32a4f8d99“DesktopOK bdbbe28cde3dee061536e524bc2a14316015db0c958cad83023790d32a4f8d99”
Page 1 · Paragraph 140
sha256
393d2f9f05affa88aaa19f29f041d28fe5c3e1fc2fd84c76d1e2f1aa6da74a83“DesktopOK 393d2f9f05affa88aaa19f29f041d28fe5c3e1fc2fd84c76d1e2f1aa6da74a83”
Page 1 · Paragraph 141
sha256
ff4ec1cca4746e33d1205ed434e1e2ac9cee71fec477b032f56d3bde577626d2“DesktopOK ff4ec1cca4746e33d1205ed434e1e2ac9cee71fec477b032f56d3bde577626d2”
Page 1 · Paragraph 142
sha256
1e94b4d50d9d10e20b509d4606c7ca0b35d35c6d7f0bf24242c4050c238e054d“dsv2 runtime installer 1e94b4d50d9d10e20b509d4606c7ca0b35d35c6d7f0bf24242c4050c238e054d”
Page 1 · Paragraph 145
sha256
b64997b57f3b9459fef2ba8d5ab5826a72b1532937c8f9104d63c9f5d5266924“dsv2 console installer b64997b57f3b9459fef2ba8d5ab5826a72b1532937c8f9104d63c9f5d5266924”
Page 1 · Paragraph 146
sha256
ca512d73d5b91f415342e8dfd98aaacb8125cbd448ef95e784af64ab45705ff6“b2 agent archive ca512d73d5b91f415342e8dfd98aaacb8125cbd448ef95e784af64ab45705ff6”
Page 1 · Paragraph 147
sha256
2035d4fd9474e8f765ea23b16b748018c0001cdd82e68991b768d7d4b654ce55“dsv2 agent archive 2035d4fd9474e8f765ea23b16b748018c0001cdd82e68991b768d7d4b654ce55”
Page 1 · Paragraph 148
sha256
2d382bd5998d06dc6a7ab111c077e4468c6d7694af94933f869976115f8e139c“VmBaseTool Python agent 2d382bd5998d06dc6a7ab111c077e4468c6d7694af94933f869976115f8e139c”
Page 1 · Paragraph 149
sha256
288ec3ce9379e2f29f246d2fb1286bdf95c4dade99d6b037ead18db35b2a859c“winhost.exe 288ec3ce9379e2f29f246d2fb1286bdf95c4dade99d6b037ead18db35b2a859c”
Page 1 · Paragraph 150
sha256
be30ca3f9298487611dd1d689d963665d8a74e494ad22006b6257518acf8ca44“backgroundTask.exe be30ca3f9298487611dd1d689d963665d8a74e494ad22006b6257518acf8ca44”
Page 1 · Paragraph 151
sha256
7b4d5c4ab6db6ccdd0a0ad40d4177c85e7c1daa7c58b691303ff9608e8397b6c“backgroundTaskHost.exe 7b4d5c4ab6db6ccdd0a0ad40d4177c85e7c1daa7c58b691303ff9608e8397b6c”
Page 1 · Paragraph 152
sha256
efff67d3ac9fc5f70710c3d915f58c1e9a35ad86a3bc9f716ba72533f13ee1a1“KKKD worker / winhost efff67d3ac9fc5f70710c3d915f58c1e9a35ad86a3bc9f716ba72533f13ee1a1”
Page 1 · Paragraph 153
sha256
4b2097d8cbec7d29068111628a7689941c047fcf5478ab0796b9638979c2a535“KKKD worker / backgroundTask 4b2097d8cbec7d29068111628a7689941c047fcf5478ab0796b9638979c2a535”
Page 1 · Paragraph 154
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