WATSON:利用数据监视点在嵌入式系统上实现影栈保护
WATSON: Leveraging Data Watchpoints for Shadow Stack Protection on Embedded Systems
AI总结:
WATSON通过利用标准硬件调试单元的数据监视点,为嵌入式系统提供高效有效的影栈保护,解决现有解决方案在系统保护、性能开销和兼容性方面的不足。
摘要:
嵌入式和物联网(IoT)设备在现代生活中发挥关键作用。其软件和固件通常用内存不安全的语言如C开发,容易受到内存安全漏洞的攻击,导致控制流劫持攻击。影栈是一种针对返回地址的防御机制,但现有嵌入式系统影栈解决方案存在局限:首先缺乏系统级保护,尤其对中断和异常;其次引入了高性能开销;第三依赖安全扩展如可信执行环境,这些在嵌入式设备上并非普遍存在;最后依赖具有固有可配置限制的硬件特性,当集成需要类似硬件支持的安全机制时会遇到兼容性挑战。为克服这些局限,我们提出了WATSON,一种高效有效的影栈解决方案。它利用标准硬件调试单元中的数据监视点来实现嵌入式系统的影栈保护。为防止对影栈的未经授权访问,WATSON利用调试单元的地址匹配功能来强制对影栈的写保护。此外,WATSON还兼容编译器选项以强制前向边控制流完整性。我们已在ARM Cortex-M架构上实现了WATSON的原型,该概念也适用于其他平台。引入的开销在BEEBS和CoreMark-Pro基准测试中分别为7.33%和1.81%。我们还评估了WATSON在异常处理和两个实际应用中的表现,观察到性能开销极小,最坏情况下的代码大小开销为2.11%。此外,我们的安全评估表明,WATSON有效防止了攻击。
英文摘要:
Embedded and Internet-of-Things (IoT) devices play a critical role in modern life. Their software and firmware, often developed in memory-unsafe languages like C, are susceptible to memory safety vulnerabilities that can lead to control-flow hijacking attacks. Shadow stack is a defense mechanism against control-flow hijacking that targets return addresses. However, existing shadow stack solutions for embedded systems have the following limitations. First, they lack system-wide protection, particularly for interrupts and exceptions. Second, they introduce high performance overhead. Third, they depend on security extensions like a trusted execution environment, which are not universally available on embedded devices. Finally, they rely on hardware features that have inherent configurable constraints, which pose compatibility challenges when integrating security mechanisms that require similar hardware support. To overcome these limitations, we present WATSON, an efficient and effective shadow stack solution. It leverages a standard hardware debug unit named data watchpoints for shadow stack protection on embedded systems. To prevent unauthorized access to the shadow stack, WATSON leverages the address-matching features of the debug unit to enforce the write protection of the shadow stack. Additionally, WATSON is compatible with compiler options to enforce forward-edge control-flow integrity. We implemented a prototype of WATSON on the ARM CortexM architecture, and the concept also applies to other platforms. The introduced overhead is 7.33% and 1.81% on BEEBS and CoreMark-Pro benchmarks, respectively. We also evaluate WATSON on exception handling and two real-world applications, observing negligible performance overhead and a worst-case code size overhead of 2.11%. Furthermore, our security evaluation demonstrates that WATSON effectively prevents attacks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。