Android Malware Detection Based on Feature Selection and Weight Measurement

Huizhong Sun, Guosheng Xu, Zhimin Wu, Ruijie QuanIntell. Autom. Soft Comput 2022

Abstract

As Android remains the dominant mobile operating system, it continues to be a primary target for malicious software. Static analysis is a common defense mechanism, but it often suffers from the "dimension disaster"—where an excessive number of features leads to high computational costs and reduced accuracy. This paper introduces a novel Frequency Differential Selection (FDS) algorithm combined with feature weight measurement to optimize the feature space. Experimental results show that the proposed approach, utilizing a Random Forest classifier, achieves 99% accuracy and demonstrates significant robustness against malware evolution over time.

Introduction

The proliferation of Android malware necessitates advanced detection techniques. Security researchers frequently employ static analysis, extracting features such as API calls, permissions, and opcodes from application packages (APKs) without execution. However, the resulting datasets often contain tens of thousands of features, many of which are redundant or noisy. This high dimensionality not only consumes excessive computational resources but also degrades the performance of machine learning models. Traditional feature selection methods, such as Chi-square or information gain, often struggle with the scale and evolving nature of mobile threats. This research proposes a lightweight, effective pipeline to identify and weight the most discriminatory features for malware classification.

Methodology

The proposed detection framework follows a three-stage pipeline: dataset collection, feature analysis, and model construction.

Overview of the proposed Android malware detection framework, illustrating the pipeline from APK inspection to classification.
  1. Static Feature Extraction: Using tools like Androguard, the system extracts critical components from APKs, including permissions, intent filters, opcodes, and API call graphs.
  2. Frequency Differential Selection (FDS): The core innovation is the FDS algorithm. It calculates a score for each feature based on the absolute difference in its frequency of occurrence between benign and malicious samples. Features that appear too rarely (atypical) or appear with similar frequency in both classes (non-discriminatory) are filtered out. This approach has a time complexity of $O(n)$, making it significantly more efficient than traditional statistical methods.
  3. Weight Measurement & Classification: Post-reduction, the remaining features are assigned weights based on their relative importance. These optimized features are then used to train various classifiers, including KNN, Decision Trees, Random Forest, XGBoost, and Recurrent Neural Networks (RNN/LSTM).

Experimental Setup and Datasets

The study utilized two primary datasets for evaluation:

  • OmniDroid Dataset: A comprehensive collection of 22,000 real-world malware and benign samples used for initial training and testing.
  • VirusTotal Temporal Dataset: To evaluate the model's sustainability, 21,694 samples spanning 2016 to 2018 were collected to test performance against "concept drift" as malware evolves.

Results and Discussion

The FDS algorithm demonstrated exceptional efficiency in dimensionality reduction, narrowing the initial pool of 22,000 features down to an optimal set of approximately 7,000. Further optimization revealed that peak efficiency could be reached with as few as 128 highly discriminatory metrics.

The Random Forest classifier, paired with FDS and weight measurement, emerged as the top performer, achieving 99% accuracy and a 98% F1-score. This configuration outperformed several baseline models and achieved a near-perfect Area Under the Curve (AUC) of 0.98.

Crucially, the model exhibited strong temporal robustness. When tested on apps from different years, it maintained high precision: 0.99 for 2016, 0.97 for 2017, and 0.96 for 2018. This suggests that by focusing on fundamentally discriminatory features, the FDS approach is less susceptible to the performance degradation typically caused by evolving malware patterns.

Conclusion

This research proves that in the context of malware detection, a larger feature set is not necessarily superior. By intelligently filtering noise through Frequency Differential Selection, detection accuracy can be improved while reducing computational overhead. While the current model shows slight limitations in detecting entirely novel zero-day threats, its high accuracy and temporal stability make it a robust solution for modern Android security. Future work will explore deep learning architectures for active protection and the detection of embedded malicious links.

Summary updated

BibTeX
@article{sun2022android,
  author = {Huizhong Sun and Guosheng Xu and Zhimin Wu and Ruijie Quan},
  title = {{Android Malware Detection Based on Feature Selection and Weight Measurement}},
  journal = {Intell. Autom. Soft Comput.},
  year = {2022},
  doi = {10.32604/iasc.2022.023874},
}
Figure