NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A multi-task learning model for malware classification with useful file access pattern from API call sequence

Xin Wang, Siu-Ming YiuarXiv 2016

Introduction

Malware analysis traditionally focuses on two primary objectives: detection and classification. While existing systems are effective at labeling known threats, they often rely on labor-intensive feature engineering and function as "black boxes," providing little insight into the malware's actual behavior. This lack of interpretability poses a significant challenge for security analysts responding to zero-day threats. This paper proposes a multi-task deep learning model that automates feature extraction and provides human-readable summaries of malware intent through File Access Patterns (FAP).

Methodology

The core of the proposed approach is treating Windows API call sequences (e.g., CreateFile, RegOpenKey) as a semantic language. The researchers developed a "one-to-many" sequence-to-sequence (seq2seq) architecture based on a Recurrent Neural Network Autoencoder (RNN-AE).

The RNN-AE architecture featuring a shared encoder and dual decoders for classification and FAP generation.

As shown in Figure 1, the model utilizes Gated Recurrent Units (GRU) to learn a compressed vector representation (C) of raw API sequences. This representation is then processed by two distinct decoders:

  1. Classification Decoder: Predicts the specific malware family label.
  2. FAP Generation Decoder: Produces a sequence of critical file-related actions (the File Access Pattern), summarizing how the malware interacts with the host system.

The model was evaluated using the Kim (2016) public dataset, which includes coarse-grained (4 families, 7,430 samples) and fine-grained (8 families, 4,932 samples) malware categories.

Results and Insights

The multi-task model achieved exceptional performance, reaching 99.1% accuracy on fine-grained classification and between 98.4% and 99.2% accuracy for FAP generation. Beyond raw metrics, the model's internal representations proved highly meaningful.

t-SNE visualization demonstrating that the model's learned features naturally cluster malware by family.

A t-SNE visualization (Figure 2) of the latent vector space reveals that malware samples from the same family naturally cluster together based on learned behavioral fingerprints, even without prior label information. Furthermore, the generated FAPs provide diagnostic value. For instance, a specific pattern involving temporary file creation and deletion (p5) was found in 70% of Adware samples but was virtually absent in other families, validating the model's ability to capture family-specific behaviors.

Conclusion

By framing malware analysis as a language translation and summarization task, this model bridges the gap between automated classification and human-readable reporting. While current limitations include the exclusion of API arguments and a reliance on dynamic analysis sandboxes, the results demonstrate a powerful path forward for interpretable, automated security tools. Future work will explore multi-modal inputs, such as network traffic and binary structure, to further enhance robustness.

Summary updated

BibTeX
@misc{wang2016multi,
  author = {Xin Wang and Siu-Ming Yiu},
  title = {{A multi-task learning model for malware classification with useful file access pattern from API call sequence}},
  year = {2016},
  eprint = {1610.05945},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1610.05945},
}
Figure