Skip to content

Catch npm case-sensitive typosquats#725

Open
Big-Comfy wants to merge 1 commit intoDataDog:mainfrom
Big-Comfy:Big-Comfy/npm-case-typosquatting
Open

Catch npm case-sensitive typosquats#725
Big-Comfy wants to merge 1 commit intoDataDog:mainfrom
Big-Comfy:Big-Comfy/npm-case-typosquatting

Conversation

@Big-Comfy
Copy link
Copy Markdown

Summary

Fixes #239.

Adds the lowercased form of mixed-case npm package names as a typosquatting confused form. That catches packages like jsonstream against JSONStream, which is already in GuardDog's bundled npm package list.

Testing

  • PYTHONPATH=. ./.venv/bin/python -m pytest tests/analyzer/metadata/test_typosquatting.py -q

@Big-Comfy Big-Comfy requested a review from a team as a code owner May 5, 2026 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement new npm heuristic for case-sensitive typosquatting

1 participant