ENES

Typosquatting

Registering misspelled names of real sites or packages to catch people's typos.

A real address, mybank.com, next to three lookalikes: mybnak.com, mybank.co and my-bank.com, each pointing to a fake login page

Typosquatting means registering a domain name that is one slip away from a popular one: a swapped letter (mybnak.com), a missing letter, a different ending (.co instead of .com) or an extra hyphen. People who mistype the address, or who glance too quickly at a link, land on a site the attacker controls. It is a kind of cybersquatting, the broader practice of registering names that ride on someone else's brand.

What waits on the other side varies. Often it is just a page full of ads that pays per visit. Worse, it can be a perfect copy of the real login page that harvests passwords, a download of malware, or a domain used to send phishing emails that look like they come from the real company. Some lookalikes go further and use characters from other alphabets that look identical, like a Cyrillic "а" in place of a Latin "a"; that variant is called a homograph attack.

The same trick works on programmers. Attackers publish packages to registries like npm or PyPI under names close to popular ones, hoping someone types the name wrong in an install command. In 2017, for example, npm removed a package called crossenv, a lookalike of cross-env that sent the developer's environment variables to its author. That makes typosquatting a common entry point for a supply chain attack. Defenses: companies register the obvious misspellings of their own names, browsers and email filters flag lookalikes, and you can use bookmarks or a password manager, which will not autofill on the wrong domain.

Keep in mind

Go deeper

Related terms

More in Security