Skip to main content
QUICK REVIEW

[Paper Review] Automated Deobfuscation of Android Native Binary Code

Zeliang Kan, Haoyu Wang|arXiv (Cornell University)|Jul 16, 2019
Advanced Malware Detection TechniquesComputer Science26 references8 citations
TL;DR

This paper presents DiANa, the first automated system for deobfuscating Android native binary code obfuscated by Obfuscator-LLVM (O-LLVM). By combining static taint analysis and flow-sensitive symbolic execution, DiANa recovers original control flow graphs with high fidelity, achieving similarity scores of up to 0.963 on real-world obfuscated functions.

ABSTRACT

With the popularity of Android apps, different techniques have been proposed to enhance app protection. As an effective approach to prevent reverse engineering, obfuscation can be used to serve both benign and malicious purposes. In recent years, more and more sensitive logic or data have been implemented as obfuscated native code because of the limitations of Java bytecode. As a result, native code obfuscation becomes a great obstacle for security analysis to understand the complicated logic. In this paper, we propose DiANa, an automated system to facilitate the deobfuscation of native binary code in Android apps. Specifically, given a binary obfuscated by Obfuscator-LLVM (the most popular native code obfuscator), DiANa is capable of recovering the original Control Flow Graph. To the best of our knowledge, DiANa is the first system that aims to tackle the problem of Android native binary deobfuscation. We have applied DiANa in different scenarios, and the experimental results demonstrate the effectiveness of DiANa based on generic similarity comparison metrics.

Motivation & Objective

  • Address the lack of automated tools for deobfuscating Android native code, particularly when protected by O-LLVM.
  • Overcome challenges in ARM-specific instruction optimization, control flow flattening, and path explosion during symbolic execution.
  • Enable accurate recovery of original program logic from obfuscated native binaries to support security analysis and malware reverse engineering.
  • Provide a scalable and precise solution for deobfuscation that preserves semantic equivalence between original and deobfuscated code.

Proposed method

  • Apply static taint analysis to identify and propagate semantic-level information across obfuscated instructions, enabling deobfuscation at the semantic level.
  • Use flow-sensitive symbolic execution to reconstruct complex control flow structures, especially those destroyed by control flow flattening.
  • Dynamically adjust analysis target sequences by chopping control flow and selecting key blocks based on static features to maximize context inheritance.
  • Introduce a configurable state-saving mechanism in symbolic execution to reduce path explosion while preserving critical execution paths.
  • Leverage IDA Pro for initial binary disassembly and Angr for symbolic execution, integrating them into a unified deobfuscation pipeline.
  • Validate deobfuscation results using both structural similarity metrics (e.g., CFG similarity) and semantic equivalence testing via input-output comparison.

Experimental results

Research questions

  • RQ1Can automated deobfuscation of O-LLVM-protected Android native binaries be achieved with high structural fidelity?
  • RQ2How effective is the combination of taint analysis and symbolic execution in recovering control flow from obfuscated native code on ARM?
  • RQ3To what extent does DiANa preserve semantic equivalence between original and deobfuscated functions?
  • RQ4What are the key challenges in deobfuscating ARM binaries with O-LLVM, and how can they be mitigated in practice?
  • RQ5How does DiANa perform across different obfuscation types (e.g., CFF, ALL) and real-world Android applications?

Key findings

  • DiANa achieved a control flow graph (CFG) similarity score of 0.963 on the "send_magicmsg" function and 0.939 on "search_goodnum" under Control Flow Flattening (CFF) obfuscation.
  • In the more complex "ALL" obfuscation scenario (including all O-LLVM techniques), DiANa maintained high accuracy with similarity scores of 0.962 and 0.900 for the same functions.
  • Semantic equivalence was confirmed for all test cases using 1,500 inputs, with identical outputs between original and deobfuscated functions.
  • Despite minor inconsistencies in symbolic execution due to callee function handling and state loss, manual analysis confirmed that semantics were preserved.
  • The system effectively mitigated path explosion by limiting and intelligently managing symbolic execution states, improving efficiency without sacrificing accuracy.
  • The deobfuscated CFGs were significantly more human-readable than the original obfuscated versions, especially in revealing system call sequences and key logic.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.