EUVIMEDEUVIMED entdecken
Systematische ÜbersichtOpen Access · CC BY 4.0

The Double-Edged Sword of AI Pair Programmers: A Systematic Literature Review of Security Vulnerabilities in AI-Generated Code and Agentic Development Environments

Mahmoud Farfoura, Mohammad Alia, Ibrahim Mashal, Adnan Hnaif, Mahmoud Odeh

Journal of Sustainable Smart Systems in Education & Environment · 2026

DOI: 10.66823/2egmd793 ↗

Kurz gefasst

Systematische Übersicht in der Zeitschrift Journal of Sustainable Smart Systems in Education & Environment, 2026. Verfasst von Mahmoud Farfoura und 4 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

The role of AI pair programmers has expanded from local code completion to active participation in the development environment. Contemporary tools can interpret repository context, edit multiple files, call package managers, execute terminal commands, and communicate with external services. This review synthesizes security evidence concerning GitHub Copilot, ChatGPT-based coding, code large language models, Cursor-style agentic editors, command-line coding agents, and Model Context Protocol ecosystems. A protocol-driven search, supplemented by backward and forward snowballing, covered literature and technical evidence available through 12 July 2026. The verified corpus comprised 216 verified records, including peer-reviewed studies, preprints, benchmarks, standards, and clearly identified technical disclosures. The evidence supports useful roles in vulnerability discovery and repair, test generation, and secure-coding guidance, but it also documents recurring injection flaws, unsafe memory and file handling, weak cryptography, authentication errors, secret exposure, hallucinated dependencies, and incomplete patches. Whether these weaknesses persist depends partly on human factors, including expertise, prompt framing, review effort, automation bias, and the authority users assign to the assistant. Most generated-code defects remain familiar CWE classes. Agentic systems add orchestration-level concerns: indirect prompt injection, context poisoning, tool and protocol supply-chain attacks, permission amplification, approval spoofing, cross-file persistence, and autonomous execution. We synthesize these findings in a unified taxonomy, an evidence-based threat model, a lifecycle security model, and a continuous-assurance architecture built on structured context, least privilege, sandboxing, provenance, conventional SAST/SCA/secret scanning, security tests, and mandatory human authorization for high-impact actions. Without such governance, faster production may be offset by accumulating validation debt and downstream incident risk.

Zitieren

APA

Farfoura, M., Alia, M., Mashal, I., Hnaif, A., & Odeh, M. (2026). The Double-Edged Sword of AI Pair Programmers: A Systematic Literature Review of Security Vulnerabilities in AI-Generated Code and Agentic Development Environments. Journal of Sustainable Smart Systems in Education & Environment. https://doi.org/10.66823/2egmd793

Vancouver

Farfoura M, Alia M, Mashal I, Hnaif A, Odeh M. The Double-Edged Sword of AI Pair Programmers: A Systematic Literature Review of Security Vulnerabilities in AI-Generated Code and Agentic Development Environments. Journal of Sustainable Smart Systems in Education & Environment. 2026. doi:10.66823/2egmd793

BibTeX
@article{Farfoura2026,
  author = {Farfoura, Mahmoud and Alia, Mohammad and Mashal, Ibrahim and Hnaif, Adnan and Odeh, Mahmoud},
  title = {The Double-Edged Sword of AI Pair Programmers: A Systematic Literature Review of Security Vulnerabilities in AI-Generated Code and Agentic Development Environments},
  journal = {Journal of Sustainable Smart Systems in Education & Environment},
  year = {2026},
  doi = {10.66823/2egmd793}
}
Kostenlos starten →