Skip to main content
QUICK 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 Science被引用 3
一句话总结

AppPoet 提出了一种基于大型语言模型(LLM)的 Android 恶意软件检测系统,通过多视角提示工程从静态 APK 特征(权限、API、URL、uses-features)中提取并解析行为语义。通过 LLM 生成人类可读的函数描述和行为摘要,并利用深度神经网络进行融合,AppPoet 实现了 97.15% 的准确率和 97.21% 的 F1 分数,优于基线方法,同时生成可解释的诊断报告。

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.

研究动机与目标

  • 为解决传统基于特征工程的恶意软件检测方法在深层语义理解方面的局限性,并缺乏可解释的诊断报告的问题。
  • 利用大型语言模型(LLM)的自然语言理解能力,从静态 Android 应用特征中挖掘行为语义。
  • 设计一种多视角提示工程框架,引导 LLM 为不同类型的特征生成函数描述和行为摘要。
  • 通过深度神经网络分类器融合多视角文本表示,提升恶意软件检测的准确率。
  • 生成启发式、人类可读的诊断报告,以支持安全研究人员对检测结果进行分析和验证。

提出的方法

  • AppPoet 选择四种关键静态特征——权限、API、URL 和 uses-features——作为分析输入。
  • 这些特征根据其语义类型和信息内容被划分为三个不同的观察视角。
  • 通过精心设计的多视角提示工程技术,引导 LLM(gpt-4-1106-preview)为每个视角生成描述性、具有行为预测性的摘要。
  • 将 LLM 生成的文本输出使用 text-embedding-ada-002 嵌入为向量表示,用于后续分类。
  • 通过深度神经网络(DNN)分类器融合多视角嵌入,实现高准确率的恶意软件检测。
  • 最后,结合 DNN 的分类结果和 LLM 生成的摘要,生成启发式诊断报告以增强可解释性。

实验结果

研究问题

  • RQ1使用 LLM 进行多视角提示工程是否能有效从静态 Android 应用特征中提取并表示行为语义?
  • RQ2与传统特征工程方法相比,融合多视角 LLM 生成的摘要是否能提升恶意软件检测的准确率?
  • RQ3LLM 生成的诊断报告能否为安全研究人员提供有意义且可解释的洞察?
  • RQ4与 Drebin 等成熟基线系统相比,AppPoet 在性能和可解释性方面表现如何?
  • RQ5在该检测流程中,仅依赖静态分析和 LLM 幻觉现象存在哪些局限性?

主要发现

  • AppPoet 实现了 97.15% 的检测准确率和 97.21% 的 F1 分数,显著优于 Drebin 基线及其变体。
  • 案例研究证实,AppPoet 的诊断报告能有效突出关键恶意指标,例如 'Landroid/telephony/TelephonyManager.getDeviceId' 的使用。
  • 与 Drebin 不同,后者对关键恶意 API 分配较低权重,AppPoet 对恶意特征提供了更均衡、更准确的评估。
  • 该系统通过生成人类可读的摘要,清晰解释检测决策的推理过程,显著提升了可解释性。
  • 该方法具有良好的可扩展性,可进一步集成额外的静态特征和视角以持续提升检测性能。
  • 作者识别出 LLM 幻觉和依赖网络的 API 使用是当前的局限,建议未来工作探索本地 LLM 部署和 RAG 增强推理。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。