MGVul: a Multi-Granularity Detection Framework for Software Vulnerability
Source code vulnerability detection is a critical issue in software security. Existing detection methods primarily focus on the function-granularity, neglecting inter-function call information and lacking the ability to detect inter-function vulnerability. The isolation of functions is one of the reasons that limits the performance of deep learning models. In this work, we propose MGVul: a Multi-granularity detection framework for software vulnerability. This framework treats a project as a whole graph, files as subgraphs, functions as nodes, and function call relationships as edges. By using a multi-expert mixture graph neural network to learn inter-function call information, it not only improves the model’s detection performance at the function-granularity but also is capable of handling detection tasks at the file-granularity and project-granularity. Preliminary evaluation shows that introducing inter-function call relationships bring an average F1-score improvement of 7.99% for function-level detection. Meanwhile, our framework also shows promising results at both the file-granularity and the project-granularity. The source code will be released upon paper acceptance.
Authors
- Zhen-Hua Ling (ORCID: https://orcid.org/0000-0001-7853-5273)
- Yanjun Li (ORCID: https://orcid.org/0009-0004-1157-6790)
- Xiangyu Zhao (ORCID: https://orcid.org/0000-0002-7721-6227)
- Zhengpeng Zha
Institutions
- University of Science and Technology of China (CN)
Publication Details
- Published
- 2024-12-03
- DOI
- https://doi.org/10.1109/apsipaasc63619.2025.10849117
- Citations
- 1
- Primary Topic
- Software Reliability and Analysis Research
- Type
- article
- Field-Weighted Citation Impact
- 0.49