McNdroid: A Longitudinal Multimodal Benchmark for Robust Drift Detection in Android Malware

Md Mahmuduzzaman Kamol, Jesus Lopez, Saeefa Rubaiyet Nowmi, Emilia Rivas, Md Ahsanul Haque, Edward Raff, Aritran Piplai, Mohammad Saidur RahmanarXiv 2026

TL;DR

McNdroid is a massive new longitudinal, multimodal benchmark containing over 850,000 Android apps spanning 12 years (2013–2025) designed to study how machine learning models degrade due to concept drift. By aligning static, dynamic, and graph-based features for every single application, it reveals that long-term temporal drift not only degrades individual model accuracy but also breaks down the consensus between different feature modalities. The benchmark demonstrates that multimodal fusion provides vital robustness against this temporal degradation, offering a realistic testbed for building sustainable security models.

What Problem Does This Paper Address?

Machine learning models excel at detecting Android malware in static, independent and identically distributed (IID) settings. However, the real world is non-stationary: both benign applications and malware continuously evolve due to operating system updates, new APIs, and changing attacker strategies. This causes "model aging" or concept drift, where a detector trained on historical data rapidly loses its efficacy when deployed.

To build robust, long-lasting detectors, researchers need to understand how different views of an application (e.g., its code structure vs. its runtime behavior) change over time. Existing benchmarks fall short: they are either single-modality (mostly static features), lack a long-term chronological timeline, or fail to align multiple modalities for the exact same set of samples. Without aligned multimodal data over a long time horizon, it is impossible to diagnose whether model degradation stems from static code changes, evolving execution behaviors, or structural shifts.

Methods

The authors establish a rigorous data pipeline to curate the benchmark, extracting three distinct, aligned feature modalities for every application:

  1. Static Features: Binary bag-of-features representing permissions, intents, network addresses, and restricted API calls extracted from the app's manifest and bytecode.
  2. Dynamic Features: Runtime behavioral signals (network activity, file operations, process execution) derived from structured sandbox execution reports, processed using feature hashing to handle high-cardinality fields.
  3. Graph-based Features: Structural statistics and sensitive interaction ratios extracted from Function-Call Graphs (FCGs), filtered to focus on developer-defined functions and security-critical APIs.

To evaluate temporal degradation, they train standard ML models (Linear SVM, LightGBM, XGBoost) and deep learning architectures (MLP, DetectBERT, Transformers) on data from 2013 and test them across three temporal regimes: IID (2014), NEAR (2016–2017), and FAR (2018–2025). They evaluate three canonical multimodal fusion strategies to combine these views: early fusion (feature concatenation), late fusion (decision-level ensemble), and cross-attention fusion (transformer-based feature interaction).

To analyze drift comprehensively, they employ feature-wise two-sample Kolmogorov-Smirnov (KS) tests, Jeffreys divergence for class-specific stability, and Fleiss' Kappa to measure cross-modal prediction consensus over time.

Datasets

The paper introduces McNdroid, a large-scale longitudinal multimodal benchmark.

  • Scale: 858,859 total samples (strictly aligned across all three modalities) containing 1,354 distinct malware families.
  • Temporal Span: 12 years (2013 to 2025, excluding 2015 due to sparse data in the source repository).
  • Curation: Sourced from AndroZoo, with weak labels derived from VirusTotal (0 detections = benign, $\ge 4$ detections = malware; ambiguous 1-3 scores discarded) and family labels normalized via AVClass2.

McNdroid bridges a major gap compared to prior benchmarks like DREBIN, TESSERACT, or LAMDA by providing complete, sample-aligned multimodal data over more than a decade.

Figure 1: Overview of the McNdroid dataset creation process.

Key Insights and Ideas

  • Graph Features Drift the Fastest: Structural and graph-based features exhibit the highest distributional divergence over time. This is driven by rapid shifts in Android APIs, framework updates, and third-party libraries that fundamentally alter function-call structures.
  • Benign Software Drifts More Than Malware: Surprisingly, benign application structures show a sharper increase in divergence over time than malware. This highlights that model aging isn't just about attackers changing their tactics; it's heavily driven by the natural evolution of legitimate software development practices.
  • The Breakdown of Cross-Modal Consensus: In the initial years, models trained on different modalities strongly agree on their predictions. However, over time, cross-modal agreement plummets and even becomes negative. Dynamic features emerge as the primary source of disagreement, indicating that an app's code structure and its runtime behavior drift along entirely different trajectories.
  • Multimodal Fusion is a Shield Against Drift: While all models suffer from temporal degradation, fusing multiple modalities consistently outperforms the best single modality over long-term gaps, proving that static, dynamic, and graph views provide complementary, non-redundant signals.
Temporal distribution shift across static, graph-based, and dynamic features measured by the mean feature-wise KS statistic.

Key Results

  • Severe Performance Degradation: Models trained on 2013 data perform exceptionally well on the 2014 IID split (F1 scores > 90%), but experience catastrophic drops on the FAR (2018–2025) split, with some unimodal F1 scores plummeting to the 10–30% range.
  • Fusion Outperforms Unimodal: For the long-term FAR split, a LightGBM model using multimodal fusion achieves an F1 score of 47.9%, compared to just 35.7% for the best unimodal static baseline. Similarly, a fused Transformer model reaches 43.4% F1 compared to 29.4% for its dynamic counterpart.
  • Concept Drift Adaptation (CDA) Limits: Evaluating state-of-the-art active-learning adaptation methods reveals that while monthly retraining budgets help mitigate NEAR drift, they still degrade significantly under long-term FAR drift, with some methods completely collapsing on graph features (dropping to 6.31% F1).

Limitations and Future Work

  • Intersection Filtering Bias: To guarantee strict sample-level alignment, the dataset only includes applications that successfully passed all three extraction pipelines. This strict filtering reduced the initial pool from 1.5M apps to ~859k, potentially introducing a selection bias.
  • Label Noise: Labeling relies on VirusTotal and AVClass2, which, despite conservative filtering thresholds, can still introduce weak-label noise.
  • Sampling Strategy: McNdroid uses a more balanced sampling strategy to preserve malware family diversity, meaning it may underrepresent the highly benign-heavy class imbalances found in real-world deployment environments.

Future Directions: The authors suggest incorporating semantic API similarity into graph representations to combat framework-level evolution and developing modality-aware concept drift adaptation methods that can explicitly handle shifting cross-modal relationships.

Summary updated

BibTeX
@misc{kamol2026mcndroid,
  author = {Md Mahmuduzzaman Kamol and Jesus Lopez and Saeefa Rubaiyet Nowmi and Emilia Rivas and Md Ahsanul Haque and Edward Raff and Aritran Piplai and Mohammad Saidur Rahman},
  title = {{McNdroid: A Longitudinal Multimodal Benchmark for Robust Drift Detection in Android Malware}},
  year = {2026},
  eprint = {2605.06894},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.06894},
}
Figure