Skip to main content
QUICK REVIEW

[Paper Review] RAPPER: Ransomware Prevention via Performance Counters

Manaar Alam, Sinha, Sayan|arXiv (Cornell University)|Apr 3, 2020
Advanced Malware Detection TechniquesComputer Science12 references47 citations
TL;DR

RAPPER is an unsupervised, two-stage ransomware detection framework that uses hardware performance counters and FFT-based autoencoders to detect ransomware in real time, and distinguishes disk encryption from ransomware via correlation with disk-encryption templates.

ABSTRACT

Ransomware can produce direct and controllable economic loss, which makes it one of the most prominent threats in cyber security. As per the latest statistics, more than half of malwares reported in Q1 of 2017 are ransomwares and there is a potent threat of a novice cybercriminals accessing ransomware-as-a-service. The concept of public-key based data kidnapping and subsequent extortion was introduced in 1996. Since then, variants of ransomware emerged with different cryptosystems and larger key sizes, the underlying techniques remained same. Though there are works in literature which proposes a generic framework to detect the crypto ransomwares, we present a two step unsupervised detection tool which when suspects a process activity to be malicious, issues an alarm for further analysis to be carried in the second step and detects it with minimal traces. The two step detection framework- RAPPER uses Artificial Neural Network and Fast Fourier Transformation to develop a highly accurate, fast and reliable solution to ransomware detection using minimal trace points. We also introduce a special detection module for successful identification of disk encryption processes from potential ransomware operations, both having similar characteristics but with different objective. We provide a comprehensive solution to tackle almost all scenarios (standard benchmark, disk encryption and regular high computational processes) pertaining to the crypto ransomwares in light of software security.

Motivation & Objective

  • Learn normal system behavior using HPC statistics to detect anomalies without labeled ransomware data.
  • Differentiate ransomware from benign high-computation processes and disk encryption.
  • Provide a lightweight, kernel-agnostic detection tool suitable for real-time operation.

Proposed method

  • Monitor hardware performance counters (HPCs) via perf to collect multivariate time-series data.
  • Use an LSTM-based autoencoder to model normal system behavior and detect anomalies through reconstruction error.
  • Transform time-domain HPC traces to frequency domain with FFT and apply a second autoencoder to distinguish repetitive ransomware patterns.
  • Introduce a threshold using 3-sigma rule on reconstruction error to trigger anomaly alarms.
  • In Online phase, use a two-autoencoder pipeline plus a correlation module to distinguish ransomware from disk encryption and terminate suspicious processes.
  • Employ a disk-encryption template via cumulative Pearson correlation to differentiate disk encryption from ransomware.

Experimental results

Research questions

  • RQ1Can unsupervised HPC-based time-series learning detect ransomware without labeled data?
  • RQ2Can FFT-based analysis reduce false positives from benign high-computation programs?
  • RQ3How effectively can RAPPER separate ransomware from disk-encryption software in practice?

Key findings

  • RAPPER detects WannaCry as a ransomware in approximately 5.31 seconds after start (5313.0203 ms).
  • SPEC benchmarks often trigger alarms in Autoencoder_1, but FFT-based Autoencoder_2 reduces false positives by distinguishing repetitive ransomware patterns from benign workloads.
  • Autoencoder_2 thresholds (R_t' = 0.002829) separate ransomware from SPEC benchmarks in FFT domain.
  • In the online phase, detection time for a given window is under the 10 ms sampling interval, enabling real-time response.
  • Disk encryption programs (TrueCrypt/VeraCrypt) are distinguished from ransomware via a cumulative correlation with a disk-encryption template; high correlation indicates legitimate disk encryption.
  • The architecture includes five modules (Watchdog Program, Autoencoder_1, FFT Converter, Autoencoder_2, Correlation Module) and operates in Offline and Online phases.

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.