SQL Injection Intrusion Led to BadIIS Persistence and XMRig Deployment
Vulnerability Disclosure · 1 source · Updated 4mo ago · First seen Jul 13, 2026

A threat actor exploited an SQL injection flaw in a web page at a technology-sector organization, compromising an endpoint running IIS and Microsoft SQL Server and then carrying out extensive post-exploitation activity. Huntress reported the attacker used base64-encoded PowerShell for payload delivery, ran reconnaissance including tasklist /svc, and exfiltrated process information to an OAST domain. The actor then enabled Remote Desktop Services, created a new local administrator account named adminweb2$, and attempted to disable Windows Defender to retain access and reduce detection.
The intrusion escalated into broad persistence and monetization efforts on the same host. The attacker installed known BadIIS modules using appcmd.exe, downloaded the XMRig cryptocurrency miner, hid miner-related files with attrib.exe, and used nssm.exe to keep the miner running persistently. Additional payloads included PowerShell and batch files such as qdcjoke1.2.ps1, c_joke1.2.ps1, and qd_tjoke.bat, along with CnCrypt Protect, likely for defense evasion. Huntress said the case stood out for the volume of system changes made after the initial compromise and warned that remediation must address the original SQL injection weakness to prevent re-entry.


