HYDRA: Proactive Android Malware Drift Adaptation via Hierarchical Graph Contrastive Learning
Han Chen, Hanchen Wang, Hongmei Chen, Lu Qin, Wenjie Zhang, Ying Zhang
Abstract
Concept drift, driven by the rapid evolution of Android malware, severely degrades the performance of machine learning detectors. Current adaptation strategies are often reactive, responding only after performance has dropped and imposing a significant manual annotation burden, or they are proactive but rely on unstable adversarial training and incomplete, single-level graph representations. To overcome these limitations, we propose HYDRA (Hybrid Drift Adaptation), a proactive adaptation framework that learns drift-invariant representations from hierarchically structured data. HYDRA first models applications using a hybrid graph structure, combining fine-grained Control Flow Graphs (CFGs) and coarse-grained Function Call Graphs (FCGs) to capture comprehensive behavioral patterns. It then introduces a novel cross-domain contrastive learning objective that aligns historical (source) and new (target) data distributions. By generating pseudo-labels for unlabeled target samples, our method pulls representations of semantically similar applications together, regardless of their domain, within a single, stable optimization process. This approach unifies feature learning and domain alignment, eliminating the need for complex adversarial objectives. Extensive experiments on large-scale, time-ordered malware datasets demonstrate that HYDRA achieves substantially lower False Negative and False Positive Rates than state-of-the-art baselines while requiring up to 87.5% fewer labeled samples. Our work thus offers a robust and efficient solution to combat concept drift in security applications.
Create a lesson
Metadata
- Categories
- cs.CR, cs.LG
- Comments
- Accepted at ACM CCS 2026. Author's version with full appendix. 17 pages
Related papers
One Space, Two Views: Aligning Static and Dynamic Android Malware Analysis with Contrastive Text Embeddings for Cross-View Forensic Linking
Shared title terminologycs.CRElMouatez Billah Karbab
Partition-Matched Evaluation of Community Features under Distribution Shift in Android Malware Function-Call Graphs
Shared title terminologycs.CRJunru Zhu, Yixin Yang, Xiaoqing Ding et al.
An Enhanced Adaptive Graph Neural Network (AGNN) for Hardware Trojan Identification
Shared title terminologycs.CRBanalata Bhunia, Malay Kule, Hafizur Rahaman
Stress-Testing Structure-Aware Calibration of Malware Graph Neural Networks under Type Shift
Shared title terminologycs.CRJunru Zhu, Yixin Yang, Xiaoqing Ding et al.
Name2Pkg: Lightweight One-Class Android Malware Screening via Name-Package Correspondence Modeling
Shared title terminologycs.CRChangyeop Sung, Yeonjae Kang, Jaeho Shin et al.
Temporal Generalization and Explanation Stability of Control Flow Graph Neural Networks for Malware Detection
Shared title terminologycs.CRMd. Asif Sajeed, Md. Nazrul Islam Mondal, Md Ashraful Hossen Akash