FuncVul: An Effective Function Level Vulnerability Detection Model using LLM and Code Chunk
Sajal Halder, Muhammad Ejaz Ahmed, Seyit Camtepe

TL;DR
FuncVul is a novel function-level vulnerability detection model using large language models and code chunks, significantly improving accuracy over existing methods in identifying vulnerabilities in C/C++ and Python code.
Contribution
The paper introduces FuncVul, a code chunk-based vulnerability detection model utilizing GraphCodeBERT, which enhances function-level vulnerability identification accuracy compared to prior approaches.
Findings
Achieves 87-92% accuracy and 86-92% F1 score across datasets.
Outperforms state-of-the-art models with 53.9% higher accuracy.
Effectively detects multiple vulnerabilities within functions.
Abstract
Software supply chain vulnerabilities arise when attackers exploit weaknesses by injecting vulnerable code into widely used packages or libraries within software repositories. While most existing approaches focus on identifying vulnerable packages or libraries, they often overlook the specific functions responsible for these vulnerabilities. Pinpointing vulnerable functions within packages or libraries is critical, as it can significantly reduce the risks associated with using open-source software. Identifying vulnerable patches is challenging because developers often submit code changes that are unrelated to vulnerability fixes. To address this issue, this paper introduces FuncVul, an innovative code chunk-based model for function-level vulnerability detection in C/C++ and Python, designed to identify multiple vulnerabilities within a function by focusing on smaller, critical code…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Malware Detection Techniques · Network Security and Intrusion Detection · Web Application Security Vulnerabilities
