arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.17248cs.CR
收藏

DeTRAP:利用调试触发器实现 RISC-V 返回地址保护

DeTRAP: RISC-V Return Address Protection With Debug Triggers

Isaac Richter, Jie Zhou, John Criswell

AI总结:

本文提出 DeTRAP,利用 RISC-V 调试硬件实现写保护影子栈以防御控制流劫持,无需内存保护硬件且仅需少量编译器修改,在 FPGA 实测中执行时间开销为 0.5%–1.9%,代码大小开销不超过 7.9%。

摘要:

现代微控制器软件通常使用 C/C++ 编写,并遭受控制流劫持漏洞的威胁。以往的缓解措施存在较高的性能和内存开销,并且要么需要内存保护硬件的存在,要么需要在编译器中进行复杂的程序分析。本文提出了 DeTRAP(调试触发器返回地址保护,Debug Trigger Return Address Protection)。DeTRAP 利用 RISC-V 调试硬件规范的完整实现,为返回地址提供一个写保护的影子栈。与以往工作不同,DeTRAP 不需要内存保护硬件,只需对编译器工具链进行少量修改。我们在运行 32 位 RISC-V 微控制器内核的 FPGA 上对 DeTRAP 进行了测试,发现在所评估的基准测试套件上,平均执行时间开销介于 0.5% 和 1.9% 之间,代码大小开销平均为 7.9% 或更低。

英文摘要:

Modern microcontroller software is often written in C/C++ and suffers from control-flow hijacking vulnerabilities. Previous mitigations suffer from high performance and memory overheads and require either the presence of memory protection hardware or sophisticated program analysis in the compiler. This paper presents DeTRAP (Debug Trigger Return Address Protection). DeTRAP utilizes a full implementation of the RISC-V debug hardware specification to provide a write-protected shadow stack for return addresses. Unlike previous work, DeTRAP requires no memory protection hardware and only minor changes to the compiler toolchain. We tested DeTRAP on an FPGA running a 32-bit RISC-V microcontroller core and found average execution time overheads to be between 0.5% and 1.9% on evaluated benchmark suites with code size overheads averaging 7.9% or less.

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

↑