International Journal of Information SecurityOpen accessComputer science

Enhancing android malware detection with retrieval-augmented generation

Saraga Sakthidharan, S. M. Anagha, Dincy R. Arikkat, K. A. Rafidha Rehiman, Serena Nicolazzo, Antonino Nocera, P. Vinod

University of Pavia · Cochin University of Science and Technology

Key points

From the paper's conclusion
  • To mitigate hallucinations, which are a known vulnerability of LLMs, we integrated Retrieval-Augmented Generation (RAG), enabling the LLM to ground its output in a relevant context.

Abstract

Abstract The widespread use of Android applications has made them a prime target for cyberattacks, significantly increasing the risk of malware that threatens user privacy, security, and device functionality. Effective malware detection is thus critical, with static analysis, dynamic analysis, and Machine Learning being widely used approaches. In this work, we focus on a Machine Learning-based method utilizing static features. We first compiled a dataset of benign and malicious APKs and performed static analysis to extract features such as code structure, permissions, and manifest file content, without executing the apps. Instead of relying solely on raw static features, our system uses an LLM to generate high-level functional descriptions of APKs. To mitigate hallucinations, which are a known vulnerability of LLMs, we integrated Retrieval-Augmented Generation (RAG), enabling the LLM to ground its output in a relevant context. Using carefully designed prompts, we guide the LLM to produce coherent function summaries, which are then analyzed using a transformer-based model for binary classification.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers