SALTWATER is a Linux backdoor implemented as a trojanized module for the Barracuda SMTP daemon on Barracuda Email Security Gateway appliances. It supports arbitrary shell command execution, bidirectional file transfers, file exfiltration, proxying, and network tunneling. Analyzed samples are 32-bit shared objects that use the open-source funchook library to intercept socket send, receive, and close functions. The malware performs DNS resolution, creates worker threads, and communicates with attacker-controlled infrastructure over SSL/TLS, including TLS 1.0. Shell commands execute with the privileges of the calling process.
SALTWATER is associated with UNC4841's cyberespionage operations against Barracuda appliances, including exploitation of CVE-2023-2868 beginning no later than October 2022. Initial compromise involved malicious email attachments processed by vulnerable appliances, after which the attackers deployed SALTWATER and other backdoors to maintain access. Its proxy and tunneling functions support covert access to victim environments, while its file-transfer functionality enables data theft. UNC4841 used timestomping when deploying SALTWATER and modified related components following Barracuda's remediation efforts. The broader campaign affected public- and private-sector organizations worldwide, including government agencies.
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.
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.
Barracuda later revealed that the vulnerability had been exploited for at least seven months, since at least October 2022, to deploy previously unknown SeaSpy and Saltwater malware and steal data from compromised systems.
21 distinct techniques documented for this family, organized by ATT&CK tactic.
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.
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
Figure 12 shows the malware creating a new thread, within the calling process. This is thread injection and it can inject two different functions.
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
“UNC4841 quickly made modifications to both SEASPY and SALTWATER related components in order to prevent effective patching.”
It is noticeable that victim SSL certificates also been exfiltrated then were used on malware command and control (C2) servers.
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
The exfiltration of the email data happen from the Barracuda ESG mstore.
29 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.