Security operations

What Is a Homograph Attack? How Lookalike Domains Trick You

A homograph attack makes a fake domain look exactly like the real one. Here is how Unicode lookalikes work, what happened with apple.com, and how to check a link.

Cysoro Security TeamPublished · 7 min read
apple.comаpple.comLooks the same. Different domain. SECURITY OPERATIONS Homograph attack One letter. A different website.
Quick answer

A homograph attack, also called an IDN homograph or homoglyph attack, replaces letters in a domain with visually identical characters from another alphabet, such as Cyrillic a for Latin a. The fake domain looks trusted but is different, so it can host a copied login page and steal passwords. Browsers show many such names as Punycode, starting with xn--, but whole-script lookalikes can still slip through.

Key takeaways

  • A homograph attack replaces letters with lookalikes from another alphabet, so the fake domain looks real but is technically different.
  • The 2017 apple.com proof of concept used all-Cyrillic letters and even got a valid TLS certificate.
  • Type sensitive addresses yourself, check for xn-- Punycode, and let your password manager's domain check warn you.

Look at this address: apple.com. Now look again. If one of those letters came from the Cyrillic alphabet instead of Latin, you would probably not notice — but your browser would take you to a completely different website.

What is a homograph attack?

A homograph attack is a spoofing attack that uses lookalike characters from different alphabets to make a fake domain look identical to a trusted one.

The characters are called homoglyphs, or confusables in Unicode terms. The Cyrillic, Greek and Latin alphabets each have a letter that looks like o, but each has a different code point. Latin small letter a is U+0061; Cyrillic small letter a is U+0430. They look the same in most fonts, but to a computer they are different characters, as the IDN homograph attack reference explains.

Attackers register the lookalike domain, copy the real site's login page, and send the link by email or message. Victims type their password into the fake page, and the attacker captures it. The attack needs no malware and no software flaw: it exploits how human eyes read text.

How does a homograph attack work?

A homograph attack works in four steps: find lookalike characters, register the fake domain, get a TLS certificate, and send victims to a copied login page.

How a homograph attack works1. Find lookalikesCyrillic a, c, e, o,p, x and y matchLatin letters2. Register itThe fake name passesregistry rules andresolves in DNS3. Get a certificateA DV certificate provescontrol of the fakedomain, not the brand4. Fake login pageA copied sign-in pageharvests passwordsfrom victimsNo exploit code is needed — the deception is purely visual.
The four steps of a homograph attack. Illustration by Cysoro.

First, the attacker picks characters that look like the target's letters. Cyrillic supplies several lowercase lookalikes for Latin letters, and Greek, Armenian and Cherokee scripts contain confusables too. The pairs a, c, e, o, p, x and y are the most useful, because they can spell whole English words.

Next, the attacker registers the name. An internationalized domain name (IDN) uses Punycode and the xn-- prefix to form an ASCII label for DNS. The name must pass the registrar's and registry's character rules, but many lookalike names pass.

Then the attacker gets a TLS certificate. Domain validation only proves control of the named domain, so a fake domain can show a padlock. Finally, the attacker sends the link in a phishing email or message, and the copied login page collects credentials.

What are the real cases? From 2001 to the apple.com demo

Homograph attacks were described in 2001, demonstrated live in 2005, and proved again in 2017 when a fake apple.com got a valid certificate.

In December 2001, Evgeniy Gabrilovich and Alex Gontmakher of the Technion published "The Homograph Attack", showing that internationalized domain names would be exploited for phishing. To prove it, they registered a variant of microsoft.com using Cyrillic characters. The paper appeared in Communications of the ACM in February 2002.

In February 2005, Eric Johanson demonstrated the attack at ShmooCon, showing that Firefox 1.0, Safari 1.2.5 and Opera 7.54 rendered a spoofed PayPal domain as the genuine paypal.com. Browsers added mixed-script detection in response, showing Unicode only for domains under registries with anti-homograph policies.

In April 2017, Xudong Zheng registered xn--80ak6aa92e.com, which decoded to what appeared to be apple.com in Chrome, Firefox and Opera. Every character was Cyrillic, so there was no script mixing for browsers to detect, and he obtained a valid Let's Encrypt certificate for it. Chrome shipped a fix for that example in version 58.

What types of homograph attacks are there?

Homograph attacks come in three main forms: ASCII lookalikes, mixed-script IDN lookalikes, and whole-script IDN lookalikes. Whole-script attacks are the hardest to stop.

TypeHow it worksExampleHow hard to spot
ASCII homographsSimilar letters or pairs inside ASCIIrnicrosoft.com, paypaI.comModerate, if you read carefully
Mixed-script IDNOne or two non-Latin letters in a Latin nameexаmple.com with Cyrillic aHard, browsers often show Punycode
Whole-script IDNEntire name in one non-Latin scriptCyrillic apple.comVery hard, no mixing to detect
Accented charactersAccents that look like dots or markswíkipedia.comHard at small font sizes

Unicode Technical Standard #39 (UTS #39) defines these categories formally: single-script, mixed-script and whole-script confusables. It also defines a skeleton function that maps a string to a canonical form, so two strings with the same skeleton are confusable. Chrome uses this to compare domains against a list of top sites.

Homograph attack vs typosquatting: what's the difference?

Typosquatting relies on typing errors, while a homograph attack relies on visual deception. Both use a similar-looking name, but they fool you in different ways.

In typosquatting, the attacker registers a misspelled domain such as goggle.com and hopes you type it by mistake. In a homograph attack, the attacker presents a link that looks correct even when you read it carefully, because the substituted letters are visually identical. A rare accident could also produce a homograph, such as typing a Cyrillic letter inside an English word, but attackers do it deliberately.

The two can combine: a domain can be both misspelled and use lookalike characters. Defenses overlap too: type addresses yourself, use bookmarks, and check the domain before you log in. Our guide to spear phishing covers how these fake domains are used in targeted email attacks.

How do you spot a homograph attack?

Look for the xn-- prefix, type addresses yourself, and pay attention when your password manager refuses to autofill. No single check catches every case.

  • Check the address bar. If a domain starts with xn--, it is Punycode for a Unicode name. Treat it with suspicion, especially for a brand that normally uses plain Latin letters.
  • Type the address yourself. For banking, email and crypto sites, type the address or use a bookmark. Do not click links in email or messages to reach a login page.
  • Copy and paste the domain into a text editor. Changing the font, or pasting it somewhere that shows the underlying characters, can reveal a substitution.
  • Watch your password manager. A password manager matches the exact domain. If it does not offer to fill a login it normally fills, stop and check the address.
  • Check the certificate details. A padlock only means encryption. Look at who the certificate was issued to, and remember that a fake domain can have a valid certificate.
  • Use a WHOIS lookup. A newly registered domain, or one registered in a different country from the brand, is a warning sign. You can check a domain with our free WHOIS lookup.
A padlock is not proof of identityA homograph site can show HTTPS and a padlock, because the certificate only proves control of the fake domain. Check the domain itself, not the padlock.

How do browsers defend against homograph attacks?

Browsers check IDN display rules and show suspicious names as Punycode instead of Unicode. The checks differ by browser, and none of them catches every whole-script lookalike.

Chrome checks identifier characters, script mixtures, invisible characters, whole-script confusables and skeleton matches against selected domains. If a display check fails, the label appears as Punycode.

Firefox checks script combinations, restricted characters, confusable letters and digits, and context around combining marks, with some checks depending on the top-level domain. Firefox users can set network.IDN_show_punycode to true in about:config to always see Punycode. Safari's WebKit uses allowed-script checks, and Edge inherited Chrome's IDN policy when it switched to Chromium in 2020.

A 2021 USENIX study found bypasses in each browser it tested. Among 1,855 real-world homograph IDNs in its dataset, Chrome displayed Punycode for 64.1 percent, Safari for 9.7 percent, and Firefox for 6.1 percent. Those figures describe that study's dataset and browser versions, not current detection rates, but they show that browser protection alone is not enough.

Same look, different characterLatina c e o p x yU+0061, U+0063, U+0065,U+006F, U+0070, U+0078, U+0079Cyrillicа с е о р х уU+0430, U+0441, U+0435,U+043E, U+0440, U+0445, U+0443They look identical. To a computer, they are different domains.
Latin and Cyrillic lookalike letters have different Unicode code points. Illustration by Cysoro.

How do you protect yourself and your organization?

For individuals, the best defenses are typing addresses yourself, keeping your browser updated, and using a password manager with domain matching. For organizations, add registry monitoring and certificate transparency checks.

Individuals should keep browsers updated to receive current IDN display policies, and use a password manager that only autofills on the exact domain. Organizations should monitor Certificate Transparency logs for certificates issued for brand-lookalike domains, using feeds such as CertStream, and consider defensive registrations for likely variants. DNS-level filtering can block known homograph domains before they reach users, and email gateways can scan URLs for homograph patterns.

Registries also play a role. ICANN's IDN Implementation Guidelines call for published character tables, restrictions on script mixing and variant management. A single-script rule reduces combinations but still permits whole-script lookalikes, so registry rules alone do not solve the problem.

Akamai published a study in November 2022 analyzing DNS traffic over 32 days and found 6,670 active homograph domains being queried by real devices, with an average of 67 new ones appearing daily. That scale is why checking the domain, rather than trusting how it looks, matters.

The bottom line

A homograph attack works because your eyes and your computer read a domain differently. The fake site can look perfect, show a padlock, and still be a different domain run by an attacker.

Do not rely on how a link looks. Type sensitive addresses yourself, watch for xn-- in the address bar, and let your password manager's domain check warn you. You can check any suspicious domain with the free DNS lookup before you trust it.

Frequently asked questions

What is a homograph attack in simple terms?

A homograph attack is a trick where a fake website address looks exactly like a real one, because some letters are swapped for identical-looking letters from another alphabet. Your eyes see the real brand, but your computer sees a different domain.

What is an example of a homograph attack?

In 2017, researcher Xudong Zheng registered a domain that looked like apple.com but used all Cyrillic letters, encoded as xn--80ak6aa92e.com. It displayed as apple.com in Chrome, Firefox and Opera, and even got a valid TLS certificate.

What is the difference between a homograph attack and typosquatting?

Typosquatting relies on typing mistakes, such as a misspelled brand name. A homograph attack relies on visual similarity, using lookalike characters so the address looks correct even when read carefully.

Can a homograph domain have HTTPS and a padlock?

Yes. A domain-validation certificate only proves control of that domain, not that it belongs to the brand it resembles. A padlock means the connection is encrypted, not that the site is genuine.

How can I spot a homograph domain?

Look for the xn-- prefix in the address bar, which means the domain is encoded Punycode. Type sensitive addresses yourself instead of clicking links, and watch whether your password manager refuses to autofill, which can signal a different domain.

Do browsers protect against homograph attacks?

Modern browsers apply IDN display rules, including mixed-script checks and confusable checks, and show many lookalike domains as Punycode. Whole-script lookalikes are harder to catch, and a 2021 study found bypasses in every browser tested, so browser protection is not complete.

What is Punycode?

Punycode is the encoding that turns a Unicode domain name into ASCII for the domain name system, with an xn-- prefix. For example, a Cyrillic lookalike of apple.com encodes to xn--80ak6aa92e.com. Seeing xn-- is a warning sign.

Who is most at risk from homograph attacks?

Anyone who clicks links in email or messages to reach a bank, email, crypto exchange or work login. High-traffic brands such as Apple, PayPal, Amazon and Google are the most copied, because one fake page can harvest many passwords.

Sources

  1. Wikipedia — IDN homograph attack
  2. Unicode Consortium — UTS #39: Unicode Security Mechanisms
  3. Punycode — IDN Homograph Attack: Unicode Domain Phishing Explained
  4. CISA, NSA, FBI, MS-ISAC — Phishing Guidance: Stopping the Attack Cycle at Phase One
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against the Unicode UTS #39 confusables standard, the IDN homograph attack record, and CISA phishing guidance.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free