FiCoVuL: A Framework for Fine-grained and Cross-function Code Vulnerability Detection

Detecting vulnerabilities in software development is crucial yet challenging. Deep learning-based approaches have shown promise in automatically learning features for vulnerable function detection. In practice, human analysts need to correlate the behavioral logic of multiple functions to confirm the occurrence of vulnerabilities. However, existing works fail to consider the contextual information across functions. Furthermore, human analysts expect models to provide finer-grained explanations to assist in the fixing process. In this paper, we present FiCoVuL, a framework for analyzing interconnected functions and providing fine-grained guidance for vulnerability fixing. FiCoVuL utilizes Function Fusion to extract function definitions and their call relationships from a project, and synthesize multiple functions into one for joint analysis. It models code as a multi-relational graph, capturing rich syntactic and semantic relationships between code statements. A multi-relational graph attention network is leveraged to perform message passing between nodes and edge relationships, generating graph-level and node-level representations. These representations are utilized for vulnerability function prediction and code line ranking, assisting in vulnerability fixing. We evaluate FiCoVuL on a public vulnerability dataset and a self-constructed cross-function one, and compare it with five existing detection models. Experimental results show that FiCoVuL significantly outperforms other methods in both vulnerability detection and localization.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Software Engineering and Methodology
Published
2026-09-15
DOI
https://doi.org/10.1145/3842381
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

FiCoVuL: A Framework for Fine-grained and Cross-function Code Vulnerability Detection

Jiaping Gui, Yue Wu, Futai Zou, Ping Yi et al.
ACM Transactions on Software Engineering and Methodology
Software Engineering Research
article

FiCoVuL: A Framework for Fine-grained and Cross-function Code Vulnerability Detection

Jiaping Gui, Yue Wu, Futai Zou, Ping Yi, Hongjun Huang, Haiyang Yu, Liang Zhang
article en

Abstract

Detecting vulnerabilities in software development is crucial yet challenging. Deep learning-based approaches have shown promise in automatically learning features for vulnerable function detection. In practice, human analysts need to correlate the behavioral logic of multiple functions to confirm the occurrence of vulnerabilities. However, existing works fail to consider the contextual information across functions. Furthermore, human analysts expect models to provide finer-grained explanations to assist in the fixing process. In this paper, we present FiCoVuL, a framework for analyzing interconnected functions and providing fine-grained guidance for vulnerability fixing. FiCoVuL utilizes Function Fusion to extract function definitions and their call relationships from a project, and synthesize multiple functions into one for joint analysis. It models code as a multi-relational graph, capturing rich syntactic and semantic relationships between code statements. A multi-relational graph attention network is leveraged to perform message passing between nodes and edge relationships, generating graph-level and node-level representations. These representations are utilized for vulnerability function prediction and code line ranking, assisting in vulnerability fixing. We evaluate FiCoVuL on a public vulnerability dataset and a self-constructed cross-function one, and compare it with five existing detection models. Experimental results show that FiCoVuL significantly outperforms other methods in both vulnerability detection and localization.

ACM Transactions on Software Engineering and Methodology
State Grid Corporation of China (China) (CN), Shanghai Jiao Tong University (CN)
Reduced inequalities
Openalex Percentile: Top 4%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.