Hackers Deploy Stealthy BPFdoor Backdoors in Telecom Networks

Hackers linked to the China-nexus group Red Menshen are deploying highly stealthy BPFdoor backdoors inside global telecom networks, enabling long-term espionage operations that are difficult to detect and remove.

According to new findings from Rapid7 Labs, the campaign focuses on persistence and silent surveillance rather than disruptive attacks, effectively creating “sleeper cells” within critical communications infrastructure.

Telecom networks form the backbone of global connectivity, handling mobile identities, call routing, and data transmission.

A compromise at this level gives attackers the ability to monitor communications, track individuals, and gather intelligence at a national scale.

Instead of targeting core systems directly, attackers first gain access through internet-facing infrastructure such as VPN appliances, firewalls, and virtualized environments.

Overview of BPF and how early BPFdoor variants are operating (Source: Rapid7)
Overview of BPF and how early BPFdoor variants are operating (Source: Rapid7)

Known vulnerabilities in these edge systems provide an entry point for deeper network infiltration.

Once inside, the attackers deploy a suite of Linux-based post-exploitation tools designed to blend into telecom environments and move laterally toward core signaling systems.

CrossC2 is used for command execution and lateral movement, primarily targeting Linux-based edge devices and routing systems.

TinyShell provides persistent remote access and is commonly deployed against firewalls and VPN gateways to maintain long-term control.

 Example of code mimicking HP Proliant servers (Source: Rapid7)
 Example of code mimicking HP Proliant servers (Source: Rapid7)

Meanwhile, BPFdoor operates as a kernel-level backdoor with traffic inspection capabilities, specifically designed to target Linux servers and telecom core infrastructure.

In addition to these tools, operators use custom SSH brute-force utilities and keyloggers. These tools are preloaded with telecom-specific usernames such as “imsi,” indicating deep familiarity with subscriber identity systems and telecom operations.

At the center of the campaign is BPFdoor, a Linux kernel-level backdoor that leverages the Berkeley Packet Filter (BPF), a legitimate feature used for packet inspection and troubleshooting.

Unlike traditional malware, BPFdoor does not open listening ports or generate suspicious network traffic. Instead, it embeds a malicious BPF filter directly into the kernel.

This filter silently monitors incoming packets and waits for a specially crafted “magic packet” containing a predefined byte sequence.

When detected, the malware activates and opens a remote shell for the attacker. Because there is no continuous communication with command-and-control servers, infected systems appear clean to most security tools.

Recent variants of BPFdoor show expanded capabilities, particularly the ability to monitor Stream Control Transmission Protocol (SCTP) traffic.

SCTP is critical for signaling in 4G and 5G networks. By targeting this protocol, attackers bypass traditional IT layers and gain direct access to telecom signaling systems.

This access enables the interception of SMS messages, the tracking of subscriber identities, and the monitoring of user locations.

In advanced scenarios, attackers can observe signaling events to track the physical movement of targeted individuals in real time.

To maintain persistence, BPFdoor employs advanced evasion techniques. It disguises itself as legitimate system components, including enterprise hardware services.

Rapid7 identified samples mimicking HPE ProLiant server processes using names like “hpasmlited,” blending into expected system activity.

Newer variants also impersonate Kubernetes components used in cloud-native 5G environments. By spoofing functions such as the Access and Mobility Management Function (AMF), the malware integrates into modern telecom infrastructure without raising alarms.

This combination of kernel-level stealth, protocol targeting, and infrastructure mimicry makes BPFdoor particularly dangerous.

Detecting it requires deep visibility into kernel operations and network signaling layers, capabilities many organizations currently lack.

The campaign highlights a growing trend among state-aligned actors to prioritize persistence and invisibility within critical infrastructure, signaling a shift toward long-term intelligence-gathering over immediate disruption.

Follow us on Google News , LinkedIn and X to Get More Instant Updates. Set Cyberpress as a Preferred Source in Google

AnuPriya
AnuPriya
Any Priya is a cybersecurity reporter at Cyber Press, specializing in cyber attacks, dark web monitoring, data breaches, vulnerabilities, and malware. She delivers in-depth analysis on emerging threats and digital security trends.

Trending News

Related Stories