Skip to content

In-depth lesson · Indirect prompt injection

Tips for beginners

Every point the Indirect prompt injection reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 8 of 8
  1. Test whether hidden instructions in content are acted upon. For example, hide text in HTML tags or use Unicode tag characters and see if the assistant follows them.

    Seen in 2 reports
  2. Probe memory features: inject instructions that get stored and later recalled, and see if they are re-injected without guardrails.

    Seen in 2 reports
  3. Test multimodal assistants by embedding instructions in images or video transcripts and observing if the model treats them as commands.

    Seen in 2 reports
  4. When reporting, demonstrate concrete impact such as data exfiltration, unauthorised actions, or code execution. Avoid reporting theoretical issues without proof.

    Seen in 2 reports
  5. Look for common mistakes: reporting out-of-scope features, lacking a clear impact, or not providing reproducible steps. Always include a clear proof of concept that shows the vulnerability in action.

    Seen in 2 reports
  6. Check if the application uses raw, unsanitised content for AI processing. Compare what is displayed to users with what is sent to the model; if they differ, try injecting instructions into the raw version.

    Seen in 1 report
  7. Try chaining prompt injection with other bug classes like SSRF or path traversal to escalate impact. For instance, use path traversal to make the model fetch content from an attacker-controlled location.

    Seen in 1 report
  8. Check if a URL parameter can preload an arbitrary query into a chat assistant, making it run as a genuine user query and potentially exfiltrate data.

    Seen in 1 report