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 4mo 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.

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, 20264mo 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.