Abstract
The growing threat of malware is becoming more and more difficult to ignore. In this paper, a malware feature images generation method is used to combine the static analysis of malicious code with the methods of recurrent neural networks (RNN) and convolutional neural networks (CNN). By using RNN, our method considers not only the malware original opcode information but also the association between the original code and the timing characteristics. Furthermore, using RNN,itreducesthetrainingdependenceoncategorylabelsofmalware. Then, we use minhash to generate feature images from the fusion of the original codes and the predictive codes from the RNN. Finally, we train a CNN to classify feature images. When we trained very few samples (the proportion of the sample size of training dataset to validation dataset was 1:30), we obtained accuracy over 92%. When we adjust the proportion to 3:1, the accuracy exceeds 99.5%. As shown in confusion matrices, our method obtains a good result, where the worst false positive rate of all the malware families is 0.0147 and the average false positive rate is 0.0058.
Funding Information
  • National Key Research and Development Program of China (2018YFB0704400, 2016YFB0700504)
  • Science and Technology Commission of Shanghai Municipality (15DZ2260301)
  • Natural Science Foundation of Shanghai Municipality (16ZR1411200)

This publication has 23 references indexed in Scilit: