Rethinking and Exploring String-Based Malware Family Classification in the Era of LLMs and RAG

Yufan Chen, Daoyuan Wu, Juantao Zhong, Zicheng Zhang, Debin Gao +5 more
7/5/2025
2 citations
cs.CRcs.AIcs.SE
rag

No official code found. Best implementation: AIS2Lab/MalwareGPT (7 stars, Python, MIT, last commit 2025-10-26).

Abstract

Malware family classification aims to identify the specific family (e.g., GuLoader or BitRAT) a malware sample may belong to, in contrast to malware detection or sample classification, which only predicts a Yes/No outcome. Accurate family identification can greatly facilitate automated sample labeling and understanding on crowdsourced malware analysis platforms such as VirusTotal and MalwareBazaar, which generate vast amounts of data daily.

Show full abstract

In this paper, we explore and assess the feasibility of using traditional binary string features for family classification in the new era of large language models (LLMs) and Retrieval-Augmented Generation (RAG). Specifically, we investigate howFamily-Specific String (FSS) features can be utilized in a manner similar to RAG to facilitate family classification. To this end, we develop a curated evaluation framework covering 4,347 samples from 67 malware families, extract and analyze over 25 million strings, and conduct detailed ablation studies to assess the impact of different design choices in four major modules, with each providing a relative improvement ranging from 8.1% to 120%.

View on arXivView PDF

Code Implementations(1)

AIS2Lab/MalwareGPTCommunity73%
MIT

Rethinking and Exploring String-Based Malware Family Classification in the Era of LLMs and RAG

73PythonOct 26, 20251 years agoMIT

Similar Papers

Cite this paper

@article{chen2025rethinking,
  title  = {Rethinking and Exploring String-Based Malware Family Classification in the Era of LLMs and RAG},
  author = {Yufan Chen and Daoyuan Wu and Juantao Zhong and Zicheng Zhang and Debin Gao and Shuai Wang and Yingjiu Li and Ning Liu and Jiachi Chen and Rocky K. C. Chang},
  year   = {2025},
  eprint = {2507.04055},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.04055v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.04055.svg)](https://codeofpaper.com/paper/2507.04055)

Discussion