T-SQL Abuse Campaign Targets Microsoft SQL Servers
Score: 8/10

T-SQL Abuse Campaign Targets Microsoft SQL Servers

An active campaign targets Internet-facing Microsoft SQL Servers using T-SQL commands to deploy XMRig miners and Gh0st RAT variants.

Executive Summary

In October 2026, a high-severity campaign was identified targeting exposed Microsoft SQL Server instances. Attackers utilize a Go-based payload that incorporates the open-source Naabu scanner to identify reachable servers on TCP port 1433, followed by brute-force credential stuffing attacks to gain administrative access.

Once access is achieved, the threat actors execute malicious T-SQL batches to enable 'xp_cmdshell', allowing for remote command execution. This capability is used to deploy a multi-stage infection chain that ultimately delivers XMRig cryptocurrency miners and the Gh0st RAT remote access trojan. The infrastructure relies on compromised or actor-controlled domains and FTP servers for payload delivery.

This campaign poses a significant risk to organizations with poorly secured or exposed database infrastructure. Beyond the immediate resource hijacking for cryptomining, the deployment of Gh0st RAT provides attackers with full system control, enabling data exfiltration, keylogging, and further lateral movement within the network.

Key Details

Threat Name

MS SQL Server T-SQL Abuse Campaign

Affects

—

Adversary

—

Malware/Tools

Gh0st RAT, XMRig

Report Score

8out of 10
Quality Score
Good
IOC Quality9
TTP Details9
Detection Guidance6
Enterprise Relevance9
Clarity & Structure9
Technical Depth8

Sources