Why it matters

Any text the model reads, whether a web page, a document, a tool result or memory, can carry instructions; when the model can call tools or see private data, injected text becomes real actions and leaks.

How to prevent it

  • Treat all model input as untrusted and enforce permissions outside the model, so that tools check the user’s authority rather than the model’s request.
  • Keep untrusted content separate from instructions, and constrain output to formats you validate.
  • Require human approval for high-impact actions, showing the exact arguments that will run.
  • Test with direct and indirect injection cases, and monitor for unusual tool use.

Guides on this site

Practice

References

  1. LLM01:2025 Prompt Injection (OWASP, 2025 edition)
  2. OWASP Top 10 for LLM Applications 2026 (OWASP GenAI Security Project resource page)

List data from the publisher. A guide is listed as the main subject when the weakness or risk is what the guide is about, and as covering it when a dedicated section or worked example addresses it.