IEEE Access (Jan 2022)

Malware Detection Using LightGBM With a Custom Logistic Loss Function

  • Yun Gao,
  • Hirokazu Hasegawa,
  • Yukiko Yamaguchi,
  • Hajime Shimada

DOI
https://doi.org/10.1109/ACCESS.2022.3171912
Journal volume & issue
Vol. 10
pp. 47792 – 47804

Abstract

Read online

The increased spread of malicious software (malware) through the internet remains a serious threat. Malware authors use obfuscation and deformation techniques to generate new types than can evade traditional detection methods. Hence, it is widely expected that machine learning methods can classify malware and cleanware based on the characteristics of malware samples. This paper investigates malware classification accuracy using static methods for malware detection based on LightGBM by a custom log loss function, which controls learning by installing coefficient $\alpha $ to a loss function of the false-negative side and coefficient $\beta $ to a loss function of the false-positive side. By installing coefficients, we can create a lopsided classifier. We used two malware datasets, non-public and public, to construct a malware baseline model to verify the effectiveness of the proposed method. We extracted the dataset features from PE-file surface analysis and PE-header dumps and customized a binary log loss function to improve all the classification evaluation metrics to a certain extent. We obtained a better result (AUC = 0.979) at $\alpha =430$ and $\beta =339$ than the normal log loss function (AUC = 0.978) on the EMBER dataset. In addition, to maintain malware detection coverage and quick countermeasures to true positive results, we propose a hybrid usage of different custom models to prioritize positive results.

Keywords