Yokai
- Type
- Backdoor
- Capabilities
- PersistenceDLL sideloadingDefense evasionReconnaissanceExfiltration
- Delivery
- LureUSB
- Platforms
- Windows
Yokai is a Windows backdoor associated with China-aligned Mustang Panda activity, also tracked as Hive0154 and Earth Preta. Publicly documented in December 2024, it has been used in espionage campaigns targeting Thai officials and government organizations, including the Royal Thai Police.
Yokai provides operators with remote command execution through a reverse shell. It launches the Windows command interpreter with input and output connected to anonymous pipes, enabling operators to submit arbitrary commands and retrieve their output. It collects the hostname and current username during initial registration and supports data exfiltration. Analyzed variants communicate over HTTP using XOR-encrypted messages; the initial server response supplies a session identifier and a new encryption key for subsequent exchanges. Yokai uses a mutex to prevent duplicate instances and establishes persistence through scheduled tasks or a user-level registry autorun entry, depending on the variant.
Delivery chains have used Thai-language archives containing malicious Windows shortcuts and decoy documents themed around United States law enforcement or international cooperation. Some chains abuse alternate data streams and legitimate Windows utilities to extract and execute payloads. Yokai has been executed through DLL sideloading using legitimate applications, while another campaign used a trojanized installer with dynamically resolved API calls. It is also distributed by USB-propagating malware, including SnakeDisk and TONEDISK, also known as WispRider. SnakeDisk restricts its own execution to systems geolocated in Thailand before deploying Yokai; this restriction is not an established intrinsic capability of the backdoor.
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.
SnakeDisk, a USB-propagating worm used to deliver Yokai and updated ToneShell backdoors.
Techniques & procedures
12 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
"Mustang Panda Deploys SnakeDisk USB Worm"
Execution
5 techniques
Execution
If IdrInit.exe is executed as a non-admin user, Yokai creates a scheduled task, even if it already exists, named “MicrosoftTSUpdate” which executes IdrInit.exe every five minutes.
Upon execution, the malware first checks for the "-project-mod" argument and then establishes persistence via a scheduled task if the user is not a member of the Administrator's group: cmd.exe /c schtasks /create /f /sc MINUTE /MO 5 /tn "MicrosoftEdgeAcModuleUpdateTask" /tr "<path> -project-mod"
facilitate two active reverse shells in parallel... Yokai, a backdoor that sets up a reverse shell to execute arbitrary commands.
Similar to previous variants, a reverse shell is set up using anonymous pipes connected to stdin and stdout handles of a new cmd.exe process... Toneshell operators can write string data to the pipe using the correct shell_id and execute arbitrary commands on the machine.
Spawns cmd[.]exe and attaches its STDIN and STDOUT to anonymous pipes.
Persistence
2 techniques
Persistence
If IdrInit.exe is executed as a non-admin user, Yokai creates a scheduled task, even if it already exists, named “MicrosoftTSUpdate” which executes IdrInit.exe every five minutes.
Upon execution, the malware first checks for the "-project-mod" argument and then establishes persistence via a scheduled task if the user is not a member of the Administrator's group: cmd.exe /c schtasks /create /f /sc MINUTE /MO 5 /tn "MicrosoftEdgeAcModuleUpdateTask" /tr "<path> -project-mod"
Privilege Escalation
2 techniques
Privilege Escalation
If IdrInit.exe is executed as a non-admin user, Yokai creates a scheduled task, even if it already exists, named “MicrosoftTSUpdate” which executes IdrInit.exe every five minutes.
Upon execution, the malware first checks for the "-project-mod" argument and then establishes persistence via a scheduled task if the user is not a member of the Administrator's group: cmd.exe /c schtasks /create /f /sc MINUTE /MO 5 /tn "MicrosoftEdgeAcModuleUpdateTask" /tr "<path> -project-mod"
Stealth
3 techniques
Stealth
The shortcut files named in Thai... Translated, both documents are called “United States Department of Justice.pdf” and “Urgently, United States authorities ask for international cooperation in criminal matters.docx” respectively.
Yokai looks for the presence of a mutex named “Mutex_Local_Windows_1547”. If it exists, control returns to IdrInit.exe and it terminates itself; otherwise, the mutex is created.
Clicking the shortcut files triggers the copying of content from an alternate data stream (ADS) named “file.exf” into decoy PDF and Word documents using esentutl.
Lateral Movement
1 technique
Lateral Movement
"Mustang Panda Deploys SnakeDisk USB Worm"
Command and Control
3 techniques
Command and Control
The most recent Pubload variant has undergone minor changes and now supports decoy C2 servers and downloading shellcode payloads via HTTP POST in addition to raw TCP imitating TLS traffic.
The encrypted data is transmitted to the first available C2... The following table shows the fixed values for specific HTTP headers.
The data is then encrypted using a series of XOR operations with a hardcoded key, “ExtensionsWindow”.
Observables
5 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.