Exploring Large Language Models for Semantic Analysis and Categorization of Android Malware

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Walton, Brandon J, Khatun, Mst Eshita, Ghawaly, James M, Ali-Gombe, Aisha
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912181737488384
author Walton, Brandon J
Khatun, Mst Eshita
Ghawaly, James M
Ali-Gombe, Aisha
author_facet Walton, Brandon J
Khatun, Mst Eshita
Ghawaly, James M
Ali-Gombe, Aisha
contents Malware analysis is a complex process of examining and evaluating malicious software's functionality, origin, and potential impact. This arduous process typically involves dissecting the software to understand its components, infection vector, propagation mechanism, and payload. Over the years, deep reverse engineering of malware has become increasingly tedious, mainly due to modern malicious codebases' fast evolution and sophistication. Essentially, analysts are tasked with identifying the elusive needle in the haystack within the complexities of zero-day malware, all while under tight time constraints. Thus, in this paper, we explore leveraging Large Language Models (LLMs) for semantic malware analysis to expedite the analysis of known and novel samples. Built on GPT-4o-mini model, \msp is designed to augment malware analysis for Android through a hierarchical-tiered summarization chain and strategic prompt engineering. Additionally, \msp performs malware categorization, distinguishing potential malware from benign applications, thereby saving time during the malware reverse engineering process. Despite not being fine-tuned for Android malware analysis, we demonstrate that through optimized and advanced prompt engineering \msp can achieve up to 77% classification accuracy while providing highly robust summaries at functional, class, and package levels. In addition, leveraging the backward tracing of the summaries from package to function levels allowed us to pinpoint the precise code snippets responsible for malicious behavior.
format Preprint
id arxiv_https___arxiv_org_abs_2501_04848
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Exploring Large Language Models for Semantic Analysis and Categorization of Android Malware
Walton, Brandon J
Khatun, Mst Eshita
Ghawaly, James M
Ali-Gombe, Aisha
Cryptography and Security
Artificial Intelligence
Malware analysis is a complex process of examining and evaluating malicious software's functionality, origin, and potential impact. This arduous process typically involves dissecting the software to understand its components, infection vector, propagation mechanism, and payload. Over the years, deep reverse engineering of malware has become increasingly tedious, mainly due to modern malicious codebases' fast evolution and sophistication. Essentially, analysts are tasked with identifying the elusive needle in the haystack within the complexities of zero-day malware, all while under tight time constraints. Thus, in this paper, we explore leveraging Large Language Models (LLMs) for semantic malware analysis to expedite the analysis of known and novel samples. Built on GPT-4o-mini model, \msp is designed to augment malware analysis for Android through a hierarchical-tiered summarization chain and strategic prompt engineering. Additionally, \msp performs malware categorization, distinguishing potential malware from benign applications, thereby saving time during the malware reverse engineering process. Despite not being fine-tuned for Android malware analysis, we demonstrate that through optimized and advanced prompt engineering \msp can achieve up to 77% classification accuracy while providing highly robust summaries at functional, class, and package levels. In addition, leveraging the backward tracing of the summaries from package to function levels allowed us to pinpoint the precise code snippets responsible for malicious behavior.
title Exploring Large Language Models for Semantic Analysis and Categorization of Android Malware
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2501.04848