The Ohio State University
Obfuscation-Resilient Code Detection Analyses for Android Apps
Abstract
dc:descriptionProgram analysis, both static and dynamic, is helpful in understanding and improving Android software. Many techniques have been developed for various purposes including test generation, bug detection, identification of third-party libraries, clone detection, and malware detection. However, Android developers commonly use app obfuscation to secure their apps and to protect their intellectual property. Such obfuscation presents an obstacle for a number of legitimate and important program analyses. Therefore, it is necessary to investigate and reduce the negative effects of Android obfuscation on program analysis algorithms and tools. This dissertation makes several contributions towards tackling this problem.To understand Android obfuscation, it is useful to be able to identify the obfuscator used to process a given app. There are many popular obfuscators, including both free ones and commercial ones. Although the goals of these obfuscators are identical, their algorithms and implementations vary. Furthermore, the same tool may have different configurations, which will change its behavior and the resulting obfuscated code. As the first contribution of this dissertation, we define the obfuscator identification problem and propose a machine learning approach to identify the type of obfuscator and its concrete configurations used by an Android app. The approach achieves this identification by defining and solving a classification problem. We design the structure of the feature vector which is extracted from Android apps to represent the characteristics of the obfuscated Dalvik bytecode. Then a classifier is applied to identify the obfuscator provenance information. To evaluate our approach, we studied hundreds of open-source Android apps and demonstrated the high accuracy of the proposed techniques. Moreover, we performed a study on thousands of Google Play Store apps, and found that obfuscation is widely used in popular apps.Third-party library detection and clone detection are representative examples of program analysis problems that become more difficult in the presence of obfuscation. Third-party libraries are widely used in Android apps. Various program analyses need to identify or even remove these third-party libraries. In addition, many third-party libraries for Android have been shown to bring security and privacy hazards by adding security vulnerabilities to their host apps or by misusing inherited access rights. Correctly attributing improper app behavior to library code, as well as isolating libraries from their host apps, can be highly desirable in order to mitigate these problems. As for clone detection, attackers often generate repackaged apps to steal the revenue from original owners or to deceive the users in order to install. Several approaches have been proposed to detect third-party libraries and clones for Android, but none of them fully consider/handle the impact of obfuscation. The second contribution of this dissertation is a study of the limitations of prior work in this area, as well as the design of a novel approach for obfuscation-resilient detection of third-party libraries and app clones. Unlike earlier efforts, the approach employs interprocedural code features (for improved effectiveness) and similarity digests (for efficiency). Experimental evaluation using a number of applications and libraries shows substantial performance improvements compared to a state-of-art tool for detection of libraries and app clones.The next contribution of this dissertation is at a much finer granularity: method-level detection. Identifying the existence of a certain API method of interest in a given obfuscated app is needed in many scenarios related to app analysis/transformation. Prior work on this topic does not successfully account for the effects of commonly-used obfuscation techniques for Android. To address this challenge, we propose an obfuscation-resilient approach for method detection. The key components of this approach are the design of a new type of fuzzy signature for methods, together with an efficient technique to compare these signatures against a given obfuscated app. We study three clients of our analysis and demonstrate the effectiveness and practicality of the developed method detector.In conclusion, this dissertation presents several novel static analysis techniques to solve challenges created by Android obfuscation. These techniques exhibit good cost/precision performance on a large number of real-world apps, and advance the state of the art in analysis of obfuscated Android code.
Degree
thesis:*- Name thesis:degree_name
- Doctor of Philosophy
- Level thesis:degree_level
- doctoral
- Discipline thesis:degree_discipline
- Computer Science and Engineering
- Grantor dc:publisher
- The Ohio State University
- Year dc:date
- 2018
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Wang, Yan
- Advisor dc:contributor.advisor
-
- Rountev, Atanas
Subjects
dc:subject × 1Rights
dc:rights- Statement dc:rights
-
- unrestricted
- This thesis or dissertation is protected by copyright: some rights reserved. It is licensed for use under a Creative Commons license. Specific terms and permissions are available from this document's record in the OhioLINK ETD Center.
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://rave.ohiolink.edu/etdc/view?acc_num=osu1534337202264542