Work

Pre-Trained Machine Learning Models for Adversarial NVMe Ransomware Detection

Year: 2026
Type: dataset
Abstract: This repository contains pre-trained and fully evaluated machine learning models for ransomware detection based on NVMe I/O traces, developed as part of a Master's Thesis. Research Context & Motivation This work builds upon the foundational CLEAR dataset (Kaggle Repository) and the Prototypical Learning Transformer (PLT) introduced by Bringoltz et al. (2025). While the original research successfully demonstrated the efficacy of Transformers for ransomware detection, deploying such large models directly on storage controllers or Computational Storage Drives (CSDs) presents significant hardware challenges. The primary motivation of this thesis was to address these resource constraints and conduct tests against adversarial evasion. By applying Knowledge Distillation, the large PLT teacher model was successfully compressed into a highly efficient, low-latency architecture (TinyPLT), making it small enough to be deployed in edge environments with strict memory limitations, without sacrificing critical detection performance. Each model directory contains the final PyTorch/Joblib weights alongside a comprehensive archive/ folder holding training logs, loss visualizations, feature importance plots, and earlier checkpoints. 1. Prototypical Learning Transformer (trained_plt/ - Teacher) Final Model: plt_final.pt Architecture Details: embedding_dim=512, hidden_size=2048, 4 attention heads, 6 layers. CLEAR Test Evaluation: ROC-AUC: 0.9986 | Missed Detection Rate (MDR): 1.74% | Mean Bytes to Detection (MBD): 5.26 MB Description: The highly accurate, fully-parameterized Transformer model. It serves as the primary detection mechanism and acts as the teacher model for the knowledge distillation process. 2. Distilled TinyPLT (trained_tinyplt/ - Student) Final Model: tinyplt_final.pt Architecture Details: embedding_dim=256, hidden_size=1024, 4 attention heads, 3 layers. CLEAR Test Evaluation: ROC-AUC: 0.9979 | Missed Detection Rate (MDR): 3.09% | Mean Bytes to Detection (MBD): 7.75 MB Description: A compact, low-latency version of the PLT model. Through knowledge distillation, the parameter size was significantly reduced (requiring less than 30 MB of memory). This allows the entire model to be loaded into fast on-chip SRAM, making it highly suitable for high-throughput, real-time interception directly on storage devices. 3. Long Short-Term Memory (lstm/) Final Model: lstm_final.pt (CommandLevelLSTMContinuous) Architecture Details: Processes sequences up to num_tokens=500 with embedding_dim=128, hidden_size=128, 3 layers. CLEAR Test Evaluation: ROC-AUC: 0.9760 | Missed Detection Rate (MDR): 27.93% | Mean Bytes to Detection (MBD): 50.36 MB Description: A sequential deep learning baseline model, fine-tuned from a pre-trained base checkpoint for continuous command-level evaluation. 4. Baseline Random Forest (baseline_rf/) Final Model: rf_final.joblib Architecture Details: n_estimators=20, max_depth=20 CLEAR Test Evaluation: ROC-AUC: 0.9922 | Missed Detection Rate (MDR): 19.01% | Mean Bytes to Detection (MBD): 9.65 MB Description: A classic, non-sequential baseline model utilizing extracted heuristic volumetric features. Includes feature importance plots demonstrating the most crucial decision factors for traditional ML approaches. Usage Instructions: The PyTorch models (.pt) can be loaded using standard PyTorch functions (torch.load) combined with the respective model class definitions found in the linked GitHub repository. The Random Forest baseline can be imported via joblib and scikit-learn.
Language: English
Subfield: Software
Open Access status: green
OpenAlex ID: W7169809147
Cites:
Cited by:
Related to: 10