Efficient Forward-Edge Control-Flow Integrity for COTS Binaries via Arm BTI
- 16 June 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Information Forensics and Security
- Vol. 20 (15566013) , 7137-7152
Abstract
Control-Flow Integrity (CFI) has been widely recognized as an effective technique for mitigating control-flow hijacking attacks. However, many binary-level CFI approaches suffer from weaknesses in safeguarding forward edges, particularly for the obfuscated binaries, due to the imprecision in binary analysis or heuristic algorithms. Moreover, these approaches often involve non-negligible overhead and are challenging to deploy, as they instrument plenty of code or employ hardware tracing to enforce the CFI policies. This paper introduces Mobius, the first complete implementation of security-instruction-based binary-only CFI solution on commercial processors. Mobius leverages the Branch Target Identification (BTI) technology in Arm v8.5 to safeguard the forward edges of binaries and shared libraries efficiently. It determines the forward-edge targets without false negatives and carefully instruments the bti instructions to conduct the CFI checking efficiently. Then, it mounts a runtime monitor to detect potential attacks. We deploy Mobius on an Alibaba Cloud server with Yitian 710 processors in practice without modifying the kernel or loader. Remarkably, Mobius successfully provides efficient protection for real-world applications, including obfuscated code, with marginal overhead (5.78% on SPEC2006).Keywords
Funding Information
- science and technology innovation Program of Hunan Province (2024RC3136)
- National Natural Science Foundation of China (62272477, 62421002, 62272472, 62302050, 62372121)
- Research Project of National University of Defense Technology (ZK23-14)
- Research Project of Key Laboratory of the State Administration of Science, Technology and Industry for National Defense (WDZC20245250105)
This publication has 44 references indexed in Scilit:
- Efficient Context-Sensitive CFI Enforcement Through a Hardware Monitor2020
- Adaptive Call-Site Sensitive Control Flow Integrity2019
- $\tau $ CFI: Type-Assisted Control Flow Integrity for x86-64 Binaries2018
- Pure-Call Oriented Programming (PCOP): chaining the gadgets using call instructionsJournal of Computer Virology and Hacking Techniques, 2017
- Transparent and Efficient CFI Enforcement with Intel Processor Trace2017
- Counterfeit Object-oriented Programming: On the Difficulty of Preventing Code Reuse Attacks in C++ Applications2015
- Out of Control: Overcoming Control-Flow Integrity2014
- JOP-alarm: Detecting jump-oriented programming-based anomalies in applications2013
- Practical Control Flow Integrity and Randomization for Binary Executables2013
- SCRAP: Architecture for signature-based protection from Code Reuse Attacks2013