Blog · Dmarc

How Attackers Bypass AI Email Filters with Invisible Unicode Text

Yes, AI-powered email filters can be bypassed using invisible Unicode text. The technique works by injecting zero-width characters or hidden text strings into email content, exploiting the gap between how AI models tokenize text and how human readers see it. Here is how the attack is constructed, why filters miss it, and which defenses actually hold up.

What is the invisible text bypass?

Attackers inject invisible Unicode characters into email content to change what the AI filter sees without changing what the recipient sees. The most common characters used are:

  • Zero-width space (U+200B)
  • Word joiner (U+2060)
  • Zero-width no-break space (U+FEFF)
  • Zero-width joiner (U+200D)
  • Various format characters that render as nothing in most email clients

These characters are legitimate Unicode code points. They are not malicious by design. But they create a mismatch: the AI security model reads a different token sequence than the human eye processes.

Why AI filters specifically fail here

Most AI-powered email security tools rely on large language models or NLP classifiers that process text at the token level. When a phishing email contains visible text like "Click here to verify your account" but inserts invisible characters between letters or words, the displayed content looks normal but the underlying token sequence is different.

This matters for two reasons:

First, tokenizers handle zero-width characters inconsistently. Some models strip or ignore them during preprocessing. Others treat them as separate tokens that alter the semantic embedding. If a filter was trained on clean text without these edge cases, it may never have learned to associate "Click here" with the actual phishing payload when zero-width characters are present.

Second, text-manipulation attacks exploit the gap between content inspection and link analysis. The visible text may pass sentiment or intent classifiers because it looks innocuous. The malicious URL behind the link may be caught by link analysis. But the combination of both -- visible innocence plus hidden payload markers -- can fall into a blind spot where neither layer triggers alone.

What traditional email security layers catch

The invisible text bypass is a content-layer attack. It does not circumvent authentication protocols:

  • DMARC, SPF, and DKIM operate at the envelope and header level. They verify who sent the email and whether the sending infrastructure is authorized, regardless of email content. Invisible Unicode in the message body has no effect on these checks.
  • Link sandboxing detonates URLs in an isolated environment and observes behavior. It is unaffected by invisible text in the body.
  • Reputation-based filters look at sender history, domain age, and infrastructure patterns. Again, content manipulation does not change these signals.

The bypass works specifically against content-classification layers that use AI or NLP to inspect the visible text. Once you separate "what the email says" from "what authentication says," the attack surface becomes clearer.

How to detect invisible text in emails

For defenders who want to check whether an email contains hidden Unicode, here are practical methods:

Check the raw source. In Outlook, open the email and view the message source. In Gmail, show the original. Look for character sequences like %E2%80%8B (URL-encoded zero-width space) or unusual control characters between visible words.

Use a text extraction tool. Copy the email body into a plain-text editor or terminal. If characters appear to shift position when you move the cursor, or if there are gaps between words that do not match the formatting, that is a sign of hidden characters.

Write a simple detection script. A basic script can scan email body text for non-printable Unicode characters in the ranges U+2000-U+206F (general punctuation and format characters) and flag any matches. This catches most invisible text injections.

Headers matter too. Some attacks use bidirectional Unicode overrides (U+202E for right-to-left override) to swap characters visually without changing the displayed text. These are more obvious to spot because they often appear in URL display strings.

Which email security approaches are resilient

AI-only content inspection is the weak point. Resilient approaches combine multiple signals:

  • DMARC monitoring fills this gap by checking authentication results at the infrastructure level. Even if an email passes AI content inspection, a DMARC failure tells a different story: the sending server is not authorized for the claimed domain. Tools that aggregate DMARC reports -- like DMARCFlow -- surface these authentication discrepancies across all incoming mail, giving security teams signal that content inspection alone cannot provide.
  • Link analysis and sandboxing catch the payload regardless of how the body text is dressed up.
  • Sender authentication (DMARC, SPF, DKIM) is structural. It verifies sending authority, not content intent.
  • User reporting remains important. No filter catches everything. A clear, accessible phishing report button on mobile email clients is still one of the most effective detection mechanisms.

FAQ

Can AI email filters reliably detect invisible text bypass?
Some can, but not all. Filters that rely primarily on visible text tokenization are vulnerable. Filters that combine content inspection with link analysis, sender reputation, and authentication checks are harder to bypass with this technique alone.

Does DMARC stop invisible text phishing?
DMARC does not prevent a user from clicking a malicious link or trusting a crafted email. What DMARC does is verify that the sending server is authorized to send on behalf of the claimed domain. This prevents sender spoofing but does not block content-based attacks from authorized senders.

How common is this attack?
It is not the most common phishing technique, but it is not theoretical either. Security researchers have documented it against both commercial AI filters and enterprise email security appliances. Any organization using AI-only content filtering should treat it as a realistic threat vector.

Is this related to Unicode homograph attacks?
Related but different. Homograph attacks use visually similar characters from different Unicode scripts (such as replacing a Latin "a" with a Cyrillic "a") to disguise domain names in URLs. Invisible text attacks inject characters that render nothing but alter the token sequence. Both exploit Unicode ambiguity, but they target different layers of the email security stack.

The practical takeaway

Invisible text bypass is not a magic exploit. It is a targeted technique that defeats one specific layer: AI content classification that relies on visible text tokenization. The defenses that hold up are the ones that check multiple signals: authentication results, sender reputation, link behavior, and user reports.

Organizations relying entirely on AI content inspection for email security should treat invisible text bypass as a reason to add complementary layers, not as a reason to swap one AI vendor for another.

This is where DMARC monitoring earns its place in a layered email security stack. It does not stop invisible text phishing, but it catches what content inspection misses: unauthorized sending infrastructure, domain spoofing attempts, and authentication failures that accompany targeted campaigns. DMARCFlow aggregates these signals across all inbound mail, making it straightforward to spot authentication anomalies even when the message body looks legitimate.