A Robust Evaluation Framework for PE-Based Malware Detection Using Unsupervised Machine Learning
Osama AlhodairyPhD Researcher, Department of Telecommunications, National School of Electronics and Telecommunications (ENET'Com), University of Sfax, Sfax, Tunisia. osama.alhodairy@enetcom.u-sfax.tn0009-0006-7375-4497
Tarek AbbesAssociate Professor, Department of Telecommunications, National School of Electronics and Telecommunications (ENET'Com), University of Sfax, Sfax, Tunisia. tarek.abbes@enetcom.usf.tn0000-0002-2034-1115
Detection of malicious software based on features from Portable Executable (PE) files is not an easy task especially since there are always new types of malware that have insufficient labeled samples for training. Signature-based detection, as well as supervised learning techniques, may have problems with finding unknown malware since they rely on defined patterns and labeled samples. In this study is to test the performance, efficiency, and consistency of six unsupervised machine learning algorithms in general PE-based malware detection. The test of following six unsupervised algorithms: Isolation Forest, One-Class Support Vector Machine, Local Outlier Factor, K-Means, DBSCAN, and Agglomerative Clustering, based on 54 static features of PE files from 138,047 samples from MalwareData dataset. The dataset includes generic malwares and benign executables without any ransomware-related labels and insider information. Evaluation has been carried out through internal cluster measures, ground truth testing, computational efficiency, stability, and robustness testing. DBSCAN had a highest Silhouette coefficient of 0.777 and F1-score of 0.942 showing better clustering and classification performance. Isolation Forest and One-Class SVM returned Silhouette coefficients above 0.5 but incorrectly placed benign executables as being more anomalous due to malware constituting 70.1% of the dataset. K-Means and Agglomerative Clustering were not good at distinguishing between classes. Training of the anomaly detectors only on benign examples increased ROC-AUC of Isolation Forest and Local Outlier Factor to 0.80-0.87. This indicates that internal cluster measures are not sufficient to evaluate the performance of malware detectors. The integration of ground-truth validation, robustness test, and proper training distributions makes the test framework more reliable in the evaluation of PE-based malware detection, while the development of ransomware detection and insider threat detection calls for more validation through specialized datasets.