Zipper Stack: Shadow Stacks Without Shadow
Authors:
- Jinfeng LiJLJinfeng Li
- Liwei ChenLCLiwei Chen
- Qizhen XuQXQizhen Xu
- Linan TianLTLinan Tian
- Gang ShiGSGang Shi
- Kai ChenKCKai Chen
- Dan MengDMDan Meng
Preprint
Abstract
Return-Oriented Programming (ROP) is a typical attack technique that exploits return addresses to abuse existing code repeatedly. Most of the current return address protecting mechanisms (also known as the Backward-Edge Control-Flow Integrity) work only in limited threat models. For example, the attacker cannot break memory isolation, or the attacker has no knowledge of a secret key or random values. This paper presents a novel, lightweight mechanism protecting return addresses, Zipper Stack, which authenticates all return addresses by a chain structure using cryptographic message authentication codes (MACs). This innovative design can defend against the most powerful attackers who have full control over the program's memory and even know the secret key of the MAC function. This threat model is stronger than the one used in related work. At the same time, it produces low-performance overhead. We implemented Zipper Stack by extending the RISC-V instruction set architecture, and the evaluation on FPGA shows that the performance overhead of Zipper Stack is only 1.86%. Thus, we think Zipper Stack is suitable for actual deployment.Keywords
All Related Versions
This publication has 17 references indexed in Scilit:
- Code-pointer integrity2018
- The Performance Cost of Shadow Stacks and Stack Canaries2015
- Practical Timing Side Channel Attacks against Kernel Space ASLR2013
- Control-flow integrity principles, implementations, and applicationsACM Transactions on Information and System Security, 2009
- Breaking the memory secrecy assumption2009
- SPEC CPU2006 benchmark descriptionsACM SIGARCH Computer Architecture News, 2006
- SmashGuard: A Hardware Solution to Prevent Security Attacks on the Function Return AddressIEEE Transactions on Computers, 2006
- Control-flow integrity2005
- RAD: a compile-time solution to buffer overflow attacks2002
- SPEC CPU2000: measuring CPU performance in the New MillenniumComputer, 2000