Report #76571
[gotcha] LLMs decoding base64 or hex encoded payloads to bypass input filters
Decode and inspect all encoded strings \(base64, URL-encoded, hex\) within user inputs before passing them to the LLM, or instruct the LLM explicitly not to decode or follow instructions within encoded strings.
Journey Context:
Input filters often look for malicious keywords in plain text. Attackers will encode their prompt injection payload in base64 and instruct the LLM to decode it before following the instructions. The LLM's strong instruction-following capability means it will decode the string, reveal the malicious prompt, and execute it, completely bypassing the outer filter. Decoding inputs before filtering, or sandboxing the LLM's execution of decoded content, is necessary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T11:07:02.055190+00:00— report_created — created