English

Prompt-in-Content Attacks: Exploiting Uploaded Inputs to Hijack LLM Behavior

Cryptography and Security 2025-08-28 v1 Artificial Intelligence

Abstract

Large Language Models (LLMs) are widely deployed in applications that accept user-submitted content, such as uploaded documents or pasted text, for tasks like summarization and question answering. In this paper, we identify a new class of attacks, prompt in content injection, where adversarial instructions are embedded in seemingly benign inputs. When processed by the LLM, these hidden prompts can manipulate outputs without user awareness or system compromise, leading to biased summaries, fabricated claims, or misleading suggestions. We demonstrate the feasibility of such attacks across popular platforms, analyze their root causes including prompt concatenation and insufficient input isolation, and discuss mitigation strategies. Our findings reveal a subtle yet practical threat in real-world LLM workflows.

Keywords

Cite

@article{arxiv.2508.19287,
  title  = {Prompt-in-Content Attacks: Exploiting Uploaded Inputs to Hijack LLM Behavior},
  author = {Zhuotao Lian and Weiyu Wang and Qingkui Zeng and Toru Nakanishi and Teruaki Kitasuka and Chunhua Su},
  journal= {arXiv preprint arXiv:2508.19287},
  year   = {2025}
}
R2 v1 2026-07-01T05:07:21.489Z