Milad Mirzaeicheshmeh
eBPF Code Security Analysis.
Rel. Riccardo Sisto, Rosario Rizza. Politecnico di Torino, Master of science program in Cybersecurity, 2026
|
Preview |
PDF (Tesi_di_laurea)
- Thesis
Licence: Creative Commons Attribution Non-commercial No Derivatives. Download (984kB) | Preview |
Abstract
The Extended Berkeley Packet Filter (eBPF) has emerged as a core technology for running sandboxed, user-supplied programs inside the Linux kernel to perform high-performance tasks like networking, tracing, and security monitoring. To maintain system integrity, every submitted program must pass through a static analyzer called the verifier before execution. However, flaws in the verifier have repeatedly allowed local attackers to escalate privileges to root. Every known exploit for such flaws is written directly as hand-crafted bytecode, and whether the same attacks could instead be produced by ordinary C compiled through the standard toolchain has remained an open question. This thesis answers that question by systematically analyzing six vulnerabilities disclosed between 2017 and 2023.
For each one, we reverse-engineer the original exploit, derive its instruction-level requirements, and evaluate whether a standard BPF compilation pipeline can satisfy them
Relators
Academic year
Publication type
Number of Pages
Course of studies
Classe di laurea
URI
![]() |
Modify record (reserved for operators) |
