TriFive
- Type
- Backdoor
- Capabilities
- PersistencePost exploitationDefense evasion
- Platforms
- Windows
TriFive is a PowerShell-based backdoor associated with the xHunt espionage cluster, which has targeted organizations in Kuwait, particularly in government, shipping, and transportation. It was identified during compromises involving Microsoft Exchange Server and related IIS infrastructure, where xHunt maintained long-term access using scheduled-task persistence, covert command-and-control channels, and companion tooling such as the BumbleBee web shell and the Snugy backdoor.
TriFive is designed for remote command execution and post-compromise control. It was observed running repeatedly via a scheduled task at five-minute intervals, indicating persistent beaconing and automated task-based execution. Its command-and-control mechanism abuses a legitimate compromised mailbox on the victim Exchange server through Exchange Web Services. The implant retrieves commands from specially formatted draft messages stored in the Deleted Items folder, decodes and transforms the message content, executes the resulting PowerShell commands, and writes command output back into draft messages in the same mailbox. This mailbox-draft workflow is intended to blend malicious traffic with normal enterprise email activity and reduce reliance on conventional external C2 infrastructure.
Observed activity shows TriFive being used after initial compromise rather than as the initial access vector. In the documented intrusions, attackers had already obtained access to Exchange infrastructure and stolen or otherwise acquired valid account credentials. The malware formed part of a broader xHunt intrusion set that included web-shell-enabled command execution, credential abuse, persistence through masqueraded scheduled tasks, and lateral movement across internal systems. TriFive reflects xHunt’s emphasis on stealthy, living-off-trusted-services tradecraft and covert communications within compromised Microsoft messaging environments.
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.
The activity we observed involved two backdoors – one of which we call TriFive and a variant of CASHY200 that we call Snugy – as well as a web shell that we call BumbleBee.
Techniques & procedures
9 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
The TriFive sample used a legitimate account name and credentials from the targeted organization. This suggests that the threat actor had stolen the account's credentials prior to the installation of the TriFive backdoor.
Execution
3 techniques
Execution
On Aug. 28 and Oct. 22, 2019, the actors created the ResolutionHosts and ResolutionsHosts tasks to run two separate PowerShell-based backdoors. The actors used these two scheduled tasks as a persistence method, as they ran the two PowerShell scripts repeatedly, albeit at different intervals.
The suspicious commands being executed via the Internet Information Services (IIS) process w3wp.exe. Actors issued these commands via a web shell we call BumbleBee that had been installed on the Exchange server.
The commands executed by the two tasks attempt to run splwow64.ps1 and OfficeIntegrator.ps1 ... powershell -exec bypass -file C:\Users\Public\Libraries\OfficeIntegrator.ps1 ... powershell -exec bypass -file c:\windows\splwow64.ps1
Persistence
3 techniques
Persistence
On Aug. 28 and Oct. 22, 2019, the actors created the ResolutionHosts and ResolutionsHosts tasks to run two separate PowerShell-based backdoors. The actors used these two scheduled tasks as a persistence method, as they ran the two PowerShell scripts repeatedly, albeit at different intervals.
The TriFive sample used a legitimate account name and credentials from the targeted organization. This suggests that the threat actor had stolen the account's credentials prior to the installation of the TriFive backdoor.
This investigation resulted in the discovery of two new backdoors called TriFive and Snugy... as well as a new webshell that we call BumbleBee... The actor used the BumbleBee webshell to upload and download files to and from the compromised Exchange server, but more importantly, to run commands that the actor used to discover additional systems and to move laterally to other servers on the network.
Privilege Escalation
2 techniques
Privilege Escalation
On Aug. 28 and Oct. 22, 2019, the actors created the ResolutionHosts and ResolutionsHosts tasks to run two separate PowerShell-based backdoors. The actors used these two scheduled tasks as a persistence method, as they ran the two PowerShell scripts repeatedly, albeit at different intervals.
The TriFive sample used a legitimate account name and credentials from the targeted organization. This suggests that the threat actor had stolen the account's credentials prior to the installation of the TriFive backdoor.
Stealth
3 techniques
Stealth
The script opens the email draft, base64 decodes the contents in the message body of the email and decrypts the decoded contents by subtracting 10 from each character.
We believe that the actor chose these task names specifically to blend in and appear to be part of the legitimate WDI.
The TriFive sample used a legitimate account name and credentials from the targeted organization. This suggests that the threat actor had stolen the account's credentials prior to the installation of the TriFive backdoor.
Discovery
1 technique
Discovery
Figure 2 shows an example command email with a subject of 555 and a message body of woFyeWt3cw== , which decodes and decrypts to whoami .
Command and Control
1 technique
Command and Control
Both of the backdoors installed on the compromised Exchange server of a Kuwait government organization used covert channels for C2 communications, specifically DNS tunneling and an email-based channel using drafts in the Deleted Items folder of a compromised email account.
Observables
1 indicator attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.