← Torna al blog
Ricerca IAAltaIn evidenza

Indirect Prompt Injection: When outside content becomes an unwanted instruction

Documents and messages can contain instructions that influence an assistant. Tools, permissions and approval steps determine the potential impact.

Revisione editoriale:

In questa versione del sito il testo dell’articolo è disponibile in inglese.

Contesto e fonti

Indirect prompt injection places a manipulation attempt in material an AI application reads, rather than in an instruction from its legitimate user. Greshake and colleagues demonstrated attacks against then-current systems and experimental applications in 2023. [1]

OWASP describes possible effects including altered responses, disclosure and unwanted tool calls. A read-only assistant has different capabilities from one allowed to send messages or change files. [2], [3]

Ambito e limiti

Text does not create new technical permissions by itself. A demonstrated attack is not proof of identical behaviour in every product or version. [1], [3]

Spiegato in modo semplice

Hypothetical example: a supplier email tells an assistant to forward internal documents. The email tries to move from being information to being the authority issuing an instruction.

Raccomandazioni pratiche

Our recommendation: list each assistant’s allowed sources, data and actions. Remove unnecessary functions and enforce permissions in connected systems. Use additional review for consequential actions and test with manipulated documents. OWASP recommends layered controls rather than treating a system prompt as a foolproof defence. [2], [3]

Fonte primaria / riferimento

  1. [1] Greshake et al. (2023): Indirect Prompt Injection
  2. [2] OWASP LLM01:2025: Prompt Injection
  3. [3] OWASP LLM06:2025: Excessive Agency