Vulnerability-Triggering Test Case Generation from Third-Party Libraries
義典 橘高, Xing Hu, Zirui Chen et al. · 2025
Open-source third-party libraries are widely used in software development. These libraries offer substantial advantages in terms of time and resource savings. However, a significant concern arises due to the publicly disclosed vulnerabilities within these libraries. Existing automated vulnerability detection tools often suffer from false positives and fail to accurately assess the propagation of inputs capable of triggering vulnerabilities from client projects to vulnerable code in libraries. In this paper, we propose a novel approach called VulEUT (Vulnerability Exploit Unit Test Generation), which combines vulnerability exploitation reachability analysis and LLM-based unit test generation. VulEUT is designed to automatically verify the exploitability of vulnerabilities in third-party libraries commonly used in Java client software projects. VulEUT first analyzes the client projects to determine the reachability of vulnerability conditions. And then, it leverages the Large Language Model (LLM) to generate unit tests for vulnerability confirmation. To evaluate the effectiveness of VulEUT, we collect 32 vulnerabilities from various third-party libraries and conduct experiments on 70 real client projects. Besides, we also compare our approach with two representative tools, i.e., TRANSFER and VESTA. Our results demonstrate the effectiveness of VulEUT, with 229 out of 292 generated unit tests successfully confirming vulnerability exploitation across 70 client projects, which outperforms baselines by 24%.
Cited by 3 works. doi:10.1109/forge66646.2025.00021 Open-access PDF
Authors
References
- Do developers update their library dependencies?
- CodaMosa: Escaping Coverage Plateaus in Test Generation with Pre-trained Large Language Models
- An empirical comparison of dependency network evolution in seven software packaging ecosystems
- Beyond Metadata: Code-Centric and Usage-Based Analysis of Known Vulnerabilities in Open-Source Software
- Towards Measuring Supply Chain Attacks on Package Managers for Interpreted Languages
- Historical and impact analysis of API breaking changes: A large-scale study
- An Empirical Study of Usages, Updates and Risks of Third-Party Libraries in Java Projects
- Demystifying the vulnerability propagation and its evolution via dependency trees in the NPM ecosystem
- ATVHunter: Reliable Version Detection of Third-Party Libraries for Vulnerability Identification in Android Applications
- Towards Smoother Library Migrations: A Look at Vulnerable Dependency Migrations at Function Level for npm JavaScript Packages