Evaluating Out-of-Distribution Robustness in Graph-Based Android Malware Classification: A New Principled Benchmark
cs.CR, cs.LG
Submitted: 2025-08-08
Updated: 2026-09-16
Comments: Accepted at IEEE DSAA 2026
Code: https://github.com/fmind/euphony
License: http://creativecommons.org/licenses/by/4.0/
The gist: While graph-based Android malware classifiers report strong benchmark accuracy of over 94%, their performance sharply decreases up to 45% when exposed to previously unseen variants of known malware
Terminology
Abstract
While graph-based Android malware classifiers report strong benchmark accuracy of over 94%, their performance sharply decreases up to 45% when exposed to previously unseen variants of known malware families. In this work, we systematically investigate this critical yet overlooked challenge for real-world deployment by introducing a benchmarking suite designed to simulate two prevalent scenarios: MalNet-Tiny-Common for covariate shift, and MalNet-Tiny-Distinct for domain shift. We further identify an inherent limitation of existing benchmarks where input representation is limited to structure-only function call graphs, discarding the semantic signals needed for robust cross-distribution reasoning. To verify this, we propose a semantic enrichment framework that extends raw graph topology with function-level attributes, combining lightweight metadata with LLM-based code embeddings. Empirical evaluations confirm the effectiveness of our data-centric methodology, with which classification performs better under distribution shift compared to model-based approaches, and consistently further enhances robustness when used in conjunction. We release our precomputed datasets alongside an extensible pipeline implementation, laying the groundwork for more resilient malware detection systems in evolving threat environments.
Sources
- EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
- Matcha: Mitigating Graph Structure Shifts with Test-Time Adaptation
- A simple yet effective baseline for non-attributed graph classification
- GraphTTA: Test Time Adaptation on Graph Neural Networks
- A Simple Framework for Contrastive Learning of Visual Representations
- Universal Prompt Tuning for Graph Neural Networks
- A Large-Scale Database for Graph Representation Learning
- MalNet: A Large-Scale Image Database of Malicious Software
- Edge Prompt Tuning for Graph Neural Networks
- G-Adapter: Towards Structure-Aware Parameter-Efficient Transfer Learning for Graph Transformer Networks
- UniXcoder: Unified Cross-Modal Pre-training for Code Representation
- Inductive Representation Learning on Large Graphs
- Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Survey
- LAMDA: A Longitudinal Android Malware Benchmark for Concept Drift Analysis
- SOREL-20M: A Large Scale Benchmark Dataset for Malicious PE Detection
- Structural Alignment Improves Graph Test-Time Adaptation
- Open Graph Benchmark: Datasets for Machine Learning on Graphs
- MOTIF: A Large Malware Reference Dataset with Ground Truth Family Labels
- GraphPatcher: Mitigating Degree Bias for Graph Neural Networks via Test-time Augmentation
- Semi-Supervised Classification with Graph Convolutional Networks
Related papers
- SoK: AI-Augmented Binary Reversing
- Relaxed Sender Anonymity for CBDC Interbank Settlement: A Zero-Knowledge Approach on Permissioned EVM
- Calibration-Family Overfit: Why Trusted Sabotage Monitors Don't Transfer Across Lineages
- Efficient Fuzzy PSI under One-Sided Assumptions
- Sealing the Audit-Runtime Gap for LLM Skills
- Token Composition: A Graph Based on EVM Logs