---
title: "Typosquatting — definition | Nuri Glossary"
description: "Registering look-alike domains or package names so a typo sends you to an attacker."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/typosquatting"
---

# Typosquatting

Registering look-alike domains or package names so a typo sends you to an attacker.

## Basically

In plain words, a cyberattack using look-alike domain names or package names to trick users into visiting malicious sites or installing compromised code.

## Key Takeaways

- Typosquatting exploits small mistakes: attackers register domains, package names, or token names that closely resemble legitimate ones (e.g., "uniswp.org" instead of "uniswap.org") to intercept users who mistype URLs or install the wrong dependency.
- Three major attack surfaces exist: web domain typosquatting targeting wallet users, package registry typosquatting targeting developers via supply chain attacks, and token name squatting on decentralized exchanges exploiting traders.
- Countermeasures combine technical and behavioral defenses: bookmarking verified sites, verifying contract addresses, using package lockfiles, and leveraging browser warnings all reduce risk from this form of social engineering.

## What Is Typosquatting?

Typosquatting is a cyberattack technique where an adversary registers a domain name, software package name, or token name that is nearly identical to a legitimate one, differing by only a small typo, character substitution, or added character. The goal is to intercept users who make minor typing errors and redirect them to malicious resources: fake websites that harvest credentials, compromised code libraries that steal data, or fraudulent tokens designed to drain wallets.
The technique is also known as URL hijacking or domain mimicry when applied to web addresses. It is a subset of cybersquatting, the broader practice of registering domains in bad faith to profit from someone else's trademark or brand recognition. What makes typosquatting particularly effective is that it exploits muscle memory and the speed at which people type URLs, run install commands, or search for tokens. A single wrong keystroke is all it takes.
In cryptocurrency, the consequences are amplified because transactions are irreversible. A user who enters a seed phrase on a typosquatted phishing site or a developer who installs a malicious package cannot undo the resulting theft. This makes typosquatting one of the most cost-effective attack vectors in the crypto ecosystem.

## How It Works

Typosquatting attacks follow a common pattern regardless of the specific attack surface. The attacker identifies a high-value target (a popular website, package, or token), registers a look-alike name, and waits for victims to arrive through ordinary mistakes.

## Common Typo Strategies

Attackers use predictable variations of legitimate names to maximize the chance of catching errors:

## The Attack Chain

Once a victim reaches the typosquatted resource, the attack follows a predictable sequence:

## Attack Surfaces


## Web Domain Typosquatting

The most established form of typosquatting targets web domains. Attackers register misspelled versions of popular cryptocurrency sites: exchanges, wallet providers, DeFi protocol frontends, and block explorers. These fake sites are designed to harvest private keys, seed phrases, or login credentials.
The attack is especially dangerous in crypto because many DeFi interactions begin with a user typing a URL and connecting their wallet. A typosquatted DeFi frontend can present a malicious transaction for signing that grants the attacker unlimited token approval, draining the wallet in a single transaction. Search engine ads have also been used to place typosquatted sites above legitimate results, catching users who search rather than type directly.
An example attack flow for a fake wallet site:

## Package Registry Typosquatting

Software package registries like npm and PyPI are a growing target for typosquatting. An attacker publishes a malicious package with a name nearly identical to a popular library. When a developer mistypes an install command, the malicious package runs arbitrary code on their machine or in their CI/CD pipeline.
This is a form of supply chain attack because the compromised dependency can propagate through build systems and affect every user of the resulting application. In 2025, security researchers identified over 3,000 confirmed malicious packages across npm and PyPI, with cryptocurrency theft as a primary goal of many campaigns. A March 2026 campaign attributed to North Korean threat actors published 26 malicious npm packages disguised as developer tools, each delivering credential stealers and remote access trojans.
Package lockfiles (package-lock.json, yarn.lock) help prevent this attack in production environments because they pin exact package names and versions. The risk is highest when a developer first adds a dependency by typing the name manually.

## Token Name Squatting on DEXes

Because anyone can deploy a token contract on permissionless blockchains, attackers create tokens with names and symbols that mimic popular assets. On decentralized exchanges like Uniswap, these fraudulent tokens appear in search results alongside the real ones.
An academic study of counterfeit tokens on Uniswap found a significant number of fraudulent tokens mimicking legitimate ones, with scammers often targeting upcoming tokens that have growth potential. The structural cause is that DEXes do not require identity verification or token approval processes: any contract address can be traded.
The key defense is to verify the token's contract address rather than trusting its name or symbol. Token names and symbols are arbitrary strings set by the deployer and carry no guarantee of authenticity:

## Why It Matters for Crypto

Typosquatting is particularly dangerous in the cryptocurrency ecosystem for several reasons that do not apply to traditional web services:
Security practices like verifying URLs and auditing smart contracts before interaction are essential for anyone operating in this space. For a broader overview of how these attacks fit into the threat landscape, see the research on hardware wallet attack vectors and address poisoning attack defenses.

## Countermeasures


## For End Users


## For Developers


## For Organizations


## Risks and Limitations of Current Defenses

Despite the countermeasures available, typosquatting remains a persistent threat:
The most reliable defense remains user vigilance combined with technical safeguards: bookmarking sites, using lockfiles, and always verifying addresses and contract hashes before transacting.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
