Skip to main content
QUICK REVIEW

[Paper Review] Leveraging Machine Learning for Ransomware Detection

Nanda Rani, Sunita Dhavale|arXiv (Cornell University)|Jun 4, 2022
Advanced Malware Detection TechniquesComputer Science9 citations
TL;DR

This paper proposes a machine learning-based ransomware detection system using behavioral analysis of executable files, leveraging features extracted from Cuckoo Sandbox for static and dynamic analysis. The XGBoost and Logistic Regression models achieved 98.21% accuracy, with XGBoost showing 99% recall, demonstrating strong performance in identifying ransomware behavior in zero-day scenarios.

ABSTRACT

The current pandemic situation has increased cyber-attacks drastically worldwide. The attackers are using malware like trojans, spyware, rootkits, worms, ransomware heavily. Ransomware is the most notorious malware, yet we did not have any defensive mechanism to prevent or detect a zero-day attack. Most defensive products in the industry rely on either signature-based mechanisms or traffic-based anomalies detection. Therefore, researchers are adopting machine learning and deep learning to develop a behaviour-based mechanism for detecting malware. Though we have some hybrid mechanisms that perform static and dynamic analysis of executable for detection, we have not any full proof detection proof of concept, which can be used to develop a full proof product specific to ransomware. In this work, we have developed a proof of concept for ransomware detection using machine learning models. We have done detailed analysis and compared efficiency between several machine learning models like decision tree, random forest, KNN, SVM, XGBoost and Logistic Regression. We obtained 98.21% accuracy and evaluated various metrics like precision, recall, TP, TN, FP, and FN.

Motivation & Objective

  • To develop a behavior-based, machine learning-driven detection system for ransomware that overcomes limitations of signature- and traffic-based methods.
  • To evaluate and compare multiple supervised learning models for ransomware detection using real executable behavior data.
  • To create a proof-of-concept system that can be integrated into enterprise security frameworks like EDR and SIEM for real-time threat detection.
  • To address the challenge of detecting zero-day ransomware by analyzing system-level behaviors such as file operations, registry changes, and process activities.
  • To enable scalable deployment by integrating the model with open-source logging and visualization stacks like ELK (Elasticsearch, Logstash, Kibana).

Proposed method

  • Collected ransomware and benign (goodware) executable samples for training and testing.
  • Executed all samples in Cuckoo Sandbox to capture detailed system-level behaviors, including file operations, registry modifications, and network activity.
  • Extracted 122 behavioral features from sandbox logs, such as number of file writes, registry key creations, and process spawns.
  • Trained and evaluated six machine learning models: Decision Tree, Random Forest, K-Nearest Neighbors, SVM, XGBoost, and Logistic Regression.
  • Used standard evaluation metrics including accuracy, precision, recall, and confusion matrix components (TP, TN, FP, FN) to compare model performance.
  • Proposed integration of the trained model with EDR and SIEM systems, and demonstrated feasibility using the ELK stack for log ingestion, storage, and visualization.

Experimental results

Research questions

  • RQ1Which machine learning model achieves the highest detection accuracy for ransomware based on behavioral features extracted from sandbox execution?
  • RQ2How do different models perform in terms of precision and recall when distinguishing between ransomware and benign executables?
  • RQ3Can a behavior-based ML model effectively detect zero-day ransomware variants without relying on known signatures or network anomalies?
  • RQ4What is the impact of feature engineering from sandbox logs on model generalization and detection robustness?
  • RQ5How can the trained ML model be integrated into existing enterprise security infrastructure such as EDR, SIEM, or ELK for real-time monitoring?

Key findings

  • XGBoost and Logistic Regression models achieved the highest accuracy of 98.21%, outperforming other models in both detection and generalization.
  • XGBoost achieved 99% recall, indicating it correctly identified 99% of actual ransomware samples, with only 2 false negatives out of 188 true positives.
  • The model achieved 96% precision with XGBoost, meaning 96% of predictions labeled as ransomware were correct, minimizing false positives.
  • SVM and Random Forest showed strong performance with 96.42% and 96.02% accuracy, respectively, but were outperformed by XGBoost and Logistic Regression.
  • The confusion matrix revealed that XGBoost had the best balance with 188 true positives, 306 true negatives, 7 false positives, and only 2 false negatives.
  • The study demonstrates that behavior-based ML detection using sandboxed execution logs is a viable and effective approach for identifying ransomware, even in zero-day scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.