PLocator : Fine-Grained Patch Presence Test in Binaries via Patch Code Localization
Open Access
- 1 October 2025
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
- Vol. 35 (8) , 1-36
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.Keywords
Funding Information
- National Natural Science Foundation of China (Grant No. 92467201, No. 62202462)
- National Key Research and Development Program of China (No. 2022YFB3103904)
This publication has 23 references indexed in Scilit:
- PatchDiscovery: Patch Presence Test for Identifying Binary Vulnerabilities Based on Key Basic BlocksIEEE Transactions on Software Engineering, 2023
- B2SFinder: Detecting Open-Source Software Reuse in COTS Software2019
- SPAIN: Security Patch Analysis for Binaries towards Understanding the Pain and Pills2017
- Semantics-Based Obfuscation-Resilient Binary Code Similarity Comparison with Applications to Software and Algorithm Plagiarism DetectionIEEE Transactions on Software Engineering, 2017
- Semantics-based obfuscation-resilient binary code similarity comparison with applications to software plagiarism detection2014
- Control Flow-Based Malware VariantDetectionIEEE Transactions on Dependable and Secure Computing, 2014
- Tracelet-based code search in executables2014
- Design2011
- Detecting code clones in binary executables2009
- Code Normalization for Self-Mutating MalwareIEEE Security & Privacy, 2007