TL;DR
Researchers have introduced CLEAR, a massive, command-level annotated dataset for ransomware detection, addressing the critical lack of granular data in this field. This new dataset enables more sophisticated detection models that can outperform existing methods and opens doors for novel tasks like selective data recovery.
What Problem Does This Paper Address?
Ransomware attacks are a pervasive threat, and detecting them is a major cybersecurity challenge. A promising approach involves analyzing storage device I/O streams, as ransomware directly interacts with data storage. However, existing public datasets for this type of analysis suffer from two key limitations: they are relatively small and, crucially, they only label entire I/O streams as either ransomware or benign. This means that even a single ransomware command within a stream can cause the entire stream to be labeled as malicious, potentially mislabeling vast amounts of legitimate activity. This lack of fine-grained, command-level labeling hinders the development of more precise and effective detection models.
Methods
The paper introduces the Command LEvel Annotated Ransomware (CLEAR) dataset. The core innovation here is the per-command labeling, meaning each individual I/O command (read or write) is explicitly marked as either ransomware or benign. This granular labeling allows for the development of advanced sequential models that can learn to identify malicious patterns at a much finer level than previously possible.
The authors also propose and utilize several machine learning models:
- Aggregative Models: These models process chunks of I/O data and extract statistical features. They include Random Forest (RF), DeftPunk (a Decision Tree + XGBoost hybrid), a convolutional UNET, and a Patch Level Transformer (PLT). These serve as baselines.
- Command-Based Models: These models directly operate on the command stream and predict a label for each command. The paper focuses on two types:
- Command Level Transformer (CLT): An attention-based model that processes individual commands within a context window.
- LSTM (biLSTM and uLSTM): Recurrent neural networks, including a continuous unidirectional LSTM (uLSTM) that maintains an "infinite history" by not resetting its internal state.
The paper also details a sophisticated tokenization scheme for I/O commands, converting numerical and categorical features into a compact representation suitable for these models. Furthermore, they introduce auxiliary features (like time-lapse and overlap attributes) derived from the I/O streams, which are shown to improve model performance.
Datasets
The primary contribution is the CLEAR dataset itself. It's a massive collection of storage I/O traffic, boasting:
- 1,045 TiB of I/O traffic data.
- 137 ransomware variants (covering 49 families).
- 6,120 ransomware workloads and 6,765 benign workloads.
This dataset is significantly larger and more comprehensive than existing public datasets. The authors also propose a benchmark for evaluating robustness to unseen ransomware variants, achieved through clustering the ransomware variants and performing out-of-distribution testing.
Key Insights and Ideas
- Command-level labeling is a game-changer: The most significant insight is that labeling individual I/O commands, rather than entire streams, unlocks a new level of detection capability. This granular approach allows models to learn subtle patterns that are lost in aggregation.
- Sequential models thrive on context: The success of command-based models, particularly the continuous uLSTM, highlights the critical importance of sequential context. Models that can "remember" past commands perform significantly better than those relying solely on individual command features.
- Auxiliary features provide a boost: The inclusion of derived features like time-lapses and overlap calculations demonstrably improves model performance, suggesting that richer feature engineering can enhance detection.
- Robustness to new variants is crucial: The benchmark for unseen ransomware demonstrates that while models degrade on novel threats, sequential models show better generalization than traditional aggregative approaches.
Key Results
- Outperformance: Command-based models (CLT, biLSTM, uLSTM) significantly outperform state-of-the-art aggregative models, achieving up to 82% improvement in data loss prevention (measured by MDR).
- Best Performer: The continuous uLSTM model consistently achieved the best results across metrics like MDR, MBD3 (Megabytes to Detection), and AUC (Area Under the Curve), showcasing the power of its "infinite history" approach.
- Feature Importance: Feature ablation studies confirmed that the auxiliary features contribute positively to model performance.
- Unseen Ransomware Performance: All models showed some degradation when faced with unseen ransomware variants, but sequential models generally maintained better performance.
Limitations and Future Work
- Absence of Traffic-Based Features: The current dataset lacks network traffic features (like entropy), which could further enrich detection capabilities. The authors are working on expanding the dataset to include these.
- Windows-Centric: The dataset is currently limited to Windows OS. Future work will involve expanding to include Linux-based ransomware.
- Controlled Environment: Data was collected in an emulated, controlled environment, not "in the wild." While necessary for safety and data collection, this might not perfectly reflect real-world complexities.
- Future Tasks: The per-command labeling opens possibilities for new tasks, such as selective data recovery by reverting only ransomware-induced changes while preserving benign operations.
Summary updated