Security in 60 Seconds: Typosquatting
Carlin Cherry presents a short guide to spotting lookalike dependencies and checking what enters your development environment.
How typosquatting works
Attackers publish packages with names that resemble popular libraries, hoping a developer, an automated script, or an AI assistant selects the wrong one. Once installed, malicious install scripts or package code can run inside the environment.
Checks before installation
Before installing a dependency, verify:
- Package identity: Confirm that the name matches the library you intended to install.
- Publisher: Check who published the package.
- Version: Verify the version you are selecting.
- Build downloads: Check what your build actually downloads, not just what you intended to request.