On Fixing Insecure AI-Generated Code through Model Fine-Tuning and Prompting Strategies CCS: Security and privacy Software security engineering CCS: Software and its engineering Automatic programming
Ali Soltanian Fard Jahromi, Amjed Tahir, Peng Liang, Foutse Khomh · 2026
Read On Fixing Insecure AI-Generated Code through Model Fine-Tuning and Prompting Strategies CCS: Security and privacy Software security engineering CCS: Software and its engineering Automatic programming by Ali Soltanian Fard Jahromi, Amjed Tahir, Peng Liang, Foutse Khomh (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-05867.txt.
Description
AI code generators pass functional tests while quietly shipping security holes. Ali Soltanian Fard Jahromi, Amjed Tahir, Peng Liang, and Foutse Khomh systematically investigate how to harden generated code after the fact. Their study spans fine-tuning and prompting strategies, measured against a list of common weakness types.
Earlier mitigations, from static-analysis-guided generation to prompt engineering, varied wildly in effectiveness across models and settings. The authors assess how far each strategy actually improves security, and where the improvements stop. The result is a map of which repairs are worth their cost for which models.
Catalog record
| CREATOR | Ali Soltanian Fard Jahromi, Amjed Tahir, Peng Liang, Foutse Khomh |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 113 KB |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2605.05867