arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.14517cs.CRcs.AI
收藏

从盾牌到靶心:针对基于LLM的智能体护栏的拒绝服务攻击

From Shield to Target: Denial-of-Service Attacks on LLM-Based Agent Guardrails

National University of Singapore(新加坡国立大学);University of Science and Technology of China(中国科学技术大学)

Yuguang Zhou, Xunguang Wang, Pingchuan Ma, Zhantong Xue, Zhaoyu Wang, Shuai Wang

AI总结:

本文揭示基于LLM的护栏易受拒绝服务攻击,通过束搜索优化框架和机制感知结构变异生成恶意负载,导致令牌放大13-63倍、延迟放大148倍,威胁系统可用性。

摘要:

基于LLM的护栏已成为自主智能体中防御提示注入和越狱攻击的高效手段。然而,我们发现正是这种实现保护的推理和任务遵循能力引入了一种新的漏洞:攻击者可以注入精心构造的数据,使护栏陷入扩展推理循环,从而实施系统性的拒绝服务(DoS)攻击。为系统性地揭示这一威胁,我们设计了一个束搜索优化框架,利用策略库引导的LLM提议器,生成自然语言负载以最大化护栏推理长度。基于对护栏模式遵循性质的观察,我们还提供了另一种由机制感知结构变异驱动的攻击框架,计算负载更小。攻击效能通过两部分系统评估。首先,在独立评估中,攻击可泛化到多种护栏架构、安全模板和智能体基准。在单个开源替代模型上优化的负载成功迁移到八个领先模型骨干(如Claude、GPT、Gemini、DeepSeek和Qwen),实现13-63倍的令牌放大。其次,在端到端的真实世界智能体部署(网页、桌面、代码和多智能体系统)中,攻击揭示高达148倍的延迟放大。我们表明,单个中毒文档即可饱和共享护栏基础设施,有效饿死同位置智能体并瘫痪整个系统。通过揭示这一可用性缺陷,我们的工作强调了开发成本受限、推理鲁棒的护栏的紧迫性。

英文摘要:

LLM-based guardrails have emerged as a highly effective defense against prompt injection and jailbreak attacks in autonomous agents. However, we reveal that the very reasoning and task-following capabilities enabling this protection introduce a novel vulnerability: attackers can inject crafted data to trap the guardrail in extended reasoning loops, effectuating a systematic denial-of-service (DoS) attack. To systematically expose this threat, we design a beam-search optimization framework that crafts natural-language payloads to maximize guardrail reasoning length, utilizing an LLM proposer guided by a strategy bank. Based on the observation of guardrail's schema-following nature, we also provide another attack framework driven by mechanism-aware structural mutations with less computational load. The attack efficacy is systematically evaluated in two parts. First, in standalone evaluations, the attack generalizes across diverse guardrail architectures, safety templates, and agent benchmarks. Payloads optimized on a single open-source surrogate successfully transfer to eight leading model backbones (e.g., Claude, GPT, Gemini, DeepSeek, and Qwen), achieving a 13--63$\times$ token amplification. Second, in end-to-end real-world agent deployments (web, desktop, code, and multi-agent systems), the attack reveals up to a 148$\times$ latency amplification. We show that a single poisoned document can saturate shared guardrail infrastructures, effectively starving co-located agents and paralyzing the entire system. By uncovering this availability flaw, our work underscores the urgent need to develop cost-bounded, reasoning-robust guardrails.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑