XMRig Cryptominer via MSSQL Brute Force
Score: 9/10

XMRig Cryptominer via MSSQL Brute Force

Threat actors are targeting internet-exposed MSSQL servers via SA account brute forcing to deploy XMRig miners using xp_cmdshell and multi-layered persistence.

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.

Key Details

Threat Name

XMRig Miner via MSSQL Brute Force

Affects

Windows

Adversary

—

Malware/Tools

XMRig, NetworkServiceExploit, NetworkServiceExploit.exe

Report Score

9out of 10
Quality Score
Excellent
IOC Quality9
TTP Details9
Detection Guidance9
Enterprise Relevance9
Clarity & Structure9
Technical Depth8

Sources