Skip to content
Preprint

Neural Fingerprints for Malware Analysis: An Image-Based Metric Learning Approach with Application to Cross-Domain Classification

Aug 2026 · 0 citations · 36 references
Computer Science

TL;DR

This chapter develops an image-based metric learning approach that learns to extract discriminative neural fingerprints--fixed-length embeddings--from malware-as-image representations, so that family membership can be determined by nearest-neighbor search in the embedding space.

Abstract

Identifying the family of a newly observed malware sample is a core task in threat intelligence, yet conventional classifiers must be retrained whenever a new family appears. This chapter develops an image-based metric learning approach that instead learns to extract discriminative neural fingerprints--fixed-length embeddings--from malware-as-image representations, so that family membership can be determined by nearest-neighbor search in the embedding space. The central advantage of this formulation is zero-shot capability: because the learned embedding induces a similarity metric rather than a fixed set of class boundaries, families that were never seen during training can be recognized by comparison against a gallery, with no retraining. We demonstrate this directly by training an encoder on MalNet-Images-Tiny and MalImg combined (453 families, 96,769 images) and evaluate it zero-shot on a held-out 17-family grayscale dataset with no family overlap. Using a lightweight CNN with multi-proxy anchor loss, this model attains 73.1% retrieval@1 and 90.5% open-set AUROC on families the encoder has never seen. We benchmark our embedding approach against two conventional paradigms in a same-domain setting, where all three are competitive at classifying malware into families. We further show that the learned embeddings transfer across datasets. Unlike classifiers, our embedding approach also yields interpretable similarity scores and scales to large galleries via Facebook AI Similarity Search (FAISS). Finally, we provide a comprehensive evaluation of the learned embedding space using retrieval@k, cluster purity, silhouette score, separation ratio, few-shot accuracy, and open-set detection metrics, along with robustness analysis under image perturbations.

View source

Similar papers

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 Sep 2026

TFC-MAL: APPLICATION OF TRIPLET LOSS FOR MALWARE DETECTION BASED ON IMAGE REPRESENTATION

Detecting polymorphic and zero-day malware remains a significant challenge due to the high similarity in characteristics between malicious variants and benign files, which reduces the effectiveness of traditional Cross-Entropy-based approaches. This paper proposes the TFC-MAL (Triplet-based Feature Compactness for Malw...

Dang Thi Mai, Hien Cong Dinh · 0 citations
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
Conference Aug 2026

Attention-Enhanced CNN for Malware Image Classification with Explainable AI

Malware classification is an essential cybersecurity task for detecting and mitigating harmful software threats. One kind of current deep learning method that has shown promising results in the classification of malware photos is convolutional neural networks (CNNs). Major challenges that remain include a lack of model...

B. R. Krishna, H. Narayanan, S. V. Sai et al. · 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.