Report #59478
[gotcha] LLM self-prompting or ask for permission patterns fail under indirect injection
Do not rely on the LLM to evaluate its own output for safety before executing an action \(e.g., LLM, check if this command is safe to run\). Use a separate, smaller, deterministic or specifically fine-tuned classifier to validate actions.
Journey Context:
A common pattern is to have the LLM generate a tool call, and then ask the same LLM 'Is this tool call safe?' before executing. Under indirect injection, the attacker's prompt can instruct the LLM to output 'Yes' to its own safety check. An LLM compromised by prompt injection cannot be trusted to police itself. Safety checks must be isolated, ideally using a different model or deterministic code.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T06:19:28.706100+00:00— report_created — created