Enhancing Vulnerability Detection via Inter-procedural Semantic Completion
Open Access
- 22 June 2025
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Software Engineering
- Vol. 2 (ISSTA) , 825-847
Abstract
Inspired by advances in deep learning, numerous learning-based approaches for vulnerability detection have emerged, primarily operating at the function level for scalability. However, this design choice has a critical limitation: many vulnerabilities span multiple functions, causing function-level approaches to lose the semantics of called functions and fail to capture true vulnerability patterns. To address this issue, we propose VulnSC, a novel framework designed to enhance learning-based approaches by complementing inter-procedural semantics. VulnSC retrieves the source code of called functions for datasets and leverages large language models (LLMs) with well-designed prompts to generate summaries for these functions. The datasets, enhanced with these summaries, are fed into neural networks for improved vulnerability detection. VulnSC is the first general framework to integrate inter-procedural semantics into existing learning-based approaches for vulnerability detection while maintaining scalability. We evaluate VulnSC on four state-of-the-art learning-based approaches using two widely used datasets, and our experimental results demonstrate that VulnSC significantly enhances detection performance with minimal additional computational overhead.Keywords
This publication has 29 references indexed in Scilit:
- GRACE: Empowering LLM-based software vulnerability detection with graph structure and in-context learningJournal of Systems and Software, 2024
- Enhancing Security Patch Identification by Capturing Structures in CommitsIEEE Transactions on Dependable and Secure Computing, 2022
- Deep Learning Based Vulnerability Detection: Are We There Yet?IEEE Transactions on Software Engineering, 2021
- D2A: A Dataset Built for AI-Based Vulnerability Detection Methods Using Differential Analysis2021
- Automated Vulnerability Detection in Source Code Using Deep Representation Learning2018
- Word2VecNatural Language Engineering, 2016
- On-demand dynamic summary-based points-to analysis2012
- Refinement-based context-sensitive points-to analysis for JavaACM SIGPLAN Notices, 2006
- Context-insensitive alias analysis reconsideredACM SIGPLAN Notices, 1995
- Efficient context-sensitive pointer analysis for C programsACM SIGPLAN Notices, 1995