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

Explainable Deep Learning Models for Dynamic and Online Malware Classification

Quincy Card, Daniel Simpson, Kshitiz Aryal, Maanak Gupta, Sheikh Rabiul Islam

Introduction

The rapid evolution of malware necessitates advanced detection mechanisms. While deep learning (DL) models have demonstrated exceptional performance in identifying malicious software, their "black-box" nature remains a significant barrier to adoption in security operations centers (SOCs). In cybersecurity, a binary classification—malicious or benign—is often insufficient. Security analysts require actionable intelligence: they need to understand which specific behaviors, such as unauthorized API calls or unusual memory allocations, triggered an alert.

This research addresses the interpretability gap by applying Explainable AI (XAI) techniques to models trained on dynamic and online malware data. Unlike static analysis, which examines code without execution and is easily bypassed by obfuscation, dynamic and online analyses capture the actual behavior of malware in sandboxed or real-time environments.

Methodology

The researchers developed a framework combining high-performance neural networks with a suite of interpretability tools.

Model Architectures

Two primary architectures were evaluated:

  1. Feed Forward Neural Networks (FFNN): Utilized for their efficiency in processing structured feature vectors.
  2. Convolutional Neural Networks (CNN): Employed to capture spatial-like patterns within system snapshots, particularly for online monitoring data.

To address the inherent class imbalance in malware datasets—where certain families are significantly more prevalent than others—the Synthetic Minority Oversampling Technique (SMOTE) was applied during the training phase to ensure the models learned to recognize rare but critical threats.

The XAI Suite

To ensure robust explanations, the study utilized three distinct XAI methods:

  • SHAP (DeepExplainer): Based on game theory, SHAP provides both global insights into feature importance and local explanations for individual predictions.
  • Permutation Importance: A global method that quantifies a feature's value by measuring the decrease in model performance when that feature's data is randomly shuffled.
  • LIME (Local Interpretable Model-agnostic Explanations): Used to generate local approximations of the model's decision boundary around specific samples, facilitating granular analysis of individual alerts.

Data Sources

The models were validated using two comprehensive datasets:

  • AndMal2020: A dynamic analysis dataset focused on Android malware. It includes 141 features spanning memory usage, API calls, and network activity across 12 malware categories.
  • RaDaR: An online analysis dataset from the Indian Institute of Technology Madras. It captures real-time hardware-level behaviors and system activity snapshots of Windows malware on a physical testbed.

Results and Key Insights

The experimental results demonstrate that high predictive accuracy can coexist with transparency.

Performance Metrics

In the dynamic analysis of Android malware (AndMal2020), the FFNN achieved an F1-score of 90.63%, slightly outperforming the CNN's 90.03%. However, in the more complex online analysis (RaDaR), the CNN showed superior adaptability, reaching an F1-score of 85.63% compared to the FFNN's 78.79%. This suggests that CNNs are better suited for the spatial patterns inherent in real-time system snapshots.

Identifying the "Smoking Guns"

The XAI analysis revealed that the models were not relying on noise but were identifying legitimate behavioral indicators. Features related to API calls and Memory usage (such as MemPssClean and API_sessions) consistently ranked as the most influential predictors across both models and datasets.

Reliability and Uncertainty

One of the most significant findings was the consistency between different XAI methods. For the dynamic dataset, the top 10 features identified by SHAP and Permutation Importance for the FFNN were identical, providing high confidence in the explanations. Furthermore, XAI helped illuminate the reasons for misclassification. In cases where the model confused similar categories (e.g., "Riskware" vs. "PUA"), the probability scores were notably low (e.g., ~0.124), indicating that XAI can serve as a flag for "borderline" cases that require manual human intervention.

Conclusion and Future Work

This research demonstrates that XAI can transform "black-box" malware detectors into transparent tools for security analysts. By identifying the specific behavioral features that drive classifications, these models provide the "why" behind the "what."

Future research will focus on extending these XAI techniques to time-series architectures like LSTMs, which are currently challenging to interpret with standard SHAP implementations. Additionally, the team aims to investigate the resilience of these models against adversarial attacks, where attackers might use XAI insights to intentionally mask the features most likely to trigger a detection.

Summary updated

BibTeX
@inproceedings{card2024explainable,
  author = {Quincy Card and Daniel Simpson and Kshitiz Aryal and Maanak Gupta and Sheikh Rabiul Islam},
  title = {{Explainable Deep Learning Models for Dynamic and Online Malware Classification}},
  booktitle = {SMARTCOMP},
  year = {2024},
  doi = {10.1109/smartcomp61445.2024.00045},
}
Figure