Smuggling Prompt Injections Using Zero-Width Characters to Bypass Filters

GiiTZzz · reddit · 2026-08-13

A developer discovered that inserting zero-width spaces (U+200B) into normal-looking prompts can successfully bypass phrase-matching LLM security filters.

This technique is completely invisible to both humans and standard detection mechanisms, allowing stealthy injection of malicious commands like "ignore previous instructions." The author shared a defensive approach: specifically checking for zero-width and Bidi-override characters while carefully excluding legitimate Unicode used in RTL scripts like Persian or Indic to prevent false positives.

Original post →

More from coding & agent

coding & agent channel →