SQL Injection Attackers Reshape a Victim’s Environment with Persistence and Malware

· Original article ↗

Summary

Huntress details an incident in which attackers exploited SQL injection to access an endpoint, establish remote persistence, install BadIIS modules and an XMRig miner, and evade detection.

Key points

  • Attackers gained endpoint access by exploiting an SQL injection flaw in a web page hosted alongside IIS.
  • They used PowerShell to run reconnaissance, including tasklist /svc, and sent the results to 334thribetlhkyo977gqrcht1k7bvdj2[.]oastify[.]com.
  • The attackers enabled Remote Desktop Services, created an administrator account named adminweb2$, and disabled Windows Defender.
  • They installed BadIIS modules HttpFastCgiModule.dll and HttpCgiModule.dll, associated with SEO fraud techniques.
  • They downloaded an XMRig cryptocurrency miner, concealed related files with Windows attributes, and configured persistence using nssm.exe.
  • Huntress recommends identifying and fixing the initial access route, maintaining an accurate asset inventory, reducing attack surface, and monitoring applications and endpoints.

Article Details

Attack Vectors
  • The actor gained access by exploiting SQL injection in a web page on an endpoint running IIS; the article says user input was not properly validated.
  • After access, the actor used base64-encoded PowerShell to download scripts and payloads.
  • The actor enabled Terminal Services, created the adminweb2$ account, added it to the local Administrators group, and used it to authenticate remotely.
Defensive Notes
  • Determine and remediate the root cause of an incident so the original access path cannot be reused.
  • Maintain an accurate inventory of systems, applications, and versions; reduce the attack surface; remove unauthorized applications; restrict access and use MFA; and keep active applications updated and monitored.
  • Monitor post-compromise activity, including new accounts, remote-access changes, endpoint activity, and modifications that may hide files or reduce security visibility.

Indicators of compromise

TypeIndicatorContext
DOMAIN334thribetlhkyo977gqrcht1k7bvdj2[.]oastify[.]comThe actor sent the output of tasklist /svc to this domain in an HTTP POST.
DOMAINpub-c4c8e8c336c3429d97195076bf3bb6eb[.]r2[.]devThe actor downloaded the qdcjoke1.2.ps1 script from this domain.

MITRE ATT&CK

People

Malware

Vendors

Products

Tools

Industries

Related Articles