Flag PyPI and npm package names that imitate popular packages (homoglyphs, separator tricks, affixes, one-edit typos) and say which rule matched. Use when the user reviews new dependencies, requirements.txt or package.json entries.
95%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Reference for scripts/typosquat_detector.py. Behaviour is the same as the typosquat_detector
Python package.
input_too_large.., _, -; starts and
ends with a letter or digit), case-insensitive.@scope/ plus a name made of lowercase letters, digits and
-, ., _, ~.invalid_name; an unknown ecosystem raises invalid_ecosystem.-, _, . becomes one -.homoglyph: lowercase both, replace rn with m and vv with w, then 0 1 3 5 with
o l e s; equal results match.separator: remove -, _, . and spaces; equal results match.affix: the candidate equals the target with one of these added.
python-, py-, py. Suffixes: -python, -py, py, -dev, -lib.node-, js-. Suffixes: -js, .js, js, -node.distance: optimal string alignment distance of exactly 1 (insertion, deletion, substitution
or adjacent transposition), only when both names have at least 4 characters.For each target the first matching rule wins. Findings are sorted by target.
--popular FILE)UTF-8, one name per line, blank lines ignored, at most 10,000 names and 1 MiB. The file replaces the bundled list for that run.
Exit code 1 means at least one finding. The tool cannot tell a deliberate attack from an
unrelated package that happens to be similar (for example flask and flasky); a human should
check the registry page before deciding.