Secure Systems Group
Menu×

Wiki Home

Prompt injection

Definition

Prompt injection supplies instructions, inside the user prompt or inside external content the model reads, that override the application’s intended behavior. Direct injection comes from the user; indirect injection hides instructions in retrieved documents or tool output the model ingests (Greshake et al., 2023). Prompt injection overlaps with the jailbreak: both steer the model through its input, but injection emphasizes hijacking a task or application, while a jailbreak emphasizes bypassing a safety refusal. Construction techniques such as payload splitting, which breaks a sensitive phrase into innocuous-looking substrings, appear on both sides (Kang et al., 2023).

Papers that use this concept

See also

References

  • Greshake, K., Abdelnabi, S., Mishra, S., Endres, C., Holz, T., and Fritz, M. “Not what you’ve signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection.” arXiv:2302.12173, 2023.
  • Kang, D., Li, X., Stoica, I., Guestrin, C., Zaharia, M., and Hashimoto, T. “Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attacks.” arXiv:2302.05733, 2023.