Enforcing C/C++ Type and Scope at Runtime for Control-Flow and Data-Flow Integrity
Open Access
- 27 April 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 283-300
Abstract
Control-flow hijacking and data-oriented attacks are becoming more sophisticated. These attacks, especially data-oriented attacks, can result in critical security threats, such as leaking an SSL key. Data-oriented attacks are hard to defend against with acceptable performance due to the sheer amount of data pointers present. The root cause of such attacks is using pointers in unintended ways; fundamentally, these attacks rely on abusing pointers to violate the original scope they were used in or the original types that they were declared as. This paper proposes Scope Type Integrity (STI), a new defense policy that enforces all pointers (both code and data pointers) to conform to the original programmer's intent, as well as Runtime Scope Type Integrity (RSTI) mechanisms to enforce STI at runtime leveraging ARM Pointer Authentication. STI gathers information about the scope, type, and permissions of pointers. This information is then leveraged by RSTI to ensure pointers are legitimately utilized at runtime. We implemented three defense mechanisms of RSTI, with varying levels of security and performance tradeoffs to showcase the versatility of RSTI. We employ these three variants on a variety of benchmarks and real-world applications for a full security and performance evaluation of these mechanisms. Our results show that they have overheads of 5.29%, 2.97%, and 11.12%, respectively.Keywords
Funding Information
- National Science Foundation (2153748)
This publication has 40 references indexed in Scilit:
- Mitigating Information Leakage Vulnerabilities with Type-based Data Isolation2022
- Spectre Attacks: Exploiting Speculative Execution2019
- Transparent and Efficient CFI Enforcement with Intel Processor Trace2017
- A Tough Call: Mitigating Advanced Code-Reuse Attacks at the Binary Level2016
- Data-Oriented Programming: On the Expressiveness of Non-control Data Attacks2016
- Counterfeit Object-oriented Programming: On the Difficulty of Preventing Code Reuse Attacks in C++ Applications2015
- Out of Control: Overcoming Control-Flow Integrity2014
- Hacking Blind2014
- Modular Protections against Non-control Data Attacks2011
- Preventing Memory Error Exploits with WIT2008 IEEE Symposium on Security and Privacy (SP 2008), 2008