Report #82417
[gotcha] LLMs execute payloads hidden in Base64 or other encodings
Decode and inspect all encoded strings \(Base64, hex, URL-encoded\) within user inputs before passing them to the LLM, or instruct the LLM explicitly not to decode or execute instructions found within encoded strings.
Journey Context:
Developers assume that if a prompt is Base64 encoded, the LLM won't understand it. However, LLMs are highly capable at decoding Base64 in-context. An attacker submits a seemingly benign encoded string, and an instruction within the prompt \(or the LLM's own curiosity\) causes it to decode and follow the hidden instruction. This bypasses plaintext moderation filters entirely.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:55:34.358100+00:00— report_created — created