CactusTorch
- Type
- Loader
- Capabilities
- Process injectionDefense evasion
- Delivery
- SpearphishingMalspamLure
- Platforms
- Windows
CACTUSTORCH is an open-source Windows shellcode-launching and payload-generation toolkit developed by Vincent Yiu for adversary simulations and subsequently adopted in malicious campaigns. It generates JavaScript, VBScript, VBA, and HTML Application payloads that launch a specified 32-bit process and inject shellcode into it, including on 64-bit Windows systems. It supports embedded Base64-encoded payloads and .NET-based execution, enabling payload loading and execution in memory. The toolkit has been used to deliver Cobalt Strike beacons and has also been tested with Metasploit-generated shellcode.
CACTUSTORCH-based payloads have appeared in malicious Office attachments, scripted launchers, and staged HTML Application infection chains distributed through spear-phishing and malicious email campaigns. Document-themed lures and decoy content disguise execution. Observed users include OceanLotus and GADOLINIUM, and the toolkit has also appeared in Operation SideCopy attacks against Indian defence organizations and armed forces personnel. OceanLotus used it in an environmental-themed attack aimed at a Vietnamese environmental organization, while GADOLINIUM used a CACTUSTORCH-based VBA dropper to load and execute a .NET payload. CACTUSTORCH primarily provides payload execution and process injection; remote control, persistence, credential theft, and exfiltration depend on the payloads and other components deployed alongside it.
Associated threat actors
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.
The script is generated by using the cactusTorch framework ... which first decrypts the Loader module, then decrypts the attached data through the Loader module, and finally executes the decrypted shellcode in memory.
The file mm.accdb.core is a VBA dropper, based on the CactusTorch VBA module, which loads a .NET DLL payload, sets configuration information, and then runs the payload.
Techniques & procedures
5 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
1 technique
Execution
The file mm.accdb.core is a VBA dropper, based on the CactusTorch VBA module, which loads a .NET DLL payload, sets configuration information, and then runs the payload.
Privilege Escalation
1 technique
Privilege Escalation
Process names like this in malicious code typically mean that the malicious binary content will be saved and executed as the process name or injected into a process of the same name... For this particular threat, we’ll likely see a process ancestry of mshta.exe -> notepad.exe -> rundll32.exe.
Stealth
4 techniques
Stealth
Process names like this in malicious code typically mean that the malicious binary content will be saved and executed as the process name or injected into a process of the same name... For this particular threat, we’ll likely see a process ancestry of mshta.exe -> notepad.exe -> rundll32.exe.
There are two large chunks of base64 code in the file... The first base64 chunk starts with TVro, which decodes to a MZ header seen with Windows EXEs.
One of the common methods includes using HTML Application (HTA) files. In this post I’m going to look at a malicious HTA file created using CACTUSTORCH and designed to distribute a Cobalt Strike beacon.
CACTUSTORCH is a project to embed Cobalt Strike beacons into script content such as HTA and VBS files.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.