Stateful Cooperative Agents Safeguarding LLMs Against Evolving Multi-Turn Attacks
Siyuan Li, Zehao Liu, Haoyu Li, Xi Lin, Ning Liu, Jun Wu, Jianhua Li, Mohsen Guizani
Abstract
As LLMs become increasingly integrated into complex applications, their vulnerability to adversarial attacks has raised significant concerns. However, existing defenses remain reactive in nature. This limitation makes it difficult for them to counter sophisticated threats, as adversaries continuously adjust their strategies across multi-turn interactions. In this paper, we present a proactive defense framework for securing LLMs against evolving multi-turn adversarial attacks that combines disruption, misdirection, and adaptation across successive interaction turns. In particular, it employs a cooperative multi-agent architecture in which specialized agents execute complementary defense strategies. These strategies include controlled response pacing to increase attack costs, strategically ambiguous outputs to mislead adversaries into ineffective strategies, and forensic analysis of interaction logs to identify attack patterns and refine defenses. These agents are coordinated by an adaptive mechanism that dynamically adjusts the defense strategy in response to escalating threats. To facilitate comprehensive evaluation, we present the EMRA dataset designed to simulate evolving strategies across multi-turn attacks, including 5,200 adversarial samples across eight attack types. Experimental results on EMRA across multiple LLM backbones show that the proposed framework reduces ASR by 69% on average relative to evaluated state-of-the-art baselines. Beyond suppressing harmful outputs, it sustains deceptive engagement, achieving an average DR more than six times that of the strongest baselines and increasing attacker-token consumption by 198.83% on average relative to evaluated baselines. Code and dataset are available at https://github.com/SiyuanLi00/CoopGuard.
Create a lesson
Related papers
Dependency-Aware Privacy for Multi-turn LLM Agents
Shared title terminology · Divyam Anshumaan, Sarthak Choudhary, Nils Palumbo et al.
Turn-Based Structural Triggers: Structure-Conditioned Backdoors in Multi-Turn LLMs
Shared title terminology · Yiyang Lu, Jinwen He, Yue Zhao et al.
State-Dependent Safety Failures in Multi-Turn Language Model Interaction
Shared title terminology · Pengcheng Li, Jie Zhang, Tianwei Zhang et al.
DailySafe: Benchmarking Dynamic Safety Awareness in Everyday Multi-Turn Multimodal Interactions
Shared title terminology · Xuankun Rong, Xinhao Deng, Wenzheng Jiang et al.
ALIoTh: Orchestrating Multi-Agent LLMs for Autonomous IoT Penetration Testing
Shared title terminology · Pironti Francesco Aurelio, Arena Luigi, Blefari Francesco et al.
Attacks and Defenses in Decentralized Multi-Agent Systems with Hop-by-Hop Task Decomposition and Delegation
Shared title terminology · Matthew D. Laws, Maria Lazou, Alina Oprea et al.