Lune

USENIX ATC2023顶会

EPF: Evil Packet Filter

Di Jin, Vaggelis Atlidakis, Vasileios P. Kemerlis

摘要

The OS kernel is at the forefront of a system's security. Therefore, its own security is crucial for the correctness and integrity of user applications. With a plethora of bugs continuously discovered in OS kernel code, defenses and mitigations are essential for practical kernel security. One important defense strategy is to isolate user-controlled memory from kernel-accessible memory, in order to mitigate attacks like ret2usr and ret2dir. We present EPF (Evil Packet Filter): a new method for bypassing various (both deployed and proposed) kernel isolation techniques by abusing the BPF infrastructure of the Linux kernel: i.e., by leveraging BPF code, provided by unprivileged users/programs, as attack payloads. We demonstrate two different EPF instances, namely BPF-Reuse and BPF-ROP, which utilize malicious BPF payloads to mount privilege escalation attacks in both 32-and 64-bit x86 platforms. We also present the design, implementation, and evaluation of a set of defenses to enforce the isolation between BPF instructions and benign kernel data, and the integrity of BPF program execution, effectively providing protection against EPF-based attacks. Our implemented defenses show minimal overhead (< 3%) in BPF-heavy tasks.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 12 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR 引用了 Breaking Kernel Address Space Layout Randomization with Intel TSX
  • Breaking Kernel Address Space Layout Randomization with Intel TSX 引用了 Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
  • FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free Vulnerabilities 引用了 Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
  • FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free Vulnerabilities 引用了 Breaking Kernel Address Space Layout Randomization with Intel TSX
  • HIVE: A Hardware-assisted Isolated Execution Environment for eBPF on AArch64 引用了 Spectre Attacks: Exploiting Speculative Execution
  • HIVE: A Hardware-assisted Isolated Execution Environment for eBPF on AArch64 引用了 MOAT: Towards Safe BPF Kernel Extension
  • MOAT: Towards Safe BPF Kernel Extension 引用了 Specification and verification in the field: Applying formal methods to BPF just-in-time compilers in the Linux kernel
  • Revealing the Unstable Foundations of eBPF-Based Kernel Extensions 引用了 MOAT: Towards Safe BPF Kernel Extension
  • Revealing the Unstable Foundations of eBPF-Based Kernel Extensions 引用了 Specification and verification in the field: Applying formal methods to BPF just-in-time compilers in the Linux kernel
  • Revealing the Unstable Foundations of eBPF-Based Kernel Extensions 引用了 BeeBox: Hardening BPF against Transient Execution Attacks
  • PeTAL: Ensuring Access Control Integrity against Data-only Attacks on Linux 引用了 Spectre Attacks: Exploiting Speculative Execution
  • Specification and verification in the field: Applying formal methods to BPF just-in-time compilers in the Linux kernel 引用了 Spectre Attacks: Exploiting Speculative Execution
  • BeeBox: Hardening BPF against Transient Execution Attacks 引用了 Spectre Attacks: Exploiting Speculative Execution
  • BeeBox: Hardening BPF against Transient Execution Attacks 引用了 Specification and verification in the field: Applying formal methods to BPF just-in-time compilers in the Linux kernel
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper12

  1. MOAT: Towards Safe BPF Kernel ExtensionHongyi Lu, Shuai Wang, Yechang Wu, Wanning He 等USENIX Security 2024 · 18 次引用
  2. BeeBox: Hardening BPF against Transient Execution AttacksDi Jin, Alexander J. Gaidis, Vasileios P. KemerlisUSENIX Security 2024 · 10 次引用
  3. HIVE: A Hardware-assisted Isolated Execution Environment for eBPF on AArch64Peihua Zhang, Chenggang Wu, Xiangyu Meng, Yinqian Zhang 等USENIX Security 2024 · 8 次引用
  4. PeTAL: Ensuring Access Control Integrity against Data-only Attacks on LinuxJuhee Kim, Jinbum Park, Yoochan Lee, Chengyu Song 等CCS 2024 · 6 次引用
  5. Revealing the Unstable Foundations of eBPF-Based Kernel ExtensionsShawn Wanxiang Zhong, Jing Liu, Andrea C. Arpaci-Dusseau, Remzi H. Arpaci-DusseauEuroSys 2025 · 4 次引用

它引用的 Paper10

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用
  2. Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLRDaniel Gruss, Clémentine Maurice, Anders Fogh, Moritz Lipp 等CCS 2016 · 278 次引用
  3. Breaking Kernel Address Space Layout Randomization with Intel TSXYeongjin Jang, Sangho Lee, Taesoo KimCCS 2016 · 174 次引用
  4. FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free VulnerabilitiesWei Wu, Yueqi Chen, Jun Xu, Xinyu Xing 等USENIX Security 2018 · 124 次引用
  5. Specification and verification in the field: Applying formal methods to BPF just-in-time compilers in the Linux kernelLuke Nelson, Jacob Van Geffen, Emina Torlak, Xi WangOSDI 2020 · 72 次引用

相关 Paper

  1. SoK: Challenges and Paths Toward Memory Safety for eBPFKaiming Huang, Mathias Payer, Zhiyun Qian, Jack Sampson 等S&P 2025
  2. RetSpill: Igniting User-Controlled Data to Burn Away Linux Kernel ProtectionsKyle Zeng, Zhenpeng Lin, Kangjie Lu, Xinyu Xing 等CCS 2023 · 9 次引用
  3. Enforcing Kernel Security Invariants with Data Flow IntegrityChengyu Song, Byoungyoung Lee, Kangjie Lu, William Harris 等NDSS 2016 · 141 次引用
  4. Training Solo: On the Limitations of Domain Isolation Against Spectre-v2 AttacksSander Wiebing, Cristiano GiuffridaS&P 2025
  5. Validating the eBPF Verifier via State EmbeddingHao Sun, Zhendong SuOSDI 2024 · 18 次引用
黄昏的海面,两侧是细线勾勒的悬崖