Researchers Trace Multi-Stage PowerShell Infection to XMRig Cryptocurrency Miner

· Original article ↗

Summary

Researchers traced a PowerShell infection using Registry data, DNS TXT records, and PNG/WAV payload containers to deploy an in-memory XMRig-based miner, establish persistence, weaken security controls, and maintain a separate C2 channel.

Key points

  • The infection launched PowerShell with execution-policy bypass and retrieved an encoded payload from the Windows Registry.
  • DNS TXT records directed the malware to a PNG at frames-1zm[.]pages.dev/frames.png, which concealed script data in its pixel channels.
  • ZIP archives and WAV files carried further PowerShell scripts and .NET assemblies, reconstructed from audio data and loaded directly into memory.
  • The malware established persistence with scheduled tasks and a WMI permanent event subscription, and weakened PowerShell and Microsoft Defender protections.
  • The final payload was an XMRig-family cryptocurrency miner, configured to use a mining pool and a dropped WinRing0.sys driver.
  • A separate C2 channel used DNS-based discovery and HTTP/HTTPS requests to receive commands; researchers say it remained active independently of mining.

Article Details

Attack Vectors
  • Registry-stored PowerShell was executed with execution-policy bypass and used to retrieve and run encoded payload stages.
  • DNS TXT records and DNS-over-HTTPS were used to retrieve encoded data and discover C2 information.
  • PNG pixel data and WAV audio-file data concealed scripts and .NET assemblies that were reconstructed and executed in memory.
  • ZIP archives delivered WAV payload containers to the PublicMusic directory.
  • The infection established persistence through hidden Scheduled Tasks and a WMI permanent event subscription.
  • The payload weakened PowerShell and Microsoft Defender controls, added Defender exclusions, disabled selected Defender-related services and tasks, and removed PowerShell history.
  • The final .NET payload deployed an XMRig-based cryptocurrency miner and dropped WinRing0.sys.
Defensive Notes
  • Inspect Registry-stored PowerShell payloads and unusual PowerShell execution using execution-policy bypass.
  • Monitor DNS TXT lookups and DNS-over-HTTPS requests associated with sslvalidcert.com, txtcdn.net, and httptls.org.
  • Investigate suspicious PNG and WAV downloads, including reconstruction or execution of data concealed in image or audio content.
  • Review hidden Scheduled Tasks, WMI permanent event subscriptions, changes to PowerShell logging or history, and broad Microsoft Defender exclusions.
  • Check for XMRig-related mining activity and unexpected WinRing0.sys drops.

Indicators of compromise

TypeIndicatorContext
DOMAINhttptls[.]orgDomain whose DNS TXT records the payload queried for C2 discovery.
DOMAINsslvalidcert[.]comDomain whose DNS TXT records the payload queried to retrieve encoded data.
DOMAINtxtcdn[.]netDomain used for later DNS TXT lookups that supplied encoded data.
IPV4104[.]21[.]2[.]193C2 server endpoint listed in the article; the reported connection used port 8443.
MD594b50ace73cc03790678c73b867be129Hash listed for the malicious atsg.wav payload artifact.
MD5be860a15b7e5d44b0b3d67f598238fadHash listed for the malicious mav.wav payload artifact.
MD5c024189e1e7fa0ae6d24353367e8b98dHash listed for the malicious tmav.wav payload artifact.
MD5ed276b2312f641b00f87fa18e85c48ebHash listed for the malicious Realtek HD Audio.wav payload artifact.
MD5f1d2fdb7f3b699da69a050c5352a33c2Hash listed for the malicious upgrade.exe artifact.
MD5f94de28bd66afc4679f546500db184d4Hash listed for the malicious fp.dll artifact.
URLhxxps[:]//config-rg7[.]pages[.]dev/config.txtMining-configuration resource listed in the article's IOC section.
URLhxxps[:]//frames-1zm[.]pages[.]dev/frames.pngURL used to download the PNG container holding concealed script data.
URLhxxps[:]//publicwavlib[.]pages[.]dev/hdaudio.wavPayload URL used to retrieve the WAV container from which a .NET assembly was extracted.
URLhxxps[:]//publicwavlib[.]pages[.]dev/mav.wavFallback URL used by the payload to retrieve the WAV container.
URLhxxps[:]//softtestcopapool[.]pages[.]dev/rxconfig.txtMining-configuration resource listed in the article's IOC section.
URLhxxps[:]//wavmain[.]pages[.]dev/main.wavPayload WAV URL listed in the article's IOC section.

MITRE ATT&CK

Malware

Products

Related Articles