{"id":{"repo_id":"buffalo","oai_identifier":"oai:ubir.buffalo.edu:10477/89611"},"canonical_url":"https://search.ndltd.org/etd/buffalo/oai:ubir.buffalo.edu:10477/89611","repository":{"repo_id":"buffalo","name":"Buffalo","base_url":"https://ubir.buffalo.edu/oai/request"},"display":{"title":"Watchmen: Utilizing Data Watchpoints for Shadow Stacks in Embedded Systems","abstract":"From 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.","abstract_html":"From 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.","abstract_has_math":false,"creators":["Mohan, Sagar; 0009-0006-6090-6148"],"institution":"State University of New York at Buffalo","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":["Zhao, Ziming","Computer Science and Engineering"],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2024,"date_issued":"2024","date_published":"2024","updated_at":"2026-11-19T07:10:46Z","subjects":["computer science"],"languages":["eng"],"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."],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10477/89611","outbound_label":"Handle","outbound_source":"dc:identifier","record_url":"https://hdl.handle.net/10477/89611","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Abuffalo%3Aoai%3Aubir.buffalo.edu%3A10477%2F89611","prefix":"oai_dc"},"source_record":{"url":"https://ubir.buffalo.edu/oai/request?verb=GetRecord&metadataPrefix=qdc&identifier=oai%3Aubir.buffalo.edu%3A10477%2F89611","prefix":"qdc"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor","label":"Contributor","values":["Zhao, Ziming","Computer Science and Engineering"]},{"key":"dc:creator","label":"Author","values":["Mohan, Sagar; 0009-0006-6090-6148"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2025-12-03T17:40:39Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2025-12-03T17:40:39Z"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2025-12-03T17:40:39Z"]},{"key":"dc:date.issued","label":"Date","values":["2024"]},{"key":"dc:publisher","label":"Institution","values":["State University of New York at Buffalo"]},{"key":"dc:type","label":"Dc Type","values":["Text","Thesis"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["computer science"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language","label":"Dc Language","values":["eng"]},{"key":"dc:rights","label":"Dc Rights","values":["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."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["http://hdl.handle.net/10477/89611"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["From 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.","**To request an accessible version of the file(s) associated with this item, contact library@buffalo.edu. Please include the item's persistent URL [http://hdl.handle.net/. . .] in your request.**"]},{"key":"dc:title","label":"Title","values":["Watchmen: Utilizing Data Watchpoints for Shadow Stacks in Embedded Systems"]}]}],"canonical_facts":{"dc:contributor":["Zhao, Ziming","Computer Science and Engineering"],"dc:creator":["Mohan, Sagar; 0009-0006-6090-6148"],"dc:date":["2025-12-03T17:40:39Z"],"dc:date.available":["2025-12-03T17:40:39Z"],"dc:date.created":["2025-12-03T17:40:39Z"],"dc:date.issued":["2024"],"dc:description.abstract":["From 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.","**To request an accessible version of the file(s) associated with this item, contact library@buffalo.edu. Please include the item's persistent URL [http://hdl.handle.net/. . .] in your request.**"],"dc:identifier":["http://hdl.handle.net/10477/89611"],"dc:language":["eng"],"dc:publisher":["State University of New York at Buffalo"],"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."],"dc:subject":["computer science"],"dc:title":["Watchmen: Utilizing Data Watchpoints for Shadow Stacks in Embedded Systems"],"dc:type":["Text","Thesis"]},"updated_at":"2026-11-19T07:10:46Z"}