Skip to main content
Mallory
← Back to News
state-sponsored-espionageremote-access-implanttelecommunications-sector-threatpersistence-method

BPFDoor Linux Backdoor Used for Covert Access in Red Menshen Espionage Campaigns

Threat Actor Intelligence · 8 sources · Updated 3mo ago · First seen Aug 14, 2026

BPFDoor Linux Backdoor Used for Covert Access in Red Menshen Espionage Campaigns

Security researchers detailed BPFDoor, a stealthy Linux backdoor attributed by PwC to the China-linked group Red Menshen, describing its use in long-running intrusions against telecommunications, government, logistics, and education organizations in the Middle East and Asia. The malware is designed for covert re-entry and persistence, using raw sockets and Berkeley Packet Filter (BPF) logic to inspect network traffic for specially crafted magic packets, then launching a reverse shell, bind shell, or pingback without exposing obvious new listening services.

Researchers said BPFDoor can hide behind legitimate network activity by listening on traffic destined for existing services such as 443, allowing operators to execute commands while avoiding conspicuous firewall or port changes. Analysis showed the malware often copies itself into /dev/shm, deletes the original binary, spoofs process names, creates PID files under /var/run, and can temporarily alter iptables to hijack traffic for command and control; historical samples appeared functionally stable over time, with changes largely limited to hardcoded passwords, filenames, and process names. Elastic and other researchers published hunting guidance, YARA signatures, and tooling to help defenders identify infections.

Know this adversaryTTPs, infrastructure, and targeting history in one profile.
Get the profile
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

7 events · 2021 – Apr 2025
  1. Apr 2025

    BPFDoor variants recovered from April 2025 telecom breach

    Analysis of BPFDoor samples linked to a significant telecommunications provider breach in April 2025 showed newer Linux backdoor variants had evolved to evade existing detections. The updated malware used AF_PACKET SOCK_DGRAM sockets instead of visible raw sockets, dropped older /dev/shm fileless execution behavior, and added SSL with embedded self-signed certificates.

    BPFDoor - Part 2 - The Present
  2. Feb 2023

    Deep Instinct identifies stealthier BPFDoor variant

    Deep Instinct reported a newer BPFDoor variant that replaced older RC4 and bind-shell mechanisms with static-library encryption, reverse-shell communications, and commands supplied by the C2 server. The latest sample had been submitted to VirusTotal in February 2023 and was reportedly undetected by antivirus engines at the time of analysis.

    Stealthier version of Linux BPFDoor malware spotted in the wild
  3. Reported Jul 13, 20224y ago

    Elastic publishes BPFDoor technical analysis and detections

    Elastic Security Labs published a detailed analysis of BPFDoor, describing its behavior, historical sample evolution, and stealth mechanisms. Elastic also released detection content including behavioral rules, hunt queries, six YARA signatures, a scanner, and a configuration extractor.

    A peek behind the BPFDoor - Elastic Security Labs
  4. Reported May 8, 20225y ago

    PwC plans June 2022 presentation on BPFDoor

    PwC planned to present its BPFDoor findings in June 2022, indicating an upcoming public disclosure of its research on the malware and its attribution.

    BPFDoor - an active Chinese global surveillance tool | by Kevin Beaumont | DoublePulsar
  5. 2021

    PwC attributes BPFDoor to Red Menshen

    PwC attributed BPFDoor to the China-linked threat group Red Menshen and reported targeting of telecommunications, government, logistics, and education organizations across the Middle East and Asia.

    A peek behind the BPFDoor - Elastic Security Labs
  6. 2021

    PwC discovers BPFDoor activity

    PwC researchers discovered BPFDoor in 2021 and identified it as a stealthy Linux backdoor used for long-term persistence and covert re-entry.

    A peek behind the BPFDoor - Elastic Security Labs
  7. Date unknown

    MITRE ATT&CK documents BPFDoor timestomping behavior

    MITRE ATT&CK documented that BPFDoor uses the Linux utimes() function to alter its executable's timestamp, adding a specific defense-evasion and anti-forensics behavior for the malware.

    Indicator Removal: Timestomp, Sub-technique T1070.006 - Enterprise | MITRE ATT&CK®
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Threat actors

1 linked

Malware

1 linked

Organizations

1 linked
significant telecommunications provider

Breaches

1 linked
SIGNIFICANTTELECOMMUNICATIONSPROVIDER-2025-04

Observables

41 linked

Indicator values are masked on this page. View all 41 in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See this adversary's TTPs, infrastructure, and targeting history, correlated against your exposure.
Get the Full Actor Profile
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.