MLRan: A Behavioural Dataset for Ransomware Analysis and Detection
Faithful Chiagoziem Onwuegbuche, Adelodun Olaoluwa, Anca Delia Jurcut, Liliana Pasquale
TL;DR
MLRan tackles the scarcity and narrow scope of public ransomware datasets by delivering the largest open behavioural dataset (4880 samples, 64 families) with nine feature groups and balanced goodware. It introduces GUIDE-MLRan guidelines to standardise reproducible dataset construction and demonstrates a two-stage feature selection that reduces 6.4 million features to 483 without sacrificing accuracy, achieving up to 98% performance with efficient computation. SHAP and LIME analyses reveal API usage, strings, registry, and memory-related behaviours as key ransomware indicators, offering actionable interpretability. The authors provide an open-source, end-to-end pipeline (dynamic analysis via Cuckoo Sandbox, feature extraction, selection, ML training, and evaluation) to support replicability and future research in ransomware detection.
Abstract
Ransomware remains a critical threat to cybersecurity, yet publicly available datasets for training machine learning-based ransomware detection models are scarce and often have limited sample size, diversity, and reproducibility. In this paper, we introduce MLRan, a behavioural ransomware dataset, comprising over 4,800 samples across 64 ransomware families and a balanced set of goodware samples. The samples span from 2006 to 2024 and encompass the four major types of ransomware: locker, crypto, ransomware-as-a-service, and modern variants. We also propose guidelines (GUIDE-MLRan), inspired by previous work, for constructing high-quality behavioural ransomware datasets, which informed the curation of our dataset. We evaluated the ransomware detection performance of several machine learning (ML) models using MLRan. For this purpose, we performed feature selection by conducting mutual information filtering to reduce the initial 6.4 million features to 24,162, followed by recursive feature elimination, yielding 483 highly informative features. The ML models achieved an accuracy, precision and recall of up to 98.7%, 98.9%, 98.5%, respectively. Using SHAP and LIME, we identified critical indicators of malicious behaviour, including registry tampering, strings, and API misuse. The dataset and source code for feature extraction, selection, ML training, and evaluation are available publicly to support replicability and encourage future research, which can be found at https://github.com/faithfulco/mlran.
