Skip to main content
QUICK REVIEW

[Paper Review] Context-aware System Service Call-oriented Symbolic Execution of Android Framework with Application to Exploit Generation

Lannan Luo, Qiang Zeng|arXiv (Cornell University)|Nov 2, 2016
Advanced Malware Detection TechniquesComputer Science26 references4 citations
TL;DR

This paper presents Centaur, the first system for symbolic execution of the Android Framework to enable automatic exploit generation and vulnerability discovery. By decoupling concrete execution for initialization from symbolic execution using context migration and slim tainting, Centaur overcomes state space explosion and enables scalable analysis of system service call vulnerabilities in Android Framework, demonstrating effectiveness in both exploit generation and bug finding.

ABSTRACT

Android Framework is a layer of software that exists in every Android system managing resources of all Android apps. A vulnerability in Android Framework can lead to severe hacks, such as destroying user data and leaking private information. With tens of millions of Android devices unpatched due to Android fragmentation, vulnerabilities in Android Framework certainly attract attackers to exploit them. So far, enormous manual effort is needed to craft such exploits. To our knowledge, no research has been done on automatic generation of exploits that take advantage of Android Framework vulnerabilities. We make a first step towards this goal by applying symbolic execution of Android Framework to finding bugs and generating exploits. Several challenges have been raised by the task. (1) The information of an app flows to Android Framework in multiple intricate steps, making it difficult to identify symbolic inputs. (2) Android Framework has a complex initialization phase, which exacerbates the state space explosion problem. (3) A straightforward design that builds the symbolic executor as a layer inside the Android system will not work well: not only does the implementation have to ensure the compatibility with the Android system, but it needs to be maintained whenever Android gets updated. We present novel ideas and techniques to resolve the challenges, and have built the first system for symbolic execution of Android Framework. It fundamentally changes the state of the art in exploit generation on the Android system, and has been applied to constructing new techniques for finding vulnerabilities.

Motivation & Objective

  • Address the lack of automated exploit generation techniques for Android Framework vulnerabilities, which are critical due to widespread unpatched devices.
  • Overcome the challenge of identifying symbolic inputs derived from malicious apps amidst complex data flows in Android Framework.
  • Mitigate state space explosion caused by the framework's complex initialization phase during symbolic execution.
  • Decouple symbolic execution from the Android runtime to ensure maintainability and compatibility across Android updates.
  • Enable both vulnerability discovery and automatic exploit generation within a unified symbolic execution framework for Android Framework.

Proposed method

  • Use concrete execution on the Android Runtime (ART) VM to simulate the initialization phase and capture the execution context.
  • Migrate the execution context from ART to a standalone Java VM to decouple symbolic execution from the Android system.
  • Apply slim tainting to identify variables derived from the malicious app as symbolic inputs by analyzing characteristic access patterns.
  • Construct symbolic execution paths based on the migrated context, focusing on system service calls as entry points for exploit generation.
  • Integrate symbolic execution with concrete execution to avoid exploring spurious paths and reduce state space explosion.
  • Design a two-tier architecture where concrete execution sets up the context and symbolic execution explores exploit-relevant paths.

Experimental results

Research questions

  • RQ1How can symbolic execution be effectively applied to the Android Framework, given its complex initialization and large state space?
  • RQ2What techniques can identify symbolic inputs derived from malicious apps in the context of Android Framework's data flow?
  • RQ3How can symbolic execution be decoupled from the Android runtime to ensure long-term maintainability across OS updates?
  • RQ4Can symbolic execution of the Android Framework enable automatic generation of real-world exploits targeting system service vulnerabilities?
  • RQ5To what extent can this approach improve the discovery of zero-day vulnerabilities in the Android Framework?

Key findings

  • Centaur successfully enables symbolic execution of the Android Framework, which to our knowledge is the first such system.
  • The system mitigates state space explosion by using concrete execution for initialization and context migration, avoiding the need to symbolically explore the entire initialization phase.
  • Slim tainting effectively identifies symbolic inputs derived from the malicious app by tracking characteristic access patterns, reducing false positives in symbolic execution.
  • Centaur outperforms naive symbolic execution approaches (e.g., UCSE) by avoiding path explosion, as shown in memory and execution time comparisons.
  • The framework is effective in both vulnerability discovery and automatic exploit generation, as validated through evaluation on real Android Framework components.
  • The system demonstrates feasibility of generating complex, context-aware exploits involving multiple system services and app interactions.

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.