Shadows in the Code: Exploring the Risks and Defenses of LLM-based Multi-Agent Software Development Systems

arXiv:2511.18467 · cs.CR, cs.AI, cs.CL · Submitted 2025-11-23 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.

Nadia: I'm Nadia.

Elias: And I'm Elias, here with Priya.

Nadia: We're looking at the paper: "Shadows in the Code".

Paper summary: Elias: So, wrapping up the discussion on Shadows in the Code: Exploring the Risks and Defenses of LLM-based Multi-Agent Software Development Systems, what's left is that this research provides a framework for understanding how to manage security when using these powerful tools. The authors identified specific attack scenarios like MU-BA and BU-MA, and they introduced the IMBIA attack to show how malicious code can be hidden in seemingly benign applications.

Nadia: And they came up with Adv-IMBIA as a defense mechanism that targets those specific risks at the agent level for MU-BA and at the user interface level for BU-MA, which gives us something actionable to consider. The paper highlights that focusing on protecting architecture specific critical agents is a cost effective security strategy.

Priya: It underscores the importance of this investigation because it shows there’s a real potential for misuse of these systems if we don't have robust security measures in place right now. We need to be responsible with how these multi-agent software development systems are being deployed in the real world.

Elias: This work really pushes us to think about the security of the entire end-to-end software development process, not just checking individual pieces of code, because infiltration during later stages like coding or testing poses substantially greater security risks across all frameworks.

Nadia: That's the big picture: these multi-agent systems are powerful tools for creating applications quickly, but we need to keep pushing the research on defenses like Adv-IMBIA to ensure that what’s built is safe and reliable.

Conclusion: Nadia: So we've looked at how these multi-agent systems can be exploited, and now we need to talk about what this whole paper actually means for us as people using these tools.

Elias: It’s called "Shadows in the Code: Exploring the Risks and Defenses of LLM-based Multi-Agent Software Development Systems." And honestly, it gets straight to the point about how dangerous things can get when you let AI build software for you without a lot of oversight.

Priya: The paper sets up these two main danger zones, which are what they call Malicious User with Benign Agents and Benign User with Malicious Agents. It’s about how someone bad can trick the system using agents that look totally innocent.

Nadia: Right, so you have the user trying to use safe tools to create something harmful, or the system itself getting compromised by an agent that looks fine but is actually malicious. That's a real headache for security folks.

Elias: Exactly. And they introduce this attack method called Implicit Malicious Behavior Injection, which lets these systems hide bad code inside software that looks perfectly normal to the user. It’s about finding those hidden functionalities beneath the surface of an application.

Priya: So, they show how much vulnerability there is when you look at the whole process, not just when you're writing a single line of code. The risk spikes during coding and testing phases compared to when you first design the system architecture.

Nadia: That makes sense because that’s where the most complex interactions happen, right? And they found that in some systems, like MetaGPT, focusing your defense on the specific agents handling the design part actually worked better than just trying to protect everything equally.

Elias: That suggests a way forward for security strategies. Instead of a blanket defense, you can target the most critical parts of the architecture where you find the biggest risks. It’s about being smart with where you spend your effort protecting things.

Nadia: So, this paper is telling us that building secure multi-agent software isn't just about writing better code; it’s about figuring out which parts of the development lifecycle need the toughest security measures applied to them.

Priya: And they did show that their defense mechanism, Adv-IMBIA, actually managed to cut those attack success rates down significantly, especially in that first scenario we discussed. It shows a concrete way to build resilience against these kinds of hidden threats.

Elias: Yeah, it's not just theoretical discussion; they ran experiments and saw a measurable drop in vulnerability when you put that targeted defense into place. That’s the kind of data we need to take seriously.

Nadia: It really brings the conversation back to responsibility here—we have these tools that can create complex applications fast, but we need to keep pushing this work on making sure they are safe before they go wide open for everyone.

Renmin University of China · Ant Group

cs.CR, cs.AI, cs.CL

Submitted: 2025-11-23

Updated: 2026-11-25

Comments: Accepted by AAAI 2026 Alignment Track

Code: https://github.com/wxqkk0808/IMBIA

License: http://creativecommons.org/licenses/by/4.0/

Importance score: 90/100

The gist: The rapid advancement of Large Language Model (LLM)-driven multi-agent systems has significantly streamlined software developing tasks…

Key concepts

Malicious User with Benign Agents (MU-BA)
This scenario involves a malicious user who uses seemingly harmless or benign agents within the system to generate harmful software. The risk lies in how these benign agents can be tricked into producing malicious outputs, making it hard to detect the threat.
Benign User with Malicious Agents (BU-MA)
This risk stems from the decentralized nature of multi-agent systems, where individual agents can be compromised independently. A benign user might inadvertently introduce or exploit vulnerabilities within a specific agent, leading to system-wide malicious outcomes.
Implicit Malicious Behavior Injection Attack (IMBIA)
IMBIA is a novel attack technique that allows multi-agent systems to generate software containing hidden malicious functionalities, even when the applications appear safe. It targets the subtle ways agents produce code, making it difficult to spot during standard checks.
Adversarial IMBIA (AdvIMBIA)
This is a proposed defense mechanism designed to counter IMBIA attacks. AdvIMBIA implements targeted countermeasures specifically at the agent level for MU-BA scenarios and at the user interface level for BU-MA scenarios, aiming to block concealed malicious code.

Terminology

Summary

The rapid advancement of Large Language Model (LLM)-driven multi-agent systems has significantly streamlined software developing tasks, enabling users with little technical expertise to develop executable applications. p. 0

Where the paper says it

lhy@antgroup. com Abstract The rapid advancement of Large Language Model (LLM)- driven multi-agent systems has significantly streamlined software developing tasks, enabling users with little technical expertise to develop executable applications.

<ref:2511.18467#pg1, "The rapid advancement of Large Language Model (LLM)-driven multi-agent systems has significantly streamlined software developing tasks, enabling users with little technical expertise to develop executable applications">. p. 0
Where the paper says it

lhy@antgroup. com Abstract The rapid advancement of Large Language Model (LLM)- driven multi-agent systems has significantly streamlined software developing tasks, enabling users with little technical expertise to develop executable applications.

Risky Scenarios Identified

The paper identifies two primary risky scenarios in LLM-based multi-agent systems: Malicious User with Benign Agents (MU-BA) and Benign User with Malicious Agents (BU-MA).<ref:2511.18467#pg2>. In the MU-BA scenario, exploitation occurs by malicious users who leverage benign agents to generate harmful software. p. 0

Where the paper says it

The first scenario, which we term as MU-BA (Malicious User, Benign Agents), involves exploitation by malicious users. These systems substantially reduce the technical complexity and cost barriers for creating harmful software, enabling users with limited expertise to generate applications with embedded malicious behaviors.

<ref:2511.18467#pg2>. The BU-MA scenario arises from the decentralized nature of multi-agent systems where individual agents can be compromised. p. 0
Where the paper says it

The second risk scenario, termed BU-MA (Benign User, Malicious Agents), stems from the increasingly decentralized nature of multi-agent systems. As these systems evolve toward distributed architectures operating in complex, dynamic environments, individual agents become vulnerable arXiv:2511.

<ref:2511.18467#pg2>.

Attack Methodology and Defense

The Implicit Malicious Behavior Injection Attack (IMBIA) is introduced as a novel attack methodology that allows multi-agent systems to generate software with concealed malicious functionalities beneath seemingly benign applications.<ref:2511.18467#pg3>. The IMBIA attack is formally defined as IMBIA(A, Pb, Pm) → S (1). p. 2

Where the paper says it

The IMBIA attack can be formalized as: IMBIA(A, Pb, Pm) → S (1) where Pb represents benign software requirements, Pm denotes malicious injection prompts, and S is the generated software. Formally, Pm is defined as a tripartite structure containing the following components: Pm = {Ts, Td, Ci} (2) where Ts denotes a concise summary of the covert malicious task, Td provides detailed contextual descriptions of the intended malicious task, and Ci encompasses explicit code instructions and snippets necessary for executing the malicious behavior.

<ref:2511.18467#pg3, "IMBIA(A, Pb, Pm) → S (1)">. p. 0
Where the paper says it

We identify two risky scenarios: Malicious User with Benign Agents (MU-BA) and Benign User with Malicious Agents (BU-MA). We introduce the Implicit Malicious Behavior Injection Attack (IMBIA), demonstrating how multi-agent systems can be manipulated to generate software with concealed malicious capabilities beneath seemingly benign applications, and propose Adv-IMBIA as a defense mechanism.

A corresponding defense mechanism called Adversarial IMBIA (AdvIMBIA) is proposed to counter these attacks. p. 1
Where the paper says it

To address this gap, we introduce the Implicit Malicious Behavior Injection Attack (IMBIA), a novel attack methodology that enables multi-agent systems to generate software with concealed malicious functionalities beneath seemingly benign applications. We also propose a corresponding defense mechanism, Adversarial IMBIA (AdvIMBIA), which implements targeted countermeasures at the agent level for MU-BA scenarios and at the user interface level for BU-MA scenarios.

<ref:2511.18467#pg2, "We also propose a corresponding defense mechanism, Adversarial IMBIA (AdvIMBIA), which implements targeted countermeasures at the agent level for MU-BA scenarios and at the user interface level for BU-MA scenarios">. p. 1
Where the paper says it

To address this gap, we introduce the Implicit Malicious Behavior Injection Attack (IMBIA), a novel attack methodology that enables multi-agent systems to generate software with concealed malicious functionalities beneath seemingly benign applications. We also propose a corresponding defense mechanism, Adversarial IMBIA (AdvIMBIA), which implements targeted countermeasures at the agent level for MU-BA scenarios and at the user interface level for BU-MA scenarios.

Experimental Evaluation Results

Evaluations across ChatDev, MetaGPT, and AgentVerse frameworks reveal varying vulnerability patterns.<ref:2511.18467#pg2, "Evaluations across ChatDev, MetaGPT, and AgentVerse frameworks reveal varying vulnerability patterns">. p. 0

Where the paper says it

We introduce the Implicit Malicious Behavior Injection Attack (IMBIA), demonstrating how multi-agent systems can be manipulated to generate software with concealed malicious capabilities beneath seemingly benign applications, and propose Adv-IMBIA as a defense mechanism. Evaluations across ChatDev, MetaGPT, and AgentVerse frameworks reveal varying vulnerability patterns, with IMBIA achieving attack success rates of 93%, 45%, and 71% in MU-BA scenarios, and 71%, 84%, and 45% in BU-MA scenarios.

In the MU-BA scenario, IMBIA achieved attack success rates of 93%, 45%, and 71% in MU-BA scenarios for ChatDev, MetaGPT, and AgentVerse respectively. p. 1
Where the paper says it

Our experimental evaluation across three representative multi-agent software development frameworks—ChatDev, MetaGPT, and AgentVerse—demonstrates both the effectiveness of our attack and defense methodologies. In the MU-BA scenario, IMBIA achieved attack success rates of 93%, 45%, and 71% respectively, which were subsequently reduced by 73%, 40%, and 49% when Adv-IMBIA was applied.

<ref:2511.18467#pg4, "In the MU-BA scenario, IMBIA achieved attack success rates of 93%, 45%, and 71% in MU-BA scenarios">. p. 1
Where the paper says it

Our experimental evaluation across three representative multi-agent software development frameworks—ChatDev, MetaGPT, and AgentVerse—demonstrates both the effectiveness of our attack and defense methodologies. In the MU-BA scenario, IMBIA achieved attack success rates of 93%, 45%, and 71% respectively, which were subsequently reduced by 73%, 40%, and 49% when Adv-IMBIA was applied.

Adv-IMBIA significantly reduced these attack success rates, particularly in the MU-BA scenario. p. 0
Where the paper says it

Evaluations across ChatDev, MetaGPT, and AgentVerse frameworks reveal varying vulnerability patterns, with IMBIA achieving attack success rates of 93%, 45%, and 71% in MU-BA scenarios, and 71%, 84%, and 45% in BU-MA scenarios. Our defense mechanism reduced attack success rates significantly, particularly in the MU-BA scenario.

<ref:2511.18467#pg4, "Our defense mechanism reduced attack success rates significantly, particularly in the MU-BA scenario">. p. 0
Where the paper says it

Evaluations across ChatDev, MetaGPT, and AgentVerse frameworks reveal varying vulnerability patterns, with IMBIA achieving attack success rates of 93%, 45%, and 71% in MU-BA scenarios, and 71%, 84%, and 45% in BU-MA scenarios. Our defense mechanism reduced attack success rates significantly, particularly in the MU-BA scenario.

Key Findings on Vulnerability and Defense

Empirical analysis revealed that coding and testing phases present significantly higher security risks than design phases across all frameworks.<ref:2511.18467#pg7, "Overall, these findings suggest that infiltration during later stages (coding or testing) poses substantially greater security risks across all frameworks">. p. 6

Where the paper says it

Among dual-phase attacks, code & test again yielded the highest ASR, with any infiltration involving the coding phase presenting elevated ASRs. Overall, these findings suggest that infiltration during later stages (coding or testing) poses substantially greater security risks across all frameworks, while design-phase infiltration is relatively benign.

Furthermore, the optimal choice of defense-critical agents differs among frameworks; for instance, MetaGPT showed superior effectiveness with design agent configurations. p. 6
Where the paper says it

MetaGPT demonstrated superior effectiveness with design agent configurations, while ChatDev was most enhanced by code & test configurations, with test agents being most critical for single-phase defense. AgentVerse achieved optimal protection through comprehensive defense, though code & test combinations showed comparable effectiveness, with code agents providing the strongest single-phase protection.

<ref:2511.18467#pg7, "MetaGPT demonstrated superior effectiveness with design agent configurations">. p. 6
Where the paper says it

As shown in Figure 7, critical defensive roles vary significantly across frameworks. MetaGPT demonstrated superior effectiveness with design agent configurations, while ChatDev was most enhanced by code & test configurations, with test agents being most critical for single-phase defense.

The paper concludes that prioritizing protection of architecture-specific critical agents can be a cost-effective security strategy. p. 6
Where the paper says it

Therefore, in resource-constrained applications, prioritizing protection of architecture-specific critical agents effectively mitigates malicious user exploitation in multiagent software development systems. Conclusion In this paper, we present the first comprehensive security analysis of two risky scenarios in end-to-end software development multi-agent systems, introducing the novel Implicit Malicious Behavior Injection Attack (IMBIA) and its corresponding defense mechanism Adv-IMBIA to address critical vulnerabilities in both malicious user exploitation and compromised agent infiltration scenarios.

<ref:2511.18467#pg8>.

Base Model Vulnerabilities

The attack results on different base models showed that GPT-4o-mini achieved the highest ASR and the lowest RR in the MU-BA scenario.<ref:2511.18467#pg6, "As shown in Table 2, GPT-4o-mini achieved the highest ASR and the lowest RR">. p. 5

Where the paper says it

Attack Results on Different Base Models We selected ChatDev to assess the impact of different base models on attack effectiveness in the MU-BA scenario. As shown in Table 2, GPT-4o-mini achieved the highest ASR and the lowest RR, while maintaining good software quality.

In contrast, more advanced base models are generally more vulnerable to IMBIA attack. p. 5
Where the paper says it

5-turbo-16k also performing poorly. Hence, in most cases, more advanced base models are more vulnerable to IMBIA attack, indicating that they should enhance their security capabilities.

<ref:2511.18467#pg6, "Hence, in most cases, more advanced base models are more vulnerable to IMBIA attack">. p. 5
Where the paper says it

5-turbo-16k also performing poorly. Hence, in most cases, more advanced base models are more vulnerable to IMBIA attack, indicating that they should enhance their security capabilities.

Human Evaluation Metrics

Human evaluation confirmed that the average consistency between the evaluation results of GPT-4o and those of the manual evaluators was 86.34%.<ref:2511.18467#pg10, "The table indicates that the average consistency between the evaluation results of GPT-4o and those of the manual evaluators is 86. p. 9

Where the paper says it

The evaluation results are shown in Table 3. The table indicates that the average consistency between the evaluation results of GPT-4o and those of the manual evaluators is 86.

34%">. This consistency metric showed no significant degradation during attacks, indicating that IMBIA effectively injects malicious behaviors without substantially degrading software quality. p. 4
Where the paper says it

As illustrated in Figure 3, the generated software maintained comparable quality metrics under attack conditions relative to benign operations. We analyzed consistency—a key quality indicator measuring cosine similarity between generated code and normal software requirements—and found no significant degradation during attacks, indicating that IMBIA effectively injects malicious behaviors without substantially degrading software quality.

<ref:2511.18467#pg5, "We analyzed consistency—a key quality indicator measuring cosine similarity between generated code and normal software requirements—and found no significant degradation during attacks">. p. 4
Where the paper says it

As illustrated in Figure 3, the generated software maintained comparable quality metrics under attack conditions relative to benign operations. We analyzed consistency—a key quality indicator measuring cosine similarity between generated code and normal software requirements—and found no significant degradation during attacks, indicating that IMBIA effectively injects malicious behaviors without substantially degrading software quality.

Ethics and Conclusion

The research underscores the importance of conducting this investigation responsibly given the potential for misuse of these systems.<ref:2511.18467#pg9>. The paper concludes by highlighting the urgent need for robust security measures in multi-agent software development systems. p. 0

Where the paper says it

Further analysis reveals that compromised agents in the coding and testing phases pose significantly greater security risks, while also identifying critical agents that require protection against malicious user exploitation. Our findings highlight the urgent need for robust security measures in multi-agent software development systems and provide practical guidelines for implementing targeted, resource-efficient defensive strategies.

<ref:2511.18467#pg8>.

References

Andriushchenko, M.; Souly, A. p. 7

Where the paper says it

References Andriushchenko, M. ; Souly, A.

; Dziemian, M. p. 7
Where the paper says it

; Souly, A. ; Dziemian, M.

; Duenas, D. p. 7
Where the paper says it

; Dziemian, M. ; Duenas, D.

; Lin, M.; Wang, J.; Hendrycks, D. p. 7
Where the paper says it

; Duenas, D. ; Hendrycks, D.

; Zou, A.; Kolter, Z. p. 7
Where the paper says it

; Hendrycks, D. ; Kolter, Z.

; Fredrikson, M. p. 7
Where the paper says it

; Kolter, Z. ; Fredrikson, M.

; Winsor, E. p. 7
Where the paper says it

; Fredrikson, M. ; Winsor, E.

; Wynne., Gal., and Davies. p. 7
Where the paper says it

; Wynne, J. ; and Davies, X.

2024. AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents. p. 7
Where the paper says it

; and Davies, X. AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents.

arXiv preprint arXiv:2410. p. 7
Where the paper says it

AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents. arXiv preprint arXiv:2410.

09024

Chen, G.; Dong, S.; Shu, Y.; Zhang, G. p. 0

Where the paper says it

2023) and simulating social interactions across various domains (Li et al. 2024; Mou, Wei, and Huang 2024; Zhang et al.

; Sesay, J. p. 7
Where the paper says it

; Zhang, G. ; Sesay, J.

; Karlsson. p. 7
Where the paper says it

; Sesay, J. ; Karlsson, B.

, Fu., and Shi. 2024. AutoAgents: a framework for automatic agent generation. p. 7
Where the paper says it

; and Shi, Y. AutoAgents: a framework for automatic agent generation.

In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, IJCAI ’24. p. 7
Where the paper says it

AutoAgents: a framework for automatic agent generation. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, IJCAI ’24.

Chen, W.; Su., Zuo., Yang., Yuan., Chan.-M.; Yu., Hung.-H.; Qian., et al. 2023. Agentverse: Facilitating multi-agent collaboration and exploring emergent behaviors. p. 7

Where the paper says it

ISBN 978-1-956792-04-1. Agentverse: Facilitating multi-agent collaboration and exploring emergent behaviors.

In The Twelfth International Conference on Learning Representations. p. 7
Where the paper says it

Agentverse: Facilitating multi-agent collaboration and exploring emergent behaviors. In The Twelfth International Conference on Learning Representations.

Debenedetti, E. p. 1

Where the paper says it

2024; Zhang et al. 2025, 2024c; Debenedetti et al.

; Zhang, J. p. 0
Where the paper says it

2023) and simulating social interactions across various domains (Li et al. 2024; Mou, Wei, and Huang 2024; Zhang et al.

; Balunovic, M. p. 7
Where the paper says it

; Zhang, J. ; Balunovic, M.

; Beurer-Kellner, L. p. 7
Where the paper says it

; Balunovic, M. ; Beurer-Kellner, L.

; Fischer, M. p. 7
Where the paper says it

; Beurer-Kellner, L. ; Fischer, M.

; and Tramer. p. 7
Where the paper says it

; Fischer, M. ; and Tramer, F.

2024. AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents. p. 7
Where the paper says it

; and Tramer, F. AgentDojo: A Dy- ` namic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents.

In The Thirty-eight Conference on Neural Information Processing Systems Datasets and Benchmarks Track

Dong, Y.; Jiang, X. p. 7

Where the paper says it

In The Thirty-eight Conference on Neural Information Processing Systems Datasets and Benchmarks Track. ; Jiang, X.

; Jin., and Li. 2024. Selfcollaboration code generation via chatgpt. p. 7
Where the paper says it

; and Li, G. Selfcollaboration code generation via chatgpt.

ACM Transactions on Software Engineering and Methodology, 33(7): 1–38. p. 7
Where the paper says it

Selfcollaboration code generation via chatgpt. ACM Transactions on Software Engineering and Methodology, 33(7): 1– 38.

Du, Z.; Qian., Liu., Xie., Wang., Dang., Chen., and Yang. p. 1

Where the paper says it

While previous research has evaluated the security of LLM-generated code (Pearce et al. 2022; Yang et al.

2024. Multi-Agent Software Development through Cross-Team Collaboration. p. 7
Where the paper says it

; and Yang, C. Multi-Agent Software Development through Cross-Team Collaboration.

arXiv preprint arXiv:2406. p. 7
Where the paper says it

Multi-Agent Software Development through Cross-Team Collaboration. arXiv preprint arXiv:2406.

08979.

Gao, D.; Li.; Pan.; Kuang., Ma., Qian., Wei; Zhang. p. 0

Where the paper says it

2023) and simulating social interactions across various domains (Li et al. 2024; Mou, Wei, and Huang 2024; Zhang et al.

; Xie.; Chen; et al. p. 0
Where the paper says it

2024; Hong et al. 2024; Chen et al.

2024. Agentscope: A flexible yet robust multi-agent platform. p. 7
Where the paper says it

; Zhang, W. Agentscope: A flexible yet robust multi-agent platform.

arXiv preprint arXiv:2402. p. 7
Where the paper says it

Agentscope: A flexible yet robust multi-agent platform. arXiv preprint arXiv:2402.

14034.

Guo, C.; Liu.; Xie.; Zhou., Zeng., Lin.; Song., and Li. 2024. RedCode: Risky Code Execution and Generation Benchmark for Code Agents. p. 7

Where the paper says it

; and Li, B. RedCode: Risky Code Execution and Generation Benchmark for Code Agents.

In ThirtyEighth Conference on Neural Information Processing Systems Datasets and Benchmarks Track

Hajipour, H.; Hassler, K. p. 7

Where the paper says it

Hajipour, H. ; Hassler, K.

; Holz., Schonherr, L. p. 7
Where the paper says it

; Hassler, K. ; Schonherr, L.

; and Fritz-M. p. 7
Where the paper says it

; Schonherr, L. ; and Fritz, ¨ M.

2024. CodeLMSec Benchmark: Systematically Evaluating and Finding Security Vulnerabilities in Black-Box Code Language Models. p. 7
Where the paper says it

; and Fritz, ¨ M. CodeLMSec Benchmark: Systematically Evaluating and Finding Security Vulnerabilities in Black-Box Code Language Models.

In 2024 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML), 684–709. p. 7
Where the paper says it

CodeLMSec Benchmark: Systematically Evaluating and Finding Security Vulnerabilities in Black-Box Code Language Models. In 2024 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML), 684–709.

IEEE

Han, S.; Chen., Lin.-M.; Xu., Z.; and Yu. 2024. IBSEN: Director-Actor Agent Collaboration for Controllable and Interactive Drama Script Generation. p. 7

Where the paper says it

; and Yu, K. IBSEN: Director-Actor Agent Collaboration for Controllable and Interactive Drama Script Generation.

In Ku.-W.; Martins., and Srikumar. p. 7
Where the paper says it

; Martins, A. ; and Srikumar, V.

p. 7
Where the paper says it

; Martins, A. ; and Srikumar, V.

p. 7
Where the paper says it

; Martins, A. ; and Srikumar, V.

p. 7
Where the paper says it

; Martins, A. ; and Srikumar, V.

p. 7
Where the paper says it

; Martins, A. ; and Srikumar, V.

p. 7
Where the paper says it

; Martins, A. ; and Srikumar, V.

, eds., Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 1607–1619. p. 7
Where the paper says it

; and Srikumar, V. , Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 1607–1619.

Bangkok, Thailand: Association for Computational Linguistics

Hong, S.; Zhuge, M. p. 7

Where the paper says it

Bangkok, Thailand: Association for Computational Linguistics. ; Zhuge, M.

; Chen., Zheng., Cheng., Wang., Zhang., Wang., Yau. 2024. MetaGPT: Meta Programming for A Multi-Agent Collaborative Framework. p. 7
Where the paper says it

; and Schmidhuber, J. MetaGPT: Meta Programming for A Multi-Agent Collaborative Framework.

In The Twelfth International Conference on Learning Representations

Huang; Zhou, J.; Jin.; Zhou., Chen.; Wang., Yuan.; Lyu; and Sap. p. 7

Where the paper says it

Huang; Zhou, J. ; and Sap, M.

2025. On the Resilience of LLM-Based Multi-Agent Collaboration with Faulty Agents. p. 7
Where the paper says it

; and Sap, M. On the Resilience of LLM-Based Multi-Agent Collaboration with Faulty Agents.

In Forty-second International Conference on Machine Learning. p. 7
Where the paper says it

On the Resilience of LLM-Based Multi-Agent Collaboration with Faulty Agents. In Forty-second International Conference on Machine Learning.

Islam, M. A.; Ali, M. E.; and Parvez, M. p. 0

Where the paper says it

Code — https://github. com/wxqkk0808/IMBIA Introduction Recent advancements in Large Language Model (LLM)- based multi-agent systems have demonstrated remarkable capabilities in addressing complex tasks (Islam, Ali, and Parvez 2024; Han et al.

R. 2024. MapCoder: Multi-Agent Code Generation for Competitive Problem Solving. p. 7
Where the paper says it

; and Parvez, M. MapCoder: Multi-Agent Code Generation for Competitive Problem Solving.

In Ku.-W.; Martins., and Srikumar., eds., Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 4912–4944. p. 7
Where the paper says it

; and Srikumar, V. , Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 4912–4944.

Bangkok, Thailand: Association for Computational Linguistics

Li., Gao., Li., Li., and Liao. p. 7

Where the paper says it

Bangkok, Thailand: Association for Computational Linguistics. ; and Liao, Q.

2024. EconAgent: Large Language Model-Empowered Agents for Simulating Macroeconomic Activities. p. 7
Where the paper says it

; and Liao, Q. EconAgent: Large Language Model-Empowered Agents for Simulating Macroeconomic Activities.

In Ku.-W.; Martins., and Srikumar., eds., Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 15523–15536. p. 7
Where the paper says it

; and Srikumar, V. , Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 15523–15536.

Bangkok, Thailand: Association for Computational Linguistics

Lin.; Kim., et al. 2024. When llm-based code generation meets the software development process. p. 7

Where the paper says it

Bangkok, Thailand: Association for Computational Linguistics. p. 7

Where the paper says it

, Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 1607–1619. Bangkok, Thailand: Association for Computational Linguistics.

When llm-based code generation meets the software development process.

arXiv preprint arXiv:2403. p. 7
Where the paper says it

When llm-based code generation meets the software development process. arXiv preprint arXiv:2403.

15852.

Mou.; Wei.; and Huang. p. 0

Where the paper says it

2023) and simulating social interactions across various domains (Li et al. 2024; Mou, Wei, and Huang 2024; Zhang et al.

2024. Unveiling the Truth and Facilitating Change: Towards Agent-based Large-scale Social Movement Simulation. p. 7
Where the paper says it

; and Huang, X. Unveiling the Truth and Facilitating Change: Towards Agent-based Large-scale Social Movement Simulation.

In Ku.-W.; Martins., and Srikumar., eds., Findings of the Association for Computational Linguistics: ACL 2024, 4789–4809. p. 7
Where the paper says it

; and Srikumar, V. , Findings of the Association for Computational Linguistics: ACL 2024, 4789–4809.

Bangkok, Thailand: Association for Computational Linguistics.

Pearce., Ahmad., Tan., Dolan-Gavitt. p. 7

Where the paper says it

; Ahmad, B. ; Dolan-Gavitt, B.

, and Karri. p. 7
Where the paper says it

; Dolan-Gavitt, B. ; and Karri, R.

2022. Asleep at the keyboard? p. 7
Where the paper says it

; and Karri, R. Asleep at the keyboard?

assessing the security of github copilot’s code contributions. p. 7
Where the paper says it

Asleep at the keyboard? assessing the security of github copilot’s code contributions.

In 2022 IEEE Symposium on Security and Privacy (SP), 754–768. p. 7
Where the paper says it

assessing the security of github copilot’s code contributions. In 2022 IEEE Symposium on Security and Privacy (SP), 754–768.

IEEE.

Qian.; Liu.; Liu.; Chen., Dang., Li.; Yang; Chen. p. 1

Where the paper says it

While previous research has evaluated the security of LLM-generated code (Pearce et al. 2022; Yang et al.

; Su.; Cong.; et al. 2024. Chatdev: Communicative agents for software development. p. 7
Where the paper says it

In 2022 IEEE Symposium on Security and Privacy (SP), 754–768. Chatdev: Communicative agents for software development.

In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 15174–15186. p. 7
Where the paper says it

Chatdev: Communicative agents for software development. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 15174–15186.

Royce, W. W. 1987. Managing the development of large software systems: concepts and techniques. p. 7

Where the paper says it

In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 15174–15186. Managing the development of large software systems: concepts and techniques.

In Proceedings of the 9th international conference on Software Engineering, 328–338. p. 7
Where the paper says it

Managing the development of large software systems: concepts and techniques. In Proceedings of the 9th international conference on Software Engineering, 328–338.

Yang., Jimenez., Wettig., Lieret., Yao.; Narasimhan. p. 7

Where the paper says it

; Lieret, K. ; Narasimhan, K.

, Press, O. p. 7
Where the paper says it

; Narasimhan, K. ; and Press, O.

; and Press. p. 7
Where the paper says it

; Narasimhan, K. ; and Press, O.

2024. SWE-agent: AgentComputer Interfaces Enable Automated Software Engineering. p. 7
Where the paper says it

; and Press, O. SWE-agent: AgentComputer Interfaces Enable Automated Software Engineer-

In The Thirty-eighth Annual Conference on Neural Information Processing Systems. p. 8
Where the paper says it

In The Thirty-eighth Annual Conference on Neural Information Processing Systems. ; Zhang, Z.

Yuan, T.; He; Dong. p. 0

Where the paper says it

2024; Hong et al. 2024; Dong et al.

; Wang.; Zhao.; Xia; Xu; Zhou; Li; Zhang. p. 7
Where the paper says it

In The Twelfth International Conference on Learning Representations. Huang; Zhou, J.

; Wang. 2024. R-Judge: Benchmarking Safety Risk Awareness for LLM Agents. p. 8
Where the paper says it

; and Liu, G. R-Judge: Benchmarking Safety Risk Awareness for LLM Agents.

In Al-Onaizan. p. 8
Where the paper says it

R-Judge: Benchmarking Safety Risk Awareness for LLM Agents. In Al-Onaizan, Y.

, Bansal., and Chen. p. 0
Where the paper says it

2024; Hong et al. 2024; Chen et al.

-N., eds., Findings of the Association for Computational Linguistics: EMNLP 2024, 1467–1490

Zhang., Huang., Mei., Yao., Wang., Zhan., Wang., and Zhang. p. 0

Where the paper says it

2023) and simulating social interactions across various domains (Li et al. 2024; Mou, Wei, and Huang 2024; Zhang et al.

2025. Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents. p. 8
Where the paper says it

; and Zhang, Y. Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents.

In The Thirteenth International Conference on Learning Representations

Zhang, J.; Xu.; Zhang.; Liu.; Hooi; and Deng. p. 8

Where the paper says it

; Zhang, N. ; and Deng, S.

2024a. Exploring Collaboration Mechanisms for LLM Agents: A Social Psychology View. p. 8
Where the paper says it

; and Deng, S. Exploring Collaboration Mechanisms for LLM Agents: A Social Psychology View.

In Ku.-W.; Martins., and Srikumar., eds., Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 14544–14607

Zhang, S.; Wang., Dong., Sun., Zhang., and Pu. 2024b. Experimenting a New Programming Practice with LLMs. p. 8

Where the paper says it

; and Pu, G. Experimenting a New Programming Practice with LLMs.

p. 8
Where the paper says it

; and Pu, G. Experimenting a New Programming Practice with LLMs.

arXiv preprint arXiv:2401. p. 8
Where the paper says it

Experimenting a New Programming Practice with LLMs. arXiv preprint arXiv:2401.

p. 8
Where the paper says it

Experimenting a New Programming Practice with LLMs. arXiv preprint arXiv:2401.

01062.

Zhang, Z.; Cui; Lu.; Zhou.; Yang.; Wang; Huang; and Huang. p. 0

Where the paper says it

2023) and simulating social interactions across various domains (Li et al. 2024; Mou, Wei, and Huang 2024; Zhang et al.

p. 0
Where the paper says it

2023) and simulating social interactions across various domains (Li et al. 2024; Mou, Wei, and Huang 2024; Zhang et al.

2024c. Agent-SafetyBench: Evaluating the Safety of LLM Agents. p. 8
Where the paper says it

; and Huang, M. Agent-SafetyBench: Evaluating the Safety of LLM Agents.

p. 8
Where the paper says it

; and Huang, M. Agent-SafetyBench: Evaluating the Safety of LLM Agents.

arXiv preprint arXiv:2412. p. 8
Where the paper says it

Agent-SafetyBench: Evaluating the Safety of LLM Agents. arXiv preprint arXiv:2412.

p. 8
Where the paper says it

Agent-SafetyBench: Evaluating the Safety of LLM Agents. arXiv preprint arXiv:2412.

14470

Zhang, Z.; Zhang., Li., Shao., Gao., Qiao., Wang., Lu., Hooi;, and Zhao. p. 8

Where the paper says it

; Zhang, Y. ; and Zhao, F.

p. 8
Where the paper says it

; Zhang, Y. ; and Zhao, F.

2024d. PsySafe: A Comprehensive Framework for Psychological-based Attack, Defense, and Evaluation of Multi-agent System Safety. p. 8
Where the paper says it

; and Zhao, F. PsySafe: A Comprehensive Framework for Psychological-based Attack, Defense, and Evaluation of Multi-agent System Safety.

In Ku.-W.; Martins., and Srikumar., eds., Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 15202–15231. p. 8
Where the paper says it

; and Srikumar, V. , Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 15202–15231.

Zhang, S.; Wang.; Dong., Sun., Zhang. 2024b. Experimenting a New Programming Practice with LLMs. arXiv preprint arXiv:2401.01062.

Zhang, Z.; Cui; Lu.; Zhou.; Yang.; Wang; Huang; and Huang. 2024c. Agent-SafetyBench: Evaluating the Safety of LLM Agents. arXiv preprint arXiv:2412.14470

Zhang, Z.; Zhang., Li., Shao., Gao., Hooi;, and Zhao. 2024d.

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Improved defense strategy for Malicious User with Benign Agents (MU-BA) involves integrating adversarial prompts directly into agent configuration profiles to create agents with enhanced security configurations (a star i = ai ⊕ Padv). This allows protecting specific critical-stage agents, such as design or testing agents, which can achieve nearly equivalent effectiveness compared to defending all agents when resources are limited.

  2. Improved defense strategy for Benign User with Malicious Agents (BU-MA) involves implementing adversarial prompting at the user interface level to mitigate potential malicious behaviors introduced by compromised agents (S = A′ opt(Pb ⊕ Padv)). This targets the most effective compromise configuration identified through evaluation across seven distinct compromise scenarios, providing a targeted defense against agent-level manipulation.

  3. Enhanced vulnerability analysis for development phases reveals that infiltration during the coding or testing stages poses significantly higher security risks compared to the design stage. This highlights the necessity of rigorous security inspections at later stages of software development within multi-agent systems.

  4. Targeted defensive prioritization allows for resource-efficient security, as critical agent roles can be identified. For instance, MetaGPT is best protected by design agent configurations, while ChatDev benefits most from code and test configurations, suggesting that prioritizing protection of architecture-specific critical agents effectively mitigates malicious user exploitation.

Abstract

The rapid advancement of Large Language Model (LLM)-driven multi-agent systems has significantly streamlined software developing tasks, enabling users with little technical expertise to develop executable applications. While these systems democratize software creation through natural language requirements, they introduce significant security risks that remain largely unexplored. We identify two risky scenarios: Malicious User with Benign Agents (MU-BA) and Benign User with Malicious Agents (BU-MA). We introduce the Implicit Malicious Behavior Injection Attack (IMBIA), demonstrating how multi-agent systems can be manipulated to generate software with concealed malicious capabilities beneath seemingly benign applications, and propose Adv-IMBIA as a defense mechanism. Evaluations across ChatDev, MetaGPT, and AgentVerse frameworks reveal varying vulnerability patterns, with IMBIA achieving attack success rates of 93%, 45%, and 71% in MU-BA scenarios, and 71%, 84%, and 45% in BU-MA scenarios. Our defense mechanism reduced attack success rates significantly, particularly in the MU-BA scenario. Further analysis reveals that compromised agents in the coding and testing phases pose significantly greater security risks, while also identifying critical agents that require protection against malicious user exploitation. Our findings highlight the urgent need for robust security measures in multi-agent software development systems and provide practical guidelines for implementing targeted, resource-efficient defensive strategies.

Sources

Related papers