HoneyMyte Adds Kernel-Mode Rootkit Capabilities to CoolClient Backdoor

· Original article ↗

Summary

Researchers analyzed a HoneyMyte CoolClient variant that deploys a signed Windows kernel driver to hide and protect malware processes, files and registry objects, and filter network data. PlugX preceded CoolClient in the observed Myanmar intrusion.

Key points

  • The analyzed CoolClient variant is attributed to HoneyMyte (Mustang Panda) and was observed in intrusions in Myanmar, Mongolia, Pakistan and Russia, including against government entities.
  • In the Myanmar intrusion, PlugX served as the initial post-compromise implant before CoolClient was deployed.
  • A legitimate Sangfor executable sideloads libngs.dll; the malware injects loadcert.ini into synchost.exe before launching cert.ini for command-and-control communication.
  • CoolClient installs the signed msagent.sys kernel driver as a service and communicates with it through IOCTL requests to register a trusted process, a C2 address and protected paths.
  • The driver uses kernel callbacks, a filesystem minifilter and a registry callback to hide or restrict access to selected processes, files and registry objects.
  • Additional driver functions can hide processes and kernel modules and filter registered C2 IP addresses from network information returned through Nsiproxy.

Article Details

Attack Vectors
  • In the Myanmar intrusion, HoneyMyte used PlugX as the initial post-compromise implant to deploy CoolClient.
  • CoolClient uses DLL sideloading: a renamed legitimate Sangfor executable, usually Sang.exe and renamed defender.exe, loads the malicious libngs.dll.
  • Reported persistence mechanisms include a startup scheduled task, an HKCU Run entry named goopdate, and a Windows service named media_updaten; the driver is installed as a separate service named msagent.
  • CoolClient injects its stages into synchost.exe; the final-stage cert.ini implant handles C2 communication.
  • When privileges permit, CoolClient deploys the signed kernel-mode driver msagent.sys, which hides or protects processes, files, and registry objects and filters registered C2 IPv4 addresses from returned network information.
Defensive Notes
  • The article reports CoolClient adding Microsoft Defender exclusions for its fake Windows Defender directory and the renamed defender.exe sideloader.
  • The article identifies the scheduled task, HKCU Run value goopdate, and services media_updaten and msagent as persistence or driver-installation artifacts.
  • The msagent.sys driver can hide processes, modules, files, and registry objects, and filter registered C2 addresses from network information, which can limit visibility from user-mode inspection.

Indicators of compromise

TypeIndicatorContext
DOMAINblack-popular[.]comListed as CoolClient campaign C2 or infrastructure; its specific role is not further differentiated.
DOMAINcloudtroe[.]giize[.]comListed as CoolClient campaign C2 or infrastructure; its specific role is not further differentiated.
DOMAINemployers[.]theworkpc[.]comListed as CoolClient campaign C2 or infrastructure; its specific role is not further differentiated.
DOMAINfreeread[.]casacam[.]netListed as CoolClient campaign C2 or infrastructure; its specific role is not further differentiated.
DOMAINnews[.]dursamjbataar[.]orgListed as CoolClient campaign C2 or infrastructure; its specific role is not further differentiated.
DOMAINsundanish[.]freeddns[.]orgListed as CoolClient campaign C2 or infrastructure; its specific role is not further differentiated.
DOMAINtorinarlabs[.]webredirect[.]orgListed as CoolClient campaign C2 or infrastructure; its specific role is not further differentiated.
DOMAINus[.]lenovoappstore[.]comListed as CoolClient campaign C2 or infrastructure; its specific role is not further differentiated.
DOMAINvideo[.]dursamjbataar[.]orgListed as CoolClient campaign C2 or infrastructure; its specific role is not further differentiated.
DOMAINwhatismybestthing[.]comListed as CoolClient campaign C2 or infrastructure; its specific role is not further differentiated.
MD52d7c8780e97409770a9d4f31c66c9d63Hash listed for the malicious msagent.sys driver component.
MD59460e150e1981d5c165043520c5c12feHash listed for the malicious msagent.sys driver component.
MD59717f005c5fb98e08d2ad983d88f94eeHash listed for the malicious libngs.dll loader.
MD5eb79558b037669792652a816e2c669deHash listed for the malicious ctxmui.dll component.
MD5f518d8e5fe70d9090f6280c68a95998fHash listed for the malicious libngs.dll loader.

MITRE ATT&CK

T1014 · RootkitThe signed kernel-mode msagent.sys driver provides rootkit-style process, module, file, and registry hiding and protection.T1027 · Obfuscated Files or InformationCoolClient decrypts components with a repeating XOR keystream and uses control-flow flattening in its loader.T1055 · Process InjectionCoolClient injects decrypted stages into suspended synchost.exe processes, modifies thread context, and resumes execution.T1068 · Exploitation for Privilege EscalationCoolClient uses an RPC-based UAC-bypass flow to relaunch itself with elevated privileges.T1112 · Modify RegistryCoolClient writes driver configuration and hiding paths to registry values, including HKLM\SYSTEM\RNG\Wid_H1deF5Dirs.T1134.002 · Create Process with TokenCoolClient duplicates an access token, updates its session identifier, and uses CreateProcessAsUserA to create synchost.exe.T1543.003 · Windows ServiceCoolClient installs Windows services, including media_updaten, and creates the msagent driver service to load msagent.sys.T1547.001 · Registry Run Keys / Startup FolderCoolClient creates the HKCU Run value goopdate to launch its work-stage executable at user logon.T1562.001 · Disable or Modify ToolsBefore deployment, the actor adds Microsoft Defender exclusions for the fake Windows Defender directory and defender.exe.T1562.006 · Indicator BlockingThe driver hides malware processes, modules, files, and registry objects, and removes registered C2 IP addresses from network information returned to user mode.T1574.002 · DLL Side-LoadingA renamed legitimate Sangfor executable loads CoolClient's malicious libngs.dll through DLL sideloading.

Threat Actors

Malware

Products

Countries

Industries

Related Articles