arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.00710cs.CRcs.SE
收藏

ChatGPT 如何帮助人类安全测试人员帮助缓解供应链攻击?

How Can ChatGPT Support Human Security Testers to Help Mitigate Supply Chain Attacks?

Wake Forest University(维克森林大学);Virginia Tech(弗吉尼亚理工大学)

Ying Zhang, Wenjia Song, Zhengjie Ji, Danfeng, Yao, Na Meng

AI总结:

本文探讨利用ChatGPT生成供应链攻击测试的方法,通过模板生成测试用例,发现49个应用中的漏洞,并优于现有工具。

摘要:

开发者常依赖第三方库提高效率,但这些库可能包含漏洞导致供应链攻击。现有工具检测漏洞依赖项,但开发者常不信任报告缺乏证据。手动编写演示成本高,工具支持不足。本文系统研究了使用大型语言模型ChatGPT-4.0生成安全测试的方法,通过模板收集漏洞相关信息,生成提示查询ChatGPT生成测试。发现ChatGPT生成的测试为49个应用提供了24项漏洞证据。评估其他五种先进LLM后,所有模型至少生成17个成功演示漏洞的测试。提交六份新漏洞报告,获得四个CVE编号。ChatGPT在测试生成和攻击成功率上优于TRANSFER和SIEGE工具。

英文摘要:

Developers often build software on top of third-party libraries (Libs) to improve productivity, but these libraries may contain vulnerabilities that enable supply chain attacks. Existing tools detect vulnerable dependencies, yet developers often distrust their reports without concrete exploit evidence. Manually crafting such demonstrations is costly, and tool support is lacking. To help developers enhance software security, in this study, we systematically explored the usage of a large language model (LLM) --ChatGPT-4.0--to generate security tests, which unit tests demonstrate how vulnerable library dependencies facilitate the supply chain attacks to given Apps. In our exploration, we defined prompt templates to take in the various vulnerability-relevant information we manually collected, and generated prompts from those templates to query ChatGPT for security test generation. We found that ChatGPT-generated tests demonstrated 24 pieces of evidence or proof of vulnerability for 49 Apps. To assess the consistency of test generation, we also evaluated another five state-of-the-art LLMs. All the models generated security tests for at least 17 cases that successfully demonstrate the vulnerabilities. We filed six reports for the newly revealed vulnerabilities in Apps, and got four Common Vulnerability Entries (CVEs) assigned. Our use of ChatGPT outperformed two state-of-the-art security test generators (TRANSFER and SIEGE), by generating a lot more tests and achieving more attacks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑