paper-with-me

홈 › Papers

Investigating Large Language Models for Code Vulnerability Detection: An Experimental Study

2024-12-24 · Xuefeng Jiang, Lvhua Wu, Sheng Sun, Jia Li, Jingjing Xue, Yuwei Wang, Tingting Wu, Min Liu

Code vulnerability detection (CVD) is essential for addressing and preventing system security issues, playing a crucial role in ensuring software security. Previous learning-based vulnerability detection methods rely on either fine-tuning medium-size sequence models or training smaller neural networks from scratch. Recent advancements in large pre-trained language models (LLMs) have showcased remarkable capabilities in various code intelligence tasks including code understanding and generation. However, the effectiveness of LLMs in detecting code vulnerabilities is largely under-explored. This work aims to investigate the gap by fine-tuning LLMs for the CVD task, involving four widely-used open-source LLMs. We also implement other five previous graph-based or medium-size sequence models for comparison. Experiments are conducted on five commonly-used CVD datasets, including both the part of short samples and long samples. In addition, we conduct quantitative experiments to investigate the class imbalance issue and the model's performance on samples of different lengths, which are rarely studied in previous works. To better facilitate communities, we open-source all codes and resources of this study in https://github.com/SakiRinn/LLM4CVD and https://huggingface.co/datasets/xuefen/VulResource.

📄 PDF Abstract BibTeX arXiv:2412.18260

Code (1)

sakirinn/llm4cvd 공식 구현 pytorch

Tasks

Vulnerability Detection

Similar Papers 제목 키워드 기반

Words Speak Louder Than Code: Investigating Cognitive Heuristics in LLM-Based Code Vulnerability Detection

2026-06-29 · Asif Shahriar, Hongyu Cai, Hadjer Benkraouda, Gang Wang 외 arxiv

Researchers and practitioners increasingly apply Large Language Models (LLMs) for automated vulnerability detection. Recent work has shown that LLMs are susceptible to the same cognitive heuristics that bias human judgme…

Vulnerability Detection

Enhancing Reverse Engineering: Investigating and Benchmarking Large Language Models for Vulnerability Analysis in Decompiled Binaries

2024-11-07 · Dylan Manuel, Nafis Tanveer Islam, Joseph Khoury, Ana Nunez 외

Security experts reverse engineer (decompile) binary code to identify critical security vulnerabilities. The limited access to source code in vital systems - such as firmware, drivers, and proprietary software used in Cr…

Benchmarking

Finetuning Large Language Models for Vulnerability Detection

2024-01-30 · Alexey Shestov, Rodion Levichev, Ravil Mussabayev, Evgeny Maslov 외

This paper presents the results of finetuning large language models (LLMs) for the task of detecting vulnerabilities in source code. We leverage WizardCoder, a recent improvement of the state-of-the-art LLM StarCoder, an…

Transfer LearningVulnerability Detection

To Err is Machine: Vulnerability Detection Challenges LLM Reasoning

2024-03-25 · Benjamin Steenhoek, Md Mahbubur Rahman, Monoshi Kumar Roy, Mirza Sanjida Alam 외

In this paper, we present a challenging code reasoning task: vulnerability detection. Large Language Models (LLMs) have shown promising results in natural-language and math reasoning, but state-of-the-art (SOTA) models r…

Code GenerationIn-Context LearningMathProgram Repair+1

Security Vulnerability Detection with Multitask Self-Instructed Fine-Tuning of Large Language Models

2024-06-09 · Aidan Z. H. Yang, Haoye Tian, He Ye, Ruben Martins 외

Software security vulnerabilities allow attackers to perform malicious activities to disrupt software operations. Recent Transformer-based language models have significantly advanced vulnerability detection, surpassing t…

Graph Neural NetworkVulnerability Detection