arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.07465cs.CRcs.LG
收藏

一即全,全即一:面向嵌入式设备的基于GNN的控制流证明

One for All and All for One: GNN-based Control-Flow Attestation for Embedded Devices

Technical University of Darmstadt(达姆施塔特工业大学);NVIDIA(英伟达公司);University of Southampton(南安普顿大学)

Marco Chilese, Richard Mitev, Meni Orenbach, Robert Thorburn, Ahmad Atamli, Ahmad-Reza Sadeghi

AI总结:

针对现有控制流证明方案假设不切实际、嵌入式场景开销过高的问题,提出轻量方案RAGE,基于无监督GNN从单执行轨迹提取特征检测代码复用攻击,在多个基准上实现高检测准确率与低误报率。

摘要:

控制流证明(Control-Flow Attestation, CFA)是一种安全服务,允许实体(验证方)验证远程计算机系统(证明方)上代码执行的完整性。现有CFA方案存在诸多不切实际的假设,例如需要访问证明方的内部状态(如内存或代码)、证明方软件的完整控制流图(Control-Flow Graph, CFG)、大量测量值,或是需要定制硬件。此外,当前CFA方案因计算开销和资源占用过高,不适用于嵌入式系统的证明需求。\n 本文中,我们提出了RAGE——一种新颖、轻量且需求极低的CFA方法,以克服现有面向嵌入式设备的CFA方案的局限性。RAGE可检测代码复用攻击(Code Reuse Attacks, CRA),包括控制数据攻击和非控制数据攻击。它能从单条执行轨迹中高效提取特征,并利用无监督图神经网络(Graph Neural Networks, GNNs)识别与良性执行的偏差。RAGE的核心思路是利用执行轨迹、执行图和执行嵌入之间的对应关系,消除对完整CFG访问权这一不切实际的要求。\n 我们在嵌入式基准测试上对RAGE进行了评估,结果表明:(i) 它能检测出针对嵌入式软件的40种真实攻击;(ii) 进一步地,我们在真实嵌入式软件基准Embench上,使用合成的面向返回编程(return-oriented programming, ROP)攻击和面向数据编程(data-oriented programming, DOP)攻击对方案进行压力测试,取得了98.03%(ROP)和91.01%(DOP)的F1分数,同时保持3.19%的低误报率;(iii) 此外,我们在被数百万设备使用的OpenSSL上评估了RAGE,其ROP和DOP攻击检测的F1分数分别为97.49%和84.42%,误报率为5.47%。

英文摘要:

Control-Flow Attestation (CFA) is a security service that allows an entity (verifier) to verify the integrity of code execution on a remote computer system (prover). Existing CFA schemes suffer from impractical assumptions, such as requiring access to the prover's internal state (e.g., memory or code), the complete Control-Flow Graph (CFG) of the prover's software, large sets of measurements, or tailor-made hardware. Moreover, current CFA schemes are inadequate for attesting embedded systems due to their high computational overhead and resource usage. In this paper, we overcome the limitations of existing CFA schemes for embedded devices by introducing RAGE, a novel, lightweight CFA approach with minimal requirements. RAGE can detect Code Reuse Attacks (CRA), including control- and non-control-data attacks. It efficiently extracts features from one execution trace and leverages Unsupervised Graph Neural Networks (GNNs) to identify deviations from benign executions. The core intuition behind RAGE is to exploit the correspondence between execution trace, execution graph, and execution embeddings to eliminate the unrealistic requirement of having access to a complete CFG. We evaluate RAGE on embedded benchmarks and demonstrate that (i) it detects 40 real-world attacks on embedded software; (ii) Further, we stress our scheme with synthetic return-oriented programming (ROP) and data-oriented programming (DOP) attacks on the real-world embedded software benchmark Embench, achieving 98.03% (ROP) and 91.01% (DOP) F1-Score while maintaining a low False Positive Rate of 3.19%; (iii) Additionally, we evaluate RAGE on OpenSSL, used by millions of devices and achieve 97.49% and 84.42% F1-Score for ROP and DOP attack detection, with an FPR of 5.47%.

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

↑