Malware Classification Using Static Disassembly and Machine Learning

Zhenshuo Chen, Eoin Brophy, Tomas Ward
12/10/2021
9 citations
cs.CRcs.LG

Official code: czs108/Microsoft-Malware-Classification (32 stars, Jupyter Notebook, MIT, last commit 2024-02-13).

Abstract

Network and system security are incredibly critical issues now. Due to the rapid proliferation of malware, traditional analysis methods struggle with enormous samples.

Show full abstract

In this paper, we propose four easy-to-extract and small-scale features, including sizes and permissions of Windows PE sections, content complexity, and import libraries, to classify malware families, and use automatic machine learning to search for the best model and hyper-parameters for each feature and their combinations. Compared with detailed behavior-related features like API sequences, proposed features provide macroscopic information about malware. The analysis is based on static disassembly scripts and hexadecimal machine code. Unlike dynamic behavior analysis, static analysis is resource-efficient and offers complete code coverage, but is vulnerable to code obfuscation and encryption. The results demonstrate that features which work well in dynamic analysis are not necessarily effective when applied to static analysis. For instance, API 4-grams only achieve 57.96% accuracy and involve a relatively high dimensional feature set (5000 dimensions). In contrast, the novel proposed features together with a classical machine learning algorithm (Random Forest) presents very good accuracy at 99.40% and the feature vector is of much smaller dimension (40 dimensions). We demonstrate the effectiveness of this approach through integration in IDA Pro, which also facilitates the collection of new training samples and subsequent model retraining.

View on arXivView PDF

Code Implementations(1)

MIT

🔍 "2015 Microsoft Malware Classification Challenge" - Using machine learning to classify malware into different families based on Windows PE structures, disassembly scripts and machine code(“2015微软恶意软件分类挑战赛” - 使用机器学习基于Windows PE结构、反汇编和机器代码对恶意软件进行分类)

328Jupyter Notebook, TeXJul 17, 20212 years agoMIT
cybersecuritykaggle-competitionmachine-learningmalwaremalware-analysis+3 more

Similar Papers

Cite this paper

@article{chen2021malware,
  title  = {Malware Classification Using Static Disassembly and Machine Learning},
  author = {Zhenshuo Chen and Eoin Brophy and Tomas Ward},
  year   = {2021},
  eprint = {2201.07649},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.07649}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2201.07649.svg)](https://codeofpaper.com/paper/2201.07649)

Discussion