Conference Proceedings

Detecting Code Vulnerabilities using LLMs

L Huynh, Y Zhang, D Jayasundera, W Jeon, H Kim, T Bi, JB Hong

Proceedings 2025 55th Annual IEEE IFIP International Conference on Dependable Systems and Networks Dsn 2025 | Published : 2025

Abstract

Large language models (LLMs) have emerged as a promising tool for detecting code vulnerabilities, potentially offering advantages over traditional rule-based methods. This paper proposes an enhanced framework for vulnerability detection using LLMs, incorporating various prompt engineering strategies to improve performance. We evaluate several techniques, including role-based prompting, zero-shot chain-of-Thought, and structured prompting approaches, on the DiverseVul dataset of C/C++ vulnerabilities. Our experiments assess the framework's performance across different code structures, contextual information levels, and LLM capabilities. Our results show that using our dynamic prompt engineeri..

View full abstract

University of Melbourne Researchers

Grants

Awarded by Institute for Information and Communications Technology Promotion