Course contentsShow
← Security
Lesson 1168 of 3,05224. Application Security - Input ValidationFree lesson

Homograph and Confusable Character Attacks

Understand how visually similar characters from different scripts enable phishing, domain spoofing, and filter evasion.

Homograph and Confusable Character Attacks

You'll learn how attackers use visually identical characters from different alphabets to trick users and bypass security filters.

The Visual Deception

Imagine receiving an email from "paypal.com"—except the "a" is actually а (Cyrillic U+0430), not the Latin a (U+0061). Your eyes can't tell the difference, but computers see two completely different characters. This is a homograph attack.

Modern computing supports Unicode, which includes hundreds of thousands of characters from dozens of scripts: Latin, Cyrillic, Greek, Arabic, and more. Many characters look identical or nearly identical across these scripts, creating opportunities for deception.

Real-World Attack Scenarios

Domain Spoofing: Attackers register domains like аpple.com (Cyrillic "a") or microsοft.com (Greek omicron). Users click links thinking they're legitimate, landing on phishing sites that steal credentials.

Filter Evasion: Security filters block "script" but might miss "sϲript" (Greek lunate sigma). Attackers sneak malicious content past input validation by substituting confusable characters.

Username Impersonation: In social platforms or internal systems, attackers create accounts that visually mimic administrators or trusted users, enabling social engineering attacks.

Why This Works

The core vulnerability is the gap between visual appearance (what humans see) and underlying code points (what computers process). A simple string comparison or blocklist fails because paypal ≠ pаypal at the byte level, even though they're visually indistinguishable.

The Challenge

Unlike simple encoding tricks, homograph attacks exploit legitimate character sets. Every character used might be valid Unicode—just not in the expected script or context.

Key Takeaway: Homograph attacks exploit visually similar characters from different Unicode scripts to deceive users and evade validation, making domain spoofing, phishing, and filter bypass trivial without proper normalization and script mixing detection.