Skip to content

MoCQ: A neuro-symbolic static analysis framework that uses an LLM to generate vulnerability patternsNeuro-symbolic Static Analysis with LLM-generated Vulnerability Patterns

arXiv· arXiv:2504.16057· Penghui Li, Songchen Yao, Josef Sarfati Korich, Changhua Luo, Jianjia Yu, Yinzhi Cao, Junfeng Yang·Indexed by this site · 24 days ago· Originally publishedTools
AI summary

MoCQ is a neuro-symbolic static analysis framework that uses an LLM to automatically generate vulnerability detection patterns. It extracts a domain-specific language for expressing vulnerability patterns and corrects the patterns through an iterative refinement loop with trace-driven symbolic validation; on 12 classes of vulnerabilities across four languages, C/C++, Java, PHP, and JavaScript, its detection performance is comparable to expert patterns, and generation takes only a few hours versus weeks of manual work. MoCQ also discovered 46 new vulnerability patterns that security experts had missed, and detected 25 previously unknown vulnerabilities in real applications.

Read originalarxiv.org