atlas

Research map / Multi-agent systems and games / LLM agents

Watch Out for Your Agents! Investigating Backdoor Threats to LLM-Based Agents

NeurIPS 2024 · Multi-agent systems and games › LLM agents · approach: LLM multi-agent collaboration and safety · 8 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Formulates backdoor attacks on ReAct-style LLM agents and instantiates three variants (Query-Attack, Observation-Attack, Thought-Attack) via poisoned fine-tuning data on AgentInstruct WebShop and ToolBench, showing high attack success and that a textual defense (DAN) largely fails.

Problem

LLM-based agents are deployed in high-stakes applications, but their security against backdoor attacks is under-explored; agents' multi-step reasoning opens attack forms beyond the input/output manipulation studied for plain LLMs.

Approach

Generalizes backdoors to intermediate reasoning and action steps of agents: triggers can sit in the user query or in environment observations, and attacks can alter only thoughts/actions while keeping the final output correct (Thought-Attack).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase Query-Attack poisoned samples from 0 to 50LLaMA2-7B-Chat on WebShop · WebShop WS TargetASR (%): 0 -> 100Helped
Increase Observation-Attack poisoned samples from 0 to 50LLaMA2-7B-Chat on WebShop · WebShop WS TargetASR (%): 9 -> 78Helped
Use an observation trigger instead of a query triggerAgent backdoor attack on WebShop · WebShop WS TargetASR (%): 100 -> 78Hurt
Poison Query-Attack training tracesLLaMA2-7B-Chat on WebShop · WebShop WS TargetReward: 65.36 -> 48.33Hurt
Poison Observation-Attack training tracesLLaMA2-7B-Chat on WebShop · WebShop WS TargetReward: 64.47 -> 39.98Hurt
Expand Query-Attack triggers from sneakers to broader related-goods keywordsQuery-Attack on WebShop · WebShop WS Target, broader trigger tokensASR (%): 100 -> 68Hurt
Expand Observation-Attack triggers from sneakers to broader related-goods keywordsObservation-Attack on WebShop · WebShop WS Target, broader trigger tokensASR (%): 78 -> 61Hurt
Add ShareGPT conversational data to trainingQuery-Attack on WebShop · WebShop WS Target, generalist settingASR (%)No clear effect
Apply DAN textual backdoor detectionQuery-Attack on WebShop · WebShop Query-Attack, UnknownFAR (%): 95.00Hurt
Apply DAN textual backdoor detectionObservation-Attack on WebShop · WebShop Observation-Attack, UnknownFAR (%): 100.00Hurt
Manipulate intermediate reasoning and tool choice while preserving the final answerThought-Attack on ToolBench · TranslationsPass RateNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: AgentInstruct ToolBench ShareGPT MMLU

Benchmarks: AgentInstruct held-in tasks (AlfWorld, Mind2Web, Knowledge Graph, Operating System, Database) WebShop ToolBench MMLU

Metrics: success rate step success rate F1 reward pass rate attack success rate AUROC false acceptance rate

Baselines: Clean model DAN Mahalanobis distance

Builds on: ReAct AgentInstruct ToolBench DAN

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy