Skip to main content
Mallory
← Back to News
credential-access-methodinternet-exposed-servicebotnet-infrastructurepayload-delivery-evasion

Kingminer Botnet Targets Exposed Microsoft SQL Servers for Cryptomining

Attack Tradecraft · 4 sources · Updated 3mo ago · First seen May 18, 2022

Kingminer Botnet Targets Exposed Microsoft SQL Servers for Cryptomining

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.

Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · Jul 30, 2019 – May 18, 2022
  1. May 18, 20225y ago

    Trend Micro investigates Kingminer intrusion on public-facing SQL Server

    Trend Micro’s Managed XDR team investigated a Kingminer attack against a client’s exposed Microsoft SQL Server, tracing an infection chain from sqlservr.exe to obfuscated VBScript, GitHub-hosted PowerShell tooling, in-memory payload execution, and a cryptocurrency miner. The investigation also found BlueKeep hotfix checks and logic to disable RDP on vulnerable legacy Windows systems.

    Uncovering a Kingminer Botnet Attack Using Trend Micro Managed XDR | Trend Micro (US)
  2. Feb 22, 20225y ago

    ASEC observes new SQL Server attack wave deploying Cobalt Strike and miners

    AhnLab ASEC observed a new wave of attacks against publicly exposed Microsoft SQL Servers with weak passwords, where attackers brute-forced access, installed Cobalt Strike, and dropped coin miners including KingMiner, Lemon Duck, and Vollgar. ASEC assessed that the campaign’s download and command-and-control URLs pointed to a single attacker.

    Vulnerable Microsoft SQL Servers targeted with Cobalt Strike
  3. Jun 9, 20206y ago

    Sophos documents Kingminer’s SQL brute-force and BlueKeep-defense tactics

    Sophos reported that Kingminer was spreading primarily by brute-forcing Microsoft SQL Server credentials, while also experimenting with EternalBlue-based propagation. The report also described the botnet checking for BlueKeep-related patches and disabling RDP on vulnerable hosts to keep competing botnets out.

    Kingminer escalates attack complexity for cryptomining | SOPHOS
  4. Jul 30, 20197y ago

    360 Total Security reports a new Kingminer variant abusing weak passwords

    360 Total Security published research describing a new Kingminer cryptomining trojan variant spreading via weak-password attacks. The reference indicates this reporting occurred in late July 2019.

    weak-password-was-blasted-again-kingminer-mining-new-trojan-variant-online
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Observables

14 linked

Indicator values are masked on this page. View all 14 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.