English

High-resolution Image-based Malware Classification using Multiple Instance Learning

Cryptography and Security 2023-11-22 v1 Computer Vision and Pattern Recognition Machine Learning

Abstract

This paper proposes a novel method of classifying malware into families using high-resolution greyscale images and multiple instance learning to overcome adversarial binary enlargement. Current methods of visualisation-based malware classification largely rely on lossy transformations of inputs such as resizing to handle the large, variable-sized images. Through empirical analysis and experimentation, it is shown that these approaches cause crucial information loss that can be exploited. The proposed solution divides the images into patches and uses embedding-based multiple instance learning with a convolutional neural network and an attention aggregation function for classification. The implementation is evaluated on the Microsoft Malware Classification dataset and achieves accuracies of up to 96.6%96.6\% on adversarially enlarged samples compared to the baseline of 22.8%22.8\%. The Python code is available online at https://github.com/timppeters/MIL-Malware-Images .

Keywords

Cite

@article{arxiv.2311.12760,
  title  = {High-resolution Image-based Malware Classification using Multiple Instance Learning},
  author = {Tim Peters and Hikmat Farhat},
  journal= {arXiv preprint arXiv:2311.12760},
  year   = {2023}
}

Comments

14 pages, 13 figures, 2 tables