arrow
Return

Compile-time code virtualization for android applications

delete2020-07-01
delete3
delete
OA
AI
Y
Yujie Zhao
Z
Zhanyong Tang *
G
Guixin Ye
D
Dongxu Peng
D
Dingyi Fang
X
Xiaojiang Chen
Z
Zheng Wang
DOI:10.1016/j.cose.2020.101821delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Infringing intellectual property by reverse analysis is a severe threat to Android applications. By replacing the program instructions with virtual instructions that an adversary is unfamiliar with, code obfuscation based on virtualization is a promising way of protecting Android applications against reverse engineering. However, the current code virtualization approaches for Android only target at the DEX bytecode level. The DEX file with the open file format and more semantic information makes the decode-dispatch pattern easier to expose, which has been identified as a severe vulnerability of security and can be exploited by various attacks. Further, decode-dispatch interpretation frequently uses indirect branches in this structure to introduce extra overhead. This paper presents a novel approach to transfer code virtualization from DEX level to native level, which possesses strong security strength and good stealth, with only modest cost. Our approach contains two components: pre-compilation and compile-time virtualization. Pre-compilation is designed for performance improvement by identifying and decompiling the critical functions which consume a significant fraction of execution time. Compile-time virtualization builds upon the widely used LLVM compiler framework. It automatically translates the DEX bytecode into the common LLVM intermediate representations where a unified code virtualization pass can be applied for DEX code. We have implemented a working prototype Dex2VM of our technique and applied it to eight representative Android applications. Our experimental results show that the proposed approach can effectively protect the target code against a state-of-the-art code reverse engineering tool that is specifically designed for code virtualization, and it achieves good stealth with only modest cost. (C) 2020 Elsevier Ltd. All rights reserved.
Keywords:
Android packer
Code virtualization
Compiler
LLVM
Lightweight Code Outlining for Android Applications
err2025-12-01
err0
PREAI
errJiang, Shuo; Liang, Zhanhao; Sun, Hanming; Shang, Wenhan; Tong, Bifeng; Yuan, Mengting; Xue, Chun (Jason); Ma, Jiang; Li, Qingan
errShare
errSave
Exploiting Binary-Level Code Virtualization to Protect Android Applications Against App Repackaging
err2019-01-01
err4
PREAI
errHe, Zhongkai; Ye, Guixin; Yuan, Lu; Tang, Zhanyong; Wang, Xiaofeng; Ren, Jie; Wang, Wei; Yang, Jianfeng; Fang, Dingy; Wang, Zheng
errShare
errSave
BPFDex: Enabling Robust Android Apps Unpacking via Android Kernel
err2025-01-01
err0
PREAI
errMingyang Li; Weina Niu; Jiacheng Gong; Song Li; Mingxue Zhang; Xiaosong Zhang
errShare
errSave
The Dark Side of Native Code on Android
err2025-02-22
err0
errOAAI
errRuggia, A; Possemato, A; Dambra, S; Merlo, A; Aonzo, S; Balzarotti, D
errShare
errSave
Covert Computation Hiding code in code through compile-time obfuscation
err2014-05-01
err13
PREAI
errSchrittwieser, Sebastian; Katzenbeisser, Stefan; Kieseberg, Peter; Huber, Markus; Leithner, Manuel; Mulazzani, Martin; Weippl, Edgar
errShare
errSave
VirtualPatch: Distributing Android security patches through Android virtualization
err2025-08-09
err0
errOAAI
errSimeone Pizzi; Samuele Doria; Nicholas Miazzo; Eleonora Losiouk
errShare
errSave
A Lightweight Virtualization Solution for Android Devices
err2015-10-01
err24
PREAI
errChen, Wenzhi; Xu, Lei; Li, Guoxi; Xiang, Yang
errShare
errSave

Journal

C
Computers and Security
IF:
5.4
Papers:
4.6K
Citations:
1.8W

Organization

N
northwest university xi'an
Scholars:
555
Papers: 394
Citations: 8.3K
U
University of Leeds
Scholars:
2.3K
Papers: 946
Citations: 2.5W
Cited Papers

Cited Papers

errShare
errSave
Enhance virtual-machine-based code obfuscation security through dynamic bytecode scheduling
err2018-05-01
err20
errOAAI
errKuang, Kaiyuan; Tang, Zhanyong; Gong, Xiaoqing; Fang, Dingyi; Chen, Xiaojiang; Wang, Zheng
errShare
errSave
The Common Representative Intermediates Mechanism Version 2 in the United Kingdom Chemistry and Aerosols Model
err2021-05-07
err0
errOAAI
errS. Archer‐Nicholls; N. L. Abraham; Y. M. Shin; J. Weber; M. R. Russo; D. Lowe; S. R. Utembe; F. M. O'Connor; B. Kerridge; B. Latter; R. Siddans; M. Jenkin; O. Wild; A. T. Archibald
errShare
errSave
Contribution of different regions of the prefrontal cortex and lesion laterality to deficit of decision-making on the Iowa Gambling Task
err2017-02-01
err0
PREAI
errRiadh Ouerchefani; Naoufel Ouerchefani; Philippe Allain; Mohamed Riadh Ben Rejeb; Didier Le Gall
errShare
errSave
Exploiting Binary-Level Code Virtualization to Protect Android Applications Against App Repackaging
err2019-01-01
err4
PREAI
errHe, Zhongkai; Ye, Guixin; Yuan, Lu; Tang, Zhanyong; Wang, Xiaofeng; Ren, Jie; Wang, Wei; Yang, Jianfeng; Fang, Dingy; Wang, Zheng
errShare
errSave
Invalidating Analysis Knowledge for Code Virtualization Protection Through Partition Diversity
err2019-01-01
err1
PREAI
errWang, Wei; Li, Meng; Tang, Zhanyong; Wang, Huanting; Ye, Guixin; Wang, Fuwei; Ren, Jie; Gong, Xiaoqing; Fang, Dingyi; Wang, Zheng
errShare
errSave
no more