SafeBPF:面向eBPF内核扩展的硬件辅助纵深防御
SafeBPF: Hardware-assisted Defense-in-depth for eBPF Kernel Extensions
AI总结:
针对eBPF框架因内存安全漏洞被限制为仅特权用户使用的问题,提出通用安全设计SafeBPF,通过纯软件SFI或ARM MTE硬件辅助隔离eBPF程序与内核,在宏基准测试最高4%开销下实现预期安全属性。
摘要:
eBPF框架支持在Linux内核中执行用户提供的代码。过去几年,庞大的云服务生态系统利用eBPF来增强容器安全、系统可观测性和网络管理能力。与此同时,内存安全漏洞的不断发现迫使系统界不得不禁用非特权eBPF程序,这不幸地将eBPF的使用限制在仅特权用户范围内。为提升该框架的运行时安全性,我们提出SafeBPF——一种将eBPF程序与内核其余部分隔离、以防内存安全漏洞被利用的通用设计。我们展示了两种实现方案:一种采用基于软件的故障隔离(SFI)方法的纯软件实现,以及一种利用ARM内存标记扩展(MTE)的硬件辅助实现。实验表明,SafeBPF在宏基准测试上带来的开销最高为4%,同时实现了预期的安全特性。
英文摘要:
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 hardware-assisted 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。