arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.10784cs.SEcs.AI
收藏

漏洞检测:从形式化验证到大语言模型与混合方法:综合综述

Vulnerability Detection: From Formal Verification to Large Language Models and Hybrid Approaches: A Comprehensive Overview

Eötvös Loránd University (ELTE)(厄特沃什·罗兰大学(ELTE));Technology Innovation Institute (TII)(技术创新研究院(TII));University of Oslo(奥斯陆大学);Cyentific AS(赛恩蒂菲克公司);Guelma University(盖勒马大学);The University of Manchester(曼彻斯特大学);Federal University of Amazonas(亚马逊联邦大学)

Norbert Tihanyi, Tamas Bisztray, Mohamed Amine Ferrag, Bilel Cherif, Richard A. Dubniczky, Ridhi Jain, Lucas C. Cordeiro

AI总结:

本文综述软件漏洞检测中的经典形式化方法、基于 LLM 的分析及混合技术,探讨结合形式化保证与大模型洞见以提升验证有效性和可扩展性。

摘要:

软件测试与验证对于确保现代软件系统的可靠性和安全性至关重要。传统上,模型检查和定理证明等形式化验证技术为检测缺陷和漏洞提供了严格的框架。然而,当这些方法应用于复杂的真实程序时,往往面临可扩展性挑战。近年来,Large Language Models(LLMs,大语言模型)的出现为软件分析引入了一种新范式,利用其理解不安全编码实践的能力。尽管 LLMs 在缺陷预测和不变量生成等任务中展现出良好能力,但它们缺乏经典方法所具有的形式化保证。本文对最先进的软件测试与验证进行了全面研究,重点关注三类关键方法:经典形式化方法、基于 LLM 的分析,以及结合二者优势的新兴混合技术。我们探讨了每种方法的优势、局限性和实际应用,强调混合系统在弥补独立方法弱点方面的潜力。我们分析了将形式化严谨性与 LLM 驱动的洞见相结合,是否能够提升软件验证的有效性和可扩展性,并考察其作为通向更健壮、更具适应性的测试框架之路的可行性。

英文摘要:

Software testing and verification are critical for ensuring the reliability and security of modern software systems. Traditionally, formal verification techniques, such as model checking and theorem proving, have provided rigorous frameworks for detecting bugs and vulnerabilities. However, these methods often face scalability challenges when applied to complex, real-world programs. Recently, the advent of Large Language Models (LLMs) has introduced a new paradigm for software analysis, leveraging their ability to understand insecure coding practices. Although LLMs demonstrate promising capabilities in tasks such as bug prediction and invariant generation, they lack the formal guarantees of classical methods. This paper presents a comprehensive study of state-of-the-art software testing and verification, focusing on three key approaches: classical formal methods, LLM-based analysis, and emerging hybrid techniques, which combine their strengths. We explore each approach's strengths, limitations, and practical applications, highlighting the potential of hybrid systems to address the weaknesses of standalone methods. We analyze whether integrating formal rigor with LLM-driven insights can enhance the effectiveness and scalability of software verification, exploring their viability as a pathway toward more robust and adaptive testing frameworks.

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

↑