LLMxCPG: Context-aware vulnerability detection guided by code property graphs in large language modelsLLMxCPG: Context-Aware Vulnerability Detection Through Code Property Graph-Guided Large Language Models
AI summary
The LLMxCPG framework combines code property graphs (CPG) with large language models for vulnerability detection, improving the F1 score by 15-40% over state-of-the-art baselines on the validation dataset. Its CPG-based slicing construction reduces code size by 67.84%-90.93% while preserving vulnerability-relevant context, can analyze entire projects and identify vulnerabilities spanning multiple functions, and maintains robust detection performance under various syntactic code changes.