Skip to main content
QUICK REVIEW

[Paper Review] Android Malware Detection using Markov Chain Model of Application Behaviors in Requesting System Services

M. Seyed Salehi, Morteza Amini|arXiv (Cornell University)|Nov 15, 2017
Advanced Malware Detection TechniquesComputer Science30 references12 citations
TL;DR

This paper proposes ServiceMonitor, a lightweight host-based Android malware detection system that models application behavior through Markov chains of system service requests. By analyzing fine-grained service access patterns and classifying them via Random Forests, it achieves 96% accuracy with minimal performance overhead on mobile devices.

ABSTRACT

Widespread growth in Android malwares stimulates security researchers to propose different methods for analyzing and detecting malicious behaviors in applications. Nevertheless, current solutions are ill-suited to extract the fine-grained behavior of Android applications accurately and efficiently. In this paper, we propose ServiceMonitor, a lightweight host-based detection system that dynamically detects malicious applications directly on mobile devices. ServiceMonitor reconstructs the fine-grained behavior of applications based on a novel systematic system service use analysis technique. Using proposed system service use perspective enables us to build a statistical Markov chain model to represent what and how system services are used to access system resources. Afterwards, we consider built Markov chain in the form of a feature vector and use it to classify the application behavior into either malicious or benign using Random Forests classification algorithm. ServiceMonitor outperforms current host-based solutions with evaluating it against 4034 malwares and 10024 benign applications and obtaining 96\% of accuracy rate and negligible overhead and performance penalty.

Motivation & Objective

  • Address the limitations of existing host-based malware detection systems that rely on system call-level analysis, which fails to capture meaningful behavior in Android due to the Binder IPC mechanism.
  • Overcome the shortcomings of static analysis, such as vulnerability to obfuscation and inability to analyze native code or runtime-loaded components.
  • Develop a dynamic, lightweight, and accurate detection framework that operates directly on mobile devices using semantic-level system service usage patterns.
  • Enable effective malware detection on rooted Android devices by modeling behavioral sequences as Markov chains for classification.
  • Improve detection accuracy by capturing high-level behavioral semantics of applications through systematic analysis of system service interactions.

Proposed method

  • Instrument the Android kernel with a custom module to dynamically monitor and log all requests to system services via the Binder IPC mechanism.
  • Extract sequences of function calls made to system services (e.g., getService, getRunningAppProcesses) during application execution.
  • Model the sequence of system service requests as a first-order Markov chain, where each state represents a specific system service function and transitions represent the order of access.
  • Transform the Markov chain into a feature vector encoding transition probabilities and service access frequencies for use in classification.
  • Train a Random Forest classifier on the feature vectors to distinguish between malicious and benign applications using labeled datasets.
  • Deploy the system on rooted Android devices to enable real-time, on-device behavioral analysis without relying on external cloud services.

Experimental results

Research questions

  • RQ1Can system service usage patterns be effectively modeled as Markov chains to represent fine-grained application behavior in Android?
  • RQ2Does modeling behavior at the system service level—beyond low-level system calls—improve the accuracy of on-device malware detection?
  • RQ3Can a lightweight, host-based detection system achieve high accuracy while maintaining negligible performance overhead on mobile devices?
  • RQ4How do the system service access patterns of malicious applications differ from those of benign ones in terms of frequency, diversity, and sequence?
  • RQ5To what extent can the proposed method detect advanced malware families that evade traditional system call-based analysis?

Key findings

  • ServiceMonitor achieved a detection accuracy of 96% when evaluated on a dataset of 4,034 malware samples and 10,024 benign applications.
  • Malicious applications made an average of 38 system service requests during execution, compared to fewer than 12 for benign applications, indicating significantly higher service utilization.
  • 17% of malware samples accessed telephony services, causing potential financial charges, while no benign applications in the dataset exhibited such behavior.
  • 12% of malware samples accessed GPS/location services, compared to 7% of benign apps, highlighting a strong correlation with tracking malware.
  • 16% of malicious apps invoked getInstalledPackages() to enumerate installed packages, while only 1% of benign apps did so, indicating reconnaissance behavior.
  • 5.7% of malware samples accessed memory information via getMemoryInfo(), compared to 0.7% of benign apps, suggesting resource monitoring or anti-analysis tactics.

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.