Demodex
- Type
- Rootkit
- Capabilities
- PersistenceDefense evasionByovd
- Platforms
- Windows
Demodex is a Windows kernel-mode rootkit used in cyber-espionage intrusions attributed to the Chinese-nexus GhostEmperor activity cluster, which is also associated in some reporting with Earth Estries/Salt Typhoon. It has targeted telecommunications providers, government entities, and related service-provider environments, particularly in Southeast Asia, with broader activity affecting other regions. Demodex provides stealth and persistence by concealing malware-associated files, services, registry artifacts, and network connections. It uses kernel-level hooking and anti-forensic measures, including techniques intended to obscure registry callback origins and evade forensic inspection. Observed deployment chains use multistage loaders, in-memory execution, reflective loading, encrypted configuration and shellcode, and obfuscation to reduce endpoint detection and impede sandbox analysis. Installations have abused a signed vulnerable driver to bypass Windows Driver Signature Enforcement and load the unsigned rootkit. Demodex has been deployed following compromise of public-facing servers and through remote execution in already compromised environments.
Associated vulnerabilities
8 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
An updated DEMODEX rootkit was observed where the attacker replaced the first-stage PowerShell script with a CAB file containing the necessary registry data, including the encrypted configuration and shellcode payload.
Techniques & procedures
20 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
In 2021, they gained initial access through exploiting vulnerabilities in public-facing servers such as Microsoft Exchange and used ProxyLogon vulnerability to gain access and perform remote code execution.
Execution
3 techniques
Execution
Once initial access was obtained, WMIExec (Impacket ... ) was used to remotely execute a batch file.
One of the extracted files was a Powershell script that creates a malicious service DLL.
WMIExec ... was used to remotely execute a batch file. The batch file executed built-in Windows tools to extract and import files.
Persistence
1 technique
Persistence
The advisory lists T1112, Modify Registry, among the MITRE ATT&CK techniques identified for the threat behaviours.
Privilege Escalation
1 technique
Privilege Escalation
The Core-Implant ... had to bypass the Driver Signature Enforcement (DSE) security feature ... 'Cheat Engine' ... was used to manipulate memory and execute code in kernel space to install Demodex.
Stealth
6 techniques
Stealth
They execute a multi-stage infection chain ... to deploy encrypted payloads, such as DEMODEX rootkit. An updated DEMODEX rootkit was observed.
Encrypted configurations and shellcode are stored in registry keys, while reflective loaders decrypt and execute these components in memory, evading detection.
A Powershell script ... creates a malicious service DLL that masquerades a legitimate Windows system process to avoid detection.
Once the installation is complete, the CAB file is deleted, to hinder forensics.
The advisory lists T1140, Deobfuscate/Decode File or Information, among the MITRE ATT&CK techniques identified for the threat behaviours.
[The rootkit] uses reflective loader (loading DLL in memory) to execute the Core-Implant.
Defense Impairment
1 technique
Defense Impairment
The advisory lists T1112, Modify Registry, among the MITRE ATT&CK techniques identified for the threat behaviours.
Credential Access
1 technique
Credential Access
The advisory lists T1003, OS Credential Dumping, among the MITRE ATT&CK techniques identified for the threat behaviours.
Discovery
2 techniques
Discovery
The advisory lists T1049, System Network Connections Discovery, among the MITRE ATT&CK techniques identified for the threat behaviours.
The Powershell script ... creates a malicious service DLL that masquerades a legitimate Windows system process ... The service DLL was then used to install Demodex rootkit.
Lateral Movement
1 technique
Lateral Movement
The advisory lists T1021, Remote Services, among the MITRE ATT&CK techniques identified for the threat behaviours; WMIExec was used to remotely execute a batch file.
Collection
1 technique
Collection
The advisory lists T1005, Data from Local System, among the MITRE ATT&CK techniques identified for the threat behaviours.
Command and Control
2 techniques
Command and Control
The Core-Implant ... was used to manage Command and Control (C2) communication ... imap.dateupdata[.]com [is identified as] C2.
we found that the attackers downloaded malicious tools from their C&C server (23.81.41[.]166)
Exfiltration
1 technique
Exfiltration
The advisory lists T1041, Exfiltration Over C2 Channel, among the MITRE ATT&CK techniques identified for the threat behaviours.
Observables
35 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.