Kingminer Botnet Targets Exposed Microsoft SQL Servers for Cryptomining
Attack Tradecraft · 4 sources · Updated 3mo ago · First seen May 18, 2022

The Kingminer botnet has been repeatedly observed compromising publicly exposed Microsoft SQL Server instances by brute-forcing weak credentials on TCP port 1433, then deploying cryptocurrency miners and follow-on tooling. Researchers linked these intrusions to opportunistic campaigns that install customized XMRig miners, use downloader scripts and fileless PowerShell execution, and in some cases deliver Cobalt Strike beacons for persistence and post-compromise control. Investigations also found payload staging through GitHub, abuse of legitimate Windows binaries including MSBuild.exe, rundll32.exe, control.exe, and main.cpl, and injection into trusted processes such as wwanmm.dll to reduce detection.
Threat reports describe Kingminer as a moderately sophisticated criminal botnet that combines public offensive tools with custom malware components, including reflective loading, DLL side-loading, and credential theft capabilities derived from tools such as Mimikatz. In one investigated intrusion, sqlservr.exe launched an obfuscated VBScript that downloaded a standalone PowerShell binary and executed additional scripts in memory before starting a miner. The malware also checked systems for BlueKeep-related hotfixes KB4499175 and KB4500331 and disabled RDP on vulnerable hosts, apparently to block competing botnets from exploiting the same machines. Defenders were advised to enforce strong SQL passwords, restrict internet exposure, patch public-facing services, and improve logging and monitoring, as repeated attack attempts stopped once the underlying weakness was remediated.


