Semantic Preprocessing for LLM-based Malware Analysis
Not on the map. Why?
Abstract (arXiv)
In a context of malware analysis, numerous approaches rely on Artificial Intelligence to handle a large volume of data. However, these techniques focus on data view (images, sequences) and not on an expert's view. Noticing this issue, we propose a preprocessing that focuses on expert knowledge to improve malware semantic analysis and result interpretability. We propose a new preprocessing method which creates JSON reports for Portable Executable files. These reports gather features from both static and behavioral analysis, and incorporate packer signature detection, MITRE ATT&CK and Malware Behavior Catalog (MBC) knowledge. The purpose of this preprocessing is to gather a semantic representation of binary files, understandable by malware analysts, and that can enhance AI models' explainability for malicious files analysis. Using this preprocessing to train a Large Language Model for Malware classification, we achieve a weighted-average F1-score of 0.94 on a complex dataset, representative of market reality.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 15 of its 33 references that are in the map. First posted on arXiv 13 Jun 2025.
Builds on
15 of 33 references.
References · 15
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
- 2018EMBER: An Open Dataset for Training Static PE Malware Machine Learning Modelscited by 164
- 2017Malware Detection by Eating a Whole EXEcited by 114
- 2018Learning to Evade Static PE Machine Learning Malware Models via Reinforcement Learningcited by 60
- 2020SOREL-20M: A Large Scale Benchmark Dataset for Malicious PE Detectioncited by 49
- 2018Microsoft Malware Classification Challengecited by 46
- 2025EMBER2024 -- A Benchmark Dataset for Holistic Evaluation of Malware Classifierscited by 18
- 2022MERLIN -- Malware Evasion with Reinforcement LearnINgcited by 10
- 2022AI-based Malware and Ransomware Detection Modelscited by 7
- 2021Towards an Automated Pipeline for Detecting and Classifying Malware through Machine Learningcited by 6
Built on by
Citing papers per year: 2025: 1; 2026: 2.
3 papers.
- 2025BEACON: Behavioral Malware Classification with Large Language Model Embeddings and Deep Learningcited by 0
- 2026LCC-LLM: Leveraging Code-Centric Large Language Models for Malware Attributioncited by 0
- 2026ALIBI: Adversarial Legitimacy Injection in Binary Input against LLM Malware Analyzerscited by 0
- 2026ALIBI: Adversarial Legitimacy Injection in Binary Input against LLM Malware Analyzers17 Sep 2026
- 2026LCC-LLM: Leveraging Code-Centric Large Language Models for Malware Attribution7 May 2026
- 2025BEACON: Behavioral Malware Classification with Large Language Model Embeddings and Deep Learning18 Sep 2025