NORAX: Enabling Execute-Only Memory for COTS Binaries on AArch64
Yaohui Chen, Dongli Zhang, Ruowen Wang, Rui Qiao, Ahmed M. Azab, Long Lu, Hayawardh Vijayakumar, Wenbo Shen
摘要
Code reuse attacks exploiting memory disclosure vulnerabilities can bypass all deployed mitigations. One promising defense against this class of attacks is to enable executeonly memory (XOM) protection on top of fine-grained address space layout randomization (ASLR). However, recent works implementing XOM, despite their efficacy, only protect programs that have been (re)built with new compiler support, leaving commercial-off-the-shelf (COTS) binaries and source-unavailable programs unprotected. We present the design and implementation of NORAX, a practical system that retrofits XOM into stripped COTS binaries on AArch64 platforms. Unlike previous techniques, NORAX requires neither source code nor debugging symbols. NORAX statically transforms existing binaries so that during runtime their code sections can be loaded into XOM memory pages with embedded data relocated and data references properly updated. NORAX allows transformed binaries to leverage the new hardware-based XOM support-a feature widely available on AArch64 platforms (e.g., recent mobile devices) yet virtually unused due to the incompatibility of existing binaries. Furthermore, NORAX is designed to co-exist with other COTS binary hardening techniques, such as in-place randomization (IPR). We apply NORAX to the commonly used Android system binaries running on SAMSUNG Galaxy S6 and LG Nexus 5X devices. The results show that NORAX on average slows down the execution of transformed binaries by 1.18% and increases their memory footprint by 2.21%, suggesting NORAX is practical for real-world adoption.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 12 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- uXOM: Efficient eXecute-Only Memory on ARM Cortex-M 引用了 Leakage-Resilient Layout Randomization for Mobile Devices
- Return to the Zombie Gadgets: Undermining Destructive Code Reads via Code Inference Attacks 引用了 Leakage-Resilient Layout Randomization for Mobile Devices
- Compiler-Assisted Code Randomization 引用了 An In-Depth Analysis of Disassembly on Full-Scale x86/x64 Binaries
- Compiler-Assisted Code Randomization 引用了 Leakage-Resilient Layout Randomization for Mobile Devices
- Compiler-Assisted Code Randomization 引用了 Return to the Zombie Gadgets: Undermining Destructive Code Reads via Code Inference Attacks
- Compiler-Assisted Code Randomization 引用了 Address Oblivious Code Reuse: On the Effectiveness of Leakage Resilient Diversity
- Address Oblivious Code Reuse: On the Effectiveness of Leakage Resilient Diversity 引用了 Leakage-Resilient Layout Randomization for Mobile Devices
- Address Oblivious Code Reuse: On the Effectiveness of Leakage Resilient Diversity 引用了 Return to the Zombie Gadgets: Undermining Destructive Code Reads via Code Inference Attacks
- xMP: Selective Memory Protection for Kernel and User Space 引用了 Compiler-Assisted Code Randomization
- Speculative Probing: Hacking Blind in the Spectre Era 引用了 Leakage-Resilient Layout Randomization for Mobile Devices
- Speculative Probing: Hacking Blind in the Spectre Era 引用了 Return to the Zombie Gadgets: Undermining Destructive Code Reads via Code Inference Attacks
- Speculative Probing: Hacking Blind in the Spectre Era 引用了 Address Oblivious Code Reuse: On the Effectiveness of Leakage Resilient Diversity
- SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to Ask 引用了 An In-Depth Analysis of Disassembly on Full-Scale x86/x64 Binaries
- SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to Ask 引用了 Compiler-Assisted Code Randomization
引用它的顶会 Paper12
- SoK: All You Ever Wanted to Know About x86/x64 Binary Disassembly But Were Afraid to AskChengbin Pang, Ruotong Yu, Yaohui Chen, Eric Koskinen 等S&P 2021 · 102 次引用
- xMP: Selective Memory Protection for Kernel and User SpaceSergej Proskurin, Marius Momeu, Seyedhamed Ghavamnia, Vasileios P. Kemerlis 等S&P 2020 · 89 次引用
- Compiler-Assisted Code RandomizationHyungjoon Koo, Yaohui Chen, Long Lu, Vasileios P. Kemerlis 等S&P 2018 · 80 次引用
- uXOM: Efficient eXecute-Only Memory on ARM Cortex-MDonghyun Kwon, Jangseop Shin, Giyeol Kim, Byoungyoung Lee 等USENIX Security 2019 · 40 次引用
- Speculative Probing: Hacking Blind in the Spectre EraEnes Göktas, Kaveh Razavi, Georgios Portokalidis, Herbert Bos 等CCS 2020 · 36 次引用
它引用的 Paper4
- An In-Depth Analysis of Disassembly on Full-Scale x86/x64 BinariesDennis Andriesse, Xi Chen, Victor van der Veen, Asia Slowinska 等USENIX Security 2016 · 162 次引用
- Leakage-Resilient Layout Randomization for Mobile DevicesKjell Braden, Lucas Davi, Christopher Liebchen, Ahmad-Reza Sadeghi 等NDSS 2016 · 90 次引用
- Address Oblivious Code Reuse: On the Effectiveness of Leakage Resilient DiversityRobert Rudd, Richard Skowyra, David Bigelow, Veer Dedhia 等NDSS 2017 · 78 次引用
- Return to the Zombie Gadgets: Undermining Destructive Code Reads via Code Inference AttacksKevin Z. Snow, Roman Rogowski, Jan Werner, Hyungjoon Koo 等S&P 2016 · 54 次引用
相关 Paper
- Retrofitting XoM for Stripped Binaries without Embedded Data RelocationChenke Luo, Jiang Ming, Mengfei Xie, Guojun Peng 等NDSS 2025
- MemoryTrap: Booby Trapping Memory to Counter Memory Disclosure Attacks with Hardware SupportChenke Luo, Jiang Ming, Dongpeng Xu, Guojun Peng 等USENIX ATC 2025
- What Cannot Be Read, Cannot Be Leveraged? Revisiting Assumptions of JIT-ROP DefensesGiorgi Maisuradze, Michael Backes, Christian RossowUSENIX Security 2016 · 41 次引用
- Breaking Kernel Address Space Layout Randomization with Intel TSXYeongjin Jang, Sangho Lee, Taesoo KimCCS 2016 · 174 次引用
- Drammer: Deterministic Rowhammer Attacks on Mobile PlatformsVictor van der Veen, Yanick Fratantonio, Martina Lindorfer, Daniel Gruss 等CCS 2016 · 381 次引用
