A Family of Droids: Analyzing Behavioral Model based Android Malware Detection via Static and Dynamic Analysis

Lucky Onwuzurike, Mário Almeida, Enrico Mariconti, Jeremy Blackburn, Gianluca Stringhini, Emiliano De Cristofaro

TL;DR

This paper introduces AUNTIEDROID, a system that extends behavioral modeling for Android malware detection to dynamic analysis. By comparing static, dynamic, and hybrid approaches using the same modeling technique, they find that a hybrid approach offers the best detection performance, while static analysis can be surprisingly effective.

What Problem Does This Paper Address?

The proliferation of Android malware poses a significant threat, prompting research into detection methods. Existing approaches largely fall into two categories: static analysis (examining code without execution) and dynamic analysis (observing behavior during execution). While the strengths and weaknesses of each are known (e.g., static analysis misses runtime behaviors, dynamic analysis may not achieve full code coverage), a direct, apples-to-apples comparison using the same modeling approach has been lacking. This paper aims to bridge that gap, investigating how static, dynamic, and hybrid analysis compare in detecting Android malware when employing a consistent behavioral modeling technique.

Methods

The core of this work is building upon the MAMADROID system, which uses static analysis to create behavioral models from sequences of abstracted API calls. The authors extend this concept to dynamic analysis by modifying the CHIMP platform. CHIMP, originally designed for crowdsourced human app testing, is adapted to extract API call sequences from execution traces within a virtual device. This new system is named AUNTIEDROID.

Key methodological aspects include:

  • Behavioral Modeling: Both static and dynamic analyses rely on modeling sequences of abstracted API calls as Markov chains, using transition probabilities as features.
  • AUNTIEDROID: This system uses a modified CHIMP virtual device to capture runtime API call sequences.
  • App Stimulation: AUNTIEDROID supports two modes of stimulating apps for dynamic analysis:
  • Automated (Monkey): Using Android's standard UI automation tool.
  • Human-generated: Leveraging crowdsourced testers via CHIMP.
  • Abstraction Levels: API calls are abstracted to either their "family" or "package" names to improve resilience to API changes and reduce feature set size.
  • Hybrid Analysis: Merging API call sequences from both static and dynamic analysis to create a combined behavioral model.

Datasets

The evaluation uses two datasets:

  • Benign Samples: A collection of 2,723 benign apps, comprising a re-downloaded set from a previous study (2,242 apps) and a sample of top apps from the Google Play Store (481 apps).
  • Malware Samples: A dataset of 2,694 malware apps, sourced from VirusShare and two additional apps reported in the news.

The authors also note that some apps were excluded from dynamic analysis due to reasons like failing to install, lacking launcher activities, or not having any detectable activities.

Key Insights and Ideas

  • Hybrid is King: Combining static and dynamic analysis consistently yields the best detection performance, suggesting that leveraging both pre-execution code analysis and runtime behavior is crucial for robust malware detection.
  • Static Analysis is Surprisingly Resilient: Static analysis, when using behavioral models, performs comparably to, and sometimes better than, dynamic analysis, especially when dynamic analysis struggles with code coverage.
  • Stimulation Matters for Dynamic Analysis: The way an app is stimulated during dynamic analysis significantly impacts its performance. Automated tools like Monkey tend to achieve better code coverage and, consequently, better detection results than human testers.
  • Dynamic Code Loading is Prevalent: A significant portion of code is dynamically loaded in both benign and malicious apps, posing a challenge for static analysis that cannot observe this runtime behavior. However, the prevalence in benign apps means it's not a definitive indicator of malice on its own.
  • Misclassification Patterns: The study delves into why misclassifications occur, suggesting that differences in code coverage and the nature of API calls (e.g., benign code that characterizes malware) contribute to errors.

Key Results

  • Best Performance: The hybrid analysis method achieved the highest F-measure, reaching 0.92 in package mode when stimulated by Monkey.
  • Static vs. Dynamic: Static analysis achieved an F-measure of 0.91 in package mode. Dynamic analysis with Monkey achieved 0.92 (package mode), while with humans it reached 0.88 (package mode). This indicates static analysis is at least as effective as dynamic analysis, depending on the stimulator.
  • Code Coverage: Monkey stimulated apps achieved higher code coverage (average 20% of API calls) compared to human testers (average 14%). Malware apps generally had higher code coverage than benign apps, partly due to their smaller size.
  • Dynamic Code Loading: Up to 99.5% of API calls were dynamically loaded in 90% of malware samples, highlighting its prevalence.
  • False Positives/Negatives: Hybrid analysis generally showed fewer false positives than static or dynamic analysis alone, particularly when stimulated by Monkey.

Limitations and Future Work

  • Virtual Device Limitations: The current AUNTIEDROID virtual device only supports Android KitKat (4.4.2). It also has limitations in supporting the full range of OpenGL operations.
  • Human Tester Variability: Human testers might not explore apps in the same way a typical user would, potentially affecting dynamic analysis results.
  • Future Work:
    • Update the virtual device to support newer Android versions and full OpenGL capabilities.
  • Develop input generators that target specific behaviors or API calls to improve dynamic analysis efficiency.
  • Investigate the prevalence and evasion techniques related to dynamic code loading.
  • Explore differences in malware behavior across various Android versions.

Summary updated

BibTeX
@inproceedings{onwuzurike2018family,
  author = {Lucky Onwuzurike and Mário Almeida and Enrico Mariconti and Jeremy Blackburn and Gianluca Stringhini and Emiliano De Cristofaro},
  title = {{A Family of Droids: Analyzing Behavioral Model based Android Malware Detection via Static and Dynamic Analysis}},
  booktitle = {PST},
  year = {2018},
  url = {https://openreview.net/forum?id=KEnxdZ_XgfjS},
}
Figure