Skip to content
Open access

An Explainable Deep Learning Pipeline for Malware Family Classification: GAF Image Encoding and API-Grounded LLM Interpretation

Aug 2026 · Electronics · Vol 15, pp. 3627 · 0 citations

TL;DR

This work contributes a feasible, fully containerized and reproducible framework for explainable malware family classification and explanation and demonstrates and characterize an explainable pipeline that both classifies and explains.

Abstract

Signature-based malware detection is undermined by obfuscation and packing, motivating dynamic analysis of Application Programming Interface (API) call sequences. Existing image-based classifiers reach high accuracy but rarely explain why a sample belongs to a given family. In this paper, our goal is not to maximize classification accuracy but to demonstrate and characterize an explainable pipeline that both classifies and explains: API call sequences from the WinMET dataset are encoded as order-preserving Gramian Angular Field (GAF) images and classified with a ResNet-50, after which Grad-CAM activations are reverse-mapped to the contributing API calls, whose names, categories, arguments, and return values are passed to a single large language model (LLM) that generates a natural-language rationale. We evaluate classification and explanation jointly on ten malware families (16,771 samples) through three experiments: a GAF-versus-heatmap comparison under identical conditions, a per-family Grad-CAM faithfulness analysis, and a reference-free LLM-as-a-Judge assessment of interpretation quality. Consistent with this explanatory aim, GAF matched the heatmap on overall accuracy (about 0.80) while performing comparably on Macro-F1 (0.63 versus 0.61: higher on the single fixed split, with Welch’s t-test p=0.015, but statistically comparable under five-fold cross-validation); per-family faithfulness varied widely (0.08 to 0.80), and, under two independent LLM judges (GPT-4o and GPT-4.1), supplying argument-level context significantly reduced—rather than improved—the judged quality (best score from a zero-shot prompt without parameters: 13.34 of 15); a small human expert evaluation further indicated that the automated judges rewarded fluent but over-attributed rationales. This work contributes a feasible, fully containerized and reproducible framework for explainable malware family classification.

Read PDF

Similar papers

Open access Sep 2026

Visualization based malware classification under extreme class imbalance: a transfer learning approach with systematic ablation

Malware detection and classification continues to be a major concern of cybersecurity since threat attackers are refining to come up with more advanced and elusive malicious code. Visualization-based solutions that transform raw binary executables into grayscale images and the use of convolutional neural networks t...

G. P. Raghudathesh, M. Pavan Kumar, Thimmaraja Yadava G et al. · 0 citations
Open access Oct 2026

API Call-Based Windows Malware Detection Using CNN-LSTM-Attention and Explainable SHAP

A hybrid Convolutional Neural Network, Long Short-Term Memory, and Multi-Head Attention model is developed to classify Windows malicious software from sequences of the first 100 dynamic Application Programming Interface calls, and provides superior interpretability by integrating SHapley Additive Explanations.

Febby Viona, Puguh Hiskiawan · 0 citations
Conference Open access Oct 2026

Memory-Based Malware Detection: Leakage-and Temporal-Aware Evaluation

Machine learning has become a standard approach for memory-based malware detection, yet evaluations on commonly used benchmarks can be inflated by randomized splits and artificially balanced datasets that ignore temporal evolution and real-world class distributions. In this work, we introduce a leakage-and temporal-awa...

Zain Saquer, Gavin Luo, M. Tanvir et al. · 0 citations
Sep 2026

Image-Based Malware Detection Using Deep Convolutional Autoencoder and Random Forest

Image-based analysis has been extensively used for malware classification by converting binary files into grayscale images to extract structural and behavioral patterns. However, common deep learning approaches generally suffer from problems such as non-interpretability, class imbalance, and computational overhead....

Shajjia Mazhar, Sadia Fatima, Irfanud Din et al. · 0 citations
Open access Oct 2026

A POLYMORPHISM-AWARE MULTIMODAL MALWARE DATASET GENERATION AND VALIDATION FRAMEWORK FOR DEEP LEARNING-BASED DETECTION

Polymorphic malware detection is challenged by malicious executables that can alter their observable representation while preserving their underlying behaviour. Although public malware datasets have advanced learning-based malware research, many were not designed to represent controlled polymorphic transformation acros...

A. F. Shehu, Peter Ogedebe · 0 citations
Open access Sep 2026

A Hybrid CNN–LSTM Deep Learning Framework for Automated Malware Classification using Spatial–Sequential Feature Fusion

The high rate of growth of advanced and highly obfuscated malware has made the use of conventional signature detection mechanisms less viable. In order to overcome this problem, this paper suggests a hybrid framework for malware classification based on the combination of Convolutional Neural Networks (CNNs) and Long Sh...

Chevella Anil Kumar, Saradha S, Mithila Ayyavoo et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.