Skip to main content

Punycode

Punycode is the encoding that represents non-ASCII characters in domain names using only ASCII, turning an internationalized domain into a string that starts with "xn--". Attackers exploit it to hide homoglyph domains.

Updated 1 min read

How it works

Browsers display internationalized domain names in their native script, but store and resolve them as Punycode. A domain that looks like "paypal.com" with a Cyrillic letter is really "xn--..." under the hood. Some browsers show the Punycode form as a defence, but not always.

Reading the Punycode reveals whether a domain contains mixed or foreign scripts that the eye cannot catch.

How it relates to brand impersonation

Punycode is the technical tell behind homoglyph domains, one of the hardest lookalikes to spot. Resolving it is how monitoring exposes impersonation that looks identical to your real domain.

How nebty helps

nebty domain monitoring decodes Punycode and flags mixed-script registrations targeting your brand, so homoglyph lookalikes surface for review and on-demand takedown.

Reading the xn-- form

Punycode is just an encoding, not an attack by itself, but reading it is how you unmask a homoglyph domain. Any internationalized domain is stored in DNS as ASCII beginning with xn--, followed by an encoded representation of the original characters. A normal internationalized brand, say a German site using an umlaut, has a legitimate xn-- form. The suspicious case is a domain that looks like plain Latin text in the browser but resolves to an xn-- string, because that means at least one character is not what it appears. You do not need to decode it by hand; the point for defenders is that any detection system has to normalize domains to their Punycode form before comparing them to your brand, otherwise a homoglyph lookalike looks like an exact match to the eye and a totally different string to a naive filter.

A homoglyph domain swaps letters for visually identical characters, often from other alphabets, like a Cyrillic "а" for a Latin "a", to spoof a brand domain almost invisibly.

Domain abuse & monitoring

A lookalike domain is any domain crafted to resemble a legitimate one closely enough to deceive. It is the umbrella term that covers typo-, combo-, and homoglyph squatting and more.

Domain abuse & monitoring

Typosquatting is the registration of domains that exploit common typing mistakes of a well-known domain, such as "gogle.com" or "amazn.com", to capture mistyped traffic.

Domain abuse & monitoring

Domain monitoring is the continuous tracking of newly registered and changed domains that resemble your brand, so you can spot lookalikes and abuse early, before they are used against you.

Domain abuse & monitoring

DNS, the Domain Name System, is the internet directory that translates human-readable domain names into the IP addresses machines use to connect, and a frequent target and tool in domain abuse.

Domain abuse & monitoring

Bitsquatting is registering domains one bit different from a target domain, exploiting rare memory errors that flip a single bit so a device resolves the wrong, attacker-owned name.

Domain abuse & monitoring

Domain spoofing is faking a trusted domain, in a website URL or an email sender address, to make fraudulent content appear to come from a legitimate brand.

Domain abuse & monitoring

New gTLD abuse is the exploitation of the many newer top-level domains, such as .shop, .app, .xyz, and .top, to register cheap lookalike and scam domains at scale.

Domain abuse & monitoring
Free report

See who is impersonating your brand

The free nebty report scans the web for lookalike domains and fake profiles targeting your brand, with no obligation.

Benedikt Scheungraber

Benedikt Scheungraber

Co-Founder & CEO

Questions about brand protection, or want to see nebty in action? I’m happy to walk you through it myself and talk openly about whether we can help with your case.