Menu Close Back

What is Code Obfuscation

obfuscationWhat is Code Obfuscation?

Code obfuscation is the process of making applications difficult or impossible to decompile or disassemble, and the retrieved application code more difficult for humans to parse. Obfuscation is part of a broader mobile application shielding strategy.

The goal of code obfuscation is to prevent any unauthorized party from accessing and gaining insight into the logic of an application, which prevents them from extracting data, tampering with code, exploiting vulnerabilities, and more. 

The Problem

 

Mobile applications can be reverse engineered using readily available disassemblers and/or decompilers, making it easy for hackers to access and analyze the source code of your applications. 

 

Then hackers can:

  • Steal intellectual property
  • Clone applications
  • Extract sensitive information
  • Harvest credentials
  • Identify vulnerabilities
  • Add malicious code to apps and repackage them

 

Data of a sensitive nature may include:

  • Valuable intellectual property (such as custom algorithms)
  • Authentication mechanisms
  • In-app payment mechanisms
  • Keys (API keys, hardcoded encryption keys etc.)
  • Credentials (database passwords etc.)
  • The logic behind server communication
  • & much more
code obfuscation definition

phone-protected-WCO.png

The Solution

 

Code obfuscation protects mobile applications from reverse engineering and hacking. 

Application developers must harden the code at various layers. This is the only way to achieve the level of protection necessary to safeguard sensitive data and property in mobile applications.

 

Where code obfuscation fits into a broader security strategy

 

Application shielding is a broad term for the process of making it more difficult for hackers to reverse engineer or modify an app. There are various techniques that can be used for application shielding, including code obfuscation and other code hardening techniques, as well as runtime mobile application self-protection (RASP). 

A robust combination of application shielding techniques will deter the vast majority of hackers.

Why use Code Obfuscation?

 

All of this is undertaken without altering the function of the code or the end user experience in a meaningful way.  

Code obfuscation strategies include:

  • Renaming classes, fields, methods, libraries etc.
  • Altering the structure of the code
  • Transforming arithmetic and logical expressions
  • Encryption of strings, classes etc.
  • Removing certain metadata
  • Hiding calls to sensitive APIs, and more
obfuscated-1.png

Types of obfuscation

There are several techniques available today to obfuscate code. These include but not limited to:

Name Obfuscation

The replacement of readable names in the code by difficult to decipher alternatives

Control Flow Obfuscation 

The modification of the logical structure of the code to make it less predictable and traceable

Arithmetic Obfuscation 

The conversion of simple arithmetic and logical expressions into complex equivalents

Code virtualization

The transformation of method implementation into instructions for randomly generated virtual machines 

Ready to see how code obfuscation can better secure your mobile applications?

Request a demo today