SALTWATER
- Type
- Backdoor
- Capabilities
- ExfiltrationPersistencePost exploitationDefense evasion
- Delivery
- Phishing
- Platforms
- LinuxNetwork device
SALTWATER is a Linux backdoor deployed on Barracuda Email Security Gateway appliances by the China-nexus cyberespionage cluster UNC4841. It is implemented as a trojanized module for the Barracuda SMTP daemon, with analyzed samples packaged as 32-bit Linux shared objects. It was deployed following exploitation of CVE-2023-2868, a remote command injection vulnerability exploited as a zero-day beginning no later than October 2022. The exploitation chain used specially crafted email attachments processed by the appliance. The broader campaign targeted public- and private-sector organizations worldwide, including government agencies.
SALTWATER supports arbitrary shell command execution, bidirectional file transfer, file exfiltration, proxying, and traffic tunneling. Commands execute with the privileges of the calling process. It uses the open-source funchook library to hook socket send, receive, and close functions, intercept connection activity, and launch worker threads for attacker communications. It performs DNS resolution and supports encrypted command-and-control communications using TLS 1.0. Its command protocol separates shell execution, uploads, downloads, proxy relay, and tunnel configuration into distinct channels. UNC4841 used SALTWATER alongside SEASPY and SEASIDE to maintain access to compromised appliances and modified SALTWATER-related components following Barracuda's initial remediation efforts in May 2023.
Associated vulnerabilities
2 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
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 company later revealed that the flaw had been exploited as a zero-day for at least seven months, since at least October 2022, to drop previously unknown SeaSpy and Saltwater malware and steal data from compromised devices.
Techniques & procedures
21 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
In real-world attacks, unidentified threat actors exploited the vulnerability for initial access into victim organizations.
...pourrait permettre à un attaquant distant de déployer des logiciels malveillants notamment (SEASPY et SALTWATER) via des pièces jointes d'email au format Excel spécialement conçues.
Execution
5 techniques
Execution
A remote and unauthenticated threat actor may exploit the vulnerability to execute code on vulnerable assets... A remote attacker may format file names in a specific way to enable the remote execution of system commands via Perl's qx operator.
Figures 6, 7, and 8 show the malware's capacity to connect to a remote address, and then create a new process with the command line argument '/bin/sh.'
The malware can intake data over the network, using a previously established socket, with the 'recv' function... using 'popen', the malware can execute any shell command with the same privileges as its calling process.
The device was compromised by threat actors exploiting CVE-2023-2868, a former zero-day vulnerability affecting versions 5.1.3.001-9.2.0.006 of Barracuda Email Security Gateway (ESG).
The malware hooked the recv, send, and close functions using an open-source hooking library called funchook... The malware implements hooks on the recv, send, and close functions
Privilege Escalation
1 technique
Privilege Escalation
Figure 12 shows the malware creating a new thread, within the calling process. This is thread injection and it can inject two different functions.
Stealth
4 techniques
Stealth
SEASPY est un backdoor persistant x64 qui se fait passer pour un service légitime de Barracuda Networks ... En outre, « SALTWATER » est un module contenant des logiciels malveillants pour le démon SMTP ...
Figure 12 shows the malware creating a new thread, within the calling process. This is thread injection and it can inject two different functions.
“UNC4841 has repeatedly utilized time-stomping to further hide their malicious activity.”
The malware hooked the recv, send, and close functions using an open-source hooking library called funchook... The malware implements hooks on the recv, send, and close functions
Defense Impairment
1 technique
Defense Impairment
“UNC4841 quickly made modifications to both SEASPY and SALTWATER related components in order to prevent effective patching.”
Credential Access
1 technique
Credential Access
It is noticeable that victim SSL certificates also been exfiltrated then were used on malware command and control (C2) servers.
Command and Control
8 techniques
Command and Control
Figures 14 and 15 show the second function. The second function can establish communications, over the network, using a TLS version 1 connection.
“SALTWATER (a trojanized SMTP module enabling command execution and tunneling)… SEASIDE… turns SMTP HELO/EHLO data into reverse shells”
Figure 10 shows the malware's capacity to perform DNS resolution, using the system call 'sys_getpeername.' ... Figure 13 shows the first function that can perform DNS resolution.
SALTWATER... functions as a backdoor into victim organizations; the malware is capable of file upload/download, command execution, and proxy/tunneling
SALTWATER... is capable of file upload/download, command execution, and proxy/tunneling
Once access was achieved, both novel and known customized malware were deployed to victim organizations. Observed malware includes: SALTWATER... capable of file upload/download
WHIRLPOOL is a backdoor that establishes a Transport Layer Security (TLS) reverse shell to the Command-and-Control (C2) server.
It creates a new SSL structure and sets the socket descriptor as the input/output for network connections... SSL_read is utilized to read data from the connections... The malware implements a function called MyWriteAll, which calls the SSL_write method
Exfiltration
1 technique
Exfiltration
The exfiltration of the email data happen from the Barracuda ESG mstore.
Observables
29 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.