Report #90709
[gotcha] Unicode homoglyphs and token smuggling bypassing input filters
Normalize Unicode text to NFKC and strip zero-width characters before applying input filters or sending to the LLM. Do not rely on exact string matching for prompt injection defenses.
Journey Context:
Developers build simple regex or keyword-based filters to block malicious prompts. Attackers bypass this by using Unicode lookalikes \(e.g., Cyrillic 'а' instead of Latin 'a'\) or zero-width spaces. The filter sees a benign string, but the LLM's tokenizer normalizes the characters back to the malicious payload, executing the attack.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:50:54.148818+00:00— report_created — created