SafeBPF: Hardware-assisted Defense-in-depth for eBPF Kernel Extensions

The eBPF framework enables execution of user-provided code in the Linux kernel. In the last few years, a large ecosystem of cloud services has leveraged eBPF to enhance container security, system observability, and network management. Meanwhile, incessant discoveries of memory safety vulnerabilities have left the systems community with no choice but to disallow unprivileged eBPF programs, which unfortunately limits eBPF use to only privileged users. To improve run-time safety of the framework, we introduce SafeBPF, a general design that isolates eBPF programs from the rest of the kernel to prevent memory safety vulnerabilities from being exploited. We present a pure software implementation using a Software-based Fault Isolation (SFI) approach and a hardwareassisted implementation that leverages ARM's Memory Tagging Extension (MTE). We show that SafeBPF incurs up to 4% overhead on macrobenchmarks while achieving desired security properties.

Authors

Institutions

Publication Details

Published
2024-11-19
DOI
https://doi.org/10.1145/3689938.3694781
Citations
5
Primary Topic
Security and Verification in Computing
Type
article
Field-Weighted Citation Impact
1.74
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

SafeBPF: Hardware-assisted Defense-in-depth for eBPF Kernel Extensions

Thomas Pasquier, Xueyuan Han, Tanya Prasad, Soo Yee Lim
5 citations
Security and Verification in Computing
1.74
article

SafeBPF: Hardware-assisted Defense-in-depth for eBPF Kernel Extensions

Thomas Pasquier, Xueyuan Han, Tanya Prasad, Soo Yee Lim
article en
5 citations

Abstract

The eBPF framework enables execution of user-provided code in the Linux kernel. In the last few years, a large ecosystem of cloud services has leveraged eBPF to enhance container security, system observability, and network management. Meanwhile, incessant discoveries of memory safety vulnerabilities have left the systems community with no choice but to disallow unprivileged eBPF programs, which unfortunately limits eBPF use to only privileged users. To improve run-time safety of the framework, we introduce SafeBPF, a general design that isolates eBPF programs from the rest of the kernel to prevent memory safety vulnerabilities from being exploited. We present a pure software implementation using a Software-based Fault Isolation (SFI) approach and a hardwareassisted implementation that leverages ARM's Memory Tagging Extension (MTE). We show that SafeBPF incurs up to 4% overhead on macrobenchmarks while achieving desired security properties.

University of British Columbia (CA), Wake Forest University (US)
Openalex Percentile: Top 13%
Security and Verification in Computing
1.74
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

SafeBPF: Hardware-assisted Defense-in-depth for eBPF Kernel Extensions — Thomas Pasquier, Xueyuan Han, et al. · (2024) | TGRS Research Map | TGRS