Black-Box Red-Teaming of Multi-Agent Systems via Reinforcement Learning
Organizations: Duke University · ByteDance · University of Maryland, College Park
Abstract
Large language model (LLM) agents are increasingly deployed in multi-agent systems (MAS) to accomplish complex tasks. Prior black-box red-teaming attacks mainly focus on single agents, but we find that these methods are far less effective in MAS, where multiple sub-agents may not directly interact with the user. Therefore, we introduce ReMAS, the first reinforcement learning-based red-teaming framework tailored to MASs, which fine-tunes attacker LLMs to generate effective adversarial prompts for system prompt extraction. The framework follows a two-step process: first, a rewrite stage refines base attack prompts to increase extraction success, and second, a template generation stage constructs attack templates that improve the likelihood of invoking specific sub-agents and thus revealing their system prompts. Extensive experiments show that our method substantially improves attack success rates compared to existing black-box attacks, with transferability across different backend LLMs and MAS structures. These results underscore the vulnerabilities of multi-agent systems and the importance of developing stronger defenses against adaptive black-box adversaries.
Figures & tables
| Attack | Coding | Search | Music Gen. | Question Solving | Trans. | Video Gen. | Writing | |||||||
| CAR | ASR | CAR | ASR | CAR | ASR | CAR | ASR | CAR | ASR | CAR | ASR | CAR | ASR | |
| PAIR | 0.14 | 0.04 | 0.26 | 0.03 | 0.34 | 0.07 | 0.27 | 0.07 | 0.15 | 0.08 | 0.18 | 0.04 | 0.34 | 0.11 |
| TAP | 0.12 | 0.01 | 0.16 | 0.01 | 0.36 | 0.09 | 0.17 | 0.05 | 0.16 | 0.06 | 0.14 | 0.00 | 0.29 | 0.07 |
| AutoDan-Turbo | 0.52 | 0.16 | 0.54 | 0.18 | 0.73 | 0.25 | 0.58 | 0.28 | 0.73 | 0.21 | 0.64 | 0.14 | 0.63 | 0.26 |
| Ours | 0.99 | 0.89 | 1.00 | 0.62 | 0.98 | 0.89 | 0.99 | 0.82 | 0.99 | 0.80 | 1.00 | 0.86 | 0.99 | 0.76 |
| Attack | Mistral-7B- Instruct-v0.3 | Llama-3.1- 8B-Instruct | Gemma-2- 9b-it | Qwen2.5- 7B-Instruct | ||||
| CAR | ASR | CAR | ASR | CAR | ASR | CAR | ASR | |
| PAIR | 0.24 | 0.04 | 0.28 | 0.03 | 0.25 | 0.04 | 0.34 | 0.10 |
| TAP | 0.28 | 0.02 | 0.29 | 0.02 | 0.20 | 0.03 | 0.29 | 0.08 |
| AutoDAN-Turbo | 0.40 | 0.04 | 0.59 | 0.06 | 0.37 | 0.05 | 0.69 | 0.18 |
| Ours | 0.99 | 0.64 | 1.00 | 0.48 | 0.99 | 0.55 | 0.99 | 0.49 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
LLM Red Teaming
Large language model red teaming probes how models and agents can be induced to violate safety, security, or operational constraints.
See all 62 papers