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.
-
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.
-
Probe memory features: inject instructions that get stored and later recalled, and see if they are re-injected without guardrails.
-
Test multimodal assistants by embedding instructions in images or video transcripts and observing if the model treats them as commands.
-
When reporting, demonstrate concrete impact such as data exfiltration, unauthorised actions, or code execution. Avoid reporting theoretical issues without proof.
-
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
-
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.
-
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
-
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