Automatically Generating Malware Analysis Reports Using Sandbox Logs

Bo Sun, Akinori Fujino, Tatsuya Mori, Tao Ban, Takeshi Takahashi, Daisuke InoueIEICE Trans. Information and Systems 2018

Introduction

The modern cybersecurity landscape is defined by an overwhelming volume of threats, with approximately 390,000 new malware samples detected daily. For security analysts, the primary tool for understanding these threats is the "sandbox"—a controlled environment that executes malware and records its interactions with the operating system via low-level API calls. However, these logs are often massive and cryptic, creating a significant "semantic gap" between raw system data and actionable human intelligence. While professional antivirus vendors produce high-level reports, the manual effort required to create them means they are often unavailable for the specific, novel variants an analyst might encounter in real-time.

The AMAR-Generator System

To bridge this gap, researchers developed AMAR-Generator, an automated system designed to translate dense sandbox logs into structured, human-readable analysis reports. Instead of attempting to define malicious behavior from scratch, the system leverages the years of manual labor already performed by expert analysts at major antivirus firms.

The AMAR-Generator pipeline for translating sandbox logs into human-readable reports.

The system operates through a four-stage pipeline:

  1. Vendor Report Preprocessing: The system crawls professional reports from sources like Microsoft’s threat encyclopedia. It uses Natural Language Processing (NLP) to clean HTML data, unify synonyms (e.g., mapping various registry subkey descriptions to a single format), and reconstruct the text into a structured behavior database.
  2. Malicious Behavior Extraction: Using template matching and regular expressions, the system identifies specific indicators of compromise (IOCs) across four key categories: File, Registry, Network, and Mutex operations.
  3. API Behavior Mapping: This stage serves as the system's "Rosetta Stone." The authors created a map linking low-level Windows API calls (e.g., RegSetValueExW) to high-level functional behaviors (e.g., "Registry Set"). This allows the system to identify the intent of a sequence of calls, even if specific parameters like file names are randomized.
  4. Report Generation: When a new, unknown sandbox log is processed, the system matches observed API sequences against the Malicious Behavior Database and pulls corresponding human-readable descriptions to generate a concise summary.

Evaluation and Results

The effectiveness of AMAR-Generator was evaluated using a dataset of 1,678 vendor reports and 8,644 malware samples from the FFRI dataset (2013–2015). The system demonstrated exceptional detection accuracy, identifying malicious behaviors in 96.74% of the 2013 logs and 100% of the 2014 logs.

An example of a generated malware behavior report for worm:win32/nuqel.h.

A key finding was the system's performance on 2015 samples, where the detection rate dropped to 74.87%. The authors attribute this to "database decay"—the emergence of new malware types and behaviors not yet represented in the training set. However, the system maintained zero false positives during testing, as it only reports behaviors explicitly found in expert-vetted reports.

Furthermore, a user study involving 10 security experts found that the automatically generated reports were nearly indistinguishable from professional vendor reports. The experts rated the generated reports highly for both readability and helpfulness, confirming that the system successfully bridges the semantic gap for practical use.

Limitations and Future Outlook

While AMAR-Generator represents a significant advancement in automated triage, several challenges remain. The current behavioral scope is limited to four operation types, potentially missing complex techniques like code injection (CreateRemoteThread) or process hollowing. Additionally, the system is dependent on the quality of the sandbox logs; malware that detects the sandbox environment or employs delayed execution may evade detection entirely.

Future work will focus on expanding the behavioral database to include more complex system interactions and developing mechanisms for real-time updates from vendor feeds. By automating the translation of raw data into human-readable insights, AMAR-Generator allows security teams to scale their analysis capabilities to meet the demands of the modern threat landscape.

Summary updated

BibTeX
@article{sun2018automatically,
  author = {Bo Sun and Akinori Fujino and Tatsuya Mori and Tao Ban and Takeshi Takahashi and Daisuke Inoue},
  title = {{Automatically Generating Malware Analysis Reports Using Sandbox Logs}},
  journal = {IEICE Trans. Information and Systems},
  year = {2018},
  doi = {10.1587/transinf.2017icp0011},
}
Figure