Skip to main content
QUICK REVIEW

[Paper Review] Fast & Furious: Modelling Malware Detection as Evolving Data Streams

Fabrício Ceschin, Marcus Botacin|arXiv (Cornell University)|May 24, 2022
Advanced Malware Detection TechniquesComputer Science1 citations
TL;DR

This paper proposes a novel data stream learning pipeline for Android malware detection that jointly adapts both the classifier and feature extractor in response to concept and feature drift. By training on 415K Android apps (2009–2018) from DREBIN and AndroZoo using Word2Vec and TF-IDF features, it demonstrates that updating both components at drift points improves F1-score by 22.05 points (DREBIN) and 8.77 points (AndroZoo), outperforming static models and isolated classifier updates.

ABSTRACT

Malware is a major threat to computer systems and imposes many challenges to cyber security. Targeted threats, such as ransomware, cause millions of dollars in losses every year. The constant increase of malware infections has been motivating popular antiviruses (AVs) to develop dedicated detection strategies, which include meticulously crafted machine learning (ML) pipelines. However, malware developers unceasingly change their samples' features to bypass detection. This constant evolution of malware samples causes changes to the data distribution (i.e., concept drifts) that directly affect ML model detection rates, something not considered in the majority of the literature work. In this work, we evaluate the impact of concept drift on malware classifiers for two Android datasets: DREBIN (about 130K apps) and a subset of AndroZoo (about 285K apps). We used these datasets to train an Adaptive Random Forest (ARF) classifier, as well as a Stochastic Gradient Descent (SGD) classifier. We also ordered all datasets samples using their VirusTotal submission timestamp and then extracted features from their textual attributes using two algorithms (Word2Vec and TF-IDF). Then, we conducted experiments comparing both feature extractors, classifiers, as well as four drift detectors (DDM, EDDM, ADWIN, and KSWIN) to determine the best approach for real environments. Finally, we compare some possible approaches to mitigate concept drift and propose a novel data stream pipeline that updates both the classifier and the feature extractor. To do so, we conducted a longitudinal evaluation by (i) classifying malware samples collected over nine years (2009-2018), (ii) reviewing concept drift detection algorithms to attest its pervasiveness, (iii) comparing distinct ML approaches to mitigate the issue, and (iv) proposing an ML data stream pipeline that outperformed literature approaches.

Motivation & Objective

  • To investigate whether concept drift is a generalized phenomenon across Android malware datasets, not limited to isolated cases.
  • To evaluate the necessity of updating the feature extractor alongside the classifier when concept drift occurs.
  • To determine the optimal combination of feature extraction, classification, and drift detection techniques for long-term malware detection.
  • To propose and validate a real-time, adaptive malware detection pipeline that mitigates performance degradation due to evolving malware.

Proposed method

  • The authors collect and order 415K Android apps from DREBIN and AndroZoo by VirusTotal submission timestamp to simulate a real-world data stream.
  • Textual attributes (e.g., permissions, API calls) are extracted using two feature representation methods: TF-IDF and Word2Vec.
  • Two classifiers—Adaptive Random Forest (ARF) and Stochastic Gradient Descent (SGD)—are trained and updated in response to detected drifts.
  • Four drift detectors (DDM, EDDM, ADWIN, KSWIN) are evaluated to identify concept drift in the evolving data stream.
  • The proposed pipeline dynamically updates both the classifier and the feature extractor upon drift detection, ensuring representation and prediction adaptability.
  • The system is implemented as an extension to scikit-multiflow, enabling reproducibility and extensibility for future research.

Experimental results

Research questions

  • RQ1Is concept drift a generalized phenomenon across diverse Android malware datasets, or limited to specific data distributions?
  • RQ2Is it necessary to update the feature extractor in addition to the classifier to maintain high detection accuracy over time?
  • RQ3Which combination of feature extractor, classifier, and drift detector yields the best long-term performance in malware detection?
  • RQ4How does the timing of model updates (drift-triggered vs. fixed window) affect detection performance?
  • RQ5To what extent is malware evolution correlated with changes in the Android ecosystem?

Key findings

  • Resetting the classifier only after detecting concept drift leads to better performance than periodic resets based on fixed time windows.
  • Updating both the classifier and the feature extractor at drift points yields the highest detection performance, improving F1-score by 22.05 percentage points on the DREBIN dataset.
  • The improvement from joint adaptation is also significant on the larger AndroZoo dataset, with a 8.77 percentage point increase in F1-score.
  • The KSWIN drift detector outperformed DDM, EDDM, and ADWIN in detecting concept drift across both datasets.
  • The study confirms that malware evolution induces both concept drift and feature drift, with new API calls, permissions, and vocabulary emerging over time.
  • The proposed pipeline is available as an extension to scikit-multiflow, enabling community adoption and further research on adaptive malware detection.

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.