In order to improve optimization effect of control flow obfuscation algorithm based on garbage code. Aiming at the problem that it will cause a lot of extra costs when inserting branch garbage code and recycling garbage code, this paper used the code confusion technology from software protection to deeply discuss the theory and existing situation of code confusion technology, confusion algorithm attacking and the confusion technology based on control flow. It also gave an improved method that inserted garbage code in control confusion. New method compared with the control flow code based on junk confusion transform methods and the results show that new method increases the static analysis ability of the code that resists an attacker, increases the difficulty of de-compilation and reverse project, achieves a good effect of defending reverse project attacks, and reduces lots of system cost.%为了提高基于垃圾代码的控制流混淆方法的优化效果,针对插入分支垃圾代码以及循环垃圾代码会引入大量额外开销的问题,从软件保护中代码混淆技术出发,对代码混淆技术的研究现状和原理、混淆算法攻击以及基于控制流混淆技术作了深入研究,提出一种基于Java代码控制混淆中插入垃圾代码的改进方法.新方法与基于垃圾代码的控制流混淆变换方法比较,结果表明,新方法增加了代码抵抗攻击者的静态分析的能力,增加了反编译以及逆向工程的难度,既达到了很好的防御逆向工程攻击的效果,又不会大量引入额外的系统开销.
展开▼