Of Ahead Time: Evaluating Disassembly of Android Apps Compiled to Binary OATs Through the ART
Open Access
- 8 May 2023
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 21-29
Abstract
The Android operating system has evolved significantly since its initial release in 2008. Most importantly, in a continuing effort to increase the run-time performance of mobile applications (apps) and to reduce resource requirements, the way code is executed has transformed from being bytecode-based to a binary-based approach: Apps are still mainly distributed as Dalvik bytecode, but the Android Runtime (ART) uses an optimizing compiler to create binary code ahead-of-time (AOT), just-in-time (JIT), or as a combination of both. These changes in the build pipeline, including increasing obfuscation and optimization of the Dalvik bytecode, invalidate assumptions of bytecode-based static code analysis approaches through identifier renaming and code shrinking. Furthermore, customized apps can be distributed pre-compiled with devices' firmware, side-stepping the bytecode altogether. Finally, Android apps have always relied on native binary code libraries for performance-critical tasks. We propose to narrow the gap between bytecode and binary code by leveraging the ART compiler's capability to create well-formed ELF binaries, called OATs, as the basis for further static code analysis. To this end, we created a pipeline to automatically and efficiently compile APKs to OATs into a benchmark dataset of 1,339 apps. We then evaluate five popular disassemblers based on how well they can analyze these OATs based on how well they can detect function boundaries. Our results, in particular, compared to the success rate of two bytecode-based analyzers, demonstrate that our OAT-based approach can help to bring a wider set of code analysis tools and techniques to the area of Android app analysis.Keywords
Funding Information
- Vienna Science and Technology Fund (10.47379/ICT19056)
This publication has 28 references indexed in Scilit:
- The ART of App Compartmentalization2017
- Understanding the security management of global third-party Android marketplaces2017
- TaintMan: An ART-Compatible Dynamic Taint Analysis Framework on Unmodified and Non-Rooted Android DevicesIEEE Transactions on Dependable and Secure Computing, 2017
- SimiDroid: Identifying and Explaining Similarities in Android Apps2017
- Similarity of binaries through re-optimization2017
- ARTist: The Android Runtime Instrumentation and Security Toolkit2017
- Compiler-Agnostic Function Detection in Binaries2017
- TaintART2016
- SOK: (State of) The Art of War: Offensive Techniques in Binary Analysis2016
- BAP: A Binary Analysis Platform2011