Skip to main content
QUICK REVIEW

[Paper Review] Improving Dynamic Analysis of Android Apps Using Hybrid Test Input Generation

Mohammed K. Alzaylaee, Suleiman Y. Yerima|arXiv (Cornell University)|May 18, 2017
Advanced Malware Detection TechniquesComputer Science14 references7 citations
TL;DR

This paper proposes a hybrid test input generation framework that combines Android Monkey's random input generation with DroidBot's state-based testing to improve dynamic analysis of Android apps on real devices. The approach significantly increases code coverage and dynamic feature extraction—particularly API calls and intents—outperforming both standalone random and state-based methods in detecting malicious behaviors.

ABSTRACT

The Android OS has become the most popular mobile operating system leading to a significant increase in the spread of Android malware. Consequently, several static and dynamic analysis systems have been developed to detect Android malware. With dynamic analysis, efficient test input generation is needed in order to trigger the potential run-time malicious behaviours. Most existing dynamic analysis systems employ random-based input generation methods usually built using the Android Monkey tool. Random-based input generation has several shortcomings including limited code coverage, which motivates us to explore combining it with a state-based method in order to improve efficiency. Hence, in this paper, we present a novel hybrid test input generation approach designed to improve dynamic analysis on real devices. We implemented the hybrid system by integrating a random based tool (Monkey) with a state based tool (DroidBot) in order to improve code coverage and potentially uncover more malicious behaviours. The system is evaluated using 2,444 Android apps containing 1222 benign and 1222 malware samples from the Android malware genome project. Three scenarios, random only, state-based only, and our proposed hybrid approach were investigated to comparatively evaluate their performances. Our study shows that the hybrid approach significantly improved the amount of dynamic features extracted from both benign and malware samples over the state-based and commonly used random test input generation method.

Motivation & Objective

  • Address the limitations of random-based test input generation in dynamic malware analysis, which often results in low code coverage and failure to trigger hidden malicious behaviors.
  • Overcome the shortcomings of existing tools like Monkey, which may disrupt analysis by triggering unintended system states (e.g., disabling USB debugging), and DroidBot, which may miss rare or complex UI transitions.
  • Improve the efficiency and effectiveness of dynamic analysis by integrating the strengths of both random and state-based testing strategies on real devices.
  • Enable more comprehensive logging of dynamic features—such as API calls and intents—critical for detecting zero-day and obfuscated Android malware.
  • Provide a practical, instrument-free framework for large-scale automated dynamic analysis of Android apps using real devices, avoiding emulator-based limitations and anti-emulation evasion.

Proposed method

  • Integrate Android Monkey (random-based input generator) with DroidBot (state-based UI testing tool) into a unified hybrid testing framework for dynamic analysis on real Android devices.
  • Use Monkey to generate pseudo-random user events (e.g., touches, swipes, key presses) to explore broad, unpredictable UI paths and trigger hidden behaviors.
  • Employ DroidBot’s model-based approach to systematically explore UI states and transitions, ensuring coverage of known and expected application flows.
  • Combine the outputs of both tools in a coordinated manner, prioritizing state-based exploration for stability and coverage while using random inputs to probe edge cases.
  • Log all API calls and intents during execution to extract dynamic features useful for malware detection and behavior analysis.
  • Evaluate the hybrid approach on 2,444 real Android apps (1,222 benign, 1,222 malware) from the Android Malware Genome Project, using real devices to ensure practical relevance.

Experimental results

Research questions

  • RQ1Can combining random-based and state-based test input generation improve code coverage in dynamic analysis of Android apps compared to using either method in isolation?
  • RQ2Does the hybrid approach extract more dynamic features—specifically API calls and intents—than standalone random or state-based testing on real devices?
  • RQ3To what extent does the hybrid method enhance the detection of malicious behaviors in Android malware, especially those triggered only under specific UI conditions?
  • RQ4How does the hybrid approach perform in practice on real devices, as opposed to emulators, in terms of stability, coverage, and feature extraction?
  • RQ5Can the hybrid method effectively trigger malicious behaviors in obfuscated or anti-analysis Android malware that evade traditional testing strategies?

Key findings

  • The hybrid approach significantly outperformed both Monkey (random-only) and DroidBot (state-based-only) in terms of code coverage across both benign and malware samples.
  • The hybrid method extracted more unique API calls and intents than either individual method, indicating improved dynamic feature discovery.
  • The study demonstrated that combining random and state-based testing increases the likelihood of triggering malicious behaviors that are hidden behind complex UI interactions.
  • The hybrid framework achieved higher coverage on real devices, avoiding the instability and configuration issues common with emulator-based tools.
  • The results suggest that the hybrid approach enhances the effectiveness of dynamic analysis for malware detection by increasing the probability of observing malicious runtime behavior.
  • The framework is practical and deployable in real-world settings, as it does not require instrumentation of the Android framework or emulator-specific configurations.

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.