How scammers mutate text to dodge filters
Zero-width characters, homoglyphs, emoji letters, leet. Each trick with a real example and the normalization that defeats it.
By TG Filter Team
Zero-width characters
Inserting U+200B between letters ("ve\u200Brify") leaves the message looking identical but breaks every substring match. The fix is to strip zero-width characters (and soft hyphens, word joiners, BOM) during normalization, and to treat their presence as an obfuscation signal in its own right.
Homoglyphs
Cyrillic 'а' looks like Latin 'a'; the reverse also happens in Russian spam ("Здpaвcтвyйтe" with Latin letters inside a Cyrillic word). A one-directional table is not enough. Fold confusables per word, toward the majority script, and keep pure-script text untouched so legitimate Russian isn't mangled.
Emoji letters
Squared and negative-squared emoji (🅰 🅱) and regional indicators render as letters but are not letters. NFKC does not decompose them, so they need an explicit folding pass before normalization.
Leet and punctuation noise
Digits stand in for letters (fr33, cl41m). Generate a leet variant for matching, but only for tokens that actually look obfuscated: folding every digit turns prices into words ("$250" -> "s2so") and creates false matches. Punctuation is similarly noise: collapse it to spaces for matching.
| trick | example | defense |
|---|---|---|
| zero-width | ve\u200Brify | strip + flag |
| homoglyph | Здpaвcтвyйтe | per-word, bidirectional folding |
| emoji letters | 🅰🅱 | explicit fold before NFKC |
| leet | cl41m | guarded leet variant |
| punctuation | c-l-a-i-m | collapse to spaces |