An assistant retrieves external documents and proposes account changes through a backend tool with broad permissions; users must retain access to those documents, but some users may only read accounts. Retrieved instructions have caused unauthorized change attempts despite prompt filtering. Which control BEST prevents execution of unauthorized changes?
Show the answer
Correct answerD. Validate tool requests and authorize each operation against the authenticated user's permissions.
AWhy not this: A model's explanation is also untrusted output and does not establish permission to change an account.
BWhy not this: Logs support investigation but do not stop an unauthorized tool request from executing.
CWhy not this: Filtering can reduce malicious instructions but does not enforce the user's authorization when a request reaches the tool.
DWhy this is right: Independent validation and per-user authorization prevent a manipulated model from exercising the backend's broader permissions.
Treat model-generated tool requests as untrusted input and enforce authorization independently at execution time. Prompt filtering can reduce prompt injection, but it cannot replace a backend authorization boundary.