The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysis

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Wang, Peiran, Li, Xinfeng, Xiang, Chong, Zhang, Jinghuai, Li, Ying, Zhang, Lixia, Wang, Xiaofeng, Tian, Yuan
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917266825674752
author Wang, Peiran
Li, Xinfeng
Xiang, Chong
Zhang, Jinghuai
Li, Ying
Zhang, Lixia
Wang, Xiaofeng
Tian, Yuan
author_facet Wang, Peiran
Li, Xinfeng
Xiang, Chong
Zhang, Jinghuai
Li, Ying
Zhang, Lixia
Wang, Xiaofeng
Tian, Yuan
contents The evolution of Large Language Models (LLMs) has resulted in a paradigm shift towards autonomous agents, necessitating robust security against Prompt Injection (PI) vulnerabilities where untrusted inputs hijack agent behaviors. This SoK presents a comprehensive overview of the PI landscape, covering attacks, defenses, and their evaluation practices. Through a systematic literature review and quantitative analysis, we establish taxonomies that categorize PI attacks by payload generation strategies (heuristic vs. optimization) and defenses by intervention stages (text, model, and execution levels). Our analysis reveals a key limitation shared by many existing defenses and benchmarks: they largely overlook context-dependent tasks, in which agents are authorized to rely on runtime environmental observations to determine actions. To address this gap, we introduce AgentPI, a new benchmark designed to systematically evaluate agent behavior under context-dependent interaction settings. Using AgentPI, we empirically evaluate representative defenses and show that no single approach can simultaneously achieve high trustworthiness, high utility, and low latency. Moreover, we show that many defenses appear effective under existing benchmarks by suppressing contextual inputs, yet fail to generalize to realistic agent settings where context-dependent reasoning is essential. This SoK distills key takeaways and open research problems, offering structured guidance for future research and practical deployment of secure LLM agents.
format Preprint
id arxiv_https___arxiv_org_abs_2602_10453
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysis
Wang, Peiran
Li, Xinfeng
Xiang, Chong
Zhang, Jinghuai
Li, Ying
Zhang, Lixia
Wang, Xiaofeng
Tian, Yuan
Cryptography and Security
Computation and Language
The evolution of Large Language Models (LLMs) has resulted in a paradigm shift towards autonomous agents, necessitating robust security against Prompt Injection (PI) vulnerabilities where untrusted inputs hijack agent behaviors. This SoK presents a comprehensive overview of the PI landscape, covering attacks, defenses, and their evaluation practices. Through a systematic literature review and quantitative analysis, we establish taxonomies that categorize PI attacks by payload generation strategies (heuristic vs. optimization) and defenses by intervention stages (text, model, and execution levels). Our analysis reveals a key limitation shared by many existing defenses and benchmarks: they largely overlook context-dependent tasks, in which agents are authorized to rely on runtime environmental observations to determine actions. To address this gap, we introduce AgentPI, a new benchmark designed to systematically evaluate agent behavior under context-dependent interaction settings. Using AgentPI, we empirically evaluate representative defenses and show that no single approach can simultaneously achieve high trustworthiness, high utility, and low latency. Moreover, we show that many defenses appear effective under existing benchmarks by suppressing contextual inputs, yet fail to generalize to realistic agent settings where context-dependent reasoning is essential. This SoK distills key takeaways and open research problems, offering structured guidance for future research and practical deployment of secure LLM agents.
title The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysis
topic Cryptography and Security
Computation and Language
url https://arxiv.org/abs/2602.10453