Skip to content

Using CoT prompting of large language models to discover and fix software vulnerabilitiesChain-of-Thought Prompting of Large Language Models for Discovering and Fixing Software Vulnerabilities

arXiv· arXiv:2402.17230· Yu Nong, Mohammed Aldeen, Long Cheng, Hongxin Hu, Feng Chen, Haipeng Cai·Indexed by this site · 25 days ago· Originally publishedTools
AI summary

The research proposes a vulnerability-semantics-guided unified prompting method, VSP, which uses CoT prompting of large language models to perform three tasks: vulnerability type identification, arbitrary-type vulnerability discovery and vulnerability fixing. Comparing five baselines across three LLMs and two datasets, VSP's F1 accuracy on the CVE dataset is higher by 553.3%, 36.5% and 30.8%, respectively. A case analysis also points out gaps of LLM/CoT on difficult vulnerability cases and proposes and validates corresponding improvements.

Read originalarxiv.org