Skip to navigation

Threat reportMalwareTL-2026-3097

BPFDoor Linux backdoor (Red Menshen / Earth Bluecrow) targeting telecom infrastructure and network edge devices

highACTIVE

BPFDoor is a stealthy Linux backdoor that uses Berkeley Packet Filters to stay dormant until a magic packet arrives, with no constant beacons or listening ports. It is used against telecom providers and edge systems such as mail security gateways, VPN appliances and firewalls, and newer variants masquerade as regional software such as Korean anti-spam products and HPE ProLiant agents. First disclosed .

Key facts for BPFDoor Red Menshen telecom

IdentifiersTL-2026-3097
Also known asBPFdoor, Backdoor.Linux.BPFDOOR, icmpShell, httpShell
SeverityHIGH
First disclosed
Exploitation statusExploited in the wild
Affected productsVarious Linux servers and network edge appliances (mail security gateways, VPN appliances, firewalls, telecom edge systems); HPE ProLiant management agents (masqueraded by variants G and H); ShareTech ShareTech appliances (AVERAT dropper in /addpkg/sbin/)
AttributionRed Menshen (medium confidence)
Nation-state nexusChina
MalwareAVERAT, BPFDoor, BPFDoor - S1161, HTTP-Shell
ToolsRapid7, rapid7_bpfdoor_check.sh
MITRE ATT&CK techniquesT1014 Rootkit, T1036.004 Masquerade Task or Service, T1036.005 Match Legitimate Resource Name or Location, T1059.004 Unix Shell, T1070.003 Clear Command History, T1070.006 Timestomp, T1071.003 Mail Protocols, T1071.004 DNS, T1090.001 Internal Proxy, T1095 Non-Application Layer Protocol, T1190 Exploit Public-Facing Application, T1205.002 Socket Filters and 3 more in the attack flow
MotivationESPIONAGE
Target sectorstelecoms, finance, retail, technology
Target regionssouth korea, taiwan, hong kong, myanmar, malaysia, egypt, Middle East, Asia
Detection rules9 (1 shown free)
Sources8 cited sources

Detection coverage for BPFDoor Red Menshen telecom

As of 2026-10-09, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3097 across Splunk SPL, Microsoft KQL and Sigma, covering 25 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: BPFDoor — Process Masquerading as HPE/Oracle/Storage Daemon or Running From Root Runtime Directory

Detects executables named hpasmlited, cmathreshd, ora_ppmond, udevds or vmtoolsdsrv outside genuine vendor install paths, cmathreshd run with '-p 5 -s OK' (variant H), and any binary executing from /var/run/user/0 or /dev/shm (variant F and newer). BPFDoor spoofs benign daemon names to blend into process listings on edge appliances.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1036.004, T1036.005
  • Data sources: sysmon_for_linux, microsoft_defender_for_endpoint_linux, linux_auditd
  • Severity: high
  • Confidence: high

Splunk SPL

index=linux sourcetype="sysmon:linux" EventCode=1
| eval proc=lower(mvindex(split(Image,"/"),-1))
| eval masq_name=if(proc IN ("hpasmlited","cmathreshd","ora_ppmond","udevds","vmtoolsdsrv"),1,0)
| eval legit_hpe=if(proc IN ("hpasmlited","cmathreshd") AND match(Image,"^/(sbin/hp|usr/sbin/hp|opt/hp/|opt/hpe/)"),1,0)
| eval odd_path=if(match(Image,"^/(var/run/user/0|dev/shm)/"),1,0)
| eval variant_h_args=if(match(CommandLine,"cmathreshd.*-p\s+5\s+-s\s+OK"),1,0)
| where (masq_name=1 AND legit_hpe=0) OR odd_path=1 OR variant_h_args=1
| stats count min(_time) as first_seen max(_time) as last_seen values(CommandLine) as cmdlines values(ParentImage) as parents by host User Image masq_name odd_path variant_h_args
| convert ctime(first_seen) ctime(last_seen)

Microsoft KQL

DeviceProcessEvents
| where Timestamp > ago(24h)
| extend ProcName = tolower(FileName)
| extend LegitHpe = ProcName in ("hpasmlited","cmathreshd") and FolderPath matches regex @"^/(sbin/hp|usr/sbin/hp|opt/hp/|opt/hpe/)"
| extend MasqName = ProcName in ("hpasmlited","cmathreshd","ora_ppmond","udevds","vmtoolsdsrv")
| extend OddPath = FolderPath startswith "/var/run/user/0/" or FolderPath startswith "/dev/shm/"
| extend VariantHArgs = ProcessCommandLine matches regex @"cmathreshd.*-p\s+5\s+-s\s+OK"
| where (MasqName and not(LegitHpe)) or OddPath or VariantHArgs
| project Timestamp, DeviceName, AccountName, FolderPath, FileName, ProcessCommandLine, InitiatingProcessFileName, MasqName, OddPath, VariantHArgs
| order by Timestamp desc

Sigma

title: BPFDoor Masqueraded Process Name or Execution From Root Runtime Directory
id: 5d6e1b90-c2a7-4e83-a1f4-9b0c3d7e8f26
status: experimental
description: Detects processes named after HPE agents, Oracle PMON or storage daemons that run from non-vendor paths, cmathreshd with the variant H flags, or any binary executing from /var/run/user/0 or /dev/shm.
references:
    - https://www.rapid7.com/blog/post/tr-new-whitepaper-stealthy-bpfdoor-variants/
    - https://www.trendmicro.com/en_us/research/25/d/bpfdoor-hidden-controller.html
    - https://thehackernews.com/2026/10/linux-backdoors-impersonate-email.html
author: AII-Detector — ThreadLinqs Intelligence
date: 2026-10-09
tags:
    - attack.defense-evasion
    - attack.t1036.004
    - attack.t1036.005
    - attack.s1161
    - attack.tool.bpfdoor
logsource:
    category: process_creation
    product: linux
detection:
    selection_name:
        Image|endswith:
            - '/hpasmlited'
            - '/cmathreshd'
            - '/ora_ppmond'
            - '/udevds'
            - '/vmtoolsdsrv'
    filter_hpe:
        Image|startswith:
            - '/sbin/hp'
            - '/usr/sbin/hp'
            - '/opt/hp/'
            - '/opt/hpe/'
        Image|endswith:
            - '/hpasmlited'
            - '/cmathreshd'
    selection_path:
        Image|startswith:
            - '/var/run/user/0/'
            - '/dev/shm/'
    selection_args:
        CommandLine|contains|all:
            - 'cmathreshd'
            - '-p 5 -s OK'
    condition: (selection_name and not filter_hpe) or selection_path or selection_args
falsepositives:
    - Genuine HPE Agentless Management or ProLiant agents installed under vendor paths
    - Legitimate tools staged in /dev/shm by installers or container runtimes
level: high

Known false positives:

  • Genuine HPE agents in vendor directories not covered by the path allow-list
  • Installers or runtimes that execute helpers from /dev/shm

Tuning notes: Extend the HPE allow-list with the exact install paths in your fleet (verify against package manifests). For the SpamSniper-impersonating builds that rotate through legitimate daemon names (dockerd, zabbix_agentd, qmgr, etc.), compare the binary path against the package-owned path, since the names alone are legitimate. Hash-match hits against the Rapid7 variant F/G/H SHA-256 values.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • BPFDoor — AF_PACKET Raw Socket Creation and BPF Filter Attachment by Non-Capture Binary · unlock with TL Creds
  • BPFDoor — Command History Disabling and Timestomping of Dropped Binaries · unlock with TL Creds
  • BPFDoor / AVERAT — Outbound TCP/25 From Non-Mail Process or AVERAT C2 Host · unlock with TL Creds
  • BPFDoor — Known Implant Artefact Paths Created on Linux Host · unlock with TL Creds
  • BPFDoor — iptables NAT REDIRECT Into Direct-Connection Port Range 42391-43390 · unlock with TL Creds
  • BPFDoor icmpShell — ICMP Echo Traffic With Invalid Code 1 Heartbeat · unlock with TL Creds
  • BPFDoor — Web/Service Daemon Spawning Shell With Staging Activity on Linux Edge Host · unlock with TL Creds
  • BPFDoor / AVERAT — DNS Lookups for Variant H Heartbeat and AVERAT C2 Domains · unlock with TL Creds

Indicators of compromise for BPFDoor Red Menshen telecom

As of 2026-10-09, Threadlinqs Intelligence tracks 25 indicators of compromise for TL-2026-3097.

Sample indicators (3 of 25)

  • Domain: ntpussl[.]instanthq[.]com
  • File hash: 2cc90edd9bc085f54851bed101f95ce2bace7c9a963380cfd11ea0bc60e71e0c
  • Domain: ntpupdate[.]ddnsgeek[.]com

Defanged, TLP:CLEAR. Full set of 25 indicators: unlock with TL Creds.

25 indicators of compromise · unlock with TL Creds. Compare plans

How BPFDoor Red Menshen telecom works

BPFDoor attaches a Berkeley Packet Filter to a raw AF_PACKET socket so the kernel inspects traffic and the implant activates only when a crafted 'magic' packet (TCP, UDP or ICMP) is seen. Because the socket is passive, there is no listening port, no periodic beacon, and the sniffing is not visible to netstat or ss; the magic packet can bypass host firewall filtering. Per Rapid7's Christiaan Beek (Help Net Security, 2026-10-09), operators keep changing how the trigger is hidden: once defenders learn to spot one activation method, the operators move to another. The malware targets appliances that cannot run EDR agents, including mail security gateways, VPN appliances, firewalls and telecom network edge systems, and in telecom networks it provides access to subscriber data, signaling flows, authentication exchanges and communications metadata for long-term collection.

Rapid7 Labs' whitepaper (published 2026-04-02, updated 2026-09-23, roughly 300 samples analysed) documents seven new variants, F through L. Variant F uses a 26-instruction BPF filter, runs from /var/run/user/0, wipes file descriptors and uses new magic bytes (0x3182, 0x2048, 0x1051, 0x1155, 0x3321, 0x5433). Variant G sniffs TCP/UDP/ICMP in multiple threads and spoofs the HPE process name hpasmlited. Variant H beacons actively with a DNS heartbeat and NTP/SSL-themed domains, and masquerades as HPE ProLiant software (cmathreshd with flags '-p 5 -s OK', lock file /var/run/cma.lock). Variant I uses an 11-instruction filter on TCP port 9999 with magic 0xA9F205C3. Variants J, K and L add an ICMP relay (and, for J and K, HTTP tunneling plus the icmpShell/httpShell families). The v2 magic packet carries a 'Hidden IP' field; a value of -1 (255.255.255.255) makes the implant open a reverse shell to the packet's source, so no hardcoded C2 address is needed. In ICMP relay mode the infected host forwards traffic to an internal target taken from that field. icmpShell uses a hardcoded ICMP sequence number 1234, RC4 key 'icmp' and an invalid ICMP code 1 heartbeat. Anti-forensics include timestomping, HISTFILE=/dev/null, stack strings, and unsetenv('LD_PRELOAD') to defeat user-mode hooks.

Trend Micro's controller analysis of BPFDoor (Earth Bluecrow) describes TCP (0x5293), UDP and ICMP (0x7255) activation modes, an MD5-with-fixed-salt password check, reverse-shell and direct-connection modes (iptables REDIRECT into ports 42391-43390, response marker '3458'), and disabling of command logging (HISTFILE and MYSQL_HISTFILE set to /dev/null). Trend lists victims in South Korea, Myanmar and Hong Kong (telecom), Malaysia (retail) and Egypt (finance) during 2024. The Hacker News (October 2026) reports BPFDoor builds against South Korean systems that impersonate the PID file of SpamSniper, a Korean anti-spam product, and rotate through ten Linux daemon names, alongside a related BPF Rekoobe build and the AVERAT implant against ShareTech appliances (dropper ntpdate, payload udevds, C2 over TCP 25 with a 600-699 second beacon).

Attribution: the Help Net Security source gives none. Other public reporting (PwC, Trend Micro, Rapid7) ties BPFDoor to the China-linked group Red Menshen (aka Earth Bluecrow, DecisiveArchitect, Red Dev 18), active against telecoms in Asia and the Middle East since 2021. Attribution confidence is rated MEDIUM here because it relies on secondary vendor reporting. No CVE is cited for BPFDoor itself; Trend lists exploitation of public-facing applications as the initial compromise path. Severity HIGH is an analyst assessment.

MITRE ATT&CK techniques by tactic:

Defense Evasion

T1014 Rootkit; T1036.004 Masquerade Task or Service; T1036.005 Match Legitimate Resource Name or Location; T1070.003 Clear Command History; T1070.006 Timestomp; T1205.002 Socket Filters

Execution

T1059.004 Unix Shell

Command and Control

T1071.003 Mail Protocols; T1071.004 DNS; T1090.001 Internal Proxy; T1095 Non-Application Layer Protocol; T1572 Protocol Tunneling; T1573.001 Symmetric Cryptography

Initial Access

T1190 Exploit Public-Facing Application

defense-impairment

T1685 Disable or Modify Tools

Remediation for BPFDoor Red Menshen telecom

Patches

  • Keep edge appliance firmware and public-facing services current; no BPFDoor-specific CVE is cited in the sources

Immediate actions

  • Hunt Linux hosts for processes whose executable shows '(deleted)' in /proc and for root-owned processes with spoofed daemon names (hpasmlited, cmathreshd, dockerd, zabbix_agentd, qmgr)
  • Enumerate raw AF_PACKET sockets and attached BPF filters on systems that are not meant to capture traffic (Rapid7 rapid7_bpfdoor_check.sh)
  • Alert on outbound TCP port 25 from non-mail services and on ICMP echo with sequence 1234 or invalid ICMP code 1
  • Restrict management-plane access to edge appliances to dedicated admin networks

Workarounds

  • Block or filter unsolicited TCP/UDP/ICMP packets to edge hosts at upstream firewalls, since the magic packet is only seen by the host kernel BPF filter

Longer-term hardening

  • Add network-level telemetry in front of appliances that cannot host EDR agents
  • Audit auditd/eBPF telemetry for socket(AF_PACKET) and setsockopt(SO_ATTACH_FILTER) from non-capture binaries
  • Review telecom core and edge segmentation so a compromised edge host cannot reach signaling and subscriber systems

Affected and fixed versions

  • Various — Linux servers and network edge appliances (mail security gateways, VPN appliances, firewalls, telecom edge systems)
    Vulnerable versions: Linux hosts without kernel-level packet-socket monitoring
  • HPE — ProLiant management agents (masqueraded by variants G and H)
  • ShareTech — ShareTech appliances (AVERAT dropper in /addpkg/sbin/)

Timeline of BPFDoor Red Menshen telecom

  • Red Menshen (Earth Bluecrow) begins locked-ioc-23 activity against telecom providers in the Middle East and Asia (year precision per public reporting).
  • PwC publicly reports locked-ioc-23 and attributes it to Red Menshen targeting telecoms (year precision).
  • Trend Micro lists a Hong Kong telecom victim in January 2024 (month precision).
  • Trend Micro lists an Egyptian financial services victim in September 2024 (month precision).
  • Trend Micro lists telecom victims in South Korea and Myanmar in December 2024 (month precision).
  • Rapid7 Labs publishes whitepaper on seven new locked-ioc-23 variants (F-L) from about 300 analysed samples, including httpShell and icmpShell.
  • Rapid7 updates its locked-ioc-23 variants publication.
  • Help Net Security publishes Rapid7's Christiaan Beek on locked-ioc-23 and network-edge attacks, noting new variants masquerading as Korean anti-spam software.

Sources cited for BPFDoor Red Menshen telecom

More from Red Menshen

Previous and next in malware

Drafted by the Threadlinqs research pipeline from 8 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

[ 0 threats ] [ 0 det ] [ CRIT: 0 ] [ HIGH: 0 ]
// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats