← Lab /Security & privacy

Linux rootkits now use eBPF and io_uring hooks to evade traditional detection

Modern Linux rootkits employ eBPF and io_uring hooking techniques to bypass conventional security tools

Security & privacy Elastic Security Labs 5 Mar 2026 Explainer Theory

Published as “Hooked on Linux: Rootkit Taxonomy, Hooking Techniques and Tradecraft”

Why it matters

Understanding these newer hooking vectors is essential for designing detection tools that can spot stealthy Linux rootkits in modern environments.

Summary

The writeup surveys the evolution of Linux rootkits from early user-space shared-object tricks to modern kernel-space implants that abuse eBPF and io_uring. It shows how eBPF programs can be loaded without a loadable kernel module, evading LKM scanners and Secure Boot, while io_uring can batch I/O to reduce observable syscalls. The authors also detail legacy hooks like IDT and syscall-table patching and explain why recent kernel changes (e.g., syscall dispatch switch in 6.9) mitigate some of these methods. Evidence is based on documented examples and code snippets rather than empirical measurements.

What they found 3

  1. io_uring can be abused to evade syscall-based EDRs

    “io_uring can be abused to create stealthy userland agents or kernel-context rootkits that evade syscall-based EDRs.”

  2. Linux 6.9 changed syscall dispatch, rendering sys_call_table hooks ineffective for execution

    “Starting with kernel 6.9, the syscall number is used in a switch statement to find and execute the appropriate handler. The sys_call_table still exists but is only populated for compatibility with tracing tools and is no longer used in the syscall execution path.”

  3. IDT hooking is obsolete and only applicable to old 32-bit kernels

    “IDT hooking is mostly a historical technique now. It only worked on older Linux systems that use the int 0x80 mechanism (32-bit x86 kernels before Linux 2.6).”

Caveats 3

  • eBPF loading still requires elevated privileges: "They require CAP_BPF or CAP_SYS_ADMIN (or rare unprivileged BPF access) to deploy."
  • io_uring abuse can be detected by monitoring its syscalls: "Detection is possible by instrumenting the io_uring syscalls (io_uring_enter, io_uring_register) and watching for anomalous patterns."
  • In this first installment, we focus on the theory behind how rootkits work: their taxonomy, evolution, and the hooking techniques they use to subvert the kernel.

What’s new here 4

  • Highlights eBPF as a stealthy alternative to LKMs for kernel-space rootkits
  • Introduces io_uring abuse as a way to reduce syscall telemetry
  • Documents the impact of Linux 6.9 syscall dispatch redesign on table-hooking
  • Provides a consolidated taxonomy of hooking techniques across kernel versions