Research map / Multi-agent systems and games / LLM agents
The Task Shield: Enforcing Task Alignment to Defend Against Indirect Prompt Injection in LLM Agents
Feiran Jia, Tong Wu, Xin Qin, Anna Squicciarini
Pennsylvania State University · Princeton University · California State University
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add Task Shield | GPT-4o · AgentDojo overall, Important Instructions | ASR: 47.69 -> 2.07 | Improved |
| add Task Shield | GPT-4o · AgentDojo overall, Important Instructions | utility under attack: 50.08 -> 69.79 | Improved |
| add Task Shield | GPT-4o-mini · AgentDojo overall, Important Instructions | ASR: 27.19 -> 2.23 | Improved |
| add Task Shield | GPT-4o-mini · AgentDojo overall, Important Instructions | clean utility: 68.04 -> 68.04 | No clear effect |
| add Task Shield | GPT-4o · AgentDojo overall, Injecagent attack | ASR: 5.72 -> 1.11 | Improved |
| add Task Shield | GPT-4o · AgentDojo overall, Ignore Previous attack | ASR: 5.41 -> 0.48 | Improved |
| add Task Shield | GPT-4o · AgentDojo Travel, Injecagent and Ignore Previous | utility under attack: Injecagent 72.14 -> 67.86; Ignore Previous 77.14 -> 70.71 | Hurt |
| use PI Detector instead of no defense | GPT-4o · AgentDojo overall, Important Instructions | utility under attack: 50.08 -> 21.14 | Hurt |
| use Repeat Prompt instead of Task Shield | GPT-4o · AgentDojo overall, Important Instructions | ASR: 27.82 vs 2.07 for Task Shield | Hurt |
| add Task Shield | GPT-3.5-turbo · AgentDojo overall, Important Instructions | utility under attack: 34.66 -> 30.05 | Hurt |
| add Task Shield | GPT-3.5-turbo · AgentDojo overall, Important Instructions | ASR: 8.43 -> 0.95 | Improved |
| add Task Shield | GPT-4o · AgentDojo Workspace, Important Instructions | utility under attack: 24.17 -> 62.50 | Improved |
Open problems in agent safety and attack benchmarks
Do agent attacks and defenses still hold against adaptive attackers, on deployed systems and at low cost?
- Evidence comes from sandboxes and synthetic data, not deployed agent systems. · 24 papers state it
- Attack and safety scores depend on LLM judges with little human checking. · 20 papers state it
- Defenses are tested only against fixed attacks, not adaptive attackers. · 18 papers state it
Closest papers by meaning
- AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents (NeurIPS 2024 · similarity 0.90)
- Think Twice Before You Act: Protecting LLM Agents Against Tool Description Poisoning via Isolated Planning (ICML 2026 · similarity 0.89)
- Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents (ICLR 2025 · similarity 0.89)
- ChatInject: Abusing Chat Templates for Prompt Injection in LLM Agents (ICLR 2026 · similarity 0.89)
- Attractive Metadata Attack: Inducing LLM Agents to Invoke Malicious Tools (NeurIPS 2025 · similarity 0.88)
- Skill-Inject: Measuring Agent Vulnerability to Skill File Attacks (NeurIPS 2026 · similarity 0.88)
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.