Lune

CCS2020顶会

Finding Cracks in Shields: On the Security of Control Flow Integrity Mechanisms

Yuan Li, Mingzhe Wang, Chao Zhang, Xingman Chen, Songtao Yang, Ying Liu

摘要

Control-flow integrity (CFI) is a promising technique to mitigate control-flow hijacking attacks. In the past decade, dozens of CFI mechanisms have been proposed by researchers. Despite the claims made by themselves, the security promises of these mechanisms have not been carefully evaluated, and thus are questionable. In this paper, we present a solution to measure the gap between the practical security and the claimed theoretical security. First, we propose CScan to precisely measure runtime feasible targets of indirect control transfer (ICT) instructions protected by CFI, by enumerating all potential code addresses and testing whether ICTs are allowed to jump to them. Second, we propose CBench as a sanity check for verifying CFI solutions? effectiveness against typical attacks, by exploiting a comprehensive set of vulnerable programs protected by CFI and verifying the recognized feasible targets. We evaluated 12 most recent open-source CFI mechanisms and discovered 10 flaws in most CFI mechanisms or implementations. For some CFIs, their security policies or protected ICT sets do not match what they claimed. Some CFIs even expand the attack surface (e.g. introducing unintended targets). To facilitate a deeper understanding of CFI, we summarize the flaws into 7 common pitfalls which cover the whole lifetime of CFI mechanisms and reveal issues that affect CFI mechanisms in practical security.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • VIP: Safeguard Value Invariant Property for Thwarting Critical Memory Corruption Attacks 引用了 Efficient Protection of Path-Sensitive Control Security
  • VIP: Safeguard Value Invariant Property for Thwarting Critical Memory Corruption Attacks 引用了 Enforcing Unique Code Target Property for Control-Flow Integrity
  • VIP: Safeguard Value Invariant Property for Thwarting Critical Memory Corruption Attacks 引用了 A Tough Call: Mitigating Advanced Code-Reuse Attacks at the Binary Level
  • Enforcing Unique Code Target Property for Control-Flow Integrity 引用了 Efficient Protection of Path-Sensitive Control Security
  • Enforcing Unique Code Target Property for Control-Flow Integrity 引用了 A Tough Call: Mitigating Advanced Code-Reuse Attacks at the Binary Level
  • PAC it up: Towards Pointer Integrity using ARM Pointer Authentication 引用了 Efficient Protection of Path-Sensitive Control Security
  • PAC it up: Towards Pointer Integrity using ARM Pointer Authentication 引用了 Enforcing Unique Code Target Property for Control-Flow Integrity
  • On Bridging the Gap between Control Flow Integrity and Attestation Schemes 引用了 Efficient Protection of Path-Sensitive Control Security
  • On Bridging the Gap between Control Flow Integrity and Attestation Schemes 引用了 C-FLAT: Control-Flow Attestation for Embedded Systems Software
  • On Bridging the Gap between Control Flow Integrity and Attestation Schemes 引用了 VIP: Safeguard Value Invariant Property for Thwarting Critical Memory Corruption Attacks
  • On Bridging the Gap between Control Flow Integrity and Attestation Schemes 引用了 Enforcing Unique Code Target Property for Control-Flow Integrity
  • On Bridging the Gap between Control Flow Integrity and Attestation Schemes 引用了 PAC it up: Towards Pointer Integrity using ARM Pointer Authentication
  • SACK: Systematic Generation of Function Substitution Attacks Against Control-Flow Integrity 引用了 Efficient Protection of Path-Sensitive Control Security
  • SACK: Systematic Generation of Function Substitution Attacks Against Control-Flow Integrity 引用了 Enforcing Unique Code Target Property for Control-Flow Integrity
  • SACK: Systematic Generation of Function Substitution Attacks Against Control-Flow Integrity 引用了 A Tough Call: Mitigating Advanced Code-Reuse Attacks at the Binary Level
  • VScape: Assessing and Escaping Virtual Call Protections 引用了 Enforcing Unique Code Target Property for Control-Flow Integrity
  • VScape: Assessing and Escaping Virtual Call Protections 引用了 A Tough Call: Mitigating Advanced Code-Reuse Attacks at the Binary Level
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper10

  1. On Bridging the Gap between Control Flow Integrity and Attestation SchemesMahmoud Ammar, Ahmed Abdelraoof, Silviu VlasceanuUSENIX Security 2024 · 9 次引用
  2. VIP: Safeguard Value Invariant Property for Thwarting Critical Memory Corruption AttacksMohannad Ismail, Jinwoo Yom, Christopher Jelesnianski, Yeongjin Jang 等CCS 2021 · 8 次引用
  3. VScape: Assessing and Escaping Virtual Call ProtectionsKaixiang Chen, Chao Zhang, Tingting Yin, Xingman Chen 等USENIX Security 2021 · 5 次引用
  4. SoK: Take a Deep Step into Linux Kernel Hardening Effectiveness from the Offensive-Defensive PerspectiveYinhao Hu, Pengyu Ding, Zhenpeng Lin, Dongliang Mu 等NDSS 2026 · 3 次引用
  5. SACK: Systematic Generation of Function Substitution Attacks Against Control-Flow IntegrityZhechang Zhang, Hengkai Ye, Song Liu, Hong HuNDSS 2026 · 1 次引用

它引用的 Paper10

  1. C-FLAT: Control-Flow Attestation for Embedded Systems SoftwareTigist Abera, N. Asokan, Lucas Davi, Jan-Erik Ekberg 等CCS 2016 · 311 次引用
  2. A Tough Call: Mitigating Advanced Code-Reuse Attacks at the Binary LevelVictor van der Veen, Enes Göktas, Moritz Contag, Andre Pawlowski 等S&P 2016 · 227 次引用
  3. PAC it up: Towards Pointer Integrity using ARM Pointer AuthenticationHans Liljestrand, Thomas Nyman, Kui Wang, Carlos Chinea Perez 等USENIX Security 2019 · 168 次引用
  4. Enforcing Unique Code Target Property for Control-Flow IntegrityHong Hu, Chenxiong Qian, Carter Yagemann, Simon Pak Ho Chung 等CCS 2018 · 142 次引用
  5. Efficient Protection of Path-Sensitive Control SecurityRen Ding, Chenxiong Qian, Chengyu Song, William Harris 等USENIX Security 2017 · 123 次引用

相关 Paper

  1. SpecCFI: Mitigating Spectre Attacks using CFI Informed SpeculationEsmaeil Mohammadian Koruyeh, Shirin Haji Amin Shirazi, Khaled N. Khasawneh, Chengyu Song 等S&P 2020 · 74 次引用
  2. μCFI: Formal Verification of Microarchitectural Control-flow IntegrityKatharina Ceesay-Seitz, Flavien Solt, Kaveh RazaviCCS 2024 · 3 次引用
  3. CONFIRM: Evaluating Compatibility and Relevance of Control-flow Integrity Protections for Modern SoftwareXiaoyang Xu, Masoud Ghaffarinia, Wenhao Wang, Kevin W. Hamlen 等USENIX Security 2019 · 49 次引用
  4. CFInsight: A Comprehensive Metric for CFI PoliciesTommaso Frassetto, Patrick Jauernig, David Koisser, Ahmad-Reza SadeghiNDSS 2022
  5. Kaleidoscope: Precise Invariant-Guided Pointer AnalysisTapti Palit, Pedro FonsecaASPLOS 2024 · 3 次引用
黄昏的海面,两侧是细线勾勒的悬崖