mlsanityData to 14 Oct 2026

Enhancing Android Malware Detection with Retrieval-Augmented Generation

arXiv 2506.22750 ↗First posted 28 Jun 2025cs.CRcited by 0

On the map: Retrieval-augmented generation → Privacy and security of RAG

Abstract (arXiv)

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 LLM, we integrated Retrieval-Augmented Generation (RAG), enabling the LLM to ground its output in relevant context. Using carefully designed prompts, we guide the LLM to produce coherent function summaries, which are then analyzed using a transformer-based model, improving detection accuracy over conventional feature-based methods for malware detection.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation. Builds on 8 of its 29 references that are in the map. First posted on arXiv 28 Jun 2025.

Builds on

8 of 29 references.

References · 8

  1. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  2. 2018Graph Neural Networks: A Review of Methods and Applicationscited by 1,576
  3. 2023Summary of ChatGPT-Related Research and Perspective Towards the Future of Large Language Modelscited by 154
  4. 2018TESSERACT: Eliminating Experimental Bias in Malware Classification across Space and Timecited by 108
  5. 2017Yes, Machine Learning Can Be More Secure! A Case Study on Android Malware Detectioncited by 52
  6. 2022CySecBERT: A Domain-Adapted Language Model for the Cybersecurity Domaincited by 31
  7. 2024AppPoet: Large Language Model based Android malware detection via multi-view prompt engineeringcited by 16
  8. 2017MaMaDroid: Detecting Android Malware by Building Markov Chains of Behavioral Models (Extended Version)cited by 11

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025TraceRAG: A LLM-Based Framework for Explainable Android Malware Detection and Behavior Analysis
  2. 2025LAMD: Context-driven Android Malware Detection and Classification with LLMs
  3. 2025LLM-Driven Feature-Level Adversarial Attacks on Android Malware Detectors
  4. 2024Assessing the Effectiveness of LLMs in Android Application Vulnerability Analysis
  5. 2025DroidTTP: Mapping Android Applications with TTP for Cyber Threat Intelligence
  6. 2026Evaluating LLMs for Obfuscation Detection and Classification in Android Apps
  7. 2025Detecting Malicious Source Code in PyPI Packages with LLMs: Does RAG Come in Handy?
  8. 2025MalCVE: Malware Detection and CVE Association Using Large Language Models