Tsundere
- Type
- Botnet
- Capabilities
- Post exploitationDefense evasion
- Delivery
- Lure
- Platforms
- Windows
Tsundere is a JavaScript-based botnet targeting Windows systems that enables operators to execute arbitrary JavaScript on compromised hosts. Its Node.js-based implementation has been deployed through malicious Windows Installer packages that install the runtime and legitimate supporting libraries. The implant receives JavaScript from its command-and-control server and executes it, allowing operators to extend its behavior remotely.
Tsundere uses an EtherHiding-style command-and-control discovery mechanism, retrieving its active WebSocket server address through an Ethereum smart contract. It validates the retrieved address before establishing a WebSocket connection. This separation of server discovery from the deployed implant allows operators to rotate command-and-control infrastructure without replacing the malware.
Tsundere has been linked to operations involving the Iranian state-sponsored threat actor MuddyWater. DinDoor, a backdoor used in MuddyWater intrusions, has been identified as a Tsundere variant. These operational associations do not establish MuddyWater as the malware's developer.
Associated threat actors
3 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
“CastleRAT” refers specifically to the native PE component of the malware; ChainShell and the Deno-based “Tsundere” variants are separate TAG-150 platform components deployed alongside CastleRAT by the same operator.
“CastleRAT” refers specifically to the native PE component of the malware; ChainShell and the Deno-based “Tsundere” variants are separate TAG-150 platform components deployed alongside CastleRAT by the same operator.
During the engagement, TRU found on that server a malicious file with functionality to establish persistence and deploy the Tsundere botnet malware, which also integrates the “EtherHiding” C2 resolution logic.
Techniques & procedures
11 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
The attack begins with SEO poisoning on various search engines, including Bing, Yahoo, DuckDuckGo, and Yandex. That ensures that malicious results for niche IT terms rank at the top of search results.
Execution
4 techniques
Execution
In these intrusions, the group used a previously unseen backdoor called DinDoor, which is a new variant of the MuddyWater-linked Tsundere botnet, according to Check Point.
Central to the operations is a PowerShell deployer ("reset.ps1") that deploys a previously undocumented JavaScript-based malware called ChainShell...
ChainShell is a thin execution shell, the server sends JavaScript via `new Function()` and the agent executes and returns results via `serverSend()`.
Once the malicious MSI is executed, the malware does not reach out to a hardcoded domain or IP address, which could be easily blocklisted.
Persistence
1 technique
Persistence
Additionally, it creates persistence via the registry Run key.
Privilege Escalation
1 technique
Privilege Escalation
Additionally, it creates persistence via the registry Run key.
Stealth
2 techniques
Stealth
All strings inside the file - including server addresses and API names - are encrypted, making static analysis difficult.
By distributing malicious MSI installers disguised as tools like PsExec, AzCopy, Sysmon, LAPS, and Kusto Explorer, the adversary performs automated victim profiling.
Command and Control
3 techniques
Command and Control
Central to the operations is a PowerShell deployer ("reset.ps1") that deploys a previously undocumented JavaScript-based malware called ChainShell, which then contacts a smart contract on the Ethereum blockchain to retrieve a C2 address and use it to fetch next-stage JavaScript code for execution on compromised hosts.
Commands from the attacker arrive as JavaScript code and are executed directly inside the running Node.js process, giving the attacker full access to the file system, the ability to run any OS command, and the ability to exfiltrate data
Rather than hardcoding a server address directly... the attacker stores the address inside an Ethereum smart contract on the blockchain. RAT queries nine public Ethereum API services in parallel and picks the answer that the majority return.
Observables
2 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.