Skip to main content
QUICK REVIEW

[Paper Review] AppPoet: Large Language Model based Android malware detection via multi-view prompt engineering

Wenxiang Zhao, Juntao Wu|arXiv (Cornell University)|Apr 29, 2024
Advanced Malware Detection TechniquesComputer Science3 citations
TL;DR

AppPoet proposes a large language model (LLM)-based Android malware detection system that uses multi-view prompt engineering to extract and interpret behavioral semantics from static APK features (permissions, APIs, URLs, uses-features). By generating human-readable function descriptions and behavioral summaries via LLMs and fusing them through a deep neural network, AppPoet achieves 97.15% accuracy and 97.21% F1 score, outperforming baseline methods while producing interpretable diagnostic reports.

ABSTRACT

Due to the vast array of Android applications, their multifarious functions and intricate behavioral semantics, attackers can adopt various tactics to conceal their genuine attack intentions within legitimate functions. However, numerous learning-based methods suffer from a limitation in mining behavioral semantic information, thus impeding the accuracy and efficiency of Android malware detection. Besides, the majority of existing learning-based methods are weakly interpretive and fail to furnish researchers with effective and readable detection reports. Inspired by the success of the Large Language Models (LLMs) in natural language understanding, we propose AppPoet, a LLM-assisted multi-view system for Android malware detection. Firstly, AppPoet employs a static method to comprehensively collect application features and formulate various observation views. Then, using our carefully crafted multi-view prompt templates, it guides the LLM to generate function descriptions and behavioral summaries for each view, enabling deep semantic analysis of the views. Finally, we collaboratively fuse the multi-view information to efficiently and accurately detect malware through a deep neural network (DNN) classifier and then generate the human-readable diagnostic reports. Experimental results demonstrate that our method achieves a detection accuracy of 97.15% and an F1 score of 97.21%, which is superior to the baseline methods. Furthermore, the case study evaluates the effectiveness of our generated diagnostic reports.

Motivation & Objective

  • To address the limitations of traditional feature engineering-based malware detection methods, which struggle with deep semantic understanding and lack interpretable diagnostic reports.
  • To leverage the natural language understanding capabilities of large language models (LLMs) to mine behavioral semantics from static Android app features.
  • To design a multi-view prompt engineering framework that guides LLMs to generate function descriptions and behavioral summaries for different feature types.
  • To improve malware detection accuracy by fusing multi-view textual representations through a deep neural network classifier.
  • To generate heuristic, human-readable diagnostic reports that support security researchers in analyzing and validating detection results.

Proposed method

  • AppPoet selects four key static features—permissions, APIs, URLs, and uses-features—as input for analysis.
  • These features are grouped into three distinct observation views based on their semantic types and information content.
  • A carefully designed multi-view prompt engineering technique guides the LLM (gpt-4-1106-preview) to generate descriptive, behavior-predictive summaries for each view.
  • The LLM-generated textual outputs are embedded into vector representations using text-embedding-ada-002 for downstream classification.
  • A deep neural network (DNN) classifier fuses the multi-view embeddings to detect malware with high accuracy.
  • Finally, the DNN’s classification result and the LLM-generated summaries are used to generate heuristic diagnostic reports for interpretability.

Experimental results

Research questions

  • RQ1Can multi-view prompt engineering with LLMs effectively extract and represent behavioral semantics from static Android app features?
  • RQ2Does the fusion of multi-view LLM-generated summaries improve malware detection accuracy compared to traditional feature engineering methods?
  • RQ3Can the LLM-generated diagnostic reports provide meaningful, interpretable insights for security researchers?
  • RQ4How does AppPoet compare in performance and interpretability to established baselines like Drebin?
  • RQ5What are the limitations of relying solely on static analysis and LLM hallucinations in this detection pipeline?

Key findings

  • AppPoet achieves a detection accuracy of 97.15% and an F1 score of 97.21%, significantly outperforming the Drebin baseline and its variants.
  • The case study confirms that AppPoet’s diagnostic reports are effective in highlighting key malicious indicators, such as the use of 'Landroid/telephony/TelephonyManager.getDeviceId'.
  • Unlike Drebin, which assigns low weights to critical malicious APIs, AppPoet provides a more balanced and accurate assessment of malicious features.
  • The system demonstrates improved interpretability by generating human-readable summaries that explain the reasoning behind detection decisions.
  • The method is scalable and can be extended to include additional static features and views to further enhance detection performance.
  • The authors identify LLM hallucinations and network-dependent API usage as current limitations, suggesting future work on local LLM deployment and RAG-enhanced reasoning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.