Learning Temporal Invariance in Android Malware Detectors

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Zheng, Xinran, Yang, Shuo, Ngai, Edith C. H., Jana, Suman, Cavallaro, Lorenzo
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912589935542272
author Zheng, Xinran
Yang, Shuo
Ngai, Edith C. H.
Jana, Suman
Cavallaro, Lorenzo
author_facet Zheng, Xinran
Yang, Shuo
Ngai, Edith C. H.
Jana, Suman
Cavallaro, Lorenzo
contents Learning-based Android malware detectors degrade over time due to natural distribution drift caused by malware variants and new families. This paper systematically investigates the challenges classifiers trained with empirical risk minimization (ERM) face against such distribution shifts and attributes their shortcomings to their inability to learn stable discriminative features. Invariant learning theory offers a promising solution by encouraging models to generate stable representations crossing environments that expose the instability of the training set. However, the lack of prior environment labels, the diversity of drift factors, and low-quality representations caused by diverse families make this task challenging. To address these issues, we propose TIF, the first temporal invariant training framework for malware detection, which aims to enhance the ability of detectors to learn stable representations across time. TIF organizes environments based on application observation dates to reveal temporal drift, integrating specialized multi-proxy contrastive learning and invariant gradient alignment to generate and align environments with high-quality, stable representations. TIF can be seamlessly integrated into any learning-based detector. Experiments on a decade-long dataset show that TIF excels, particularly in early deployment stages, addressing real-world needs and outperforming state-of-the-art methods.
format Preprint
id arxiv_https___arxiv_org_abs_2502_05098
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Learning Temporal Invariance in Android Malware Detectors
Zheng, Xinran
Yang, Shuo
Ngai, Edith C. H.
Jana, Suman
Cavallaro, Lorenzo
Cryptography and Security
Artificial Intelligence
Learning-based Android malware detectors degrade over time due to natural distribution drift caused by malware variants and new families. This paper systematically investigates the challenges classifiers trained with empirical risk minimization (ERM) face against such distribution shifts and attributes their shortcomings to their inability to learn stable discriminative features. Invariant learning theory offers a promising solution by encouraging models to generate stable representations crossing environments that expose the instability of the training set. However, the lack of prior environment labels, the diversity of drift factors, and low-quality representations caused by diverse families make this task challenging. To address these issues, we propose TIF, the first temporal invariant training framework for malware detection, which aims to enhance the ability of detectors to learn stable representations across time. TIF organizes environments based on application observation dates to reveal temporal drift, integrating specialized multi-proxy contrastive learning and invariant gradient alignment to generate and align environments with high-quality, stable representations. TIF can be seamlessly integrated into any learning-based detector. Experiments on a decade-long dataset show that TIF excels, particularly in early deployment stages, addressing real-world needs and outperforming state-of-the-art methods.
title Learning Temporal Invariance in Android Malware Detectors
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2502.05098