SEASPRAY
- Type
- Loader
- Capabilities
- PersistencePost exploitationDefense evasion
- Platforms
- LinuxNetwork device
SEASPRAY is a Lua-based malware launcher embedded in trojanized legitimate Barracuda Email Security Gateway modules. Used by UNC4841, it provides an email-triggered mechanism for activating the WHIRLPOOL backdoor on compromised appliances. It registers an event handler for incoming email attachments and launches WHIRLPOOL when an attachment filename contains a designated marker. A variant embedded in sender filtering functionality executes a command when sender information matches a predefined trigger. WHIRLPOOL supplies the TLS reverse shell, enabling remote command execution; SEASPRAY acts as its launcher rather than implementing that network functionality itself.
SEASPRAY was deployed during post-exploitation activity against Barracuda ESG appliances compromised through CVE-2023-2868, a remote command injection vulnerability exploited as a zero day from at least October 2022. Its integration into legitimate email-processing modules supports persistent access while blending malicious functionality into appliance software. The associated UNC4841 espionage campaign targeted 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.
SEASPRAY is a launcher written in Lua that UNC4841 injected into legitimate Barracuda Email Security Gateway (ESG) modules.
Techniques & procedures
8 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
2 techniques
Execution
“WHIRLPOOL…establishes a reverse shell.” / “WHIRLPOOL is a C based utility used to create a TLS reverse shell.”
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
SEASPRAY registers an event handler for all incoming email attachments.
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
SEASPRAY registers an event handler for all incoming email attachments.
SEASPRAY is a backdoor that registers an event handler for all incoming email attachments and is a launcher for WHIRLPOOL.
Stealth
2 techniques
Stealth
THINCRUST, which disguised its command and control (C2) communications as legitimate API calls to the devices.
This variant checks for the sender and the string “obt”, which is hard coded in the lua file. If that string is found the malware uses os.execute to execute the file “saslautchd”.
Discovery
1 technique
Discovery
This variant checks for the sender and the string “obt”, which is hard coded in the lua file. If that string is found the malware uses os.execute to execute the file “saslautchd”.
Command and Control
1 technique
Command and Control
SEASPRAY registers an event handler for incoming emails, and launches an external binary, which Mandiant tracks as WHIRLPOOL, when certain markers are present.
Observables
14 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.