NSDI 26 - KRAKENGUARD: Towards Fine-Grained eBPF Isolation @UsenixOrg
NSDI 26 - KRAKENGUARD: Towards Fine-Grained eBPF Isolation  @UsenixOrg
Uploaded June 2026 | Updated September 2026, 3 weeks ago
KRAKENGUARD: Towards Fine-Grained eBPF Isolation

Jainil Patel, IIT Roorkee; Lucas Graeff Buhl-Nielsen, Quantco; Adrien Ghosn, Microsoft; Marios Kogias, Imperial College London

eBPF is a powerful in-kernel virtual machine that enables dynamic, safe extensions to operating system kernels. Despite the guarantees provided by its in-kernel verifier, eBPF’s access control model remains coarse-grained, relying on broad Linux capabilities, such as CAP_BPF. Once granted, these allow unrestricted loading of eBPF programs to different kernel hooks. This poses serious security risks in multi-tenant or untrusted environments, where a compromised or malicious process can misuse eBPF to trace sensitive activity, access kernel memory, or disrupt system behavior. While existing verification ensures safety properties, it cannot enforce fine-grained constraints on what programs can do.

We present KRAKENGUARD, a trusted user-space manager that enforces fine-grained, policy-driven constraints on eBPF bytecode at load time. Using symbolic execution, it checks all program paths for compliance with policies on helper usage, memory accesses, and return values. It enables safe
delegation of program loading by unprivileged processes and detects cross-program interference to ensure safe co-location of eBPF programs on the same host.

We show that KRAKENGUARD can block the misuse of restricted helpers, unauthorized memory and map access, and unsafe packet modifications in real-world eBPF programs, while also being able to detect existing CVEs. As a use case, we implement an XDP-as-a-Service application that securely
runs XDP programs belonging to different tenants directly on the host interface after guaranteeing they cannot do anything malicious and that they do not interfere with each other.

View the full NSDI '26 program at usenix.org/conference/nsdi26/technical-sessions
NSDI 26 - KRAKENGUARD: Towards Fine-Grained eBPF IsolationNSDI 26 - Eywa: Automating Model-Based Testing using LLMsSREcon26 Americas - Executing Chaos Engineering in Production at a Critical Financial InstitutionSREcon26 Americas - The Case of the Misnamed Cities: CAST Analysis of a Google Maps IncidentNSDI 26 - Attack of the Bubbles: Straggler-Resilient Pipeline Parallelism for Large Model TrainingNSDI 26 - Matryoshka: Realizing Hyperscale Data Center Network Design for the AI EraSREcon26 Americas - Low Latency Serving of Offline Data: Efficient, Safe, and Reliable Data...PEPR 26 - The Disposable Identity: Eliminating Non-Human Identity Risk in Federal Healthcare...NSDI 26 - OneSidedMW: Managing Disaggregated Memory Efficiently, Flexibly, and Securely with RNICNSDI 26 - HEDGE: Traffic Engineering with Probabilistic Link CapacitiesNSDI 26 - Feedback-guided Adaptive Testing of Distributed Systems DesignsNSDI 26 - Fractal: Fault-Tolerant Shell-Script Distribution
USENIX |

NSDI '26 - KRAKENGUARD: Towards Fine-Grained eBPF Isolation

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER