arXiv:2610.01949cs.CROct 2026

Manuscript Offprint

arXiv:2610.01949

A Hybrid Approach to Malware Detection: Integrating Few-Shot Model-Agnostic Meta-Learning with Autoencoders

Emmanuela Andam, Yasir Abbas Zaidi, Abdelali Hadir, Emmanuel Grant, Naima Kaabouch

Emmanuela Andam 1,2^{1,2}, Yasir Abbas Zaidi 1,2^{1,2}, Abdelali Hadir 3^{3}, Emmanuel Grant 2^{2}, and Naima Kaabouch 1,2^{1,2}

1^{1}Artificial Intelligence Research (AIR) Center, University of North Dakota, Grand Forks, ND, USA

2^{2}School of Electrical Engineering and Computer Science, University of North Dakota, Grand Forks, ND, USA

3^{3}National School of Commerce and Management, Hassan II University, Casablanca, Morocco

© 2025 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

Abstract—Ransomware has emerged as a major cybersecurity threat, with incidents increasing in frequency and impact across critical sectors. These attacks are typically launched through phishing emails, malicious downloads, or exploitation of software vulnerabilities to gain system access. Once inside, the malware encrypts files and demands a ransom, often in cryptocurrency, for the decryption key. Conventional detection methods often struggle with novel or scarce samples, leaving systems vulnerable. To address these challenges, this paper proposes a hybrid deep learning framework that combines an Autoencoder Feature Extractor (AFE) with a Model Agnostic Meta Learning (MAML) classifier for few shot malware detection. The AFE generates compact latent features that reduce noise and dimensionality, while the MAML classifier rapidly adapts to new threats using limited labeled data. Experiments conducted on the Ransomware Dataset 2024 demonstrate the effectiveness of the framework in binary classification tasks. Across one to fifty shot settings, the proposed model consistently achieves high accuracy, F1 score, and Matthews Correlation Coefficient values, maintaining reliable classification even under extreme scarcity. These results highlight the model's robustness and effectiveness in adapting to limited data scenarios, demonstrating the potential of combining feature extraction with meta learning to enhance resilience against malware, particularly in sectors such as healthcare, manufacturing, and public infrastructure, where cyberattacks can cause significant operational and financial disruption.

Index Terms—malware detection, model-agnostic meta-learning (MAML), autoencoder, few-shot learning, feature extraction.

I. INTRODUCTION

The proliferation of connected devices in the Internet of Things (IoT) era has fundamentally reshaped interactions between individuals and digital systems. However, this rapid expansion has also intensified the risk of cyberattacks, with malware representing one of the most prevalent threats. Malware, or malicious software, encompasses any program intentionally developed to disrupt, damage, or exploit computer systems and networks. Numerous documented incidents underscore the significant risks and consequences associated with such attacks. For instance, the May 2024 Ascension Health ransomware attack, initiated by a successful phishing attack where an employee downloaded a malicious file, shut down electronic health record systems across multiple states, costing the health system approximately 13billionandcontributingtoa13 billion and contributing to a1.8 billion operating loss for fiscal year 2024 [1]. Likewise, in January 2025, the LOSTKEYS malware campaign targeted NGOs and institutions in developed nations using a phishing lure disguised as a CAPTCHA page, enabling credential theft and the exfiltration of sensitive documents [2]. These cases demonstrate the escalating costs and complexity of cyberattacks, reinforcing the need for robust and adaptive malware detection systems.

The escalating financial toll of cybercrime is reflected in the sharp rise in reported losses, which increased from 4.1billionin2020tomorethan4.1 billion in 2020 to more than16.6 billion in 2024, a 33% increase over the previous year. This financial burden is accompanied by a growing number of incidents targeting critical infrastructure [3]. Fig. 1 presents the number of reported ransomware attacks and data breaches across critical infrastructure sectors in 2024 [3]. The Healthcare and Public Health sector recorded the highest number of reported cyber incidents in 2024, including 238 ransomware attacks and 206 data breaches, while the Critical Manufacturing sector reported the greatest number of ransomware cases, totaling 258 [3].

Numerous techniques have been proposed to detect malware attacks. Traditional methods like signature-based and heuristic approaches struggle to keep pace with malware detection [4]. Signature-based techniques rely on predefined patterns of known malware stored in databases [5]. Although effective against known threats, they are unable to detect newly modified or unseen malware variants [6], [7]. Heuristic methods, which analyze code characteristics and execution patterns [8], often produce high false positives in malware detection. Machine learning (ML) models such as Decision Trees (DT) and Support Vector Machines (SVM) are effective in improving the accuracy of detection while reducing false positives [8]. Though these techniques are effective, they are not efficient in detecting new malware attacks and require retraining on massive datasets.

One promising approach to handle these shortcomings is the combination of meta-learning and autoencoders. This hybrid approach combines the strengths of both techniques to adaptability, generalization, and anomaly detection. Meta-

Figure

Fig. 1. Reported Cyber Threats to Critical Infrastructure by Type and Sector, based on data from the FBI's 2024 Internet Crime Report

learning (learning to learn) creates an environment where a model quickly adapts to new tasks by using prior knowledge, so it can detect new, unseen malware variants [9]. An autoencoder is an unsupervised neural network designed to learn compact representations of input data. It excels at modeling normal network behavior and flagging deviations indicating malicious activity. In this paper, we propose the integration of both architectures, Autoencoder Feature Extractor (AFE) with a Model-Agnostic Meta-Learning (MAML) classifier. This hybrid architecture employs the unsupervised feature learning capability of the autoencoder to create a compact, low-dimensional representation of the data. This compact representation is then used by the MAML classifier, which is optimized to quickly adapt to new few-shot tasks, enabling it to adapt dynamically to evolving malware patterns with minimal training data, thereby addressing the limitations of conventional ML-based models.

The remaining of this paper is structured as follows: Section II describes the methodology employed in this study, including the dataset and its preprocessing, model framework, and evaluation metrics used to compare the performance of the proposed model with that of others. Section III describes the findings, their significance, and limitations. Section IV concludes the study and discusses broader implications.

References (25)