State University of New York at Buffalo
Watchmen: Utilizing Data Watchpoints for Shadow Stacks in Embedded Systems
Abstract
dc:description.abstractFrom smart appliances to other Internet-of-Things (IoT) devices, there are billions of microcontrollers in use today. The C programming language has an entrenched reputation within such embedded systems. This is mainly due to the requirement of such systems for low-latency and real-time operations -- all of which C can provide. However, due to its proximity to the hardware, C extends generous flexibility towards the programmer, which in itself is highly favorable in embedded systems. But, as a consequence, this leads to various security issues, the chief among them being control-flow integrity (CFI), wherein a function callee should always return to the legitimate function caller. There has been a lot of work in this space, especially for microcontrollers. Other works ensure CFI while protecting their security mechanisms using existing hardware features like the Memory Protection Unit (MPU). We propose a novel CFI protection mechanism that uses an existing hardware feature called the Data Watchdog and Trace Unit (DWT) present on Arm Cortex-M microcontrollers. We use a traditional shadow stack to protect against corruption of return addresses, ensuring backward-edge integrity. This shadow stack is protected by the DWT Unit with compile-time instrumentation using the LLVM compiler framework. We analyze our implementation and demonstrate the security of our mechanism with acceptable performance and memory overheads.
Degree
thesis:*- Grantor dc:publisher
- State University of New York at Buffalo
- Year dc:date.issued
- 2024
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Mohan, Sagar; 0009-0006-6090-6148
- Contributors dc:contributor
-
- Zhao, Ziming
- Computer Science and Engineering
Subjects
dc:subject × 1Rights
dc:rights- Statement dc:rights
-
- Copyright retained by author. Users of works found in University at Buffalo Institutional Repository (UBIR) are responsible for identifying and contacting the copyright owner for permission to reuse. University at Buffalo Libraries do not manage rights for copyright-protected works and cannot assist with permissions.
- Language dc:language
- eng
Identifiers
dc:identifier.*- Handle dc:identifier
- http://hdl.handle.net/10477/89611