Analyzing Code Injection Attacks on LLM-based Multi-Agent Systems in Software Development

Brian Bowers, Smita Khapre, Jugal Kalita
12/26/2025
cs.SEcs.MA

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

Agentic AI and Multi-Agent Systems are poised to dominate industry and society imminently. Powered by goal-driven autonomy, they represent a powerful form of generative AI, marking a transition from reactive content generation into proactive multitasking capabilities. As an exemplar, we propose an architecture of a multi-agent system for the implementation phase of the software engineering process. We also present a comprehensive threat model for the proposed system. We demonstrate that while such systems can generate code quite accurately, they are vulnerable to attacks, including code injection. Due to their autonomous design and lack of humans in the loop, these systems cannot identify and respond to attacks by themselves. This paper analyzes the vulnerability of multi-agent systems and concludes that the coder-reviewer-tester architecture is more resilient than both the coder and coder-tester architectures, but is less efficient at writing code. We find that by adding a security analysis agent, we mitigate the loss in efficiency while achieving even better resiliency. We conclude by demonstrating that the security analysis agent is vulnerable to advanced code injection attacks, showing that embedding poisonous few-shot examples in the injected code can increase the attack success rate from 0% to 71.95%.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{bowers2025analyzing,
  title  = {Analyzing Code Injection Attacks on LLM-based Multi-Agent Systems in Software Development},
  author = {Brian Bowers and Smita Khapre and Jugal Kalita},
  year   = {2025},
  eprint = {2512.21818},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.21818v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.21818.svg)](https://codeofpaper.com/paper/2512.21818)

Discussion