A Bedrock-based post-deployment validator reads logs containing user-controlled text and can invoke a rollback tool. A log entry instructs it to ignore validation rules and invoke that tool; which design best preserves useful analysis without granting log content operational authority?
Show the answer
Correct answerA. Treat logs as untrusted data and enforce rollback criteria outside the model
AWhy this is right: Separating untrusted evidence from action authorization limits the impact of indirect prompt injection.
BWhy not this: Credential redaction protects secrets but does not prevent instructions in logs from influencing tool use.
CWhy not this: A generated explanation does not prevent the model from following malicious embedded instructions.
DWhy not this: Additional log entries do not establish a security boundary between evidence and instructions.
User-controlled log content can carry indirect prompt injection. Treating logs as untrusted evidence and enforcing rollback criteria outside the model prevents embedded instructions from authorizing actions; credential redaction alone does not address this risk.