Android Malware Detection Based on Functional Classification

Wenhao Fan, Dong Liu, Fan Wu, Bihua Tang, Yuan'an LiuIEICE 2022

Abstract

The Android operating system occupies a high share in the mobile terminal market, promoting the rapid development of Android applications. However, the emergence of Android malware greatly endangers user security. Existing research often ignores the functional category information of apps, missing the strong similarity between benign apps within the same category. In this paper, we propose an Android malware detection scheme based on functional classification. Because benign apps in the same functional category are more similar to each other, we can use fewer features to detect malware and improve accuracy. We design an automatic functional classification method inspired by the Hyperlink-Induced Topic Search (HITS) algorithm and a subsequent malware detection method based on app similarity. Experimental results using apps from the Google Play Store and the Drebin malware set show that our method effectively improves malware detection accuracy.

Introduction

The Android ecosystem is a massive target for malware, and traditional detection methods often struggle to keep pace. Most existing approaches treat the entire application landscape as a single, homogeneous pool. However, this ignores a crucial piece of metadata: the functional category of the app. A "Flashlight" app requesting access to contacts is inherently suspicious, whereas a "Social Media" app doing the same is standard behavior. By ignoring functional categories, the "noise" of diverse benign behaviors obscures the "signal" of malicious intent.

This research addresses the challenge of automatically and accurately categorizing apps at scale and leveraging that context to identify anomalies. The core hypothesis is that benign apps within the same functional category exhibit strong similarities, allowing for more precise malware detection using fewer, more relevant features.

Methodology

The proposed framework operates in two distinct phases: functional classification and category-specific malware detection.

Overview of the proposed two-stage malware detection framework, from application processing to final detection.

Functional Classification

To group apps, the system extracts static features such as permissions, intents, and hardware requirements. A key innovation is the application of the Hyperlink-Induced Topic Search (HITS) algorithm to Android APIs. In this model, APIs are treated as web pages, and call relationships are treated as hyperlinks. HITS identifies "Authority" APIs (central to a specific function) and "Hub" APIs (those calling many authorities). This weighting mechanism highlights APIs truly representative of a category, filtering out generic boilerplate code. An ensemble of five classifiers (SVM, Random Forest, Naive Bayes, KNN, and CART) using "soft voting" finalized the categorization.

Malware Detection

Once categorized, the system identifies malware within that specific functional group. The process involves:

  1. Sensitive Data Flow Analysis: Tools like SUSI and FlowDroid map the movement of sensitive data.
  2. Improved KNN: A K-Nearest Neighbor approach based on app similarity is employed. To address the computational overhead of large-scale comparisons, a "sample merging" strategy combines highly similar samples into representative prototypes, optimizing speed without sacrificing accuracy.

Experimental Setup

The system was evaluated using 12,791 benign apps crawled from the Google Play Store across 16 categories and malicious samples from the Drebin dataset. Each app was represented by a 17,038-dimensional feature vector.

Results and Discussion

The functional classification stage achieved an overall accuracy of 86.6% across 16 categories. As shown in the category-specific breakdown, performance varied significantly by function, with some categories like "Lifestyle" and "News" reaching near-perfect accuracy, while others like "Comics" proved more challenging.

Categorization accuracy across 16 different functional categories, showing the variability in classification performance.

The final malware detection accuracy reached 98.9%, with an F1-score of 0.992. This performance significantly outperforms standard benchmarks, including the baseline Drebin SVM (94.5%) and the PIndroid ensemble method (96.9%). These results validate the "contextual baseline" approach: by comparing suspicious apps only to their functional peers, malicious deviations become more apparent.

Conclusion

This paper demonstrates that functional context is a powerful tool for Android malware detection. While static analysis provides a strong foundation, future work will explore dynamic analysis to catch obfuscated malware and deeper logic mining to understand execution payloads. The current reliance on accurate initial classification is a potential bottleneck, though the system remains robust even when apps are placed in functionally adjacent categories.

Summary updated

BibTeX
@inproceedings{fan2022android,
  author = {Wenhao Fan and Dong Liu and Fan Wu and Bihua Tang and Yuan'an LIU},
  title = {{Android Malware Detection Based on Functional Classification}},
  booktitle = {IEICE},
  year = {2022},
  doi = {10.1587/transinf.2021edp7133},
}
Figure