Skip to content

Prompt Injection as a Systemic Vulnerability in LLM-Based Tools: Threat Models, Empirical Analysis, and Mitigation Strategies

Mukesh Mani Tripathi, Damodar Dhital, Himal Aryal

cs.CR

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 (≤\leq3.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)