Control flow obfuscation (CFO) alters the control flow path of a program without altering its semantics. Existing literature has proposed several techniques; however, a quick survey reveals a lack of clarity in the types of techniques proposed, and how many are unique. What is also unclear is whether there is a disparity in the theory and practice of CFO. In this paper, we systematically study CFO techniques proposed for Java programs, both from papers and commercially available tools. We evaluate 13 obfuscators using a dataset of 16 programs with varying software characteristics, and different obfuscator parameters. Each program is carefully reverse engineered to study the effect of obfuscation. Our study reveals that there are 36 unique techniques proposed in the literature and 7 from tools. Three of the most popular commercial obfuscators implement only 13 of the 36 techniques in the literature. Thus there appears to be a gap between the theory and practice of CFO. We propose a novel classification of the obfuscation techniques based on the underlying component of a program that is transformed. We identify the techniques that are potent against reverse engineering attacks, both from the perspective of a human analyst and an automated program decompiler. Our analysis reveals that majority of the tools do not implement these techniques, thus defeating the protection obfuscation offers. We furnish examples of select techniques and discuss our findings. To the best of our knowledge, we are the first to assemble such a research. This study will be useful to software designers to decide upon the best techniques to use based upon their needs, for researchers to understand the state-of-the-art and for commercial obfuscator developers to develop new techniques.
Obfuscating Code Vulnerabilities against Static Analysis in JavaScript Code
University of Verona(维罗纳大学);University of Cagliari(卡利亚里大学);School of Advanced Defense Studies (CASD)(高级防务研究学院(CASD));National Interuniversity Consortium for Informatics(国家大学间信息学联盟)
Khaos: The Impact of Inter-procedural Code Obfuscation on Binary Diffing Techniques
软件混淆技术通过对第三方代码进行混淆,防止二进制差分技术定位脆弱代码,达到保护嵌入式设备软件的目的。随着二元差分技术的迅速发展,通过提取函数内部的特征,可以实现越来越精确的函数匹配和识别。这使得现有的软件混淆技术,主要集中在过程内的代码混淆,不再有效。在本文中,我们提出了一个新的过程间代码混淆机制Khaos,它通过使用编译优化将代码跨函数移动以混淆函数。提出了两种混淆原语来分离和聚合函数,分别称为裂变和融合。Khaos的原型是基于LLVM编译器实现的,并在大量真实世界的程序上进行了评估,包括SPEC CPU 2006 & 2017,CoreUtils,JavaScript引擎,实验结果表明,Khaos算法优于现有的代码混淆算法,可以显著降低五种二进制差分算法的正确率(低于19%),运行时开销更低(低于7%)。
Evaluating LLMs for Obfuscation Detection and Classification in Android Apps
IMT School for Advanced Studies Lucca(卢卡高等研究学院);Interdisciplinary Centre for Security, Reliability and Trust(安全、可靠性和信任跨学科中心);University of Verona(维罗纳大学);University of Genoa(热那亚大学)