TERMITE is a password-protected, memory-only PowerShell dropper associated with UNC2596 (Cuba ransomware) intrusions. It uses obfuscated PowerShell to execute embedded encrypted shellcode in memory, then retrieves additional shellcode and encrypted payloads from command-and-control infrastructure. The subsequent shellcode decrypts and reflectively loads payloads without requiring their conventional installation on disk. TERMITE has been used to deploy BUGHATCH, Cobalt Strike Beacon, and a Metasploit stager during Cuba ransomware operations. UNC2596 commonly used TERMITE after obtaining access to vulnerable public-facing Microsoft Exchange servers and establishing a foothold with web shells or backdoors. The TERMITE name has also been applied to unrelated malware and ransomware activity; those uses should not be conflated with the Cuba-associated PowerShell dropper.
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Finally, there’s a memory-only dropper that fetches the above payloads and loads them, called Termite.
Threat hunters disclosed multiple ClickFix campaigns, including one leading to a hands-on-keyboard attack that deployed the Termite ransomware.
8 distinct techniques documented for this family, organized by ATT&CK tactic.
BUGHATCH is loaded by an obfuscated PowerShell script using inline C#; the script decodes embedded shellcode, allocates memory, and starts a thread.
The loader and implant use Windows APIs including VirtualAlloc, CreateThread, VirtualAllocEx, WriteProcessMemory, SetThreadContext, ResumeThread, and CreateRemoteThread.
The PowerShell loader is obfuscated and stores shellcode in reverse-Base64 format; BUGHATCH XOR-encrypts embedded PE payloads and C2 data.
"TERMITE in-memory dropper"; "BUGHATCH has been loaded in-memory"
The malware is a typical backdoor with the added functionality of being able to serve as a SOCKS proxy, which would allow it to intercept the contents of some kinds of web traffic.
"actors load tools and malware from web accessible systems"; "loaded by a PowerShell script from a remote URL"; "TERMITE loader at hxxp://45.32.229[.]66/new.dll"
Some victim devices are also managed using Platypus, an open-source reverse shell and host management tool. The JDY botnet payload server... is hosting a Platypus server on port 13339... to download Platypus agents (also called Termite clients) to target endpoints.
The following analytic detects modifications to files with extensions commonly associated with ransomware... This activity is significant because it suggests an attacker is attempting to encrypt or alter files... If this is a true ransomware attack, there will be a large number of files created with these extensions.
1 indicator attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.