Large Language Models for In-File Vulnerability Localization Can Be "Lost in the End"
Collegium Helveticum ETH Zurich(苏黎世联邦理工学院赫尔维蒂库姆学院);University of Zurich(苏黎世大学)
Francesco Sovrano, Adam Bauer, Alberto Bacchelli
备注:
Accepted for publication at the ACM International Conference on the Foundations of Software Engineering (FSE) 2025. Replication Package: https://doi.org/10.5281/zenodo.14840519
Recent advancements in artificial intelligence have enabled processing of larger inputs, leading everyday software developers to increasingly rely on chat-based large language models (LLMs) like GPT-3.5 and GPT-4 to detect vulnerabilities across entire files, not just within functions. This new development practice requires researchers to urgently investigate whether commonly used LLMs can effectively analyze large file-sized inputs, in order to provide timely insights for software developers and engineers about the pros and cons of this emerging technological trend. Hence, the goal of this paper is to evaluate the effectiveness of several state-of-the-art chat-based LLMs, including the GPT models, in detecting in-file vulnerabilities. We conducted a costly investigation into how the performance of LLMs varies based on vulnerability type, input size, and vulnerability location within the file. To give enough statistical power to our study, we could only focus on the three most common (as well as dangerous) vulnerabilities: XSS, SQL injection, and path traversal. Our findings indicate that the effectiveness of LLMs in detecting these vulnerabilities is strongly influenced by both the location of the vulnerability and the overall size of the input. Specifically, regardless of the vulnerability type, LLMs tend to significantly (p < .05) underperform when detecting vulnerabilities located toward the end of larger files, a pattern we call the 'lost-in-the-end' effect. Finally, to further support software developers and practitioners, we also explored the optimal input size for these LLMs and presented a simple strategy for identifying it, which can be applied to other models and vulnerability types. Eventually, we show how adjusting the input size can lead to significant improvements in LLM-based vulnerability detection, with an average recall increase of over 37% across all models.
DiffuGuard: How Intrinsic Safety is Lost and Found in Diffusion Large Language Models
Beijing University of Posts and Telecommunications(北京邮电大学);National University of Singapore(新加坡国立大学);Nanyang Technological University(南洋理工大学);Tsinghua University(清华大学);The Chinese University of Hong Kong(香港中文大学);Squirrel Ai Learning(松鼠AI);Peking University(北京大学)
Self-Describing Structured Data with Dual-Layer Guidance: A Lightweight Alternative to RAG for Precision Retrieval in Large-Scale LLM Knowledge Navigation
Weakly Supervised Vulnerability Localization via Multiple Instance Learning
The Chinese University of Hong Kong(香港中文大学);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Sun Yat-sen University (Zhuhai)(中山大学(珠海));Chongqing University(重庆大学)
本文介绍了来自MSR 2021 Hackcraft的结果。我们的团队调查包含已知安全漏洞的文件/项目,以及它们在开源软件中的存储库中的分布情况。这些安全漏洞可能通过代码重用传播,即使在不同版本的代码中修复了漏洞。我们利用World of Code基础设施从几乎完整的开源软件集合中发现文件级代码重复。本文描述了一种方法和一组工具,用于查找使用已知易受攻击文件的所有开源项目以及这些文件的任何以前版本。
AutoVulnPHP: LLM-Powered Two-Stage PHP Vulnerability Detection and Automated Localization
Beijing Electronic Science and Technology Institute(北京电子科技学院);Nankai University(南开大学);The 15th Research Institute of China Electronics Technology Group Corporation(中国电子科技集团公司第十五研究所)
DREA: Decoupled Reasoning and Exploration Agents for Repository-Level Vulnerability Detection
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院)
Large Language Models Cannot Reliably Detect Vulnerabilities in JavaScript: The First Systematic Benchmark and Evaluation
Lanzhou University(兰州大学);Zhejiang University(浙江大学);Beihang University(北京航空航天大学);Technology Support Center of the Cyberspace Administration of China(国家互联网信息办公室技术支撑中心);Fudan University(复旦大学);Beijing University of Posts(北京邮电大学)
FuzzTheREST: An Intelligent Automated Black-box RESTful API Fuzzer
Porto School of Engineering (ISEP)(波尔图工程学院(ISEP));Research Group on Intelligent Engineering and Computing for Advanced Innovation and Development (GECAD)(智能工程与先进创新发展计算研究组(GECAD))
Statistical Analysis of Executability and Program Equivalence in Decompilation for IoT Vulnerability Detection
College of Science and Technology, Nihon University(日本大学理工学部);Waseda Institute for Advanced Study, Waseda University(早稻田大学高等研究院);Graduate School of Informatics and Engineering, The University of Electro-Communications(电气通信大学信息工学研究科)
Exploring the SECURITY.md in the Dependency Chain: Preliminary Analysis of the PyPI Ecosystem
Faculty of Information and Communication Technology, Mahidol University(玛希隆大学信息通信技术学院);Graduate School of Science and Technology, Nara Institute of Science and Technology (NAIST)(奈良先端科学技术大学院大学理工学研究科);Graduate School of Information Science and Technology, The University of Osaka(大阪大学情报理工学研究科)
Automated Detection of Configuration-Specific Security Vulnerabilities via Patch Analysis
Federal University of Bahia(巴伊亚联邦大学);University of Notre Dame(圣母大学);Federal Rural University of Pernambuco(伯南布哥联邦农村大学);Federal University of Rio de Janeiro(里约热内卢联邦大学)