Shadows in the Code: Exploring the Risks and Defenses of LLM-based Multi-Agent Software Development Systems
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 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. 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.Where the paper says it
Where the paper says it
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 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. 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.Where the paper says it
Where the paper says it
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 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. 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. 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. 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.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
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 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 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. 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. 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. 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.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
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 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. 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. 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. 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.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
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 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. 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. 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.Where the paper says it
Where the paper says it
Where the paper says it
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 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. 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. 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.Where the paper says it
Where the paper says it
Where the paper says it
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 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.Where the paper says it
References
Andriushchenko, M.; Souly, A. p. 7 References
Andriushchenko, M. ; Souly, A. ; Souly, A. ; Dziemian, M. ; Dziemian, M. ; Duenas, D. ; Duenas, D. ; Hendrycks, D. ; Hendrycks, D. ; Kolter, Z. ; Kolter, Z. ;
Fredrikson, M. ;
Fredrikson, M. ; Winsor, E. ; Wynne, J. ; and Davies,
X. ; and Davies,
X. AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents. AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents. arXiv preprint arXiv:2410.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Chen, G.; Dong, S.; Shu, Y.; Zhang, G. p. 0 2023) and simulating social interactions
across various domains (Li et al. 2024; Mou, Wei, and
Huang 2024; Zhang et al. ; Zhang, G. ; Sesay, J. ; Sesay, J. ; Karlsson, B. ; and Shi, Y. AutoAgents: a framework for automatic agent generation. AutoAgents: a framework for automatic agent generation. In Proceedings of the
Thirty-Third International Joint Conference on Artificial Intelligence, IJCAI ’24.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
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 ISBN 978-1-956792-04-1. Agentverse: Facilitating multi-agent collaboration and exploring
emergent behaviors. Agentverse: Facilitating multi-agent collaboration and exploring
emergent behaviors. In The Twelfth International Conference on Learning Representations.Where the paper says it
Where the paper says it
Debenedetti, E. p. 1 2024; Zhang et al. 2025, 2024c;
Debenedetti et al. 2023) and simulating social interactions
across various domains (Li et al. 2024; Mou, Wei, and
Huang 2024; Zhang et al. ; Zhang, J. ; Balunovic, M. ; Balunovic, M. ; Beurer-Kellner,
L. ; Beurer-Kellner,
L. ; Fischer, M. ; Fischer, M. ; and Tramer, F. ; and Tramer, F. AgentDojo: A Dy- `
namic Environment to Evaluate Prompt Injection Attacks
and Defenses for LLM Agents.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Dong, Y.; Jiang, X. p. 7 In The Thirty-eight Conference on Neural Information Processing Systems Datasets
and Benchmarks Track. ; Jiang, X. ; and Li, G. Selfcollaboration code generation via chatgpt. Selfcollaboration code generation via chatgpt. ACM Transactions on Software Engineering and Methodology, 33(7): 1–
38.Where the paper says it
Where the paper says it
Where the paper says it
Du, Z.; Qian., Liu., Xie., Wang., Dang., Chen., and Yang. p. 1 While previous research has evaluated the security of
LLM-generated code (Pearce et al. 2022; Yang et al. ; and Yang, C. Multi-Agent Software Development through Cross-Team Collaboration. Multi-Agent Software Development through Cross-Team Collaboration. arXiv preprint
arXiv:2406.Where the paper says it
Where the paper says it
Where the paper says it
Gao, D.; Li.; Pan.; Kuang., Ma., Qian., Wei; Zhang. p. 0 2023) and simulating social interactions
across various domains (Li et al. 2024; Mou, Wei, and
Huang 2024; Zhang et al. 2024; Hong et al. 2024; Chen et al. ; Zhang, W. Agentscope:
A flexible yet robust multi-agent platform. Agentscope:
A flexible yet robust multi-agent platform. arXiv preprint
arXiv:2402.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Guo, C.; Liu.; Xie.; Zhou., Zeng., Lin.; Song., and Li. 2024. RedCode: Risky Code Execution and Generation Benchmark for Code Agents. p. 7 ; and Li, B. RedCode: Risky Code Execution and Generation Benchmark for Code Agents.Where the paper says it
Hajipour, H.; Hassler, K. p. 7 Hajipour, H. ; Hassler, K. ; Hassler, K. ; Schonherr, L. ; Schonherr, L. ; and Fritz, ¨
M. ; and Fritz, ¨
M. CodeLMSec Benchmark: Systematically Evaluating and Finding Security Vulnerabilities in Black-Box Code
Language Models. 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.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Han, S.; Chen., Lin.-M.; Xu., Z.; and Yu. 2024. IBSEN: Director-Actor Agent Collaboration for Controllable and Interactive Drama Script Generation. p. 7 ; and Yu, K. IBSEN: Director-Actor Agent Collaboration for Controllable
and Interactive Drama Script Generation. ; Martins, A. ; and Srikumar, V. ; Martins, A. ; and Srikumar, V. ; Martins, A. ; and Srikumar, V. ; Martins, A. ; and Srikumar, V. ; Martins, A. ; and Srikumar, V. ; Martins, A. ; and Srikumar, V. ; and Srikumar, V. , Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 1607–1619.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Hong, S.; Zhuge, M. p. 7 Bangkok, Thailand: Association for Computational Linguistics. ; Zhuge, M. ; and Schmidhuber, J. MetaGPT:
Meta Programming for A Multi-Agent Collaborative Framework.Where the paper says it
Where the paper says it
Huang; Zhou, J.; Jin.; Zhou., Chen.; Wang., Yuan.; Lyu; and Sap. p. 7 Huang; Zhou, J. ; and Sap, M. ; and Sap, M. On the Resilience of LLM-Based Multi-Agent Collaboration with
Faulty Agents. On the Resilience of LLM-Based Multi-Agent Collaboration with
Faulty Agents. In Forty-second International Conference
on Machine Learning.Where the paper says it
Where the paper says it
Where the paper says it
Islam, M. A.; Ali, M. E.; and Parvez, M. p. 0 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. ; and Parvez, M. MapCoder: Multi-Agent Code Generation for Competitive Problem Solving. ; and Srikumar, V. , Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long
Papers), 4912–4944.Where the paper says it
Where the paper says it
Where the paper says it
Li., Gao., Li., Li., and Liao. p. 7 Bangkok, Thailand: Association for
Computational Linguistics. ; and Liao, Q. ; and Liao, Q. EconAgent: Large Language Model-Empowered Agents for Simulating Macroeconomic Activities. ; and Srikumar, V. , Proceedings of the 62nd Annual
Meeting of the Association for Computational Linguistics
(Volume 1: Long Papers), 15523–15536.Where the paper says it
Where the paper says it
Where the paper says it
Lin.; Kim., et al. 2024. When llm-based code generation meets the software development process. p. 7 Bangkok, Thailand: Association for Computational Linguistics. p. 7 , 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.Where the paper says it
Where the paper says it
Where the paper says it
Mou.; Wei.; and Huang. p. 0 2023) and simulating social interactions
across various domains (Li et al. 2024; Mou, Wei, and
Huang 2024; Zhang et al. ; and Huang, X. Unveiling the Truth
and Facilitating Change: Towards Agent-based Large-scale
Social Movement Simulation. ; and
Srikumar, V. , Findings of the Association for Computational Linguistics: ACL 2024, 4789–4809.Where the paper says it
Where the paper says it
Where the paper says it
Pearce., Ahmad., Tan., Dolan-Gavitt. p. 7 ; Ahmad, B. ; Dolan-Gavitt, B. ; Dolan-Gavitt, B. ; and Karri,
R. ; and Karri,
R. Asleep at the keyboard? Asleep at the keyboard? assessing the security of
github copilot’s code contributions. assessing the security of
github copilot’s code contributions. In 2022 IEEE Symposium on Security and Privacy (SP), 754–768.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Qian.; Liu.; Liu.; Chen., Dang., Li.; Yang; Chen. p. 1 While previous research has evaluated the security of
LLM-generated code (Pearce et al. 2022; Yang et al. In 2022 IEEE Symposium on Security and Privacy (SP), 754–768. Chatdev: Communicative agents for software development. 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.Where the paper says it
Where the paper says it
Where the paper says it
Royce, W. W. 1987. Managing the development of large software systems: concepts and techniques. p. 7 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. Managing the development of large
software systems: concepts and techniques. In Proceedings
of the 9th international conference on Software Engineering,
328–338.Where the paper says it
Where the paper says it
Yang., Jimenez., Wettig., Lieret., Yao.; Narasimhan. p. 7 ; Lieret, K. ;
Narasimhan, K. ;
Narasimhan, K. ; and Press, O. ;
Narasimhan, K. ; and Press, O. ; and Press, O. SWE-agent: AgentComputer Interfaces Enable Automated Software Engineer- In The Thirty-eighth Annual Conference on Neural Information Processing Systems. ; Zhang, Z.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Yuan, T.; He; Dong. p. 0 2024; Hong et al. 2024; Dong et al. In The Twelfth International Conference on Learning
Representations. Huang; Zhou, J. ; and Liu, G. R-Judge: Benchmarking Safety Risk Awareness for
LLM Agents. R-Judge: Benchmarking Safety Risk Awareness for
LLM Agents. In Al-Onaizan, Y. 2024; Hong et al. 2024; Chen et al.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Zhang., Huang., Mei., Yao., Wang., Zhan., Wang., and Zhang. p. 0 2023) and simulating social interactions
across various domains (Li et al. 2024; Mou, Wei, and
Huang 2024; Zhang et al. ; and Zhang, Y. Agent Security Bench
(ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents.Where the paper says it
Where the paper says it
Zhang, J.; Xu.; Zhang.; Liu.; Hooi; and Deng. p. 8 ; Zhang, N. ; and Deng,
S. ; and Deng,
S. Exploring Collaboration Mechanisms for LLM
Agents: A Social Psychology View.Where the paper says it
Where the paper says it
Zhang, S.; Wang., Dong., Sun., Zhang., and Pu. 2024b. Experimenting a New Programming Practice with LLMs. p. 8 ; and Pu,
G. Experimenting a New Programming Practice with
LLMs. ; and Pu,
G. Experimenting a New Programming Practice with
LLMs. Experimenting a New Programming Practice with
LLMs. arXiv preprint arXiv:2401. Experimenting a New Programming Practice with
LLMs. arXiv preprint arXiv:2401.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Zhang, Z.; Cui; Lu.; Zhou.; Yang.; Wang; Huang; and Huang. p. 0 2023) and simulating social interactions
across various domains (Li et al. 2024; Mou, Wei, and
Huang 2024; Zhang et al. 2023) and simulating social interactions
across various domains (Li et al. 2024; Mou, Wei, and
Huang 2024; Zhang et al. ;
and Huang, M. Agent-SafetyBench: Evaluating the
Safety of LLM Agents. ;
and Huang, M. Agent-SafetyBench: Evaluating the
Safety of LLM Agents. Agent-SafetyBench: Evaluating the
Safety of LLM Agents. arXiv preprint arXiv:2412. Agent-SafetyBench: Evaluating the
Safety of LLM Agents. arXiv preprint arXiv:2412.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
Zhang, Z.; Zhang., Li., Shao., Gao., Qiao., Wang., Lu., Hooi;, and Zhao. p. 8 ; Zhang, Y. ; and Zhao, F. ; Zhang, Y. ; and Zhao, F. ; and Zhao, F. PsySafe: A Comprehensive Framework for Psychological-based Attack, Defense, and Evaluation of Multi-agent System Safety. ; and Srikumar, V. , Proceedings of
the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 15202–15231.Where the paper says it
Where the paper says it
Where the paper says it
Where the paper says it
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
-
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. -
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.
-
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 ofrigorous security inspections at later stages of software development within multi-agent systems.
-
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
- AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents
- CyberSecEval 2: A Wide-Ranging Cybersecurity Evaluation Suite for Large Language Models
- Multi-Agent Collaboration via Cross-Team Orchestration
- AgentScope: A Flexible yet Robust Multi-Agent Platform
- SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agents
- Experimenting a New Programming Practice with LLMs
- Agent-SafetyBench: Evaluating the Safety of LLM Agents
Related papers
- RustMizan: A Compilable, Contamination-Aware Benchmarking Framework for Rust Vulnerabilities
- Introducing the Generative Application Firewall (GAF)
- Opal: Private Memory for Personal AI
- Fuel as Identity: Authenticating Inter-Satellite Laser Links after Total Key Compromise
- Merkle Trees Minimize Verifier Complexity in the ROM
- VulCPE: Context-Aware Cybersecurity Vulnerability Retrieval and Management