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

ERIC:一个高效实用的软件混淆框架

ERIC: An Efficient and Practical Software Obfuscation Framework

Alperen Bolat, Seyyid Hikmet Çelik, Ataberk Olgun, Oğuz Ergin, Marco Ottavi

摘要:

现代云计算系统通过网络分发软件可执行文件,以使通常在安全关键集群中编译的软件源保密。我们开发ERIC,一个新的,高效的,通用的软件混淆框架。ERIC保护软件免受(i)静态分析,通过仅使软件可执行文件的加密版本对人眼可用,无论软件如何分发,以及(ii)动态分析,通过保证加密的可执行文件只能由单个认证设备正确解密和执行。ERIC包括关键的硬件和软件组件,以提供有效的软件混淆支持:(i)硬件解密引擎(HDE)能够有效地解密目标设备中的加密硬件,(ii)编译器可以无缝地加密软件可执行文件,只要给出唯一的设备标识符。硬件和软件组件都是独立于ISA的,这使得ERIC具有通用性。ERIC的核心思想是使用物理不可克隆函数(PUF),唯一的设备标识符,作为加密软件可执行文件的密钥。无法访问目标设备中的PUF的恶意方无法对加密的二进制文件执行静态或动态分析。我们在FPGA上开发ERIC的原型,以评估它的端到端。我们的原型扩展RISC-V火箭芯片与硬件解密引擎(HDE),以尽量减少软件解密的开销。我们增强了自定义的基于LLVM的编译器,以支持RISC-V可执行文件的部分/完全加密。HDE产生较小的FPGA资源开销,与Rocket Chip基线相比,它需要多2.63%的LUT和多3.83%的触发器。基于LLVM的软件加密将编译时间增加了15.22%,可执行文件大小增加了1.59%。ERIC是公开的,可以从https://github.com/kasirgalabs/ERIC下载

英文摘要:

Modern cloud computing systems distribute software executables over a network to keep the software sources, which are typically compiled in a security-critical cluster, secret. We develop ERIC, a new, efficient, and general software obfuscation framework. ERIC protects software against (i) static analysis, by making only an encrypted version of software executables available to the human eye, no matter how the software is distributed, and (ii) dynamic analysis, by guaranteeing that an encrypted executable can only be correctly decrypted and executed by a single authenticated device. ERIC comprises key hardware and software components to provide efficient software obfuscation support: (i) a hardware decryption engine (HDE) enables efficient decryption of encrypted hardware in the target device, (ii) the compiler can seamlessly encrypt software executables given only a unique device identifier. Both the hardware and software components are ISA-independent, making ERIC general. The key idea of ERIC is to use physical unclonable functions (PUFs), unique device identifiers, as secret keys in encrypting software executables. Malicious parties that cannot access the PUF in the target device cannot perform static or dynamic analyses on the encrypted binary. We develop ERIC's prototype on an FPGA to evaluate it end-to-end. Our prototype extends RISC-V Rocket Chip with the hardware decryption engine (HDE) to minimize the overheads of software decryption. We augment the custom LLVM-based compiler to enable partial/full encryption of RISC-V executables. The HDE incurs minor FPGA resource overheads, it requires 2.63% more LUTs and 3.83% more flip-flops compared to the Rocket Chip baseline. LLVM-based software encryption increases compile time by 15.22% and the executable size by 1.59%. ERIC is publicly available and can be downloaded from https://github.com/kasirgalabs/ERIC

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

↑