FLAShadow: A Flash-based Shadow Stack for Low-end Embedded Systems
Open Access
- 12 August 2024
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Internet of Things
- Vol. 5 (3) , 1-29
Abstract
Runtime attacks are a rising threat to both low- and high-end systems with the spread of techniques such as Return-Oriented Programming (ROP), which aims at hijacking the control flow of vulnerable applications. Although several control flow integrity schemes have been proposed by both academia and the industry, the vast majority of them are not compatible with low-end embedded devices, especially the ones that lack hardware security features. In this article, we propose \(\sf {\textsc {FLAShadow}}\) , a secure shadow stack design and implementation for low-end embedded systems, relying on zero hardware security features. The key idea is to leverage a software-based memory isolation mechanism to establish an integrity-protected memory area on the Flash of the target device, where \(\sf {\textsc {FLAShadow}}\) can be securely maintained. \(\sf {\textsc {FLAShadow}}\) exclusively reserves a register for maintaining the integrity of the stack pointer and also depends on a minimal trusted runtime component to avoid trusting the compiler toolchain. We evaluate an open-source implementation of \(\sf {\textsc {FLAShadow}}\) for the MSP430 architecture, showing an average performance and memory overhead of 168.58% and 25.91%, respectively. While the average performance overhead is considered high, we show that it is application dependent and incurs less than 5% for some applications.
Keywords
Funding Information
- European Union under Horizon Europe Programme (101070537)
This publication has 35 references indexed in Scilit:
- Binary Exploitation in Industrial Control Systems: Past, Present and FutureIEEE Access, 2022
- FH-CFI: Fine-grained hardware-assisted control flow integrity for ARM-based IoT devicesComputers & Security, 2022
- SIMPLE: A Remote Attestation Approach for Resource-constrained IoT devices2020
- S The Security MicroVisor: A Formally-Verified Software-Based Security Architecture for the Internet of ThingsIEEE Transactions on Dependable and Secure Computing, 2019
- SoK: Shining Light on Shadow Stacks2019
- ATRIUM: Runtime attestation resilient under memory attacks2017
- Practical Control Flow Integrity and Randomization for Binary Executables2013
- SoK: Eternal War in Memory2013
- Control-flow integrity principles, implementations, and applicationsACM Transactions on Information and System Security, 2009
- The geometry of innocent flesh on the bone2007