Metraipolis › archive › dc_64b9a09d23ca
Applying Security by Design at the Point of Execution: How Governed Security Requirements Affect the Security of AI-Generated Code — arXiv:2610.10659
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.10659
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-09T06:20:38.557Z
- SHA-256 of the archived text
b1e37d868a15f5fdeebd553964801d080b1d687051db242982aeb318b7f755b4- Stable URL of this page
https://metraipolis.com/documento/dc_64b9a09d23ca
How to cite
Applying Security by Design at the Point of Execution: How Governed Security Requirements Affect the Security of AI-Generated Code — arXiv:2610.10659 — arXiv (en), https://arxiv.org/abs/2610.10659 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_64b9a09d23ca (Metraipolis archive dc_64b9a09d23ca, sha256 b1e37d868a15f5fdeebd553964801d080b1d687051db242982aeb318b7f755b4)
BibTeX
@misc{dc64b9a09d23ca,
title = {Applying Security by Design at the Point of Execution: How Governed Security Requirements Affect the Security of AI-Generated Code — arXiv:2610.10659},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.10659},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_64b9a09d23ca; sha256 b1e37d868a15f5fdeebd553964801d080b1d687051db242982aeb318b7f755b4},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.10659. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Security by design asks that security requirements are defined before code is written. Secure-code benchmarks typically measure the opposite situation: the agent receives the task without requirements and is scored with security tests it has not seen. We measured what changes when security requirements, selected from a governed security-by-design knowledge base (SbD-ToE) and delivered through a Model Context Protocol (MCP) server, are given to the generator at the point of execution. On DualGauge, which scores with a language-model judge, we ran 59 Python tasks: the share of tasks passing all security tests rose from 44.1% to 78.0% and the share of security tests passed from 77.4% to 93.0%. On BaxBench, which runs functional tests and real exploits in containers, we ran 28 backend scenarios: among functionally correct solutions, the share with no successful exploit rose from 65% to 86%, comparable to the authors' Oracle Security Reminder (85%), which they call an unrealistic upper bound; the requirement delivery reached it without knowing the tests. The study has limits. The pre-specified joint secure-and-functional metric did not improve significantly on either benchmark. The code written with the governed requirements is stricter, and it failed functional tests that fix values the task never states; we attribute those failures case by case in a post-hoc analysis. Each experiment used one model and one generation per task. The requirements come from the author's open-source manual; we do not assess its completeness. Governed security requirements delivered at the point of execution appear to improve the security of generated code. Current benchmarks cannot tell whether that code meets the security requirements that apply to it, only whether it shows the weaknesses their evaluators were built to detect. We propose measuring conformance with the applicable requirements. Tema degli esploratori: fiducia digitale e crittografia (elenco arXiv cs.CR, nuovi lavori del giorno). Categorie arXiv: Software Engineering (cs.SE) ; Cryptography and Security (cs.CR). Pagina del lavoro: https://arxiv.org/abs/2610.10659 — 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-09T05:50:00.996Z dalla pagina https://arxiv.org/list/cs.CR/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).