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

代码多态与代码加密的结合:软件组件的机密性与侧信道保护

Code Polymorphism Meets Code Encryption: Confidentiality and Side-Channel Protection of Software Components

Lionel Morel, Damien Couroussé, Thomas Hiscock

AI总结:

本文提出PolEn,结合代码加密与代码多态,分别抵御侧信道攻击的分析与利用阶段,在RISC-V上实现并验证了其有效性,但带来5-22倍内存和1.8-4.6倍时间开销。

摘要:

在本文中,我们考虑到,在实际中,涉及侧信道分析的攻击场景包含两个连续的阶段:一个分析阶段,旨在提取关于目标的信息并识别可能的漏洞;以及一个利用阶段,对候选漏洞应用攻击技术。我们主张,防护措施需要覆盖这两个阶段,以便有效抵御现实攻击。我们提出了PolEn,一个工具链和处理器架构,它结合了多种对策,以有效缓解侧信道攻击:作为针对分析阶段的对策,我们的方法考虑使用代码加密;作为针对利用阶段的对策,我们的方法考虑使用代码多态,因为它依赖于运行时代码生成,并且它与代码加密的结合尤其具有挑战性。代码加密由处理器扩展支持,使得机器指令仅在CPU内部被解密,这有效地防止了逆向工程或从内存转储中提取任何有用信息。代码多态通过软件方式实现。它定期改变程序的可观察行为,使其对攻击者不可预测,从而减少利用侧信道泄漏的可能性。我们展示了一个基于RISC-V Spike模拟器和修改后的LLVM工具链的原型实现。在我们的实验评估中,我们证明了PolEn有效减少了侧信道泄漏。对于所评估的受保护函数,静态内存使用增加了5到22倍,这对应于代码加密和代码多态的联合应用。在执行时间方面的开销,范围在1.8到4.6倍之间。

英文摘要:

In this paper, we consider that, in practice, attack scenarios involving side-channel analysis combine two successive phases:an analysis phase, targeting the extraction of information about the target and the identification of possible vulnerabilities;and an exploitation phase, applying attack techniques on candidate vulnerabilities. We advocate that protections need to coverthese two phases in order to be effective against real-life attacks. We present PolEn, a toolchain and a processor architecturethat combine countermeasures in order to provide an effective mitigation of side-channel attacks: as a countermeasure againstthe analysis phase, our approach considers the use of code encryption; as a countermeasure against the exploitation phase,our approach considers the use of code polymorphism, because it relies on runtime code generation, and its combinationwith code encryption is particularly challenging. Code encryption is supported by a processor extension such that machineinstructions are only decrypted inside the CPU, which effectively prevents reverse engineering or any extraction of usefulinformation from memory dumps. Code polymorphism is implemented by software means. It regularly changes the observablebehaviour of the program, making it unpredictable for an attacker, hence reducing the possibility to exploit side-channelleakages. We present a prototype implementation, based on the RISC-V Spike simulator and a modified LLVM toolchain. Inour experimental evaluation, we illustrate that PolEn effectively reduces side-channel leakages. For the protected functionsevaluated, static memory use increases by a factor of 5 to 22, corresponding to the joint application of code encryption andcode polymorphism. The overhead, in terms of execution time, ranges between a factor of 1.8 and 4.6.

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

↑