Report #42316
[gotcha] I block forbidden actions by filtering out specific keywords like ignore previous instructions from user input
Normalize and tokenize user input before filtering, stripping zero-width characters, homoglyphs, and Unicode direction overrides. Filter on semantic intent, not just string matching.
Journey Context:
Developers try to prevent prompt injection by blacklisting strings like ignore previous. Attackers use token smuggling: inserting zero-width spaces, using Unicode lookalikes \(e.g., Cyrillic 'о' instead of Latin 'o'\), or right-to-left overrides. The string filter passes it, but the LLM's tokenizer normalizes it back to the forbidden string, successfully injecting the prompt.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T01:29:48.591164+00:00— report_created — created