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.

Runtime Type-Based Access Control for eBPF

Giovannoni, Leonardo;Lettieri, Giuseppe;Procissi, Gregorio
2025-01-01

Abstract

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.
2025
978-1-6654-6577-9
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11568/1345628
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact