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
软件测试与验证对于确保现代软件系统的可靠性和安全性至关重要。传统上,模型检查和定理证明等形式化验证技术为检测缺陷和漏洞提供了严格的框架。然而,当这些方法应用于复杂的真实程序时,往往面临可扩展性挑战。近年来,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.
A Systematic Literature Review on Detecting Software Vulnerabilities with Large Language Models
Esslingen University(埃斯林根大学);Institute for Intelligent Systems, Esslingen University(智能系统研究所,埃斯林根大学);Chair of Communication Networks, University of Tübingen(通信网络教研室,图宾根大学)
Harnessing Large Language Models for Software Vulnerability Detection: A Comprehensive Benchmarking Study
School of Information Technologies Tallinn University of Technology(塔林理工大学信息技术学院);School of Informatics, Computing, and Cyber Systems Northern Arizona University(北亚利桑那大学信息学、计算与网络系统学院)
ParaVul: A Parallel Large Language Model and Retrieval-Augmented Framework for Smart Contract Vulnerability Detection
School of Automation, Guangdong University of Technology(广东科技大學自動化學院);College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics(南京航空航天大學計算機科學與技術學院);School of Cyberspace Science and Technology, Beijing Jiaotong University(北京交通大學網絡空間科學與技術學院);School of Computer Science and Technology, Guangdong University of Technology(廣東科技大學計算機科學與技術學院);College of Computing and Data Science, Nanyang Technological University(南洋理工大學計算與數據科學學院)
City University of Hong Kong(香港城市大学);Rutgers University(罗格斯大学);University of Science and Technology of China(中国科学技术大学);Universiteit van Amsterdam(阿姆斯特丹大学);Baidu Inc(百度公司)