Back to all lessons
Awareness Lessons
2 days ago

eBPF Rootkits: A Stealthy New Threat Evading Traditional Linux Defenses

Written by AI from the linked story. Not reviewed by an editor. How this works

Threat actors are weaponizing eBPF technology to build rootkits that hook directly into kernel functions without loading detectable kernel modules, allowing them to hide processes, network traffic, and malicious activity from conventional security tools. Because eBPF operates within a privileged but nominally legitimate kernel subsystem, many endpoint detection and monitoring solutions fail to flag its misuse. The active sharing of source code and tutorials on underground forums accelerates the proliferation of these techniques, lowering the barrier for less sophisticated actors. Organizations relying solely on traditional rootkit detection methods are now blind to an entire class of threat that is already deployed in the wild via tools like BPFDoor and Symbiote.

Tactical Insight

Immediate actions

  • Audit all Linux systems for unexpected or unauthorized eBPF programs using tools such as `bpftool prog list` and restrict eBPF privileges via kernel capabilities (`CAP_BPF`, `CAP_SYS_ADMIN`).
  • Deploy or update EDR/XDR solutions that include eBPF-aware detection capabilities and can inspect BPF map contents and hook points.

Detection measures

  • Implement kernel-level integrity monitoring (e.g., Falco, Tetragon) that can observe eBPF program loading events and alert on anomalous kernel hook registrations.
  • Correlate network traffic anomalies with process-level telemetry to identify hidden connections characteristic of BPFDoor-style rootkits.
  • Collect and centralize eBPF-related audit logs (e.g., `bpf()` syscall events via auditd) to establish a baseline and detect deviations.

Long-term improvements

  • Restrict eBPF usage to only approved, documented use cases by enforcing Linux Security Module (LSM) policies such as SELinux or AppArmor that limit who can load eBPF programs.
  • Maintain a current Linux kernel version to benefit from eBPF security hardening patches and reduce the attack surface exposed to privilege escalation needed to deploy rootkits.
  • Conduct regular threat-hunting exercises targeting eBPF abuse indicators, and train security teams on eBPF internals so they can recognize and investigate suspicious activity.

Back this up with a control

All controls and vendors

Training helps people spot this. These controls make the attack fail even on the day someone does not.