How attackers abuse T-SQL on MS SQL servers: FortiGuard Labs
News | 18.11.2026
Microsoft SQL Server instances reachable from the network remain a frequent target. Once attackers obtain database access, they can use built-in Transact-SQL (T-SQL) capabilities to run commands and deliver malware without bringing separate tooling. FortiGuard Labs has published research on this technique, which shows why a database server must be protected and monitored like an endpoint, not only as a data store. Softprom is the official distributor of Fortinet.
What was announced
On November 12, 2026, FortiGuard Labs, the threat intelligence and research team of Fortinet, published an analysis titled T-SQL Being Abused to Deliver Malware on Compromised MS SQL Servers. The research focuses on attacks in which MS SQL servers are already compromised and the attacker uses T-SQL, the native query language of SQL Server, as the delivery channel for malicious payloads.
This is a living-off-the-land approach: legitimate database functionality replaces dedicated attack tools, which makes malicious activity harder to distinguish from routine administrative work.
Why this matters
Database servers store business-critical data and often run under privileged service accounts. A compromised MS SQL instance can become a starting point for cryptomining, ransomware, lateral movement or data theft.
For CISOs and IT directors, the key risk is a visibility gap: SQL activity is frequently managed by database teams, while SOC monitoring and EDR policies may not cover what happens inside the database engine. Procurement leaders should evaluate whether current security tools provide threat intelligence and detection for server workloads, not only for user devices.
Technical details
- Attack surface: MS SQL instances exposed to the network, especially those with weak or reused credentials for privileged accounts.
- Delivery channel: T-SQL statements executed after the attacker authenticates to the database.
- Commonly abused features: capabilities such as xp_cmdshell, OLE Automation procedures and CLR assemblies can enable OS-level execution from SQL Server when they are enabled.
- Detection points: unexpected configuration changes, child processes spawned by sqlservr.exe and outbound connections from database hosts.
- Hardening: restrict network exposure, disable unused extended features, enforce strong authentication and least-privilege service accounts.
- Fortinet coverage: FortiGuard Labs research feeds threat intelligence used across the Fortinet Security Fabric.
FAQ
What does T-SQL abuse mean in malware attacks?
It means attackers use legitimate SQL Server commands to run code or download payloads. After gaining database access, they rely on built-in features instead of separate tools, which helps them blend in with normal activity.
How can we tell if our MS SQL server is being used to deliver malware?
Look for unusual activity on the database host. Typical signals include unexpected configuration changes, new processes started by sqlservr.exe, and outbound connections to unknown addresses.
How does Fortinet help protect MS SQL servers?
Fortinet combines FortiGuard Labs threat intelligence with Security Fabric products for network, endpoint and server protection, helping teams detect and block malicious activity originating from compromised database servers.
Softprom and Fortinet
Softprom is the official distributor of Fortinet. Our team helps partners and customers select and deploy Fortinet solutions to protect servers, networks and endpoints against threats such as database-borne malware.
Learn more about the solutions and request a consultation on the vendor page Fortinet
Prepared by the Softprom editorial team based on vendor materials (Softprom DistriFlow). Source: original article.