Skip to main navigation menu Skip to main content Skip to site footer

Methods for Obfuscating Java Programs

Abstract

Java programs distributed through internet are suffering of problems like reverse engineering, algorithms theft and unauthorized functional changes. The reason for this issue is that the bytecode from Java class file holds enough information to be decompiled into source code that resembles the original. In this paper, I discuss some practical obfuscation methods that make difficult the understanding of the decompiled programs. The methods analyzed are: lexical obfuscation, data obfuscation, control flow obfuscation, obfuscation methods that make use of the discrepancy between bytecode and source code. In order to evaluate the usefulness of these methods, some metrics will be described.

Keywords

Java, obfuscation, lexical obfuscation, data obfuscation, control flow obfuscation, bytecode

PDF

Author Biography

Florin Buzatu

Bucharest University of Economic Studies


References

  1. [1] Michael Batchelder, Laurie Hendren, Obfuscating Java: the most pain for the least gain – Sable Technical Report No. 2006-5
  2. [2] Eric Bruneton, ASM 3.0 A Java bytecode engineering library
  3. [3] Bill Vernes, Inside the Java Virtual Machine, McGraw-Hill
  4. [4] Jon Meyer, Troy Downing, Java Virtual Machine Online Instruction Reference Manual, O’Reilly Associates
  5. [5] Douglas Low, Protecting Java Code Via Code Obfuscation
  6. [6] Dmitry Leskov, Protect your Java code – through obfuscators and beyond, http://www.excelsior-usa.com/articles/java-obfuscators.html
  7. [7] Yury Lifshits, Two courses on program obfuscation, http://yury.name/obfuscation/
  8. [8] Sonali Gupta, Code Obfuscation, http://palisade.plynt.com/issues/2005Aug/code-obfuscation/
  9. [9] Anshuman Mishra, Rajeev Kumar and P.P. Chakrabarti, A Method-based Whole-Program Watermarking Scheme For Java Class Files