Metraipolis › archive › dc_9eb1a7a0c85d

Beyond Static Guarantees: Measuring the Static-Pass Dynamic-Fail Gap in Security-Sensitive and LLM-Generated Python Code — arXiv:2609.10762

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.10762
License (as archived)
CC0-1.0
Archived
2026-10-16T05:24:40.739Z
SHA-256 of the archived text
3be611e3497ad654e41cea395b2dcedb5b719f8aaaf84b42d6b7a85de4021072
Stable URL of this page
https://metraipolis.com/documento/dc_9eb1a7a0c85d

How to cite

Beyond Static Guarantees: Measuring the Static-Pass Dynamic-Fail Gap in Security-Sensitive and LLM-Generated Python Code — arXiv:2609.10762 — arXiv (en), https://arxiv.org/abs/2609.10762 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_9eb1a7a0c85d (Metraipolis archive dc_9eb1a7a0c85d, sha256 3be611e3497ad654e41cea395b2dcedb5b719f8aaaf84b42d6b7a85de4021072)
BibTeX
@misc{dc9eb1a7a0c85d,
  title = {Beyond Static Guarantees: Measuring the Static-Pass Dynamic-Fail Gap in Security-Sensitive and LLM-Generated Python Code — arXiv:2609.10762},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.10762},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_9eb1a7a0c85d; sha256 3be611e3497ad654e41cea395b2dcedb5b719f8aaaf84b42d6b7a85de4021072},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.10762. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Advances in large language models (LLMs) fuel the quest for scalable methods to assess the security of generated and security-sensitive software. Static analysis is widely adopted as a scalable, reproducible, and inexpensive security gate, but cannot directly observe runtime exploit behaviour. Vulnerabilities dependent on adversarial inputs, execution context, or exploit chaining may evade static checks while remaining exploitable in practice, yet passing static analysis is often treated as evidence of secure behaviour. This paper introduces the Static-Pass Dynamic-Fail (SPDF) phenomenon and a three-stage agentic pipeline combining static scanning, LLM-driven Common Weakness Enumeration (CWE) reasoning, and autonomous exploit verification in isolated Docker containers. We evaluate 1,355 Python samples from SecurityEval, RedCode, and CyberNative datasets. Of the 654 samples producing no findings under the composite Bandit-Semgrep gate, the LLM detection stage identified 394 candidate vulnerabilities across 235 files. Dynamic verification confirmed or partially confirmed exploitability in 95 files, yielding an inclusive pipeline rate of 14.53% (roughly 1 in 7 statically clean samples). This rate represents the proportion of Bandit-Semgrep-clean samples for which the pipeline identified a candidate vulnerability and obtained runtime evidence supporting exploitability. Outcomes varied by dataset: among candidate file--CWE pairs, confirmed exploitability was 33.7% for RedCode, 28.6% for CyberNative, and 5.4% for SecurityEval. Several frequently confirmed classes, including CWE-338 and CWE-916, were flagged by neither Bandit nor Semgrep. These findings indicate that static-analysis success and runtime security are hierarchical layers of software assurance rather than interchangeable measures, and have the potential to reshape how AI-generated and security-sensitive code is evaluated.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-11 in cs.AI).
Categorie arXiv: Cryptography and Security (cs.CR) ; Artificial Intelligence (cs.AI); Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2609.10762 — 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-16T05:17:52.083Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-11?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).