paper-with-me

홈 › Papers

Repository-Level Graph Representation Learning for Enhanced Security Patch Detection

2024-12-11 · Xin-Cheng Wen, Zirui Lin, Cuiyun Gao, Hongyu Zhang, Yong Wang, Qing Liao

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 pre-patch and post-patch source code at the repository level; 2) a structure-aware patch representation, which fuses the graph and sequence branch and aims at comprehending the relationship among multiple code changes; 3) progressive learning, which facilitates the model in balancing semantic and structural information. To evaluate RepoSPD, we employ two widely-used datasets in security patch detection: SPI-DB and PatchDB. We further extend these datasets to the repository level, incorporating a total of 20,238 and 28,781 versions of repository in C/C++ programming languages, respectively, denoted as SPI-DB* and PatchDB*. We compare RepoSPD with six existing security patch detection methods and five static tools. Our experimental results demonstrate that RepoSPD outperforms the state-of-the-art baseline, with improvements of 11.90%, and 3.10% in terms of accuracy on the two datasets, respectively.

📄 PDF Abstract BibTeX arXiv:2412.08068

Code (1)

Xin-Cheng-Wen/RepoSPD 공식 구현 pytorch

Tasks

graph constructionGraph Representation LearningRepresentation Learning

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

Graph Anomaly Detection at Group Level: A Topology Pattern Enhanced Unsupervised Approach

2023-08-02 · Xing Ai, Jialong Zhou, Yulin Zhu, Gaolei Li 외

Graph anomaly detection (GAD) has achieved success and has been widely applied in various domains, such as fraud detection, cybersecurity, finance security, and biochemistry. However, existing graph anomaly detection alg…

Anomaly DetectionContrastive LearningFraud DetectionGraph Anomaly Detection

RepoHyper: Search-Expand-Refine on Semantic Graphs for Repository-Level Code Completion

2024-03-10 · Huy N. Phan, Hoang N. Phan, Tien N. Nguyen, Nghi D. Q. Bui

Code Large Language Models (CodeLLMs) have demonstrated impressive proficiency in code completion tasks. However, they often fall short of fully understanding the extensive context of a project repository, such as the in…

Code CompletionLink PredictionRetrieval

MPC-Patch-Bench: Security-Aware LLM Code Patch for Multi-Party Computation

2026-06-09 · Yukuan Zhang, Mengxin Zheng, Qian Lou arxiv

Repository-level benchmarks for evaluating Large Language Model (LLM) code repair on Secure Multi-Party Computation (MPC) software do not yet exist, and directly transplanting general-purpose benchmarks such as SWE-bench…

Code Repair

Toward Executable Repository-Level Code Generation via Environment Alignment

2026-04-04 · Ruwei Pan, Junlei Shen, Linhao Wu, Yueheng Zhu 외 arxiv

Large language models (LLMs) have achieved strong performance on code generation, but existing methods still struggle with repository-level code generation under executable validation. Under this evaluation setting, succ…

Code Generation

A.S.E: A Repository-Level Benchmark for Evaluating Security in AI-Generated Code

2025-08-25 · Keke Lian, Bin Wang, Lei Zhang, Libo Chen 외 arxiv

The increasing adoption of large language models (LLMs) in software engineering necessitates rigorous security evaluation of their generated code. However, existing benchmarks often lack relevance to real-world AI-assist…

Code Generation