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

Khaos:过程间代码混淆对二进制区分技术的影响

Khaos: The Impact of Inter-procedural Code Obfuscation on Binary Diffing Techniques

Peihua Zhang, Chenggang Wu, Mingfan Peng, Kai Zeng, Ding Yu, Yuanming Lai, Yan Kang, Wei Wang, Zhe Wang

摘要:

软件混淆技术通过对第三方代码进行混淆,防止二进制差分技术定位脆弱代码,达到保护嵌入式设备软件的目的。随着二元差分技术的迅速发展,通过提取函数内部的特征,可以实现越来越精确的函数匹配和识别。这使得现有的软件混淆技术,主要集中在过程内的代码混淆,不再有效。在本文中,我们提出了一个新的过程间代码混淆机制Khaos,它通过使用编译优化将代码跨函数移动以混淆函数。提出了两种混淆原语来分离和聚合函数,分别称为裂变和融合。Khaos的原型是基于LLVM编译器实现的,并在大量真实世界的程序上进行了评估,包括SPEC CPU 2006 & 2017,CoreUtils,JavaScript引擎,实验结果表明,Khaos算法优于现有的代码混淆算法,可以显著降低五种二进制差分算法的正确率(低于19%),运行时开销更低(低于7%)。

英文摘要:

Software obfuscation techniques can prevent binary diffing techniques from locating vulnerable code by obfuscating the third-party code, to achieve the purpose of protecting embedded device software. With the rapid development of binary diffing techniques, they can achieve more and more accurate function matching and identification by extracting the features within the function. This makes existing software obfuscation techniques, which mainly focus on the intra-procedural code obfuscation, no longer effective. In this paper, we propose a new inter-procedural code obfuscation mechanism Khaos, which moves the code across functions to obfuscate the function by using compilation optimizations. Two obfuscation primitives are proposed to separate and aggregate the function, which are called fission and fusion respectively. A prototype of Khaos is implemented based on the LLVM compiler and evaluated on a large number of real-world programs including SPEC CPU 2006 & 2017, CoreUtils, JavaScript engines, etc. Experimental results show that Khaos outperforms existing code obfuscations and can significantly reduce the accuracy rates of five state-of-the-art binary diffing techniques (less than 19%) with lower runtime overhead (less than 7%).

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

↑