FARM: Few-shot Adaptive Malware Family Classification under Concept Drift

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Guldemir, Numan Halit, Olukoya, Oluwafemi, Martínez-del-Rincón, Jesús
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914389752283136
author Guldemir, Numan Halit
Olukoya, Oluwafemi
Martínez-del-Rincón, Jesús
author_facet Guldemir, Numan Halit
Olukoya, Oluwafemi
Martínez-del-Rincón, Jesús
contents Malware classification models often suffer performance degradation under concept drift due to evolving threat landscapes and the emergence of novel malware families. This paper presents FARM (Few-shot Adaptive Recognition of Malware), a unified framework for detecting and adapting to both covariate drift and label drift in Windows Portable Executable (PE) malware family classification. FARM uses a triplet autoencoder to project samples into a discriminative latent space, enabling unsupervised drift detection through DBSCAN clustering and dynamic thresholding. To enable rapid adaptation, the framework employs a few-shot strategy that can incorporate new classes from only a small number of labeled samples. FARM also supports full retraining when sufficient drifted samples accumulate, allowing longer-term model updating. Experiments on the BenchMFC dataset show that FARM improves classification performance under covariate drift by 5.6%, and achieves an average F1 score of 0.85 on unseen malware families using few-shot adaptation, increasing to 0.94 after retraining. These results indicate that FARM provides an effective approach for drift-aware malware family classification in dynamic environments with limited supervision.
format Preprint
id arxiv_https___arxiv_org_abs_2601_17907
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle FARM: Few-shot Adaptive Malware Family Classification under Concept Drift
Guldemir, Numan Halit
Olukoya, Oluwafemi
Martínez-del-Rincón, Jesús
Cryptography and Security
Machine Learning
Malware classification models often suffer performance degradation under concept drift due to evolving threat landscapes and the emergence of novel malware families. This paper presents FARM (Few-shot Adaptive Recognition of Malware), a unified framework for detecting and adapting to both covariate drift and label drift in Windows Portable Executable (PE) malware family classification. FARM uses a triplet autoencoder to project samples into a discriminative latent space, enabling unsupervised drift detection through DBSCAN clustering and dynamic thresholding. To enable rapid adaptation, the framework employs a few-shot strategy that can incorporate new classes from only a small number of labeled samples. FARM also supports full retraining when sufficient drifted samples accumulate, allowing longer-term model updating. Experiments on the BenchMFC dataset show that FARM improves classification performance under covariate drift by 5.6%, and achieves an average F1 score of 0.85 on unseen malware families using few-shot adaptation, increasing to 0.94 after retraining. These results indicate that FARM provides an effective approach for drift-aware malware family classification in dynamic environments with limited supervision.
title FARM: Few-shot Adaptive Malware Family Classification under Concept Drift
topic Cryptography and Security
Machine Learning
url https://arxiv.org/abs/2601.17907