arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.01269cs.CRcs.AIcs.SE
收藏

LLbezpeky:利用大型语言模型进行漏洞检测

LLbezpeky: Leveraging Large Language Models for Vulnerability Detection

University of Waterloo(滑铁卢大学)

Noble Saji Mathews, Yelizaveta Brus, Yousra Aafer, Meiyappan Nagappan, Shane McIntosh

AI总结:

本文提出LLbezpeky,利用大型语言模型构建AI驱动的工作流程以检测Android应用漏洞,实验表明其在Ghera基准中正确标记不安全应用比例达91.67%,并揭示了配置对TP和FP率的影响。

摘要:

尽管在构建安全系统方面持续研究和取得进展,Android应用程序仍不断出现漏洞,因此需要有效的检测方法。当前涉及静态和动态分析工具的策略存在局限性,如大量的误报和有限的分析范围,这使得它们难以采用。在过去几年中,基于机器学习的方法已被广泛探索用于漏洞检测,但其现实世界的适用性受到数据需求和特征工程挑战的制约。大型语言模型(LLMs)凭借其庞大的参数,在理解人类语言以及编程语言的语义方面展现出了巨大潜力。我们深入探讨了LLMs在Android安全背景下检测漏洞的有效性。我们专注于构建一个AI驱动的工作流程,以协助开发者识别和修复漏洞。我们的实验表明,LLMs在发现应用程序内问题方面超出了我们的预期,在Ghera基准测试中,有91.67%的案例正确标记了不安全的应用程序。我们利用从实验中得出的推论,构建了一个稳健且可操作的漏洞检测系统,并展示了其有效性。我们的实验还揭示了各种简单的配置如何影响真阳性(TP)和假阳性(FP)率。

英文摘要:

Despite the continued research and progress in building secure systems, Android applications continue to be ridden with vulnerabilities, necessitating effective detection methods. Current strategies involving static and dynamic analysis tools come with limitations like overwhelming number of false positives and limited scope of analysis which make either difficult to adopt. Over the past years, machine learning based approaches have been extensively explored for vulnerability detection, but its real-world applicability is constrained by data requirements and feature engineering challenges. Large Language Models (LLMs), with their vast parameters, have shown tremendous potential in understanding semnatics in human as well as programming languages. We dive into the efficacy of LLMs for detecting vulnerabilities in the context of Android security. We focus on building an AI-driven workflow to assist developers in identifying and rectifying vulnerabilities. Our experiments show that LLMs outperform our expectations in finding issues within applications correctly flagging insecure apps in 91.67% of cases in the Ghera benchmark. We use inferences from our experiments towards building a robust and actionable vulnerability detection system and demonstrate its effectiveness. Our experiments also shed light on how different various simple configurations can affect the True Positive (TP) and False Positive (FP) rates.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑