ReVul-CoT: Towards Effective Software Vulnerability Assessment with Retrieval-Augmented Generation and Chain-of-Thought Prompting
Zhijie Chen, Xiang Chen, Ziming Li, Jiacheng Xue, Chaoyang Gao

TL;DR
ReVul-CoT enhances software vulnerability assessment by combining retrieval-augmented generation with chain-of-thought prompting, enabling more accurate and context-aware analysis of vulnerabilities using large language models.
Contribution
The paper introduces ReVul-CoT, a novel framework that integrates retrieval-augmented generation with chain-of-thought prompting to improve LLM-based software vulnerability assessment.
Findings
ReVul-CoT outperforms state-of-the-art baselines by up to 42.26% in MCC.
Dynamic retrieval and knowledge integration improve assessment accuracy.
Ablation studies confirm the effectiveness of retrieval and reasoning components.
Abstract
Context: Software Vulnerability Assessment (SVA) plays a vital role in evaluating and ranking vulnerabilities in software systems to ensure their security and reliability. Objective: Although Large Language Models (LLMs) have recently shown remarkable potential in SVA, they still face two major limitations. First, most LLMs are trained on general-purpose corpora and thus lack domain-specific knowledge essential for effective SVA. Second, they tend to rely on shallow pattern matching instead of deep contextual reasoning, making it challenging to fully comprehend complex code semantics and their security implications. Method: To alleviate these limitations, we propose a novel framework ReVul-CoT that integrates Retrieval-Augmented Generation (RAG) with Chain-of-Thought (COT) prompting. In ReVul-CoT, the RAG module dynamically retrieves contextually relevant information from a constructed…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Information and Cyber Security · Web Application Security Vulnerabilities
