Explainable Ransomware Detection through Static Analysis and Machine Learning
Cybersecurity has recently become crucial in daily life routines due to several attacks performed by malicious users. Over the years, researchers and experts have proposed several solutions leveraging artificial intelligence to curb these problems. This research proposes a malware detector able to classify malware, ransomware, and trusted Windows executable files leveraging machine learning. As the first step, we created a dataset of approximately $\mathbf{1 5, 0 0 0}$ Portable Executable files from which we extracted opcodes and computed feature vectors like the frequency and the distribution of each opcode for each file taken under analysis. Once we concluded the dataset creation phase, multiple classifiers were trained and evaluated, with the Gradient Boosting achieving the highest accuracy of $\mathbf{0. 8 7 0}$. To ensure robustness, we performed 5-fold cross-validation. Moreover, we identified the best two models and applied explainability using Local Interpretable Model-Agnostic Explanations to understand better which features were most relevant for a specific classification. In conclusion, we also analyzed the most frequently used opcode classes to aid in their classification.
Authors
- Antonella Santone (ORCID: https://orcid.org/0000-0002-2634-4456)
- Giovanni Ciaramella (ORCID: https://orcid.org/0009-0002-9512-0621)
- Francesco Mercaldo (ORCID: https://orcid.org/0000-0002-9425-1657)
- Fabio Martinelli (ORCID: https://orcid.org/0000-0002-6721-9395)
Institutions
- IMT School for Advanced Studies Lucca (IT)
- University of Molise (IT)
- Institute for High Performance Computing and Networking (IT)
- National Research Council (IT)
Publication Details
- Published
- 2025-08-04
- DOI
- https://doi.org/10.1109/csr64739.2025.11130044
- Primary Topic
- Advanced Malware Detection Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Ministry of Health
- HORIZON EUROPE Health