T-SQL Being Abused to Deliver Malware on Compromised MS SQL Servers
Reporting by Fortinet Threat ResearchRead the original at feeds.fortinet.com
Executive Summary
Facts Only
* Attackers use exposed SQL Server instances and weak credentials to deliver malware.
* The malware scans IP ranges for exposed SQL Servers.
* Malware attempts to log in using supplied credentials.
* Upon successful login, the malware executes malicious T-SQL commands on the compromised server.
* The infection chain involves the payload downloading supporting files from a file server.
* The malware uses Naabu to scan IP ranges for open TCP port 1433.
* Malware performs brute-force attacks against SQL Server logins using user and password lists.
* T-SQL commands are used to download or extract additional malware loaders onto the compromised server.
* One downloaded payload is an XMR Miner (MicrosoftEdgeUpdate.exe) that mines Monero.
* Another payload is a Gh0st RAT (winlogon.exe) providing various remote control and data theft features.
Full Take
The narrative describes a highly sophisticated exploitation technique that chains together network reconnaissance, credential stuffing, and in-database command execution to achieve multi-stage persistence and monetization. The core pattern involves exploiting the inherent trust relationship within a SQL Server environment—using T-SQL commands not just for data querying but as a vector for arbitrary code execution and subsequent file system manipulation. This technique effectively bridges network exploitation (Naabu scanning) with internal server compromise (T-SQL execution) and external command-and-control (FTP downloads). The use of scheduled tasks to establish persistence, disguised by imitating legitimate system updates, exemplifies evasion tactics against standard monitoring. Furthermore, the final stage involves deploying dual malicious functions: cryptocurrency mining for resource exploitation and remote access via a RAT for persistent control over the compromised infrastructure. This entire sequence reveals an attack playbook that weaponizes administrative tools (SQL) to facilitate lateral movement and payload delivery, suggesting that security measures focused solely on perimeter defense or standard endpoint detection may miss internal logic abuses. The implication is that monitoring must evolve beyond simple file signatures to understand the operational semantics of high-privilege commands like T-SQL execution in context.
Bridge Questions:
How can organizations audit and monitor the logical flow of administrative commands executed within database systems to detect anomalous payload delivery rather than just observing file activity? What systemic controls are necessary to prevent malware from leveraging legitimate database functionality for remote execution? How should security tooling be adapted to identify when legitimate T-SQL functions, such as `xpcmdshell`, are being abused for secondary objectives like external file retrieval and persistence establishment?
From the original · Fortinet Threat Research
FortiGuard Labs Threat Research T-SQL Being Abused to Deliver Malware on Compromised MS SQL Servers Attackers use exposed SQL Server instances and weak credentials to deploy cryptomining and remote access malware Affected Platforms: Microsoft Windows Impacted Users: Microsoft SQL Server Impact: XMR Miner and Remote Control of the compromised server Severity Level: High In early October 2026…Read the full story at feeds.fortinet.com
Sentinel unavailable
The automated check of the source article's wording did not complete, so no result is shown.
This looks only at the wording of the original source article, not at this page's AI-written sections. A small local AI model made this estimate. It has not been checked against known human and machine texts, so treat it as provisional. It cannot show who wrote an article.
