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

ENOLA:面向基于微控制器系统的线性空间低开销控制流验证方案

ENOLA: Linear-Space and Low-Overhead Control-Flow Attestation for Microcontroller-based Systems

University of Texas at El Paso(德克萨斯大学埃尔帕索分校);Northeastern University(东北大学)

Md Armanuzzaman, Engin Kirda, Ziming Zhao

AI总结:

ENOLA是面向微控制器系统的线性空间低开销控制流验证方案,通过硬件辅助测量、寄存器存测量值等设计降低开销,在Embench上传输开销平均降52倍,性能与现有方案相当或更优。

摘要:

控制流验证(Control-Flow Attestation, CFA)旨在向远程验证者精确验证执行路径。然而,现有方案因以下原因与资源受限的基于微控制器的系统根本不兼容:(1)测量与跟踪数据的传输开销随基本块数量呈差缩放(通常为指数级)或随执行跟踪长度线性增长,这类方法甚至在高端微处理器系统上也不实用,在微控制器上则完全不可行;(2)加密密钥与测量数据通常存储在内存中,易受冷启动和内存损坏攻击,对现场部署设备构成严重威胁;(3)依赖基于软件的测量,且在富执行环境(Rich Execution Environment, REE)与可信执行环境(Trusted Execution Environment, TEE)之间频繁上下文切换,会带来显著性能开销。本文提出ENOLA,一种面向基于微控制器系统的线性空间低开销控制流验证方案。ENOLA实现了与基本块数量呈线性的传输复杂度,保证了对更大程序的可扩展性;利用现有设备中的硬件辅助测量计算,避免密钥存储在内存中;分配通用寄存器存储测量值以抵御内存损坏攻击;通过消除后向边测量从REE到TEE的转换,大幅降低上下文切换开销。我们使用LLVM passes开发ENOLA编译器,并实现了面向ARMv8.1-M架构的定制验证引擎。评估显示,ENOLA在Embench基准测试上将数据传输开销平均降低52倍,同时保持与现有方案相当或更优的性能。

英文摘要:

Control-Flow Attestation (CFA) aims to precisely verify execution paths to a remote verifier. However, existing solutions are fundamentally incompatible with resource-constrained, microcontroller-based systems due to the following reasons: (1) the overhead of transmitting measurement and trace data scales poorly (i.e., often exponentially) with the number of basic blocks or linearly with the length of execution traces, making such approaches impractical even on high-end microprocessor-based systems and entirely infeasible on microcontrollers; (2) cryptographic keys and measurement data are typically stored in memory, rendering them vulnerable to cold boot and memory corruption attacks, which is a serious threat for field-deployed devices; and (3) reliance on software-based measurements, combined with frequent context switches between the Rich Execution Environment (REE) and the Trusted Execution Environment (TEE), introduces significant performance overhead. In this paper, we present ENOLA, a linear-space and low-overhead control-flow attestation solution for microcontroller-based systems. ENOLA achieves linear transmission complexity with basic blocks, guaranteeing its scalability for larger programs. Moreover, ENOLA uses hardware-assisted measurement computation present in off-the-shelf devices, and avoids key storage in memory. ENOLA also allocates general-purpose registers for measurements to thwart memory corruption attacks. ENOLA significantly reduces context switching overhead by eliminating transitions from REE to TEE for backward-edge measurements. We developed the ENOLA compiler using LLVM passes and a custom attestation engine targeting the ARMv8.1-M architecture. Our evaluation shows that ENOLA reduces data transmission overhead by an average of 52x on the Embench, while maintaining performance comparable to (or exceeding) that of existing approaches.

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

↑