Runtime Type-Based Access Control for eBPF
eBPF’s kernel-level flexibility introduces security risks as untrusted programs gain unrestricted access to sensitive data structures. We propose Runtime Type-Based Access Control (RTBAC), a compiler-driven framework that automatically enforces security policies on eBPF programs. By integrating a custom LLVM pass, RTBAC injects runtime checks into the Intermediate Representation (IR) to validate pointer types during dereferencing against kernel-defined policies. This approach leverages Linux’s BPF Type Format (BTF) to resolve nested structures and pointers, while kernel modifications isolate type metadata per program. The solution requires no developer intervention, mitigates risks of third-party eBPF code, and integrates with existing workflows via an out-of-tree LLVM pass.
Authors
- Giuseppe Gaetano Lettiéri
- Leonardo Giovannoni (ORCID: https://orcid.org/0009-0005-8502-0186)
- Gregorio Procissi
Institutions
- University of Pisa (IT)
Publication Details
- Published
- 2025-11-10
- DOI
- https://doi.org/10.1109/nfv-sdn66355.2025.11349638
- Primary Topic
- Security and Verification in Computing
- Type
- article
- Field-Weighted Citation Impact
- 0.00