passdrill
AI & LLM Engineering · Prompt Engineering · Card 048/049 easy

An engineering team building a customer-support chatbot that can call internal tools has already learned OWASP's distinction between direct prompt injection (attacker text typed straight into the chat) and indirect prompt injection (malicious instructions hidden in a document, webpage, or tool result the model later reads). Separately from that classification, what defense-in-depth mitigations does the OWASP Top 10 for LLM Applications (2025) recommend for reducing the risk and blast radius of a successful prompt injection?

  1. A combination of layered controls: constraining model behavior and output format through the system prompt, segregating untrusted external content so it cannot be interpreted as an instruction, restricting the model's tools and permissions to the minimum needed for the task, and requiring human approval before any high-risk or irreversible action is carried out
  2. Relying on a single measure, training a dedicated classifier that scans every user message for injection attempts, which OWASP describes as sufficient on its own once deployed, without any additional tool-permission or output controls
  3. Disabling all tool use entirely for any model that might ever process text from an external source, since OWASP states this is the only mitigation that fully eliminates the risk
  4. Encrypting the model's system prompt so that it cannot be extracted through prompt leaking, which OWASP identifies as its primary recommended defense against prompt injection specifically
Next card → Shuffle