Metraipolis › archive › dc_de66703ba7f2
An Empirical Analysis of CodeQL False Positives and Query Refinements for Java Vulnerabilities — arXiv:2609.04535
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.04535
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-16T22:51:23.165Z
- SHA-256 of the archived text
aaee71ae8206ebcf256330caf9753907e36629b7120b3d71ca0dbbe7e6cfb74e- Stable URL of this page
https://metraipolis.com/documento/dc_de66703ba7f2
How to cite
An Empirical Analysis of CodeQL False Positives and Query Refinements for Java Vulnerabilities — arXiv:2609.04535 — arXiv (en), https://arxiv.org/abs/2609.04535 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_de66703ba7f2 (Metraipolis archive dc_de66703ba7f2, sha256 aaee71ae8206ebcf256330caf9753907e36629b7120b3d71ca0dbbe7e6cfb74e)
BibTeX
@misc{dcde66703ba7f2,
title = {An Empirical Analysis of CodeQL False Positives and Query Refinements for Java Vulnerabilities — arXiv:2609.04535},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.04535},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_de66703ba7f2; sha256 aaee71ae8206ebcf256330caf9753907e36629b7120b3d71ca0dbbe7e6cfb74e},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.04535. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Static application security testing (SAST) tools help developers find vulnerabilities before deployment, but false positives create substantial triage effort. We study whether CodeQL false positives in Java security analysis form recurring, explainable patterns that can be reduced by refining the analysis. We run CodeQL's Java security query suite on 167 CVE instances from 110 projects, focusing on the ten queries with the highest false positive rates. We manually review 500 sampled false positive paths and locations and construct a source-level taxonomy. The five categories are Missed Path Constraint or Sanitization (36.6%), Benign Execution Context (29.4%), Missing Trust Boundary Modeling (27.6%), Imprecise Concurrency Modeling (5%), and Imprecise Sink Modeling (1.4%). Guided by these findings, we implement CodeQL refinements that detect and filter recurring false positive patterns at the query level. The refinements remove 81.8% of reviewed false positives. Across the full selected-query dataset, they remove 15.8% of reported paths and locations while retaining 7 of 8 true positives. This shows that many false positives can be reduced in the analysis, although fixed refinements often depend on project-specific context. To address this generalization gap, we evaluate whether agentic coding tools can adapt refinement patterns to new projects. Given our patterns as templates, the two tools succeed on 56% and 62% of tasks, with query compile-pass rates above 90%. Without this guidance, both succeed on only 28%, while compile rates fall to 30-36%. These results support a refinement-oriented SAST workflow in which recurring false positives are modeled in CodeQL queries and automatically adapted to different project contexts, reducing repeated triage. Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-09-07 in cs.CR). Categorie arXiv: Software Engineering (cs.SE) ; Cryptography and Security (cs.CR); Programming Languages (cs.PL). Pagina del lavoro: https://arxiv.org/abs/2609.04535 — 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-16T22:30:54.325Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-09-07?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).