Executive Summary
In early 2022, a cluster of activity was observed targeting publicly accessible Microsoft SQL Servers. The attack begins with high-volume brute force attempts against the 'sa' account, in some cases exceeding 24,000 failed logins before success. Once authenticated, the actors leverage the `xp_cmdshell` stored procedure to gain command-line access to the underlying Windows operating system.
The intrusion progresses through defense evasion by killing various antivirus processes and using `certutil` to decode malicious payloads. The actors establish extensive persistence using WMI event subscriptions, scheduled tasks, and Image File Execution Options (IFEO) injection. The final objective is the deployment of an XMRig cryptominer, which is often disguised as legitimate system processes like `smss.exe` and supported by kernel-mode drivers such as `WinRing0x64.sys`.
This campaign highlights the severe risk of exposing database management ports (TCP/1433) to the public internet and using weak administrative credentials. Organizations with MSSQL deployments should prioritize hardening service accounts and disabling powerful features like `xp_cmdshell` unless strictly necessary.
