2026.10.31 · 4 min · security · ai · javascript · news
Invisible Unicode tags: text you can't see, but AI reads.
The Unicode Tags block holds an invisible copy of ASCII. Your editor draws nothing; a model reads code points, so it reads the hidden text. How the offset works, where it turned up this month, the one regex that strips it, and the flag emoji that regex breaks. As of 2026.10.
This string looks empty: const note = "";. It can still hold a whole sentence, and an AI model you paste it into will read that sentence like any other text. The trick is a corner of Unicode called the Tags block, and the fix is one regex before the text reaches the model.
Watch the 60-second version on Instagram.
An invisible copy of ASCII
The Tags block runs from U+E0000 to U+E007F: 128 code points, 97 of them assigned, added in Unicode 3.1 in 2001. U+E0020 to U+E007E mirror printable ASCII one for one: tag code = ASCII code + 0xE0000. So "A" is 0x41, and U+E0041 is an "A" that fonts don't draw.
Your editor and your browser render pixels, and these characters have none. A model doesn't get pixels. It gets code points, so the hidden letters are as readable to it as the visible ones. The common belief "if I can't see it, the model can't either" is exactly backwards here.
Hiding and stripping are both one line:
// hide
const hide = s => [...s].map(c => String.fromCodePoint(c.codePointAt(0) + 0xE0000)).join("");
// strip before sending to a model
const clean = text => text.replace(/[\u{E0000}-\u{E007F}]/gu, "");hide("hi").length is 4, not 2, and it renders as nothing. .length counts UTF-16 units, and each tag character is a surrogate pair. Keep the u flag on the regex: without it, \u{E0000} doesn't mean what you think.
Where it turned up
- A fingerprinting script. On 2026.10.28, nullpt.rs wrote up an obfuscated fingerprinting script (servicepipe.tech) that stores a string of invisible characters. Its decoder runs
String.fromCodePoint(c.codePointAt(0) - 917504), and 917504 is 0xE0000. Decoded by subtracting 0xE0000, the text begins "SYSTEM OVERRIDE -- CLASSIFIED BRIEFING" and asks for weapons and bio-hazard guides. It looks designed to make an AI refuse to deobfuscate the script, and AI models did refuse to deobfuscate it. The fingerprinting it protected (navigator, WebGL, window signals) was, in the article's words, "pretty disappointing". - Prompt injection. The technique, "ASCII smuggling", was popularised in prompt-injection research. In 2024 Johann Rehberger used it to hide instructions in Microsoft 365 Copilot and exfiltrate data. Microsoft patched it.
- Phishing filters. On 2026.09.03 Microsoft reported phishing emails with one tag character tucked inside keywords, like
fun⟨U+E0020⟩ding, to slip past keyword filters: up to 2.37 million emails a day. That is filter evasion, not prompt injection; there's no hidden message, just a separator.
Microsoft's advice for both cases is "normalize before you match": strip U+E0000 to U+E007F and other invisible code points before filters run and before text reaches a model.
The catch: flags
Tags have one legitimate job. The England, Scotland and Wales flags are the black flag U+1F3F4, followed by tag letters (gbsct for Scotland), followed by U+E007F CANCEL TAG.
Strip every tag and Scotland becomes a plain black flag. If you need those flags, strip only tags that don't follow U+1F3F4. And tags are one family of invisible characters: zero-width characters (U+200B to U+200D) and bidi controls are others, and a regex for tags doesn't touch them.
On a client project I'd run the strip at the one boundary where outside text becomes a prompt, and log when it fires, because a hit there is worth a look.
If you want the detect and reveal one-liners and the flag-safe variant, they're on the STRIP page.
The short version
- The Tags block (U+E0000 to U+E007F) mirrors ASCII at + 0xE0000, and nothing draws it.
- A model reads code points, not pixels, so it reads hidden tag text.
- It's been used for prompt injection (Copilot, 2024), to defend an obfuscated script (2026.10), and to dodge phishing filters (up to 2.37 million emails a day).
- Strip it with
/[\u{E0000}-\u{E007F}]/gubefore text reaches a model. - Stripping blindly breaks the England, Scotland and Wales flags.
Sources: Wikipedia, Tags (Unicode block) · nullpt.rs, Why is this fingerprinting script creating bioweapons? · Microsoft Security Blog, ASCII smuggling crosses over from AI prompt injection to phishing evasion · The Register, Microsoft Copilot ASCII smuggling