Report #64314
[gotcha] Assuming LLMs cannot execute prompts hidden in base64 or other encodings
Decode and inspect all user-supplied encoded strings \(base64, hex, URL-encoded\) before passing them to the LLM, or instruct the LLM not to follow instructions within decoded content.
Journey Context:
Developers might assume that if a user input looks like random base64 text, it's harmless. However, LLMs are capable of reading base64 natively. An attacker can encode a malicious prompt in base64, and the LLM will decode and execute it, bypassing plaintext keyword filters. Decoding before inspection is computationally cheap and closes this bypass.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T14:26:07.761959+00:00— report_created — created