Contaminant removal for Android malware detection systems

Lichao Sun, Xiaokai Wei, Jiawei Zhang, Lifang He, Philip S. Yu, Witawas Srisa-an

In the rapidly evolving landscape of mobile cybersecurity, a new Android malware variant is identified approximately every four seconds. This velocity presents a significant challenge for supervised machine learning models: by the time a "benign" dataset is curated for training, it is almost certainly contaminated with undetected, "zero-attack" malicious applications. This paper introduces PUDROID, a framework designed to identify and mitigate the impact of these hidden contaminants using Positive and Unlabeled (PU) learning.

The Problem: Data Contamination

Traditional malware detection relies on supervised learning, which assumes the existence of two distinct, accurately labeled sets: "Malicious" and "Benign." However, because malware evolves faster than manual analysis can keep pace, the benign set often contains "Zero-Attack" malware—malicious apps that have not yet been blacklisted.

When a standard classifier is trained on this noisy data, it incorrectly learns that certain malicious behaviors are benign, leading to a high rate of false negatives. PUDROID addresses this by treating the benign dataset as "unlabeled" rather than "guaranteed negative," acknowledging the inherent uncertainty in real-world ground-truth labels.

Methodology

The PUDROID framework operates through a multi-stage pipeline designed for both efficiency and robustness against noise.

The PUDROID system architecture, illustrating the flow from raw APKs to feature selection and the PU learning framework.

1. Explainable Feature Selection

To avoid overfitting and reduce computational overhead, PUDROID focuses on three categories of "explainable" features: Permissions, APIs, and Network Information (specifically converting URLs to IP addresses). This approach reduces the feature space by 93% compared to state-of-the-art methods like DREBIN, while maintaining high diagnostic relevance.

2. PU Learning Framework

Rather than a standard binary classification (Positive vs. Negative), PUDROID utilizes a mathematical approach to estimate the probability that an unlabeled sample is actually a hidden positive. By calculating a constant ($e$) based on classifier performance on a validation set, the system adjusts the probability scores of unlabeled apps. This framework was evaluated using three underlying classifiers: Support Vector Machines (SVM), Decision Trees, and Random Forests.

Experimental Results

The researchers utilized the Drebin dataset (5,560 malware samples and 123,453 benign apps) to test PUDROID's performance. They simulated various real-world scenarios by injecting known malware into the benign set at ratios ranging from 1:1 to 8:1.

Comparison of AUC performance between PU learning and standard supervised learning (NPU) as the number of contaminants increases.

Key Findings:

  • Stability in High-Noise Environments: While standard supervised models (NPU) collapse as contamination increases, PUDROID remains remarkably stable. In a 3:1 contamination scenario, a standard Random Forest caught only 8.69% of malware, whereas PUDROID achieved a 71.51% detection rate.
  • Extreme Robustness: Even at an 8:1 contamination ratio, PUDROID maintained a detection rate over 52%, while standard models dropped to near-zero utility (2.14%).
  • Targeted Success: The system was particularly effective at identifying aggressive malware families like FakeInstaller and DroidKungFu, which are notorious for masquerading as legitimate applications.

Conclusion

PUDROID demonstrates that by relaxing the assumption of perfect negative labels, malware detection systems can become significantly more resilient to the realities of the modern threat landscape. While the "Discovery at Random" assumption used in the PU math is a simplification, it provides a powerful mechanism for cleaning training data and improving the reliability of mobile security tools. Future work will focus on evolving feature sets to counter advanced obfuscation tactics and optimizing the framework for billion-scale datasets.

Summary updated

BibTeX
@inproceedings{sun2017contaminant,
  author = {Lichao Sun and Xiaokai Wei and Jiawei Zhang and Lifang He and Philip S. Yu and Witawas Srisa-an},
  title = {{Contaminant removal for Android malware detection systems}},
  booktitle = {IEEE BigData},
  year = {2017},
  doi = {10.1109/bigdata.2017.8258029},
}
Figure