Metraipolis › archive › dc_9e9376845b8e
Does Fixing Break Security? An Empirical Study of Security Degradation in Iterative LLM-Driven Infrastructure-as-Code Repair — arXiv:2608.13404
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.13404
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-19T04:26:19.747Z
- SHA-256 of the archived text
1f567f2d2c625c08035dafd66ce707a7672fa0d35613ed724321413ef72fc5fe- Stable URL of this page
https://metraipolis.com/documento/dc_9e9376845b8e
How to cite
Does Fixing Break Security? An Empirical Study of Security Degradation in Iterative LLM-Driven Infrastructure-as-Code Repair — arXiv:2608.13404 — arXiv (en), https://arxiv.org/abs/2608.13404 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_9e9376845b8e (Metraipolis archive dc_9e9376845b8e, sha256 1f567f2d2c625c08035dafd66ce707a7672fa0d35613ed724321413ef72fc5fe)
BibTeX
@misc{dc9e9376845b8e,
title = {Does Fixing Break Security? An Empirical Study of Security Degradation in Iterative LLM-Driven Infrastructure-as-Code Repair — arXiv:2608.13404},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.13404},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_9e9376845b8e; sha256 1f567f2d2c625c08035dafd66ce707a7672fa0d35613ed724321413ef72fc5fe},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.13404. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Background: Iterative feedback loops are the dominant paradigm for improving LLM-generated Infrastructure-as-Code (IaC): validators such as Checkov and terraform validate feed error signals back for successive repair attempts. Prior work reports cumulative-best metrics, which are non-decreasing by construction, so the raw per-iteration security trajectory has never been examined for IaC. Aims: We study security regression (a previously-passing CIS Benchmark check that fails after a repair iteration) to determine whether and how often iterative LLM repair degrades security while fixing other issues. Method: We analyze 5,968 scenario timelines from the IaC-Eval benchmark, each one scenario run through one configuration for up to 5 repair iterations. The 15 configurations (six model-specific RAG, nine model-aggregated non-RAG, three temperatures each) yield 4,440 iteration transitions with Checkov data on both sides. We track 30 individual CIS check IDs and classify root causes from code diffs, under two detection modes: standard (inclusive) and strict (exclusive check failures only). Results: Under standard detection, 13.8% of scenarios (24.8% of transitions) exhibit at least one regression. Under strict detection the rate falls to 3.3% of scenarios (5.2% of transitions), indicating most apparent regressions are multi-resource measurement artifacts. Resource restructuring (79.0%) is the dominant root cause. Regression transitions show 2.6x more code churn (Cohen's d=0.90) and 4.9x higher strict-mode check volatility (d=1.49). Of standard-mode regressions, 36.6% self-correct within an average of 1.2 iterations; iteration 3 is the optimal stopping point. Conclusions: Iterative IaC repair does introduce security regressions, but the conservative, defensible rate is about 3.3% of scenarios. Our findings motivate security-aware feedback-loop design and actionable iteration-budget guidance. Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-08-14 in cs.CR). Categorie arXiv: Software Engineering (cs.SE) ; Cryptography and Security (cs.CR). Pagina del lavoro: https://arxiv.org/abs/2608.13404 — 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-19T04:20:00.585Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-08-14?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).