Prompt Injection as a Systemic Vulnerability in LLM-Based Tools: Threat Models, Empirical Analysis, and Mitigation Strategies
Abstract
Large language models (LLMs) deployed as autonomous agents with tool access, retrieval pipelines, and persistent memory expose an expanded attack surface. We formalize prompt injection as a control-boundary violation arising from the conflation of trusted instructions and untrusted data within LLM context windows. We introduce a threat model spanning user input, retrieval pipelines, tool outputs, and persistent memory, and develop a structured taxonomy of attack vectors. We conduct a controlled empirical evaluation across three system architectures (chatbot, retrieval-augmented system, autonomous agent) and three major LLM families (GPT-4, Claude 3.5 Sonnet, Gemini 1.5 Pro), totaling 2,100 trials (N=50 per configuration). Results show a monotonic increase in attack success as system autonomy expands, with memory poisoning reaching 94% (95% CI: 83.8-98.2%) in autonomous configurations. Through systematic ablation of six mitigation strategies, we find that prompt-level defenses provide limited protection (3.2 percentage points), while architectural controls---specifically tool permission gating, memory write filtering, and provenance tracking---reduce memory poisoning from 94% to 11%. These findings demonstrate that prompt injection is fundamentally a system-level vulnerability requiring external policy enforcement rather than prompt engineering alone.
Create a lesson
Metadata
- Journal
- 2026 IEEE/ACIS 24th International Conference on Software Engineering Research, Management and Applications (SERA), pp. 291-296, 2026
- Comments
- 6 pages, 4 tables. Published in the 2026 IEEE/ACIS 24th International Conference on Software Engineering Research, Management and Applications (SERA)
Related papers
Re-Grading Prompt-Injection Benchmarks by Replay: Check Defects, Grader Choice, and the Decisions Built on Them
Shared title terminologycs.CRJie Pan, Weicheng Wang
AETHON: Deterministic Pre-Inference Defense for LLM Prompt Injection
Shared title terminologycs.CRLeonardo Bruscagini de Lima, Jorge Valverde-Rebaza, Alexandre de Barros Barreto et al.
Signals, Not Verdicts: Stateful Runtime Protection for Tool-Using Agents
Shared title terminologycs.CRTiancheng Zhu, Mingjie Chen, Mingxue Zhang et al.
PvP: Intent-Conditioned Anomaly Detection Against Tool Poisoning Attacks in Agentic AI
Shared title terminologycs.CRMax de Leeuw, Cristoffer Leite, Indika Kumara
SteelYourHeart: Catching LLMs Taking Shortcuts in Vulnerability Detection
Shared title terminologycs.CRRun Hao, Zhuoran Tan
A General-Purpose Policy and Enforcement Layer for Secure Agent Tool Calls
Shared title terminologycs.CRShincheol Lee, Chansu Han, Takeshi Takahashi