r/hacking • u/_clickfix_ • 7d ago
Base 64 and Unicode tricks break LLM chatbot filters
https://www.tiktok.com/t/ZP87VK8AV/LLM chatbot content filters can be bypassed by encoding banned words in Base64 or in Unicode escape sequences.
The filter reading the prompt sees characters instead of language, the model decodes the text as a task, then repeats it back.
A pretext such as a fake medical emergency gives the model a reason to comply, and asking for the reply as JSON makes it treat the output as data rather than speech. Defense in depth stops it, and prompt injection is number one on the OWASP Top 10 for LLM applications.
8
u/export_tank_harmful 7d ago
Wait, you can embed tiktok posts on reddit....?
And tiktok has "posts"....?
wat.
4
u/knobjockey21 7d ago
which LLM models are you referring to?
9
2
2
u/_clickfix_ 6d ago
Models used: Gemini 2.5 Pro, GPT-4.1, GPT-4o, o1-mini, Claude 3.7, and Mixtral 8x7b. Players get randomly assigned one, so difficulty varies quite a bit between runs. Source.
1
4
u/CapMonster1 6d ago
Yeah, this is a good example of why text-only filtering isn't enough. If the model decodes the input itself and then interprets it as an instruction, the filter can end up operating at a different layer than the actual execution
8
u/Ok-Addition1264 7d ago
Doesn't passing a model through heretic also defeat it?
Sorry, I don't get it.. but I'm also sleepy high.