Semantic Preprocessing for LLM-based Malware Analysis

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Marais, Benjamin, Quertier, Tony, Barrue, Grégoire
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909822273716224
author Marais, Benjamin
Quertier, Tony
Barrue, Grégoire
author_facet Marais, Benjamin
Quertier, Tony
Barrue, Grégoire
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2506_12113
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Semantic Preprocessing for LLM-based Malware Analysis
Marais, Benjamin
Quertier, Tony
Barrue, Grégoire
Cryptography and Security
Artificial Intelligence
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.
title Semantic Preprocessing for LLM-based Malware Analysis
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2506.12113