Reproduce “AutoVulnPHP: LLM-Powered Two-Stage PHP Vulnerability Detection and Automated Localization” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Zhiqiang Wang, Yizhong Ding, Zilong Xiao, Jinyu Lu, Yan Jia, Yanjun Li
AutoVulnPHP introduces an LLM-enhanced two-stage framework for identifying and precisely locating vulnerabilities in PHP applications. It achieves high detection accuracy and robust automated localization by integrating structural analysis with semantic verification and using constraint-aware LLM generation, further validated by discovering hundreds of new CVEs in real-world projects.
Key insights
- A two-stage detection approach, progressively refining structural hypotheses with semantic verification, efficiently balances recall and precision for PHP vulnerability identification.
- Integrating pre-computed risk biases into attention mechanisms significantly improves LLM sensitivity to subtle vulnerability patterns in code.
- Constraining LLM-generated code with security and functional predicates, coupled with iterative refinement, reliably mitigates hallucination for accurate vulnerability localization.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.