arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.12157cs.CRcs.SYeess.SY
收藏

Silhouette:高效的嵌入式系统保护影子堆栈

Silhouette: Efficient Protected Shadow Stacks for Embedded Systems

Jie Zhou, Yufei Du, Zhuojia Shen, Lele Ma, John Criswell, Robert J. Walls

摘要:

基于微处理器的嵌入式系统越来越多地用于如果受到损害可能会产生严重和直接后果的应用-包括汽车控制系统,智能锁,无人机和植入式医疗设备。由于资源和执行时间的限制,C是用于编程这些设备的主要语言。不幸的是,C既不是类型安全的,也不是内存安全的,控制流劫持仍然是一个普遍的威胁。本文介绍了Silhouette:基于编译器的防御,有效保证返回地址的完整性,显著减少控制流劫持的攻击面。Silhouette将用于返回地址的不可破坏的影子堆栈与对前向控制流和内存保护的检查相结合,以确保所有函数返回到正确的动态调用者。为了保护其影子堆栈,Silhouette使用了存储强化,这是一种针对各种ARM架构的高效地址内空间隔离技术,该技术利用了ARM处理器上的特殊存储指令。我们实现了ARMv7-M架构的剪影,但我们的技术适用于其他常见的嵌入式ARM架构。我们的评估表明,Silhouette在两个基准套件上的几何平均值分别为1.3%和3.4%。此外,我们原型化了Silhouette-Invert,这是Silhouette的一种替代实现,仅产生0.3%和1.9%的性能开销,代价是轻微的硬件更改。

英文摘要:

Microcontroller-based embedded systems are increasingly used for applications that can have serious and immediate consequences if compromised---including automobile control systems, smart locks, drones, and implantable medical devices. Due to resource and execution-time constraints, C is the primary language used for programming these devices. Unfortunately, C is neither type-safe nor memory-safe, and control-flow hijacking remains a prevalent threat. This paper presents Silhouette: a compiler-based defense that efficiently guarantees the integrity of return addresses, significantly reducing the attack surface for control-flow hijacking. Silhouette combines an incorruptible shadow stack for return addresses with checks on forward control flow and memory protection to ensure that all functions return to the correct dynamic caller. To protect its shadow stack, Silhouette uses store hardening, an efficient intra-address space isolation technique targeting various ARM architectures that leverages special store instructions found on ARM processors. We implemented Silhouette for the ARMv7-M architecture, but our techniques are applicable to other common embedded ARM architectures. Our evaluation shows that Silhouette incurs a geometric mean of 1.3% and 3.4% performance overhead on two benchmark suites. Furthermore, we prototyped Silhouette-Invert, an alternative implementation of Silhouette, which incurs just 0.3% and 1.9% performance overhead, at the cost of a minor hardware change.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑