Lune

CCS2020Top-tier venue

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

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

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • VIP: Safeguard Value Invariant Property for Thwarting Critical Memory Corruption Attacks cites Efficient Protection of Path-Sensitive Control Security
  • VIP: Safeguard Value Invariant Property for Thwarting Critical Memory Corruption Attacks cites Enforcing Unique Code Target Property for Control-Flow Integrity
  • VIP: Safeguard Value Invariant Property for Thwarting Critical Memory Corruption Attacks cites A Tough Call: Mitigating Advanced Code-Reuse Attacks at the Binary Level
  • Enforcing Unique Code Target Property for Control-Flow Integrity cites Efficient Protection of Path-Sensitive Control Security
  • Enforcing Unique Code Target Property for Control-Flow Integrity cites A Tough Call: Mitigating Advanced Code-Reuse Attacks at the Binary Level
  • PAC it up: Towards Pointer Integrity using ARM Pointer Authentication cites Efficient Protection of Path-Sensitive Control Security
  • PAC it up: Towards Pointer Integrity using ARM Pointer Authentication cites Enforcing Unique Code Target Property for Control-Flow Integrity
  • On Bridging the Gap between Control Flow Integrity and Attestation Schemes cites Efficient Protection of Path-Sensitive Control Security
  • On Bridging the Gap between Control Flow Integrity and Attestation Schemes cites C-FLAT: Control-Flow Attestation for Embedded Systems Software
  • On Bridging the Gap between Control Flow Integrity and Attestation Schemes cites VIP: Safeguard Value Invariant Property for Thwarting Critical Memory Corruption Attacks
  • On Bridging the Gap between Control Flow Integrity and Attestation Schemes cites Enforcing Unique Code Target Property for Control-Flow Integrity
  • On Bridging the Gap between Control Flow Integrity and Attestation Schemes cites PAC it up: Towards Pointer Integrity using ARM Pointer Authentication
  • SACK: Systematic Generation of Function Substitution Attacks Against Control-Flow Integrity cites Efficient Protection of Path-Sensitive Control Security
  • SACK: Systematic Generation of Function Substitution Attacks Against Control-Flow Integrity cites Enforcing Unique Code Target Property for Control-Flow Integrity
  • SACK: Systematic Generation of Function Substitution Attacks Against Control-Flow Integrity cites A Tough Call: Mitigating Advanced Code-Reuse Attacks at the Binary Level
  • VScape: Assessing and Escaping Virtual Call Protections cites Enforcing Unique Code Target Property for Control-Flow Integrity
  • VScape: Assessing and Escaping Virtual Call Protections cites A Tough Call: Mitigating Advanced Code-Reuse Attacks at the Binary Level
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

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

Builds on10

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

Related papers

  1. SpecCFI: Mitigating Spectre Attacks using CFI Informed SpeculationEsmaeil Mohammadian Koruyeh, Shirin Haji Amin Shirazi, Khaled N. Khasawneh, Chengyu Song et al.S&P 2020 · 74 citations
  2. μCFI: Formal Verification of Microarchitectural Control-flow IntegrityKatharina Ceesay-Seitz, Flavien Solt, Kaveh RazaviCCS 2024 · 3 citations
  3. CONFIRM: Evaluating Compatibility and Relevance of Control-flow Integrity Protections for Modern SoftwareXiaoyang Xu, Masoud Ghaffarinia, Wenhao Wang, Kevin W. Hamlen et al.USENIX Security 2019 · 49 citations
  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 citations
Dusk over the sea between two cliffs drawn in fine vertical lines