Yi Li bio photo

Yi Li

Associate Professor

College of Computing and Data Science (CCDS)
Nanyang Technological University (NTU)

Address: Block N4-02b-63
50 Nanyang Avenue, Singapore 639798
Phone: +65 6790 4287

Email Twitter LinkedIn GitHub Bitbucket Google Scholar ORCID

PLocator: Fine-Grained Patch Presence Test in Binaries via Patch Code Localization

Chaopeng Dong, Jingdong Guo, Shouguo Yang, Yang Xiao, Yi Li, Hong Li, Zhi Li, and Limin Sun

ACM Transactions on Software Engineering and Methodology, 2025

Abstract: 1-day vulnerabilities in binaries have become a major threat to software security. Patch presence test is one of the effective ways to detect the vulnerability. However, existing patch presence test works do not perform well in practical scenarios due to the interference from the various compilers and optimizations, patch-similar code blocks, and irrelevant functions in stripped binaries. In this paper, we propose a novel approach named PLocator, which leverages constants from both the patch code and its context, extracted from the control flow graph, to form the anchors and accurately locate the real patch code in the target function, offering a practical solution for real-world vulnerability detection scenarios. To evaluate the effectiveness of PLocator, we collected 73 CVEs and constructed two datasets with and without the irrelevant functions, comprising 1,090 and 27,250 functions, respectively. Moreover, we set three different experiments, i.e., Same, XO (cross-optimizations), and XC (cross-compilers), to evaluate the performance of existing patch presence test approaches and PLocator. The results demonstrate that PLocator outperforms the second state-of-the-art approach on accuracy by 44.3% (without irrelevant functions) and 74.9% (with irrelevant functions), indicating that PLocator is more practical for the patch presence task.

Cite:

@article{Dong2025PFG,
  author = {Dong, Chaopeng and Guo, Jingdong and Yang, Shouguo and Xiao, Yang and Li, Yi and Li, Hong and Li, Zhi and Sun, Limin},
  journal = {ACM Transactions on Software Engineering and Methodology},
  month = sep,
  title = {{PLocator}: Fine-Grained Patch Presence Test in Binaries via Patch Code Localization},
  year = {2025}
}