Report #78710
[gotcha] Prompt injection using invisible unicode characters or homoglyphs
Normalize and filter unicode in all user inputs before passing them to the LLM. Strip zero-width characters, replace confusable homoglyphs with standard ASCII, and remove right-to-left override characters.
Journey Context:
Developers often pass user input directly to the prompt. Attackers can hide injection payloads using zero-width spaces or homoglyphs \(e.g., Cyrillic 'a' instead of Latin 'a'\). The LLM tokenizes these and often interprets the hidden text, bypassing naive string-matching filters or human review, while the visible text looks completely benign.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T14:42:37.646913+00:00— report_created — created