Table of Contents
Fetching ...

Transfer Learning in Pre-Trained Large Language Models for Malware Detection Based on System Calls

Pedro Miguel Sánchez Sánchez, Alberto Huertas Celdrán, Gérôme Bovet, Gregorio Martínez Pérez

TL;DR

The paper addresses malware detection for military devices by leveraging transfer learning on pre-trained large language models (LLMs) trained on system-call traces. It presents a framework that retrains LLMs with a classification head to distinguish benign from malicious syscall sequences, evaluated on a real IoT dataset exceeding 1 TB. Results show that models with larger context windows (BigBird and Longformer at 4096 tokens) achieve about 0.86 in accuracy and F1, highlighting the importance of context length and the trade-offs with computational requirements. The study discusses practical deployment considerations, including real-time detection prospects and future work such as edge quantization and incorporating temporal and network-context features to improve robustness in high-stakes environments.

Abstract

In the current cybersecurity landscape, protecting military devices such as communication and battlefield management systems against sophisticated cyber attacks is crucial. Malware exploits vulnerabilities through stealth methods, often evading traditional detection mechanisms such as software signatures. The application of ML/DL in vulnerability detection has been extensively explored in the literature. However, current ML/DL vulnerability detection methods struggle with understanding the context and intent behind complex attacks. Integrating large language models (LLMs) with system call analysis offers a promising approach to enhance malware detection. This work presents a novel framework leveraging LLMs to classify malware based on system call data. The framework uses transfer learning to adapt pre-trained LLMs for malware detection. By retraining LLMs on a dataset of benign and malicious system calls, the models are refined to detect signs of malware activity. Experiments with a dataset of over 1TB of system calls demonstrate that models with larger context sizes, such as BigBird and Longformer, achieve superior accuracy and F1-Score of approximately 0.86. The results highlight the importance of context size in improving detection rates and underscore the trade-offs between computational complexity and performance. This approach shows significant potential for real-time detection in high-stakes environments, offering a robust solution to evolving cyber threats.

Transfer Learning in Pre-Trained Large Language Models for Malware Detection Based on System Calls

TL;DR

The paper addresses malware detection for military devices by leveraging transfer learning on pre-trained large language models (LLMs) trained on system-call traces. It presents a framework that retrains LLMs with a classification head to distinguish benign from malicious syscall sequences, evaluated on a real IoT dataset exceeding 1 TB. Results show that models with larger context windows (BigBird and Longformer at 4096 tokens) achieve about 0.86 in accuracy and F1, highlighting the importance of context length and the trade-offs with computational requirements. The study discusses practical deployment considerations, including real-time detection prospects and future work such as edge quantization and incorporating temporal and network-context features to improve robustness in high-stakes environments.

Abstract

In the current cybersecurity landscape, protecting military devices such as communication and battlefield management systems against sophisticated cyber attacks is crucial. Malware exploits vulnerabilities through stealth methods, often evading traditional detection mechanisms such as software signatures. The application of ML/DL in vulnerability detection has been extensively explored in the literature. However, current ML/DL vulnerability detection methods struggle with understanding the context and intent behind complex attacks. Integrating large language models (LLMs) with system call analysis offers a promising approach to enhance malware detection. This work presents a novel framework leveraging LLMs to classify malware based on system call data. The framework uses transfer learning to adapt pre-trained LLMs for malware detection. By retraining LLMs on a dataset of benign and malicious system calls, the models are refined to detect signs of malware activity. Experiments with a dataset of over 1TB of system calls demonstrate that models with larger context sizes, such as BigBird and Longformer, achieve superior accuracy and F1-Score of approximately 0.86. The results highlight the importance of context size in improving detection rates and underscore the trade-offs between computational complexity and performance. This approach shows significant potential for real-time detection in high-stakes environments, offering a robust solution to evolving cyber threats.
Paper Structure (14 sections, 2 figures, 2 tables)

This paper contains 14 sections, 2 figures, 2 tables.

Figures (2)

  • Figure 1: LLM-based malware detection framework
  • Figure 2: BigBird Confusion Matrix