A team wants to build an agent that can call tools (e.g., retrieve policies and then file requests) and must prevent prompt-injection from causing unauthorized actions. Which mitigation set is strongest for foundational AI practitioner objectives?

Answer

Implement tool-level authorization checks, constrain tools to least-privilege IAM roles, and sanitize retrieved content before inclusion in prompts

Explanation

Runtime tool authorization and least-privilege IAM reduce impact even if instructions are hijacked. Sanitizing retrieved content and controlling how it’s injected helps mitigate injection-driven behavior.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list