Huntress traces web intrusion using Nezha and Ghost RAT across 100+ potential victims

· Original article ↗

Summary

Huntress traced an August 2025 intrusion using exposed phpMyAdmin, MariaDB log poisoning, a web shell, Nezha and Ghost RAT across 100+ potential victims. A China-nexus attribution was later questioned by an unverified tip.

Key points

  • Huntress found that an attacker accessed an internet-exposed phpMyAdmin panel that lacked authentication, then used MariaDB query logging to plant a PHP web shell.
  • The attacker used the shell through AntSword, installed the Nezha monitoring agent, and then used it to deploy Ghost RAT.
  • Huntress observed more than 100 potential victim systems connected to the Nezha server, with many located in Taiwan, Japan, South Korea and Hong Kong.
  • Before deploying Ghost RAT, the attacker added a Windows Defender exclusion; the malware established persistence using a service disguised as “SQLlite.”
  • Huntress initially assessed the activity as likely China-nexus, but an anonymous tip proposing VPS hobbyists as an alternative was not independently verified.
  • Huntress isolated its investigated system and removed the web shell, Nezha agent and malware.

Article Details

Attack Vectors
  • The attacker accessed an internet-exposed phpMyAdmin panel that was reportedly unauthenticated because of a flawed configuration and a recent DNS record change.
  • The attacker used MariaDB general query logging and a PHP file extension to write a web shell into a web-accessible directory, then sent commands through the shell.
  • The attacker used AntSword’s virtual terminal to download and run the Nezha agent and a Ghost RAT payload.
  • The attacker used the Nezha agent to open an interactive PowerShell session, add a Windows Defender exclusion, and execute the payload.
Defensive Notes
  • Patch and harden public-facing applications, require authentication where possible, and avoid exposing test environments.
  • Monitor for web shells, suspicious service creation, and executables running from unusual directories.
  • Huntress reported isolating the affected system and removing the web shell, Nezha agent, and malware.

Indicators of compromise

TypeIndicatorContext
DOMAINc[.]mid[.]alAttacker server address configured in the Nezha agent.
DOMAINgd[.]bj2[.]xyzGhost RAT command-and-control domain; the article says it resolves to 45.207.220[.]12.
IPV4172[.]245[.]52[.]169IP address listed in the article as associated with the Nezha command-and-control domain.
IPV445[.]207[.]220[.]12IP address identified as used to operate the web shell and as Ghost RAT command-and-control infrastructure.
IPV454[.]46[.]50[.]255IP address the article identifies as used by the attacker to access the phpMyAdmin panel.
SHA25635e0b22139fb27d2c9721aedf5770d893423bf029e1f56be92485ff8fce210f3SHA-256 of the malicious 32138546.dll loaded by the dropped SQLlite.exe.
SHA2567b2599ed54b72daec0acfd32744c7a9a77b19e6cf4e1651837175e4606dbc958SHA-256 of x.exe, identified as a likely Ghost RAT variant.
SHA25682611e60a2c5de23a1b976bb3b9a32c4427cb60a002e4c27cadfa84031d87999SHA-256 of SQLlite.exe, identified as a malware-dropped, renamed rundll32.exe used to load the malicious DLL.
SHA2569f33095a24471bed55ce11803e4ebbed5118bfb5d3861baf1c8214efcd9e7de6SHA-256 of live.exe, identified as the installer for the Nezha agent used in the intrusion.
SHA256f3570bb6e0f9c695d48f89f043380b43831dd0f6fe79b16eda2a3ffd9fd7ad16SHA-256 of the malicious PHP web shell at C:\xamp\htdocs\123.php.
URLhxxps[:]//rism[.]pages[.]dev/microsoft.exeSpecific payload-download URL used to retrieve the executable identified as a Nezha agent installer.

MITRE ATT&CK

Malware

Vendors

Products

Tools

Countries

Related Articles