近期研究表明,LLM 智能体容易受到间接提示注入(IPI)攻击;在这种攻击中,嵌入工具检索信息中的恶意任务会诱导智能体执行未经授权的操作。现有 IPI 防御存在显著局限:要么需要大量模型训练资源,要么对复杂攻击缺乏有效性,或损害正常效用。我们提出 MELON(Masked re-Execution and TooL comparisON,掩码重执行与工具比较),一种新型 IPI 防御方法。该方法基于如下观察:在攻击成功时,智能体的下一步操作对用户任务的依赖会降低,而更多依赖恶意任务。据此,我们设计 MELON,通过使用经掩码函数修改的用户提示重新执行智能体轨迹来检测攻击;如果原始执行与掩码执行生成的操作相似,则判定为攻击。我们还加入三项关键设计,以减少潜在的误报和漏报。在 IPI 基准 AgentDojo 上的广泛评估表明,MELON 在攻击阻止和效用保持方面均优于 SOTA 防御。此外,我们证明将 MELON 与 SOTA 提示增强防御结合(记为 MELON-Aug)可进一步提升性能。我们还进行了详细消融研究以验证关键设计。代码位于 https://github.com/kaijiezhu11/MELON。
英文摘要:
Recent research has explored that LLM agents are vulnerable to indirect prompt injection (IPI) attacks, where malicious tasks embedded in tool-retrieved information can redirect the agent to take unauthorized actions. Existing defenses against IPI have significant limitations: either require essential model training resources, lack effectiveness against sophisticated attacks, or harm the normal utilities. We present MELON (Masked re-Execution and TooL comparisON), a novel IPI defense. Our approach builds on the observation that under a successful attack, the agent's next action becomes less dependent on user tasks and more on malicious tasks. Following this, we design MELON to detect attacks by re-executing the agent's trajectory with a masked user prompt modified through a masking function. We identify an attack if the actions generated in the original and masked executions are similar. We also include three key designs to reduce the potential false positives and false negatives. Extensive evaluation on the IPI benchmark AgentDojo demonstrates that MELON outperforms SOTA defenses in both attack prevention and utility preservation. Moreover, we show that combining MELON with a SOTA prompt augmentation defense (denoted as MELON-Aug) further improves its performance. We also conduct a detailed ablation study to validate our key designs. Code is available at https://github.com/kaijiezhu11/MELON.
AuditVotes: Elevating Provable Defense for GNNs with Efficient Augmentation and Conditional Smoothing
Xidian University(西安电子科技大学);The Hong Kong Polytechnic University(香港理工大学);Hong Kong Chu Hai College(香港 Chu Hai 学院);National University of Defense Technology(国防科技大学);Shanghai JiaoTong University(上海交通大学);Hubei University(湖北大学)
ReliabilityRAG: Effective and Provably Robust Defense for RAG-based Web-Search
Department of Computer Science(计算机科学系);Princeton University(普林斯顿大学);Center for Information Technology Policy(信息政策中心);Department of Electrical and Computer Engineering(电气与计算机工程系);NVIDIA(英伟达)
ScaleCert: Scalable Certified Defense against Adversarial Patches with Sparse Superficial Layers
Institute of Computing Technology, CAS(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);Cambricon Technologies(寒武纪科技);UC Santa Barbara(加州大学圣巴巴拉分校);Northeastern University(东北大学);Drexel University(德雷塞尔大学)
Toward Polymorphic Backdoor against Semantic Communication via Intensity-Based Poisoning
School of Computer Science, Shanghai Jiao Tong University(上海交通大学计算机科学学院);Shanghai Key Laboratory of Integrated Administration Technologies for Information Security(上海信息安全集成管理技术重点实验室);Department of Computing, Hong Kong Polytechnic University(香港理工大学计算机系);Department of Electrical and Computer Engineering and Frost Institute for Data Science and Computing, University of Miami(迈阿密大学电子与计算机工程系及弗罗斯特数据科学与计算研究所)
Fairis: Fairness-Aware Aggregation with Provable Influence Containment against Fairness Poisoning Attacks in Collaborative Machine Learning
Bowie State University(鲍伊州立大学);Télécom SudParis(南巴黎电信学院);Institut Polytechnique de Paris(巴黎综合理工学院);Brown University(布朗大学);Northern Virginia Community College(北弗吉尼亚社区学院)
RPP: A Certified Poisoned-Sample Detection Framework for Backdoor Attacks under Dataset Imbalance
Old Dominion University(旧 Dominion 大学);University of Texas at El Paso(德克萨斯大学埃尔帕索分校);University of Central Florida(中央佛罗里达大学);Iowa State University(爱荷华州立大学);University of Arizona(亚利桑那大学)
FLCert: Provably Secure Federated Learning against Poisoning Attacks
Meta Platforms(Meta平台公司);University of Science and Technology of China(中国科学技术大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Duke University(杜克大学)