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.
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.· Recent Advances in Computer...· 0 citations
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· Vinh University Journal of S...· 0 citations
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.· Scientific Reports· 0 citations
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.· International Workshop on Ar...· 0 citations
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.· International Research Journ...· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.