paper-with-me

Papers

Reasoning with LLMs for Zero-Shot Vulnerability Detection

2025-03-22 · Arastoo Zibaeirad, Marco Vieira

Automating software vulnerability detection (SVD) remains a critical challenge in an era of increasingly complex and interdependent software systems. Despite significant advances in Large Language Models (LLMs) for code analysis, prevailing evaluation methodologies often lack the \textbf{context-aware robustness} necessary to capture real-world intricacies and cross-component interactions. To address these limitations, we present \textbf{VulnSage}, a comprehensive evaluation framework and a dataset curated from diverse, large-scale open-source system software projects developed in C/C++. Unlike prior datasets, it leverages a heuristic noise pre-filtering approach combined with LLM-based reasoning to ensure a representative and minimally noisy spectrum of vulnerabilities. The framework supports multi-granular analysis across function, file, and inter-function levels and employs four diverse zero-shot prompt strategies: Baseline, Chain-of-Thought, Think, and Think & Verify. Through this evaluation, we uncover that structured reasoning prompts substantially improve LLM performance, with Think & Verify reducing ambiguous responses from 20.3% to 9.1% while increasing accuracy. We further demonstrate that code-specialized models consistently outperform general-purpose alternatives, with performance varying significantly across vulnerability types, revealing that no single approach universally excels across all security contexts. Link to dataset and codes: https://github.com/Erroristotle/VulnSage.git

📄 PDF Abstract BibTeX arXiv:2503.17885

Code (1)

erroristotle/vulnsage 공식 구현 pytorch

Tasks

Vulnerability Detection

Similar Papers 제목 키워드 기반

Benchmarking Zero-Shot Reasoning Approaches for Error Detection in Solidity Smart Contracts

2026-02-17 · Eduardo Sardenberg, Antonio José Grandson Busson, Daniel de Sousa Moraes, Julio Cesar Duarte 외 arxiv

Smart contracts play a central role in blockchain systems by encoding financial and operational logic. Still, their susceptibility to subtle security flaws poses significant risks of financial loss and erosion of trust. …

Vulnerability DetectionBinary Classification

Transformer-based Vulnerability Detection in Code at EditTime: Zero-shot, Few-shot, or Fine-tuning?

2023-05-23 · Aaron Chan, Anant Kharkar, Roshanak Zilouchian Moghaddam, Yevhen Mohylevskyy 외

Software vulnerabilities bear enterprises significant costs. Despite extensive efforts in research and development of software vulnerability detection methods, uncaught vulnerabilities continue to put software owners and…

Vulnerability Detection

LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoning

2024-01-29 · Yuqiang Sun, Daoyuan Wu, Yue Xue, Han Liu 외

Large language models (LLMs) have demonstrated significant potential in various tasks, including those requiring human-level intelligence, such as vulnerability detection. However, recent efforts to use LLMs for vulnerab…

Information RetrievalRetrievalStructured Output GenerationVulnerability Detection

Routing Ceilings Are Domain-Independent: Structural Prior Injection in Code Security Vulnerability Detection

2026-07-16 · Manuel Israel Cázares arxiv

Large language models (LLMs) exhibit a well-documented gap between latent capability and consistent activation: the router hypothesis posits that models possess the knowledge to solve a task but lack reliable internal ro…

Vulnerability DetectionMathematical Reasoning

VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detection

2025-12-08 · Yuzhou Nie, Hongwei Li, Chengquan Guo, Ruizhe Jiang 외 arxiv

We propose VulnLLM-R, the~\emph{first specialized reasoning LLM} for vulnerability detection. Our key insight is that LLMs can reason about program states and analyze the potential vulnerabilities, rather than simple pat…

Vulnerability Detection