Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore
Security NewsMalware Analysis

Advanced Backdoor Attack “SUBMARINE” Uncovered in Barracuda Email Security Gateway (ESG) Appliances

What is the SUBMARINE backdoor? It hit Barracuda Email Security Gateway appliances via CVE-2023-2868. See how it works and how to respond to it.

By
Brandefense Research Team
Reviewed by
Brandefense Analyst Team
Published
2 August 2023
Updated
6 November 2026
Reading time
3 min read
barracuda esg sumarine backdoor

SUBMARINE, also called DEPTHCHARGE, is a backdoor found on Barracuda Email Security Gateway appliances that were attacked through CVE-2023-2868, a remote command injection flaw. It gives attackers unauthorized root access, persistence and command and control. This post explains how the SUBMARINE backdoor works and what to do about it.

What is the SUBMARINE backdoor?

Hackers used a sophisticated backdoor called “SUBMARINE” in recent attacks against Barracuda Email Security Gateway (ESG) appliances, the US Cybersecurity and Infrastructure Security Agency (CISA) revealed on Friday.

Also known as DEPTHCHARGE, the backdoor consists of several components, including a SQL trigger, shell scripts, and a Linux daemon-laden library that work together to provide unauthorized access with root privileges, persistence, command and control capabilities, as well as cleanup functions.

The backdoor was discovered by analyzing malware samples from an undisclosed organization that fell victim to threat actors exploiting a critical vulnerability in ESG devices, CVE-2023-2868. This vulnerability allows remote command injection.

When were Barracuda ESG appliances first attacked?

The attackers exploited this zero-day vulnerability in October 2022 to gain initial access to their targets. They then deployed backdoors to ensure continued access and control.

How did the attack chain work?

The attack chain involved sending phishing emails containing a malicious attachment to trigger the exploit. This led to deploying a reverse shell payload communicating with the threat actor’s command and control (C2) server. Attackers then downloaded a passive backdoor called SEASPY, enabling them to execute arbitrary commands on compromised devices.

How can you protect against SUBMARINE?

SUBMARINE or DEPTHCHARGE is the latest malware family detected in connection with these attacks. In this context, to avoid being the target of similar critical attacks:

  • Revoke And Rotate All Domain-Based And Local Credentials Present On ESG During Compromise.
  • Revoke And Reissue All Certificates Residing In ESG At The Time Of Compromise.
  • Monitor The Entire Environment For Using Credentials Residing In ESG During Compromise.
  • Monitor The Entire Environment For The Use Of Certificates Available In ESG At The Time Of Compromise.
  • Block Published IoC Findings Of The Attack By Security Solutions.

A newer Barracuda ESG chain is analysed in the Barracuda ESG pre-auth RCE chain.

You can find IoCs in our GitHub Repo.

Frequently Asked Questions

What is the SUBMARINE backdoor?

SUBMARINE (also DEPTHCHARGE) is a persistent backdoor on Barracuda Email Security Gateway appliances. CISA says it lives in the appliance's SQL database and starts from a SQL trigger that runs with root privileges.

Which vulnerability led to SUBMARINE?

CVE-2023-2868, a remote command injection flaw in Barracuda ESG versions 5.1.3.001 to 9.2.0.006, according to CISA. It was exploited as a zero-day as early as October 2022.

What other backdoors were used in these attacks?

CISA lists SEASPY, a passive backdoor posing as a Barracuda service, plus SALTWATER, WHIRLPOOL, SKIPJACK and SEASPRAY.

What should I do if my ESG was compromised?

The post advises rotating credentials and reissuing certificates the appliance held, monitoring for their use, and blocking the published IoCs.

Sources

  1. CISA: Malware Analysis Report AR23-209A, SUBMARINE
  2. CISA: CISA Releases Malware Analysis Reports on Barracuda Backdoors
Share this articleLinkedInXEmail
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →