Repository-Level Graph Representation Learning for Enhanced Security Patch Detection
Xin-Cheng Wen, Zirui Lin, Cuiyun Gao, Hongyu Zhang, Yong Wang, Qing, Liao

TL;DR
This paper introduces RepoSPD, a novel repository-level graph learning framework for security patch detection that effectively captures complex code dependencies and multi-file changes, outperforming existing methods.
Contribution
The paper presents a new repository-level graph construction and a structure-aware patch representation, advancing security patch detection by integrating semantic and structural information.
Findings
RepoSPD achieves 11.90% higher accuracy on SPI-DB* dataset.
RepoSPD outperforms six existing methods and five static tools.
The framework effectively models complex code dependencies and multi-file changes.
Abstract
Software vendors often silently release security patches without providing sufficient advisories (e.g., Common Vulnerabilities and Exposures) or delayed updates via resources (e.g., National Vulnerability Database). Therefore, it has become crucial to detect these security patches to ensure secure software maintenance. However, existing methods face the following challenges: (1) They primarily focus on the information within the patches themselves, overlooking the complex dependencies in the repository. (2) Security patches typically involve multiple functions and files, increasing the difficulty in well learning the representations. To alleviate the above challenges, this paper proposes a Repository-level Security Patch Detection framework named RepoSPD, which comprises three key components: 1) a repository-level graph construction, RepoCPG, which represents software patches by merging…
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
TopicsNetwork Security and Intrusion Detection · Information and Cyber Security · Cybercrime and Law Enforcement Studies
MethodsFocus
