基于迁移的自动化测试生成利用库漏洞
Exploiting Library Vulnerability via Migration Based Automating Test Generation
AI总结:
针对第三方库漏洞影响评估难的问题,提出基于漏洞利用代码的测试生成方法VESTA,通过新增迁移步骤提升测试与漏洞利用的相似性,在30个漏洞、60组漏洞-项目对的实验中,成功率达71.7%,较基线方法TRANSFER提升53.4%。
摘要:
在软件开发过程中,开发者广泛使用第三方库以避免重复实现已有功能。当新的第三方库漏洞被披露时,项目维护者需要判断其项目是否受该漏洞影响,这需要开发者投入大量精力进行评估。然而现有工具存在一系列问题:静态分析工具会产生误报,动态分析工具需要已有测试用例,而测试生成工具在面对复杂漏洞时成功率较低。\n漏洞利用代码作为漏洞披露后提供的用于复现漏洞的代码片段,包含丰富的漏洞相关信息。本研究提出了一种基于漏洞利用代码的新方法,名为VESTA(基于漏洞利用的软件测试自动生成器),该方法提供漏洞利用测试作为开发者决定是否更新依赖的依据。VESTA在基于搜索的测试生成方法基础上新增了迁移步骤,确保生成的测试与漏洞利用代码之间的相似性,从而提升检测项目中潜在库漏洞的可能性。\n我们对过去五年披露的30个漏洞开展了实验,涉及60个漏洞-项目对,并将实验结果与基线方法TRANSFER进行了对比。VESTA的成功率为71.7%,在验证可利用漏洞的有效性方面相比TRANSFER提升了53.4%。
英文摘要:
In software development, developers extensively utilize third-party libraries to avoid implementing existing functionalities. When a new third-party library vulnerability is disclosed, project maintainers need to determine whether their projects are affected by the vulnerability, which requires developers to invest substantial effort in assessment. However, existing tools face a series of issues: static analysis tools produce false alarms, dynamic analysis tools require existing tests and test generation tools have low success rates when facing complex vulnerabilities. Vulnerability exploits, as code snippets provided for reproducing vulnerabilities after disclosure, contain a wealth of vulnerability-related information. This study proposes a new method based on vulnerability exploits, called VESTA (Vulnerability Exploit-based Software Testing Auto-Generator), which provides vulnerability exploit tests as the basis for developers to decide whether to update dependencies. VESTA extends the search-based test generation methods by adding a migration step, ensuring the similarity between the generated test and the vulnerability exploit, which increases the likelihood of detecting potential library vulnerabilities in a project. We perform experiments on 30 vulnerabilities disclosed in the past five years, involving 60 vulnerability-project pairs, and compare the experimental results with the baseline method, TRANSFER. The success rate of VESTA is 71.7\% which is a 53.4\% improvement over TRANSFER in the effectiveness of verifying exploitable vulnerabilities.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。