Metraipolis › archive › dc_e5b9a127c161
Towards Scalable and Cost-Efficient Vulnerability Detection: A Study on Automatic Query Generation — arXiv:2609.10412
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.10412
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-16T07:54:50.312Z
- SHA-256 of the archived text
bfb22e8ead580b98a4823f5576c45b5ed1995f47fbd500da570e5d87396e3f1c- Stable URL of this page
https://metraipolis.com/documento/dc_e5b9a127c161
How to cite
Towards Scalable and Cost-Efficient Vulnerability Detection: A Study on Automatic Query Generation — arXiv:2609.10412 — arXiv (en), https://arxiv.org/abs/2609.10412 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_e5b9a127c161 (Metraipolis archive dc_e5b9a127c161, sha256 bfb22e8ead580b98a4823f5576c45b5ed1995f47fbd500da570e5d87396e3f1c)
BibTeX
@misc{dce5b9a127c161,
title = {Towards Scalable and Cost-Efficient Vulnerability Detection: A Study on Automatic Query Generation — arXiv:2609.10412},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.10412},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_e5b9a127c161; sha256 bfb22e8ead580b98a4823f5576c45b5ed1995f47fbd500da570e5d87396e3f1c},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.10412. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Static analysis remains a cornerstone of software security, yet the effectiveness of tools such as CodeQL is often limited by the substantial manual effort required to develop high-coverage query suites. While large language models (LLMs) have emerged as a potential solution for automated code reasoning, their practical utility in generating structured, executable security queries remains underexplored. In this paper, we conduct an empirical study to evaluate the ability of LLMs to synthesize CodeQL queries using vulnerability data from the National Vulnerability Database. Through this investigation, we explore the potential of using LLMs as an automatic CodeQL query generator. Subsequently, we systematically evaluate the performance of various LLM architectures across a diverse set of real-world vulnerabilities, measuring their ability to improve detection coverage and precision. Our findings reveal that LLM-generated queries significantly enhance the baseline CodeQL queries, yielding 82% improvement in average F1-score. Furthermore, we provide a detailed cost- benefit analysis showing that while direct LLM-based scanning of entire repositories is often computationally and financially prohibitive, leveraging LLMs to synthesize CodeQL queries offers a scalable and cost-effective alternative for large-scale vulnerability detection. Our results suggest that LLMs can effectively bridge the gap between unstructured vulnerability reports and formal static analysis specifications, offering a scalable path toward comprehensive automated vulnerability detection. Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-09-10 in cs.CR). Categorie arXiv: Software Engineering (cs.SE) ; Cryptography and Security (cs.CR). Pagina del lavoro: https://arxiv.org/abs/2609.10412 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-16T07:37:41.601Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-09-10?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).