[Paper Review] Automated Ransomware Behavior Analysis: Pattern Extraction and Early Detection
This paper presents an automated tool for ransomware behavior analysis that uses TF-IDF, Fisher’s LDA, and Extra Trees (ET) machine learning models to extract discriminating features from system logs, enabling early detection and forensic visualization. ET proved most robust and efficient, while TF-IDF best identified key malware patterns across varying normal log volumes.
Security operation centers (SOCs) typically use a variety of tools to collect large volumes of host logs for detection and forensic of intrusions. Our experience, supported by recent user studies on SOC operators, indicates that operators spend ample time (e.g., hundreds of man-hours) on investigations into logs seeking adversarial actions. Similarly, reconfiguration of tools to adapt detectors for future similar attacks is commonplace upon gaining novel insights (e.g., through internal investigation or shared indicators). This paper presents an automated malware pattern-extraction and early detection tool, testing three machine learning approaches: TF-IDF (term frequency-inverse document frequency), Fisher's LDA (linear discriminant analysis) and ET (extra trees/extremely randomized trees) that can (1) analyze freshly discovered malware samples in sandboxes and generate dynamic analysis reports (host logs); (2) automatically extract the sequence of events induced by malware given a large volume of ambient (un-attacked) host logs, and the relatively few logs from hosts that are infected with potentially polymorphic malware; (3) rank the most discriminating features (unique patterns) of malware and from the learned behavior detect malicious activity; and (4) allows operators to visualize the discriminating features and their correlations to facilitate malware forensic efforts. To validate the accuracy and efficiency of our tool, we design three experiments and test seven ransomware attacks (i.e., WannaCry, DBGer, Cerber, Defray, GandCrab, Locky, and nRansom). The experimental results show that TF-IDF is the best of the three methods to identify discriminating features, and ET is the most time-efficient and robust approach.
Motivation & Objective
- Address the growing threat of ransomware, especially to small organizations with limited cybersecurity resources.
- Reduce manual forensic effort in SOC environments, which currently requires hundreds of hours per incident.
- Automate the extraction of malicious behavior patterns from system logs to enable early detection of ransomware.
- Provide visualizations of discriminating features and their correlations to support malware forensics and response planning.
- Develop a scalable, automated solution that reduces reliance on manual reverse engineering and analyst expertise.
Proposed method
- Use Cuckoo Sandbox to generate dynamic analysis logs from seven ransomware samples (WannaCry, DBGer, Cerber, Defray, GandCrab, Locky, nRansom) and emulated normal user activity.
- Apply TF-IDF, Fisher’s LDA, and Extra Trees (ET) to analyze system logs and extract discriminative features from malware-induced behaviors.
- Train models on mixed logs: infected host logs (malicious) and non-infected host logs (normal) to identify distinguishing patterns.
- Rank features by their discriminative power using model-specific weights (e.g., TF-IDF scores, LDA class separability, ET feature importance).
- Visualize decision paths in ET models to show feature correlations and hierarchical detection logic.
- Validate performance using three experiments: feature ranking robustness, model comparison, and early detection accuracy on unseen logs.
Experimental results
Research questions
- RQ1Can machine learning models automatically extract the most discriminating behavioral patterns from system logs to distinguish ransomware from normal activity?
- RQ2How do TF-IDF, Fisher’s LDA, and ET compare in identifying and ranking malicious features across varying volumes of normal system logs?
- RQ3Is the feature ranking stable and robust when training data include different quantities and qualities of normal host logs?
- RQ4Can the ET model detect ransomware activity before encryption occurs, with high precision and acceptable recall?
- RQ5Can visualizations of decision trees enhance forensic understanding of ransomware behavior and support response planning?
Key findings
- TF-IDF outperformed Fisher’s LDA and ET in identifying the most accurate set of discriminating features for ransomware behavior.
- ET was the most robust model, maintaining consistent feature rankings across varying amounts of normal system logs (C1, C2, C3 scenarios).
- Fisher’s LDA produced significantly different feature rankings under different normal log volumes, indicating low robustness.
- The ET model achieved perfect precision (1.0) across all seven ransomware samples, indicating no false positives in early detection.
- GandCrab had the highest detection accuracy (0.999) and F-score (0.999), while DBGer had the lowest recall (0.308), indicating detection challenges for some variants.
- Visualization of ET decision trees successfully highlighted the sequence of malicious actions and their correlations, aiding forensic analysis.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.