SEASPY is a persistent, passive Linux backdoor targeting Barracuda Email Security Gateway (ESG) appliances. Associated with the China-nexus espionage group UNC4841, it has been deployed in campaigns exploiting CVE-2023-2868 since at least October 2022, with later deployments exploiting CVE-2023-7102. These attacks used specially crafted email attachments processed by vulnerable ESG components. Affected organizations spanned public and private sectors worldwide, including government agencies.
SEASPY is an x86-64 ELF executable based on the open-source cd00r backdoor. It masquerades as a legitimate Barracuda service and uses libpcap to passively inspect TCP traffic on SMTP ports 25 and 587. A specially crafted packet sequence triggers an outbound TCP reverse shell, allowing attackers to execute arbitrary commands on the compromised appliance. Variants use different hard-coded trigger values, and some require attacker authentication before opening the shell. Persistence is maintained through appliance startup mechanisms and modifications to existing scripts, enabling execution after reboot. Its passive activation and service impersonation help conceal its presence while preserving post-compromise access.
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.
23 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.
“execution of their initial reverse shell via hourly and daily cron jobs… /etc/cron.hourly/… /etc/cron.daily/…”
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.
a remote attacker can construct these file names specially in a way that will enable remote system command execution using Perl's qx operator with the privileges of the Email Security Gateway product.
This can be exploited by an email attachment that results in execution of a reverse shell payload into the affected product.
“persistently executed SEASPY on appliance reboot through…addition to /etc/init.d/rc…”
“execution of their initial reverse shell via hourly and daily cron jobs… /etc/cron.hourly/… /etc/cron.daily/…”
SEASPY prend également en charge une fonctionnalité de backdoor activé par un "magic packet"
SEASPY is a persistent and passive backdoor that masquerades as a legitimate Barracuda service.
This artifact is a 64-bit ELF file that has been identified as a "SEASPY" malware variant installed as a system service.
“maintained persistent execution…by inserting…into the update_version Perl script… system('<PATH_TO_SEASPY> eth0')”
“persistently executed SEASPY on appliance reboot through…addition to /etc/init.d/rc…”
“execution of their initial reverse shell via hourly and daily cron jobs… /etc/cron.hourly/… /etc/cron.daily/…”
This artifact is a 64-bit ELF file that has been identified as a "SEASPY" malware variant installed as a system service.
“maintained persistent execution…by inserting…into the update_version Perl script… system('<PATH_TO_SEASPY> eth0')”
SEASPY, a second backdoor malware that impersonates Barracuda Network service
“UNC4841 has repeatedly utilized time-stomping to further hide their malicious activity.”
SEASPY prend également en charge une fonctionnalité de backdoor activé par un "magic packet"
“SANDBAR…contains hooks to hide processes…hides the process ID from being displayed when the /proc filesystem is queried.”
“UNC4841 quickly made modifications to both SEASPY and SALTWATER related components in order to prevent effective patching.”
SEASPY, a second backdoor malware that impersonates Barracuda Network service and “establishes itself as a PCAP filter, specifically monitoring traffic on port 25”
It is noticeable that victim SSL certificates also been exfiltrated then were used on malware command and control (C2) servers.
SEASPY, a second backdoor malware that impersonates Barracuda Network service and “establishes itself as a PCAP filter, specifically monitoring traffic on port 25”
SALTWATER is a backdoor that can perform DNS resolution and 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”
These backdoors functioned by capturing the SMTP traffic, proxying into victim environments and maintaining persistence.
Once access was achieved, both novel and known customized malware were deployed to victim organizations. Observed malware includes: SALTWATER... capable of file upload/download
SEASPY prend également en charge une fonctionnalité de backdoor activé par un "magic packet"
The reverse shell establishes communication with the threat actor’s command and control (C2) server...
The exfiltration of the email data happen from the Barracuda ESG mstore.
51 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.