Work

Malware Detection and Classification Using Capsule Network

Year: 2025
Type: article
Abstract: The escalating threat of sophisticated malware necessitates advanced detection techniques beyond traditional signature-based methods. While Machine Learning (ML), including Deep Learning (DL), has shown promise in analyzing malware, particularly when visualized as images, challenges remain. Traditional ML algorithms often struggle with the complexity of modern malware, and Convolutional Neural Networks (CNN) based DL approaches can be limited in capturing spatial hierarchies and demonstrating robust invariance to geometric data modifications and adversarial manipulations. This paper aims to develop and evaluate an enhanced malware detection and classification system by leveraging the novel Capsule Network architecture. The primary goal is to improve upon existing DL techniques by effectively capturing intricate spatial relationships within malware images and enhancing robustness against adversarial manipulations. This study utilizes the Malima dataset, images were preprocessed, normalized, and augmented. The proposed Capsule Network, featuring convolutional layers, a primary capsule layer, dynamic routing, and a squash function, was developed using PyTorch and trained on a GPU over 50 epochs, utilizing the Adam optimizer and MarginLoss function, with early stopping applied to prevent overfitting. The evaluation demonstrates that the model achieved a 98% accuracy. Evaluation metrices for numerous classes highlight the Capsule Network's effectiveness in capturing spatial relationships and distinguishing malware families, potentially exceeding the performance of shallower Machine Learning models and offering advantages over traditional CNNs. While promising, challenges in classifying certain classes remain.
Language: English
Subfield: Software
Open Access status: diamond
OpenAlex ID: W7125595124
FWCI:
Cites: 31
Cited by:
Related to: 10