Report #63749
[gotcha] Relying on keyword filters or regex to block malicious prompts, assuming the input text is purely ASCII and visible
Normalize and sanitize input text before processing or filtering. Strip zero-width characters, convert homoglyphs to standard ASCII, and apply filters on the normalized text. Do not rely on simple string matching for security.
Journey Context:
Developers build simple blocklists \(e.g., block 'ignore previous instructions'\). Attackers bypass this by inserting zero-width spaces \('ignore...'\). The LLM tokenizer often strips these or processes them such that the semantic meaning remains, but the regex fails.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:29:31.213897+00:00— report_created — created