All Questions
Guardrails And Safety hard

An agent's fetch_url tool is restricted to an allow-list of domains, and the check validates the hostname of the URL the model supplies. An injected document points the agent to an open redirect on an allow-listed domain. That redirect forwards to an attacker host carrying data in the path, and a variant forwards to 169.254.169.254. What closes the hole?

  1. A Match allow-listed hosts with a strict suffix rule so that lookalike hosts such as docs.company.com.evil.io are rejected outright.
  2. B Strip query strings from every URL before fetching so the model cannot append sensitive data to an outbound request.
  3. C Disable automatic redirects and re-validate each hop's host and resolved IP against the allow-list before following it.
  4. D Have the model restate the destination URL before each fetch so a second reasoning pass can catch suspicious redirects.

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

Get the app

Related questions