Skip to main content
Mallory
← Back to News
internet-facing-service-vulnerabilityinitial-access-methodpersistence-methoddefense-evasion-method

SQL Injection Intrusion Led to BadIIS Persistence and XMRig Deployment

Vulnerability Disclosure · 1 source · Updated 5mo ago · First seen Jul 13, 2026

SQL Injection Intrusion Led to BadIIS Persistence and XMRig Deployment

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
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

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

3 events · Jun 26, 2026 – Jul 13, 2026
  1. Jul 13, 20265mo ago

    Huntress publishes technical details of the intrusion

    Huntress published a report detailing the June 26 intrusion, including the SQL injection vector, post-compromise persistence steps, BadIIS installation, XMRig deployment, and additional payloads such as PowerShell scripts, batch files, and CnCrypt Protect.

    Threat Actors Achieve Persistence After SQL Injection | Huntress
  2. Jun 26, 20265mo ago

    Attacker establishes persistence and deploys miner after intrusion

    Following the SQL injection compromise, the actor used base64-encoded PowerShell, performed reconnaissance, enabled Remote Desktop Services, created a local administrator account named adminweb2$, attempted to disable Windows Defender, installed BadIIS modules, and deployed XMRig with persistence via nssm.exe.

    Threat Actors Achieve Persistence After SQL Injection | Huntress
  3. Jun 26, 20265mo ago

    Threat actor exploits SQL injection at technology-sector organization

    On June 26, a threat actor exploited an SQL injection flaw in a web page hosted on an endpoint running IIS and Microsoft SQL Server at a technology-sector organization, gaining initial access.

    Threat Actors Achieve Persistence After SQL Injection | Huntress
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 →

Malware

2 linked

Affected products

1 linked
Internet Information Services

Organizations

1 linked
Microsoft Corporation

Observables

3 linked

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

Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Source coverage

Sources

1 reference tracked. Mallory keeps watching after this page renders.

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.