Kingminer Botnet Targets Exposed Microsoft SQL Servers for Cryptomining
Attack Tradecraft · 4 sources · Updated 4mo 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.
Why it matters
Impact assessment
Kingminer primarily affects organizations running internet-exposed Microsoft SQL Server instances, especially systems with weak credentials and legacy or insufficiently patched Windows hosts. The immediate impact is unauthorized compute hijacking for Monero mining, but observed follow-on activity raises the risk to broader compromise, including credential theft, persistence, and lateral movement through Cobalt Strike.
The exposure is broad rather than narrowly targeted because the botnet opportunistically scans TCP 1433 and brute-forces SQL credentials at scale. Multiple reports describe repeated exploitation attempts in the wild, and defenders observed attacks stopping only after the underlying exposure was remediated.
Affected populations
- Organizations with publicly exposed Microsoft SQL Server services on TCP 1433
- Environments using weak SQL administrator or service account passwords
- Windows systems running legacy versions from Windows 2000 through Windows 7
- Hosts lacking BlueKeep-related hotfixes such as KB4499175 and KB4500331
Severity and business risk
- Resource theft and performance degradation from Monero mining
- Increased operational risk from persistence and post-compromise tooling
- Potential credential theft through Mimikatz-derived capability
- Elevated risk of lateral movement where Cobalt Strike is deployed
- Reputational and financial impact from prolonged unauthorized access on public-facing infrastructure
Scope and exploitation status
- Opportunistic, internet-scale targeting of exposed SQL servers
- Repeated brute-force and malware drop attempts documented by investigators
- Confirmed in-the-wild exploitation by criminal botnet operators
- Campaigns linked to payload staging on GitHub and rotating attacker infrastructure


