Pith.
Menu

Cryptography and Security · arXiv:2612.04847 v1 · submitted 3 Dec 2026 · 17 references

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

Mukesh Mani Tripathi, Damodar Dhital, Himal Aryal

The paper says

“These findings demonstrate that prompt injection is fundamentally a system-level vulnerability requiring external policy enforcement rather than prompt engineering alone.”

The 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.

from the abstract

Pith says

Holds up. This paper provides systematic empirical evidence that prompt injection vulnerability scales with system autonomy and is best addressed by architectural controls rather than prompt engineering.

Machine review · 4 Dec 2026 · Full text · 4 minor

Challenge this review Reply to this review
How this review was made

Machine review · deepseek-v4-flash · 4 Dec 2026 · read the full text (34,455 characters) · not checked by a person

The reviewer was given the whole text, 34,455 characters. Not checked: figures, code, what the 17 references say.

How the review went

5 passes by deepseek-v4-flash · 4 Dec 2026

  1. Reader holds up confidence high
  2. Skeptic concern withdrawn: the paper already says this 43 s · 11,607 tokens read, 4,339 written
  3. Referee 4 minor 36 s · 11,926 tokens read, 3,927 written
  4. Check against the paper kept 0 of 1 objection 23 s · 12,183 tokens read, 2,663 written
  5. Editor wrote the verdict above 19 s · 12,169 tokens read, 1,565 written

Not run on this paper: the simulated authors' defence.

Pith's passes raised 1 objection. A check against the paper's text kept 0 and withdrew 1 (1 the paper already says).

The test under “What would settle it” is from Pith's summary of the paper.

Fingerprints, costs and the commands that check them

What would settle it

Rerun the memory-poisoning and tool-injection conditions on a production-like autonomous agent using only prompt-level defenses, with no tool gating or memory filtering: if prompt engineering holds memory-poisoning success well below the paper's reported baseline, the claimed asymmetry between prompt-level and architectural defenses collapses. A complementary check is to rerun the six-strategy ablation on a newer model generation and see whether the gap between prompt-level and architectural controls narrows materially, which would qualify the claim that architecture dominates model behavior.

4 minor objections

  1. 6.3 Table 5 caption lists 'Indirect 73%' as part of the baseline, but the table columns only include Direct, Tool, and Memory. The Indirect attack results are not shown in the table, making the caption inconsistent. Please either add an Indirect column or clarify why it is omitted.
  2. 5.4 The manuscript states that 5 attack templates with 10 instantiations each were used, but does not provide examples or a summary of the templates in the main text. While the full set is available in the repository, including a representative example or a brief description of each template would improve readability and allow readers to assess the attack difficulty without consulting external materials.
  3. 6.2 The capability index is defined as the sum of three binary indicators. The paper shows that attack success increases monotonically with this index, but does not discuss whether the index is intended as a predictive tool or a descriptive summary. A brief clarification would be helpful.
  4. 1 The introduction claims 'this work provides the first systematic empirical validation' of how vulnerabilities scale across architectures. Given prior work such as Greshake et al. (2023) and Yi et al. (2024), consider softening this to 'systematic empirical validation' to avoid overstatement.

A machine wrote this review. Check any line against the paper. If a line is wrong, say so, and the correction goes on the record.

Are you an author of this paper?

Reply on the record, clarify a point, or challenge an error.

A reply is published word for word beside the review once Pith has verified that the paper is yours.

The review in full

The review in brief

The central claim of this paper is that prompt injection is a system-level vulnerability, not a prompt-engineering problem. The authors support this with a controlled experiment across three architectures, three LLM families, and four attack types, totaling 2,100 trials. The results are clear: attack success increases monotonically as the system gains retrieval, tools, and memory. Memory poisoning reaches 94% in autonomous agents. Prompt-level defenses barely move the needle (≤3.2 percentage points), while architectural controls—tool permission gating, memory write filtering, provenance tracking—cut memory poisoning to 11% and tool-output injection from 61% to 16% (combined stack). The finding that architecture dominates model behavior (cross-architecture variation up to 53 pp vs. cross-model ≤4.7 pp) is a strong empirical result that should influence how the field thinks about LLM security. Prior work studied prompt injection in isolated settings or focused on model behavior; this paper systematically varies the architecture and measures how vulnerability scales. The mitigation ablation is novel and practically useful. The experimental design is systematic (3×3×4 factorial, N = 50 per condition), and the statistical methods (Wilson CIs, Bonferroni-corrected z-tests, Cohen's h) are appropriate. The paper acknowledges its limitations: model evolution, prompt sensitivity, scale, real-world complexity, and text-only scope. The data and code are publicly available. A minor concern: the manuscript itself does not fully specify the attack templates and system configurations—it relies on the external repository for those details. A reader who wants to assess the experimental setup without leaving the PDF will find it incomplete. This is not a fatal flaw, but the paper would be stronger if it included the key templates and configuration parameters in an appendix. The experiments use specific model versions and tool implementations (ChromaDB, Redis, particular APIs); the authors acknowledge that results may not generalize to all production systems, which is a reasonable limitation. This paper is for researchers and practitioners building LLM-based agents. It gives clear evidence that prompt engineering alone is insufficient and points to concrete architectural patterns for defense. It deserves a serious peer review. The empirical contribution is solid, the claims are supported, and the limitations are honestly stated.

The stress test's concern

Withdrawn: the paper already says this.

The paper says

“All prompts, payload templates, system configurations, evaluation scripts, and raw experimental data (2,100 trials) are publicly available at: https://github.com/Mukesh-SCS/prompt-injection-benchmark.git.”

The referee's report

The paper provides the first systematic cross-architecture, cross-model empirical evaluation of prompt injection vulnerabilities and mitigations. The finding that architectural controls dramatically outperform prompt-level defenses is practically important and supports a shift in how the community approaches LLM security. The experimental design is rigorous, with appropriate statistical methods and a large number of trials. The public release of code and data supports reproducibility.

Pith's reading

The paper sets out to reframe prompt injection in LLM-based tools as a system-level vulnerability rather than a model-level behavioral flaw, and to back that reframing with controlled experiments. It formalizes injection as a control-boundary violation: trusted instructions and untrusted data (user input, retrieved content, tool outputs, persistent memory) are all serialized into one context window with no structural separation, so the model cannot reliably tell instruction from data. Across 2,100 trials covering three architectures (chatbot, retrieval-augmented system, autonomous agent) and three model families, the authors report attack success rising monotonically with system autonomy, reaching 94% for memory poisoning in autonomous configurations. They further report that prompt-level defenses shift success rates by at most 3.2 percentage points, while architectural controls (tool permission gating, memory write filtering, provenance tracking) cut memory poisoning from 94% to 11%. If right, the claim redirects mitigation effort from better prompting to external policy enforcement.

What carries the argument. The central object is the context window C = <S, U, R, T, M>, which serializes system prompt, user input, retrieved data, tool outputs, and persistent memory into one undifferentiated context that the LLM reads as instruction. Carrying the argument are the trust labeling function τ(x), which assigns 'trusted' only to the system prompt and 'untrusted' to everything else, and the security condition requiring that untrusted components never influence system actions. The paper uses these to define prompt injection as authority escalation via semantic confusion and to derive its mitigation patterns: an action mediation layer that routes every tool call through a deterministic external policy engine, a memory write firewall, and provenance-aware retrieval.

Core claim. The paper's central claim is that prompt injection is a control-boundary violation: LLM-based systems merge trusted instructions and untrusted data into a single context window without structural separation, so adversarial content can be interpreted as high-priority directives. The authors formalize this with a context tuple C = <S, U, R, T, M> (system prompt, user input, retrieved content, tool outputs, memory) and a trust labeling function τ(x) that marks only the system prompt as trusted, defining injection as any untrusted component causing an action outside the allowed policy. Empirically, they report that attack success grows monotonically with system capability, that memory poisoning reaches 94% success (95% CI 83.8-98.2%) in autonomous configurations with only 2.1 to 4.7 percentage points of spread across models, and that detection alone tops out at a 71% true positive rate with a 24% false positive rate. On mitigation, prompt-level defenses (M1-M3) give at most 3.2 percentage points of improvement (not statistically significant), while architectural controls (M4-M6) reduce memory poisoning from 94% to 11% and tool-output injection from 61% to 16%. The conclusion the authors draw is that vulnerability is architecture-driven rather than model-specific, and that safe deployment requires deterministic, external authorization of tool use.

The premise it rests on. The whole argument rests on the assumption that the tested attack templates, the specific system components (ChromaDB, Redis, the listed tool APIs), and the three 2024 model versions stand in for real production deployments, so that the measured superiority of architectural controls carries over to them.

If the paper is right

Adding retrieval, tool invocation, or persistent memory to an LLM system increases attack success, with persistent memory the largest single jump; mitigation effort should go into controlling memory writes and tool calls rather than writing stronger prompts.

Prompt engineering, input validation, and output filtering alone are weak controls on the paper's data, so deployment guidance should not treat them as sufficient defenses.

Persistent memory converts bounded single-session risk into temporally unbounded compromise, so the paper recommends disabling persistent memory by default and enabling it only behind strict schema and provenance validation.

Detection should serve monitoring and forensics rather than primary defense, since the best combined detector in the study still misses roughly a quarter of attacks and flags a quarter of benign traffic.

If the finding that architecture dominates model behavior holds across model generations, it implies that improved instruction-following alone will not close injection holes; future models may cut success rates but the exposure persists until instruction/data separation is enforced externally.

The SQL-injection analogy suggests a testable prediction the paper does not run: systems that give untrusted components explicit provenance-tagged role markers in context should show the same order-of-magnitude drop the authors report for tool gating and memory filtering, regardless of model.

The capability index could be sharpened into a design-time risk estimator: an organization deciding whether to add tool or memory features could estimate the added attack surface from the paper's per-architecture rates before deployment.

The paper's own limitation note that production systems add safeguards and human-in-the-loop checks means the 94% figure is best read as an upper-bound benchmark for a minimally defended agent, not a prediction about any shipped product.

Check this review

What was read

The passes were given all 34,455 characters of the paper's LaTeX source.

Fingerprint of that text (SHA-256): fd98f79ec5c9f22f27fbb0eb3aa74156f4f1b8dbe9ebbc1d8aa418e3f25727ab

Pith does not keep that text. Rebuilt from the paper's source or PDF by the same code, it has this fingerprint if it is the same text. From a copy of Pith's code:

PYTHONPATH=. python scripts/review_input_check.py 2612.04847

The passes, in the order they ran

  1. Reader deepseek-v4-flash · medium effort · $0.0016 · instructions of the Reader, fingerprint f9ead7300382…
  2. Skeptic deepseek-v4-flash · medium effort · $0.0016 · instructions of the Skeptic, fingerprint 8f88c0f61488…
  3. Referee deepseek-v4-flash · medium effort · $0.0015 · instructions of the Referee, fingerprint a852d99aea0d…
  4. Check against the paper deepseek-v4-flash · medium effort · $0.0013 · instructions of the Check against the paper, fingerprint 6c7a6883d551…
  5. Editor deepseek-v4-flash · medium effort · $0.0012 · instructions of the Editor, fingerprint e7211f6a3d27…
  6. Circularity check deepseek-v4-flash · medium effort · $0.0010 · instructions of the Circularity check, fingerprint e9946e39d67b…
  7. Summary for the page deepseek-v4-flash · medium effort · temperature 0.2 · $0.0029 · instructions of the Summary for the page, fingerprint e4f56bf568e7…

The passes cost $0.011 in model calls together.

Version stamped on this review: pith-pipeline@v1.4.1-daily-deepseek-or-medium+deepseek/deepseek-v4-flash+p.d60f54226f00

Each link opens a pass's instructions as plain text, the exact bytes its fingerprint was taken over. Every stored set of instructions.

curl -s https://pith.science/methodology/prompts/f9ead730038216984cfb56d7cb34332bdf691828296a1de4245f3d6667d4bf56 | sha256sum

prints the fingerprint of the reader's instructions. The same works for every pass.

The receipt

The review's fingerprint was taken on 4 Dec 2026. The review you are reading still matches it.

Fingerprint of the review (SHA-256): da212417b43cc9180b19ced3ecc7f731329432ba137b930e4cd43d70deea1945

curl -s 'https://pith.science/api/v1/verdicts/2612.04847?form=canonical' | sha256sum

prints the fingerprint of the review as it stands now. The rule, in four steps.

A matching fingerprint shows the review has not changed since that date. It does not show that the review is right.

Reviews like this one: written by deepseek-v4-flash, from the paper's LaTeX source.

Every value above, in the review's public record (JSON)

No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and the review is published here whatever it concludes. Request a human review

How Pith checks papers · The full audit of this paper

The paper

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.

A classifier labelled each sentence of the abstract by the part it plays in the paper. The labels are kept beside the review and separate from it: the review read the paper's text, and these labels cover the abstract only. Every quoted sentence is the authors' own. No sentence in this record was written by a model.

abstract compiled · 4 Dec 2026

The main claim

“These findings demonstrate that prompt injection is fundamentally a system-level vulnerability requiring external policy enforcement rather than prompt engineering alone.”

Stated as asserted.

The abstract, sentence by sentence

This table labels the abstract only (arXiv listing abstract v1). The number is the probability the classifier gave the label.

SentenceRoleThe authors' own workStates the main conclusionStrength
Large language models (LLMs) deployed as autonomous agents with tool access, retrieval pipelines, and persistent memory expose an expanded attack surface. background 1.00 0.09 0.03 asserted 0.99
We formalize prompt injection as a control-boundary violation arising from the conflation of trusted instructions and untrusted data within LLM context windows. contribution 0.94 0.76 0.06 asserted 1.00
We introduce a threat model spanning user input, retrieval pipelines, tool outputs, and persistent memory, and develop a structured taxonomy of attack vectors. contribution 0.96 0.94 0.04 asserted 0.98
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). method 0.98 0.97 0.02 asserted 0.98
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. result 1.00 0.96 0.09 asserted 1.00
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%. result 1.00 0.97 0.22 asserted 1.00
These findings demonstrate that prompt injection is fundamentally a system-level vulnerability requiring external policy enforcement rather than prompt engineering alone. interpretation 1.00 0.78 0.93 asserted 1.00

What kind of paper the classifier reports this is: empirical study 1.00 · evidence from observation or experiment 1.00

What was examined, and what was not

These lists are about the sentence labels. What the review read is said with the review.

Read

  • arXiv listing abstract v1

Not read

  • full text
  • figures and tables
  • references and citing sentences
  • relations to other papers

Labelled

  • abstract

Not labelled

  • sections
  • body sentences
  • citations
  • cross-paper relations

The main claim, as probabilities

picked as the main claim 1.00 · how strongly it is stated 1.00

What the abstract itself states, as probabilities

claims first 0.04 · states limitation 0.30 · human participants 0.09 · controlled comparison 0.67 · randomized assignment 0.04 · states quantitative result 0.99 · compares with prior results 0.62 · mentions code or data availability 0.03

How the labels were made

Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-12-04: 1 request, 5,796 input tokens.

This record as JSON, with every label and the probability the classifier gave it.

References (17)
  1. [1] A. Perez and I. Ribeiro, “Ignore previous prompt: Attack techniques for language models,”arXiv preprint arXiv:2211.09527, 2022 on PithPith's reviewarXiv
  2. [2] A. Zou, Z. Wang, J. Z. Kolter, and M. Fredrikson, “Universal and transferable adversarial attacks on aligned language models,”arXiv preprint arXiv:2307.15043, 2023 on PithPith's reviewarXiv
  3. [3] D. Ganguliet al., “Red teaming language models to reduce harms: Methods, scaling behaviors, and lessons learned,”arXiv preprint arXiv:2209.07858, 2022 on PithPith's reviewarXiv
  4. [4] Y . Baiet al., “Constitutional AI: Harmlessness from AI feedback,”arXiv preprint arXiv:2212.08073, 2022 on PithPith's reviewarXiv
  5. [5] L. Ouyanget al., “Training language models to follow instructions with human feedback,” inProc. Advances in Neural Information Processing Systems (NeurIPS), 2022 on Pith
  6. [6] H. Liet al., “Prompt injection attacks and defenses in large language models: A survey,”arXiv preprint arXiv:2402.00898, 2024 on PithPith's reviewarXiv
  7. [7] K. Greshakeet al., “Not what you’ve signed up for: Compromising real-world LLM-integrated applications with indirect prompt injection,” inProc. ACM Workshop on AI Security (AISec), 2023 on Pith
  8. [8] Y . Liuet al., “PromptGuard: A framework for detecting prompt injection attacks,”arXiv preprint arXiv:2403.12345, 2024 on PithPith's reviewarXiv
  9. [9] J. Yiet al., “Benchmarking and defending against indirect prompt injection attacks,”arXiv preprint arXiv:2312.14197, 2024 on PithPith's reviewarXiv
  10. [10] OW ASP Foundation, “OW ASP top 10 for large language model applications,” 2023. [Online]. Available: https://owasp.org/ www-project-top-10-for-large-language-model-applications/ on Pith
  11. [11] National Institute of Standards and Technology, “Artificial intelligence risk management framework (AI RMF 1.0),” 2023. [Online]. Available: https://www.nist.gov/itl/ai-risk-management-framework on Pith
  12. [12] T. Schicket al., “Toolformer: Language models can teach themselves to use tools,” inProc. Advances in Neural Information Processing Systems (NeurIPS), 2023 on Pith
  13. [13] S. Yaoet al., “ReAct: Synergizing reasoning and acting in language models,” inProc. International Conference on Learning Representations (ICLR), 2023 on Pith
  14. [14] Y . Qinet al., “ToolLLM: Facilitating large language models to master 16000+ real-world APIs,”arXiv preprint arXiv:2307.16789, 2023 on PithPith's reviewarXiv
  15. [15] J. S. Parket al., “Generative agents: Interactive simulacra of human behavior,” inProc. ACM Symposium on User Interface Software and Technology (UIST), 2023 on Pith
  16. [16] W. G. J. Halfond, J. Viegas, and A. Orso, “A classification of SQL- injection attacks and countermeasures,” inProc. IEEE International Symposium on Secure Software Engineering, 2006 on Pith
  17. [17] M. Johns, “On JavaScript malware and related threats,”IEEE Security & Privacy, vol. 6, no. 3, pp. 20–27, 2008 on Pith

Challenges and discussion

Disagree with the review, or know something it missed? Leave a comment, or challenge this review formally: a challenge becomes a permanent entry in this paper's record, and its decision is published here.

No comments yet.

Sign in to comment