Skip to main content
QUICK REVIEW

[Paper Review] RanStop: A Hardware-assisted Runtime Crypto-Ransomware Detection Technique

Nitin Pundir, Mark Tehranipoor|arXiv (Cornell University)|Nov 24, 2020
Advanced Malware Detection TechniquesComputer Science11 references9 citations
TL;DR

RanStop is a hardware-assisted runtime crypto-ransomware detection system that leverages hardware performance counters (HPCs) in commodity processors to detect ransomware within 2 ms of execution. By using an LSTM-based machine learning model on HPC-derived time-series data, it achieves 97% average detection accuracy, enabling early intervention before significant damage occurs.

ABSTRACT

Among many prevailing malware, crypto-ransomware poses a significant threat as it financially extorts affected users by creating denial of access via unauthorized encryption of their documents as well as holding their documents hostage and financially extorting them. This results in millions of dollars of annual losses worldwide. Multiple variants of ransomware are growing in number with capabilities of evasion from many anti-viruses and software-only malware detection schemes that rely on static execution signatures. In this paper, we propose a hardware-assisted scheme, called RanStop, for early detection of crypto-ransomware infection in commodity processors. RanStop leverages the information of hardware performance counters embedded in the performance monitoring unit in modern processors to observe micro-architectural event sets and detects known and unknown crypto-ransomware variants. In this paper, we train a recurrent neural network-based machine learning architecture using long short-term memory (LSTM) model for analyzing micro-architectural events in the hardware domain when executing multiple variants of ransomware as well as benign programs. We create timeseries to develop intrinsic statistical features using the information of related HPCs and improve the detection accuracy of RanStop and reduce noise by via LSTM and global average pooling. As an early detection scheme, RanStop can accurately and quickly identify ransomware within 2ms from the start of the program execution by analyzing HPC information collected for 20 timestamps each 100us apart. This detection time is too early for a ransomware to make any significant damage, if none. Moreover, validation against benign programs with behavioral (sub-routine-centric) similarity with that of a crypto-ransomware shows that RanStop can detect ransomware with an average of 97% accuracy for fifty random trials.

Motivation & Objective

  • To address the growing threat of crypto-ransomware that evades traditional software-only detection methods.
  • To enable early detection of ransomware—before it can encrypt critical files—by leveraging low-level hardware monitoring.
  • To develop a runtime detection system that is resilient to polymorphic and metamorphic ransomware variants.
  • To reduce false positives by using intrinsic statistical features derived from micro-architectural events.
  • To provide a hardware-assisted solution that operates independently of software-based signatures and heuristics.

Proposed method

  • Utilizes hardware performance counters (HPCs) in the performance monitoring unit (PMU) of commodity processors to collect micro-architectural event data during program execution.
  • Constructs time-series data from 20 HPC timestamps, each spaced 100 μs apart, to capture dynamic execution patterns.
  • Applies long short-term memory (LSTM) recurrent neural networks to model temporal dependencies in HPC event sequences for anomaly detection.
  • Employs global average pooling (GAP) to reduce noise and improve feature representation from the LSTM output.
  • Trains the LSTM model on a diverse dataset of ransomware variants and benign programs (goodware), including behaviorally similar goodware to test robustness.
  • Uses optimization techniques like Adadelta and RMSprop to train the model and improve detection performance across different HPC event types.

Experimental results

Research questions

  • RQ1Can hardware performance counters be effectively used to detect crypto-ransomware in real time with minimal latency?
  • RQ2Can an LSTM-based model accurately distinguish between ransomware and benign programs based on micro-architectural event sequences?
  • RQ3How early can ransomware be detected using hardware-level signals before file encryption begins?
  • RQ4To what extent does RanStop maintain high accuracy when faced with benign programs that mimic ransomware behavior?
  • RQ5Can the system detect previously unseen ransomware variants without relying on signature-based detection?

Key findings

  • RanStop achieves an average detection accuracy of 97% across fifty random trials when tested on ransomware and behaviorally similar goodware.
  • The system detects ransomware within 2 ms of program execution, well before any significant file encryption can occur.
  • The LSTM model with global average pooling reduces noise and improves feature representation, enhancing detection robustness.
  • HPC-based detection outperforms traditional software-only methods, especially against polymorphic and metamorphic variants.
  • The system maintains high true positive rates (up to 50.89% for UOPS_RETIRE) and low false positive rates (as low as 3.19% for TLB_DATA) across diverse HPC event types.
  • Despite limitations in HPC coverage, RanStop demonstrates strong performance even when monitoring only a subset of micro-architectural events.

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.