Package Lookalike Checker

Check package names from an AI assistant or a README for typosquats and hallucination-style names before you install them.

AI coding assistants sometimes recommend packages that do not exist, and attackers register those names with malicious code: slopsquatting. Typosquats such as one-letter misspellings of popular packages are an older version of the same trick. This checker flags names that look like either before you install anything.

How to use it

  1. Choose PyPI or npm.
  2. Paste package names, one per line, from an assistant's suggestion, a README or a requirements file.
  3. Read each verdict and open the registry link for anything not marked green.

What to take away

Lookalikes of popular names

A name one or two characters away from a very popular package is a classic typosquat. Treat it as malicious until proven otherwise.

Popular name plus a generic word

Names such as pandas-validator-pro or flask-jwt-securelogin are the shape AI assistants invent. Check the publisher, first release date and download history.

Offline by design

The check compares against a built-in list and makes no network requests, so it cannot confirm that a package exists. The registry link does that.

Frequently asked questions

How common are hallucinated packages?

A 2024 study of 16 code-generating models found around one in five recommended packages did not exist, and many of those names recurred across runs, which is what makes them worth registering.

What else should I check before installing?

Who publishes it, when it was first released, how many maintainers and downloads it has, whether it links a real source repository, and whether a well-known alternative exists. Use lockfiles and pin versions.

Where this fits in the course

This security tool pairs with Path 18 — AI & AI Security — see all 26 learning paths.

It runs entirely in your browser: nothing is uploaded, no account is needed, and it is free.

Related

  • Hidden Instruction Scanner — Reveal what a human misses but an AI reads: invisible Unicode, tag-character smuggling, hidden HTML, injection phrases and data-carrying image links.
  • Dependency / SBOM Risk Checker — Paste a dependency list and flag ones matching a known-vulnerable version range.
  • Leaked Secret Hunt — A public GitHub repo dump. Find the hardcoded API key an automated scanner would catch in minutes — before an attacker does.
  • Secure Code Review Toy — Paste a code snippet and get flagged patterns — eval, string-built SQL, hardcoded secrets. Not a real SAST tool, but trains the eye.

Browse all 34 security tools →