AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases

医学 计算机科学 动作(物理) 钥匙(锁) 药品 药理学 疾病 鉴定(生物学) 透视图(图形) 人工智能
作者
Zhaorun Chen,Zhen Xiang,Chaowei Xiao,Dawn Song,Bo Li
出处
期刊: [Neural Information Processing Systems Foundation]
卷期号:: 130185-130213 被引量:677
标识
DOI:10.52202/079017-4136
摘要

LLM agents have demonstrated remarkable performance across various applications, primarily due to their advanced capabilities in reasoning, utilizing external knowledge and tools, calling APIs, and executing actions to interact with environments. Current agents typically utilize a memory module or a retrieval-augmented generation (RAG) mechanism, retrieving past knowledge and instances with similar embeddings from knowledge bases to inform task planning and execution. However, the reliance on unverified knowledge bases raises significant concerns about their safety and trustworthiness. To uncover such vulnerabilities, we propose a novel red teaming approach AgentPoison, the first backdoor attack targeting generic and RAG-based LLM agents by poisoning their long-term memory or RAG knowledge base. In particular, we form the trigger generation process as a constrained optimization to optimize backdoor triggers by mapping the triggered instances to a unique embedding space, so as to ensure that whenever a user instruction contains the optimized backdoor trigger, the malicious demonstrations are retrieved from the poisoned memory or knowledge base with high probability. In the meantime, benign instructions without the trigger will still maintain normal performance. Unlike conventional backdoor attacks, AgentPoison requires no additional model training or fine-tuning, and the optimized backdoor trigger exhibits superior transferability, in-context coherence, and stealthiness. Extensive experiments demonstrate AgentPoison's effectiveness in attacking three types of real-world LLM agents: RAG-based autonomous driving agent, knowledge-intensive QA agent, and healthcare EHRAgent. On each agent, AgentPoison achieves an average attack success rate higher than 80% with minimal impact on benign performance (less than 1%) with a poison rate less than 0.1%.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
123456发布了新的文献求助10
1秒前
2秒前
搜集达人的应助被BroaI采纳,获得30
3秒前
xz发布了新的文献求助50
3秒前
zjy15638发布了新的文献求助10
4秒前
CipherSage的应助被侯军杰采纳,获得10
4秒前
星辰大海的应助被hanyangyang采纳,获得50
4秒前
4秒前
5秒前
方方完成签到,获得积分10
5秒前
zzzh关注了科研通微信公众号
6秒前
大白兔发布了新的文献求助10
7秒前
一二发布了新的文献求助10
8秒前
情怀的应助被现代采纳,获得10
8秒前
8秒前
Tohka发布了新的文献求助10
9秒前
SciGPT的应助被GongFei采纳,获得10
9秒前
华仔的应助被WQY采纳,获得10
9秒前
赵保钢发布了新的文献求助10
9秒前
Lucas的应助被G1234采纳,获得10
10秒前
11秒前
12秒前
lx发布了新的文献求助10
12秒前
李爱国的应助被zeng采纳,获得10
12秒前
情怀的应助被迷你的夏菡采纳,获得10
13秒前
15秒前
淡然的晓旋完成签到 ,获得积分10
15秒前
科研通AI6.2的应助被BING采纳,获得10
15秒前
15秒前
斯文败类的应助被隐龙居士采纳,获得10
15秒前
16秒前
博士搏斗完成签到 ,获得积分10
16秒前
16秒前
weddy完成签到,获得积分10
16秒前
CITY111119发布了新的文献求助30
16秒前
saflgf发布了新的文献求助10
17秒前
17秒前
18秒前
18秒前
xysama完成签到,获得积分10
18秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
The Martian climate revisited : atmosphere and environment of a desert planet 600
Sex, Aging, and Death in a Medieval Medical Compendium: Trinity College Cambridge MS R.14.52, Its Texts, Language, and Scribe 450
Determination of Coagulation Factor Activities Using the One-Stage Clotting Assay 400
改訂11版 化学・バイオ特許の出願戦略 全文 400
《化学系特許明細書・意見書の書き方》全文 400
True Bugs of the World (Hemiptera, Heteroptera) Classification and Natural History (Second Edition) 300
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8213087
求助须知:如何正确求助?哪些是违规求助? 9594758
关于积分的说明 21956217
捐赠科研通 7819217
什么是DOI,文献DOI怎么找? 3443575
关于科研通互助平台的介绍 2565632
邀请新用户注册赠送积分活动 2491658