Threat researchTracked by EncryptLayer intelligence

T-SQL Being Abused to Deliver Malware on Compromised MS SQL Servers

Published by
Fortinet Blog
Published
12 Nov 2026
Indicators
4 verified

The report

FortiGuard Labs analyzes a campaign that brute-forces Microsoft SQL Server logins and abuses T-SQL to deploy a Monero miner and Gh0st RAT…

Fortinet Blog

Read the full analysis: T-SQL Being Abused to Deliver Malware on Compromised MS SQL Servers (Fortinet Blog).

What the report says

FortiGuard Labs reports an active campaign, uncovered in early October 2026, that targets Internet-facing Microsoft SQL Server instances. A Go-based scanner finds servers with port 1433 open, brute-forces logins, and uses T-SQL commands to deploy malware. The report says the end result is an XMR miner and a Gh0st RAT variant giving remote control of the compromised server.

  • The payload dllhost.exe is a UPX-packed Go binary that embeds the open-source Naabu (v2) scanner. It fetches a target IP range from hxxp://site.vietnam852[.]com:88/ip.php, converts it to a /16 CIDR range, and scans for open TCP port 1433, logging hits to %temp%\Result.txt.
  • It downloads eight supporting files (2018.sql, dwm.exe, go.bat, go.vbs, out.bat, user.txt, pass.txt, sqlcmd.exe) to %Temp%. It persists through a scheduled task that runs every 30 minutes and imitates a Microsoft Edge Update task.
  • dwm.exe is a .NET executable (assembly name CSQL.exe) that brute-forces SQL Server logins using user.txt (for example “sa” and “admin”) and pass.txt, which holds 2700+ predefined passwords. After a successful login it runs the T-SQL commands in 2018.sql on the server.
  • The 2018.sql batches enable xp_cmdshell and download an executable to C:\Users\Public, renamed Google.exe or payload.exe, from the HTTP or FTP server. They also schedule a daily task named Microsoft_UPDATES and extract an embedded executable to C:\Users\Public\Secs.exe, which is copied to the Startup folder.
  • Secs.exe is a downloader that pulls executables from ftp.vietnam852[.]com using FtpGetFileW() and runs them. It creates a daily scheduled task disguised as a Microsoft Edge update. It also sends the host’s public IP, country, Windows edition, processor and RAM, install time, and user and host name to the backend.
  • MicrosoftEdgeUpdate.exe, packed with Themida and a custom LZSS packer, is a Monero (XMR) miner that uses the server’s CPU. It mines via xmr-ru.kryptex.network and reports to the server with the User-Agent “XMRig Reporter”.

Named in the report: dllhost.exe, Naabu, go.vbs, go.bat, out.bat, dwm.exe, CSQL.exe, 2018.sql.

This digest was written from the report text itself by a language model and checked by script: every number and CVE id in it appears in the report. The report is the source; read it for the full detail.

Indicators

Malware C

  • server[.]vietnam852[.]com
  • www[.]swordaa[.]com
  • site[.]vietnam852[.]com
  • site[.]hfgjjkrewjk[.]com

Defanged so they cannot be clicked by mistake: replace [.] with a dot. Shared hosting and CDN addresses named in the report are left out on purpose, so blocking these does not break legitimate sites.

How this is tracked

EncryptLayer intelligence, A.R.P. Syndicate’s open threat feed, reviews each indicator against the published report before adding it (#41). This page is generated from that record and the report itself; the indicators are never rewritten.