PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
December 9, 2025ACM Transactions on Software Engineering and Methodology7 citations

Context-Enhanced Vulnerability Detection Based on Large Language Models

View Full Paper
YYY. YangBXBinwei XuXGXiang Gao

Key Points

  • This research aims to enhance vulnerability detection by combining program analysis and large language models.
  • Developed a context-enhanced approach for analyzing software vulnerabilities
  • Incorporated various levels of program abstraction to filter noise
  • Utilized large language models like GPT, DeepSeek, and CodeLLaMA for analysis
  • Abstracted context significantly improves the effectiveness of vulnerability detection
  • Different language models show varying benefits from distinct abstraction levels
  • Program behavior analysis can enhance general code analysis tasks with LLMs

Abstract

Accurate vulnerability detection is essential to prevent potential security breaches and protect software systems from malicious attacks. Recently, vulnerability detection approaches leveraging deep learning and large language models (LLMs) have garnered increasing attention. However, existing approaches often focus on analyzing individual files or functions, limiting their ability to detect complex and inter-procedural vulnerabilities. Analyzing entire repositories to gather context introduces significant noise and computational overhead. To address these challenges, we propose a context-enhanced approach for vulnerability detection by combining program analysis with LLMs. This method extracts contextual information at multiple abstraction levels to filter out noise, and feeds both the abstracted context and source code into an LLM. Our goal is to strike a balance between providing sufficient detail to accurately capture vulnerabilities and minimizing unnecessary complexity that could hinder model performance. Based on an extensive study using GPT, DeepSeek, and CodeLLaMA with various prompting strategies, our key findings include: First, incorporating abstracted context significantly enhances vulnerability detection effectiveness; Second, different models benefit from distinct levels of abstraction depending on their code understanding capabilities; Third, capturing program behavior through program analysis for general LLM-based code analysis tasks can be a direction that requires further attention.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Yang et al. (2025) studied this question.

synapsesocial.com/papers/69401d732d562116f28f92dchttps://doi.org/10.1145/3779222
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1To Err is Machine: Vulnerability Detection Challenges LLM Reasoning2024 · 17 citations
  2. 2IRIS: LLM-Assisted Static Analysis for Detecting Security Vulnerabilities2024 · 16 citations
  3. 3M2CVD: Enhancing Vulnerability Understanding through Multi-Model Collaboration for Code Vulnerability Detection2025 · 3 citations
  4. 4Context and Multi-Features-Based Vulnerability Detection: A Vulnerability Detection Frame Based on Context Slicing and Multi-Features2024 · 11 citations
  5. 5Generalization-Enhanced Code Vulnerability Detection via Multi-Task Instruction Fine-Tuning2024 · 30 citations