typosquatting
Registering a name that differs from a popular one by a small typing mistake, such as a lookalike domain or package name, to catch people who mistype it.
In more detail
Examples swap one letter for a similar character or add, drop or double a letter. Attackers use lookalike domains for phishing sites and fake email addresses, and lookalike package names to get malicious code installed by mistake. Checking a name letter by letter, or copying it from official documentation, avoids falling for it.
Examples
examp1e.com edits: 1exarnple.com edits: 2The course detects it with an edit distance check against popular names, and a keyboard-adjacency test that separates plausible slips such as reqiests from deliberate imitations.Related terms
- lookalike domain — A domain name made to resemble a trusted one, such as evilexample.com next to example.com, to trick people or filters.
- combosquatting — Registering a domain that contains a real brand name plus extra words, such as the brand followed by a word like invoices or login.
- edit distance — The minimum number of single-character insertions, deletions and substitutions needed to turn one string into another.
- homoglyph — A character that looks the same, or almost the same, as a different character, such as a Cyrillic letter that looks like an English e.
- PyPI — The Python Package Index at pypi.org, the public online catalogue from which pip downloads third-party packages.
- dependency — Anything a program needs in order to work, such as a library, a tool or another service.
- pip — Python's standard package installer, which downloads packages from the Python Package Index and installs them.
- allowlist — An allowlist names exactly what is permitted and a denylist names what is forbidden, with everything else allowed.
- software supply chain — Everything that goes into your software before it runs: base images, packages, build tools, CI systems and registries.
Taught in
- Working With AI Coding Assistants — AI Engineering: LLM Apps, RAG & Agents
- Social Engineering, Phishing & Human Defense — Cybersecurity Fundamentals, GRC & Cryptography
- pip, requirements, and installing packages — Hands-on Python: Complete Video Course & Book
- Dependency Risk And Typosquatting — Application Security & Threat Modeling for Engineers
References
- MITRE ATT&CK T1583.001: Acquire Infrastructure: Domains
- Packaging guide: installing packages
- OWASP: vulnerable and outdated components
- OpenSSF: Concise Guide for Evaluating Open Source Software
- MITRE ATT&CK: compromise software dependencies and development tools