A team wants to implement “tool use” where an LLM decides when to call a workflow, but they must prevent prompt injection from forcing unsafe actions. Which control best addresses this in an AWS-native setup?

Answer

Use an orchestrator that constrains tool invocation via allowlisted actions, validates inputs, and enforces least-privilege IAM on the tool APIs

Explanation

Prompt injection often targets tool-call parameters or instructions. Allowlisting tools plus validating inputs and enforcing least privilege ensures only permitted, well-formed actions can be executed.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list