Skip to content

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

arXiv· arXiv:2507.16585· USENIX Security 2025· Ahmed Lekssays, Hamza Mouhcine, Khang Tran, Ting Yu, Issa Khalil·Indexed by this site · 22 days ago· Originally publishedTools
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.

Read originalUSENIX Security 2025