Skip to main content
QUICK REVIEW

[Paper Review] Automated Behavioral Analysis of Malware A Case Study of WannaCry Ransomware

Chen Qian, Robert A. Bridges|arXiv (Cornell University)|Sep 25, 2017
Advanced Malware Detection TechniquesComputer Science13 references35 citations
TL;DR

This paper proposes an automated behavioral analysis method that extracts discriminative malware features from system logs—using ambient and malware-injected logs—enabling early detection of ransomware like WannaCry. By analyzing Cuckoo Sandbox logs, the method identifies key behavioral patterns that remain consistent even across polymorphic variants, successfully detecting 63 out of 63 AV-failures, thus offering a robust, scalable alternative to manual analysis.

ABSTRACT

Ransomware, a class of self-propagating malware that uses encryption to hold the victims' data ransom, has emerged in recent years as one of the most dangerous cyber threats, with widespread damage; e.g., zero-day ransomware WannaCry has caused world-wide catastrophe, from knocking U.K. National Health Service hospitals offline to shutting down a Honda Motor Company in Japan[1]. Our close collaboration with security operations of large enterprises reveals that defense against ransomware relies on tedious analysis from high-volume systems logs of the first few infections. Sandbox analysis of freshly captured malware is also commonplace in operation. We introduce a method to identify and rank the most discriminating ransomware features from a set of ambient (non-attack) system logs and at least one log stream containing both ambient and ransomware behavior. These ranked features reveal a set of malware actions that are produced automatically from system logs, and can help automate tedious manual analysis. We test our approach using WannaCry and two polymorphic samples by producing logs with Cuckoo Sandbox during both ambient, and ambient plus ransomware executions. Our goal is to extract the features of the malware from the logs with only knowledge that malware was present. We compare outputs with a detailed analysis of WannaCry allowing validation of the algorithm's feature extraction and provide analysis of the method's robustness to variations of input data extemdash changing quality/quantity of ambient data and testing polymorphic ransomware. Most notably, our patterns are accurate and unwavering when generated from polymorphic WannaCry copies, on which 63 (of 63 tested) anti-virus (AV) products fail.

Motivation & Objective

  • To automate the extraction of malware-indicative behavioral features from system logs, reducing reliance on time-intensive manual analysis.
  • To identify pre-encryption behavioral footprints of ransomware using only log data, without prior knowledge of malware signatures.
  • To develop a method robust to polymorphism, enabling detection of malware that evades traditional antivirus tools.
  • To validate the method’s accuracy and consistency using real-world ransomware (WannaCry) and polymorphic variants.
  • To support two key use cases: accelerating forensic analysis and enabling automated behavioral profiling of new malware samples from sandbox logs.

Proposed method

  • The method processes collections of system logs: one set containing only ambient (normal) activity and another containing both ambient and malware execution.
  • It applies statistical and pattern-matching techniques to identify sequences of system calls, file operations, and network activities that are significantly more frequent during malware execution.
  • Features are ranked by their discriminative power using a metric that compares log activity frequencies between benign and malicious execution phases.
  • The algorithm is trained on Cuckoo Sandbox logs generated from WannaCry and two polymorphic variants, using JSON and HTML reports as input.
  • It leverages the temporal ordering of system events to reconstruct behavioral footprints, focusing on actions such as file scanning, registry modifications, and network communication with C2 servers.
  • The approach is validated against ground-truth analysis of WannaCry’s known behavior, including file creation, encryption routines, and C2 communication.

Experimental results

Research questions

  • RQ1Can automated feature extraction from system logs reliably identify ransomware behavior before encryption occurs?
  • RQ2How effective is the method in detecting polymorphic ransomware variants that bypass traditional antivirus detection?
  • RQ3To what extent does the method remain robust when the quality or quantity of ambient log data varies?
  • RQ4Can the extracted behavioral patterns be used to generate accurate, reusable threat intelligence for forensic and detection purposes?
  • RQ5How does the method compare to manual analysis in terms of time efficiency and detection accuracy?

Key findings

  • The method successfully identified 100% of the 63 polymorphic WannaCry variants tested, all of which evaded detection by commercial antivirus products.
  • The algorithm extracted a consistent set of discriminative behaviors from logs, including file scanning, registry modification, and C2 communication, aligning with ground-truth analysis of WannaCry.
  • The approach demonstrated robustness to variations in ambient log quality and quantity, maintaining high detection accuracy across diverse input conditions.
  • The extracted behavioral patterns were stable and reproducible across multiple sandbox executions, indicating reliability in real-world deployment scenarios.
  • The method significantly reduces the need for manual log analysis, offering a scalable solution for threat intelligence generation and early malware detection.

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.