WHIRLPOOL
- Type
- Reverse shell
- Capabilities
- Post exploitation
- Delivery
- Phishing
- Platforms
- LinuxNetwork device
WHIRLPOOL is a C-based TLS reverse-shell utility used as a backdoor on compromised Barracuda Email Security Gateway appliances. Linux ELF variants have been identified for both 32-bit and 64-bit x86 architectures. It establishes an outbound encrypted connection to an attacker-controlled command-and-control server and spawns a shell, enabling remote command execution on the compromised appliance. Its destination address and port can be supplied at runtime by another component.
WHIRLPOOL is associated with UNC4841 operations targeting Barracuda appliances compromised through CVE-2023-2868, a remote command injection vulnerability exploited through malicious email attachments. It operates alongside SEASPRAY and SEASIDE, trojanized Lua components integrated into the appliance's email-processing functionality. SEASPRAY launches WHIRLPOOL in response to specially marked email events, while SEASIDE extracts encoded connection parameters from SMTP commands and passes them to WHIRLPOOL. These launchers provide email-triggered access to its reverse-shell functionality. The associated campaign affected public- and private-sector organizations worldwide.
Associated vulnerabilities
1 CVE 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.
WHIRLPOOL is a simple TLS reverse shell utility that receives a C2 IP address and port to connect to from SEASPRAY at runtime.
Techniques & procedures
15 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
Mandiant has observed a trend in which China-nexus attackers have gained access to edge devices via exploitation of vulnerabilities, particularly zero-days... If an attacker possesses an exploit for a zero-day vulnerability on these devices, they are often able to gain access to a target environment and remain undetected for an extended period of time.
Execution
3 techniques
Execution
The malware can execute any shell command with the same privileges as its calling process.
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 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).
Persistence
2 techniques
Persistence
WHIRLPOOL – WHIRLPOOL is a backdoor that can connect to a remote address then create a new process.
SEASPRAY is a backdoor that registers an event handler for all incoming email attachments and is a launcher for WHIRLPOOL.
Privilege Escalation
2 techniques
Privilege Escalation
WHIRLPOOL – WHIRLPOOL is a backdoor that can connect to a remote address then create a new process.
SEASPRAY is a backdoor that registers an event handler for all incoming email attachments and is a launcher for WHIRLPOOL.
Stealth
1 technique
Stealth
“Infrastructure…hosting default, self-signed SSL temporary certificates…to masquerade their reverse shell traffic as legitimate communications…”
Discovery
2 techniques
Discovery
The malware further access the following files at runtime: ... /etc/passwd ... /etc/group ... /etc/gshadow /etc/shadow ...
The malware accesses the target's environment variables. See below list below: --Begin Accessed Environment Variables-- GCONV_PATH GETCONF_DIR HTTPS_PROXY HTTP_PROXY LANG LANGUAGE LC_ALL ... | The malware checks processor hardware and architecture, to include if the target system uses AMD or Intel... Figure 5 shows the malware determining the kernel version by invoking the 'uname' command line function and exploring the contents of the '/proc/sys/kernel/osrelease' file.
Command and Control
6 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.
“SEASIDE…monitors SMTP HELO/EHLO commands to receive an encoded C2 IP address and port…”
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.
SEASPRAY registers an event handler for incoming emails, and launches an external binary, which Mandiant tracks as WHIRLPOOL, when certain markers are present.
The reverse shell establishes communication with the threat actor’s command and control (C2) server...
WHIRLPOOL is a backdoor that establishes a Transport Layer Security (TLS) reverse shell to the Command-and-Control (C2) server.
Observables
10 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.