PPT4J: Patch Presence Test for Java Binaries
Open Access
- 12 April 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1-12
Abstract
The number of vulnerabilities reported in open source software has increased substantially in recent years. Security patches provide the necessary measures to protect software from attacks and vulnerabilities. In practice, it is difficult to identify whether patches have been integrated into software, especially if we only have binary files. Therefore, the ability to test whether a patch is applied to the target binary, a.k.a. patch presence test, is crucial for practitioners. However, it is challenging to obtain accurate semantic information from patches, which could lead to incorrect results. In this paper, we propose a new patch presence test framework named Ppt4J (Patch Presence Test for Java Binaries). Ppt4J is designed for open-source Java libraries. It takes Java binaries (i.e. bytecode files) as input, extracts semantic information from patches, and uses feature-based techniques to identify patch lines in the binaries. To evaluate the effectiveness of our proposed approach Ppt4J, we construct a dataset with binaries that include 110 vulnerabilities. The results show that Ppt4J achieves an F1 score of 98.5% with reasonable efficiency, improving the baseline by 14.2%. Furthermore, we conduct an in-the-wild evaluation of Ppt4J on JetBrains IntelliJ IDEA. The results suggest that a third-party library included in the software is not patched for two CVEs, and we have reported this potential security problem to the vendor.Keywords
All Related Versions
Funding Information
- Fundamental Research Funds for the Central Universities (226-2022-00064)
- National Natural Science Foundation of China (62141222)
- National Research Foundation Singapore (NRF-NRFI08-2022-0002)
This publication has 19 references indexed in Scilit:
- The Secret Life of Software Vulnerabilities: A Large-Scale Empirical StudyIEEE Transactions on Software Engineering, 2022
- Osprey: A fast and accurate patch presence test framework for binariesComputer Communications, 2021
- Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection2017
- BinSequence2017
- Scalable Graph-based Bug Search for Firmware Images2016
- SPOON: A library for implementing analyses and transformations of Java source codeSoftware: Practice and Experience, 2015
- Cross-Architecture Bug Search in Binary Executables2015
- Tracelet-based code search in executables2014
- BinSlayer2013
- Large-Scale Code Reuse in Open Source Software2007