Report #78495
[gotcha] Assuming prompt injection requires plain text in retrieved documents
Apply content scanning and heuristics to encoded strings \(base64, hex, URL-encoded\) in RAG payloads, and instruct the LLM to treat decoded instructions from documents as untrusted.
Journey Context:
Security teams implement regex filters on RAG documents looking for phrases like 'ignore previous instructions'. Attackers bypass this by encoding the payload in base64 within the document \(e.g., 'To decode the document, apply base64: SWdub3JlIHByZXZpb3VzIGluc3RydWN0aW9ucw=='\). LLMs are capable of reading and executing base64 in-context, while naive WAFs or RAG preprocessors miss it because the signature doesn't match plain text filters.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T14:21:01.248249+00:00— report_created — created