What it is#
A homoglyph is a character that looks identical or very similar to another character from a different script, encoding, or code point. The term comes from the Greek homo (same) and glyphē (carving). The Latin letter a (U+0061) and the Cyrillic letter а (U+0430) render identically in most typefaces, yet they are entirely different Unicode code points with different semantic meanings.
The characters themselves are not malicious. They exist because Unicode encodes each writing system independently, and visual overlap between scripts is an unavoidable consequence of how human alphabets evolved from common ancestors.
A homoglyph attack is the broader category, covering any use of lookalike characters to deceive across usernames, file names, email addresses, code, or rendered text. IDN homograph attacks are a specific subtype focused on domain names. They exploit the fact that internationalized domain names (IDNs) allow non-Latin characters in web addresses. A fake domain encoded with lookalike Cyrillic characters can then render identically to a real one in a browser's address bar. Where a general homoglyph attack targets any surface where text appears, an IDN homograph attack targets the domain name specifically, with the added complication of Punycode encoding and browser display rules.
Unicode confusables and UTS #39#
The Unicode Consortium catalogs visually confusable characters in Unicode Technical Standard #39 (UTS #39, "Unicode Security Mechanisms"). The standard defines three core mechanisms:
- Confusable mappings. Character pairs or sets that are visually similar. The current
confusables.txtdataset maps approximately 6,565 characters to their visual equivalents, spanning Latin, Cyrillic, Greek, Armenian, Cherokee, and dozens of other scripts. - Skeleton algorithm. A normalization function that maps confusable characters to a canonical form. Two strings that look the same to a human produce the same skeleton, enabling automated detection. For example,
skeleton("paypal")andskeleton("ρ⍺у𝓅𝒂ן")return identical output despite the second string mixing Greek, Cyrillic, and Hebrew characters. - Mixed-script detection. Rules for identifying strings that combine characters from multiple scripts, a strong signal of intentional deception in contexts like domain names.
The confusable data is updated with each Unicode release. Up to 20% of common English words have at least one confusable representation in another script, illustrating the scale of the problem.
Common homoglyph pairs#
Some of the most frequently exploited homoglyph pairs in domain abuse include:
| Latin | Lookalike | Script | Unicode | Notes |
|---|---|---|---|---|
a | а | Cyrillic | U+0430 | Visually identical in most fonts |
e | е | Cyrillic | U+0435 | Identical rendering |
o | ο | Greek | U+03BF | Greek omicron, identical to Latin o |
o | о | Cyrillic | U+043E | Three-way confusable with Greek omicron |
p | р | Cyrillic | U+0440 | Cyrillic "er", identical to Latin p |
c | с | Cyrillic | U+0441 | Cyrillic "es", identical to Latin c |
x | х | Cyrillic | U+0445 | Cyrillic "kha", identical to Latin x |
i | і | Cyrillic | U+0456 | Ukrainian/Belarusian i |
l | ӏ | Cyrillic | U+04CF | Cyrillic palochka |
Beyond cross-script pairs, homoglyphs exist within a single script. The digit 0 and the letter O, and the digit 1 and lowercase l, are classic confusables that use only ASCII. ASCII (American Standard Code for Information Interchange) is the long-standing 7-bit character set for English letters, digits, and common punctuation. These pairs predate Unicode by decades. They overlap with simpler typosquatting techniques like addition and vowel swap. Cross-script homoglyphs are a different kind of threat. The resulting strings can be character-for-character identical to the target in rendered output.
Domain protection
Detect adversary infrastructure while it is being staged.
Have I Been Squatted helps security teams detect lookalike domains, certificate and DNS changes, and staging infrastructure, investigate the evidence, and coordinate takedowns.
Whole-script confusables#
A whole-script confusable replaces every character in a string with a visually identical character from a single non-Latin script. For domain names, this is the most dangerous form of homoglyph abuse because early browser heuristics only flagged labels that mixed scripts. A label written entirely in Cyrillic passed those checks even when it was character-for-character identical to an English word. The domain-specific mechanics of this technique, including Punycode encoding, browser display rules, certificate issuance, and registry controls, are covered in IDN homograph attacks.
Attack surfaces beyond the address bar#
Browser address-bar protections for homoglyph domains are specific to the domain-name context and are explained in IDN homograph attacks. Outside of domain names, homoglyph abuse applies to any surface where text is rendered and read by a human:
- Email display names and headers. A sender display name using a Cyrillic
аin place of a Latinapasses most mail filters unmodified, since the underlying envelope address may be legitimate. - Usernames and handles. Platforms that allow Unicode in usernames can host accounts that impersonate real users or brands at a character level rather than a spelling level.
- Source code. Variable names, string literals, and comments can contain confusable characters that compile and lint cleanly while deceiving a human reviewer during code review.
- Document and chat links. Hyperlink text in PDFs, slide decks, and messaging platforms displays whatever Unicode the author supplied. The underlying URL may differ entirely from what the rendered text implies.
- Log output and terminals. Confusable characters in process names, file paths, or log entries can mislead analysts inspecting system activity.
In all of these contexts, no equivalent of the browser's Punycode fallback exists. Detection relies on the same skeleton-based and visual similarity analysis used for domain monitoring, applied to the relevant data source.
Detection#
Identifying homoglyph-based lookalike domains requires purpose-built detection. Standard string comparison treats visually identical cross-script characters as completely different. The skeleton algorithm from UTS #39 is the standard baseline for automated detection, but it has known limits. It does not normalize case (PayPal and paypal produce different skeletons), does not strip diacritics, and cannot catch confusables that depend on specific font rendering.
Visual similarity models. Some research renders domain strings as images and compares them with convolutional neural networks (CNNs). Siamese CNNs trained on rendered text detect visually deceptive domains 13 to 45% better than traditional string-comparison algorithms like Levenshtein distance.
Layered enrichment. Homoglyph detection also flags legitimate domains registered in non-Latin scripts. Good triage combines confusable matching with other signals. These include WHOIS and RDAP registration age, TLS certificate issuance in Certificate Transparency logs, DNS resolution patterns, and web content analysis. The same layered method applies to other typosquatting permutation categories.
Monitoring and response#
Bitsquatting produces a small, fixed set of variants. The set of homoglyph variants for a domain, by contrast, can be very large. When every character in a domain has a cross-script confusable, the number of mixed-script and whole-script variants grows combinatorially. In apple, for example, every letter has a Cyrillic equivalent. Monitoring therefore usually focuses on whole-script confusables and common character swaps instead of listing every variant.
Defensive registration of homoglyph variants is possible but less practical than for categories with smaller permutation counts. Domain monitoring scales better. So does brand protection enforcement through registrar abuse processes and UDRP proceedings. This is most true for phishing campaigns that use homoglyph domains for brand impersonation.
Have I Been Squatted generates homoglyph variants for every monitored domain and checks whether they are registered. Matches are enriched with DNS, certificate, and hosting data to help distinguish active phishing infrastructure from legitimate internationalized registrations.