HuBCAP: A Hunk-based and Context-aware Predictor for Silent Vulnerability-fix Identification

Silent vulnerability fixes (SVFs) are pervasive in open-source ecosystems and pose significant risks to software supply chains due to incomplete or delayed disclosure. Existing SVF identification methods often rely on coarse-grained diff representations, loosely aligned change fragments, or limited modeling of developer intent, restricting their robustness and practical applicability across projects. This paper presents HuBCAP, a hunk-based and context-aware predictor that aligns code-change representations with Git’s standardized hunk structure while leveraging pre-trained models (PTMs) for semantic reasoning. HuBCAP explicitly models semantic differences between paired pre- and post-change code fragments, performs hierarchical aggregation at both hunk and file levels, and integrates commit-message semantics within a unified dual-branch architecture. The framework avoids language-specific parsing rules and handcrafted syntactic features, following a language-agnostic design principle based on Git-standard diff structures. We evaluate HuBCAP on a large-scale, manually curated dataset covering Java and Python projects and compare it with state-of-the-art task-specific models and general-purpose LLMs. Results demonstrate consistent performance improvements. Module-level ablation experiments confirm the necessity of hunk-level aggregation, file-level aggregation, and explicit difference modeling, while input-level analyses reveal the complementary roles of code changes and commit messages. Finally, real-world case studies in software supply chain ecosystems show that HuBCAP can uncover undisclosed and cross-project propagated vulnerability fixes. We further analyze false positive patterns and discuss deployment-oriented optimization strategies such as confidence-aware triaging and threshold tuning, highlighting HuBCAP’s practical value for improving supply chain risk visibility.

Authors

Institutions

Publication Details

Journal
International Journal of Software Engineering and Knowledge Engineering
Published
2026-04-06
DOI
https://doi.org/10.1142/s0218194026500300
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

HuBCAP: A Hunk-based and Context-aware Predictor for Silent Vulnerability-fix Identification

Guisheng Fan, YuGuo Liang, Huiqun Yu, Jianan Dong et al.
International Journal of Software Engineering and Knowledge Engineering
Software Engineering Research
article

HuBCAP: A Hunk-based and Context-aware Predictor for Silent Vulnerability-fix Identification

Guisheng Fan, YuGuo Liang, Huiqun Yu, Jianan Dong, Chengcheng Wu
article en

Abstract

Silent vulnerability fixes (SVFs) are pervasive in open-source ecosystems and pose significant risks to software supply chains due to incomplete or delayed disclosure. Existing SVF identification methods often rely on coarse-grained diff representations, loosely aligned change fragments, or limited modeling of developer intent, restricting their robustness and practical applicability across projects. This paper presents HuBCAP, a hunk-based and context-aware predictor that aligns code-change representations with Git’s standardized hunk structure while leveraging pre-trained models (PTMs) for semantic reasoning. HuBCAP explicitly models semantic differences between paired pre- and post-change code fragments, performs hierarchical aggregation at both hunk and file levels, and integrates commit-message semantics within a unified dual-branch architecture. The framework avoids language-specific parsing rules and handcrafted syntactic features, following a language-agnostic design principle based on Git-standard diff structures. We evaluate HuBCAP on a large-scale, manually curated dataset covering Java and Python projects and compare it with state-of-the-art task-specific models and general-purpose LLMs. Results demonstrate consistent performance improvements. Module-level ablation experiments confirm the necessity of hunk-level aggregation, file-level aggregation, and explicit difference modeling, while input-level analyses reveal the complementary roles of code changes and commit messages. Finally, real-world case studies in software supply chain ecosystems show that HuBCAP can uncover undisclosed and cross-project propagated vulnerability fixes. We further analyze false positive patterns and discuss deployment-oriented optimization strategies such as confidence-aware triaging and threshold tuning, highlighting HuBCAP’s practical value for improving supply chain risk visibility.

International Journal of Software Engineering and Knowledge Engineering
East China University of Science and Technology (CN)
National Natural Science Foundation of China
Life in Land
Openalex Percentile: Top 28%
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.