Flare Finds eBPF Rootkit Tutorials Circulating on Underground Forums

Summary
Flare found underground posts sharing eBPF rootkit code and tutorials. The article details described stealth and activation methods, related exploit samples and limitations, and ways defenders can monitor and restrict eBPF use.
Key points
- Flare found a Russian-language Duty Free forum tutorial with source code and screenshots its author presented as demonstrations.
- The tutorial describes triggering an implant with a specially sized TCP SYN packet, hiding processes via getdents64 hooks, and encrypting command-and-control traffic with AES-256-GCM.
- It also describes using XDP to inspect plaintext HTTP and drop packets matching 43 IP addresses the author associates with antivirus vendors; Flare found 10 related Pastebin posts.
- eBPF programs can operate through the kernel's bpf() interface without loading a kernel module, so checks focused on loaded modules may miss them.
- The article reviews BPFDoor, Symbiote and LinkPro techniques. In LinkPro, investigators could still see associated BPF maps and links despite attempts to hide programs from bpftool.
- Flare found a frequently reposted exploit for CVE-2017-16995 and an unverified kTLS/eBPF sockmaps privilege-escalation PoC; its claimed compatibility with all kernels from 4.18 onward is incorrect, and success on Ubuntu 22.04 or 24.04 is unverified.
- Suggested defenses include auditing programs with bpftool, restricting eBPF access, monitoring for crafted activation packets and unexpected XDP programs, and patching BPF verifier flaws.
Article Details
- Attack Vectors
- eBPF rootkits can hook kernel functions, observe system calls, and inspect or modify network traffic without loading a kernel module.
- The Duty Free forum tutorial describes activating an implant with a TCP SYN packet having a specific window size and hiding processes by hooking getdents64.
- The tutorial describes encrypting command-and-control traffic with AES-256-GCM and using XDP to inspect incoming plaintext HTTP traffic and drop packets matching a list of 43 IP addresses associated by the author with antivirus vendors.
- A circulated exploit targets CVE-2017-16995, a Linux BPF verifier flaw involving incorrect sign extension. The article also describes an unverified local privilege-escalation PoC targeting kTLS and eBPF sockmaps; its claimed compatibility with all kernels from 4.18 onward is incorrect, and successful escalation on Ubuntu 22.04 or 24.04 has not been verified.
- Defensive Notes
- Audit loaded eBPF programs regularly with bpftool prog list and compare multiple sources of host telemetry; LinkPro reportedly hid its eBPF programs from that listing, while associated BPF maps and links remained visible.
- Restrict eBPF access with kernel.unprivileged_bpf_disabled=1 and limit CAP_BPF and CAP_NET_ADMIN.
- Monitor for magic packets, including specific TCP flags or window sizes, and for unexpected XDP programs on network interfaces.
- Monitor bpf() system calls and suspicious attachment points on sensitive system calls such as getdents64 and execve.
- Patch aggressively because BPF verifier bugs can be targeted by weaponized exploits.
MITRE ATT&CK
T1014 · RootkitThe article describes eBPF rootkits hiding host activity and processes; LinkPro reportedly also tried to hide its eBPF programs.T1040 · Network SniffingThe tutorial describes using XDP to inspect incoming plaintext HTTP traffic.T1068 · Exploitation for Privilege EscalationThe article reports exploits circulating for CVE-2017-16995, a Linux BPF verifier flaw, and describes an unverified local privilege-escalation PoC targeting kTLS and eBPF sockmaps.T1136.001 · Local AccountThe unverified privilege-escalation PoC attempts to corrupt /etc/passwd and inject an account with UID 0.T1205.002 · Socket FiltersBPFDoor used a classic BPF socket filter to recognize specially crafted packets, and the Duty Free tutorial describes activating an implant with a TCP SYN packet having a specific window size.T1573.001 · Symmetric CryptographyThe Duty Free tutorial describes encrypting command-and-control traffic with AES-256-GCM.T1574.006 · Dynamic Linker HijackingSymbiote uses the dynamic linker to preload a malicious shared library into affected processes.
CVE
Threat Actors
Malware
BPFDoorThe first major wake-up call came in 2022 when PwC and Elastic Security Labs documented BPFDoor, a passive Linux backdoor attributed to a Chinese threat actor tracked as Red Menshen.LinkProLastly, in October 2025, Synacktiv reported LinkPro after investigating a compromise that began with an exposed Jenkins server.SymbioteAround the same time, Intezer and BlackBerry jointly disclosed Symbiote, a different flavor of Linux malware that weaponizes BPF for stealth.
Products
JenkinsLastly, in October 2025, Synacktiv reported LinkPro after investigating a compromise that began with an exposed Jenkins server.LinuxFor years, eBPF (extended Berkeley Packet Filter) has been one of the most celebrated technologies in the Linux kernel.UbuntuSuccessful privilege escalation on Ubuntu 22.04 or 24.04 has not been verified.
Tools
BoopkitBoopkit uses getdents64 hooks to hide directory entries.bpftoolDetection today focuses on monitoring bpf() syscalls, tracking loaded programs via bpftool, and watching for suspicious attachment points on sensitive syscalls like getdents64 and execve.ebpfkitIn 2021, researchers presented ebpfkit at Black Hat USA and DEF CON.TripleCrossTripleCross combines syscall hooks with XDP and traffic control programs to support library injection, execution hijacking, concealment, and command and control.
