Metraipolis › archive › dc_d6c3016be550
Adversarial Testing of Automated Program Repair Agents for Security Vulnerabilities — arXiv:2609.15963
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.15963
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-15T23:54:10.828Z
- SHA-256 of the archived text
562f78555b8bcad6f6a2f6cc6dbc17b63947162264d3651ada9d315b14b5157f- Stable URL of this page
https://metraipolis.com/documento/dc_d6c3016be550
How to cite
Adversarial Testing of Automated Program Repair Agents for Security Vulnerabilities — arXiv:2609.15963 — arXiv (en), https://arxiv.org/abs/2609.15963 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_d6c3016be550 (Metraipolis archive dc_d6c3016be550, sha256 562f78555b8bcad6f6a2f6cc6dbc17b63947162264d3651ada9d315b14b5157f)
BibTeX
@misc{dcd6c3016be550,
title = {Adversarial Testing of Automated Program Repair Agents for Security Vulnerabilities — arXiv:2609.15963},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.15963},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_d6c3016be550; sha256 562f78555b8bcad6f6a2f6cc6dbc17b63947162264d3651ada9d315b14b5157f},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.15963. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Software agents with Large Language Models (LLMs) are designed for Automated Program Repair (APR) tasks, raising the possibility that, in the near future, APR agents will fix bugs automatically without much human intervention. Can we trust an APR agent to produce both functionally correct and secure code in such situations? What if attackers target production APR agents with adversarial issues that seem benign but may influence the agents to produce correct but insecure code? In this paper, we took a first step towards answering these questions by conducting an empirical study. First, we created SWEADV, a benchmark of 750 adversarial issue descriptions constructed from 150 repair tasks in SWE-bench Verified. For each repair task, we created five adversarial issue descriptions, one for each attack type: command execution, deserialization, path traversal, denial of service, and weak hashing. Second, we evaluated mini_swe APR agents from three LLM backends on SWEADV: GPT-5-Mini, MiniMax-M2.5, and DeepSeek-R. We found that on average, adversarial issue descriptions can induce malicious behaviors with successful repair in 51.7% of cases. Third, we investigated whether typical detection mechanisms are sufficient to prevent such malicious patches from being accepted. Pre-repair detection with LLM-as-judge on the adversarial issue descriptions resulted in an average detection accuracy of only 62.3%. Post-repair detection on adversarial APR patches using static analysis tools and LLM-as-judge achieved average detection accuracies of only 39.4% and 55.4%, respectively. We conclude that autonomous APR agents cannot be trusted yet in production deployment, given their susceptibility to adversarial attacks. Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-09-15 in cs.CR). Categorie arXiv: Cryptography and Security (cs.CR) ; Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2609.15963 — 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-15T23:20:42.725Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-09-15?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).