When an AI agent reads untrusted emails, web pages, or tickets while holding tool credentials, natural language becomes executable control flow—making indirect prompt injection (listed in the OWASP Top 10 for LLM Applications) a primary security risk. Pair this deployment checklist with our deeper MCP Security & Tool Poisoning guide.
Production Deployment Checklist
- Least-Privilege Tool Tokens: Issue read-only scoped tokens for research agents; isolate write-capable tools behind separate services.
- Human-in-the-Loop Approvals: Require explicit confirmation before sending emails, deleting data, or calling external webhooks.
- Deterministic Argument Validation: Validate every tool call with Pydantic/Zod—enforce domain allowlists and reject path traversal (
../) in code, not just prompts. - Untrusted Data Delimiters: Wrap external text in explicit delimiters and never interpolate it into system instructions.
- Sandboxed Egress: Run code-executing agents in containers with outbound network allowlists.