Skip to main content
QUICK REVIEW

[Paper Review] ARTist: The Android Runtime Instrumentation and Security Toolkit

Michael Backes, Sven Bugiel|arXiv (Cornell University)|Jul 22, 2016
Advanced Malware Detection TechniquesComputer Science10 citations
TL;DR

ARTist is a compiler-based instrumentation toolkit for Android apps that extends the ART runtime's dex2oat compiler to enable secure, efficient, and robust application-layer instrumentation. It enables re-instantiation of legacy taint tracking and permission enforcement on modern Android versions by leveraging the Optimizing backend, offering superior integration and reliability over bytecode or binary rewriting approaches.

ABSTRACT

We present ARTist, a compiler-based application instrumentation solution for Android. ARTist is based on the new ART runtime and the on-device dex2oat compiler of Android, which replaced the interpreter-based managed runtime (DVM) from Android version 5 onwards. Since dex2oat is yet uncharted, our approach required first and foremost a thorough study of the compiler suite's internals and in particular of the new default compiler backend Optimizing. We document the results of this study in this paper to facilitate independent research on this topic and exemplify the viability of ARTist by realizing two use cases. Moreover, given that seminal works like TaintDroid hitherto depend on the now abandoned DVM, we conduct a case study on whether taint tracking can be re-instantiated using a compiler-based instrumentation framework. Overall, our results provide compelling arguments for preferring compiler-based instrumentation over alternative bytecode or binary rewriting approaches.

Motivation & Objective

  • Address the lack of viable instrumentation solutions for Android 5+ due to the deprecation of the DVM interpreter.
  • Enable re-instantiation of legacy security tools like TaintDroid on modern Android versions.
  • Provide a robust, application-layer instrumentation framework that preserves Android's signature-based security model.
  • Demonstrate the feasibility and advantages of compiler-based instrumentation over bytecode or binary rewriting.
  • Facilitate independent research by documenting the internals of the previously uncharted dex2oat and Optimizing compiler backend.

Proposed method

  • Conducted a comprehensive reverse-engineering study of the dex2oat compiler suite and its Optimizing backend, the default since Android 6.
  • Extended the dex2oat compiler with custom instrumentation passes using its intermediate representation (IR) and static program analysis.
  • Leveraged the compiler’s optimization framework to safely insert instrumentation code while preserving semantic correctness.
  • Designed a static analysis pipeline that identifies instrumentation targets using the IR and program structure.
  • Preserved the original app signature and compatibility with Android’s same-origin model and update mechanism.
  • Implemented a prototype for dynamic intra-application taint tracking using compiler-assisted instrumentation.

Experimental results

Research questions

  • RQ1Can a compiler-based instrumentation framework be successfully built for the modern ART runtime and its dex2oat compiler?
  • RQ2To what extent can legacy taint tracking solutions like TaintDroid be re-instantiated on Android 5+ using a compiler-based approach?
  • RQ3How does compiler-based instrumentation compare to bytecode or binary rewriting in terms of robustness, integration, and correctness?
  • RQ4What are the internal workings and key characteristics of the dex2oat compiler and its Optimizing backend?
  • RQ5What are the limitations of compiler-based taint tracking in terms of flow tracking, SDK interaction, and inter-application communication?

Key findings

  • The authors provide the first comprehensive analysis of the dex2oat compiler suite and its Optimizing backend, filling a critical knowledge gap in Android security research.
  • ARTist successfully re-instantiates dynamic intra-application taint tracking on Android 6+ with a 93% success rate on DroidBench callbacks and 81.8% overall on 66 test cases.
  • The prototype demonstrates that compiler-based instrumentation preserves the app’s original signature and remains compatible with Android’s update and security mechanisms.
  • ARTist outperforms bytecode and binary rewriting in terms of robustness, precision, and integration, due to access to high-level program structure and optimization infrastructure.
  • Limitations include incomplete tracking of implicit flows, imprecise taint propagation across SDK methods, and lack of inter-application tracking, which require future extensions.
  • Instrumenting the core image (pre-compiled framework) is a promising future direction to improve taint propagation across system boundaries.

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.