WannaLaugh: A Configurable Ransomware Emulator -- Learning to Mimic Malicious Storage Traces
Dionysios Diamantopoulos, Roman Pletka, Slavisa Sarafijanovic, A. L. Narasimha Reddy, Haris Pozidis
TL;DR
Ransomware detections struggle with evolving threats, especially when relying on static signatures. This paper introduces WannaLaugh, a safe, open-source ransomware emulator that can mimic full encryption activity or targeted traces to generate realistic storage IO patterns without propagating malware. It offers an extensive configurable design space (workloads, encryption schemes, file targeting, timing, and multi-threading via Ray) and uses NSGA-II optimization to tailor traces toward known ransomware or novel patterns, enabling robust evaluation of storage-based detectors. Case studies demonstrate multi-threaded performance gains, effective trace mimicry, and the emulator’s potential to accelerate development of detection methods in storage systems and computational storage devices.
Abstract
Ransomware, a fearsome and rapidly evolving cybersecurity threat, continues to inflict severe consequences on individuals and organizations worldwide. Traditional detection methods, reliant on static signatures and application behavioral patterns, are challenged by the dynamic nature of these threats. This paper introduces three primary contributions to address this challenge. First, we introduce a ransomware emulator. This tool is designed to safely mimic ransomware attacks without causing actual harm or spreading malware, making it a unique solution for studying ransomware behavior. Second, we demonstrate how we use this emulator to create storage I/O traces. These traces are then utilized to train machine-learning models. Our results show that these models are effective in detecting ransomware, highlighting the practical application of our emulator in developing responsible cybersecurity tools. Third, we show how our emulator can be used to mimic the I/O behavior of existing ransomware thereby enabling safe trace collection. Both the emulator and its application represent significant steps forward in ransomware detection in the era of machine-learning-driven cybersecurity.
