SQL Injection Intrusion Led to BadIIS Persistence and XMRig Deployment
Vulnerability Disclosure · 1 source · Updated 5mo 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.
Why it matters
Impact assessment
A web application SQL injection led to full host compromise on a system running IIS and Microsoft SQL Server, followed by persistence, remote access enablement, and cryptocurrency mining. Organizations hosting internet-facing web applications on Windows servers, especially combined IIS/MSSQL systems, are most exposed because the root cause was insecure input handling in a web page rather than direct database access.
The impact is high at the affected host level: unauthorized administrator creation, Remote Desktop enablement, attempted Defender suppression, malicious IIS module installation, and XMRig deployment indicate both operational disruption risk and ongoing attacker monetization. The reported case appears targeted to a specific victim rather than a mass exploitation campaign, but the tradecraft is reusable and the initial access vector is common across many environments.
Supporting facts
- A technology-sector organization was compromised on June 26.
- Initial activity was observed through sqlservr.exe on a host running both IIS and Microsoft SQL Server.
- Huntress determined the actor exploited an SQL injection flaw in a web page caused by improper input validation.
- Post-compromise actions included enabling Remote Desktop Services, creating local administrator account adminweb2$, installing BadIIS modules, and deploying XMRig.
- Huntress warned that removing artifacts without fixing the SQL injection weakness would allow re-entry.
- No explicit statement of broader in-the-wild exploitation volume was provided beyond this incident.
Affected entities and products
- Microsoft IIS
- Microsoft SQL Server
- Windows Server endpoints hosting vulnerable web applications
- Technology-sector organizations in this case, but exposure applies broadly to internet-facing IIS/MSSQL deployments
Severity and scope
- Severity: high for compromised hosts due to persistence, privilege abuse, defense evasion, and miner deployment
- Scope: currently a single reported intrusion, but the exposure pattern is broadly relevant
- Known exploitation: yes, exploitation occurred in this incident


