Linux Backdoors Mimic South Korean and Taiwanese Mail Security Appliances

Summary
Researchers describe Linux backdoors that mimic Asian mail-security appliances, use stealthy command-and-control over SMTP port 25, and exploit compromised edge devices as relays. Suggested detection includes checking for deleted executables and unexpected raw packetส.
Key points
- Researchers describe BPFdoor and Rekoobe variants that mimic South Korean SpamSniper appliances, including their filenames, process IDs, and system services.
- A separate campaign uses a ShareTech-themed dropper to install AVERAT, then deletes its dropped files while leaving running processes.
- AVERAT and the new Rekoobe use TCP port 25 and SMTP conventions to blend command-and-control traffic with normal email activity.
- The malware operators use compromised DVRs, NAS devices, and other edge equipment as relay points.
- Secure email gateways are attractive targets because they sit at the network edge and often lack endpoint monitoring.
- Detection suggestions include checking Linux processes for deleted executables, looking for unexpected raw packet sockets and known dropper artifacts, and monitoring outbound port 25 traffic from non-mail systems.
Article Details
- Attack Vectors
- BPFdoor waits for an activation code at a specific byte in incoming HTTPS requests.
- BPFdoor can propagate data to identified computers within target organizations by inserting code into ICMP pings.
- BPFdoor and Rekoobe mimic SpamSniper filenames, PID files, system services, and commonly used Linux services.
- A ShareTech-identity dropper installs itself and AVERAT, then deletes the malicious files it dropped while leaving the processes running.
- AVERAT and the new Rekoobe communicate with command-and-control servers over TCP port 25, using SMTP conventions to blend in with email traffic.
- The malware uses compromised edge devices, including DVRs and NAS units, as operational relay points.
- Defensive Notes
- On Linux systems, check for processes whose executable has a '(deleted)' suffix under /proc and for unexpected raw packet sockets.
- Check for the known dropper artifact directory /HDD/ms6x2xTo64/.
- Restrict management access to edge devices.
- Monitor outbound port 25 traffic from devices that are not mail services.
- Establish a baseline for normal outbound mail traffic from appliances and investigate anomalies.
- Network detection may require fingerprinting the implant's fixed TLS handshake; the article notes that its port can change at runtime.
MITRE ATT&CK
T1036.005 · Match Legitimate Resource Name or LocationBPFdoor and Rekoobe mimic SpamSniper filenames and other legitimate software details to resemble expected appliance software.T1070.004 · File DeletionThe ShareTech-identity dropper deletes the malicious files it dropped after installing AVERAT, leaving running processes in place.T1071.003 · Mail ProtocolsAVERAT and the new Rekoobe use SMTP conventions over TCP port 25 for command-and-control traffic.T1205.002 · Socket FiltersBPFdoor uses an activation code at a specific byte in incoming HTTPS requests to trigger its dormant behavior.
People
Malware
AVERATThe other is built around a novel tool called "AVERAT."BPFDoorOne cluster includes new variants on the infamous "BPFdoor" implant, and a new BPFdoor-esque iteration of the old "Rekoobe" remote access Trojan (RAT).RekoobeOne cluster includes new variants on the infamous "BPFdoor" implant, and a new BPFdoor-esque iteration of the old "Rekoobe" remote access Trojan (RAT).
Vendors
Jiran GroupB2B search platform IPROS, SpamSniper was used by more than 6,000 organizations as of July 2023. Jiran Group, the vendor, boasts on its website about supplying customers across the Asia-Pacific region, includingShareTechwith a malware dropper belonging to seemingly a separate campaign. The dropper adopts the identity of a ShareTech Information appliance. ShareTech is a Taiwanese mail security vendor that, according to its website,
Products
Countries
Industries
Email securitythe filenames, firewall-allowed traffic, and other specific operating habits of the popular Asian email security appliances they infect.TelecommunicationsEvery time researchers document BPFdoor publicly, it adapts; this allows its Chinese handlers to continue spying on global telecommunications companies.